@mgattozzi@hachyderm.io
@mgattozzi@hachyderm.io avatar

mgattozzi

@mgattozzi@hachyderm.io

'A bad programmer' according to the Orange Site, he/him. DMs open. Always open to chat.

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!

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime I don't see why not. It just takes in a stream of tokens and outputs a stream of tokens.

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime hmmm I wonder if like a static variable is shared across invocations of the macro or not. I'm leaning towards not, but you know, who's to stop you from commiting crimes and bincoding data to disk to be read by a later invocation.

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime damn. They really out here like:

  • do crimes
  • fast builds
  • the code you actually want

Pick 2

mgattozzi, to random
@mgattozzi@hachyderm.io avatar

Tired: Closing issues with "won't fix"
Wired: Closing issues with "THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT."

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

I've reached the "steam-iron my green screen to get the wrinkles off" stage of video production

send help

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime at least you're not at the part where you're buying dedicated hardware to do the chroma keying for you or whatever yet

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime I'll see you in a few months where your demand for quality sends you ever further down the rabbit hole then!

mgattozzi, to random
@mgattozzi@hachyderm.io avatar

I've noticed a weird trend where people who aren't engineers but interact with them such as Recruiters all capitalize Rust as RUST and I have no idea why.

ekuber, to random
@ekuber@hachyderm.io avatar

Every time there's a CVE affecting some fundamental part of modern computing that Rust provides a dot-release for, it seems multiple publications find out first from the Rust blog and publish titles implying that Rust is the only affected thing. It's not only mildly annoying hearing the echos of "har, har, I thought it was 'safe'", it does a complete disservice to anyone that doesn't use Rust because they won't find out they have to update or mitigate the issue too!

mgattozzi,
@mgattozzi@hachyderm.io avatar

@ekuber it says it affects other languages right under the title, but I get it being hard to spot

skade, to random
@skade@hachyderm.io avatar

GitHub, but with microtransactions. Every ticket 10c, comment 1c.

mgattozzi,
@mgattozzi@hachyderm.io avatar

@skade every push is 5c and every force push is 10c

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime @skade because GitHub already punishes us in the pr review process when we force push 😞

hazelweakly, to random
@hazelweakly@hachyderm.io avatar

Core competencies are something I think about a lot. I love to dig into what makes companies or ecosystems or social groups tick. Especially when that core competency enables what they do:

McDonald's, for example, is a real estate company that happens to make burgers.

Walmart is a shipping logistics company that also sells things.

What other examples can you think of where the core competency of the company is such that the "thing" a company does falls out naturally as a consequence?

mgattozzi,
@mgattozzi@hachyderm.io avatar

@hazelweakly Apple core competency is hardware and vendor lock in. They also sometimes do software, but mainly they run a marketplace

hazelweakly, to random
@hazelweakly@hachyderm.io avatar

I love explaining complicated subjects in a quippy way that isn't necessarily wrong. For example:

Kubernetes is 20 while-true loops in a trench coat pretending to be a container orchestration platform.

What are your favorite quippy ways to explain a complicated topic? It could be anything! I'm just curious what y'all have :)

mgattozzi,
@mgattozzi@hachyderm.io avatar

@hazelweakly async rust is just 3 synchronous functions in a trench coat

mgattozzi, to random
@mgattozzi@hachyderm.io avatar

After almost 9 years of Rust I've come to the conclusion that it's not just the way we write errors that's bad, it's also that Result guides us towards bad error handling and ? Makes it worse (handle my error? No just chuck it up the stack) I just need to write a post soon huh

I also think thiserror and anyhow are detrimental to good error handling as well and I'm guilty of doing this. The easy way to write error handling is the bad way to write good robust tools and programs

mgattozzi,
@mgattozzi@hachyderm.io avatar

Also God forbid you want to return multiple failures to handle all at once, while processing say a list of things that could succeed

b0rk, (edited ) to random
@b0rk@jvns.ca avatar

let's imagine you're resolving this merge conflict (in screenshot).

