Log in
Sign up
See new Tweets

Conversation

Vladimir Keleshev
@keleshev
·
Mar 29, 2021
You have been asking for it! The compiler from Part I of the book is now ported to OCaml.
github.com
compiling-to-assembly-from-scratch/part-1-compiler.ml at 07c930a65e288c08160ebbb10982b951c83fe3ec ·...
Source code for the book Compiling to Assembly from Scratch https://keleshev.com/cas - compiling-to-assembly-from-scratch/part-1-compiler.ml at 07c930a65e288c08160ebbb10982b951c83fe3ec · keleshev/c...
4
12
47
Brendan Zabarauskas
@brendanzab
·
Mar 29, 2021
Oh cool! This might help me port it to Rust for my own learning. Generally I find OCaml or Haskell easier to port from 😅
1
4
-_-
@boarders__
·
Mar 29, 2021
If you do a rust port the please share. I’m thinking of a Haskell one atm.
1
1
Brendan Zabarauskas
@brendanzab
Replying to
@boarders__
and
@keleshev
I've ported the emitter thing - need to do the parser though
7:25 AM · Mar 30, 2021·Twitter Web App
Vladimir Keleshev
@keleshev
·
Mar 30, 2021
Replying to
@brendanzab
and
@boarders__
Looking forward to seeing it!
1
1
Brendan Zabarauskas
@brendanzab
·
Mar 30, 2021
Finished the port!
github.com
Port the OCaml implementation to Rust by brendanzab · Pull Request #4 · keleshev/compiling-to-ass...
As mentioned on Twitter, I had a go at porting the OCaml code to Rust today! It's probably not fit to merge as-is, but thought you might be interested in seeing it! Some things to note: I used...
1
1
6
Show replies