HNHacker News
TopNewBestAskShowJobs

danielmg

305 karma · joined July 27, 2017

submissionscomments
danielmg··on Introducing Navigate on Autopilot
My 2018 Mercedes E class can do lane changes - I just have to put the signal on and it does the rest. They call it "Drive Pilot". It seems to be just as advanced as Tesla but much less "marketed".
danielmg··on The Bezos backlash: Is 'big philanthropy' a charade?
Or learn another skill?
danielmg··on Grover raises €37M Series A to offer latest tech products as a subscription
and just as easy to recover data from a formatted device unless a secure wipe is done (which takes time and knowledge).

I work in banking and we shred drives when we are done with them for this reason.

danielmg··on Grover raises €37M Series A to offer latest tech products as a subscription
This will be a magnet for fraud.

Aside from that, I just don't get it. For example in the UK you can bundle the price of a mobile-phone into the contract payments. Laptops/iPads etc always take knocks etc and who wants to risk personal data by handing back such a device.

danielmg··on Ask HN: Migraine prophylaxis?
Bright light for me is my major trigger. I wear sunglasses whenever it is bright and keep my head covered or stay in shade.
danielmg··on ELI5: Do animals from different countries understand each other?
https://www.npr.org/sections/codeswitch/2013/12/30/258393176...
danielmg··on What happened last time it was as warm as it’s going to get later this century?
I don't think you read all of his comment.

Picking a single event like New Orleans isn't great evidence. I lived through a once in 300 years hurricane in southern England in '87 - that tells us nothing.

But the increasing frequency of adverse events and once in a x years events is starting to nod its head in the direction of the impacts of global warming starting to manifest.

The point he made is a good one - media sensationalism, supported by people who should know better; it does more harm than good.

The future looks bleak as we, in the west, can go 100% nuke, zero carbon etc but it's like a fart in a jacuzzi compared to what China will bring as its economy scales to western per-capita size.

danielmg··on New Tesla software to offer 'full' autonomy, Musk says
"...With V9, we will begin to enable full self-driving features," he said.

"...begin to enable..." - bit of a jump to "full autonomy"

danielmg··on The Stuxnet worm may be the most sophisticated software ever written
*could have
danielmg··on Autism's social deficits in animal model are reversed by an anti-cancer drug
As a father of someone who is about on the middle of the spectrum, I kind of agree. I couldn't separate his personality from his ASD - however if something could alleviate things like the stress he gets from sensory overload then that would be great.
danielmg··on Australia’s new real-time banking payments platform
It's for agency banks that aren't full FPS members. They have to rely on the full member banks to clear for them - the maximum allowed time for this is 2 hours.
danielmg··on In Java 3 = 12
It's evaluates left to right.

(1+2)=3 then concat with string = then concat with 1 and concat with 2.

The optimiser converts these concats to a StringBuilder.

https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.htm...

Second time I've seen something like this on HN.

danielmg··on Executing Parallel Statements to Improve Performance
No. That still uses ASM. It's effectively low level IO mirroring and needs fast data-centre interconnects and low-latency.

I work a lot with RAC and it introduces more problems than it solves tbh.

danielmg··on Tiny Phones That Go Inside a Butt (2016)
To prevent commissioning of crimes is probably the best reason. For example smuggling in drugs, arranging escapes, harassing victims, etc.
danielmg··on 1 in 3 Americans Have $0 Saved for Retirement (2016)
Not really. They are moving the state pension age out but the private pension age stays static at 55. They have also given more freedom on how to use the private pension funds come retirement.

THe idea is to reduce the burden of the state pension. It would be counter productive to do anything counter to that.

However - the left keep wanting to take away higher tax relief on pensions. Which sounds great unless you are a nuclear family where 2 people will rely on one person's pension (like my wife will - we also have other compounding circumstances). If they cut this relief I'll leave the country or go self-employed and play the system, as it will push my marginal tax rate to a stupid rate.

danielmg··on In Java 3 = 12
From https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.htm...

To increase the performance of repeated string concatenation, a Java compiler may use the StringBuffer class or a similar technique to reduce the number of intermediate String objects that are created by evaluation of an expression.

The + operator is syntactically left-associative, no matter whether it is determined by type analysis to represent string concatenation or numeric addition. In some cases care is required to get the desired result.

danielmg··on In Java 3 = 12
https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.htm...
danielmg··on In Java 3 = 12
optimiser changes string concat to StringBuilder.
danielmg··on In Java 3 = 12
What's happening is this

1+2 = 3

Then hits string

Optimiser changes + to String builder

So you get

StringBuilder sb = new StringBuilder();

sb.append(3);

sb.append("=");

sb.append(1);

sb.append(2);

← PreviousPage 3 of 3