[HN Gopher] Python, C++ inspired language that transpiles to C a...
___________________________________________________________________
Python, C++ inspired language that transpiles to C and can be
embedded within C
Author : thunderbong
Score : 46 points
Date : 2024-11-08 02:39 UTC (6 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| pipeline_peak wrote:
| I think ANIL might not be a great name. Let me know if you need
| clarification ;)
| Joker_vD wrote:
| Why? It's a nice colour.
| musicale wrote:
| They seem to have misspelled it.
| jepler wrote:
| Anil is a given first name, maybe just not in your culture.
| bheadmaster wrote:
| Why are you so anal about its name?
| rangerelf wrote:
| Tell me you're a gringo without telling me you're a gringo.
| delta_p_delta_x wrote:
| 'Anil' has several different meanings in Sanskrit and
| descendant Indo-Aryan languages, Turkish, and a handful of
| Dravidian languages. All are fairly noble; none warrant a winky
| face.
| moomin wrote:
| Taking the name of the language of the front makes it read like
| Python is the subject matter.
| pipeline_peak wrote:
| I'm pretty sure ANIL is taking the back
| RaftPeople wrote:
| I'm re-watching the show Silicon Valley and this name would
| have been a perfect product name in one of their episodes.
| bheadmaster wrote:
| The headline is confusing. It is meant to be read as
| (Python & C++)-inspired language [...]
| seanw444 wrote:
| Yeah at first I was like "well that's an unfortunate name
| choice."
| omoikane wrote:
| Original title was
|
| ANIL(A Nice Intermediate Language) Python & C++ inspired
| programming language that transpiles to C and can be embedded
| within C source files
|
| Current title is confusing since it truncates the "ANIL(A Nice
| Intermediate Language)" part, but maybe that was done by HN and
| not by the person who submitted the article. A better title
| would be just that first part.
| imtringued wrote:
| I have to be harsh to this.
|
| It is a surreal combination of both python style white space
| sensitivity and C style curly braces with random features taken
| from both.
|
| The __x__ methods in python are in my opinion a severe design
| mistake and taking inspiration from that means you really have no
| clue about programming language design. You're just taking things
| that already exist 1:1 in one language and are just giving it the
| syntax of the other language. This really is just a weird way of
| writing C++ code.
| remram wrote:
| I thought you were nitpicking but looking at that sample
| code... "endc_function"... wow.
| daelon wrote:
| Why are dunder methods a "severe design mistake"?
| nu11ptr wrote:
| I think they are really good design. The stick out like a
| sore thumb (reading > writing) so you immediately know "this
| does something a little special and isn't typically called
| directly". Contrast that with some languages that just use up
| perfectly good names in the namespace for operators. Unless
| you know they are special you are left wondering.
| hifromwork wrote:
| That's a quick jump from "in my opinion" to "you have no clue
| about".
|
| I mean, the author is probably not a programming language
| design specialist, but I feel that's overly harsh - they
| hopefully learned a bit when working on this toy project.
| _proofs wrote:
| bruh, who the fuck are you?
|
| you conveniently ignored the repo owner's educational
| disclaimer, and instead of taking an opportunity to bring some
| humanity to your comment, and mentor -- you shamed and
| disrespected.
|
| i'd really appreciate seeing much more intelligent, mature, and
| comments with actual substance, than this vitriol.
| PyWoody wrote:
| Before everyone piles on, here is the repo owner's Note at the
| bottom of the page: This is my first ever
| compiler project. I created this compiler for the following
| reasons: * To learn about compiler development.
| * To build a self-compiling compiler. * To implement
| features I find interesting and cool.
| delta_p_delta_x wrote:
| But everyone piled on anyway; see the comment below where the
| writer _opened_ with 'I have to be harsh about this'.
|
| Classic Hacker News.
| stevenae wrote:
| From the guidelines [1]: Please don't sneer, including at the
| rest of the community.
|
| 1. https://news.ycombinator.com/newsguidelines.html
| actionfromafar wrote:
| Obligatory mention of Shedskin1, which is an honest to goodness
| Python3 to C++ transpiler.
|
| 1: https://shedskin.github.io/
|
| Edit: wonder if the contributor John Nagle is _that_ John
| Nagle...
| ecshafer wrote:
| Great work!
|
| Next step is to make your Anil compiler in Anil.
|
| Small complaint: I would rather you have the code examples as
| text on the github readme than as an image.
___________________________________________________________________
(page generated 2024-11-14 23:01 UTC)