Live data from Hacker News

Show HN: Going into freshman year, figured I should build an interpreter

news.ycombinator.com

11–20 of 84 posts

Re: Show HN: Going into freshman year, figured I should build an interpreter

#14
post #11

[flagged]

I'd say C is actually a pretty good choice for an educational project like this. Having to write out all of your data structures by hand and manage your memory manually is a good learning experience, and since you're not writing serious production code, you don't have to worry too much about making mistakes.

Re: Show HN: Going into freshman year, figured I should build an interpreter

#15
post #14
post #11

[flagged]

I'd say C is actually a pretty good choice for an educational project like this. Having to write out all of your data structures by hand and manage your memory manually is a good learning experience, and since you're not writing serious production code, you don't have to worry too much about making mistakes.

_someone_ has to learn to build runtimes

Re: Show HN: Going into freshman year, figured I should build an interpreter

#16
post #11

[flagged]

C is like a high level assembly language. It maps very closely to how the computer actually runs programs. That, and it’s simplicity, make it a great way to learn.

It’s not usually a great idea for production code anymore, but for learning it’s fantastic.

Re: Show HN: Going into freshman year, figured I should build an interpreter

#17
post #11

[flagged]

C is like a high level assembly language. It maps very closely to how the computer actually runs programs. That, and it’s simplicity, make it a great way to learn. It’s not usually a great idea for production code anymore, but for learning it’s fantastic.

That old chestnut. C is nothing remotely like an assembly language, of any kind. It is a low-level programming language, but only compared to most languages. Disassemble some compiled C code sometime -- it's another world entirely.

Re: Show HN: Going into freshman year, figured I should build an interpreter

#18
Nicely done.

You're a freshman, picked up C over the summer, and have already built an interpreter for a language that you haven't officially been taught yet, and have a blog with a couple dozen posts.

I'll be honest, people with achievements like yours make me feel pretty worthless.

Re: Show HN: Going into freshman year, figured I should build an interpreter

#19

Earlier quoted context omitted.

C is like a high level assembly language. It maps very closely to how the computer actually runs programs. That, and it’s simplicity, make it a great way to learn. It’s not usually a great idea for production code anymore, but for learning it’s fantastic.

That old chestnut. C is nothing remotely like an assembly language, of any kind. It is a low-level programming language, but only compared to most languages. Disassemble some compiled C code sometime -- it's another world entirely.

I’ve programmed in both assembly and C, among other things. I stand by it, C is much closer to the machine than most languages.

Re: Show HN: Going into freshman year, figured I should build an interpreter

#20
post #10

Congratulations, this is great. Have you thought about spending some time writing down what you had to learn and how you went about figuring out what to learn in order to do this? I think it'd be even more interesting than the language itself.

Yeah actually, stay tuned! :D
Post reply on HN