Live data from Hacker News

Viewing profile — norir

norir

HN member
Joined
Thu, Nov 17, 2022, 7:08 AM UTC
HN karma
1,111
Public activity
442 items

About norir

For those who haven't been trained by it, no discipline feels better at the time, but painful.

Recent public activity

  1. comment
    Comment #49147885

    I would suggest adding objective metrics. How fast is this compiler? How long is the longest fuse program? How long does it take to compile? How fast at runtime is the fuse impleme…

  2. comment
    Comment #49135827

    If you need better performance than a higher level language affords you, I would not recommend programming directly in asm. Instead, I would write a compiler. Raw asm is seductive …

  3. comment
    Comment #49062987

    I agree with your diagnosis but not entirely the solution. I think fixed sized integers in general are a non portable mistake in a language high level language. Instead, a language…

  4. comment
    Comment #48937260

    This piece would have been a lot more compelling if they had actually done science on selecting a language for compiler development. From what I can tell, they had an untested hypo…

  5. comment
    Comment #48813125

    This infrastructure is also slow and leads to poor compilation times for any language that uses llvm as a backend. In an era of automatic code generation, this will become more and…

  6. comment
    Comment #48789612

    This feels like it should have been a warning rather than an optimization in the first place. In my opinion, dead code elimination should only be done during link time optimization…

  7. comment
    Comment #48612255

    Perhaps then it would be better to not use tools of this level of complexity.

  8. comment
    Comment #48590055

    I am actively opposed to this design for a first compiler. There is no need for a lexer with a recursive descent parser. Register allocation is also an unnecessary distraction. It …

  9. comment
    Comment #48447841

    Terry Tao is a next level vibe coder: he inspires people to do his vibe coding for him. As someone with a background in advanced math, though never even close to Tao's level, I fin…

  10. comment
    Comment #48401923

    I think the people with extreme positions are often the most useful because they get closer to the source of the argument. Extreme boosters of ai often want to either bypass develo…

  11. comment
    Comment #48394212

    > We could start off with how are you worse off because of people wealthier than you? You are smart enough to come up with some answers of your own. It's rude to demand others to d…

  12. comment
    Comment #48375990

    It is hard for me to fully trust a compiler backend that isn't self hosted. There is a discipline that self hosting imposes that would both improve the quality of their ir as well …

  13. comment
    Comment #48253157

    When using null terminated strings, parsing can be branchless because you don't need bounds checks and can use a jump table indexed by the byte.

  14. comment
    Comment #48212113

    This is not a hard thing to do without using a library. The code below is easily adapted to the unsigned case and/or arbitrary base rather than 10. #include int main(int argc, char…

  15. comment
    Comment #47999599

    The product and the process are not orthogonal.

  16. comment
    Comment #47990622

    This is true, which means that a language has to be designed from the ground up to deal with these problems or there will always be inscrutable bugs due to misuse of arithmetic res…

  17. comment
    Comment #47990361

    In my reading, what Stroustroup is saying is that given other problems in c/c++, that singed sizes are less bad than unsigned but both have clear and significant deficiencies. A ne…

  18. comment
    Comment #47865386

    I also expect that most side projects that are made with ai end up abandoned within 3 months and contribute next to nothing to the user's personal development and that the use of a…

  19. comment
    Comment #47827526

    This highly depends on the language and your skill as a compiler writer. You can write a single pass assembler that generates great code but you have to of course write the low lev…

  20. comment
    Comment #47616793

    You don't need a repl for this workflow and it can be easily implemented in any language. `ls *.MY_LANG | entr -c run.sh` You get feedback whenever you save the file. Personally, I…

  21. comment
    Comment #47601757

    It is easily possible to parse at > 1MM lines per second with a well designed grammar and handwritten parser. If I'm editing a file with 100k+ lines, I likely have much bigger prob…

  22. comment
    Comment #47548912

    > I recognize that it is reminiscent of a few decades ago when old timers complained about the proliferation of high level programming languages and insisted they would lead to a g…

  23. comment
    Comment #47283198

    > In the meantime, there's nothing stopping you from using the agent to write the code that is every bit as high quality as if you sat down and typed it in yourself. You can only s…

  24. comment
    Comment #47184365

    If you have well defined boundaries, you can move the stack to an arbitrarily large chunk of memory before the recursive call and restore it to the system stack upon completion.

  25. comment
    Comment #47089270

    I have a personal aversion to defer as a language feature. Some of this is aesthetic. I prefer code to be linear, which is to say that instructions appear in the order that they ar…