It still boggles my mind that C# is as good as it is given where it comes from. Java really fucked up with type erasure and never fully recovered imo.
- 0 Posts
- 25 Comments
QuaternionsRock@lemmy.worldto Programming@programming.dev•Things You Should Never Do, Part I (2000)2·1 year agoI’m not extremely familiar with it, but I think X11 qualifies. I think it was determined that HDR support would be basically impossible to implement.
QuaternionsRock@lemmy.worldto Programmer Humor@programming.dev•You can certainly change it. But should you?1·1 year agoThat seems like a better fit for an intrinsic, doesn’t it? If it truly is a register, then referencing it through a (presumably global) variable doesn’t semantically align with its location, and if it’s a special memory location, then it should obviously be referenced through a pointer.
QuaternionsRock@lemmy.worldto Programmer Humor@programming.dev•You can certainly change it. But should you?82·1 year agoI’ve never really thought about this before, but
const volatile
value types don’t really make sense, do they?const volatile
pointers make sense, sinceconst
pointers can point to non-const
values, butconst
values are typically placed in read-only memory, in which case thevolatile
is kind of meaningless, no?
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Amsterdam testing system that can remotely slow e-bikes downEnglish11·1 year agoSure, as soon as you stop hating on e-bikes
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Amsterdam testing system that can remotely slow e-bikes downEnglish2·1 year agoE-bikes can replace cars in far more situations than regular bicycles can.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Someone gets killed by a car, so they restrict e-bikes.English10·1 year agoI have a Class 3 (28mph), it’s actually not too bad. That assumes the brakes are well-maintained, though, and as we know there are no inspections for e-bikes. I’ve seen some terrifyingly bad brakes on normal bicycles, so I can’t imagine what some people’s e-bikes look like.
It should be mandatory for Class 2 and Class 3 e-bikes to have hydraulic disc brakes imo. I have mechanical disc brakes, and I have to tighten them at least once a month. It seems unwise to trust that the average person would also do that. Rim brakes are right out; they have nowhere near enough braking power for the speed and weight of most e-bikes.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Amsterdam testing system that can remotely slow e-bikes downEnglish51·1 year ago-Guy who has no interest in seeing cars largely replaced with bikes in cities
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Amsterdam testing system that can remotely slow e-bikes downEnglish4·1 year agoIt’s relatively common for a car to merge into you where I live. If you’re adjacent to the front wheel it’s safer to accelerate the rest of the way than it is to brake.
Edit: it’s also insane that they’re trying to do this with e-bikes before cars.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Amsterdam testing system that can remotely slow e-bikes downEnglish44·1 year agoSince you’re still free to accelerate by pedaling like a normal bike user, that significantly reduces the amount of situations where the pedal assist would actually save you.
Bro e-bikes are like 3-6x heavier than normal bikes, manual pedaling sucks and you can’t accelerate for shit
I’ve used Java 21 pretty extensively, and it’s still comically bad compared to various alternatives, even apples-to-apples alternatives like C#. The only reason to use Java is that you’ve already been using Java.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•Chinese AI - Double StandardsEnglish2·1 year agoI think this is from an open-source model, possibly running locally. I doubt it has a robust post-generation censor. This output is probably a result of RLHF, which is even more precarious than an output censor.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this double standard exists (I did this search today to confirm)English11·1 year agoYou are mistaken that the discrepancy is the result of algorithmic bias. The latter image depicts a custom, hard-coded result that appears when one of preselected set of queries are searched. It was added as part of an anti-domestic violence drive. The trouble is, adding a copy of the selected queries with substituted gendered language (e.g., substituting “husband” with “wife”, “man” with “woman”, etc.) would have taken all of 10 minutes. It’s not surprising that most are unsympathetic to this excuse.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•The fact that this double standard exists (I did this search today to confirm)English91·1 year agoIt isn’t though? The post is advocating that everyone should receive help, while the comment is trying to justify the way it currently is.
QuaternionsRock@lemmy.worldto Mildly Infuriating@lemmy.world•You have to remove the plastic label if you want to recycle this plastic bottle.English6·1 year agoPrinting “this shit is milk” on a bottle is dirt cheap. It’s practically free. They probably already do it with the expiration date.
Problem is, some bright-eyed fuckfuck at PepsiCo realized they could sell more shit using labels with no visible dot matrix and a color palette with vomit-inducing vibrancy and 69 million shades. Approximately 90 seconds later, everyone else decided that they need to wrap their plastic in some plastic to “stay competitive”. The industry collectively stuffed some lunch money in Ronald H. W. Gore’s titty pocket, and here we are, decades later, with a mountain of unrecyclable garbage that no one even knew couldn’t be recycled. And it’s not even their fault, for the same exact reason we don’t expect people to know not to lick the lead paint off their mid-20th century coffee mugs.
There may be good examples out there, but I’d argue Atom isn’t one of them. VS Code was clearly intended to be a spiritual successor with MS branding IMO, it is a fork of Atom, and it is equally open source (MIT license).
You could probably do this pretty easily with a custom pre-build step.
I’m not confident a single 2000 line config file would be better, though. Sounds an awful lot like Makefile hell.
https://ourworldindata.org/grapher/historical-cost-of-computer-memory-and-storage?time=2017..latest