News for hackers. Stuff that matters.
Re:Wisp: A light Lisp written in C++ by cubano on Monday December 28, 2020 @11:39AM (#25560580)
I can't help but think of this line from "The Joy of Clojure"...

Go to any open source project hosting site, and perform a search for the term Lisp Interpreter. You'll likely get a cyclopean mountain of results from this seemingly innocuous term.

Re:Wisp: A light Lisp written in C++ by mumblemumble on Monday December 28, 2020 @12:35PM (#25561126)
Lisp and Forth might be the only languages out there where writing a basic interpreter is a reasonable weekend project and a decent way to get your feet wet with some new language you want to learn.
Re:Wisp: A light Lisp written in C++ by O_H_E on Monday December 28, 2020 @12:39PM (#25561178)
Ok wow. Any few-weekends length resources you know about?
Re:Wisp: A light Lisp written in C++ by mumblemumble on Monday December 28, 2020 @12:46PM (#25561254)
Re:Wisp: A light Lisp written in C++ by stevekemp on Tuesday December 29, 2020 @02:19AM (#25567553)
I actually hacked up a simple forth-like system, after reading a brief howto here on hackernews:

https://github.com/skx/foth/

Here's the thread which has the barebones overview which inspired me:

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

I could have taken it further, but the implementation there is not "real" in the sense that there is no real return-stack, so you can't implement IF-statements using the lower-level primitives.

That said it is a good starting point, and I had some fun doing it. I'd guesstimate it is more of a single weekend project though, rather than longer.

Re:Wisp: A light Lisp written in C++ by shakna on Monday December 28, 2020 @06:19PM (#25564508)
This is one of my favourites [0] that goes a lot further than most, but fits the timeframe. Error handling, macros, standard library all included.

[0] http://www.buildyourownlisp.com/

Re:Wisp: A light Lisp written in C++ by lmohseni on Monday December 28, 2020 @10:09PM (#25566321)