HNHacker News
TopNewBestAskShowJobs

DannoHung

4,805 karma · joined January 14, 2009

submissionscomments
DannoHung··on Will Planned Obsolescence Kill Silicon Valley? [video]
Well, a lot of computers cost about $1000 and the depreciation schedule for computers is 5 years. Since iOS 10 won't come out until 2016 at the earliest...

All computers?

DannoHung··on A Profitable and Legal Way to Game the Stock Market
Is there a semi-passive fund that just responds to the announcements that something is going into or out of an index?

Presumably they'd leave a little money on the table because they'd have to guess how much to buy in or sell out, but it'd probably mitigate a good chunk of the loss, right?

DannoHung··on Google Self-Driving Car Project Monthly Report [pdf]
Have any of the AV teams said anything about testing in hazardous road conditions yet?

Driving rain, thick fog, heavy snow, sleet, the like. Maybe the answer they'll give is, "Don't drive you dummy", but that's not really an acceptable solution for most people.

DannoHung··on What Happens When a State Is Run by Movie Stars?
I often wonder if people who advocate for libertarianism are aware of the history of feudalism.

Like, you know that there are a bunch of places in the world that fundamentally operate on libertarian rulesets, right? You can go and try to be a warlord in the unrule-y sections of Africa or the Middle East if you really believe so strongly in it.

What exactly makes you philosophically opposed to living in the society you want that exists today rather than changing the society you live in to be different? Do you just not like the idea of learning the lingua franca?

DannoHung··on Greece to Default on $1.73B IMF Payment
Ah, "Bite the Bullet" in this context sounds more like you're saying, "MORE AUSTERITY!" and that you weren't aware of what Iceland actually did.
DannoHung··on Greece to Default on $1.73B IMF Payment
> On October 6, the Icelandic legislature instituted an emergency law which enabled the Financial Supervisory Authority to take control over financial institutions and made domestic deposits in the banks priority claims. In the following days, new banks were founded to take over the domestic operations of Kaupthing, Landsbanki and Glitnir. The old banks were put into receivership and liquidation, resulting in losses for their shareholders and foreign creditors. Outside Iceland, more than half a million depositors lost access to their accounts in foreign branches of Icelandic banks. This led to the 2008-2013 Icesave dispute, that ended with a ESA ruling that Iceland was not obliged to repay Dutch and British depositors minimum deposit guarantees.

So, what you're saying is default and fuck over foreign investors.

DannoHung··on Energy
There's certainly a lot less latency from atomic reaction to harvested energy though :D
DannoHung··on Killing Off Wasabi
Ohhh, I thought the target was CLR. I didn't realize it was a transpiler.
DannoHung··on Killing Off Wasabi
Presumably some time before they killed Wasabi? Am I misunderstanding at a fundamental what the heck Wasabi is?
DannoHung··on Killing Off Wasabi
And yet... they ended up doing just that? But only after pouring tons of time and energy into not doing so.
DannoHung··on The Unix Philosophy
Python's support for closures is perfectly fine. Its anonymous function support is crappy, but it doesn't stop you from doing what you want, it just looks as ugly as sin.
DannoHung··on Single-catalyst water splitter produces clean-burning hydrogen 24/7
Maybe? The article was actually a little unclear on that. They may not have been able to run the experiment longer than a week. The only comparison they provide is the conventional catalyst which degraded significantly within 30 hours of operation.
DannoHung··on Single-catalyst water splitter produces clean-burning hydrogen 24/7
I know this is another article about electrolysis catalysts, but this one actually seems pretty incredible. Does anyone know more about how far long this lab group is in their research and whether or not there are any commercialization partners at this stage?

Have they run tests for longer than a week? Have they seen any degradation to the cathode or anode? Is there a reason to go beyond water electrolysis with the electrochemical tuning process in terms of energy storage?

