@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.

jhpratt, to rust
@jhpratt@mastodon.social avatar

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

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

faassen, to random
@faassen@fosstodon.org avatar

Does anyone else have the impulse to want to be the best version of yourself online, sometimes? Even if anonymous? More generous, accepting, warm, less argumentative, more constructive?

Not for reputation afaik, at least not consciously, but just to make everything a bit better? I don't always get this impulse (no saint here) but I have felt that.

Since so much discourse is about how the internet brings out one's dark side, I thought I would mention the opposite.

ekuber,
@ekuber@hachyderm.io avatar

@janriemer @faassen I do my best to lead by example. Life's too short to be an asshole. Too many people confuse being a dick with a personality.

ekuber, to random
@ekuber@hachyderm.io avatar

I have little patience for people that seem to be following the CIA sabotage handbook to the letter.

ekuber, to photography
@ekuber@hachyderm.io avatar

Was just getting super pissed that the autofocus on my 28-105 D and D750 wasn't working and was scared it was the the screw motor on the body, but my 35 f2 D and 80-200 f2.8 both work, so maybe the 28-105 needs more torque than what the D750 can provide? It used to work, but I guess for now I'll have to stay with a prime walking around lens on.

kf, to random
@kf@666.glitchwit.ch avatar

"no cell phones, no fax machines, not another living soul for miles. we'll be unavailable. inaccessible."

"incommunicado."

"minnesota, sir."

😂🫠 #sg1

ekuber,
@ekuber@hachyderm.io avatar

@kf same energy as Bond and M going to Scotland to hide

ekuber, to rust
@ekuber@hachyderm.io avatar

Request for feedback: how would you change this compiler error? Can you tell what's going on? What the problem is? Do you get a sense of how you might be able to solve it?

ekuber,
@ekuber@hachyderm.io avatar

@thatgeoguy the problem is that the tool that has view of the dependency tree is cargo, and rustc doesn't have a model for it. I think we could integrate cargo: have rustc tell cargo to print extra info

ekuber,
@ekuber@hachyderm.io avatar

@kornel I disagree that allowing semver incompatible deps is a mistake of the tooling, the alternative would be even more annoying, more often. We need to make it easier to avoid it, though.

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