@hds@hachyderm.io
@hds@hachyderm.io avatar

hds

@hds@hachyderm.io

number theorist x software hacker • rustacean • ask me about tokio-console • engineering manager at HERE • corazón andaluz • permanent antipodean • he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

hds, to random
@hds@hachyderm.io avatar

@ekuber I just missed the fn keyword and found that the error message in that case wasn't so helpful.

error: expected one of ! or ::, found (

I couldn't find a issue for this, but I thought I'd check with you before creating one.

hds,
@hds@hachyderm.io avatar

@ekuber Took longer than I expected to get around to it, but I've create the issue: https://github.com/rust-lang/rust/issues/125446

Thanks!

hds, to rust
@hds@hachyderm.io avatar

I came across this article the other day, titled “Why Rust cannot replace C++”.

I feel that the author completely fails to understand the opposing argument. The article claims that with “new” C++ features like smart pointers, you can write safe code in C++, therefore Rust is unnecessary.

But I don’t want a language where I can write safe code, I want a language where I must write safe code.

https://medium.com/@pepitoscrespo/why-rust-cannot-replace-c-but-quite-the-contrary-5577e1f5af0a

#rust #rustlang #cpp #programming

hds,
@hds@hachyderm.io avatar

There’s this common statement that “the cognitive overhead of working with the borrow checker just isn’t worth the security benefits when you can write safe code in other languages”.

But the comparison is always to the “cognitive overhead” of writing something in some other language. When the comparison should be to writing something correctly in some other language.

#rust #rustlang #programming

1/3

hds,
@hds@hachyderm.io avatar

@mgeisler that’s a bit my point. A style guide is useful if you have the time and ability to train people on it, but if checking compliance is something a human has to do then you’ve still got cognitive overhead and humans, of course, get things wrong sometimes.

hds, to rust
@hds@hachyderm.io avatar

The next Rust for Lunch will be next Tuesday, 14 May! Announcement about speaker and talk to come soon.

https://lunch.rs/meetups/2024-05-14/

hds, to rust
@hds@hachyderm.io avatar

I wrote a blog post on performance optimization using (cargo) flamegraph for profiling and Divan for benchmarking.

This was a real case of a real algorithm which needed real optimization!

https://hegdenu.net/posts/performance-optimization-flamegraph-divan/

👋 @nikolai

hds, to rust
@hds@hachyderm.io avatar

We are not bowing down to our digital masters, I promise!

#rust #rustlang #clippy #giveClippyWhatItWants

hds, to rust
@hds@hachyderm.io avatar

If I want to be completely honest about #rust, what disadvantages should I be listing. So far I have:

  • Compile times
  • Language complexity (compared to…)
  • Churn
  • Best practices
  • Recommended dependencies

What else?

#rustlang

hds, to rust
@hds@hachyderm.io avatar

Have you had experience, successful or otherwise, promoting #rust within your company? Especially to other teams and departments once you’ve started using it in your own team?

I would love to hear what you think went well and what you would have done differently in hindsight.

Comments in replies and boost for visibility please! 🦀

#rustlang

hds, to rust
@hds@hachyderm.io avatar

It’s Friday, I’m not fighting the borrow checker, we’re discussing our difference of opinion over a beer.

#rust #rustang

hds, to rust
@hds@hachyderm.io avatar

Rust for Lunch meet-up will start in roughly 1 hour. This month we have a talk by @mo8it on "Faster Rust Serialization".

https://lunch.rs/meetups/2024-02-20/

See you there?

hds, to rust
@hds@hachyderm.io avatar

Join us next week at Rust for Lunch! The virtual meet-up that fits into your lunch-break.

https://lunch.rs/meetups/2024-02-20/

We’ll have a talk from @mo8it on Faster Rust Serialization.

See you there?

hds, to auspol
@hds@hachyderm.io avatar

Just change the bloody date.

#auspol #invasionDay

hds, to rust
@hds@hachyderm.io avatar

Tomorrow is Rust for Lunch! A lunch time virtual meet-up. We’ve got two talks from 12:00-13:00 UTC.

Check out the details: https://lunch.rs/meetups/2023-11-28/

hds, to rust
@hds@hachyderm.io avatar

Would you like to join a virtual meet-up at lunch time? The second Rust for Lunch meet-up will take place next Tuesday (28 November) starting at 12:00 UTC.

We’re going to enjoy talks by @arriven and ! It runs for an hour so you can join in your lunch break.

https://lunch.rs/meetups/2023-11-28/

hds, to rust
@hds@hachyderm.io avatar

@imsnif making a very convincing argument for using the terminal in 2023 at @rustlab. A great talk in general and I learned some things about how terminals work that I never knew before!

#zellij #rust

hds, to rust
@hds@hachyderm.io avatar

Want @timClicks to teach you #rust, but can't afford it?

Lucky for you, Tim has launched a pay what you want version of his instructor led course based on Google's Comprehensive Rust training material!

https://comprehensive-rust-2023-11.lilregie.com/booking/attendees/new

hds, to rust
@hds@hachyderm.io avatar

Reminder! The first Rust for Lunch meet-up is tomorrow at 12:00 UTC!

Come listen to a talk from @conrad titled "Abusing the Type System for Fun and for Profit".

The meeting call link is now live on the web-site too: https://lunch.rs/meetups/2023-10-31/

You can see the time in your timezone here: https://everytimezone.com/s/0638f484

See you then!

hds, to rust
@hds@hachyderm.io avatar

I like writing #rust because I feel like I don’t need to be a wizard to write correct, readable code with good performance. I never felt this way about #cpp (and I’ve done fewer hours of rust than C++).

hds, to rust
@hds@hachyderm.io avatar

In a single PR, I managed to write a data race and get bitten by #tokio’s coop task budget. Clever me!

Both were not reproducible locally, but got caught in CI.

#rust #rustlang

hds, to rust
@hds@hachyderm.io avatar

There is little in this world that is as satisfying as putting a really clean, understandable error hierarchy in place when you’re programming #rust.

If you haven’t read Sabrina Jewson’s “Modular Errors in Rust” yet, then do yourself a favour: https://sabrinajewson.org/blog/errors

#rustlang

hds, to random
@hds@hachyderm.io avatar

Putting in headers is weird, you should totally encode it like a proper .

hds, to rust
@hds@hachyderm.io avatar

Yesterday we had a new release of the #TokioConsole crates. That's tokio-console 0.1.9 and console-subscriber 0.1.10.

Console is a #debugger for #async #rust!

There were fewer new features in this release, but plenty of improvements and fixes.

Let's have a look at what's in there!

#tokio #rustlang

hds, to rust
@hds@hachyderm.io avatar

I've finished part 2 of my series on "how I finally understood async/await in #Rust".

The topic is "how does a pending future get woken?".

https://hegdenu.net/posts/understanding-async-await-2/

#rustlang #AsyncRust

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • mdbf
  • ngwrru68w68
  • tester
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • JUstTest
  • tacticalgear
  • osvaldo12
  • normalnudes
  • cubers
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • Leos
  • provamag3
  • anitta
  • modclub
  • lostlight
  • All magazines