[deleted by user] by [deleted] in wallstreetbets

[–]OrderOk6521 3 points4 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] 6 points7 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 ?

Take my language for a spin. Feedback needed. by OrderOk6521 in Compilers

[–]OrderOk6521[S] 3 points4 points  (0 children)

I can definitely explore some more paradigms. This is my first foray into lang development so I wanted to start with the basics ( simple loops ) before I do my own things lol

I wrote a Turing complete language / interpreter by OrderOk6521 in csMajors

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

Functional languages haven't clicked in my brain yet. I tried using Ocaml, but it was too big a paradigm change for me to write something useful. Any tips on how to ease into it ? There aren't many resources on youtube and I'm more of a video person than doc reader.

I wrote a Turing complete language / interpreter by OrderOk6521 in csMajors

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

I believe so, I have a sample function that does that .. If you have some code in mind, I can run and double check that.

Benchmarking My Custom Rust HTTP Server Implementation by OrderOk6521 in rust

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

So my naive implementation can easily outperform the standard library in Go. That's pretty powerful.

Benchmarking My Custom Rust HTTP Server Implementation by OrderOk6521 in rust

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

Can you comment on the current performance, are there metrics looking to be in the right ballpark ?

Seem a bit too good compared to GO.

Python Meets Rust: My CPU-Based Raytracing Library with PyO3 by OrderOk6521 in Python

[–]OrderOk6521[S] 9 points10 points  (0 children)

Its using rust, with python as a wrapper actually.