Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
maxgraey
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
maxgraey
6y ago
But for now dynamic linking of two wasm modules is not even possible
32.
▲
by
maxgraey
6y ago
> If folks start compiling large amounts of their functionality into one single chunk of WASM WebAssembly multi memory proposal and nanoprocesses (one of WASI initiative) should solve all this problems as well
33.
▲
by
maxgraey
6y ago
Did you see this repo? https://github.com/vshymanskyy/Wasm3_RGB_Lamp It's realtime wasm3 led strip animation on 16 MHz Cortex-M0
34.
▲
by
maxgraey
6y ago
As you can see AssemblyScript approx 4x-4.5x times faster now
35.
▲
by
maxgraey
6y ago
I made PR which suggest some changes and fixes: https://github.com/Lab41/dnaviz/pull/21
36.
▲
by
maxgraey
6y ago
Do you intensive use small objects like Vec3, Quaternion and etc? AS hasn't scalar replacement optimization pass yet which JavaScript definitely has. Also it will be much better after implementing tuple / records which depends on
37.
▲
by
maxgraey
6y ago
That's pretty interesting. Could you share you project? There are benchmark which compare JavaScript and AssemblyScript: https://github.com/nischayv/as-benchmarks https://github.com/nischayv/
38.
▲
by
maxgraey
6y ago
if you want not only check supporting WebAssembly but also support by version, which post-MVP feature currently support in your browser like simd, threads, multi-values and etc check this package: btw it use only WebAssembly.validate which
39.
▲
by
maxgraey
7y ago
yakir22/ts2cpp compile to C++, has GC, FFI and etc. Canvas example: https://github.com/yakir22/ts2cpp/blob/master/TestScripts/Gr...
40.
▲
by
maxgraey
7y ago
Other TypeScript to C/C++ projects which did a lot more: * https://github.com/ovr/StaticScript * https://github.com/ts-llvm/ts-llvm * https://github.com/nervosnetwork/m
41.
▲
by
maxgraey
7y ago
AS as well as JS interpret code strings as UTF16-LE during follow methods: String.p.codePointAt, String.p.toUpperCase/toLowerCase, String.p.localeCompare, String.p.normalize, String.fromCodePoint, Array.from(str). In rest cases strings
42.
▲
by
maxgraey
7y ago
By the way concurrent algorithm described in paper has couple of bugs that were found and corrected by dcodeIO during prototyping this GC/RC for AssemblyScript: https://github.com/dcodeIO/purerc
43.
▲
by
maxgraey
7y ago
Detailed analysis of what works and what doesn't: https://christine.website/blog/v-vvork-in-progress-2020-01-0...
44.
▲
by
maxgraey
7y ago
check this one: https://github.com/wasm3/wasm3
45.
▲
by
maxgraey
7y ago
AssemblyScript already has tiny hybrid garbage collector (PureRC) which use deferred ARC and GC only for cyclic references: https://github.com/dcodeIO/purerc/blob/master/papers/Bacon03...
46.
▲
by
maxgraey
7y ago
Hmm, autor promised he use some simple range/lifetime analysis for semi-auto memory management. But seems it's not true: https://twitter.com/8vit_devel/status/1141573808320647168
47.
▲
by
maxgraey
8y ago
WASI layer interface for AssemblyScript from Frank Denis: https://github.com/jedisct1/wasa
48.
▲
by
maxgraey
8y ago
I agree. Look for example on book called "Learn WebAssembly" by Mike Rourke which contain similar content on 328 pages and is priced at €16.00, have free preview and code examples
49.
▲
by
maxgraey
8y ago
So much PR of this book is everywhere, as if Brendan Eich himself wrote it!
50.
▲
by
maxgraey
8y ago
That's not true: https://bit.ly/2GMbAN3
51.
▲
by
maxgraey
8y ago
Guys from NEAR Protocol using AssemblyScript and Wasmer together in production
52.
▲
by
maxgraey
8y ago
https://www.reddit.com/r/programming/comments/aqpjkx/replaci...
53.
▲
by
maxgraey
8y ago
I wonder why people still try write transpiler from JS to C/C++ or LLVM (which make sense at least). But this not performant way and usually produce much bigger overhead than jit vm which use speculative optimizations. Some projects: 1