HNHacker News
TopNewBestAskShowJobs

kjaleshire

153 karma · joined March 3, 2013

[ my public key: https://keybase.io/kjaleshire; my proof: https://keybase.io/kjaleshire/sigs/jhFvhVOxQ_8QF7SqYSNHY5qm_I15UuhFHWbUO4wi4o8 ]
submissionscomments
kjaleshire··on How the U.K. broke its own economy
4.98 birds/GWh in the fossil fuel estimate comes from unrealized climate change expectations. They also only looked at two coal power plants for the remainder of the study.

The nuclear source bird death estimates are extrapolated from one bad weather incident over two nights from a single plant on the Florida coast.

This is not a serious or rigorous study. Is there anything more recent?

kjaleshire··on Blessed.rs – An unofficial guide to the Rust ecosystem
This reads suspiciously similar to the Rust Platform proposal in 2016 [0] and was concensus-rejected by the community [1].

[0] https://news.ycombinator.com/item?id=12177002

[1] https://internals.rust-lang.org/t/follow-up-the-rust-platfor...

kjaleshire··on In Remote Alaska, Meal Planning Is Everything
Three, actually. There’s two just in Anchorage.
kjaleshire··on How Actors Work Internally in Swift
Swift actors seem to differentiate from other actor implementations (see Erlang) which have a decoupled message queue. Calling into a Swift actor may be non-blocking, but the result must still be await'd and from the actor's perspective all calls are sequential and synchronous.

By this token, actors seem to be the language-level implementation of a class where all methods are asynchronous, and also being protected by the same lock.

The novel feature seems to be cooperative scheduling amongst actors.

kjaleshire··on iDOS 2 will be gone soon
Firefox (and every other 3rd party browser) internally uses the same web rendering engine as Safari. Rolling your own renderer + JS engine is not allowed.
kjaleshire··on iDOS 2 will be gone soon
You can only have 3 apps + 3 extensions installed on one device simultaneously, however.
kjaleshire··on iDOS 2 will be gone soon
The next update to Swift Playgrounds is supposed to allow full iOS app development and submission to the App Store with no Mac involved.

Look also at Pythonista and a-shell for useful, if limited, programming environments. Both work by translating code into JS or wasm.

kjaleshire··on Internet outages in Cuba following widespread anti-government protests
Castro annihilated the land-owning middle class in the first years of his premiership [1], using the same playbook as Lenin wrt the Kulaks after the October revolution [2]: do away with the financially and thus politically independent asap.

Cuba consistently required Soviet subsidies to survive through the end of the 20th century [3]. That's all gone now.

[1] http://revolutions.truman.edu/cuba/aboutme.htm

[2] https://en.wikipedia.org/wiki/Dekulakization

[3] https://en.wikipedia.org/wiki/Special_Period

kjaleshire··on FDA grants emergency use authorization for 5-13 minute Covid-19 test
> Under normal circumstances though, health and safety oriented regulatory bodies such as the FDA play an absolutely essential role in protecting us from bad actors.

Does it though? There's a perception that government agencies are impartial watchdogs, but this belies the reality that governments have agendas of their own. The FDA is so politically removed from the people it was created to ostensibly protect that there's now little incentive for it to relieve real suffering today. A brief example:

My brother and thousands of people suffer from type-1 diabetes. We have had the technology for years now to create an artificial pancreas, but FDA and EMA regulatory procedures have stopped any device from being sold. People are creating their own DIY systems because no commercial, professionally-developed, reasonably-priced alternative exists yet.

This isn't snake oil. There are solutions for many people's ailments available today. And the FDA is a massive giant standing in the way of people living healthier, unencumbered lives.

Treat people like adults. On the whole they're pretty good at figuring out what's best for themselves and taking care of each other.

kjaleshire··on Merry Christmas HN
Joyeux Noël tout le monde!
kjaleshire··on Ask HN: Best Laptop for Developer?
I have a Dell XPS 9570 as well and I love it, it's been one of my favorite dev machines ever.
kjaleshire··on Why Aren’t Rich People Happy With the Money They Have?
Slavery and genocide didn't suddenly appear at the same time as capitalism as you and I would recognize.

Capitalism means free markets. Free markets means freedom to buy, sell and invest. Freedoms must be protected, and the freest markets have the strongest protections for person and property. Freedom and security go hand in hand.

If capitalism is responsible for slavery and genocide, then it's also responsible for eradicating slavery and genocide within its sphere.

Alternative economic systems don't magically promote human rights. Let's discuss the gap between rich and poor in China or Cuba. Or ethnic suppression and genocide in the USSR or China. Or endemic racism in Cuba. Or systematic impoverishment of millions of people in oligarchies across Africa and South America.

I'm still waiting for socialist systems to make a billion people freer and happier, instead of dead, impoverished or imprisoned.

kjaleshire··on Jamie Dimon blows up at DC's dysfunction
Dodd-Frank & other banking regulation are self-serving for large banks because it shuts out smaller competitors and new entrants [1]. Administration & compliance becomes more expensive for everyone, but bigger companies are able to absorb the cost. The impact this has had on small banks & credit unions has been catastrophic [2].

New regulation will only serve to concentrate banking power & wealth in the hands of increasingly few players.

[1] https://www.americanbanker.com/opinion/surprise-big-banks-lo... [2] https://ilsr.org/vanishing-community-banks-national-crisis/

kjaleshire··on Chris Lattner on the Realm WWDC 2017 Swift Panel
> One of the big problems of value types in C++ is that you have to be a language lawyer to not accidentally make wasteful copies of everything...

Not always. The C++ standard has allowed copy elision for some time [1]. Guaranteed copy elision for certain forms of copy has been proposed for C++17 [2].

[1] http://en.cppreference.com/w/cpp/language/copy_elision

[2] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p013...

kjaleshire··on 32TB of Windows 10 internal builds, core source code leak online
Exactly. A few years ago the ReactOS developers had to stop all development for several months to perform a source code audit. This was meant to deflect accusations that they had derived code from disassembled Windows binaries.

If anything, this could make their legal situation more sticky.

kjaleshire··on The Path to Rust
The `?` operand appended to function calls makes them behave like `try!()`. It's only in nightly currently, on its way to being stabilized.
kjaleshire··on A cache miss is not a cache miss
Very cool. Herb Sutter gave a talk [1] a couple years ago in which he advocated being mindful of the CPU prefetcher when dealing with large vectors, esp. vectors of pointers. Essentially as long as memory is being accessed in a predictable manner the pre-fetcher can keep the processor fed.

An aside, because instructions are accessed sequentially (branches aside), I would intuit that data misses are much more common than instruction misses. If this is incorrect I'd be interested in an explanation or further reading.

[1] https://channel9.msdn.com/Events/Build/2014/2-661

kjaleshire··on Polyglot is a distributed web framework for multiple programming languages
True, durability wouldn't help here, however, individual Rabbit queues can fail over to alternate nodes if the master node for that queue stops responding.