HNHacker News
TopNewBestAskShowJobs

cx01

772 karma · joined February 28, 2007

email = reverse "moc.liamg@tdrahnierh"
submissionscomments
cx01··on HN Lament
All of Pooter's posts have five hyphens on the last line. So maybe this triggers the spam filter.
cx01··on Who Rules America: An Investment Manager's View on the Top 1%
I found the following article: http://hiwaay.net/~becraft/FRS-myth.htm#hd25

Apparently the Fed's revenue is not 'destroyed' but transferred to the Treasury.

cx01··on Who Rules America: An Investment Manager's View on the Top 1%
No, I wanted to point out that the total amount of debt can be larger than the total amount of (physical) money.
cx01··on Who Rules America: An Investment Manager's View on the Top 1%
If there is only $100 in the economy, I can still owe you $105. To pay it back, I could start working for you and be paid $1 per hour. Now everytime you pay me $1, I would pay you back this dollar until my debt is zero.

In the real-world, with more than two persons, it would look more like this: I pay you back some amount of the debt, you spend this money and it propagates through the economy, until some part of it reaches me (in the form of a wage), so that I can use it to pay back more of the debt.

cx01··on Reliability, availability and scale – an interlude
> the client would declare all locks upfront

But if the client crashes after acquiring the locks, wouldn't your system be deadlocked?

cx01··on Databases: The Einstein Hypothesis - Distributed Transactions Cannot Exist
The two generals problem doesn't mean distributed transactions are impossible. It just means that you cannot guarantee liveness, i.e. a distributed commit protocol might block if the network fails. But it will never yield an inconsistent state (one node commiting and another node aborting).
cx01··on Databases: The Einstein Hypothesis - Distributed Transactions Cannot Exist
Did you even read the Paxos Commit paper? There is no single arbitrator. And what is 'unknown state' intended to mean? The system will obviously always be in a known state. It will just block as long as there is no network connectivity.
cx01··on Databases: The Einstein Hypothesis - Distributed Transactions Cannot Exist
The author is wrong. Distributed transactions are possible, for example using the Paxos algorithm. In Paxos, if the network fails, the system will block (i.e. become unavailable) until connectivity is restored. It's not possible for one node to commit and the other node to abort.

There is even a paper about using Paxos specifically for distributed commit: http://research.microsoft.com/apps/pubs/default.aspx?id=6463...

cx01··on Blender 3D: Noob to Pro, free ebook
There's a set of video lectures, which seem to be pretty up-to-date: http://gryllus.net/Blender/3D.html
cx01··on Ask HN: How does Google make money off of Android?
For apps sold on the Android market Google takes a 30% transaction fee, which is split between the payment processor and the carriers. Since AFAIK Google Checkout is the only supported payment processor, that should give them some revenue.
cx01··on How Germany Became the China of Europe
> In a true free market scenario with freely floating currencies, currencies in countries like Spain, Italy, Ireland, Greece would have devalued. Germany's currency would have strengthened. This would have made German exports (to other EU countries) much less competitive than they currently are.

Well, even without free-floating currencies, countries like Greece could just lower the wages, which would in turn reduce the price-level of Greek products, making them more competitive.

cx01··on Intel Launches Next Gen Itanium Monster Processor
Regarding point 2, I wonder how much of a benefit Itanium would see from JIT-compiled languages, because the JIT could then dynamically arrange instructions to maximize ILP.
cx01··on Ask HN: Where to put your money?
I agree. The US is in a deflation and I don't think the Fed will be able to stop it. So cash should gain in value. Just make sure to put it somewhere safe, as banks may go bankrupt in a deflation and the FDIC will most likely not be able to guarantee all deposits.
cx01··on Ask HN: Where to put your money?
I would be skeptical of Schiff's investment advice. Look here for a rebuttal of his claims: http://globaleconomicanalysis.blogspot.com/2009/01/peter-sch...
cx01··on Firefox 4 Beta 3 Released
No. The WebSockets API in Javascript only allows acting as a client, not as a server.
cx01··on The Two Generals' Problem (wikipedia)
Distributed transactions generally use 2 phase-commit (2PC). If message loss happens, the 2PC algorithm will block, i.e. the transaction can neither be committed nor aborted. When the network gets reliable again, the algorithm will finish. So strong consistency isn't really affected by this problem.

