www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT] The ROMAN II Programming Language

reply matheus <matheus gmail.com> writes:
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.
May 07 2022
parent reply Salih Dincer <salihdb hotmail.com> writes:
On Saturday, 7 May 2022 at 16:15:55 UTC, matheus wrote:
 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.
I reck your work very remarkable. Recruitment processes are sometimes brutal. Please proceed on the path you think is right. I wonder what it would be like if we wrote it in D to do the same job? SDB 79
May 07 2022
parent Tejas <notrealemail gmail.com> writes:
On Sunday, 8 May 2022 at 06:32:47 UTC, Salih Dincer wrote:
 On Saturday, 7 May 2022 at 16:15:55 UTC, matheus wrote:
 [...]
I reck your work very remarkable. Recruitment processes are sometimes brutal. Please proceed on the path you think is right. I wonder what it would be like if we wrote it in D to do the same job? SDB 79
Matheus isn't the author of this software, he's merely posting it here. The author is most likely the github user https://github.com/glouw I saw this posted on reddit recently as well, it's getting around quite a bit, apparently.
May 08 2022