nathell/lithium
View on GitHub ↗ ★ 127 Clojure
Clojure-based x86 assembler and toy Lisp compiler
10 mentions on Hacker News by 1 person: 0 stories, 10 comments · first 2013-01-11 · latest 2024-10-22
20082026
-
…working on a similar thing – a Clojure compiler to x86 written in Clojure, with zero dependencies: https://github.com/nathell/lithium
comment by nathell · 2024-10-22 · in A Lisp compiler to ARM written in Lisp -
I once wrote a rudimentary x86 assembler in about 250 lines of Clojure: https://github.com/nathell/lithium/blob/master/src/lithium/a... In general, I find that s-expressions are actually a nice syntax for assembly languages. For x86, they…
comment by nathell · 2023-07-08 · in An ARM Assembler Written in Lisp -
…very incomplete (16-bit x86 only for now) and using a s-expression based syntax, in 253 LOC: https://github.com/nathell/lithium/blob/master/src/lithium/a...
comment by nathell · 2021-10-16 · in Minias – A mini x86-64 assembler for fun and learning -
I'd really like to revive https://github.com/nathell/lithium sometime. It can't bootstrap itself yet, but "no dependencies, runnable on bare metal" was a goal from the start.
comment by nathell · 2020-09-28 · in Sectorforth: A 16-bit x86 Forth that fits in a boot sector -
…to depend on a C compiler or binutils. So I wrote a simple assembler. Here it is, all in Clojure: https://github.com/nathell/lithium It's dormant – I was stuck on implementing environments around step 7 of 24 – but someday I will return to…
comment by nathell · 2019-07-16 · in Let's Build a Compiler -
Here's my x86 assembler in 250 lines of Clojure code that uses Clojure data structures as its input: https://github.com/nathell/lithium/blob/master/src/lithium/a... And a sample program: https://github.com/nathell/lithium/blob/master/exampl…
comment by nathell · 2019-05-28 · in An x86 Assembler in 256 LOC (2017) -
Related, but much much less complete: https://github.com/nathell/lithium
comment by nathell · 2015-09-16 · in The Interim Operating System -
…quite dead yet) is called Lithium [2]. [1]: http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf [2]: https://github.com/nathell/lithium
comment by nathell · 2015-02-28 · in Make a Lisp -
See also Movitz: http://www.common-lisp.net/project/movitz/ and Lithium: http://github.com/nathell/lithium/
comment by nathell · 2014-01-26 · in Yalo – Lisp OS running on bare metal x86-64 hardware -
Been doing something similar for Clojure: https://github.com/nathell/lithium http://blog.danieljanus.pl/blog/2012/05/14/lithium/
comment by nathell · 2013-01-11 · in Ruby inline assembler