Hacker GitHub

← All repos

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

Mentions per year 10 mentions · busiest year 2015 (2)
20082026
  1. …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
  2. 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
  3. …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...
  4. 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.
  5. …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
  6. 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)
  7. Related, but much much less complete: https://github.com/nathell/lithium
    comment by nathell · 2015-09-16 · in The Interim Operating System
  8. …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
  9. See also Movitz: http://www.common-lisp.net/project/movitz/ and Lithium: http://github.com/nathell/lithium/
  10. 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