Better HN
topnewbestaskshowjobs
Log inSign up

wavemode

6,826 karma · joined Apr 19, 2017 (9y ago) · 1,859 submissions

Submissions

comment 6mo ago · link · parent

My rule of thumb has always been that, macros are great for general things but very bad for domain-specific things.

A macro like (logged-fn) that defines a function which logs the arguments passed, is wonderful.

But if you see a macro like (validate-report), something very wrong happened.

comment 6mo ago · link · parent

That seems entirely unrelated?

comment 6mo ago · link · parent

It's effectively a pause. In a project the size of CPython, and a subproject the complexity of a JIT, you can't continue work on a separate branch/repo without guaranteeing that there will be a massive amount of (both textual and semantic) merge conflicts down the road.

comment 6mo ago · link · parent

Not everyone in the world who compiles a C++ project is necessarily doing so for an "org"

comment 6mo ago · link · parent

Deque is one of the easier ones.

I echo the parent commenter - the STL has a massive negative impact on compile times. And for what? The STL is not even fast. The way the standards are written, std::unordered_map has to be implemented as a tree rather than a flat open-addressing hashtable, which would've been far superior due to cache locality.

For my own project I rolled my own string, string_view, map, set, optional, variant, and vector. Only took maybe a day. And that day has paid dividends, as my clean debug builds literally take 3 seconds now.

comment 6mo ago · link · parent

A fresh build of a large C++ project taking 1 hour does not sound strange at all.

If that's an incremental build though (i.e. simply rebuilding after changing a few files), there's something very wrong.

comment 6mo ago · link · parent

> Microsoft leverages its immensely powerful position as the supplier of the ubiquitous Windows PC operating system, as well as many productivity and other must-have apps, to push users towards its first-party browser, Edge, through tactics that restrict, distort and subvert user choice.

Heh. This could have been written 25 years ago.

Though at least back then, Microsoft was winning. Since then, the market share of IE/Edge has become so irrelevant that most people have stopped caring so much about these tactics.

At this point, it mostly just comes across as adorable when Windows tries to push you to use Edge. Like "wow, they're still trying."

comment 6mo ago · link · parent

https://rationalwiki.org/wiki/Fractal_wrongness

comment 6mo ago · link · parent

Eventually, in moviemaking, generative AI is going to be seen the way CGI is. That is, how people complain about CGI when it's obvious/distracting/noticeable, but the best usages of it won't be noticeable.

comment 6mo ago · link · parent

This was tested in Singapore 10 years ago and successfully reduced the spread of Dengue fever by 77% and has not negatively impacted the ecosystem.

This isn't a project to eliminate all mosquitos. There are over 3600 species of mosquito - this project is only targeting one: Aedes aegypti, which spreads many diseases, and is in fact an invasive species. Anywhere you see an Aedes aegypti outside of North Africa, it was humans who brought it there in the first place. This project is just trying to undo that.

comment 6mo ago · link · parent

on the concept of Wallpaper Groups: https://en.wikipedia.org/wiki/Wallpaper_group

comment 6mo ago · link · parent

None of what pg writes here is factually wrong per se, but he is obviously making a bigger deal out of a lot of these things than they really are (that is, he was obviously writing this to convince more people to start and join startups - hopefully at YC).

Some people (most people?) are perfectly happy with just working a stable job within a giant corporation. Either because they are capable of still finding fulfillment from work despite not having so much control (the kind of control that people who start businesses tend to crave), and/or because they find their fulfillment outside of work entirely.

comment 6mo ago · link · parent

> We are "naturally" meant to die at 21

Not really? Historical life expectancies were low because it was so common to die in infancy and childhood (thus dragging down the "average").

For people who made it to 20, it was common to live past 60.

comment 6mo ago · link · parent

