Better HN
topnewbestaskshowjobs
Log inSign up

rootlocus

3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions

Submissions

comment 4y ago · link · parent

And yet we all agree, spoiled food tastes terrible.

comment 4y ago · link · parent

Casey lives in a bubble of his own, where he's the sole developer of every project he starts and he gets to make all the rules for himself. He doesn't really have customers, stakeholders, deadlines, he doesn't work on distributed enterprise software, etc. He makes indie tools and games.

I really appreciate his push for simple and efficient, but in reality, the industry has spawned hundred of thousand of software developers these last decades, and collectively we've simulated every possible way of building software. The simple reality is, teams who followed well established patterns and good practices have had more success.

comment 4y ago · link · parent

Sure there is, because there's a metric for it: "WTF"s per minute. Or, more seriously, cyclomatic complexity. I'm sure there are others.

comment 4y ago · link · parent

Read The Fabulous Sources?

comment 4y ago · link · parent

Well, the STD documentation page has a red banner saying it's experimental and you should consider reading the code (which worked great for me) so at least you have a warning.

comment 4y ago · link · parent

Zig absolutely has documentation: https://ziglang.org/documentation/master/

comment 4y ago · link · parent

We play video games.

comment 4y ago · link · parent

How do the two processes listen to the same port?

comment 4y ago · link · parent

That's like arguing it's not the voltage that kills, it's the current. Technically true, but practically useless.

comment 4y ago · link · parent

When trying to build an argument from first principles you should stop. You don't, and quite possibly can't, make complete and irrefutable arguments. The world is filled with exceptions, humans with emotions, probabilities, etc.

> In reality, profit gets maximized when you have a team full of high achievers and with very low turnover.

Profit is a function with lots and lots of parameters. Who are you to say which parameter has the highest weight? How about market share? How about profit margins? How about illegal deals with public funding? How about marketing? How about creating addictions? How about being niche? How about having excellent customer support? How about having better quality?

Lots of companies make significant profit from a legacy project that's almost impossible to improve, but marketing still finds clients that want it. They don't need a team full of high achievers with very low turnover.

comment 4y ago · link · parent

I've actually watched Andrew Kelley stream implementing and designing the Zig compiler and I've been following the discussions on language features. But this is just another whataboutist strawman.

comment 4y ago · link · parent

I didn't assert Bjarne doesn't have a clue how to design a language (and I can list features of C++ that are brilliant). I didn't provide examples of "design perfection", I provided examples of design principles I think better manage complexity.

I asserted CFront was a mess of ad-hoc features implemented in a rush prioritized by personal hubris. I asserted Bjarne didn't consider how much complexity was piling up and didn't listen to critics. I've provided you with quotes from his own book supporting this.

Your every reply was condescending whataboutism, my friend. Can you provide counter arguments why CFront was a beautifully thoughtfully designed language where features and complexity was considered and debated before being implemented? Because all your other arguments are just strawmen.

And I would really appreciate it if you could use a language that at least tries to use a constructive tone that adds value to the debate, instead of the snarky sarcasm one-liners. I don't care much for this white horse, Bjarne defending attitude.

comment 4y ago · link · parent

It's really ironic that you're the one to play the goal post moving card, when you haven't refuted my original statement.

They don't have to be "perfectly" designed, the design needs to exist. If Go didn't have a design, it would've had a half assed generics implementation, like C++ has multiple inheritance. It's precisely because generics are hard to implement right and the design constrains how much you can stretch the language that Go still doesn't have them. And it's arguably a good thing.

Sorry I wasn't explicit: it's safer and easier to write the same application in Go or Zig than it is in C++, even without generics or read-after-write compile-time checks.

comment 4y ago · link · parent

People still write Go applications fine without generics, and Zig is a smidge higher level than C and currently in beta. How does this disprove anything I argued before?

comment 4y ago · link · parent

Rob Pike's reluctance to implement anything in Go that would add unnecessary complexity. Or Andrew Kelley's Zig language principles of no hidden control flow.

These are examples of doing more with less and avoiding unnecessary complexity by thinking ahead. Ironically, they probably wouldn't be designed the way they are if it wasn't for the hindsight provided by C++

comment 4y ago · link · parent

Here are a few excerpts from "The Design and Evolution of C++"

        Another factor was purely irrational. Nobody seemed to doubt that I could implement templates efficiently. Multiple inheritance, on the other hand, was widely supposed to be very difficult to implement efficiently. For example, in summary of C++ in his book on Objective C, Brad Cox actually claimed  that adding multiple inheritance to C++ was impossible. Thus, multiple inheritance seemed more of a challenge.
He then goes on a 13 page explanation of how he thought there was a simple implementation.

