u/_ar7

4,100 post karma · 3,142 comment karma · joined Jan 2016 · moderator

_ar7
_ar7

In case you aren’t trolling, this exists lol https://github.com/serde-rs/serde

_ar7

Ergonomics and nuance aside, for CPU-bound work. Other languages are easier and come close to or even rarely will do better for anything memory or IO bound.

_ar7

Do your own homework lmao

_ar7

Maybe this is the wrong takeaway, but it seems like there’s no reason to use Rust until you hit scaling problems of this magnitude.

_ar7

!decisionbot alvey abreu

_ar7

You're really good at explaining this. Thanks!

_ar7

Thank you. This is the best answer for me. There's just one last thing that's not clear to me.

Why would you ever need to poll more than once? The api that makes more sense to me would be future.run() to start the computation and something like future.wait() to block until the future comes back.

_ar7

Could someone explain polling to me? I know I'm missing something because to me it looks like you're basically calling poll as fast as possible without waiting for any interval in an infinite loop. Is that not insanely inefficient? How's this not block the rest of your code from running if you need to do some other stuff after you've initially scheduled your future?

Given that the polling model is better with regards to canceling + allocations than the callback model, are there any other languages using it?

_ar7

Lol this is such a condescending non-answer.

_ar7

Your english is great, and your accent isn't even that strong.

_ar7

lol

_ar7

Go wins in ecosystem, ease of use, and tooling, so even though I agree that Go is objectively worse as a language, it's way easier to write, get started with, onboard others onto, etc.

_ar7
_ar7

Another LW contender they won't know what to do with lol

_ar7
_ar7

!decisionbot Moraes Assuncao

_ar7

!decisionbot cejudo johnson

_ar7

Because of the literal mma math

_ar7
_ar7

Yeah I assume the trivial answer is that Rust

  • is more expressive
  • can be tweaked to be more performant than Go since it's closer to metal + has no GC.

However, I wonder how often that's actually necessary for networking infra, and if there are other things at play that are more nuanced

_ar7

Given go's dominance in this space, what does Rust provide over go that's substantially better (other than maybe the language is more fun to write / more expressive)?

For example, I wonder why https://github.com/linkerd/linkerd2-proxy is rust, but https://github.com/linkerd/linkerd2 is go

_ar7

Shane burgos is one my favorite fighters, and this fight shows why. His last fight with Calvin Kattar was really amazing as well.

_ar7

https://sketch.sh/new/ml is good for playing around with / sharing OCaml snippets online without having to install anything on your computer.

Reason is an alternative syntax to OCaml with pretty good docs. You won't be able to use the same syntax, but the concepts are exactly the same. Also you can convert Reason syntax to OCaml on sketch.sh by pasting into a code block, and then switching the language to OCaml using the language selector.

Real World OCaml is pretty good for more intermediate stuff, but also has good sections on getting started.

_ar7

All I think of when I hear Joe Rogan is his guttural "OOOOOOOOOOOOOOOOOOOOOOHHHHHHHHHHHH", and they made O for "Oh Brian"...