Better HN
topnewbestaskshowjobs
Log inSign up

devnullbrain

1,889 karma · joined Nov 25, 2022 (4y ago) · 747 submissions

Submissions

comment 2y ago · link · parent

It's also just something that all engineers do. EEs don't concern themselves about the power-draw of an LED on a space heater. MEs don't work hard to make a piston last 100 years in an engine that will last 10. It boils down to 'focus on important things, not unimportant things'.

comment 2y ago · link · parent

>Write the simplest code first - get it right, if too slow or uses too much resource then set a measurable goal what a good speed or resource needs to be and then optimise until you reach that goal.

So you write the code with algorithm X. You potentially might not know the complexity, depending on how extreme you are with this philosophy, but let's say it's O(n^2). You run it on your test data. It's too slow because of some unneeded deep copies. You change that. Now it's fast enough. It gets merged.

3 years later, you're experiencing integration test failures, because scaling up your system has caused this algorithm to make things time out. No problem: you'll simply look into it and optimise it. Except you can't. Thanks to leaky abstractions, threading-models, or just an inherent quality of the code, changing this algorithm to something with a lower complexity becomes a major refactor. Pray you don't have external APIs or stakeholders depending on it.

So, not only have you wasted the time polishing the O(n^2) algorithm, you also now have a huge technical debt from what can simply be described as inadequate forethought.

The 'simple code now, polish later' process - which is really just 'move fast and break things' in a different shade of paint - means you never learn to internalise the easy wins. It also paradoxically portrays optimisation as both too complex to do initially but trivial to do later. It's not the latter. Having a good gut-feeling of algorithms or the Kafkaesque way memory works is not something that is learned over the course of a JIRA ticket - it's learned over the course of years, treated as any other code-quality concern. For comparison, you could close many tickets quickly by using a global variable to pass data around. But you don't. You make sensible, idiomatic changes to make sure things are stored and accessible where makes sense. Optimisation is the same: there is a lower bound below which it's unacceptable, even if it's not something that fails requirements.

StructuredProgrammingWithGoToStatements was written in 1974. It doesn't track well to modern computing models. I have more L1 cache than he had main memory. I do accept that the vast majority of bugs were from this, 50 years ago. I don't accept that's still true today. It's still a useful thing to teach new learners so they learn how to prioritise their development but as professionals creating novel things we need to have a certain level of planning ahead. And pride.

It's also a tautology. If the optimisation is worthwhile, it's not premature. If the optimisation is noncritical, it's premature.

My example above is not fanciful, by the way. Off the top of my head, Windows, Python and C++ all had/have trouble with some performance loss due to the fallout from earlier decisions and difficulty rectifying it once the world is built on top of it. I've run into similar problems at my own jobs, particularly anywhere that uses microservices. You can't avoid all of these but you should avoid those you can.

comment 2y ago · link · parent

Empirically, companies are very bad at evaluating this cost. If they weren't, upwardly-mobile job hoppers wouldn't exist because the previous company where they generate positive value would have increased their salary over the salary they could get elsewhere. In practice we see that the companies are reluctant to give raises, hiring costs are considered capex, and there are inefficiencies in salaries because frictions cause employees to stay in roles that are not financially optimal, meaning there's a premium to accepting the risk of moving jobs.

comment 2y ago · link · parent

There's an odd phenomenon where people become hiring managers and begin to think they're the sole authority on what other hiring managers care about, despite all evidence showing that it's an inconsistent, inexact science. Hard truth: if you're not a job-hopper, you have less varied experience of what it takes to get hired than those who are.

comment 2y ago · link · parent

And all we have to show for it is a 1600% increase in GDP.

comment 2y ago · link · parent

>when AVX is used

spoiler: it isn't

comment 2y ago · link · parent

Rough, try getting directions to your hotel and nobody can tell you.

comment 2y ago · link · parent

And it's a good law elsewhere? :)

You're also welcome not to buy a phone for your parents. It would be disingenuous for me to suggest you actually do so, because we all make choices under duress or with limited options.

comment 2y ago · link · parent

