saurabhkaul5's profile picture. borrowed value does not live long enough

saurabh kaul

@saurabhkaul5

borrowed value does not live long enough

Fixado

We need philosopher kings who bench 250


saurabh kaul repostou

banger articles you should read, day 15

k_flowstate's tweet image. banger articles you should read, day 15

saurabh kaul repostou

Cloudflare generated many millions of HTTP 5XX responses today. They were triggered because code in a core proxy called .unwrap() on a Result for an operation that was expected to never fail.

timClicks's tweet image. Cloudflare generated many millions of HTTP 5XX responses today. They were triggered because code in a core proxy called .unwrap() on a Result for an operation that was expected to never fail.

saurabh kaul repostou

Google getting to AGI first because you actually need to know linear algebra as a prerequisite to get a job @ DeepMind instead of being an anime pfp account posting on TPOT was in hindsight — very obvious.


saurabh kaul repostou

hey guys, it's me again reminding you that you're gonna kick ass this week. 1. final meal 4 hrs before bed 2. in bed same time every day 3. screens off 60 min before sleep 4. read a book 10 min before sleep 5. block fast food 6. tell someone u love them 7. am light in eyes


Is it just me or am I seeing more girls and less everything else on my tl


saurabh kaul repostou

>go online to learn about tech >spyware company guy waddling with sword in office >orange investors company funding middle school side projects (vibecoded subway surfers) >omarchy >immortality guy pays young girl for shrooms >I wrote task manager >72nd Yann LeCun crash out…


saurabh kaul repostou

The best thing I’m happy with on macOS is Instruments. It’s really easy to use and super helpful. Rust developers can use cargo-instruments, developed by @cmyr, to make it even easier—just run: cargo instruments -t time --bench random_access

OnlyXuanwo's tweet image. The best thing I’m happy with on macOS is Instruments. It’s really easy to use and super helpful. Rust developers can use cargo-instruments, developed by @cmyr, to make it even easier—just run:

cargo instruments -t time --bench random_access

Never letting no clanker come write my code for me, ever. Only tests.


saurabh kaul repostou

Borrow checker and async Rust APIs - some patterns of interaction .. • At async boundaries: Own More, Borrow Less .. • The borrow checker forbids holding `&mut` across `.await`. Design async APIs to avoid cross‑await borrows: Patterns: • Use `Arc<T>` for shared, immutable…

debasishg's tweet image. Borrow checker and async Rust APIs - some patterns of interaction ..

• At async boundaries: Own More, Borrow Less ..
• The borrow checker forbids holding `&amp;amp;mut` across `.await`. Design async APIs to avoid cross‑await borrows:

Patterns:

• Use `Arc&amp;lt;T&amp;gt;` for shared, immutable…

saurabh kaul repostou

Some patterns on how iterators in Rust play well with the borrow checker - Iterator-friendly APIs, Borrow splitting and reborrowing .. Iterators prefer borrows Iterators often yield references to avoid allocation: Keep using an iterator after borrowing it Use `by_ref()` to…

debasishg's tweet image. Some patterns on how iterators in Rust play well with the borrow checker - Iterator-friendly APIs, Borrow splitting and reborrowing ..

Iterators prefer borrows
Iterators often yield references to avoid allocation:

Keep using an iterator after borrowing it
Use `by_ref()` to…
debasishg's tweet image. Some patterns on how iterators in Rust play well with the borrow checker - Iterator-friendly APIs, Borrow splitting and reborrowing ..

Iterators prefer borrows
Iterators often yield references to avoid allocation:

Keep using an iterator after borrowing it
Use `by_ref()` to…
debasishg's tweet image. Some patterns on how iterators in Rust play well with the borrow checker - Iterator-friendly APIs, Borrow splitting and reborrowing ..

Iterators prefer borrows
Iterators often yield references to avoid allocation:

Keep using an iterator after borrowing it
Use `by_ref()` to…

saurabh kaul repostou

One of the subtle points in the following post related to accepting inputs in Rust APIs is to appreciate the difference between `impl AsRef<>` and `impl Borrow<>`. Just as a quick reminder .. • The purpose of `AsRef<T>` is to convert by reference to `&T` for ergonomic…

