1,581 karma · joined Oct 22, 2022 (4y ago) · 796 submissions
301.
Ask HN: Use RAM sticks as SATA drives?
34 points · by simplotek · 3y ago · 69 comments
comment 3y ago · link · parent
Premature generalization is a well known problem and a never-ending source of complexity. I lost count of the times I had to push back on PRs of clueless developers who felt the need to generalize one-liners that pop up twice in the whole project, and for that their proposal was to add a strategy pattern, ultimate replacing two expressions with three classes.
comment 3y ago · link · parent
I'm perplexed by the mental gymnastics you had to resort to to try to deflect any responsibility from Musk, let alone the despair to omit any reference to the extremely poor judgement and outright incompetence it takes to pull this sort of stunt, and instead fabricate this theory where this impulsive shot in the foot was actually a brilliant plan to thwart entrenched interests.
Occam's razor and Musk's track record reject this hypothesis. Musk f-ed up, just like he keeps on f-ing up, like the recent shit fest of Musk posting a stream of brain dead and profoundly I'll advised tweets trying to publicly smear a employee with disabilities.
comment 3y ago · link · parent
Mass transit systems have some peculiarities that private transportation systems don't have, such as creating mass demand and concentrating it on specific spots. Each train stop is a natural generator for demand for housing and services in volumes that urban sprawl does not, and this leads to more affordable housing with shorter commutes and with far better services that lead to a far better quality of living.
But this potential to be realized needs urban development that takes advantage of it, which require investment.
I'm not sure if the figure is $1T but there are examples in the world where railway operators get their main source of funding and incentive to grow their network by being granted favourable conditions to invest in real estate surrounding new train stops.
> (...) and declining usage of existing public transit.
I'm sorry, the US is notorious for having self-sabotaging public transportation services, designed to pay lip service for the need to provide mobility alternatives,but actually designed to be impactical and outright hostile to commuters.
If the US learns basic lessons from the many case studies from throughout the world, nothing stops the US from benefiting from identical adoption rates seen outside of its borders.
comment 3y ago · link · parent
To attest to Ukraine's prowess, Russia's ruling regime is now afraid their defeat spells the collapse of Russia and consequently it's fragmentation.
In the meantime, the west already lined up a massive plan to rebuild Ukraine, not to mention it's already in the process of joining the EU. There are countries who had a far less favourable postwar setting which rebounded quite well.
If Taiwan has any lesson to take from Ukraine, that lesson is that fighting for its independence pays off.
comment 3y ago · link · parent
I'd wager that if you're amassing forces to conduct an invasion and midway through you discovered your target has nukes pointed at you, the very least you'd do is rethink your strategy and put a pause on operations.
comment 3y ago · link · parent
Ukraine is holding out extremely well and poised to achieve an unconditional victory. It's victory comes at a price, but one that any free and independent nation prides itself of paying.
comment 3y ago · link · parent
The British Empire precedes and was multiple times longer than PRC's rule of mainland China. If you're wanting to play the legitimacy game, by your own measuring stick the UK still has more legitimacy over the rule of HK than the PRC.
comment 3y ago · link · parent
This. PRC's talk of "reunification" reads like a trojan horse played with a long hand which was what happened in HK.
comment 3y ago · link · parent
I'm not sure your false dichotomy holds. The definition of resume driven development is not whether there's a business case of not for a change, and the definition of legacy system is not the cost of upgrading it.
> Why are we switching to JS-Framework-De-Jour? Why are we using this graphdocumentjsondistibutedimmutablelog database all of a sudden? How does this improve the business? How do see a path to a positive ROI from this decision?
False dichotomies. You're assuming that not maintaining your software is free from cost or business impact, and you're assuming that switching to the latest and greatest does not bring any operational advantage.
comment 3y ago · link · parent
In your opinion, what's so wrong in prefering to just run your JS/TS code without having to maintain a build/bundling step?
To me, Deno's approach is undoubtedly a killer feature with regards to the status quo of the whole nodejs ecosystem. Don't you agree?
comment 3y ago · link · parent
What do you have to say about the fact that apartments are the only option?
It feels to me that you're trying to depict not living in a nice suburban villa as subjecting children to abuse, as if this was a whimsical decision of egotistical parents.
Meanwhile, moving to the suburbs is a luxury that's way out of the reach of working class families, not to mention the fact that outside of the US it's outright unthinkable.
And all the time wasted commuting is not considered abuse why?
To me it reads you're claiming "let them eat cake", followed up by "not letting children eat cake is anti-children."
comment 3y ago · link · parent
If you're really interested in the impact of performance issues on everyday life, you need to provide concrete examples instead of putting up unverifiable strawmen.
The truth of the matter is that 99% of real world applications run just fine, and it doesn't pay off to invest in shaving milliseconds here or there. Would it be desirable to have a magic wand to improve some edge cases? Yeah, why not? Is it worth to pay people to spend time with a stopwatch at hand to shave off these milliseconds? Not really. It's all about tradeoffs, and there is no real world payoff in wasting developers' time to shave off that millisecond here or there.
comment 3y ago · link · parent
If you can't recognize the percent where it matters a lot, clearly that percent does not exist and you're bothering about nothing.
I see a lot of talk about the importance of tuning Formula 1 cars in a world where everyone drives ford fiestas.
comment 3y ago · link · parent
I feel you're missing the whole point.
It's immaterial whether anyone can get to optimizations that compound multiplicatively. The whole point is that halving something that costs nothing earns you nothing. That's the whole point. Go ahead and shave off that millisecond. Will anyone actually notice whether you add or remove that penalty? Odds are, not at all.
comment 3y ago · link · parent
You attempted to present an argument that's a textbook example of an hyperbolic fallacy.
There are worlds of difference between "this code does not sit in a hot path" and "let's spend multiple seconds of local processing time".
This blend of specious reasoning is the reason why the first rule of software optimization is "don't". Proponents of mindlessly going about the 1% edge cases fail to understand that the whole world is comprised of the 99% of cases where shaving off that millisecond buys you absolutely nothing, with a tradeoff of producing unmaintainable code.
The truth of the matter is that in 99% of the cases there is absolutely no good reason to run after these relatively large performance improvements if in the end the user notices absolutely nothing. Moreso if you're writing async code that stays far away from any sort of hot path.
comment 3y ago · link · parent
To me that means absolutely nothing, as visual studio and msbuild fails to support basic features like compiler launchers, which enable using compiler cache tools like ccache or sscache.
While you're benchmarking compilers, I plug ccache and build projects with dozen of subpackages in under a minute with build servers maxing out on IO.
comment 3y ago · link · parent
I feel this is a red herring.
People use AppleClang because it ships with Xcode and is integrated with it. Those who are stuck with Xcode will not choose msvc's support for C++20 as a good enough reason to drop everything.
With Clang, the main differences with MSVC boil down to a couple of minor features that are hardly showstoppers, such as simplifying implicit lambda captures.
Between being able to use clang and all it's tooling and being stuck with msvc, using clang is far above in importance.
comment 3y ago · link · parent
I dare say that one can go through a whole career as a software engineer without spending a single semester learning about algorithms, in the sense that you just start learning about them in a JIT fashion if/when they become an issue, which is rarely.
Some of the O(X) trivia so much sought after in some interviewing circles is even fundamentally wrong when real world aspects such as problem size or CPU architecture come into play.
comment 3y ago · link · parent
I mean, he might still have been extremely racist, but it's strange how he recently came off the hinge and out of the blue decided to just spew all kinds of extremely racist statements and conspiracy theories.
comment 3y ago · link · parent
Irrelevant. The whole point is that cmake 3.0, which was released in 2014, is an entirely different beast. See "modern cmake".
It makes no sense at all to argue thing about stuff just because you used something two decades ago. Totally irrational.
comment 3y ago · link · parent
This take sounds ridiculous. It's ok if you want to use the project to try to drive up the adoption of a build system, but it's absurd to argue against the adoption of a widely established build system by stating that people should instead use other IDEs.