HNHacker News
TopNewBestAskShowJobs

yodelshady

1,112 karma · joined June 8, 2020

submissionscomments
yodelshady··on The Fastest FizzBuzz Implementation
``` for i = 1:typemax(UInt64) s = "" if i % 3 == 0 s = s * "fizz" end if i % 5 == 0 s = s * "buzz" end if s == "" s = string(i) end println(s) end ```

Measured over 10 s after a 10 s burn-in period, Julia 1.7 on Ubuntu 21.10.

yodelshady··on The Fastest FizzBuzz Implementation
edit: weirder, naive Julia (1.7 on Linux) is terrible. 45 KB/s.

Ruby is slightly slower than Python or Rust, 11 MB/s. I was expecting Python to be slowest among the interpreted languages, apparently not. Pypy yields a speedup to 70 MB/s.

Summing naive implementations (for each i: start with empty string, append fizz/buzz based on the modulus of each, then conditionally append i and print):

Julia 45 KB/s Ruby 11 MB/s CPython 15 MB/s Rust 16 MB/s Pypy 70 MB/s C 160 MB/s

yodelshady··on The Fastest FizzBuzz Implementation
FYI, on my machine a naive Rust implementation (modulo plus println!) runs at the same speed as a naive Python implemention (16-17 MB/s), even compiled with --release. Naive C manages 160-170 MB/s. (And I fully admit the naive implementations are pretty much as far as I'm going with this).

I would guess it's the println! macro eating the time.

yodelshady··on Campagnolo's revolutionary new gearing system from 1946
Given a totally free choice, I'd love to try building up a racing frame with a modern hub gear. All those moving parts exposed to road grime, gone.
yodelshady··on Will the climate crisis force America to reconsider nuclear power?
The article briefly mentions an enormous practical difference between the US and Europe:

>Third, a heatwave in August of 2020 led to rolling blackouts across [California] as demand for electricity (to power air conditioners) outpaced supply.

Dry hot places have a better power solution, trivially.

Cold places, for the same reason, do not.

Meanwhile, parts of the former USSR have heat that really is too-cheap-to-meter.

yodelshady··on Macron says France will build new nuclear energy reactors
That has a significant risk, what if you hit the end of your range whilst the deficit is still getting worse? Deficits are not following nice predictable normal curves.

I've lived somewhere with storage heaters. They are horrible, practically indistinguishable from no heating at all. A large enough thermal mass would require a complete rebuild.

yodelshady··on A recruiter lined me up an interview. With the employer that just fired me
Probably quite likely, especially if you were fired and didn't list last job - your CV and a vacancy matching your skill set have arrived on the market at the same time.
yodelshady··on IoT Bolts
I like it. It sounds very silly, very IoT-all-the-things, but I've without question seen situations where they'd be worth the investment and then some.

Could pose some organisations an interesting dilemma, where to draw the line for the extra expense.

yodelshady··on Zillow to stop flipping homes, loses more than $550M, lays off 25% of staff
That's the core of the issue, tools have elastic supply and demand. A tool rental business meaningfully assists in matching the two - it's very likely a tool I rent would not exist otherwise, or if it did, it's because I financed it, a much greater expense for me for little gain. I wish there was more tool and car rental.

Housing, for the most part, does not do this. New housing is rare, and I can't walk away from that market, or even reduce my usage without severe loss of quality of life.

So yes, the only thing a landlord did for me is have more money than me when I was born, which if you look closely, isn't actually a service at all.

yodelshady··on All Applications for Nuclear Energy at COP26 Rejected
At some point, you have to wonder: why does the nuclear industry seem to just suck at lobbying?

The wind lobby has professionals who made the case to people who matter. That's not evil, that's your - the industries - job.

At a high level the nuclear industry, sorry to say, honestly doesn't care. It's the Boeing of the energy world, except even more so: wring every last drop out of dead tech, and never invest a cent.

yodelshady··on Why can't we build nice neighborhoods anymore?
That is an incredibly poor take on top of a serious allegation, and sorry-not-sorry, it's clear you don't really care about poverty, racial disparities or ill health.

It takes very little empathy to realise that driving a car is a huge technical barrier compared to a wheelchair/scooter/just walking slower. There is no reason you need to be healthy to avoid car use... except one. That motorists will kill you if you don't quickly get of out their way. I've seen large parts of my local area become completely inaccessible to the less-abled because of fast roads, so can it with the "I'm thinking or the sick!". You're not.

Or to just go look at which cities are not color-coded into mansions and slums, and notice those cities are ones where the poor do not need to maintain their own expensive machinery for basic tasks. Because ... again, I don't believe I need to explain that. It's a deliberate choice you're making to not understand it.

yodelshady··on Is nuclear power our best bet against climate change?
So, the worst nuclear plant ever occupies about twice as much land as the comparable solar installation would need.

Except they're not comparable are they? A decent chunk of that 75% is winter heating. Which, weirdly, lots of Russian districts have pretty much solved, somehow, without gas. Wonder how?

yodelshady··on Chemicals used in packaging may play role in 100k US deaths a year – study
One of my first graduate tasks in a previous life involved managing the impact of switching to phthalate-free flexible tubing. We went nowhere near biological systems but were struggling to get hold of the stuff anyway.

It got to the point we were redesigning components to take into account vastly decreased maintenance intervals.

Whilst I don't want to defend the plastics industry, I have to find my delivery today funny: a small plastic part carrying a prop 65 warning. The part is made of polyacetal, and so contains no flourine, amine or cyano groups, no aromatics, not even a double bond.

How?!

yodelshady··on Ask HN: What does one look for in a laptop these days?
XPS 13 currently, and probably next as well. I look for:

- track record of linux compatibility. If it's Windows or out, I'm out.

- good keyboard.

- good screen, > 1920x1080 although 4K is overkill, preferably 16:10.

Macbooks look tempting, but I just don't trust Apple to not break any workflow that isn't editing videos about how great Apple products are. The current keys are good but - sorry, the (pre-butterfly!) keyboard on my OH's MBP is awful, easily the worst keyboard I've ever used on a >$1000 laptop.

yodelshady··on Kyshtym Disaster
> The old metal mill area is now being redeveloped for housing. I asked a nuclear scientist I knew if he'd feel comfortable living there, and he said "Sure! I mean, you might want to get a geiger counter".

Radioactivity is, funnily, one of the easier human health hazards to manage for precisely this reason - by definition, it's (generally) detectable. Not as easily as, say, a bear, but easier than a virion or most regular chemical contaminants.

Plus, radionuclides don't actively evolve.

yodelshady··on US attorney details illegal acts, sealing the fate of the “nuclear Renaissance”
That's an excellent analogy. There is a scattering of fission-based startups (I'll plug UBattery, FliBe energy also looks smart).

