• 7 Posts
  • 42 Comments
Joined 2 年前
cake
Cake day: 2023年9月2日

help-circle






  • KillTheMuletoRustTypst is hiring
    link
    fedilink
    arrow-up
    5
    ·
    10 个月前

    Man, I’d love that, if only the pay was better… but than again, if the pay was better I’d be even less qualified. But typst is awesome, all the best wishes for the team including the new hire :)













  • KillTheMuleOPtoRustTypst 0.12 released
    link
    fedilink
    arrow-up
    3
    ·
    1 年前

    One thing that prevents me from letting users build their own templates is the scripting capabilities. A joker creating an endless loop could block the whole server.

    I know little about servers, but can’t you run the generation in a thread with a timeout or so? Or maybe compile to wasm and let the generation run on the users machines? I also know little about wasm, but I’d have guessed it has facilities to keep runtime and load under control.

    What would be nice is a “safe” mode in which no access to the file system (include and sorts) and limited runtime makes it safe to let users build their own templates.

    Ah, are you by chance shelling out to the typst binary? You can actually use typst as a library, and then you’ve got full control over the files involved, so it’s “safe” in that respect.






  • only affect very select use cases

    I did not read the whole conversation, but sorting seems a very common usecase (not mine, but seems to me a lot of people sort data), so this seems quite a broad improvement to me.

    that is already perceived as a pain point

    Note though, as is mentioned in the issue, that the survey showed people still prioritize runtime performance over compilation performance in general, so this tradeoff seems warranted.

    the total regression is still minor

    It’s not unheard of that regressions can be unmade later on, so here’s hoping :)