In Rust, how the borrow-checker shapes your API inputs and outputs .. The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe. Accepting input • Borrow when you only read: `fn parse(src: &str)` • Borrow…

debasishg's tweet image. In Rust, how the borrow-checker shapes your API inputs and outputs ..

The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe.

Accepting input

• Borrow when you only read: `fn parse(src: &amp;amp;str)`
• Borrow…
debasishg's tweet image. In Rust, how the borrow-checker shapes your API inputs and outputs ..

The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe.

Accepting input

• Borrow when you only read: `fn parse(src: &amp;amp;str)`
• Borrow…


saurabh kaul repostou

Mostly working in Rust but keeping a curious eye on Zig - it's always interesting to compare the techniques offered by the two. That reflects a lot on the philosophy of language design that they embrace .. Here are four ways to model “interfaces” in Zig (and they compare to…

debasishg's tweet image. Mostly working in Rust but keeping a curious eye on Zig - it&apos;s always interesting to compare the techniques offered by the two. That reflects a lot on the philosophy of language design that they embrace .. 

Here are four ways to model “interfaces” in Zig (and they compare to…
debasishg's tweet image. Mostly working in Rust but keeping a curious eye on Zig - it&apos;s always interesting to compare the techniques offered by the two. That reflects a lot on the philosophy of language design that they embrace .. 

Here are four ways to model “interfaces” in Zig (and they compare to…

saurabh kaul repostou

Literally all the alleged and real pain points of Rust are 100% worth it just for the simple fact that I have not had to deal with a single segfault in over 2 years now.


saurabh kaul repostou

A few add-ons that make APIs play even nicer with the borrow-checker: – prefer &self/&mut self methods that operate in place; avoid returning big owned structs if you can stream: fn rows(&self) -> impl Iterator<Item=&Row> – use AsRef/AsMut/Into on inputs to keep call sites…

In Rust, how the borrow-checker shapes your API inputs and outputs .. The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe. Accepting input • Borrow when you only read: `fn parse(src: &str)` • Borrow…

debasishg's tweet image. In Rust, how the borrow-checker shapes your API inputs and outputs ..

The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe.

Accepting input

• Borrow when you only read: `fn parse(src: &amp;amp;str)`
• Borrow…
debasishg's tweet image. In Rust, how the borrow-checker shapes your API inputs and outputs ..

The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe.

Accepting input

• Borrow when you only read: `fn parse(src: &amp;amp;str)`
• Borrow…


saurabh kaul repostou

In Rust, how the borrow-checker shapes your API inputs and outputs .. The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe. Accepting input • Borrow when you only read: `fn parse(src: &str)` • Borrow…

debasishg's tweet image. In Rust, how the borrow-checker shapes your API inputs and outputs ..

The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe.

Accepting input

• Borrow when you only read: `fn parse(src: &amp;amp;str)`
• Borrow…
debasishg's tweet image. In Rust, how the borrow-checker shapes your API inputs and outputs ..

The general design principle is to choose signatures that minimize ownership churn while keeping call sites clean and safe.

Accepting input

• Borrow when you only read: `fn parse(src: &amp;amp;str)`
• Borrow…

saurabh kaul repostou

Bira 91 was one of the successful start-up stories of last decade. It is a popular craft beer brand. They were growing so well. Reality is strange than what you can imagine. A procedural goof up has lead to whole company being collapsing and the founder now being forced even to…


saurabh kaul repostou

GETTING A JOB IN THE TECH INDUSTRY

name something harder than this😭



saurabh kaul repostou

AND FOR MY NEXT MAGIC TRICK, I WILL NOW MANIFEST AN ENTIRE JOB POSITION ALL FOR ME I WILL BECOME EMPLOYED I WILL DRINK MORE COFFEE THAN WATER I WILL BE STUCK IN A CAGE I WILL GET BULLIED BY MY SENIORS I WILL EARN PENNIES I WILL GET NO BENEFITS AND I WILL LIKE IT


saurabh kaul repostou

I’ve been telling myself to lock in for 15 consecutive weeks


Loading...

Something went wrong.


Something went wrong.