MISC has been a long time in the creation. It started when I got sick of XML’s lack of consistent structure and heavy markup. I wanted something consistent and clean like LISP but with a more general basic data structure. This was the initial spark “LISP with maps instead of lists”.
- [if [> 5 10] then:[+ 5 10] else:[– 5 10]]
- [let '[square:[lambda '[x:1] '[* x x]]]
- [take 20 [numbers from:0]]
After writing some example pseudo code to see what it would look like, I wrote a simple version in a couple of days. Since that speedy start the actual design with the complexities of a language have taken a very long time to finish. I changed the basic structure several times to fix major issues I hadn’t thought of and I switched the design from an eager language to a lazy language which I felt matched the base data structure of maps better.
I became interested in how rich metadata as basic part of the language and the source code could enable powerful reflective programming, like documentation built into source code. All these different ideas and designs added up and every time I thought “Would it not be easier if it just worked like language X,” I had to tell myself if it did there’d be no point in writing MISC. Thus the result is not a language for real-world use but one that I hope embodies many different unique and novel design decisions in a way that triggers thoughts and ideas in those that take the time to play with it.
What’s different and why you should be interested:
- Novel LISP-like language
- Homoiconicity (ie. source code that is data) using maps
- A great lazy data-language
- Cool stuff with metadata
- A metacircular– interpreter and syntax-colourer
Not only that; but it runs as an applet with some neat inline documentation: MISC