Just like SpaceX, like it or not you're not going to avoid some government involvement. (You know what, I wouldn't call the unashamedly public-sector development in the '60s sluggish either.)

yodelshady··on Show HN: Identify car crash editorial anti-patterns using NLP
That's actually pretty amazing work.

Being super preachy, as a cliched straight white etc etc... after riding a bike I sort of get complaints about -isms, emotionally, in a way I wouldn't without.

Everyone has already concluded that you deserved it. Whatever happened. It does not matter if you were wearing hi-vis, or had a light, or were in a bike lane, or the nearest bike lane is 5 miles away and on the pavement for some reason, or were 3.1 ft from the kerb or 2.6. If you were stopped at a red light and are now sprawled in front of it because a van didn't, you're clearly lying. If a motorist jumps a set of temporary lights and hit you when you had the green, you're clearly lying. You deserved it, always and forever, is the only argument you need to know, the rest is window dressing.

Now we wonder why kids don't get exercise.

yodelshady··on France bets on more nuclear power in face of Europe energy crisis
That the same UK that almost constantly pulls in 2 GW of French nuclear, 16 GW of gas, and - if the cable to France breaks - coal at > £ 200 MWh, in a totally unremarkable September, not counting the gas used for heating which lead to several energy companies going bust because of a wind shortfall?

Incidentally, look up the radionuclide emissions of a coal (or even heavy oil) plant, such as the one used when the wind stopped blowing. They're literally only allowed because the radionuclide standards applied to fission aren't applied to coal.

yodelshady··on France bets on more nuclear power in face of Europe energy crisis
Makes a sort of sense.

No one in the private sector has much faith that any decade-long giga-reactor project (in the West) will come to fruition, let alone the multiple projects needed to leverage assembly-line economies.

A rejigged submarine reactor already has those economies, and might have a better chance of producing profit within five years.

