News for hackers. Stuff that matters.
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by rcarmo on Friday January 01, 2021 @02:45PM (#25606148)
This is a singular thing of beauty, if only because the code is _extremely_ small. It is 3000+ lines long because it is heavily commented and makes for some pretty interesting reading (even if you don't know ARM assembly, it is easy to follow).

It's also a great first addition of the year to my LISP resources page at http://taoofmac.com/space/dev/lisp :)

Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by wrycoder on Friday January 01, 2021 @09:00PM (#25609502)
Don’t miss the Maru interpreter and compiler:

https://www.piumarta.com/software/maru/

Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by GeorgeTirebiter on Friday January 01, 2021 @06:19PM (#25608370)
Yes it's very good. I'm interested in making the small mods to get it to work with NetBSD; but ultimately I'm trying to understand if a lispy environment for STM ARM Cortex-M0 (small) processors can be productively used for real-time embedded systems. I know, I know... I'm more or less thinking an Arduino-like set of standard syscalls for low-level IO, combined with the simple init() and loop() structure ('big loop') for now. Then, multi-threading. Then, the World! (Hello...)
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by jonjacky on Friday January 01, 2021 @06:26PM (#25608431)
This is a 'literate program' - most of the contents of the single file are explanation, not code. It includes an introduction to Lisp and an introduction to ARM assembly!
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by djeiasbsbo on Sunday January 03, 2021 @05:14PM (#25625741)
This is absolutely amazing. I don't know a lot about Lisp but have spent my holidays to get look at ELF binaries and start learning about AArch64 assembly.

Just great to have such a well commented ressource to study!

Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by apricot on Friday January 01, 2021 @10:25PM (#25610094)
Nice! The world needs more literate assembler programs.
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by solvorn on Friday January 01, 2021 @02:34PM (#25606010)
I started porting this to aarch64 a month ago. It’s fun. There are some architecture specific hacks that don’t just translate.
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by klelatti on Friday January 01, 2021 @03:52PM (#25606958)
I was wondering if anyone would do this. Any plans to share your experiences (and the code)?
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by solvorn on Friday January 01, 2021 @06:32PM (#25608486)
It’s a fork on GitHub but it’ll be a month or so till I have a commit ready
Re:Arplisp Interpreter for Raspberry Pi in a Single ASM File... by klelatti on Saturday January 02, 2021 @01:42AM (#25610917)
Thanks. Will look out for it.