5 ms·
Lisp in QBASIC
- scottlocklin 12y agoThat's nuthin: here's lisp in Fortran: https://github.com/blakemcbride/LISPF4 https://github.com/blakemcbride/LISPF4
- yellowapple 12y agoI feel dirty for having read such blasphemy. :P
- tempodox 12y agoBlasphemy it is. However, McCarthy and his team actually tried to use Fortran as the implementation language for the first LISP compiler, but Fortran was not in the mood to cooperate. Before C, nothing could beat Assembler, I guess...
- deleted 12y ago[deleted]
- acqq 12y agoSpecifically, the original Fortran source: https://github.com/blakemcbride/LISPF4/blob/master/Lispf42.f https://github.com/blakemcbride/LISPF4/blob/master/Lispf42.f f2c translation: https://github.com/blakemcbride/LISPF4/blob/master/lispf42.c https://github.com/blakemcbride/LISPF4/blob/master/lispf42.c
- shaunxcode 12y agoTo paraphrase Jurassic Park: "lisp finds a way"
- bsder 12y agoI seem to recall more than a few Lisp interpreters in BASIC. I'm almost certain that BYTE or Dr. Dobbs had one. I'm also pretty sure that one of the TRS-80 rags had one. I can't seem to find them now, however. Sadly, I'm like everybody else nowadays. If it isn't on Google, it doesn't exist.
- brudgers 12y agoA classic, Lisp in TRS-80 Basic: http://mypage.iu.edu/~rdbeer/Software/BasicLisp/BasicLisp1.pdf http://mypage.iu.edu/~rdbeer/Software/BasicLisp/BasicLisp1.p... Lisp in Atari Basic: http://www.cs.rit.edu/~anh/lisp_soft.html http://www.cs.rit.edu/~anh/lisp_soft.html
- abecedarius 12y agoByte September 1981 did have a nontrivial program in Lisp: it parsed, differentiated, and simplified algebraic expressions. (I remember it fondly as my first Byte issue and first exposure to Lisp and calculus, the latter two almost equally mysterious. But going back and rereading the code, it was amateurish.) I don't remember any Lisp in Basic in either Byte or DDJ, and I'd have probably seen it.
- userbinator 12y agoTwo more esoteric Lisp interpreters: Lisp in BrainFuck: http://code.google.com/p/zozotez/ http://code.google.com/p/zozotez/ Lisp in Befunge: https://github.com/shinh/beflisp https://github.com/shinh/beflisp
- FigBug 12y agoWhile we are all posting these types of things, here is a Scheme I did in Prolog: https://github.com/FigBug/scheme https://github.com/FigBug/scheme
- cninja 12y agoMight as well add my Lisp in PHP: https://github.com/cninja/pEigthP https://github.com/cninja/pEigthP
- aashishkoirala 12y agoI started programming in the 7th grade with QBASIC. This made me nostalgic. Thanks for sharing. Nice seeing WEND after a long time.
- bubblicious 12y agoYes :) QuickBasic enabled you to build your EXEs. Biggest IDE upgrade I have seen for a long time!
- llllllllllll 12y agoQBasic was my first experience with programming too.
- mtdewcmu 12y agoFinding a language that doesn't have a Lisp and writing a Lisp for it is probably the most predictable way to get on Hacker News. What's left?
- AnkhMorporkian 12y agoWriting QBasic in LISP?
- quadstick 12y agoProlog, another old AI language. Digitalk Smalltalk used to come with Prolog written in Smalltalk. http://en.wikipedia.org/wiki/Prolog http://en.wikipedia.org/wiki/Prolog
- JadeNB 12y agoFigBug scratched that itch above: https://news.ycombinator.com/item?id=8077748 https://news.ycombinator.com/item?id=8077748.
- visarga 12y agoIs there such a small, native Lisp in Perl?
- abecedarius 12y agohttps://github.com/darius/awklisp https://github.com/darius/awklisp includes a Perl port contributed by someone who wished to remain anonymous.
- codygman 12y agoHaskell implemented in PHP?
- jwdunne 12y agoHeh, this would be torturous. I translated Peter Norvig's python lisp interpreter to PHP as a little get-me-started, the end result was not pleasant.
- jenscow 12y ago"Why does this exist? I wanted to write an interpreter and was stuck on a Windows XP laptop without Internet" We have all had one of those days... :)
- bubblicious 12y agoI was thinking about this. Also everytime I have been forced to find a solution without using the internet I have been thrilled about what I learned. Too bad I never make that happen more often... :(
- tempodox 12y agoI haven't inspected it in detail, but it goes to show again how little you need to implement something LISP-y. My first LISP was built in C, which feels almost banal in comparison (it was longer, too).
- bencollier49 12y agoCome on, someone do Lisp in Piet.