[OT] The ROMAN II Programming Language

matheus matheus at gmail.com
Sat May 7 16:15:55 UTC 2022


Hi,

Just sharing this because seems a neat work. I saw this yesterday 
on /r/C_Programming.

Link to the project: https://github.com/glouw/rr

According to the author: /u/_cwolf

"Some context, this was an experiment to show that a modern day 
garbage collected programming language akin to some of the 
earlier python2s can by written in about ~5k lines of pure C 
without external dependencies. It's all within a single file, 
including a recursive descent parser, assembler, virtual machine, 
and garbage collector. Included be some 40 examples of leetcode 
to showcase that the language (dubbed roman2) can optimally solve 
medium and hard style leetcode questions.".

More context on another sub:

"I suppose, as a little context, I was rather discouraged with 
the recent interview process and so I took it upon myself to turn 
what would be a standard practice in our industry into a little 
bit of condensed art. The entirety of roman2 lives within 
roman2.c which includes a virtual machine, garbage collector, 
assembler, and compiler with a hand rolled recursive descent 
parser. I aimed to keep it all under 5k lines of C, with no 
external dependencies, keeping the source style similar to 
Crenshaw's Let's Build a Compiler series. The aim was to solve 
leetcode - like one would to gain new job prospects - but just 
with that of a custom language to prove that failing technical 
interviews is at least not a poor reflection of one's technical 
merit.

I'm certainly not trying to boast technical merit. I just find 
the technical process of hiring overwhelmingly complex.".

Matheus.


More information about the Digitalmars-d mailing list