Hacker GitHub

← All repos

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

Mentions per year 55 mentions · busiest year 2018 (17)
20082026
  1. ▲ 12
    Lumen: A Lisp for Lua and JavaScript
    story by tosh · 2024-03-25 · 1 comment
  2. …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
  3. …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
  4. …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
  5. …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
  6. …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
  7. ▲ 68
    Lumen – Self-hosted Lisp for Lua and JavaScript
    story by sudobash1 · 2021-08-16 · 24 comments
  8. 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
  9. …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)
  10. …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…
  11. …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…
  12. ▲ 2
    Lumen, a Lisp for Lua and JavaScript
    story by tosh · 2021-01-20 · 1 comment
  13. 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
  14. 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:…
  15. 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
  16. ▲ 2
    Lumen
    story by tosh · 2020-09-06 · 0 comments
  17. …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
  18. 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
  19. …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
  20. …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
  21. …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?
  22. Doubly unfortunate https://github.com/sctb/lumen
    comment by pull_my_finger · 2020-01-24 · in Lumen – Elixir and Erlang in the Browser
  23. …and dictionaries at the same time" objects. (Self-hosted, compiles to both javascript and lua.) https://github.com/sctb/lumen
  24. ▲ 3
    Lumen: A Small, Self-Hosted Lisp for Lua and JavaScript
    story by kick · 2019-12-12 · 0 comments
  25. …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
  26. …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
  27. 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
  28. …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
  29. …projects, but particularly lisp projects where the boostrap language is replaced with the new one: https://github.com/sctb/lumen/commits/master?before=aedf2fd2...
  30. 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
  31. 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
  32. …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
  33. …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…
  34. ▲ 114
    Lumen: A Lisp for Lua and JavaScript
    story by tosh · 2018-09-11 · 31 comments
  35. …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…
  36. …( 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
  37. 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)
  38. ▲ 3
    A Lisp for Lua and JavaScript
    story by tosh · 2018-05-09 · 0 comments
  39. 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.
  40. …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
  41. 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
  42. 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]
  43. …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
  44. …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)
  45. 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
  46. ▲ 2
    A Lisp for Lua and JavaScript
    story by tosh · 2017-05-18 · 0 comments
  47. …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
  48. 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
  49. 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.
  50. …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…