Heh cool, think I've now helped author around 10.000 lines of modern Futures code! Did a quick Tokei search on the codebases I work on, and it's pretty close! Whew!
-
Show this thread
-
I found legacy futures to be quite hard to work with; even to the point where I gave up on Rust a few times trying to learn them. I think I thought something like: Node is async, so going back to sync code would feel like a step down.
2 replies 0 retweets 2 likesShow this thread -
Gave up on Rust? Yeah. I thought that if my experience was representative for the language, then it was simply too hard for me to ever be able to express myself freely enough. Luckily I decided to become proficient in sync Rust first at some point, and yay that worked well!
1 reply 0 retweets 2 likesShow this thread -
I'm very happy how far we've come. Modern futures feel very simple. Even Pin is easy enough if you just consider it a black box that says: "this makes it so Futures don't require to be heap-allocated." There's 1 arg, which is a callback. Its return type is essentially an Option.
1 reply 0 retweets 1 likeShow this thread -
I'd be very sad if we were to move away from this model. I feel like the current model is beautiful in its simplicity. Writing it by hand isn't a chore at all; it's actually really nice (as in my first tweet: I've done this *a ton*).
1 reply 0 retweets 4 likesShow this thread -
Because yeah, it's being considered to move away from this model. And one of the reasons is that "implementing Futures aren't an end-user interface". Which just bringing that up makes me feel sad Idk if it's quite gatekeeping but it feels like it neglects the need for simplicity
1 reply 0 retweets 4 likesShow this thread -
Like: I strongly believe that every part of a system ought to be understandable. Just like every layer of a building needs to be solid, so do the layers in our systems. There will always be tradeoffs. That's our reality. But I wish making systems understandable was weighed more
2 replies 0 retweets 7 likesShow this thread -
Replying to @yoshuawuyts
Do you write rust as part of your job? I'm interested to see what types of companies/products are using rust
1 reply 0 retweets 1 like
There's a selection of companies highlighted in https://www.rust-lang.org/production Google is also using it for their next OS (Fuschia). Amazon for to host their VMS (Firecracker). And Facebook for their version control (Mercurial components). And yeah, I use Rust professionally (:
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.