૮༼⚆︿⚆༽つ · @drsensor
113 followers · 586 posts · Server fosstodon.org

[side note for devlog]

Now I just need something that can swap the runtime of `nodePackages.rollup` (nodejs) with deno.

#nusa #nixpkgs

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
112 followers · 572 posts · Server fosstodon.org

devlog
rant

Somehow I decide to use rather than 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 mutable-globals. But… it's not yet supported 🥲

#nusa #rustwasm #rust #zig #wasm

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
109 followers · 508 posts · Server fosstodon.org

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 😂

developer.mozilla.org/en-US/do

#javascript #nusa

Last updated 1 year ago

devlog

Didn't expected that 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 .
github.com/DrSensor/nusa/issue

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

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
102 followers · 387 posts · Server fosstodon.org

devlog

Yes, `Symbol.dispose` is what I need to specify the destructor for handling page transition in my framework.
docs.google.com/presentation/d

#nusa

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
101 followers · 381 posts · Server fosstodon.org

devlog

thinking about mode of reactivity inside effect/compute 🤔

#nusa

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
98 followers · 355 posts · Server fosstodon.org

TIL for simple ultra fast testing
- use test library (not runner) like zora, uvu, or jasmine-core for testing dynamic page/content (i.e SPA, Island)
- use DOM emulation like linkedom or happy-dom for testing static page/content (i.e SSG, SSR)

#nusa #webdev

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
97 followers · 341 posts · Server fosstodon.org

devlog

I wish have ability to define the type of imported variable on specific scope 🤔

#nusa #typescript

Last updated 1 year ago

Sottoporta :verified: · @sottoporta
688 followers · 1462 posts · Server mastodon.uno

🇳🇴 Antonio , 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

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
93 followers · 317 posts · Server fosstodon.org

devlog
Seems this can make the output of hoisted module be more precise when bundling using Rollup 🤔
github.com/tc39/proposal-modul

#webdev #nusa

Last updated 1 year ago

૮༼⚆︿⚆༽つ · @drsensor
88 followers · 265 posts · Server fosstodon.org

devlog

Playing with my build system to generate this demo
(thanks to lume.land)

- nusa.pages.dev/demo/console/
- nusa.pages.dev/demo/counter/
- nusa.pages.dev/demo/multi-coun

#nusa

Last updated 2 years ago

૮༼⚆︿⚆༽つ · @drsensor
88 followers · 264 posts · Server fosstodon.org

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:


devblogs.microsoft.com/typescr

#typescript #nusa

Last updated 2 years ago

૮༼⚆︿⚆༽つ · @drsensor
86 followers · 254 posts · Server fosstodon.org

Current status: figuring out how to compile MicroPython into WASM then embed it to , a no-tools web framework that I made

#nusa

Last updated 2 years ago

૮༼⚆︿⚆༽つ · @drsensor
86 followers · 249 posts · Server fosstodon.org

Damn, only ~3.8kB! Way smaller than RoughJS. I think I gonna use it on landing page. Let's see, the headline would look like

```javascript
strikethrough( // nope
"npm install nusa"
) |> fadeout
circle( // this is better
'<script async href="esm.run/nusa/render-scope"></script>'
) |> fadein
```
roughnotation.com/

#nusa

Last updated 2 years ago

૮༼⚆︿⚆༽つ · @drsensor
86 followers · 249 posts · Server fosstodon.org

devlog

Number of chunks produced by code splitting

site: 7a695d63.nusa.pages.dev/demo/m
before: just esbuild
vs
after: Rollup+Sucrase+esbuild
site: aa647c9e.nusa.pages.dev/demo/m

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 #javascript #bundler

Last updated 2 years ago

૮༼⚆︿⚆༽つ · @drsensor
86 followers · 242 posts · Server fosstodon.org

devlog

Stage 3 Decorator along with Auto Accessor has been implemented into :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.

github.com/microsoft/TypeScrip

#nusa #typescript

Last updated 2 years ago

૮༼⚆︿⚆༽つ · @drsensor
85 followers · 223 posts · Server fosstodon.org

And this is how you name some stuff in your personal project 😂

#nusa #naming

Last updated 2 years ago

:t_blink:╰༼⚆︿⚆༽つ · @drsensor
84 followers · 220 posts · Server fosstodon.org
ヾ(^-^)ノ :t_blink: · @drsensor
85 followers · 218 posts · Server fosstodon.org

I call this feature Scoped Live Testing 🤔 (draft)

#nusa

Last updated 2 years ago

ヾ(^-^)ノ :t_blink: · @drsensor
82 followers · 182 posts · Server fosstodon.org

Hi, how's your new year? Hopefully it's good.

From 1 January 2023, I plan to 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 hashtag to post my progress 😊

site: nusa.pages.dev (still blank page)
repo: github.com/DrSensor/nusa/relea

#buildinpublic #nusa #projects #webdev #javascript #html

Last updated 2 years ago