yodelshady··on France bets on more nuclear power in face of Europe energy crisis
Reprocessing has been mostly blocked by the US due to proliferation concerns, but it reduces the problem enormously, since you then have new fuel plus some very nasty waste that decays on more human-friendly timescales.

For reference, the amount of the very nasty waste produced by a lifetime's electricity demand for an average European citizen (so you probably want to multiply by 2 or 3 for future usage), immobilised in glass, is about the size of a hockey puck. A very deadly hockey puck mind, a kill-you-from-twenty-paces hockey puck, but a solid hockey puck.

You know what we haven't figured out? How to even re-concentrate the several tonnes of dispersed waste product fossil fuels put into the atmosphere for the same number of kWh, not as an accident but as part of normal operations, and that's currently wreaking havoc everywhere.

yodelshady··on France bets on more nuclear power in face of Europe energy crisis
Ukraine, the site of the probably the worst nuclear accident in history and a prime food producer, is suffering enormously from desertification due to burning fossil fuels.

If that's her calculation, she needs to redo it.

yodelshady··on The F.S.O. Safer could spill a million barrels of crude at any moment
> The US military, like all other militaries, is a force for its own country's purposes and goals only.

Of course, and for everyone but contrarians, sometimes the US has goals that are a net good. Sometimes the US doesn't, and sometimes the US uses the military inappropriately for commendable but open-ended goals. This isn't open-ended, and not having the tanker is a net good, and you'll notice I emphatically did not suggest using only the US military. I suggested the US military provide security for whatever deal is struck.

Assuming we're living in reality, what non-force-backed solution do you propose that doesn't end with "Thankyou for $ASSET. There has been problem. Send more $ASSET."... Forever?

yodelshady··on The F.S.O. Safer could spill a million barrels of crude at any moment
Seems ironic, as this is a situation where I'd deem the US military a force for good.

The non-explodey solution is most likely going to require *both* sending enough money to Houthi leadership to save face, plus turning up with enough muscle to ensure an agreement to remove the oil is honoured.

yodelshady··on The Future Is Getting Farther Away
> By the way, don’t blame the forecasters. The forecast was reasonable, the reality is below expectation.

Sounds like a macro-economist to me.

There's a full-blown, easily predictable and indeed predicted, environmental crisis that's *never* going away. Mitigating it requires a commitment to what any reasonable person considers a significant drop in living standards in both the developed world, *and* among the peoples of the developing world, who did nothing to deserve it.

yodelshady··on Conterintuitive facts in mathematics, CS, and physics
A similar but not quite the same mechanic is fuel economy.

Let's say you have two vehicles, both doing 10,000 miles per year. One gets 10 mpg and the other 50.

Would you rather upgrade the 10 mpg vehicle to 13 mpg, or the 50 mpg to 100 mpg?

Not only should you pick the former - you should pick the former even if you could upgrade the 50 mpg vehicle to run on nothing.

yodelshady··on Phrack Issue 70
Fair point, but then, why bother with the PGP key?
yodelshady··on Is this the simplest (and most surprising) sorting algorithm?
That's the sort of thing I hand in mind, yes. Should probably write what I think I'm doing down.

Though in that specific situation, the sufficiently smart and motivated could probably infer hand information.

yodelshady··on Is this the simplest (and most surprising) sorting algorithm?
Slightly OT, but it always slightly bugs me that sorting algorithms are taught *only* in the context of computers, which obey different physics to sorting things. Has anyone done work on sorting algorithms under different cost functions than just "minimise comparisons"? I'm thinking something like:

1. Allocation of new space is free, at least up to 2x the input size. 2. Moving a contiguous set of elements is as cheap as moving one element. 3. Moving an element, or set of elements, has a cost proportional to the distance moved.

yodelshady··on The Disneyfication of Atomic Power
> Ultimately, the fossil fuel industry is to blame.

True. From an amoral perspective it raises the question, why did the fossil industry win?

Usually, the given answer for an upstart industry failing is "they're small and idealistic, thinking that the best idea rather than the best lobbyists determine success". But that's clearly not true here.

yodelshady··on Drones Raining from the Sky in Zhengzhou
It should certainly be possible to develop and use a cheaper anti-drone system than a Phalanx, but that requires a static specification to develop against. The attacker's advantage seems to be that defenders doesn't have that yet.
← PreviousPage 7 of 14Next →