7 comments

  • PyWoody 240 days ago
    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.
  • moomin 246 days ago
    Taking the name of the language of the front makes it read like Python is the subject matter.
    • omoikane 240 days ago
      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.

    • bheadmaster 240 days ago
      The headline is confusing. It is meant to be read as

          (Python & C++)-inspired language [...]
    • shiroiushi 240 days ago
      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.
    • pipeline_peak 246 days ago
      I'm pretty sure ANIL is taking the back
      • RaftPeople 245 days ago
        I'm re-watching the show Silicon Valley and this name would have been a perfect product name in one of their episodes.
    • seanw444 240 days ago
      Yeah at first I was like "well that's an unfortunate name choice."
  • ecshafer 240 days ago
    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.

    • plant-ian 239 days ago
      I think they did that in "Bootstrap/". It is kind of confusing because the files have a .c extension. Amazing amount of work though.
  • actionfromafar 240 days ago
    Obligatory mention of Shedskin¹, 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...

  • pipeline_peak 247 days ago
    I think ANIL might not be a great name. Let me know if you need clarification ;)
    • jepler 240 days ago
      Anil is a given first name, maybe just not in your culture.
    • delta_p_delta_x 240 days ago
      '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.
    • musicale 246 days ago
      They seem to have misspelled it.
    • Joker_vD 246 days ago
      Why? It's a nice colour.
    • rangerelf 240 days ago
      Tell me you're a gringo without telling me you're a gringo.
    • bheadmaster 240 days ago
      Why are you so anal about its name?
  • NoZZz 246 days ago
    [flagged]
    • remram 246 days ago
      Completely different meaning of embedded, this is about putting the generated C code in your program, not putting the interpreter in your program.
  • imtringued 246 days ago
    [flagged]
    • dang 238 days ago
      You don't have to be harsh, and please don't.

      https://news.ycombinator.com/newsguidelines.html

    • daelon 243 days ago
      Why are dunder methods a "severe design mistake"?
      • nu11ptr 240 days ago
        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.
    • remram 246 days ago
      I thought you were nitpicking but looking at that sample code... "endc_function"... wow.
      • andai 240 days ago
        From what I can tell it probably doesn't have significant whitespace.
    • christianqchung 240 days ago
      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...
    • hifromwork 240 days ago
      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 240 days ago
      [flagged]