You've forgotten which code comes from your current branch and which one comes from the "other" branch. How do you figure it out? Do you:

  1. remember what the "top" and "bottom" parts correspond to from past merge conflicts?
  2. remember what HEAD means?
  3. read the last line of the merge conflict?
  4. run something like git show main or git diff mybranch..main to see the diff?
  5. enable diff3
  6. something else?
mgattozzi,
@mgattozzi@hachyderm.io avatar

@LucasWerkmeister @b0rk in the future you can run git checkout --conflict diff3 the/file of you have this issue

ekuber, to rust
@ekuber@hachyderm.io avatar

impl dyn Foo + 'static where Self: 'static {
fn hello(&'static self) where Self: 'static {}
}

For when you want to really be sure that your trait object method is invoked on an owned type.

mgattozzi,
@mgattozzi@hachyderm.io avatar

@ekuber well now that you've shown me the good code I simply have to write it now

mgattozzi,
@mgattozzi@hachyderm.io avatar

@ekuber you can't stop me Esteban. Not unless you ban it from the compiler

mgattozzi,
@mgattozzi@hachyderm.io avatar

@ekuber you fool. Where's your RFC and community consensus? You've been hamstrung by the very process that protects you

shortridge, to random
@shortridge@hachyderm.io avatar

hello fediverse, it’s the weekend in most places and I know you’re doing some nerd shit (which isn’t limited to computers!)

please share your nerdy hobby projects with me so we can all share in some wholesome dopamine harvesting ✨

things that count in my mind: computers, gardening, knitting, metalworking, flower arranging, glassblowing, felt needling, organizing, woodworking, scrapbooking, elaborate cat castle building, house DIY projects, basically anything with niche interest + skillset

mgattozzi,
@mgattozzi@hachyderm.io avatar

@shortridge Recently I've gotten into Fountain Pens and Ink since I've moved to using a paper planner to make it more fun. I actually just inked up one of my pens with Pilot's Iroshizuku Konpekinand I just absolutely love it. The posting nib I use for my planner since it's extra fine and I write on the small side. The fact the inks can have so many different properties to them like sheen and shimmer make it fun!

image/jpeg
image/jpeg
image/jpeg

mgattozzi, to random
@mgattozzi@hachyderm.io avatar

Let me into the compiler driver seat so I can impl Div on PathBuf you cowards

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=c188dc2c778f624b5b74ed95f050586e

molly0xfff, to random

fuck i love blogs. if i had nothing but time i would just read blogs all day.

mgattozzi,
@mgattozzi@hachyderm.io avatar
hazelweakly, to random
@hazelweakly@hachyderm.io avatar

Anyone else struggle with feeling like that sound extremely rude online if they don't use emojis constantly as punctuation? Just me? 👀

mgattozzi,
@mgattozzi@hachyderm.io avatar

@hazelweakly yup. it's not just you 😅

fasterthanlime, to random
@fasterthanlime@hachyderm.io avatar

happy monday everyone

mgattozzi,
@mgattozzi@hachyderm.io avatar

@fasterthanlime Same energy

hazelweakly, to random
@hazelweakly@hachyderm.io avatar

This week I have been deeply surrounded by death, decay, heartbreak, and unraveling relationships. Most of it isn't mine directly, but I love my friends deeply and feel things a lot.

Which is to say: can you tell me a happy memory or interaction or anecdote you have of us? Or something this week that made you feel happy to be alive? I would love to hear what you have to say :blobhaj_heart:

mgattozzi,
@mgattozzi@hachyderm.io avatar

@hazelweakly It might be silly to some, but I ordered a new planner this week that I can't wait to come in. It fits my current vibe more and I got stencils and things and finally being organized in my life and looking forward to planning has been a huge source of joy and feeling in control of my life and happy to participate in it finally.

mgattozzi,
@mgattozzi@hachyderm.io avatar

@hazelweakly I will be poasting pics for sure. These were the stencils I got and I got the Hobonichi Techo Cousin A5 for my planner

https://www.1101.com/store/techo/en/2024/sp/detail_toolstoys/tt_template/

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