DannoHung··on MapD: Massive Throughput Database Queries with LLVM on GPUs
Array based columnar storage and SIMD comparisons aren't fast enough?
DannoHung··on I spent the last 15 years trying to become an American and failed
Eat me. Change H-1B's to follow a worker from job to job and there is no problem with the program. The fact that anyone who wants to hire a H-1B worker away from their company also has to have acquired a H-1B means that it is abused by companies looking for cheap labor.
DannoHung··on Robots are leaving the factory floor and heading for your desk – and your job
They'll start figuring out ways to kill people or otherwise prevent the next generation of non-capitalist class people from being born.

Compulsory sterilization for those unable to fulfill the needs of their children is a thing even today.

Well, that or we could destroy capitalism as we know it. But only dirty socialists want that to happen here on Hacker News.

DannoHung··on In Turnabout, Disney Cancels Tech Worker Layoffs
https://www.youtube.com/watch?v=d696t3yALAY
DannoHung··on The Animatrix
Don't miss Neil Gaiman's contribution to the Matrix's folklore: http://www.voidspace.org.uk/cyberpunk/goliath.shtml
DannoHung··on IBM Invests to Help Apache Spark
Doesn't Databricks actually employ most of the core committers for Spark?
DannoHung··on 1980s computer controls Grand Rapids Public School heat and AC
Oh, weird, the article said 18 buildings. 67 seems more like 2 million would be appropriate.
DannoHung··on Docker, Mesos, Marathon, and the End of Pets
The thing I don't get about the storage issue is this: Does volume mounting into a Docker container impact performance meaningfully at all? No? Can't you just punt on the migratable storage question until then? You'd not be any worse off than you are and doing upgrades to the db engine would be pretty easy, right? I dunno, maybe there's something I'm missing, block storage, what are you gonna do?
DannoHung··on Spotify has been doomed from the start
MOG was actually pretty fantastic until Beats made them totally re-engineer and add their idiotic "I am riding a Moose at a Roller derby and feeling childish" mad libd garbage. Now that Apple's gonna run that shop and probably toss out 90% of the ultra goofy garbage (playlists and favored artists were heavily de-emphasized), maybe I'll switch back.
DannoHung··on 1980s computer controls Grand Rapids Public School heat and AC
I still don't completely see why it'll be $2M, unless that's the total cost including the service contract for the system's lifetime. I mean, the hardware and installation labor can't be that expensive, right?
DannoHung··on Announcing Apache Spark 1.4
Well, maybe I'm totally off on this, but it's more that I'd like to be able to run analytics which include real-time data without having any notable pauses. I'm willing to look at anything in terms of getting the data from the real time capture into the historical database as long as the spark queries "just work".

Sorry, I think maybe "integrating between" was the wrong way to phrase it.

On the other hand, I mean there's clean up and preprocessing I want to do on data that goes into the historical dataset, so hey, why not do that clean up/processing with Spark?

I've seen Lambda Architecture before, but it seems like it's kinda gone dark and unless I just totally overlooked it, I don't think there was a "Hey, this is the way to do it guys!"

DannoHung··on Announcing Apache Spark 1.4
Does anyone know if there's a guide to integrating Spark between a realtime write only database and a historical database?

I've looked into using Spark Streaming, but I can't work out how you could seamlessly transition data from a streaming batch to the historical db in a reasonably tight time period.

I'd be willing to pay for training if it came to it, but I don't think I'm using the right search terms.

DannoHung··on Google: 90% of our engineers use the software you wrote (Homebrew), but...
I was gonna say, who calls reversing a tree's ordering inverting?

> Oddly enough, Google shows me interview questions where "inverting a binary tree" means something quite different — for example, flipping it upside down, and making the left leaf the root, the right leaf the left leaf and the root the right leaf.

Whaaaaa? I can't find this, but it seems like such a weird operation. Got a link?

DannoHung··on Java 8: Replace traditional for loops with IntStreams
> 1) The automatic parallelization opportunities of HOFs don't happen in practice nearly as often as you'd expect. Sorry, but it's true. Haskell's "map" doesn't parallelize automatically.

Haskell generally won't parallelize unless you tell it to. HOFs are not specifically for parallelization, however the cost associated with switching from a serial HOF to a parallel HOF can be very, very low. The same is absolutely not true for loops. There are some interesting things available with SIMD macros, but that's not parallelization in the way you're referring to it.

