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.
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.
Exactly: I came here specifically to point out that Python is definitely NOT inspired by C++, nor does it transpile to C. Nor is it anything new, as implied by the lack of a year within parentheses. This headline is wrong.
'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.
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.
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.
Unhinged. Read the README - the project goals have absolutely nothing to do with what you're talking about. You "have" to actually understand that, not be unhinged for no reason...
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.
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.
Classic Hacker News.
1. https://news.ycombinator.com/newsguidelines.html
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.
1: https://shedskin.github.io/
Edit: wonder if the contributor John Nagle is that John Nagle...
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.
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.
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.
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.