Neat! Good job with Wasmer.js btw. We are probably going to use it for libsodium.js.
-
-
Replying to @jedisct1
Yo! Thank you! Much appreciated
Stoked to hear you are gonna try it out, let me know what you think!
1 reply 0 retweets 0 likes -
Replying to @torch2424
Do you know of a magical tool to build TypeScript definitions from C prototypes by chance?
2 replies 0 retweets 1 like -
Replying to @jedisct1 @torch2424
It’s “simply” a parser from .h to .ts, right? But it can be tough to parse C though (its grammar is a nightmare). Can’t we use an output format from the LLVM/clang toolchain somehow?
5 replies 0 retweets 1 like -
Replying to @mnt_io @torch2424
Even with code originally written in AssemblyScript, this still requires too much manual work.
1 reply 0 retweets 1 like -
Replying to @jedisct1 @torch2424
Maybe when WIT will mature a little bit more, we could imagine a reverse process: From WIT, we could generate headers for JS/AssemblyScript/TS/Rust/C etc. cc
@binjimint1 reply 0 retweets 2 likes -
WIT doesn’t sound very useful if it has to be written manually. It would actually add extra work (write WIT, then write wrappers for the generated WIT code instead of writing these wrappers directly). Wasm still has a lot of problems waiting to be solved. Great :)
1 reply 0 retweets 1 like -
I don't think you'll need to write manually - his point is rather that once one language generated Wasm with WIT, you can regenerate bindings from WIT to any other language.
1 reply 0 retweets 2 likes -
Replying to @RReverser @mnt_io and
But does such a tool exist? Or is it just bunch of specifications and discussions?
1 reply 0 retweets 1 like -
No, the spec is not done yet :)
1 reply 0 retweets 1 like
LOL, ok. I’ll stick to JSON definitions, then.
-
-
Replying to @jedisct1 @RReverser and
WIT is still under heavy development. I'm working on a runtime-agnostic crate (in Rust) to parse and manipulate WIT definitions, https://github.com/wasmerio/wasmer/pull/787/ …. But the idea is —indeed— to use WIT to then generate headers for other languages. I think things can go fast.
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.