serprex/openEtG
View on GitHub ↗ ★ 82 Rust
15 mentions on Hacker News by 1 person: 0 stories, 15 comments · first 2016-04-30 · latest 2024-04-13
20082026
-
…diversity 7. design algorithms with size in mind, I have a couple lookup tables where I pack bits https://github.com/serprex/openEtG/blob/2011007dec2616d1a24d... encodes an adrenaline mechanic where multiple attacks give lower attack power…
comment by __s · 2024-04-13 · in Tree-shaking, the horticulturally misguided algorithm (2023) -
…while switching some code from floats to fixed point arithmetic (reducing overall wasm blob size) https://github.com/serprex/openEtG/blob/2011007dec2616d1a24d... Tho I could probably save binary size more by importing Math.sqrt from JS
comment by __s · 2024-04-07 · in Did any processor implement an integer square root instruction? -
…or to run game ai outside of UI thread) I was able to go with WebWorkers using a small script: https://github.com/serprex/openEtG/blob/master/src/AiWorker.... (worker code here: https://github.com/serprex/openEtG/blob/master/src/ai.worker..…
comment by __s · 2024-03-14 · in WebAssembly JSPI is going to origin trial -
…Eventually I moved the whole game engine into wasm & at that point it all got ported to Rust https://github.com/serprex/openEtG/blob/8b7069cc52ec8db3406a...
comment by __s · 2023-09-05 · in Learn WebAssembly by writing small programs -
…plugin is nice, I since gave up on wasm-pack & added a build-wasm to my package.json's scripts: https://github.com/serprex/openEtG/commit/9997fb098d168920bb... This way if someone wants to contribute to openetg they don't need to install…
comment by __s · 2021-12-17 · in Authoring a SIMD enhanced WASM library with Rust -
…to separate begin-compute & wait-on-compute I've rewritten a nodejs game server into rust, https://github.com/serprex/openEtG/tree/master/src/rs/server... handleget/handlews are quite straight forward. But apparently it doesn't work
comment by __s · 2021-11-13 · in Why asynchronous Rust doesn't work -
…eviction. It doesn't meet my requirements because I store the in-memory content precompressed https://github.com/serprex/openEtG/blob/master/src/rs/server... edit: seems it can. Nice
comment by __s · 2021-10-01 · in Freqfs: In-memory filesystem cache for Rust -
…I didn't have to deal with closures much because I'm comfortable writing a 2000 line match 0: https://github.com/serprex/openEtG/tree/master/src/rs/server
comment by __s · 2021-03-10 · in Why asynchronous Rust doesn't work -
My .travis.yml for a node project is pretty simple: https://github.com/serprex/openEtG/blob/542c645c53dba36d6653... Python's easy too: https://github.com/serprex/aespython/blob/c3256b656308af8119... A Rust repo I contribute to has a…
comment by __s · 2020-11-06 · in Travis CI's new pricing plan threw a wrench in my open source works -
I updated openEtG to use React instead of PixiJS. https://etg.dek.im https://github.com/serprex/openEtG Fixed some UI bugs, made it straight forward implement features like better animations & replays, performance improved by removing…
comment by __s · 2020-05-08 · in Rebuilding our tech stack for the new facebook.com -
I brought it into openEtG to speed up the engine's RNG: https://github.com/serprex/openEtG/blob/master/src/rng.wat
comment by __s · 2020-03-26 · in Firefox's low-latency WebAssembly compiler -
https://etg.dek.im https://github.com/serprex/openEtG/tree/master/src Quite a bit of the server & client share code. Card handling logic, deck code handling in etgutil, eventually I'd like to move the game engine to being serverside, user…
comment by __s · 2018-06-07 · in Things I Regret About Node.js [video] -
…off a spritesheet, in the SVG I just offset it so that the rest of the image is clipped away Code: https://github.com/serprex/openEtG/blob/master/svg.js If this seems off topic.. well I'm bad at being personal, & in response to a personal…
comment by __s · 2017-04-20 · in Me and SVG -
My framework looks like this: https://github.com/serprex/openEtG/blob/master/dom.js The code that uses it looks like this: https://github.com/serprex/openEtG/blob/master/views/MainMen... The site looks like this: http://etg.dek.im I…
comment by __s · 2016-10-12 · in You might not need JavaScript -
…went through canvas/pixijs but over time only a few views aren't DOM http://etg.dek.im for site http://github.com/serprex/openEtG for source It does a lot of dynamic content generation, which dom.js has proved sufficient for
comment by __s · 2016-04-30 · in You probably don't need a JavaScript framework