Do you have anything real to show? Do you have already a working memory safety mechanism?
pouyathe 1 days ago [-]
"Update: Wow, this got a second life! Seeing a spike in GitHub clones (328+ in 2 days). If anyone's trying G, I'd love to hear:
What's your use case?
What's the biggest hurdle you faced?
What feature would make G actually useful for you?
Thanks for checking it out! — A 17yo student building this."
Still, I have to respect the dedication it must have taken to get this working. I'm sure you'll go far.
My advice to you would be to read Crafting Interpreters by Bob Nystrom (it's free online) and try to apply some of the techniques from it to your project.
Everything was going reasonably OK until I got down to that gigantic rat's nest of if-else statements and embedded for loops. OMG
ternaryoperator 57 minutes ago [-]
Yowza! Lines 1566-1637 consist entirely of closing braces. That's 70 closing braces in a row. Beyond the nightmare of maintenance, it's got to be a performance drag on the compilation.
olivia-banks 1 hours ago [-]
I think this is a really cool project! The syntax here is interesting. I was wondering if you could shed some light on it, I wasn't able to find what `[@] : ` or `[%] : ` meant.
Also, can I ask why the source code for the interpreter looks like that? This is an honest question. I thought it might have been machine generated (via a sort of self-hosting G transpiler) but the comments at the top dissuade me from this view.
Rendered at 06:07:08 GMT+0000 (Coordinated Universal Time) with Vercel.
Still, I have to respect the dedication it must have taken to get this working. I'm sure you'll go far.
My advice to you would be to read Crafting Interpreters by Bob Nystrom (it's free online) and try to apply some of the techniques from it to your project.
https://craftinginterpreters.com/
Also, can I ask why the source code for the interpreter looks like that? This is an honest question. I thought it might have been machine generated (via a sort of self-hosting G transpiler) but the comments at the top dissuade me from this view.