HNHacker News
TopNewBestAskShowJobs

kilotaras

1,645 karma · joined June 27, 2012

email me: hn AT tboiko.com
submissionscomments
kilotaras··on Kraken shuts down global headquarters because ‘San Francisco is not safe’
AFAIK there's not much causal evidence for supporting NYCs "No Broken Window" policies effect. Phasing out of lead has more explanatory power.
kilotaras··on Waymo begins driverless rides in San Francisco
That is ridiculous intersection. What is the point of bike lane if it's used as turn lane anyway?
kilotaras··on Vladimir Putin is pushing Russia into past: Maybe a generation, maybe a century
> It's horrible, and I bet all well informed Russians will agree that it is.

One of the heavy pregnant woman photographed there has her instagram full of hundreds of Russians calling her a crisis actor, wishing her and her (yet unborn) child death and being raped. [0]

That's also the position of Russia MFA [1]

[0] https://twitter.com/ComeGentleNight/status/15019005935977185...

[1] https://twitter.com/carolecadwalla/status/150192182043753676...

kilotaras··on America produces enough oil to meet its needs, so why do we import crude?
"overseas oil, even after shipping costs, is often cheaper than domestically-produced crude + domestic shipping cost" (emphasis mine).

One reason that domestic shipping cost is so high is that 1920 Jones Act[0] prohibits shipping between US ports with non-US ships. This drastically reduces competition and increases prices. Hawaii are particularly hit by this, with estimate $1800 per year per family in extra cost [1].

[0] https://en.wikipedia.org/wiki/Jones_Act_(sailor_rights) [1] https://www.wsj.com/articles/jonesing-to-give-up-russian-oil...

kilotaras··on Tell HN: If You Are in Russia
In Russia (as well as Ukraine, Belarus and maybe some others) passport is the name of internal ID. Everyone gets it.

Passport used to travel is called foreign passport.

kilotaras··on Tell HN: If You Are in Russia
> They believe in the propaganda mostly, celebrate the victories over "nazis" and support Putin.

I've had a coworker posting on FB how he's supporting Putin and "Russia doesn't start wars, it ends them."

He left Russia for US in early 2000s, returned for a year in 2018 and is now in London.

kilotaras··on Someone should probably start a bright home lighting company (2019)
See also "100,000 lumens to treat seasonal affective disorder: A proof of concept RCT of bright, whole-room, all-day (BROAD) light therapy" on https://www.medrxiv.org/content/10.1101/2021.10.29.21265530v...
kilotaras··on New York is using cameras with microphones to ticket loud cars
IMO all Pigovian taxes and fines (alcohol, tobacco, speed fines, etc.) should go in special pool and then distributed to citizens.

Fixes moral hazard pretty good.

kilotaras··on New York is using cameras with microphones to ticket loud cars
> I'm innocent until proven guilty: prove it was me.

