HNHacker News
TopNewBestAskShowJobs

kilotaras

1,645 karma · joined June 27, 2012

email me: hn AT tboiko.com
submissionscomments
kilotaras··on Beating TimSort at Merging
isProbableTime -> isProbablePrime.
kilotaras··on Beating TimSort at Merging
My team used java in two cases: BigInteger or 'isProbableTime.' For everything else performance penalty was almost always unacceptable. C++ can also be sometimes finetuned enough to pass with unintended complexity (i.e. O(n lg n) instead of O(n)).
kilotaras··on Blood test that finds 50 types of cancer is accurate enough to be rolled out
> Are you really so arrogant to think that other people are too lazy and stupid to think of your brilliant idea and that you are simply more intelligent than everybody else?

Here's a report of a person whose wife had seasonal affective disorder. He

- deduced that a powerful enough lightbox should be able to cure SAD - didn't find any examples of such treatments in literature - spent $600 to build "LUMINATOR" - "And as of early 2017, with two winters come and gone, Brienne seems to no longer have crippling SAD—though it took a lot of light bulbs, including light bulbs in her bedroom that had to be timed to go on at 7:30am before she woke up, to sustain the apparent cure."

https://www.lesswrong.com/posts/zsG9yKcriht2doRhM/inadequacy...

kilotaras··on What Is Voter Satisfaction Efficiency?
What VSE doesn't capture, but I feel is an important part of voting is signaling voter preferences.

Election where a democrat vote with 70% of the vote conveys a different information than the one in which 30% of those 70% first went to the green party candidate.

kilotaras··on Rhode island makes financial literacy classes required for high school students
One part of that is mismatch between road and speed limit.

Roads designed for 30, 55 and 85 miles are completely different beasts with different lane width, straight segments length, turn radius, traffic calming elements, etc.

Puting an autobahn and plunking a 50 mph limit there is a recipe for all-out "speeding."

kilotaras··on The Promise and Perils of Insect Farming
Crickets cost around 50 £/kg on Amazon (as either flour or snacks).

At this price I can justify buying them as a high calorie snack for long distance hikes/cycles, but not for day to day usage.

The same product at 7 £/kg would become a lot more attractive as a daily food.

kilotaras··on White House eyes subsidies for nuclear plants to help meet climate targets
Acronyms used:

LNT stands for Linear No Threshold: cancer risk is directly proportional to dose, that doses are cumulative over time (rate doesn‘t matter), and that there is no threshold or safe dose. This contradicts studies that we have about people who received enough CUMULATIVE doses of radiation that they would be dead if it was at the same time.

ALARA: Radiation should be As Low As Reasonably Achievable. In practice this means that any cost reduction simply means freed money that you're now required to spend on safety.

kilotaras··on Surprisingly little alcohol can affect heart rate variability
Deliver food for the family to their door every morning?

Yes, it is relatively expensive, but not prohibitively so.

kilotaras··on ‘Insanely cheap energy’: solar power continues to shock the world
> Meaning every year our production capacity increases by .5 (or 5 times every decade).

Change is geometric (i.e. fixed percentage), not linear (i.e. fixed number).

This gives 18.92% yearly increase (instead of .5), but 5.6568x increase in decade (instead of 5x).

By 2060 this gives 169 TWh (instead of 103), and 200 in 2061.

We would also expect energy growth to level of at US/EU level once it reaches them, there's no reason to expect Asia to sustain it's energy growth indefinitely.

Don't get me wrong: solar is still not enough, storage is big elephant in the room, and we should build nuclear yesterday. It's just not as bleak as your comment made it out to be.

kilotaras··on Man sues Apple for terminating Apple ID with $24K worth of content
Not exactly this, but Google was recently fined in Ukraine for not providing information on why did they ban a "Google My Business" account. [0]

> The Committee is investigating the application of an individual entrepreneur to block his account in the Google My Business application. In this case, Google did not provide the Committee with the requested information for more than a year, which is an aggravating circumstance.

[0] https://112.international/ukraine-top-news/ukraines-antimono...

kilotaras··on Tesla hikes solar roof price on contracts signed over a year ago
25 years didn't look right to me so I did some googling.

Apparently in US people tend to use asphalt shingles which indeed last 20-25 years[0]

[0] https://en.wikipedia.org/wiki/Asphalt_shingle

kilotaras··on Eu_sst: 20% probability for large satellite collision
Because the difference between collision and safely pass is less than 0.01% on the scale they model it.
kilotaras··on Tales from Prediction Markets
> The number gets reported on the main page once a day, but someone found a page with the hourly data and figured out how to average together the data points to predict the daily number.

Isn't this THE point of prediction market? A user found a better source of information and used it to make money.

kilotaras··on Amazon acknowledges issue of drivers urinating in bottles in apology
I was blown away when I visited Brussels and there were street urinals like [0] scattered around city.

Now in London, and whenever I see men urinating on trees I cannot help but think "put the fricking urinals on the streets"

[0] https://www.travelblog.org/Photos/642355

kilotaras··on Pollution from fossil fuel combustion deadlier than previously thought
The words "per capita" or "per apartment" are not in the article.

