Somehow I decide to use #Rust rather than #Zig to implement Apache Arrow data type because Rust support multivalue return. However it can only return up to 2 value. And unlike Zig, Rust wasm can't emit nor import mutable-globals 😞. The `static mut` variables are stored in wasm linear memory instead of being `global mut`.
If my guess is correct, `static mut` should be wrapped in `thread_local` macro to produce #wasm mutable-globals. But… it's not yet supported 🥲
#nusa #rustwasm #rust #zig #wasm
#javascript news
Resizable ArrayBuffer has been out for Nodejs and Deno. So the only one left behind now is Firefox :firefoxnew:
Maybe I should consider to use Chrome as my default browser for developing #nusa 😂
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/resize
#nusa #webassembly devlog
Didn't expected that #wasm GC already in origin trial. Seems I need try if Host Types in wasm GC for JS API work in my case before moving to #ApacheArrow.
https://github.com/DrSensor/nusa/issues/5#issuecomment-1492839313
I wonder if there's a language or compiler that already support wasm GC 🤔 (I doubt rust js_sys and wasm_bindgen already support it)
#nusa #webassembly #wasm #ApacheArrow
#nusa devlog
Yes, `Symbol.dispose` is what I need to specify the destructor for handling page transition in my framework.
https://docs.google.com/presentation/d/1Qhrn6w3hcD4_uD9ebKfz4Fd_tJqQyPOI-IlH8keWIfQ
#nusa devlog
I wish #typescript have ability to define the type of imported variable on specific scope 🤔
🇳🇴 Antonio #Nusa, ATT, 2005 (Club Bruges)
A soli 17 anni la giovane ala norvegese ha già a referto un gol in Champions League all’esordio nella competizione con la maglia del Club Brugge.
CHE PUNTEGGIO ASSEGNI?
#nusa #sottoportascoutingaward
#webdev #nusa devlog
Seems this can make the output of hoisted module be more precise when bundling using Rollup 🤔
https://github.com/tc39/proposal-module-declarations
#nusa devlog
Playing with my build system to generate this demo
(thanks to lume.land)
- https://nusa.pages.dev/demo/console/
- https://nusa.pages.dev/demo/counter/
- https://nusa.pages.dev/demo/multi-counter/
A lot of interesting stuff here which make `tsserver` compatible with project that use `deno lsp`. But my main take is the upcoming `@decorator` and auto `accessor`. It help me to implement decorator for `@allocate(memory)` early on.
:undefined::undefined::undefined:
#typescript #nusa
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/
Current status: figuring out how to compile MicroPython into WASM then embed it to #nusa, a no-tools web framework that I made
Damn, only ~3.8kB! Way smaller than RoughJS. I think I gonna use it on #nusa landing page. Let's see, the headline would look like
```javascript
strikethrough( // nope
"npm install nusa"
) |> fadeout
circle( // this is better
'<script async href="https://esm.run/nusa/render-scope"></script>'
) |> fadein
```
https://roughnotation.com/
#nusa devlog
Number of chunks produced by #javascript #bundler code splitting
site: https://7a695d63.nusa.pages.dev/demo/multi-counter/
before: just esbuild
vs
after: Rollup+Sucrase+esbuild
site: https://aa647c9e.nusa.pages.dev/demo/multi-counter/
Still not ideal since I need to patch the chunks after build is done but overall it's okay-ish. Now I need to implement hoistmap to avoid that waterfall request. (maybe later)
PS: notice it produce an empty chunk (0B) when I only using esbuild instead of Rollup++
#nusa devlog
Stage 3 Decorator along with Auto Accessor has been implemented into #TypeScript :ablobcatrainbow:
Now I just need to wait TS v5.0.0 and Deno get updated to the new version. After that I can begin creating decorator for `@reactive`, `@infer`, `@allocate`, `@u8`, `@f32`, `@u64`, and so on.
Hi, how's your new year? Hopefully it's good.
From 1 January 2023, I plan to #buildInPublic my experimental web framework. My aim is to have a framework that is suitable for real-time MPA while load instantly without any setup or compilation. I will use #nusa hashtag to post my progress 😊
site: https://nusa.pages.dev (still blank page)
repo: https://github.com/DrSensor/nusa/releases
#buildinpublic #nusa #projects #webdev #javascript #html