A special case would be if the network is broken only in one direction. In that case, the same command may be sent multiple times, but even this is not a problem, since the 2PC commands are idempotent (e.g. receiving the Commit-message multiple times won't hurt, since the receiving node knows that it has already committed the transaction).

cx01··on Ocamlmq: a 1200-line low-key alternative to ActiveMQ and RabbitMQ.
ZMQ is much lower-level than AMQP. ZMQ is pretty much a thin layer on top of TCP (or alternatively UDP) which offers basic messaging semantics like Publish/Subscribe. You create ZMQ-sockets on multiple machines and data written to one socket will be forwarded to all machines that have subscribed to this socket. There's several more socket types, for example Request/Response or point-to-point (which is mostly like a traditional TCP connection).

AMQP is much heavier and offers persistence and more advanced routing (and a lot of unncessary cruft). In theory you could build something like RabbitMQ on top of ZMQ (I say 'in theory' because AMQP defines its own wire protocol which is incompatible with ZMQ). AMQP is also server-centric whereas you could use ZMQ in a more decentralized system.

cx01··on The Toughest Developer Puzzle Ever
Take a close look at the img-tag in the source code...
cx01··on Try Haskell: An interactive tutorial in your browser
When I go to tryhaskell.org, it still doesn't work. I believe the patch that you've mentioned only applies to when the user presses ALT+TAB, which won't help here.

I'd suggest you either do "if(e.altKey)return;" or "if(e.altKey && e.ctrlKey)return;". Both work for me.

EDIT: Hm, my suggested changes work in Opera, but they break Chrome... This is driving me crazy.

cx01··on Try Haskell: An interactive tutorial in your browser
I noticed that Opera sends two keypress events when I press "[". The first event (that generates the erroneous "8") has e.altKey==true.

So a simple solution might be to add the following to the keypress function "if(e.altKey) return;". I've tested this locally and it works for me, but don't know if it might interfere with other keyboard layouts.

cx01··on Try Haskell: An interactive tutorial in your browser
I'm on Win7. Actually I made a slight mistake on my original comment. You get "[" by pressing ALTGR+"8" not ALT+"8". Don't know if it makes a difference.
cx01··on Try Haskell: An interactive tutorial in your browser
Whenever I press "[" it actually inserts "8[" into the editor. I use Opera 10.5 and a German keyboard (on the German keyboard layout you get an "[" by pressing ALT+"8", if that's any help).

I think you might want to look at how Opera handles keydown and keypress events in Javascript. I had a similar problem working on my own project a few days ago.

cx01··on VoltDB is out, benchmarks against Cassandra
Transactions ARE durable if you use replication.
cx01··on VoltDB is out, benchmarks against Cassandra
Why? If a single node fails, you still have the data on 2 other nodes. Nothing is lost. Of course, assuming you have a reliable UPS.
cx01··on VoltDB is out, benchmarks against Cassandra
Why do you think it is blogspam? You can also read the H-Store papers if you're interested in the details.
cx01··on VoltDB is out, benchmarks against Cassandra
In-memory doesn't imply "unreliable". If you need high-availability you'll want to use replication anyway.
cx01··on Snap: A Haskell Web Framework: Benchmarks
I think Play+Scala should be competitive with Rails in expressiveness, while still being a lot faster. Of course, if you prefer dynamic typing you might disagree with me here.
cx01··on Project Bubble: possible basecamp alternative? Please review.
It also took me some time to find the prices. They're on the lower right corner of the frontpage.
cx01··on VoltDB - in memory, ACID compliant, partitioned, SQL database
If you do this for every transaction, you'll have more overhead than you'd have if you had just performed distributed consensus. But in principle you're right. It makes sense to put all the primary copies that are often used together on the same node. The problem is that it's hard to decide the ideal placement strategy. VoltDB puts this responsibility into the hands of the developers.
cx01··on Ask HN: HN Alternatives?
A phpBB-like forum would be great. I think you should just go ahead and start it. I'd use it.
Page 1 of 4Next →