HNHacker News
TopNewBestAskShowJobs

DannoHung

4,805 karma · joined January 14, 2009

submissionscomments
DannoHung··on When a+b+c does not equal c+b+a
I guess? I'm saying that you can't realistically avoid working with the problematic units. Like, if you want to have a monthly payment system, at some point, you have to bake in the human concept of months into your system, warts and all.
DannoHung··on The state of Apple Pay adoption
Have you tried adding the card to passbook? There are a number of websites that let you generate a passbook card for an arbitrary barcode/qr
DannoHung··on The state of Apple Pay adoption
I believe the reason is because all those paypoints have to be upgraded to handle Chiped cards by the beginning of next year. Why lose 3 month's profit when in 6 month's time, the same result will happen.

At least, I don't think there are many modern paypoints that don't allow for NFC payment.

edit: http://blogs.wsj.com/corporate-intelligence/2014/02/06/octob...

Of course this article is old and I don't know if there'll be some sort of, "Wait, wait no!", moment or something.

DannoHung··on When a+b+c does not equal c+b+a
As long as we're posting wikpedia links: http://en.wikipedia.org/wiki/Leap_second

I wouldn't trust any time unit larger than seconds if I was concerned about my units staying consistent. Hopefully time-keeping bodies don't decide we need leap-millis at some point.

Which is only to say that this is a problem that can't be solved simply by discarding some concepts that you find problematic. There's a lot of shit about timekeeping that's problematic. I'd advise tossing all the problematic shit when trying to figure out some internal representation for the underlying time that more or less always makes sense and then building out more human-usable representations with the uglyness on top of it.

DannoHung··on When a+b+c does not equal c+b+a
Is it really overloading that's the problem here? Even if you used method names to do this, you'd still have to deal with the fact that the operation being performed is non-commutative.

I don't know that there is a way of expressing such a restriction even if you were using dependent types in such a way as to prevent shooting yourself in the foot here. Possibly you could not implement the month or year span elements altogether and only allow addition of days or seconds?

DannoHung··on Null Object: Something for Nothing (2003)
Heh, maybe Java 9(10? I have no idea what number they are currently working on) could forbid types that return Optional<T> from being null.
DannoHung··on Kubernetes: The Future of Deployment
Pretty sure it's due to it meaning in a literal sense, "Helmsman".
DannoHung··on The tech arms race in AAA games and why I'm abandoning it
Won't that arms race continue anyway? I guess it wouldn't be nearly as affordable if people weren't laying down big chunks of change for eyecandy though.

I dunno, you think the Xeon Phi stuff is ever going to show up in consumer grade?

DannoHung··on Thync – Calm or energy on demand
I disagree. Your mood is possibly the most subjective experience you can have and it is heavily affected by your own perceptions of what it should be. Cognitive Behavioral Therapy for people suffering from all sorts of psychological maladies is significantly effective because we are so able to affect our own perception of reality.

Therefore, they really, really need to do a rigorous experiment before we can derive anything meaningful.

DannoHung··on Sourceforge Hijacks the Nmap Sourceforge Account
Realistically, we need to move to decentralization for this. Same way that the distributed github project was like a, "Oh yeah, this is our insurance policy in case GitHub ever becomes garbage."
DannoHung··on Thync – Calm or energy on demand
No mention of the testing protocol. Probably didn't even do a single blind.
DannoHung··on Thunderbolt 3 embraces USB Type-C connector, doubles bandwidth to 40Gbps
They probably should come up with some way to simply mark things though, so you can easily tell by looking at what you're plugging in that everything is good.
DannoHung··on How Is Critical Life or Death Software Tested?
Financial institutions do not necessarily do things this way. Some parts might, but I don't have any experience with them. The parts I do have experience with it is utterly a miracle that anything works.
DannoHung··on GitTorrent: A Decentralized GitHub
My experience has shown that having names be treated as unique identifiers is a hairy situation. And frankly, unique identifiers in a system for distributing source code are as important as domain names if not way more so.

Domain names only ever run code in an ostensibly sandboxed vm.

DannoHung··on GitTorrent: A Decentralized GitHub
Centralization is about equivalent to ICANN being able to kick off a squatter. A truly decentralized system with first to register doesn't have a way to kick off squatters.
DannoHung··on GitTorrent: A Decentralized GitHub
Sweet as hell. My only quibble is the idea of using the blockchain for validated naming. I think it'd end up in a landgrab which is nasty.

As much as we all hate DNS, having the ability to kick a squatter off someone's name is probably a good thing. Personally I don't think having a crazy hash for identification is a bad thing. Rather, what you need to do is just have some sort of reasonable personal contact book so you only have to deal with the crazy hash once (when you decide you want to remember that someone is who they said they were).

DannoHung··on Jump – Experiences like you're actually there
Uhhmm... how much do you think gopro 4's cost?
DannoHung··on Over 30% of Official Images in Docker Hub Contain Security Vulnerabilities
We do this at my company and it is a fucking nightmare. Why? Because there are like 4 different operating environments and there isn't an official way to do installations and you also have to manage site installations of various packages for each version of each language dependency. And god forbid some environment variable is pointing to the wrong version of something because it's not just as simple as setting PATH and LD_LIBRARY_PATH when every thing and its mother tries to set its own fucking environment variables all pointing to wherever they think they were compiled at.

