compiler

Languages and libraries

compiler

SHOW HN2020

74points
22comments
#842of 3,028 in 2020
Top 28%of 2020 by points

How HN took it

LovedMost comments that take a side are positive

5 positive, 1 neutral or asking, 0 mixed, 0 critical, out of 6 comments about the project. Thread score +0.42.

Design: 3 for, 0 againstPerformance: 1 for, 0 againstIdea: 1 for, 0 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Simple, clean syntax and language flow

    From 2 comments
    • Very cool! Reading the "Why" section resonated with me, as I think creating one's own language is something every programmer should do for the experience. The syntax flows well,…
      lioeters on HN
    • Sorry I won't be able to give you a lot of feedback. As a matter or preference I really like colons and semi-colons. That said your work is amazing. This is a true example of…
      kreco on HN
  • Motivating for learning compilers

    From 1 comment
    • Thank you for this. I like that it's small enough to be motivational instead of being complex and intimidating. World needs more of these for other complex topics.
      saintfiends on HN

Objections

  • Performance is only about 90% of C at -O0 with no optimization yet

    From 1 comment
    • Thanks :) That's where I was trying to get to. I did some smaller performance comparisons against C (with -O0), where I was at about 90% speed. But there is a lot of performance…
      EllipticCurve on HN
  • Missing strings, files and input

    From 1 comment
    • :) I (now) agree. In fact, each part isn't even really that hard. It's mostly just a lot to work. And then code generation. I had some headaches with multiple return values and…
      EllipticCurve on HN

Requests

  • Intermediate representation or optimization suggestions

    From 1 comment
    • Congratulations! It looks like a useful and practical design. How is the performance of the generated code? What are you thinking about doing for memory management? Have you…
      kragen on HN
  • Advice on learning compiler construction

    From 2 comments
    • Very cool. What resources did you use to learn how to write the compiler? The "turn code into ASM" step has always mystified me, and I'd like to learn more about how that part of…
      tmountain on HN
    • What would be your advice to someone who's about to write a compiler? I'm planning to start by reading the Dragon book.
      Veera_Sivarajan on HN

Questions

  • How is generated code performance and memory management handled

    From 1 comment
    • Congratulations! It looks like a useful and practical design. How is the performance of the generated code? What are you thinking about doing for memory management? Have you…
      kragen on HN
  • Use cases and whether it can run on Raspberry Pi

    From 1 comment
    • Very cool! Reading the "Why" section resonated with me, as I think creating one's own language is something every programmer should do for the experience. The syntax flows well,…
      lioeters on HN

Alternatives named

  • FASM, YASM, NASM assemblers

    From 2 comments
    • You can try FASM (http://flatassembler.net) besides YASM and ld.
      smlckz on HN
    • Well this is funny. Originally (a number of years ago) I looked at using MASM, then I was informed to switch to MASM. Then (last year or something) I find out YASM is actually…
      fao_ on HN
  • ANTLR parser generator

    From 1 comment
    • Curios if you looked into ANTLR? That's what was used most recently as part of my compiler's course at Georgia Tech.
      itsmemattchung on HN
  • Dragon book and other compiler textbooks

    From 3 comments
    • What would be your advice to someone who's about to write a compiler? I'm planning to start by reading the Dragon book.
      Veera_Sivarajan on HN
    • You both should try "Compiler Construction: Principles and Practice" [0]. Theory is interleaved with substantial examples and exercises. You create an entire compiler for a tiny…
      abnercoimbre on HN
    • http://t3x.org/t3x/index.html#t3x9 If you plan to buy the book, you will have to go to Lulu.com and search for it, as order links seem to be down after a site redesign.
      nils-m-holm on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/23017085)