1,205 karma · joined Jan 2, 2022 (4y ago) · 235 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
So their top secret plan is to.. make a competing product? AKA what all companies always do with their competition?
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
1. I write my own Vec3 class, not fun.
2. I write my own serialization library, could be fun depending on who you are but surely a waste of time.
3. I make a newtype, implement Serializable on it, find-and-replace all Vec3s with my own SerializableVec3, fix about 500 errors one by one by adding .0 everywhere, implement wrappers for all the Vec3 methods I want to use, rinse and repeat for every other foreign type I want to serialize.
4. Hope the math library and the serialization library know each other and the math library implements all the traits you need. In practice this is what happens, but this makes a weird situation where serde is the de facto standard/monopoly because it is literally impossible to use anything else. Which may be fine for now, serde is the standard precisely because it's so extensible, but if you ever want to use another library with traits, well you're SOL and it's back to step 3.
How they managed to ship a language with dev ergonomics this bad is beyond me. Especially when the solution is so simple. Allow foreign traits on foreign types for executable projects only. Put it behind a compiler flag for all I care. -fallow-foreign-traits-I-dont-care-if-this-breaks-things. Just let me implement my damn traits, the current state is ridiculous.
comment 3y ago · link · parent
comment 3y ago · link · parent
The research is out on changing people's beliefs, for most it usually causes them to dig their heels in and hate the other side even more. If you encounter a racist person or a Nazi in real life, you will not change their beliefs with rational debate, so don't even try. Just avoid them because they are unpleasant people. You will be happier if you stop fighting this futile moral crusade.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
1. Out of the 1000s of ads you see every day, at least one of them might coincidentally relate to something you talked about. You don't notice all the ads that are wildly irrelevant.
2. Even if you personally didn't have a hyper-relevant ad experience, out of the 1000s of HN readers that might comment a reply, one of them surely did. You just might be the one lucky guy that got your hyper-relevant ad of the day.