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. …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
  2. …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
  3. …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
  4. …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
  5. …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
  6. 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
  7. …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)
  8. …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…
  9. …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…
  10. 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
  11. 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:…
  12. 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
  13. …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
  14. 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
  15. …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
  16. …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
  17. …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?
  18. Doubly unfortunate https://github.com/sctb/lumen
    comment by pull_my_finger · 2020-01-24 · in Lumen – Elixir and Erlang in the Browser
  19. …and dictionaries at the same time" objects. (Self-hosted, compiles to both javascript and lua.) https://github.com/sctb/lumen
  20. …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
  21. …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
  22. 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
  23. …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
  24. …projects, but particularly lisp projects where the boostrap language is replaced with the new one: https://github.com/sctb/lumen/commits/master?before=aedf2fd2...
  25. 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
  26. 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
  27. …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
  28. …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…
  29. …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…
  30. …( 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
  31. 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)
  32. 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.
  33. …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
  34. 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
  35. 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]
  36. …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
  37. …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)
  38. 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
  39. …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
  40. 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
  41. 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.
  42. …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…
  43. ObjC's dot syntax? Sure. That's easy in Lumen: https://github.com/sctb/lumen/commit/6410c8cc2de66d1976515bd... Is it possible to use this technique to introduce, say, infix arithmetic operators? Yep! I wrote a macro to swap any instance of…
    comment by laarc · 2015-10-16 · in Show HN: `diff arc0 arc3.1`
  44. …those C functions." It quite simply rocks. If you're interested in Arc, consider Lumen as well. https://github.com/sctb/lumen It has many similarities to Arc, like a powerful macro system, and has some interesting distinctions, like…
    comment by laarc · 2015-10-16 · in Show HN: `diff arc0 arc3.1`
  45. …They've been working on it for about three years, and it shows. You should totally check it out: https://github.com/sctb/lumen Imagine a language whose startup time was faster than python / ruby / node, yet could be bent into whatever…
    comment by laarc · 2015-10-16 · in Show HN: `diff arc0 arc3.1`
  46. …we wrote to support HN moderation—so I use it every day. 1. https://github.com/gruseom/numen 2. https://github.com/sctb/lumen 3. https://news.ycombinator.com/item?id=3291065 4. https://news.ycombinator.com/item?id=6544926
    comment by dang · 2015-10-16 · in Enjoying Parenscript (Mostly)
  47. …yet? Ok, so Arc runs on Racket. So did Laarc. Then we had the good fortune to hear about Lumen: https://github.com/sctb/lumen It's a Lisp that compiles to either Javascript or Lua. It literally exhibits the same behavior whether you're…
    comment by laarc · 2015-10-16 · in Show HN: `diff arc0 arc3.1`