sctb/lumen
View on GitHub ↗ ★ 570 JavaScript
A Lisp for Lua and JavaScript
55 mentions on Hacker News by 14 people: 8 stories, 47 comments · first 2015-10-16 · latest 2024-03-25
20082026
-
▲ 12
Lumen: A Lisp for Lua and JavaScriptstory by tosh · 2024-03-25 · 1 comment
-
…of lisp. You don’t need lists to have lisp. In many respects it works better without them; https://github.com/sctb/lumen proves it, since hash tables and arrays are the fundamental data structure. They have to be, because that’s the only…
comment by sillysaurusx · 2024-03-25 · in Gerbil Scheme – A Lisp for the 21st Century -
…One of my all time favorite examples of simple systems is Lumen, which was written by Scott Bell: https://github.com/sctb/lumen It took years of study to understand just how large the ratio was of functionality vs size.
comment by sillysaurusx · 2023-08-19 · in YC Library -
…weeds trying to learn how to write a dependent typed language that compiles to javascript.) [0]: https://github.com/sctb/lumen [1]: https://github.com/jorgebucaran/hyperapp
comment by dunham · 2023-02-28 · in Show HN: Dak – a Lisp-like language that transpiles to JavaScript -
…else, but it’s wonderfully effective. If you want to try it out for yourself, give Lumen a spin: https://github.com/sctb/lumen His Postgres FFI is the prettiest lisp FFI you’ll ever see. https://github.com/sctb/motor/blob/master/pq.l
comment by sillysaurusx · 2022-10-13 · in They Called It LISP for a Reason: List Processing (2005) -
…language called elflang: https://github.com/elflang/elf ... which itself is a fork of Lumen ( https://github.com/sctb/lumen ) by Scott Bell. The performance is good enough to run a minecraft-style game engine:…
comment by sillysaurusx · 2022-04-04 · in A project with a single 11,000-line code file -
▲ 68
Lumen – Self-hosted Lisp for Lua and JavaScriptstory by sudobash1 · 2021-08-16 · 24 comments
-
Not mine! That was all Scott Bell. It's forked from Lumen: https://github.com/sctb/lumen But, I did make an interactive tutorial here: https://docs.ycombinator.lol/ If you have any questions about it, I'd be happy to answer. This stuff is…
comment by sillysaurusx · 2021-07-24 · in How the Python import system works -
…go the opposite route, and run Lisp in your favorite language. Here's a Lisp in JavaScript and Lua: https://github.com/sctb/lumen Integration is easy because there's no integration. You can just call whatever functions you'd normally call.
comment by sillysaurusx · 2021-07-12 · in Julia and the Reincarnation of Lisp (2020) -
…Dan also helped design Lumen, a Lisp that bootstraps itself entirely in Javascript or Lua: http://github.com/sctb/lumen I fell in love with it around... five years ago? Something like that. And to this day I still write code in it all the…
comment by sillysaurusx · 2021-05-14 · in $365B wiped off cryptocurrency market after Tesla stops accepting Bitcoin -
…0123456 Note, I didn't invent this technique. This is courtesy of Scott Bell's Lumen lisp: https://github.com/sctb/lumen I "merely" ported it to Python, and a few billion other things over the years. The specific example listed in the…
comment by sillysaurusx · 2021-04-14 · in Can continuation passing style code perform well? -
▲ 2
Lumen, a Lisp for Lua and JavaScriptstory by tosh · 2021-01-20 · 1 comment
-
Not at all. I've been thanking Scott for making lumen every thanksgiving for several years now. https://github.com/sctb/lumen I just close the issue immediately after opening it. :)
comment by sillysaurusx · 2020-12-27 · in Just Wanted to Say Thanks -
Ah, finally, the ideas from Lumen are percolating slowly into the mainstream: https://github.com/sctb/lumen (It's a lisp for both JS and Lua.) Eslisp is 2015, which is around the same time that Lumen was started:…
comment by sillysaurusx · 2020-10-28 · in Eslisp – An S-expression syntax for ECMAScript/JavaScript, with Lisp-like macros -
For a very simple, very readable Lisp reader, see Lumen's reader.l file: https://github.com/sctb/lumen/blob/master/reader.l It compiles to Javacript and Lua, so if you prefer reading those, you can: https://github.com/sctb/lumen/blob/master…
comment by sillysaurusx · 2020-09-24 · in Compiling a Lisp: Reader -
▲ 2
Lumenstory by tosh · 2020-09-06 · 0 comments
-
…style {} literals to the reader and paired it with hyperapp to write a toy web application. [1]: https://github.com/sctb/lumen
comment by dunham · 2020-09-06 · in Fennel – Lisp in Lua -
Lumen – Lisp in Lua and JavaScript: https://github.com/sctb/lumen Scott Bell wrote a lot of that. I was fascinated by the self-hosting technique. The whole repo is so small that you can almost dismiss it as some kind of academic toy, if…
comment by sillysaurusx · 2020-09-06 · in Fennel – Lisp in Lua -
…you click "run" and type #\a you'll notice you get "a" rather than a syntax error.) [1] Lumen lisp: https://github.com/sctb/lumen
comment by sillysaurusx · 2020-05-25 · in Guilemacs – Emacs with Guile Scheme -
…code, so there's zero extra typing. You can get lisp macros for Javascript using Lumen lisp: https://github.com/sctb/lumen Even without macros, though, I bet this technique is shorter. Suppose you had to store the date + time + IP address…
comment by sillysaurusx · 2020-05-01 · in I’ve Consed Every Pair -
…scratch. Using whatever language you're comfortable with, turn lists of expressions into JS code. https://github.com/sctb/lumen does this in just a couple thousand lines.
comment by sillysaurusx · 2020-02-19 · in Ask HN: How do I learn JavaScript? -
Doubly unfortunate https://github.com/sctb/lumen
comment by pull_my_finger · 2020-01-24 · in Lumen – Elixir and Erlang in the Browser -
…and dictionaries at the same time" objects. (Self-hosted, compiles to both javascript and lua.) https://github.com/sctb/lumen
comment by dunham · 2019-12-21 · in MISC: A homoiconic language based on maps -
▲ 3
Lumen: A Small, Self-Hosted Lisp for Lua and JavaScriptstory by kick · 2019-12-12 · 0 comments
-
…byte-code ties one to a particular implementation. There are at least two other Lisps in Lua * https://github.com/sctb/lumen * https://github.com/SquidDev/urn
comment by sitkack · 2018-09-18 · in Fennel – Lisp in Lua -
…intro guide to Lumen, but for now the best way to jump in is to study test.l and learn by example: https://github.com/sctb/lumen/blob/master/test.l EDIT: By the way, Lumen runs on Torch too. If you want to do some hardcore machine…
comment by shawn · 2018-09-12 · in Lumen: A Lisp for Lua and JavaScript -
It's the best! I learned R last week and added support for it: https://github.com/sctb/lumen/pull/193 There's an old version with Python support here: https://github.com/shawwn/lumen/tree/features/python/bin
comment by shawn · 2018-09-11 · in Lumen: A Lisp for Lua and JavaScript -
…We'll implement this ourselves. Let's dive right in. Start off by cloning Lumen. $ git clone https://github.com/sctb/lumen $ cd lumen $ git checkout aedf2fd2c209bfc7926e0d4eae4becd8a647fb80 $ vim main.l (Commit aedf2fd is just the latest…
comment by shawn · 2018-09-11 · in Lumen: A Lisp for Lua and JavaScript -
…projects, but particularly lisp projects where the boostrap language is replaced with the new one: https://github.com/sctb/lumen/commits/master?before=aedf2fd2...
comment by d0m · 2018-09-11 · in Lumen: A Lisp for Lua and JavaScript -
But then we wouldn't get to call the debugger Numen: https://github.com/gruseom/numen Also https://github.com/sctb/lumen/pull/169
comment by shawn · 2018-09-11 · in Lumen: A Lisp for Lua and JavaScript -
https://github.com/sctb/lumen/blob/master/compiler.l One of the coolest projects. Lumen is entirely self-hosted, so compiler.js is built from compiler.l which represents an algorithm that defines how to build compiler.js.
comment by shawn · 2018-09-11 · in Reazon – miniKanren for Emacs -
…Tear off those strongly typed shackles and write a macro system to expand your grocery lists! https://github.com/sctb/lumen Today is a good day.
comment by shawn · 2018-09-11 · in Reazon – miniKanren for Emacs -
…On Lisp: https://www.lurklurk.org/onlisp/onlisp.pdf Lumen - a Lisp for JavaScript and Lua: https://github.com/sctb/lumen The Art of the Interpeter: https://dspace.mit.edu/bitstream/handle/1721.1/6094/AIM-453.... (^ this last one is very…
comment by shawn · 2018-09-11 · in A micro manual for Lisp – Not the whole truth (1978) [pdf] -
▲ 114
Lumen: A Lisp for Lua and JavaScriptstory by tosh · 2018-09-11 · 31 comments
-
…a macro. If this concept sounds intriguing to anyone, I highly encourage you to check out Lumen: https://github.com/sctb/lumen It's a Lisp that's literally javascript: Compiled code: https://github.com/sctb/lumen/blob/master/bin/reader.js…
comment by shawn · 2018-09-11 · in Stop Writing JavaScript Compilers. Make Macros Instead (2014) -
…( https://github.com/BurntSushi/xsv ) It took hours to figure out how to implement this in rust: https://github.com/sctb/lumen/blob/master/bin/lumen If you want to see an "expert" programmer's attempt at making sense of the language, here…
comment by shawn · 2018-09-10 · in Why Rust closures are somewhat hard -
Hand crafted lisp parser: https://github.com/sctb/lumen/blob/master/reader.l Equivalent JavaScript: https://github.com/sctb/lumen/blob/master/bin/reader.js It’s 158 lines of lisp, fully bootstrapped, and zero fanciness.
comment by shawn · 2018-07-07 · in Learn C and Build Your Own Lisp (2014) -
▲ 3
A Lisp for Lua and JavaScriptstory by tosh · 2018-05-09 · 0 comments
-
Somewhat tangential, but if you want to use Lisp with JS or Lua, you can use Lumen: https://github.com/sctb/lumen I only mention it because it pretty much runs everywhere, and macOS already has a few JS and Lua-based extension mechanisms.
comment by shawn · 2018-05-09 · in LispKit: framework for Lisp-based extension/scripting languages for macOS apps -
…in. There's quite a lot of them, I don't know how they compare: https://github.com/bakpakin/Fennel https://github.com/sctb/lumen https://github.com/leafo/moonlisp https://github.com/SquidDev/urn
comment by cosarara · 2018-04-12 · in Lisp Game Jam 2018 -
Also see Lumen, a Lisp for Lua and JS: https://github.com/sctb/lumen
comment by sillysaurus3 · 2018-03-12 · in Urn: A Lisp implementation for Lua -
Rather than most popular, I propose using the most useful. That'd be Lumen. http://github.com/sctb/lumen It's the only lisp that can interface seamlessly with any JS library you want. Just `npm i leftpad && LUMEN_HOST=node lumen` and type…
comment by sillysaurus3 · 2017-12-08 · in Lisp at the Frontier of Computation [video] -
…years for anyone to even come close ( https://github.com/NicolasPetton/Indium ) as far as I know. https://github.com/sctb/lumen - Scott's project. A self-hosted Lisp that compiles and runs in both JS and Lua. The whole codebase recompiles…
comment by sillysaurus3 · 2017-10-19 · in Analyzing HN moderation and censorship -
…it across different languages, including Python, elisp, ruby, and racket. You can try it out here: https://github.com/sctb/lumen That's Lumen, a Lisp for JS and Lua. One of the coolest aspects is that it compiles to both JS and Lua…
comment by shawn · 2017-09-06 · in Lisp Machine Manual (1984) -
As an alternative to the traditional answers here, consider trying Lumen Lisp: https://github.com/sctb/lumen It's self-hosted in JavaScript and Lua. It matches the JS runtime as closely as possible, so if you're comfortable with JS, Lumen…
comment by sillysaurus3 · 2017-06-29 · in The Common Lisp Cookbook -
▲ 2
A Lisp for Lua and JavaScriptstory by tosh · 2017-05-18 · 0 comments
-
…VM: https://cdn.rawgit.com/vvanders/wasm_lua/d68f46a8/main.html It's a modified version of Lumen ( https://github.com/sctb/lumen ) made to run on this VM. It defines a runtime, a reader, a compiler, then compiles the runtime from Lisp to…
comment by sillysaurus3 · 2017-03-18 · in Lua VM running in a WASM environment -
Yup! I couldn't resist. https://github.com/sctb/lumen I think there's some bug in indexing into Lua tables. print(str({1, 2})) should print "(1 2)", for example, but it triggers an integer overflow error. It's actually capable of compiling…
comment by sillysaurus3 · 2017-03-18 · in Lua VM running in a WASM environment -
Wow, cool. I assume you're referring to https://github.com/sctb/lumen and https://common-lisp.net/project/parenscript/ . Thanks for the info. :) I'm mildly curious how Lumen and Arc differ.
comment by i336_ · 2016-05-11 · in Ask dang: How many HN comments per day do you read? -
…to look into your work later, but I wanted to say (a) very cool! Keep it up! (b) check out Lumen ( https://github.com/sctb/lumen ). It compiles into Lua, and can be powered by LuaJIT. The benchmark performance is off the charts, on par…
comment by laarc · 2015-11-30 · in Show HN: Cleven – a Common Lisp experimental volume graphics game engine