2 comments

  • pveierland1 minute ago
    The syntax is of course attractive (coming from Rust), and I&#x27;d love to replace more of my posix scripts with something saner. I struggle understanding whether the utility of having language literals for IP addresses, IP prefixes, and AS numbers is worth it though [0]. It seems like the confusion added by having custom built-ins like this for one particular domain, in addition to the unclear scoping (what could later also deserve being a language literal), combined with special-case errors as famous in e.g. the YAML Norway problem, makes it seem like such features are better left as some general extension &#x2F; macro &#x2F; library capability.<p>Nix is a language with built-in support for URI literals typed as strings [1], which is a source of confusion and edge-cases, and I believe the feature is now discouraged in general use.<p>[0] <a href="https:&#x2F;&#x2F;roto.docs.nlnetlabs.nl&#x2F;en&#x2F;stable&#x2F;reference&#x2F;language_reference.html#literals" rel="nofollow">https:&#x2F;&#x2F;roto.docs.nlnetlabs.nl&#x2F;en&#x2F;stable&#x2F;reference&#x2F;language_...</a><p>[1] <a href="https:&#x2F;&#x2F;nix.dev&#x2F;manual&#x2F;nix&#x2F;2.34&#x2F;language&#x2F;string-literals" rel="nofollow">https:&#x2F;&#x2F;nix.dev&#x2F;manual&#x2F;nix&#x2F;2.34&#x2F;language&#x2F;string-literals</a>
  • evrimoztamur3 minutes ago
    Does anyone know if the Roto runtime is serde-able?<p>A <i>big</i> problem I encountered in using Lua in Rust for my game engine was that I wasn&#x27;t able to serde the Lua runtime such that I can snapshot a game session and save it in a file, and retrieve it in another context.