Carry-on luggage is usually not weighed, there are simply safety margins in place for that sort of thing. (A human probably isn't capable of carrying a bag heavy enough to erode those margins.)

And fuel burn is the least of the concerns when it comes to weight - a far bigger issue is how it affects balance and engine lift. But on a plane the size of a jet airliner, this too is almost never a real concern when it comes to passenger weight - a standard weight is just assumed for each passenger and their carryon. (It's a concern for cargo weight, but that's why cargo is always weighed and balanced properly.)

Maybe if the airline notices that all the passengers are sitting on the left (for some strange reason) or something like that, they would reseat people.

comment 6mo ago · link · parent

I disagree completely. Backwards compatibility has precisely nothing to do with why Windows is terrible nowadays.

And that's also entirely orthogonal to hardware - the hardware battle between ARM Mac and ARM PC is really a battle between Apple and Qualcomm (Apple won).

In hindsight, rather than relying on Snapdragon, Microsoft should have started designing their own high-efficiency ARM SoCs 15 years ago like Apple did. But I mean, everything is clear in hindsight isn't it.

comment 6mo ago · link · parent

> That's... an incredibly narrow law, that only covers a class of games which are particularly stupid by design. (Continuous cost without continuous revenue.)

Eh, it sounds unintuitive, but in practice it's extremely common. Almost every first-person shooter (well, you could really expand that to "almost every competitive multiplayer game") made by major studios is either a one-time purchase or entirely free. The ongoing revenue comes from cosmetics and other in-game goodies.

This sort of economy makes sense when you consider consoles (especially back in the day), where it's easy to get people to buy a disc but hard to get people to sign up for a subscription.

comment 6mo ago · link · parent

It baffles me that they do this. I have to disable push notifications from Lyft entirely, so instead they send me ride updates as text messages, which surely must cost them way more money. Why not just introduce a "ride updates only" push notification category and stop this madness?

comment 6mo ago · link · parent

I assume he's referring to: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3207.pdf

comment 6mo ago · link · parent

That comment appears to be from 9 months ago, regarding an entirely different article.

Also, you've cut out the part where he says he did use AI, but just to "resort" the article (by which I assume he means "reorganize"). Whether one believes that is gonna be a judgment call I suppose.

comment 6mo ago · link · parent

No, dehydration is the common term when it's specifically water that's being removed.

https://en.wikipedia.org/wiki/Dehydration_reaction

comment 6mo ago · link · parent

What an arrogant comment. You have no idea what kind of software the parent commenter is working on. If you think all software can be handled by AI then I'm afraid you're the one who doesn't know what they're doing.

comment 6mo ago · link · parent

Eh, I definitely do think that it has become a mainstream take. Not necessarily that we want lower-quality code, but simply that humans shouldn't be reviewing AI code for quality at all - that is, that code quality doesn't really matter and what matters is that the software works.

This is the entire premise of the concept of "vibe coding", and the concept of non-programmers using coding agents. The idea that there aren't large amounts of people and companies doing these things and/or who consider it "the future" is hard to argue.

comment 6mo ago · link · parent

Well, design isn't just about looking nice, nor even just about what people think about it. Something can look nice and fail as a design.

That is to say - it's entirely possible to have a design that a layperson looks at and goes "wow that's beautiful", and then A/B test it in the real world and your revenue goes down X% because (for example) certain important sections now require more clicks to access.

Or to use a real-world example - you could redesign a train station and make it more beautiful while also increasing the amount of people who get lost because it's now more difficult for some people with poor eyesight to find the right track.

comment 6mo ago · link · parent

Really useful database, though the website could really use a filtering feature rather than just sorting.

comment 6mo ago · link · parent

Is there any large-scale economic or political system which does not contain a group of elites possessing "a tremendous amount of power which allows them to bend the law to their will"? Not a theoretical one, but one existing in real life.

comment 6mo ago · link · parent

That rule doesn't mean it's illegal to move a piece that's pinned. It just means that it's illegal to move it to a square that would expose the king. For example a pawn that's pinned vertically can still push forward, it just can't capture diagonally.

That's why treating colloquial concepts like "pinning" as though they are rules in and of themselves is not really precise or productive.

comment 6mo ago · link · parent

> But religion is primarily for control of the people. Thats why you see a lot of rules in the bible. Like paying 5 silver for raping a woman and having to take her as abride.

well, now you're just revealing that you don't understand the religion of Christianity at all

1
121314
62