> 2) Loops are a single construct you learn once and apply everywhere, while HOFs are a huge and bewildering zoo.

This is sort of true, but as noted in a sibling comment, this is not necessarily a good thing. Each loop construct can behave differently. The invariant could change, the initial index might be different, the increment is arbitrary. None of those are things you are supposed to do, but they are all stepps taken used to obtain a behavior. When you are using HOF's, each one has a specific purpose and behavior and they can be understood in isolation and then in as many or few compositions as desired

> 3) Loops can do many things that HOFs cannot. You can do break/continue/return in the loop body. You can iterate over two collections at once, skipping elements of one collection depending on what you see in the other. And so on.

I'll agree on this point, mostly. They are strictly more powerful when you want to do something complicated. You do pay for the power with complexity. My one quibble is that it isn't necessarily that hard to do co-iteration, and let's be honest, most co-iteration is done 1 for 1.

> 4) Loops scale to from simple use cases to complicated ones gradually and continuously. With HOFs, when your use case changes slightly (e.g. you add a counter), you often need to go all the way up and use a different HOF.

I don't see this as even a minor issue. In fact, it's kind of the point. If you need to do something different, create a new composition of functions and as long as they have the same type signatures and the operation is what you now want, there's no problem at all.

> 5) Loops make the time and space complexity much more obvious. With HOFs, you often get nasty surprises. For example, see the tail-recursive vs non-tail-recursive implementations of "map" in OCaml, or the foldr vs foldl vs foldl' situation in Haskell.

Except when they don't, as in the case where you are doing manipulations of the index or loop invariants; one of the things you cited as a benefit of loops.

I don't know about OCaml, but foldr and foldl are strictly different behaviors. One folds from the left, the other folds from the right, which is seriously important if you're using a non-associative operation. Now, maybe you want to say this is backing your point up, but write a for loop that does a non-associative left fold over a single linked list and we'll talk about obvious complexity.

To make an aside, are you maybe thinking about this in terms of Haskell's lists vs C arrays? The fact that the data structures are so, so different makes a huge impact on how you work with them.

foldl vs foldl' has nothing to do with HOF in particular, but Haskell's non-strict evaluation semantics. If you want to argue about strictness vs non-strictness though, that's a totally valid thing where I don't think there's any single dominant viewpoint. Non-strictness has certain benefits, but it's not necessarily worth it, especially if you can ask for limited non-strictness with otherwise strict semantics.

6) Loops are much easier to understand from a machine point of view. For HOFs, you need a language with closures, and in some cases GC as well. Loops, on the other hand, can be done in C.

You don't need a language with closures. Closures are definitely a great thing to have in general, but all you need is first class functions. You can write HOF's in C if you want to. It's a pain in the ass because function pointers are annoying as all hell, but you can absolutely do it.

Overall, I'll say that there's probably a point to be made that there's a bit of overhead in learning all the different and varied HOF's that work with a function, but I don't really think it's that much larger than becoming familiar with any given pattern you can implement in a loop construct. The difference being that you implement the loop construct every time you want to use it. With a HOF, you just refer to the one you want to use.

DannoHung··on Duolingo Raises $45M, Now Valued at $470M
Yeah, and there's a reason for that: https://www.google.com/finance?q=NYSE%3ARST&fstype=ii&ei=jlJ...
DannoHung··on Apple iPad Gets Split-Screen Multitasking in iOS 9
Seriously? Tell me any given example of an Apple product and I will show you something that came before it that had the same set of functional capabilities.

Apple has never led in terms of raw innovation, but what they do is take cool shit and make it work together really solidly.

DannoHung··on When a+b+c does not equal c+b+a
I don't follow. How do nested method calls fail to imply commutativity?

For example, using psuedo-Haskell notation:

    (+):: Int -> Int -> Int

    ; ncc short for non commutative combination
    ncc:: Time -> Time -> Time

    1 + 2 + 3

    ncc 03:00 (ncc 10:00 02:00)
← PreviousPage 6 of 34Next →