kanaka/mal
View on GitHub ↗ ★ 10,756 Assembly
mal - Make a Lisp
128 mentions on Hacker News by 80 people: 13 stories, 115 comments · first 2015-02-27 · latest 2026-07-17
20082026
-
…that make up the basis of all languages. It's a perfect (meta)subject for an educational project. ¹ https://github.com/kanaka/mal
comment by lioeters · 2020-10-01 · in Compiling a Lisp to x86-64: Let expressions -
…possible - The Make-a-Lisp project and the language-agnostic conceptual design at the heart of it - https://github.com/kanaka/mal/blob/master/process/guide.md - Declarative nature of React (the view as function of state); using centralized…
comment by lioeters · 2020-09-07 · in Ask HN: As a developer what are your aha moments? -
…(e.g. you know calculus) * graphics programming is much, much harder than making a lisp. [0] https://github.com/kanaka/mal [Edit: formatting]
comment by KineticLensman · 2020-08-19 · in Graphics Programming Projects -
As of a few days ago, the mal bash implementation runs under Oil :) https://github.com/kanaka/mal/pull/518
comment by chubot · 2020-06-17 · in Robpike/Lisp: Toy Lisp 1.5 interpreter in Go -
…as a reference, but my end result looks pretty different. Learned a TON. Highly recommended. [1] https://github.com/kanaka/mal
comment by kgwxd · 2020-06-17 · in Robpike/Lisp: Toy Lisp 1.5 interpreter in Go -
…I was going to look at games again I'd probably start with a simpler engine such as Godot [2] [0] https://github.com/kanaka/mal/blob/master/process/guide.md [1] https://github.com/norvig/paip-lisp [2] https://godotengine.org/
comment by KineticLensman · 2020-05-24 · in Ask HN: Looking for side project ideas -
…“(How to Write a (Lisp) Interpreter (in Python))”[1] really helped me understand the basics. [0] https://github.com/kanaka/mal [1] https://norvig.com/lispy.html
comment by misframer · 2020-04-19 · in Ask HN: What is the best way to learn Lisp in 2020? -
…microcosm of many areas of CS. Areas of self study I think are nice are MAL - Make a Lisp https://github.com/kanaka/mal Nand2Tetris, project 11 https://www.nand2tetris.org/project11 (one should start from zero and make your way here, it is…
comment by sitkack · 2020-04-13 · in So you want to be a compiler wizard (2016) -
I also recommend checking out the Make a Lisp project: https://github.com/kanaka/mal You can see the source code for a small Lisp interpreter in 81 different languages.
comment by azhenley · 2020-04-12 · in So you want to be a compiler wizard (2016) -
…Example Code in Shell, Awk, and Make http://www.oilshell.org/blog/2016/11/14.html [1] https://github.com/kanaka/mal/tree/master/impls
comment by chubot · 2020-03-03 · in The growth of command-line options, 1979-Present -
…- Learn C by creating a lisp in C - In the spirit of making your own lisp, I would recommend https://github.com/kanaka/mal - learn any language, by making a lisp in that language
comment by ballpark · 2020-02-11 · in Ask HN: What are some books where the reader learns by building projects? -
…having nothing to do with compilers (e.g. writing a custom dynamic array implementation in C). [0] https://github.com/kanaka/mal/blob/master/process/guide.md
comment by cbdumas · 2020-01-08 · in C Compiler from Scratch -
A few things I did in the past I would definitely recommend: * Make a Lisp https://github.com/kanaka/mal — tutorial on how to make a lisp language interpreter. * Make an 8 bit computer https://eater.net/8bit — tutorial on making a simple 8…
comment by petethepig · 2019-12-15 · in Challenging projects every programmer should try -
Joel Martin first presented about Mal in 2014 and his presentation was written in Mal. Awesome! https://github.com/kanaka/mal/blob/master/examples/clojurewe...
comment by tony-allan · 2019-11-30 · in Mal – Make a Lisp, implemented in 79 languages -
…tests help to guide you through the process. Very cool. [0] http://kanaka.github.io/lambdaconf/ [1] https://github.com/kanaka/mal [2] https://www.youtube.com/watch?v=jVhupfthTEk
comment by garren · 2019-11-25 · in Writing An Interpreter In Go (2016) -
…python and everything between. Videos walking through the guide are available too [2], [3] [0] https://github.com/kanaka/mal [1] https://github.com/kanaka/mal/blob/master/process/guide.md [2] https://www.youtube.com/watch?v=jVhupfthTEk [3]…
comment by garren · 2019-11-13 · in Building a Parser -
…into Rust. Spending some time with Nim actually helped me bridge the gap from Python to Rust. [1] https://github.com/kanaka/mal
comment by nnadams · 2019-10-30 · in Nim: Scripting Ease in a Compiled Language -
…and not something specific wrt bash. But in this case I know of https://github.com/BYVoid/Batsh and https://github.com/kanaka/mal/tree/master/bash
comment by sitkack · 2019-10-20 · in Compiling my own SPARC CPU inside a cheap FPGA -
…would be more appropriate (and fun) to re-implement one of the early chatbots like ELIZA [1]. [0] https://github.com/kanaka/mal/blob/master/process/guide.md [1] https://en.wikipedia.org/wiki/ELIZA
comment by KineticLensman · 2019-02-28 · in Let’s LISP like it’s 1959 [video] -
…where I realise that my improved self confidence is masking the fact that I am actually wrong. [0] https://github.com/kanaka/mal/blob/master/process/guide.md
comment by KineticLensman · 2019-02-06 · in Our physiological processes become increasingly simple as we age -
…on Github [1]. Someone even took it upon themselves to write an implementation in AWK :) [2] [1] https://github.com/kanaka/mal/ [2] https://github.com/kanaka/mal/tree/master/awk
comment by gizmo385 · 2019-01-08 · in Maze-solving algorithm implemented in sed -
There's also Make a Lisp: https://github.com/kanaka/mal/blob/master/process/guide.md It's available in a variety of languages and has a nice guide (linked) to various steps.
comment by emidln · 2018-09-13 · in Ask HN: What's a starting point for learning how to write programming languages? -
…series of exercises which you can work through. Project Euler is great. Make-a-lisp is great as well (github.com/kanaka/mal). Turn what you learn into blog posts, github gists, or flash cards -- distill your knowledge into easily…
comment by cellularmitosis · 2018-08-16 · in The Akrasia Effect: Why We Don’t Follow Through on What We Set Out to Do -
You could try MAL (Make A Lisp) - it has a go version. https://github.com/kanaka/mal/tree/master/go
comment by phoe-krk · 2018-07-07 · in Learn C and Build Your Own Lisp (2014) -
MAL (Make a Lisp) is a good one around building a lisp. https://github.com/kanaka/mal Lots of examples across 72 languages.
comment by runevault · 2018-03-15 · in Ask HN: “Write your own” or “Build your own” software projects -
…code, but also more features. The guide is awesome and split into several self-contained steps. [0] https://github.com/kanaka/mal/blob/master/process/guide.md
comment by petethepig · 2017-11-26 · in Lisp in fewer than 200 lines of C -
You will like this: https://github.com/kanaka/mal (Have implementation in pascal!)
comment by mamcx · 2017-09-14 · in Energy Efficiency Across Programming Languages -
…Self-hosting and Interop.”[1] From there, you’ll be more than ready to generate machine code. [0]: https://github.com/kanaka/mal/blob/master/process/guide.md [1]: https://github.com/kanaka/mal/blob/master/process/guide.md#s...
comment by gbacon · 2017-09-12 · in Mal – Make a Lisp, in 68 languages -
See the design narrative at “Step 5: Tail call optimization”[0] in The Make-A-Lisp Process[1]. [0]: https://github.com/kanaka/mal/blob/master/process/guide.md#s... [1]: https://github.com/kanaka/mal/blob/master/process/guide.md
comment by gbacon · 2017-09-12 · in Mal – Make a Lisp, in 68 languages -
…through a pointer-to-function where the types do not match invokes undefined behavior. [0]: https://github.com/kanaka/mal/blob/master/c/types.h#L85
comment by gbacon · 2017-09-12 · in Mal – Make a Lisp, in 68 languages -
Could someone explain this gem in the C version? https://github.com/kanaka/mal/blob/master/c/types.c#L170
comment by yosyp · 2017-09-12 · in Mal – Make a Lisp, in 68 languages -
…in getting started, these are good intros to the basics: - http://www.buildyourownlisp.com/ - https://github.com/kanaka/mal
comment by christophilus · 2017-08-23 · in D as a Better C -
Not mine but here's a Lisp interpreter written in Make: https://github.com/kanaka/mal/tree/master/make
comment by unmole · 2017-07-24 · in Ask HN: In what creative ways are you using Makefiles? -
…create a template language, as something like pandoc was forbidden. It was awful, but worked. [0] https://github.com/kanaka/mal/tree/master/make
comment by shakna · 2017-07-24 · in Ask HN: In what creative ways are you using Makefiles? -
…there's also Make-a-Lisp (MAL), an ongoing project to write lisp in every programming language: https://github.com/kanaka/mal In particular, here's their R version: https://github.com/kanaka/mal/tree/master/r
comment by jordigh · 2017-07-17 · in A basic Lisp interpreter in R -
…a "let me show you how it works", I always have to reference back to the MAL (make a lisp) project: https://github.com/kanaka/mal I find it's better to write it yourself than just have it explained to you. It really doesn't take that long…
comment by falcolas · 2017-05-22 · in Little Lisp interpreter -
…it's been challenging and interesting. It gives clear direction without being too hand-holdy. [0] https://github.com/kanaka/mal
comment by mbil · 2017-05-12 · in Writing a Lisp: Explicit Stack and Stacktraces -
…on templeos is, I believe, completely uncharted ground ... so in my infinite spare time ... https://github.com/kanaka/mal
comment by VLM · 2017-03-28 · in Mega Man for TempleOS -
There is also this https://github.com/kanaka/mal/pull/187
comment by pvinis · 2017-03-27 · in Make your own Lisp -
…interpreter than it is for any other language. All you need to understand the appeal is a look at https://github.com/kanaka/mal . Personally I learned the appeal of lisp while following this tutorial on writing a scheme in Haskell:…
comment by pebblexe · 2017-03-24 · in Lisp Quickstart -
Once again pimping one of my favorite DIY projects - Make A Lisp. Lisp in (almost) every language! https://github.com/kanaka/mal I find it to be a great tool for both learning about Lisp and the language you're writing your mal…
comment by falcolas · 2017-02-06 · in Building a Lisp from scratch with Swift -
…might find Mal's bash implementation interesting [0]. Mal is a small, easy to implement Lisp. [0] https://github.com/kanaka/mal/tree/master/bash
comment by shakna · 2017-01-29 · in BaCon – BASIC to C converter -
Another one https://github.com/kanaka/mal (quite famous AFAIK)
comment by agumonkey · 2016-12-16 · in The Idea of Lisp -
…the programmer to feel safe. [0] https://github.com/Gabriel439/Haskell-Dhall-Library/issues/6 [1] https://github.com/kanaka/mal/tree/master/awk
comment by shakna · 2016-12-07 · in Dhall 1.0.1: a total programming language specialized to configuration files -
…It doesn't take much away from the learning, but it really lessens the possible frustration a lot. https://github.com/kanaka/mal/blob/master/process/guide.md Just in case anyone is interested, here's my implementation in Python 3.5+. I'm…
comment by dancek · 2016-10-24 · in How to Write a Lisp Interpreter in Python (2010) -
…tour, but touches on a lot of very interesting parts of parsing, code generation, and optimization. https://github.com/kanaka/mal/blob/master/process/guide.md
comment by phamilton · 2016-05-24 · in Rich Programmer Food (2007) -
Useful for getting started: https://github.com/kanaka/mal
comment by macintux · 2016-05-17 · in Ask HN: What are some rite-of-passage style projects for programmers? -
On the topic of writing lisps, an obligatory link to my favorite project: Make a Lisp https://github.com/kanaka/mal
comment by falcolas · 2015-10-29 · in Learn C and build your own Lisp -
…writing your own. I was working on a haxe version before my motherboard recently bit the dust. [1] https://github.com/kanaka/mal
comment by cromo · 2015-09-15 · in Lisp implementation in GNU make