FunnyCore/README.md

11 lines
No EOL
1 KiB
Markdown

# This is my FunnyCore interpreter
The aim of this project was just to create a little VM for the FunnyCore, featured in Imperial's Computing Year 1 Undergraduate Computer Architecture Coursework (that's a mouthful).
I noticed so many people using weird wonderful and whacky combinations of Kotlin, C and Python, so I'm showing my 'native' language a little bit of love.
Sometimes it's not about code quality and maintainability but being completely transparent and terse.
This is an example of that methodology, in just about an hour and 50 lines of code I can jump the competition slightly.
I would have proferred to use NEL to translate into FunnyCore's instruction set so I can have labels etc. Unfortunately I hadn't finished the standard library by then, so I used a quick and dirty macro script to compile a version I could understand.
In this case `comp.lua` and the associated 'silly' language, honouring its own name is (in my opinion) a much uglier program!
My solution for the FunnyCore division problem runs in about 120 cycles.