paip-lisp
mal
Our great sponsors
paip-lisp | mal | |
---|---|---|
65 | 94 | |
6,988 | 9,764 | |
- | - | |
0.8 | 0.0 | |
5 months ago | 8 days ago | |
Common Lisp | Assembly | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
paip-lisp
-
Ask HN: Guide for Implementing Common Lisp
PAIP by Peter Norvig, Chapter 23, Compiling Lisp
https://github.com/norvig/paip-lisp/blob/main/docs/chapter23...
-
Towards a New SymPy
Sounds like a great project idea to make a toy demo of this direction you'd like to see. Maybe comparable to https://github.com/norvig/paip-lisp/blob/main/docs/chapter15... and https://github.com/norvig/paip-lisp/blob/main/docs/chapter8.... which are a few hundred lines of Lisp each, but do enough to be interesting.
-
A few newbie questions about lisp
You could look into Paradigms of AI Programming by Peter Norvig which might interest you regardless of Lisp content.
- Peter Norvig – Paradigms of AI Programming Case Studies in Common Lisp
-
A lispy book on databases
Origen: Conversación con Bing, 4/4/2023(1) gigamonkey/monkeylib-binary-data - GitHub. https://github.com/gigamonkey/monkeylib-binary-data Con acceso 4/4/2023. (2) paip-lisp/chapter4.md at main · norvig/paip-lisp · GitHub. https://github.com/norvig/paip-lisp/blob/main/docs/chapter4.md Con acceso 4/4/2023. (3) bibliography.md · GitHub. https://gist.github.com/gigamonkey/6151820 Con acceso 4/4/2023.
-
sbcl and Let Over Lambda
Worth mentioning it is on github with corrected code (I've already run into mistakes in the printed version) https://github.com/norvig/paip-lisp
-
The Janet Language
Reading Peter Norvig's PAIP (https://github.com/norvig/paip-lisp) in 1998 totally blew my mind. It completely changed how I think about programming in every other language I use(d). I love it still, and always will. And yes, my experience is the same as yours: learning lisp made me a better programmer in every other language I use (especially -- but not only -- Python).
The simplicity and symmetry of the syntax is a big part of that love for me. Being able to manipulate lisp code as lisp data, using the full power of the language to do so, is just brilliant.
Janet looks lovely! Looking forward to the book.
-
How exactly would you go about writing a program to simplify algebraic expressions?
PAIP has some chapters on this. Here is one: https://github.com/norvig/paip-lisp/blob/main/docs/chapter8.md
-
A Few Examples of Lisp Code Typography
For Common Lisp, there are several free books available:
- Practical Common Lisp (aimed at people who know how to program in a more mainstream language already) [1]
- Paradigms in Artificial Intelligence Programming (my personal favorite) [2]
- Common Lisp: A Gentle Introduction to Symbolic Computation (aimed at absolute beginners of programming) [3]
I highly recommend the r/lisp reddit community. Reddit as a platform has its issues, but the (Common) Lisp community there is very responsive and very helpful.
Lastly, you might be interested in checking out a game written entirely in Common Lisp, to be released imminently on Steam. It's called Kandria, and it's effectively 100% Lisp. [4]
[1] https://gigamonkeys.com/book/
[2] https://github.com/norvig/paip-lisp
-
Common Lisp vs Racket
https://github.com/norvig/paip-lisp - Peter Norvig's Paradigm's of AI Programming
https://github.com/norvig/paip-lisp/search?l=Markdown&q=defm... - all references to defmacro in the markdown files
Chapter 3 shows a simple macro, just adding a while loop to the language.
Chapter 9 shows some more complex ones, including a with- macro and a grammar compiler macro.
Chapters 11 and 12 show the development of a Prolog implementation in CL using defmacro to aid in compilation again in Chapter 11.
Chapter 12 shows adding an OO system to the language. Technically not needed with CLOS, but a good demonstration of what can be done with macros.
There are other examples (why I included that search link). Macros let you change the language in ways large and small. Many uses could probably be replaced with functions, though you'd end up having to throw a bunch of quotes about or closures in order to delay processing things.
mal
-
Build Your Own Lisp
Great way to learn C! If you want to learn languages, implementing a lisp interpreter is a great exercise, and lots of fun too.
If you're curious but want a more language-agnostic guide, mal (Make a lisp) is a language that has a guide you can follow along with basically any language, and if you get stuck, you can look at already implemented versions in practically any language: https://github.com/kanaka/mal
Personal favorite implementations of mal: nasm (assembly) (https://github.com/kanaka/mal/tree/master/impls/nasm) and wasm (https://github.com/kanaka/mal/tree/master/impls/wasm)
Here is one implementation of a lisp (mal specifically) in matlab: https://github.com/kanaka/mal/blob/dcf8f4d7b9cf7b858850a04a0...
Only 260 lines of code, pretty concise :)
- Ask HN: What projects did you build to get better as a programmer?
-
Can you beat my dad at Scrabble?
So I started some hobbyist game dev using Unity and realised that the full process of making a game has dependencies on a mass of lower-level skills including lighting virtual environments. As a hobbyist photographer I could see some useful analogies from lighting studios and other scenes
So I pivoted, and eventually made money, not from selling a game, but from developing tutorials about digital lighting. I was also able to contribute to a project at work that was making a product based on commercial games engine, not by actually coding it, but by helping to better estimate the costs of the asset generation required.
Coding Unity object scripts in C# also got me back into programming, and I went on to successfully build a self-hosting lisp interpreter following the Make a Lisp guidelines [0].
[0] https://github.com/kanaka/mal/blob/master/process/guide.md
-
Advice for a first-time designer of my own original programming language? Presently writing the interpreter!
Hijacking the top comment to add https://buildyourownlisp.com and https://github.com/kanaka/mal
-
Writing a lisp
Make a Lisp is a nice starting point.
There is a free book online if you prefer to learn C, or use Mal and implement a Lisp interpreter in any language you wish to learn, step by step by looking up needed parts.
-
Make a LISP in Rust tutorial starting tomorrow.
First some details. We will be following along with MAL which is a language-agnostic guide to creating a LISP. Here is the link https://github.com/kanaka/mal. My goal will be to do one live video for each stage (there are 11 stages). My recommendation is for everyone to attempt the stage themselves before they watch my tutorial. Not because I won't explain it as best as I can. But because I think most people will surprise themselves with their ability to complete it without help. The best way to learn is to write code yourself so even if you do watch me, try implementing it yourself afterwords without looking at my code.
-
Hello
> make my own toy programming language, probably a Lisp dialect
I've learned a lot from the "Make a Lisp" project. If you haven't seen it, I'm sure you will enjoy studying it. https://github.com/kanaka/mal
-
Ask HN: What piece of code/codebase blew your mind when you saw it?
For me it was the "Make a Lisp" project. Reading the architectural diagram of a Lisp interpreter, and browsing its implementation in many (87) programming languages.
Especially where the guide explains how tail-call optimization works, my mind was blown.
https://github.com/kanaka/mal/blob/master/process/guide.md#s...
Studying the project changed the way I understand code. Since then I've created my own little Lisps in about three or four versions/languages. Next I'd like to write one in WebAssembly Text format, which is already in a Lisp-shaped syntax.
What are some alternatives?
30-days-of-elixir - A walk through the Elixir language in 30 exercises.
Crafting Interpreters - Repository for the book "Crafting Interpreters"
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
coalton - Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.
sectorlisp - Bootstrapping LISP in a Boot Sector
picolisp-by-example - The source code of the free book "PicoLisp by Example"
project-based-learning - Curated list of project-based tutorials
slime - The Superior Lisp Interaction Mode for Emacs
common-lisp-by-example - Repo for Common Lisp by Example [Moved to: https://github.com/ashok-khanna/lisp-notes]
hy - A dialect of Lisp that's embedded in Python
pytudes - Python programs, usually short, of considerable difficulty, to perfect particular skills.
wisp - A little Clojure-like LISP in JavaScript