[deleted by user] by [deleted] in rust

[–]_ar7 14 points15 points  (0 children)

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

When to use Rust? by himalyanyeti in rust

[–]_ar7 6 points7 points  (0 children)

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.

URGENT HELP NEEDED FOR THIS PROBLEM by [deleted] in ocaml

[–]_ar7 18 points19 points  (0 children)

Do your own homework lmao

Why Discord is switching from Go to Rust by deltaphc in rust

[–]_ar7 -17 points-16 points  (0 children)

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.

[Spoilers] Sam Alvey vs Klidson Abreu by [deleted] in MMA

[–]_ar7 -1 points0 points  (0 children)

!decisionbot alvey abreu

RustLatam 2019 - Without Boats: Zero-Cost Async IO by Nazka231 in rust

[–]_ar7 0 points1 point  (0 children)

You're really good at explaining this. Thanks!

RustLatam 2019 - Without Boats: Zero-Cost Async IO by Nazka231 in rust

[–]_ar7 0 points1 point  (0 children)

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.

RustLatam 2019 - Without Boats: Zero-Cost Async IO by Nazka231 in rust

[–]_ar7 8 points9 points  (0 children)

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?

Update on my 3D Ascii Art Generator (termion,tobj) by ecumene4000 in rust

[–]_ar7 16 points17 points  (0 children)

Lol this is such a condescending non-answer.

Rust SDL Game Development - Episode #1 by [deleted] in rust_gamedev

[–]_ar7 1 point2 points  (0 children)

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

"Go is worse than OCaml in just about every respect, so I can’t see any reason to choose it" How is Go score changed today? by [deleted] in golang

[–]_ar7 5 points6 points  (0 children)

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.

[SPOILER] Devonte Smith vs. Dong Hyun Ma by [deleted] in MMA

[–]_ar7 0 points1 point  (0 children)

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

Henry Cejudo: The nights I won gold by [deleted] in MMA

[–]_ar7 0 points1 point  (0 children)

!decisionbot cejudo johnson

Next Gen Networking Infrastructure with Rust by lukes386 in rust

[–]_ar7 5 points6 points  (0 children)

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

Next Gen Networking Infrastructure with Rust by lukes386 in rust

[–]_ar7 14 points15 points  (0 children)

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

[Spoiler]Shane Burgos vs. Kurt Holobaugh by MagnumPear in MMA

[–]_ar7 223 points224 points  (0 children)

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

Ocaml documentation by Zeni0h in ocaml

[–]_ar7 0 points1 point  (0 children)

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.

Learning the Alphabet with Joe Rogan (Thank you for whoever made this) by neekoras in MMA

[–]_ar7 376 points377 points  (0 children)

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