r/Clojure • u/yogthos • Aug 08 '17
Ferret is a restricted subset of Clojure that compiles to ISO C++11
http://ferret-lang.org6
u/aliem Aug 08 '17
Nice! Finally it does have his own home :)
I'm tempted to write a firmware for my Atreus
5
Aug 09 '17
I'd be surprised if you could get it to fit in 2.5kb of RAM. You'd have better luck with MicroScheme: https://atreus.technomancy.us/firmware
1
u/aliem Aug 09 '17
Thank you for the insight, I didn't really take into account anything except the small idea.
BTW, I'm loving the keyb :)
2
1
0
Aug 08 '17
[deleted]
11
u/halgari Aug 08 '17
More than you would expect, not as much as you would like. That sounds really vague bit it's pretty accurate. A lot of the standard library and standard features aren't there, it's mostly a port of some of the ideas of Clojure to C++.
From what I can tell, some things like immutable hashmaps aren't implemented yet (and are super hard to write in a non GC language if you want multithreading support). But it's hard to tell for sure because the sourcecode isn't in a version control repo. So none of that makes me want to dig much more into it.
0
Aug 08 '17
[deleted]
2
u/halgari Aug 09 '17
I'm not sure that's correct, I see
hash-mapreferenced several times in that doc, but no implementation that I can find.
4
u/madmax9186 Aug 08 '17
This project doesn't seem to have a run-time
evalfunction...Granted, this would be hard to hack in because then you need a compiler at runtime. But this functionality is key to being a Lisp.
Other cool embedded Lisp projects include uLisp, and this actually supports
eval.