He then acknowledges the controversy, but brushes it aside with:

        I think - as I did then - that the fundamental flaw in these arguments is that they take multiple inheritance far too seriously. Multiple inheritance doesn't solve all your problems, but it doesn't need to because it's quite cheap. Sometimes multiple inheritance is very convenient to have.

        I have kept out of the multiple inheritance debates: multiple inheritance is in C++ and cannot be taken out or radically changed; I personally find multiple inheritance useful at times; some people insist that multiple inheritance is essential to their approach to design and implementation; it is still to early to have solid data and experience about the value of C++ multiple inheritance in large scale use; and, finally, I don't like to spend my time on sterile discussions.
This goes hand in hand with the original "principles" of C++ design, namely "C++ must be useful now". It didn't really matter how the complexity will evolve in the future, as long as it solved someone's problem today. And once it was implemented, there was no going back, so it didn't matter what people thought, it was done.

This process isn't really what I would call "design".

comment 4y ago · link · parent

He basically added every feature he could think of on top of C, glued it with spit and released it as a pre-processor. There was barely any design involved. Just look at how many types of inheritance there are.

I remember Stanley B. Lippman (one of the first developers on cfront) recollecting how the proposal to implement multiple inheritance was met with resistance from the community. And the implementing team realized they couldn't write a sane implementation, and people complained against it, but they made one anyway, partially because they wanted to prove they could. New features to cfront were added with very little concern for design.

Things where standardization would have mattered (like the mangling algorithm) were never touched, so now every compiler has the liberty to generate whatever symbols it wants, and call functions with whatever calling convention it chooses, so you either have to compile all your dependencies, or make sure you fetch the binaries that use the exact same compiler version and flags, otherwise they won't link.

Also, Stroustrup didn't "soldier on", the CPP standard is maintained by a committee of people from all over the world, and the standard library slowly adopts data types and algorithms from the boost library, because they need a multi-year staging period, handled by someone else, to see if things work before they muster the courage to standardize it.

comment 4y ago · link · parent

Under every modern, shiny, abstract, high-level feature of the language or the standard library there are layers and layers of legacy cruft. Every aspect the language has experimented with has to be supported by the new features, making simple things like the Variant type for example, very difficult to implement correctly [1].

C++ is nice and good until you hit a bug that leaks an abstraction and you realise you barely understand 10% of the language, and you'll never understand it completely, because people spend their entire careers trying to track down how language features interact and where they explode, and they're never finished.

[1] https://www.youtube.com/watch?v=JUxhwf7gYLg

comment 5y ago · link · parent

And we taxed the planet a little bit as well.

comment 5y ago · link · parent

Full screen ads after reading for 15 seconds with uBlock Origin active.

comment 5y ago · link · parent

It tells you there's an increased interest in participating to the current topic, that multiple messages from different people will appear concurrently and split the topic. It's an indication you should probably stop typing, as your message will get lost in the noise.

comment 5y ago · link · parent

I work with clean java, and it's a charm!

comment 5y ago · link · parent

For me it's just painfully slow.

comment 5y ago · link · parent

The CPU is a groundbreaking piece of technology. The OS / runtime can be patched. It's not like Intel or Microsoft release flawless hardware and software. And obviously, competition is at the heart of capitalism.

235.

Microsoft PowerToys(github.com ↗)

3 points · by rootlocus · 5y ago · discuss

comment 5y ago · link · parent

The title is "Sx truths", meaning there's no room for argument, interpretation or nuance. It's not his opinion, they're not observations, they are truths. That sets the tone for a strongly opinionated point of view, that ultimately failed to provide suficient proof for most of its examples, making it a rant.

And rants are fine, but trying to present it as the profound observations of a veteran with 20 something years of wisdom that shits on everyone's favourites without many arguments ("The Last of Us [...] having a story as good as a medium-quality zombie movie" is not an argument) comes of as toxic.

comment 5y ago · link · parent

> A few years ago Apple introduced a new logging framework called the Unified Logging System, which supports logging with variadic arguments from both Swift and Objective-C. It also supports a host of other features that allow you to categorize and prioritize your log message and, well, it sounds great, but it’s also quite a bit more complicated than just invoking NSLog. It’s complicated enough that I can’t offer a one-line fix for the situation I’ve described here, but I encourage you to investigate your options.

comment 5y ago · link · parent

I think it stops being pedantic when it's a 19 orders of magnitude difference between 1ms and 60mya

comment 5y ago · link · parent

It really is mindblowing when you think it actually happened 60 million years ago.

comment 5y ago · link · parent

> so I'd say they have it pretty easy.

Did any of your colleagues die of overworking?

1
789
40