Live data from Hacker News

Viewing profile — terts

terts

HN member
Joined
Sat, Jan 29, 2022, 2:12 PM UTC
HN karma
103
Public activity
27 items

About terts

No profile information was provided.

Recent public activity

  1. comment
    Comment #48353447

    This is something we've been backpedaling a bit indeed. 0.11 changed some things to look a lot more like Rust. The reason for this being different in the first place is that were n…

  2. comment
    Comment #48348305

    That's kind of right, but they are adding new literals, not changing existing ones. The hooks are for the lexer and they can decide what syntax they accept. The syntax it defines w…

  3. comment
    Comment #48347757

    Other commenters have given most of the reasons already, but since you asked specifically for the author, I'll chime in as well. The fact that Roto gets compiled at the runtime of …

  4. comment
    Comment #48347243

    Good suggestion! We haven't done that because there's only one domain at the moment but going forward that could be useful.

  5. comment
    Comment #48346745

    Hi! Author here. You're looking at Rust code there. Roto is very similar but without `&`. I wont pretend to be good at language design, but being similar to Rust has many advantage…

  6. comment
    Comment #48344313

    Thanks! > When you made Roto what kind of workloads were you optimizing for? We're building a BGP collector with custom filters written in Roto. Imagine a database that constantly …

  7. comment
    Comment #48344154

    Hi! Author here. What we call the `Runtime` in Roto is not a state of the program, it's only the set of functions, types and constants that are available to the script. Roto script…

  8. comment
    Comment #48344130

    Hi! Author here. We are actually planning on removing those literals and allowing applications to extend Roto with their own literals [0]. They should do so with care of course, be…

  9. comment
    Comment #44053140

    Hi! That bit of the docs is a bit outdated. We're probably gonna make it optional. The reason for that choice was that the filters for Rotonda need to be very quick and don't reall…

  10. comment
    Comment #44053116

    Hi! Author here. You could try but there are some fundamental limitations. The biggest limitation is that we don't have access to the full type system of Rust. I don't think we can…

  11. comment
    Comment #44053014

    They're on the roadmap for sure. While loops are quite easy to add I think, but it would also need an assignment operator to make it useful. Lists are complicated because they're g…

  12. comment
    Comment #44052483

    Yes, you definitely could! And thanks for the kind words! If you try it out for your own purposes, you'll probably run into some missing features (e.g. lists and loops), but we'd b…

  13. comment
    Comment #44052224

    It depends. I'd love to make a prototype using Bevy with Roto. What I'm trying to say is that if you only want something to make Rust compile faster, then Rust might the better opt…

  14. comment
    Comment #44052121

    Hi! Author here. Mun is super cool, but works slightly differently as far as I know. You compile Mun scripts outside of your application to a dynamic library, which can then be (re…

  15. comment
    Comment #44052039

    Hi! Author here. Yep, sorry about that. It is indeed Border Gateway Protocol.

  16. comment
    Comment #44052006

    Hi! Author here. Would be super cool, but while the compiled scripts would work without allocations, the compiler itself does a lot of allocations. So unfortunately I don't think I…

  17. comment
    Comment #44051931

    Hi! Author here. There's a couple of reasons. First, this language is syntactically a lot like Rust but semantically quite different. It has no references for example. We're trying…

  18. comment
    Comment #44051862

    Not many iterations, but a lot of head scratching was involved haha. I decided against using a trait and a derive macro because I wanted to avoid running into Rust's orphan rule. W…

  19. comment
    Comment #44051772

    Hi! Author here. It is indeed expression-oriented, mostly following the same rules as Rust. If-else is an expression, for example.

  20. comment
    Comment #44051711

    Hi! So for Roto, our introspection needs are actually fairly limited. We only need the `TypeId`, the type name, the size and the alignment. which Rust can give us without any addit…

  21. comment
    Comment #34738427

    It's a good idea to make the prefix matching optional. I think it might be confusing to gate other features behind it though. I guess we'll get to this once we find flags that are …

  22. comment
    Comment #34738113

    I can't find any discussion. But I know that some alternative implementations disable this feature. The cause of this behaviour is actually the glibc `getopt_long` function, which …

  23. comment
    Comment #34737769

    Outside of the coreutils, not much I think. The GNU coreutils all have it though. It's documented here: https://www.gnu.org/software/coreutils/manual/html_node/Comm...

  24. comment
    Comment #34737699

    > In a busybox situation depending on some regex crate is a given anyway uutils can behave as a busybox-like binary. But I think there's some confusion over the requested feature, …

  25. comment
    Comment #34737595

    It's possible I suppose, but three dashes already sometimes appears in GNU for hidden options and, probably more importantly, I think it would be frustrating to have to remember wh…