Better HN
topnewbestaskshowjobs
Log inSign up

simplotek

1,581 karma · joined Oct 22, 2022 (4y ago) · 796 submissions

Submissions

301.

Ask HN: Use RAM sticks as SATA drives?

34 points · by simplotek · 3y ago · 69 comments

comment 3y ago · link · parent

> (...) because it was not written in the modern way or it was not very generic or whatever.

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

> Maybe once those plans were noticed, they would have been resisted and thwarted by people who wanted to retain their power within the organization.

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

> (...) for a route that’s already served by air and road options in a state with stagnant population (...)

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

> It does not have a credible chance of hurting the rhino.

I don't follow. What exactly leads you to believe that lobbing nukes at an invasion force's staging area and/or neighboring military bases "does not have a credible chance of hurting" the invader?

comment 3y ago · link · parent

I'm not going to go off on a tangent on a discussion on Taiwan, but I don't believe none of your assertions is grounded on reality. Ukraine is doing magnificently on the battlefield, specially given Russia planned their invasion to be a 3-day event with frontline soldiers packing parade uniforms and riot gear and Russian generals booking restaurants in Kiev in advance.

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

> Ok, they reveal them. What is next? Nukes are not magic.

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

> If China does invade, then it seems likely that North Korea would also invade SK, forcing the US to fight on at least 2-fronts, or 3 depending on what Russia is doing.

You mean just like what the US did during the 90s and 2000s?

comment 3y ago · link · parent

> Reality going forward is Taiwan is going to have to look at HK or UKR and decide if they want to be just another Chinese city or glassed island that will never recover.

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

> Promises made to appease the British as a condition for the handover.

Care to explain what point you believe you are making?

comment 3y ago · link · parent

> Hong Kong was seized by a colonial interloper. Why would China take orders from someone who took their land?

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

> (...) the People's Republic of China did not hold up their end of the bargain with the UK in HK so there is no reason to trust them in any agreement of "reunification" in Taiwan if the terms are anything other than complete submission to PRC rule.

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

> Keeping your software up to date as dependencies age and go out of support or the platform you build on evolves is not resume driven development. There’s a business and engineering case that can easily be made for that.

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

> Most cities aren't proper by that definition.

OP is not the exception. I have at least two playgrounds in a 300m radius. Perhaps I'm lucky but I don't recall ever living in a place that didn't had at least a playground in walking distance.

comment 3y ago · link · parent

> A good craftsman knows not to use bad tools.

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

> I'd argue the parents of said children are anti-children, because they are living in an apartment building without any possibility to play for the children nearby.

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

> So why do 99% of real world applications run like garbage?

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

> How does an organization which has been built on 99% not doing optimization recognize the one percent where it matters a lot?

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 realised when I implemented EdDSA for Monocypher that optimisations compound.

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

> That's really not even close to true. Loading random websites frequently costs multiple seconds worth of (...)

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

Kata containers sound interesting, but the first thing that hits you when checking the "learn more" section is the fact that the latest entry in their "news" section dates back to January 2019. Is the project still maintained?

comment 3y ago · link · parent

> clang doesn't come with a state of the art IDE,

What are you talking about? I use Clion just fine regardless of compiler.

> GUI frameworks, hot code reloading, among lots of other goodies.

Do you understand that those features have absolutely zero to do with compilers?

comment 3y ago · link · parent

> Did you read the article? MSVC compiles twice as fast as clang and has double the perf in debug builds.

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

> Except MSVC is far ahead of Clang[1] (and leagues ahead of Apple Clang) when it comes to C++ standards conformance.

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

> Computer science is a pathway for those that want to delve deeper, and that necessitates rigorous fundamentals in applied mathematics and information theory.

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

Might it be possible that the guy is undergoing a mental breakdown?

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

> I started to use it when I used VTK in the early 2000;

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

Not really. You are the one claiming that a survey is not statistically representative, and based on that baseless assertion you proceed to argue the exact opposite without any proof or reason.

Does this feel even remotely reasonable to you?

comment 3y ago · link · parent

> It doesn't make sense to add qmake support to LeanCreator because Qt Creator is still available on all platforms and continues to support qmake (at least I have no other information).

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.

comment 3y ago · link · parent

> 57% of the people willing to respond;

Unless you have any data supporting your personal belief, it hardly sounds rational to try to reject objective data just because you don't like it.

1
101112
27