Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Oh my god, that's so cool? Could I see by any chance? (Edit: found links on your profile, will read more)




I call it the lone programming language.

https://github.com/lone-lang/lone/

It's a lisp interpreter with zero dependencies targeting Linux exclusively.

I've written about a few of its development milestones:

https://www.matheusmoreira.com/articles/self-contained-lone-...

https://www.matheusmoreira.com/articles/delimited-continuati...

I'm particularly proud of my ELF hack to allow the interpreter to introspect into a lisp code section at runtime without any /proc/self/exe shenanigans. Wish other languages would adopt it.

Top comment and its replies talk about linking the lisp code into a self-contained, easily distributable application:

https://news.ycombinator.com/item?id=45989721

I think I addressed that problem adequately. I can create applications by copying the interpreter and patching in some special ELF segments containing lisp modules. The mold linker even added features to make it easy and optimal.

Since there is no libc nonsense, Linux compatibility depends only on the system calls used. Theoretically, applications could target kernels from the 90s.

My Linux system call philosophy:

https://www.matheusmoreira.com/articles/linux-system-calls

At some point I even tried adding a linux_system_call builtin to GCC itself but unfortunately that effort didn't pan out.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: