@ekuber@hachyderm.io
@ekuber@hachyderm.io avatar

ekuber

@ekuber@hachyderm.io

"We spent decades trying to invent a sufficiently smart compiler when we should have been inventing a sufficiently empathetic one."

Rust Compiler team member. If you have to search for answers when the compiler is talking to you, that's a bug.

There are no bad programmers, only insufficiently advanced compilers.

Cache-locality awareness evangelist.

💼@aws, opinions my own

he/him

Trans rights are human rights

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

ekuber, to random
@ekuber@hachyderm.io avatar

It's frustrating to see how many people compare languages by looking at their syntax instead of their semantics. You can make a C-looking Haskell or a Python-looking C.

ekuber, to rust
@ekuber@hachyderm.io avatar

Niko Matsakis, as usual, with insightful ideas about how to evolve Rust's lifetimes to make them both more powerful and easier to use.
https://smallcultfollowing.com/babysteps/blog/2024/06/02/the-borrow-checker-within/

ekuber,
@ekuber@hachyderm.io avatar

@mcc because lifetime analysis happens at two levels: at the item level, which only looks at declared lifetimes, and in item bodies, where the borrow checker knows when things are used and when they stop being used and checks against the externally declared lifetimes.

ekuber,
@ekuber@hachyderm.io avatar

@mcc I think Niko has talked about supporting what you want with a special 'super lifetime to be used in expressions, where you can tell the borrow checker "this borrow is alive at the end of this block, I want you to extend it as long as it would if declared in its parent block".

ekuber,
@ekuber@hachyderm.io avatar

@mcc (doing it automatically runs the risk of the equivalent of a memory leak, where you're silently holding on to a huge piece of memory while borrowing a small piece of it)

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