-
krig
@mort Now I was looking into compiling tree-sitter grammars and how to do that without getting problems with code signing checks on mac os.. and I think we may be stuck with including a wasm toolchain after all. But maybe we could at least use zig to compile instead. It’s a bit sad that there doesn’t seem to be a lightweight embeddable C to Wasm-compiler :(
-
krig
it’s possible though that for running the wasm code there could be lighter options
-
koru
krig, isn't Rust can (cross-)compile C code without WASM?
-
mort
I checked out https://github.com/explodingcamera/tinywasm and was able to evaluate 1 + 2 to get 3 with a 5MB binary and with only 4 seconds of compile time, that's promising
-
mort
that includes a wat parser as well btw, which we wouldn't need, and has serde and a bunch of other things which we depend on anyway
-
mort
I badly wanna write my own wasm bytecode interpreter now! it shouldn't actually be very hard
-
krig
yeah right?? but I think the big challenge are all the extensions.. wasi and wit, I think maybe tree-sitter grammars use wasmtime-specific api calls? it’s a mess..
-
mort
huh I would've expected tree-sitter grammars to compile to a baseline which doesn't require anything other than standard C, it doesn't need any IO after all
-
mort
maybe the rust tree-sitter library depends on non-standard things?
-
koru
Hm, some langs do not compile after merge.
-
krig
yeah I think I have gotten things working.. had to update the erlang grammar and revert the golang changes
-
krig
golang seems to need some pretty big changes to the rust code..
-
koru
Found funny ironic thing: https://www.everydev.ai/tools/gram-editor
-
koru
krig, what you think about create and pin issue to track discussion about new extension system? I think some people don't use XMPP and don't read chat archive.
-
krig
Yeah that could make sense. I have thought about creating issues for features I am thinking about so people know and we can discuss.
-
mort
Maybe it would be a good idea to add another "tracking" issue type? I made an issue for the "sorting out runtimes" project but just used the "other:" kind
-
krig
yeah that would make sense
-
koru
i see no reason to add discussion template 'cause we already have "todo" template
-
mort
I didn't use "todo" just because it doesn't feel right to add a todo item to "the project", but maybe I could have just as well done that✎ -
mort
I didn't use "todo" just because it doesn't feel right to add a todo item to "the project", but maybe I could have just as well used that ✏
-
koru
mort, sorry I mean "other" template just tired when write this
-
krig
I could rename other to something more descriptive.. “rfc” maybe
-
koru
what does mean "rfc"?
-
krig
request for comment, the rust project has RFC process to discuss planned features and suggestions
-
krig
btw @koru I found a PR in Zed that should fix the Go stuff, so I will backport that and then reapply the grammar updates
-
koru
> btw @koru I found a PR in Zed that should fix the Go stuff, so I will backport that and then reapply the grammar updates Awesome! ↺
-
koru
> request for comment, the rust project has RFC process to discuss planned features and suggestions I think it's not obvious for regular user ↺
-
krig
true.. hard to find a good word
-
koru
Millions must open PRs at the Gram's repo.
-
koru
haha
-
willowispll
ive been trying to poke it out more, no progress
-
willowispll
ig thats a tradeoff for using a language no one else uses