The Gram Code Editor - 2026-10-15


  1. 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 :(

  2. krig

    it’s possible though that for running the wasm code there could be lighter options

  3. koru

    krig, isn't Rust can (cross-)compile C code without WASM?

  4. 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

  5. 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

  6. mort

    I badly wanna write my own wasm bytecode interpreter now! it shouldn't actually be very hard

  7. 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..

  8. 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

  9. mort

    maybe the rust tree-sitter library depends on non-standard things?

  10. koru

    Hm, some langs do not compile after merge.

  11. krig

    yeah I think I have gotten things working.. had to update the erlang grammar and revert the golang changes

  12. krig

    golang seems to need some pretty big changes to the rust code..

  13. koru

    Found funny ironic thing: https://www.everydev.ai/tools/gram-editor

  14. 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.

  15. 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.

  16. 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

  17. krig

    yeah that would make sense

  18. koru

    i see no reason to add discussion template 'cause we already have "todo" template

  19. 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 ✎

  20. 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 ✏

  21. koru

    mort, sorry I mean "other" template just tired when write this

  22. krig

    I could rename other to something more descriptive.. “rfc” maybe

  23. koru

    what does mean "rfc"?

  24. krig

    request for comment, the rust project has RFC process to discuss planned features and suggestions

  25. 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

  26. 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! ↺

  27. 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 ↺

  28. krig

    true.. hard to find a good word

  29. koru

    Millions must open PRs at the Gram's repo.

  30. koru

    haha

  31. willowispll

    ive been trying to poke it out more, no progress

  32. willowispll

    ig thats a tradeoff for using a language no one else uses