@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 rust
@ekuber@hachyderm.io avatar

Sometimes I wish that rustc had a database of small breaking changes that affect only a handful of crates, so that we could on the fly patch them going forward. Things like "we now correctly check for lifetimes in assoc types" can technically be a breaking change that affects a handful of crates, but I want to ensure that building a project from today in 15 years doesn't require a compiler tool chain from today.

I guess this is the windows backwards compatibility approach.
#rust #rustlang

ekuber,
@ekuber@hachyderm.io avatar

It could even be for providing specific errors instead of "just make it work", telling people what magic changes might be needed to patch the outdated library.

trkohler, to random
@trkohler@hachyderm.io avatar

@ekuber hello! Any chance you may want to present on Rust Ukraine 2024 conference?

ekuber,
@ekuber@hachyderm.io avatar

@trkohler when is it happening? It would depend on the timing.

ekuber, to rust
@ekuber@hachyderm.io avatar

" development is going too fast (because they are stabilizing features I don't care about) and going too slow (because they are not stabilizing features I care about!"

There are only so many contributors, hours in a day, days in a year to get to everything now, and some features are reliant on other, less flashy work that needs to happen before they can be even attempted.

But people are putting in a lot of work, the codebase changes so quickly that it is hard to keep up.

ekuber,
@ekuber@hachyderm.io avatar

If you think we're too fast, look at the release notes and tell us what we shouldn't be landing.

If you think we're too slow, look at the release notes and tell us nothing is happening.

ekuber,
@ekuber@hachyderm.io avatar

@ironchamber it is very common in open source. I just saw someone complaining that there won't be a Rust 2.0 and using that as proof that the project had ground to a halt 🤷🏻‍♂️

Everyone has an opinion, which I've learned to pick apart for actual useful feedback, but every now and then I see something soon off the mark that it is not even wrong.

jhpratt, to rust
@jhpratt@mastodon.social avatar

Hit an edge case in the #Rust compiler that appears to be quadratic at best and potentially exponential. Trivial to make happen with real-world code. Investigating...

#RustLang #programming

ekuber,
@ekuber@hachyderm.io avatar

@jhpratt looking forward to the repro and either finding out that it is a 2 line fix or requires a complete reimplementation of 2 stages of the compiler.

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.

ekuber,
@ekuber@hachyderm.io avatar

@hds go ahead and create one. I know there's a generic one about parsing things that don't belong in trait and impl blocks, but this is more targeted.

foone, to random
@foone@digipres.club avatar

Properly photographing a 3.5" floppy disk for archival is annoyingly complicated. The label has THREE sides!

I've already built an automated system to take a picture of the front of a disk, but really I need to take THREE photos if I want to get the whole thing.

That means either three cameras or I need to rotate the disk 90° and then 180°, which is going to really stress the limits of my mechanical engineering skills.

ekuber, (edited )
@ekuber@hachyderm.io avatar

@foone wouldn't focus and vibration be mitigated by fast shutter speed and high f stop? Then what you need is either high ISO or a lot of light. Alternatively you could see if you can automate your set up to use focus stacking for the different planes.

ekuber,
@ekuber@hachyderm.io avatar

@foone there are some cheap used DSLRs with autofocus that might be easy to drive for this purpose, cheaper than a new cheap camera.

GrapheneOS, to random
@GrapheneOS@grapheneos.social avatar

An experimental prerelease of GrapheneOS for the Pixel 8a is now available via https://staging.grapheneos.org/ including web installer support. It will be made available via https://grapheneos.org/ after we've done basic testing including testing the upgrade path to a future release.

ekuber,
@ekuber@hachyderm.io avatar

@GrapheneOS is this in the new Rust Bluetooth stack or the previous system?

ekuber, (edited ) to photography
@ekuber@hachyderm.io avatar
ekuber, (edited )
@ekuber@hachyderm.io avatar

@onelson Nikon 80-200 f2.8 ED @ 200mm f5.6

ekuber,
@ekuber@hachyderm.io avatar

@onelson about 6 meters. Didn't seem to have a self preservation instinct. There were two and both came closer than that.

noth, to rust
@noth@ilyamikcoder.com avatar


ah yes

ekuber,
@ekuber@hachyderm.io avatar

@noth you might not like it, but this is what peak performance looks like :o)

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

@luis @noth don't sweat it, there's no obligation to be up to date with obscure Twitter memes from 8 years ago

ekuber, to photography
@ekuber@hachyderm.io avatar
ekuber, to animals
@ekuber@hachyderm.io avatar
swiftcoder, to rust
@swiftcoder@mastodon.social avatar

I guess a stealth MacOS update decided I don't get to use anymore... How's your Monday?

ekuber,
@ekuber@hachyderm.io avatar

@swiftcoder @mo8it see? All positives! :o)

ekuber, to rust
@ekuber@hachyderm.io avatar

The online discourse:

"It's like C++ and OCaml had a baby! (Positive)"
"It's like C++ and OCaml had a baby! (Pejorative)"

ekuber,
@ekuber@hachyderm.io avatar

"It restricts what I can do! (Pejorative)"
"It restricts what I can do! (Positive)"

godmaire, to rust
@godmaire@mstdn.social avatar

Is it not possible to use grave accents in rust proc-macros? When I do, I get an "unknown start of token" error, even though it /is/ the whole token. When taking a peek at the TokenStream given to the proc-macro function, the grave doesn't appear at all

ekuber,
@ekuber@hachyderm.io avatar

@godmaire is that as a grave accent on its own, or something like è? The later should work. https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=1dbb34c0d237cc070f240c8c70e8a9b1

Also check that you're not using an out of date rust version.

ekuber,
@ekuber@hachyderm.io avatar

@godmaire yeah, grave accent on its own is not a valid identifier according to Unicode, and rust follows their guidance. This is at the Lexer step, so proc macros are restricted in the same way.

ekuber,
@ekuber@hachyderm.io avatar

@godmaire same result. The grave accent is only valid after a letter, the backtic is not valid as an identifier

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