No, it is much much MUCH better to actually have an application build with its dependencies and deploy with its dependencies. And you know how you fix issues with security patches? You have a real build system that rebuilds your binaries and you redeploy regularly.

DannoHung··on Over 30% of Official Images in Docker Hub Contain Security Vulnerabilities
You're sort of combining two things: 1) Docker makes it super simple for anyone to package software and run it 2) Dockerhub makes it simple to share software that you have packaged with other people.

Personally, my biggest gripe with Dockerhub is that a Dockerfile should be required in order to upload to the hub, and it should show the Dockerfile that produced each version. The fact that people can create fundamentally unreproducible binaries is nasty (there's also the issue of not specifying versions in the apt/yum steps used in the Dockerfiles, but that's just a general problem with the way package management software is designed).

None of that's a problem with Docker itself though.

DannoHung··on “The benchmark numbers are completely wrong for both databases”
> "do your own benchmark" best practice

Is this a best practice? It seems like we've been delivered evidence that it is really hard to do good benchmarks unless you're already intimately familiar with what you're testing, which says something about how hard it is to make a good choice.

I don't know about other industries, but this sort of result is what stuff like the STAC M3 Benchmark suite was designed for: Typical usecases that experts can implement so you can get realistic performance comparisons.

DannoHung··on Libraries – Open Source Discovery Service
Neat idea. Add support for letting people categorize packages though!
DannoHung··on The strange fate of a person falling into a black hole
Nah. Someone should've realized Miller's world was a bad idea before they went down there and made the whole thing a screw up.

Oh, or what about the fact that they "solve" Gravity and decide to leave Earth. HELLO, YOU NOW HAVE INFINITE ENERGY! YOU CAN FIX ANY PROBLEM WITH BRUTE FORCE!

DannoHung··on Reasons for Python async/await
Well, you're talking about things where time and experience has more or less found that having everything in a language working the same exact way makes for huge productivity gains and in most cases it's easy to escape hatch out if you really need special behavior, but most of the time you don't versus things where almost no one wants to use the same shit.
DannoHung··on MemSQL Launches Unlimited Community Edition
No no, sorry, it's much simpler (at least in how it works, no guarantees on implementation complexity, of course). It's an issue that comes up in timeseries databases pretty often.

Say I have a table full of quotes and a table full of trades. I want to know what the quote price was at the time the trade occurred. In no-frills SQL, that translates into something like:

    select * from t left outer join q on q.time=(select max(time) from q where time<=t.time and sym=s) and t.sym = q.sym where date = d and sym = s
If you have some sort of support for time proximate joining, the query engine only has to perform a binary search (as long as the indices on the symbol and time columns are appropriate, say symbol partitioned, then time sorted within symbol) to find the correct row from quote to join against. If it doesn't have such support, then a scan is required to find the maximum time value from the quote table that satisfies the constraint on the trade time. Presumably, if you do have support, this wouldn't be the exact query syntax, because that would heavily imply that you want to perform a table scan, or that you could change some aspect of the subquery without affecting performance. Maybe you'd have it be something like this:

    select * from t left outer join q on before(t.time,q.time) and t.sym = q.sym where date = d and sym = s
DannoHung··on MemSQL Launches Unlimited Community Edition
Are there any optimizations or explicit support for proximate ordered joins?
DannoHung··on E. W. Dijkstra Archive: “Why is software so expensive?” (2009)
May you be cursed to spend the rest of your days writing PHP.
DannoHung··on Interview with Eric Brewer
Seems like you'd have to construct a pretty weird situation in order to blow up your cache, particularly if your load is enough that you can max out a server. Like, if you're running a lot of instances of the same app, deduplication should work fine, right? It only would show up if you've built a bunch of different applications that use the same libraries and consume roughly similar amounts of CPU; if you're running multiple copies of the same application, the deduplication should work just fine.

And that's assuming that it'd work exactly the way you're thinking.

I feel like the win over running VMs (which incur something like a 12% overhead compared to both Docker and running right on the machine for a single application), plus flexibility, plus ease of deployment is worthwhile. I mean, the current situation is running VM images anyway, right? This is a step in the right direction over that, even you must admit.

DannoHung··on Interview with Eric Brewer
Isn't this only true if your container build process pulls in the same version of a library in multiple different virutal filesystems? That is, if you are using the same base image for a number of applications and the libraries are installed in the base image rather than the image the application resides, in the kernel should recognize the shared libraries being used as coming from the same place and be able to perform deduplication as normal?
DannoHung··on Interview with Eric Brewer
Do you know where I can read more about this? This is the first I have heard that processes running inside containers interfere with the kernel's scheduler. Or, sorry again, but maybe I'm not following your meaning in some way?
DannoHung··on Interview with Eric Brewer
Sorry, but what costs do containers incur? From my understanding, the resource overhead should be exceedingly minimal (disk space would ostensibly be the largest drawback, if you don't spend time cutting out the fat. Personally, I see this as a tooling issue since fat containers are completely orthogonal to how a container really executes). I understand some of the situation with IO isn't perfect yet, but I haven't heard anyone suggest that it cannot be corrected.
← PreviousPage 7 of 34Next →