I completely buy that skyscraper have higher fixed costs then lower buildings. It can be true that the optimal height from energy expenditure per capita would be 5, 8 or 12 stories. Or it can be false and sckyscrapers are the best energy investment per square feet of living space created. Your links don't provide any evidence either way.

kilotaras··on AstraZeneca vaccine safe and effective in U.S., Chile, Peru trials
You're a public official in Germany. You have a pandemic raging that already killed 75000 with at most 25% of population that had a disease. On the other hand you have a vaccine that kills 37 for 17 000 000 jabs provided (360 if scaled to 2 jabs to everyone).

One death is of course too many. 360 even more so. But if an alternative is an extra 75'000 I know which choice I would like my public officials to make.

kilotaras··on Moore's Law for Everything
Um....so what?

Stock market is the way to efficiently allocate capital. If value of every company is halved it changes nothing to relative performance of them.

kilotaras··on Apparent hackers behind Kia ransomware attack demand millions in Bitcoin
> weatherize the network for a 0.1% chance event.

The last one such event (also with blackouts) happened in 2011 and was generally called "1 in 10 years cold snap."[0]

Not weatherizing for 0.1% chance can be acceptable, not doing for 10% is not.

[0] https://www.nytimes.com/2011/02/05/us/05storm.html

kilotaras··on Activists who embrace nuclear power
> with the cost of stored renewable energy.

Which is how much? We don't have a good way to store energy right now.

kilotaras··on Consensus Is Harder Than It Looks (2020)
I'm not sure if you are aware of it, but check out MIT 6.824 on opencourseware (pick 2020, not 2021).

In Lab 2 they provide you with a frame for raft with RPC, etc. already in place leaving only protocol for you. Lab is also split into 3 logical parts - leader election, append entries, persistence. Highly recommend.

kilotaras··on Russian Pipeline Is Germany's Greatest Foreign Policy Embarrassment
Using "the Ukraine" is heavily discouraged, please use Ukraine instead.

https://en.wikipedia.org/wiki/Ukraine#Etymology_and_orthogra...

kilotaras··on Right to Repair off to the races in 2021 with 14 active states
That state is not stable (in game theory sense) though.

At least on Android there's no real vendor lock-in so defecting from "unrepairable" phones will let you eat some portion of competition sales.

kilotaras··on U.S. to require negative Covid-19 tests for international air passengers
Almost no tests in existence can confirm or deny particular infection.

Think of them (and symptoms) more as odds updater. If you have 20 minutes to spare this video [0] by 3 Blue 1 Brown is a brilliant introduction to the concept.

[0] https://www.youtube.com/watch?v=lG4VkPoG3ko

kilotaras··on Governments spurred the rise of solar power
> bottoming at less than €0.14/kWh

+ ???/kWh in environmental cost.

kilotaras··on A group of Google workers have announced plans to unionize
> people attempting to pick their own pockets since increasing employee compensation (themselves) is taken from shareholders (themselves)

Unless employees make up 100% of the shareholders that is trivially not true.

kilotaras··on SaaS We Happily Pay For
Apple mandates WebKit as only allowed browser engine. If a page crashes iOS the error is likely in engine itself so it doesn't really matter what "browser" you actually use.
kilotaras··on Victoria follows South Australia and imposes electric car road tax
I'm of mind that all government "monetary disincentives", e.g. fines, sin taxes, pollution taxes should go into fee and dividend scheme. Solves both moral hazard (we want more fines/driving because we need revenue) and regressive nature of those.
kilotaras··on Gig economy companies spent more than $200M to bankroll Proposition 22
AFAIK proposals (e.g infamous prop 13) cannot be overturned by legislature at all, even with 100%. So 7/8th is actually easier than default.
kilotaras··on Using Rust to Scale Elixir for 11M Concurrent Users (2019)
Articles SortedSet[0] is basically a pseudo-BTree with fixed depth = 2 and fixed max_size of leafs. This gives O(log n) search and O(sqrt n) inserts [1].

It would mean that insertion at beginning is worst case scenario (split + need to move all buckets), but timing of insert is actually dominated by adding size of the buckets to calculate final index.

Spending a little bit of time on research, finding https://en.wikipedia.org/wiki/Order_statistic_tree and just using G++ implementation would probably yield better result and less code to support.

G++ has __gnu_pbds which add O(log n) "find_by_order" and "order_of_key" to trees, e.g. [2].

[0] https://github.com/discord/sorted_set_nif/blob/master/native...

[1] Technically O(n/max_size + max_size) but we can assume that max_size is selected to be ~sqrt n

[2] https://www.ideone.com/8mzxGR

kilotaras··on Have Fruits and Vegetables Become Less Nutritious? (2011)
Obesity and nutrients deficiency aren't mutually exclusive. e.g. "Studies have shown that many people with obesity have inadequate intake of iron, calcium, magnesium, zinc, copper, folate and vitamins A and B12, likely as a result of poor diet quality"

[0] https://www.nature.com/articles/s41366-018-0143-9

← PreviousPage 5 of 12Next →