@fasterthanlime@hachyderm.io
@fasterthanlime@hachyderm.io avatar

fasterthanlime

@fasterthanlime@hachyderm.io

hi, I'm amos! 🦀 I make articles & videos about how computers work 🐻‍❄ cool bear's less cool counterpart ✨ be kind

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

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

re offline Rust: everything in crate docs, or rustdoc (the cargo manual, incl. unstable features, etc.) you can take with, but, for example, neither serde_derive nor serde_macros actual documents container/field attributes.

reading proc macro sources in anger is no fun!

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

I had the same issue with at least another crate, the rust doc comments were pretty short and linked to the website heavily, which... I wish I thought about httrack'ing before the flight, but, reader, I didn't.

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

In other news, I'm excited to announce that instead of writing a proc macro (I definitely can't off the top of my head + didn't have the right deps offline), I wrote a program that invokes cargo rustdoc, parses its JSON output, and pipes generated code to rustfmt

Because there's no reason gophers should get all the codegen fun!

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@mjk well it's not even a build script, since those slow down compilation a lot too.. it's just a separate crate that generates the sources for another crate. I need to remember to run it manually now and then.

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

I'm not even sure this could be a proc macro tbh? Since its output is a macro-by-example. Can proc macros output MBEs?

https://github.com/bearcove/fluke/blob/09afc3aafeac74647cf1502fefcf414f68486581/crates/httpwg-gen/src/main.rs

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@mgattozzi I guess one hard bit is that... I sorta want my proc macro to be stateful? Like.. I'm registering (http2 compliance suite) test cases and then there should be another macro that generates the macro.. that generates rust test cases (against a specific implementation)

it's.. confusing. and I'm not exactly sure how a proc macro crate would keep track of all that.

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@mgattozzi cargo caching is the thing stopping me from doing that x)

imagine only some invocations get done, or in a different order…

iacore, to random
@iacore@mastodon.de avatar

@fasterthanlime

hello futurerthanlime!

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@iacore woops I guess I meant "starting 2026"? I don't know, can "as of" really not be used for the future?

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

Ready for a 12 hour flight 🫡

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

Uhhhh wish me luck

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@denis likewise

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

I really should've gotten that shirt after all https://www.bonfire.com/parody-shirt-do-not-sue/

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

Playing Boeing roulette again today

edit: I lived!

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

After surveying current OpenAI, Claude, and Meta LLMs, I can safely say none of them are able to answer questions about HTTP/2 flow control.

(Which puts them on par with most humans)

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

Ok gang, say you're stuck on a plane for 20 hours, what YouTube video do you take with you?

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@omni dear lord

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@sheldonyoung much appreciated!

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@archenoth I do care about SMM, so this is great, thanks!

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

I'm trying to get better at delivering "bad news" earlier.

If I'm not gonna make it to an event, or won't have time to finish a task, I don't wait until the last minute to communicate that — I let them know as soon as I know.

Feels awkward, but more respectful of their time.

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

(This probably sounds trivial to a lot of you, maybe less so if, like me, you've been obsessively avoiding conflict for the past couple decades)

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@jhwgh1968 💙!

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

Ah. I see.

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

See, back in my day, there would be something semantic in the DOM. Ideally a "value=", but I'd settle for a class name.

But this... can you spot anything that would indicate which option is "Passport" and which one is "ID card"?

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

Oh wow, Air France has a "Non-binary" gender picker, look at that enbies you made it

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@swelljoe right??? talk about box-checking

fasterthanlime,
@fasterthanlime@hachyderm.io avatar

@rogerduran sometimes I wonder how anyone who isn't a web dev even uses the eb

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