Search
60 results for “drsensor”
-
#nusa devlog
Let's dump my build graph in case I need to revisit again to build my own Rust crate for inline wasm text
https://github.com/DrSensor/nusa/wiki/Development#build-system
-
#rescript compiler without JS runtime
https://github.com/DrSensor/rescript.nix -
@drsensor raise an issue?
Double-check on a different machine (e.g. a VM) and upgrade to the latest version before you do, just in case, and give as much info as you can about what's going wrong.
-
#nusa devlog
I mostly complain that all system programming languages locked to C callconv & ABI which make it hard for me to target wasm32-web.
Now here another deep dive why C ABI cause problems:
- https://faultlore.com/blah/rust-layouts-and-abis/
- https://mcyoung.xyz/2024/04/17/calling-convention/ -
#nusa devlog
alright, so `__attribute__((address_space(N))` has something todo with wasm multi-memory 🤔
http://openasip.org/user_manual/TCE/node15.html
#clang #webassembly -
#nusa devlog
I wonder if there's `rustc` flag to bypass proper ABI adjustment 🤔
I want to target wasm32 but the C ABI Convention get in the way.
#rustlang #webassembly
https://github.com/rust-lang/rust/issues/115666 -
I'm currently learning #ngspice codemodel (.cm), d_process, #qemu QOM and virtio. Wish mew luck 🤠
Special thanks to isotel for opening my eyes from this article. Now I'm tempted to truly go back to my root. (Yes, I'm actually electrical engineer cosplaying as webdev)
https://www.isotel.eu/mixedsim/embedded/motorforce/ -
I'm currently learning #ngspice codemodel (.cm), d_process, #qemu QOM and virtio. Wish mew luck 🤠
Special thanks to isotel for opening my eyes from this article. Now I'm tempted to truly go back to my root. (Yes, I'm actually electrical engineer cosplaying as webdev)
https://www.isotel.eu/mixedsim/embedded/motorforce/ -
I'm currently learning #ngspice codemodel (.cm), d_process, #qemu QOM and virtio. Wish mew luck 🤠
Special thanks to isotel for opening my eyes from this article. Now I'm tempted to truly go back to my root. (Yes, I'm actually electrical engineer cosplaying as webdev)
https://www.isotel.eu/mixedsim/embedded/motorforce/ -
I'm currently learning #ngspice codemodel (.cm), d_process, #qemu QOM and virtio. Wish mew luck 🤠
Special thanks to isotel for opening my eyes from this article. Now I'm tempted to truly go back to my root. (Yes, I'm actually electrical engineer cosplaying as webdev)
https://www.isotel.eu/mixedsim/embedded/motorforce/ -
I'm currently learning #ngspice codemodel (.cm), d_process, #qemu QOM and virtio. Wish mew luck 🤠
Special thanks to isotel for opening my eyes from this article. Now I'm tempted to truly go back to my root. (Yes, I'm actually electrical engineer cosplaying as webdev)
https://www.isotel.eu/mixedsim/embedded/motorforce/ -
I think I found a language that is suitable to write the wasm runtime for #nusa
https://github.com/titzer/virgilI'm hoping that language support multi-values return and multi-memory since wizard-engine also written in Virgil 🤔
https://github.com/titzer/wizard-engine -
Don't expect easy-to-fix bug in JS/TS while aiming to have smallest bundle size. It just too hard!
The worst part is closure compiler can't catch up with latest ES spec 😮💨
I place my hope on #ReScript but it doesn't emit sourcemap and there's no sign they're working on it 😱
-
#nusa devlog
I think I can use this 😏
https://doc.rust-lang.org/core/hint/fn.black_box.html(ugh, I think I should learn how to build my own allocator)
-
Have been playing around with #HATEOAS
Thinking it as document synchronization (i.e alpine-ajax) make it easier to maintain than html swapping (i.e htmx). And, I ended up having less endpoints. It's kinda inconvenience because it based on html `id` and it needs to be unique. But that's why it's predictable.
Tips: some framework has useId(key) to generate html `id`. If not then you can do
```go
const myID = "ident-" + uuidv4() // global
``` -
Now I'm considering replacing #fishshell with #murex 🤔
(still using #nushell as my data-wrangling shell) -
-
Oh, apparently #melange repo provide nix overlay
https://melange.re/v2.2.0/getting-started/#nix -
#SystemProgramming Quiz
Given that you only have the range of line and char position of a file changes, how do you modify/update that file without reading it? -
I like the idea of JSX but in #Lua. A solid choice if you want both template engine and plugin system while keeping the binary small. I wish someday #Soupault adopt this.
https://bvisness.me/luax/ -
I like the idea of JSX but in #Lua. A solid choice if you want both template engine and plugin system while keeping the binary small. I wish someday #Soupault adopt this.
https://bvisness.me/luax/ -
I like the idea of JSX but in #Lua. A solid choice if you want both template engine and plugin system while keeping the binary small. I wish someday #Soupault adopt this.
https://bvisness.me/luax/ -
I like the idea of JSX but in #Lua. A solid choice if you want both template engine and plugin system while keeping the binary small. I wish someday #Soupault adopt this.
https://bvisness.me/luax/ -
I like the idea of JSX but in #Lua. A solid choice if you want both template engine and plugin system while keeping the binary small. I wish someday #Soupault adopt this.
https://bvisness.me/luax/ -
#rescript journey
So I need to create empty folder `node_modules/rescript/`to make `rescript-editor-analysis.exe` to works 😥 -
#webdev #htmlfirst
TIL why `esm.run/[pkg]/` redirect to `cdn.jsdelivr.net/npm/[pkg]/+esm``/+esm` suffix avoid breaking lazy fetch an asset, especially when using wasm module.
example
```javascript
const their = await WebAssembly.instantiateStreaming(
fetch(new URL("their.wasm", import.meta.url)))
```
without `/+esm` suffix, it will point out to `cdn.jsdelivr.net/npm/their.wasm` which is not exist instead of `cdn.jsdelivr.net/npm/[pkg]/their.wasm` -
#nusa devlog
dun..dun-dun
Intent to Ship: WebAssembly Multi-Memory
https://groups.google.com/a/chromium.org/g/blink-dev/c/WSrXwhKeSasOh yeah, #wasm multi-memory is coming!! It really scratch my head implementing Apache Arrow that share memory across instances and boundaries (i.e worker, shader, main-thread).
But wait, I need a Rust crate/macro for wasm inlining (similar to `asm!()` or at least a `#[proc_macro] extern {}`). Using llvm-mc to write wasm specific stuff and link them with rust `output.{so,wasm}` really give me a headache.
-
So you are familiar with migration script for database schema but have you seen a migration script to renew your code with latest libs major version?
For you who stuck in legacy React/PHP, imagine if you have this kind of script 🤭
https://github.com/rescript-association/rescript-core/blob/main/migration/migration.toml -
#WebDev #htmlfirst
Building webapp without hot reload is quite something. And I only use basic https server. It also target web api that only works on mobile Android.My weapons:
- Cloudflare Pages
- alpine-ajax (not htmx) & alpinejs
- eruda (devtool) so I can inspect it on mobile phone
- qrencode (cli)
- httplz (https server)The good side is I don't need to worry about updating the codebase to fit with the latest toolchains in case I revisit it after long inactivity.