Elektrine lite

← Feed

@kinnison@social.flarn.net

Post #2241180

2026-03-19 08:15 UTC

@bal4e@tech.lgbt I'm considering building a small DSL for some projects of mine, and wanted to have them be garbage collected since most use of the DSLs will be small scriptlets which get composed, making cross-scriptlet explicit memory management harder for my users. If I were writing one from scratch, a pretty basic mark/sweep would probably be sufficient.

Replies (1)

  • @dngrs@chaos.social 2026-03-19 14:47

    @kinnison@social.flarn.net @bal4e@tech.lgbt I'm building a modding/scripting framework with hot reload, currently trying to get away with merely `std::sync::Weak` and a bit of https://docs.rs/weak-table/latest/weak_table/index.html (the latter's structs have a `remove_expired` cleanup function). Admittedly very pedestrian but I thought I'd mention it

    Open ##2241181