Not only do I think it's relevant, I think it's the whole point. The security argument is the outcome of finding the most useful, contentious point that would support them continuing to make the gobs of money. It's the same way 'think of the children' is used for arguing in favour of various types of censorship - everyone in the know is aware it's not the real reason but we live in a society where calling someone out for BSing is considered rude, or bad politics. So the rest of us have to nod along while being treated as fools.

The TAM is saturated. Taking share from Android is difficult. Making more humans use smartphones is difficult. Making more humans is difficult. Extracting more rent is not. So the idea that the security is more important for future revenues than the ability to exploit the userbase doesn't hold up, particularly when there isn't and can't be an alternative with a different security model.

comment 2y ago · link · parent

No. Follow the law.

comment 2y ago · link · parent

A wise man once said:

'If you don't cannibalize yourself, someone else will'

comment 2y ago · link · parent

Crucially, that's not because Microsoft are more ethical - it's because they didn't figure it out first. The solution to this is not a better company, it's better adherence to and implementation of the existing laws.

comment 2y ago · link · parent

You are conspicuously not noting how much Apple value the $89 billion they made on app store commissions last year.

comment 2y ago · link · parent

The sky hasn't fallen for the 70% of smartphone users who have an Android.

comment 2y ago · link · parent

It's so funny that every HN post on this topic produces more and more contrived reasons for why having less choice is better, actually. Today: my parents need to be coddled like children, so you don't get to install a new browser.

It's only because Apple's legal wrangling failed that Android even exists today.

comment 2y ago · link · parent

>Why sign up for it?

Because, when you buy an Apple device, they shove free trials for subscription services down your throat in the hopes that you'll do exactly this. And it's not strange that they don't use it: the first thing you discover after starting the free trials is that they're useless and full of shovelware.

comment 2y ago · link · parent

There's a ~90% chance it won't even go to trial.

comment 2y ago · link · parent

It's the other way around. Trying to search for problems with Stable is more difficult because potential fixes require things your OS doesn't have yet.

comment 2y ago · link · parent

You can't use 'just' when the thing you're suggesting is more work.

comment 2y ago · link · parent

My experience working at companies using Linux machines to target Linux devices is that IT treat Linux as a headache or a toy OS. They like Windows. They like being able to give you an antivirus that cripples any compilation. They like being able to ignore fine-grained resource management - everyone needs to be a superuser to get anything done, anyway.

comment 2y ago · link · parent

>Debian

OK, sure

>Stable

Masochism

comment 2y ago · link · parent

>The search in windows has never been worse

All the while, Voidtools have been doing it better, for free.

comment 2y ago · link · parent

Buying McDonald's food does not make it legal for them to poison you. Buying Microsoft's OS does not make it legal for them to break antitrust law. Again.

comment 2y ago · link · parent

Games companies seem to struggle to branch out. Like all the employees are put on one game at a time which takes longer to make than ever before. You can't polish a turd - why isn't putting all your eggs in one basket considered a risk? Why aren't these valuable IPs being exercised while we still remember what they are?

I don't buy that it suddenly takes 5 times longer to make a game. Voice acting and mocap FMVs are self-inflicted wounds. There are some genres like 'imsims' and metroidvanias which are so strongly defined by a few beleaguered series that talented indie devs have picked up the slack. Their great challenge is not making a good game, it's making the game be seen. Make a game with a similar team size but using an IP people remember fondly and you've got a hit. At worst, you've wasted a fraction of the budget Rockstar are spending on bespoke concrete textures.

comment 2y ago · link · parent

Cruelty Squad

Signalis

Post Void

Ultrakill

Omori

Everything from David Szymanski

comment 2y ago · link · parent

Is it not non-deterministic by choice? A random factor added to prevent it from just choosing the deterministic most-likely next token.

comment 2y ago · link · parent

If I stand up too quickly or hold my breath, it's consciousness that I start to lose, not my consciousness's control of my body. It seems to me that implies consciousness comes from the brain.

comment 2y ago · link · parent

'Of course it's a Whitworth screw, look at it!'

comment 2y ago · link · parent

My patriotic side hopes we will all use this reasoning to revert to using GMT instead of UTC.

comment 2y ago · link · parent

>people on this thread are trying to finesse the facts to support the theory they like.

Explicitly so, given that the root of this thread is saying it is a theory that they 'like', not that they think is objective truth.

1
121314
25