News for hackers. Stuff that matters.
Re:Show HN: A compiler and VM for a simple language, in 150 ... by tiagoleifert on Saturday July 16, 2022 @06:15PM (#32122444)
> I was referring to the complete lack of flow control. Could you compile the compiler with itself, for example?

This is not a requirement for it to be a compiler.

> They are also VM-based, and self-compiling, yet still tiny. I think they really raised the bar on what a tiny-and-complete compiler is.

The purpose of OP's compiler is educational so this comparison makes no sense.

Re:Show HN: A compiler and VM for a simple language, in 150 ... by jhgb on Sunday July 17, 2022 @09:11AM (#32126454)
While it may not be "a requirement", considering that the very first compiler I'm aware of (Böhm's) was already written in itself, it's a fairly valid question why wouldn't you make an educational compiler with these properties.
Re:Show HN: A compiler and VM for a simple language, in 150 ... by abecedarius on Sunday July 17, 2022 @02:19PM (#32129485)
> an educational compiler with these properties

Far from the only one, but here was mine: https://codewords.recurse.com/issues/seven/dragon-taming-wit...

[dead]
Re:Show HN: A compiler and VM for a simple language, in 150 ... by mirekrusin on Sunday July 17, 2022 @04:52AM (#32125411)
You did pick up that the author is an associate professor teaching classes, not a student, right?
Re:Show HN: A compiler and VM for a simple language, in 150 ... by tiagoleifert on Sunday July 17, 2022 @07:50AM (#32126007)
How studying something super optimized to be small is more practical than learning something step by step?

I am not saying studying those tiny compilers is not useful, just that they are not a good starting point for most people. First you need to learn the basics then you can learn (and appreciate) those tiny compilers.

Re:Show HN: A compiler and VM for a simple language, in 150 ... by userbinator on Sunday July 17, 2022 @04:59PM (#32131189)
It's because everything can be seen at once. The feeling of "that's it?" when you realise the underlying simplicity. Most people think compilers must be incomprehensibly complex. Yet the truth is far from that.
Re:Show HN: A compiler and VM for a simple language, in 150 ... by rdevnull on Sunday July 17, 2022 @05:42AM (#32125534)
seriously he did tell you to read the original post and just a couple of click laters you can find out the OP is a professor not a student..
[dead]
Re:Show HN: A compiler and VM for a simple language, in 150 ... by userbinator on Sunday July 17, 2022 @04:57AM (#32125426)
I thought personal insults and appeal to authority were frowned upon here.
Re:Show HN: A compiler and VM for a simple language, in 150 ... by survirtual on Sunday July 17, 2022 @05:39AM (#32125530)
It is, but I think he is understandably upset because people are engaging with you in good faith but you aren’t reading or acknowledging what they write. Sometimes, it’s good to just take a step back and start with something like “Oops, I missed you are a professor and this is a teaching tool. Disregard that part. I do think, however…”

Otherwise, you’re bound to annoy someone even if you think you are technically contributing.

Re:Show HN: A compiler and VM for a simple language, in 150 ... by userbinator on Sunday July 17, 2022 @05:07PM (#32131295)
The whole point is that I absolutely don't care who or what he is; everyone can learn from the C4 family, and if anything, it would be highly suited to someone teaching compilers.

Otherwise, you’re bound to annoy someone

I see the title has been changed now, but I was certainly annoyed when it was advertised here as a "complete" compiler.

Re:Show HN: A compiler and VM for a simple language, in 150 ... by klohto on Sunday July 17, 2022 @01:04PM (#32128643)
Telling a professor to take C4x86, twice nonetheless, is itching me to create throwaway as well