3 ms·
Yep! Trying to write my very first programming language[1]. Aiming to have a legit GC (mark/sweep), a legit VM with bytecode (possibly stack-based to start out
by sdegutis 11y ago
Yep! Trying to write my very first programming language[1]. Aiming to have a legit GC (mark/sweep), a legit VM with bytecode (possibly stack-based to start out with), and familiar data types. Oh and I'm doing it entirely in C, because I have a special love/hate relationship with C that never seems to die. It's going slow, but very fun!
[1]: https://github.com/sdegutis/Paladin https://github.com/sdegutis/Paladin
- dominotw 11y agoI think this explains the popularity of compiler articles on HN these days.
- krat0sprakhar 11y agoAny resources that you're using to help you implement this? Looks cool!
- sdegutis 11y agoSorry for not responding earlier. Setting noprocrast seems to have this as its major drawback, that I can't reply in a timely manner. I don't have many resources. Only these two: - GC tutorial: http://journal.stuffwithstuff.com/2013/12/08/babys-first-garbage-collector/ http://journal.stuffwithstuff.com/2013/12/08/babys-first-gar... - intro to hash tables: http://www.cs.yale.edu/homes/aspnes/pinewiki/C(2f)HashTables.html http://www.cs.yale.edu/homes/aspnes/pinewiki/C(2f)HashTables...
- sdegutis 11y agoOh wait I have one more resource: - The Implementation of Lua 5.0: http://www.lua.org/doc/jucs05.pdf http://www.lua.org/doc/jucs05.pdf It's not meant as a tutorial, but it's nice as a checklist and a reference.