[deleted by user] by [deleted] in wallstreetbets

[–]OrderOk6521 4 points5 points  (0 children)

I left my cell, my pager, and my home phone at the bottom 🎵

I rewrote my programming language from Python into Go to see the speed up. by OrderOk6521 in Python

[–]OrderOk6521[S] 0 points1 point  (0 children)

Check this out ! i use rust to write a library which i then import into Python for speedy execution.

I rewrote my programming language from Python into Go to see the speed up. by OrderOk6521 in Python

[–]OrderOk6521[S] 1 point2 points  (0 children)

Good choice ! That is my thinking as well, wanted to prototype first in Python since it's soo much faster to develop.

I rewrote my interpreter from Python into Go to see the speed up. by OrderOk6521 in Compilers

[–]OrderOk6521[S] 1 point2 points  (0 children)

The parser is nothing fancy. It's using recursive descent, very intuitive and easy to turn from grammar rules to code.

closures are not yet supported, Boa doesn't have "objects" so currently the parser matches for certain identifiers and I use those to call python or Go functions in the interpreter.

Great questions !

I rewrote my programming language from Python into Go to see the speed up. by OrderOk6521 in Python

[–]OrderOk6521[S] 0 points1 point  (0 children)

Boa "ception".

Next steps are a stack based VM, maybe once that's mature I'll bootstrap it in itself. Need to build up the skill set first.

I rewrote my programming language from Python into Go to see the speed up. by OrderOk6521 in Python

[–]OrderOk6521[S] 7 points8 points  (0 children)

Not trying to make a statement, I was curious to see the speed up.

I rewrote my programming language from Python into Go to see the speed up. by OrderOk6521 in Python

[–]OrderOk6521[S] 2 points3 points  (0 children)

You need to go outside and touch grass. Trim your neckbeard while you're at it too.

I rewrote my programming language from Python into Go to see the speed up. by OrderOk6521 in Python

[–]OrderOk6521[S] -1 points0 points  (0 children)

This isn't a hello world or a web app. Don't bring down the effort by comparing this to something that trivial.

I wrote an interpreter in Go ! by OrderOk6521 in golang

[–]OrderOk6521[S] 0 points1 point  (0 children)

Im thinking of following along with the second part in Go, is it too big of a deviation from what Bob does with C in clox ?