3 ms·
I think femtolisp powers Julia's code parsing and helps make Julia so lisp-like. Femtolisp can be run with as an argument to julia: `julia --lisp` > julia --
by thetwentyone 5y ago
I think femtolisp powers Julia's code parsing and helps make Julia so lisp-like. Femtolisp can be run with as an argument to julia: `julia --lisp`
> julia --lisp
; _
; |_ _ _ |_ _ | . _ _
; | (-||||_(_)|__|_)|_)
;-------------------|-----------------------
- leephillips 5y agoThe creator of FemtoLisp, Jeff Bezanson, is one of the creators of Julia. And even if you’re not particularly interested in learning about another version of Lisp, the README is well worth your time.
- civilized 5y agoIt's hard to imagine there will ever be a more entertaining README. You barely even need to know any of the concepts involved to enjoy it.
- ninjin 5y agoIt does indeed still sit at the core of the language for parsing: https://github.com/JuliaLang/julia/blob/release-1.7/src/julia-syntax.scm https://github.com/JuliaLang/julia/blob/release-1.7/src/juli...
- chubot 5y agoYes and this makes all the Lisp-like metaprogramming possible! https://docs.julialang.org/en/v1/manual/metaprogramming/ https://docs.julialang.org/en/v1/manual/metaprogramming/ It's pretty cool, although I haven't used it much myself
- adgjlsfhk1 5y agoI'm hopeful that it gets replaced in the nearish future by a pure Julia parser. Femtolisp is definitely cute, but as other parts of compilation have sped up, Julia's parser has started to show up as a measurable percentage of compile time. Getting a parser written in pure Julia would make it easier to make improvements, and it would be a decent amount faster (see CSTParser.jl which is roughly 10x faster than Julia's built-in parser).