Hacker GitHub

← All repos

serprex/luwa

View on GitHub ↗ ★ 97 Lua

WIP jit lua to wasm

15 mentions on Hacker News by 3 people: 0 stories, 15 comments · first 2017-03-30 · latest 2024-02-26

Mentions per year 15 mentions · busiest year 2017 (7)
20082026
  1. …a successful open source card game (openEtG), Luwa remains my most starred project on github: https://github.com/serprex/luwa I regretted stalling on this project for a long time, since it was a bit of a cumulation of my minimalist…
  2. …bytecode eval working, so no result) & wrote table's code in wasm (which was then used by lexer) https://github.com/serprex/luwa/blob/master/rt/_table.lua
  3. …some parsing, & well that's not so hard when you've written a Lua parser a year beforehand: https://github.com/serprex/luwa/blob/master/rt/astgen.lua (an astute reader will notice I don't handle precedence here, which is pretty important…
    comment by __s · 2020-11-14 · in Guido van Rossum joins Microsoft
  4. …chunked calls to string.char(table.unpack(buf, n, n+4096)) Example of what I'm complaining about: https://github.com/serprex/luwa/blob/master/rt/make.lua#L758 So all said I don't disagree with you: Lua can fall short, it doesn't have the…
    comment by __s · 2018-10-30 · in A Look at the Design of Lua
  5. > Resulting code for a gc looks like this: https://github.com/serprex/luwa/blob/master/rt/gc.lua Nice! That's a compact gc, perfect for browsers.
  6. …https://developer.mozilla.org/en-US/docs/WebAssembly/Text_fo... [2] https://github.com/tmcw/wah [3] https://github.com/serprex/luwa [4] https://medium.com/cirru-project/webassembly-s-expression-an...
  7. I've been going with Lua for writing raw webassembly Assembler setup: https://github.com/serprex/luwa/blob/master/rt/make.lua Resulting code for a gc looks like this: https://github.com/serprex/luwa/blob/master/rt/gc.lua & it leaves the…
  8. …machine (with constraints like .NET which allow for easy conversion to SSA) Example: A Lua lexer, https://github.com/serprex/luwa/blob/f048aa2f67dfae00740d556...
    comment by __s · 2018-04-12 · in Sneak Peek at WebAssembly Studio
  9. Copying GC can be straight forward to implement: https://github.com/serprex/luwa/blob/d96ba8fc478813a0a65a65c... Get to punt the allocator as a bump allocator
  10. …in WASM (using Lua as a macro assembler, ofc). Long term I'd like to have it jit wasm code: https://github.com/serprex/luwa Currently in the process of porting the parser & codegen that's implemented in Javascript to Lua so that I can have…
    comment by __s · 2017-11-05 · in Fengari: Lua for the Browser
  11. …room for variation I had the joy to be out of reach of off-the-shelf hashtables for luwa, init: https://github.com/serprex/luwa/blob/436c7271120fcd116af30e9... get/set: https://github.com/serprex/luwa/blob/436c7271120fcd116af30e9... hash:…
    comment by __s · 2017-08-23 · in Write a hash table in C
  12. …Felt like taking the bite today. I'm going to get back to getting my lexer past 1000 lines today: https://github.com/serprex/luwa/blob/master/rt/lex.wawa
  13. …Feels like it be useful compared to the hand writing I've been doing, here's an in-progress lexer: https://github.com/serprex/luwa/blob/master/rt/lex.wawa with the janky wawa assembler being https://github.com/serprex/luwa/blob/master/scrip…
  14. https://github.com/serprex/luwa Have a basic interpreter worked out, currently implementing tracing, no WASM currently being output. I have some previous experience generating wasm tho: https://github.com/serprex/Befunge…
    comment by __s · 2017-04-21 · in Me and SVG
  15. …Firefox. I've currently got a generator stress test in using generators to implement a lua parser: https://github.com/serprex/luwa/blob/2c1ef6be42b804144340a2e... Currently trying to rewrite the Exp rule from using combinators to using…