This is trivially circumvented via "attach fine to car" and "driving in a car with fine attached is illegal." (AFAIK that's how it works in Ukraine).

End result is the same.

kilotaras··on Pedestrian deaths spike in U.S. as reckless driving surges
That's why I'm a big advocate for infrastructure changes. The expected behaviour should be the most comfortable one.

Raised crossings[1] or deliberate narrowing [2] forces people to pay attention and slow down.

[1] https://commons.wikimedia.org/wiki/File:Raised_Crossing_In_P...

[2] https://www.google.com/maps/@51.5376862,-0.1105682,3a,75y,19...

kilotaras··on AlphaCode as a dog speaking mediocre English
Huh, TIL.

I was too lazy to check the exact value of 2^31 and payed for it.

kilotaras··on AlphaCode as a dog speaking mediocre English
UB = undefined behaviour.

You can write code that is valid as in "can be compiled" but outside of C++ standard. It is duty of programmer to not have those, as compiler usually assumes that there's no UB in your code and can do unintuitive things with optimizations.

e.g

  int foo(int8_t x) {
     x += 120
     return x;
  }

  int bar(int8_t y) {
     int z = foo(y);
     if (y > 8) {
         do_important_thing(z);
     }
  }
`do_important_thing` may be optimized out because:

1. signed overflow is a UB. Compiler than assumes that everything passed to foo is less than 8;

2. We pass y to foo => y < 8

3. if branch can then be optimized out

kilotaras··on U.S. weighs sending 5k troops to Eastern Europe to counter Russia
> So there where 2 Y Tymoshenkos on the ballot, causing confusion and splitting her vote. Leading to a comedian winning the race for president.

She got 13.4%, other Tymoshenko got 0.62. Even if you add them she's still in 3rd place.

https://en.wikipedia.org/wiki/2019_Ukrainian_presidential_el...

kilotaras··on UK government plans publicity blitz against encrypted communications
> Foregin corporation wants to keep it secret before the deal is reached. How can you communicate?

Foreign corporation wants to do X but X is banned in country.

We don't accept that for minimum wages, discrimination laws, pollution laws, etc. Why should communication laws be any different?

kilotaras··on Deep Learning Interviews book: Hundreds of fully solved job interview questions
Bayes rule with odd ratios makes it pretty easy.

    base odds: 20:80 = 1:4  
    relative odds = (1 letter/6 letters) : (2 letters / 8 letters) = 2/3  
    posterior odds = 1:4*2:3 = 1:6  
    Final probability = 1/(6+1) = 1/7 or roughly 14.2%
Bayes rule with raw probabilities is a lot more involved.
kilotaras··on Tokyo: A big city that is also pleasant to live in
> all segregated into their own neighborhoods.

Check out Shellings model of segregation [0]. Global seggregation doesn't necessarily mean that local decisions have strong preference for their race.

e.g. for two types it's enough to have preference "I want at least 33% of my neighbours to be same type as me" to reach segregated global result.

[0] https://en.wikipedia.org/wiki/Schelling%27s_model_of_segrega...

kilotaras··on Ask HN: A US programmer makes 3 times that of a EU programmer. Why?
US has competition between FAANGs driving salaries upward. Europe with the exception of, maybe, London - mostly doesn't. It would be interesting to see how shift to remote plays out here.

Fun historical fact: Apple, Google, Intel and others didn't like salaries growing so entered into illegal anti-poaching agreement. [0]

[0] https://en.wikipedia.org/wiki/High-Tech_Employee_Antitrust_L...

kilotaras··on The Truth About Nuclear Fusion Q Factors
Can you expand on that?

I find the claim almost trivially true: we care about electricity production, so that should be the main goal we're tracking.

kilotaras··on Treating beef like coal would make a big dent in greenhouse-gas emissions
> To make it into the richest 1 percent globally, all you need is an income of around $34,000 [0]

That group is still pretty price sensitive. Maybe not enough to drop beef completely, but enough to at least partially move to pork or chicken.

[0] https://foreignpolicy.com/2012/02/27/were-all-the-1-percent/

kilotaras··on Google, Apple remove Navalny app from stores as Russian elections begin
Are you asking if Russia would allow alternative voting system in order to make it easier voting for opposition candidate?
kilotaras··on Functional programming is not popular because it is weird (2016)
Difference with pipe operator would be

1. can't be extended.

    myhashmap.entrySet()
       .stream()
       .flattenBars()
       .toFoo()
2. (As a result of 1) - applies only to streams
kilotaras··on 17B life years could be saved if air pollution was reduced to WHO standards
Not even close.

*Total* urban area in the world was around ~3.5M km^2 in 2010[0], or 1% of total ocean area. Daily evaporation dwarves anything a couple thousands of drones can do in the morning.

https://data.worldbank.org/indicator/AG.LND.TOTL.UR.K2

kilotaras··on Windy.com
https://en.ilmatieteenlaitos.fi/local-weather/uk/london?fore... shows 50% and 80% confidence interval as well as median for rain and temperature.
kilotaras··on Writing a simple JSON library from scratch: a tour through modern C++
A simple variable would be a scoped resource, unique_ptr can be transferred.

    {
       RAII file = ....;
       // do stuff
    } // file is no longer open
vs

    unique_ptr<RAII> outer_ptr;
    {
       unique_ptr<RAII> file = make_unique(...);
       // do stuff
       outer_ptr = file;
    } // resource still open
kilotaras··on Vulnerability in Bumble dating app reveals any user's exact location
> There are single street zip codes (aka postal codes) all over Canada

Screw that, in UK zip codes can be less than single building.

My zip code corresponds to flats 90-180 in my building.

kilotaras··on Vulnerability in Bumble dating app reveals any user's exact location
As per beginning of TFA: it was possible, found out and then fixed.
kilotaras··on Bigger vehicles are directly resulting in more deaths of people walking
> the fatigue damage to the road goes up as the cube of the weight

Slight correction - damage per axle is proportional to 4th power of load per axle. In practice it means slightly less than 4th power of weight (due to semis usually having more axles).

https://www.insidescience.org/news/how-much-damage-do-heavy-...

kilotaras··on Going back to work? No, thank you
> It's cheaper for the employer if they don't have to pay for offices ...

Profit per employee sets salary ceiling. Market sets salary.

kilotaras··on A Contamination Theory of the Obesity Epidemic
> This might have been covered in some part I skimmed over, but they never seemed to offer a mechanism for contaminated water in a drainage basin entering the local food supply via processed foods in a way that wouldn’t also impact a plant-based (e.g. potato-only) diet.

The higher the food chain you go - the higher amount of contaminants deposited.

One of the most famous examples of this is mercury levels is higher in large fish as the food chain is longer.

kilotaras··on Astronomers push for global debate on giant satellite swarms
> However, even a catastrophic Kessler scenario at LEO would pose minimal risk for launches continuing past LEO, or satellites travelling at medium Earth orbit (MEO) or geosynchronous orbit (GEO) [0]

Blocking usability of LEO is not ideal, but blocking launches is really not the risk.

[0] https://en.wikipedia.org/wiki/Kessler_syndrome#Implications

← PreviousPage 4 of 12Next →