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
20082026
-
…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…
comment by __s · 2024-02-26 · in It's OK to abandon your side-project -
…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
comment by __s · 2023-09-11 · in Pure WASM Life 2: Optimizing WebAssembly and Canvas -
…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 -
…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 -
> 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.
comment by jnbiche · 2018-10-11 · in Walt: JavaScript-like syntax for WebAssembly -
…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...
comment by dtf · 2018-10-11 · in Walt: JavaScript-like syntax for WebAssembly -
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…
comment by __s · 2018-10-11 · in Walt: JavaScript-like syntax for WebAssembly -
…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 -
Copying GC can be straight forward to implement: https://github.com/serprex/luwa/blob/d96ba8fc478813a0a65a65c... Get to punt the allocator as a bump allocator
comment by __s · 2017-11-29 · in Emacs with the SpiderMonkey garbage collector -
…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 -
…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 -
…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
comment by __s · 2017-06-18 · in Attempt to Reverse a $55 Million Ether Heist -
…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…
comment by __s · 2017-06-03 · in Asi64 – A Racket-based 6502 assembler -
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 -
…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…
comment by __s · 2017-03-30 · in Optimize your Node app by upgrading Node.js