HNHacker News
TopNewBestAskShowJobs

potkor

117 karma · joined May 29, 2012

submissionscomments
potkor··on Designing Javascript APIs
> Developers should never have to use a try-catch.

Is the "no exceptions" rule common in Javascript? Are exceptions trouble in JS for some technical reason compared to eg Python?

potkor··on C++11 and Boost - Succinct like Python
Especially if the benchmark measured programming and debugging time.
potkor··on Asus says Nexus 7 sales are close to 1 million per month
They aren't keeping up with demand. Eg. in Finland they've been constantly sold out since it launched a few weeks ago (same time with Scandinavia). The 16GB version is 269.90 EUR / 350.68 USD, and doesn't include the $25 Play voucher, the 8GB version is not sold here at all.

I suspect there is one set of primary-market/trend-setter countries where Google is selling it with near-zero margins and has first cut of shipments, and then the rest of the world where Asus sells it through their retailers and collects a lucrative profit margin.

potkor··on Joey Hess' minimal approach
A dial-in might be useful though.
potkor··on Why We Can't Solve Big Problems
Definition of PROBLEM

1 a : a question raised for inquiry, consideration, or solution b : a proposition in mathematics or physics stating something to be done

[other meanings elided]

potkor··on Increasing wireless network speed by 1000%, by replacing packets with algebra
It's the job of the 802.11 L2 to hide correctable packet loss L3 so most radio link loss isn't passed on to TCP. This could just as well read "the wifi L2 error correction doesn't try hard enough".

This problem is very common but it wants fixing on the L2 and not TCP. Turning up the FEC on the L2 would reduce its capacity even further though since more of the bandwidth is taken up by the FEC (and so does this TCP level FEC).

3G gets it wrong on the other extreme, it pretends to always have 0% packet loss, your packets just sometimes show up 30-100 seconds late and in order.

potkor··on Open Source ARM userland
What does the "userland" subset encompass? What's left in closed source blobs?
potkor··on Google Chrome SVP says Portable NaCl will ship "in six weeks"
Agreed. Maybe they're testing the waters with the Chromebook and not updating the Android Chrome yet.

BTW is there a dev channel for Android Chrome?

potkor··on Apple says no Java for you, removes plugin from browsers on OS X 10.7 and up
Youtube HTML5 is experimental and not production quality. Many (most?) videos pop up a "Flash player is required" error when you try to access them even after turning on html5 on.

Probably something to do with ads, random joe videos have a high success rate and videos from the youtube front page low.

potkor··on Windows System Exploit
Actually, Chen implies that it would be a security bug if an unprivileged user could do it on her own:

"Enabling the kernel debugger requires administrative privileges, so it's not like unprivileged users can force a system halt on their own".

potkor··on Windows System Exploit
Sounds interesting. Anyone else have evidence for Microsoft's policy of ignoring local DoS vulns?
potkor··on Rust 0.4 released
Also, Mesa / Gallium3D.
potkor··on The Great Dropbox Space Race
The abstraction the whole idea. Dropbox is expensive capacity that has much more functionality than offsite backup. It's multiplatform online shared storage with good disconnected operation support, file history, dedup, etc etc. Different use case.
potkor··on USSD code to factory data reset a Galaxy S3 can be trigged from a HTML page
Works with my HTC Desire if I use the info code, the dialog for showing battery status etc pops up.

Raises interesting consumer protection questions, this is a 2010 phone with no updates recently. The law says the dealer has to fix or make up for manufacturing defects that show up years later.

potkor··on Quit My Job For Consulting: Two Months Later
This kind of lump sum contracting isn't usually called consulting and is pretty hard to do well unless you have really good chemistry with your client.
potkor··on Why I’m not leaving Python for Go
>> when a Left value is accidentally read as a Right one, you don't get a "random" bit pattern due to type punning, but a correct (albeit meaningless) value such as NULL

> How is that any worse than the current situation of not checking the error side and reading an undefined (or whatever it is?) value?

You get deterministic failure modes instead of dragons flying out of your nose.

Also assigning error in a variable ignoring it sticks out a lot more. The single-return value C version doesn't tell you if it can return failure or not.

edit: fixed quoting

potkor··on Stop Using The Cup of Coffee vs. $0.99 Cent App Analogy
Paid software just has a bad emotional association. People are usually goaded into paying for Windows/Office and antivirus software, not exactly rewarding. Games are an exception but people don't think of them in the same category.
potkor··on Nokia sells Qt to Digia
I think they were doing fine until they got joined up with Intel. Drove the nice Maemo stuff to the ditch with the failed attempt to merge it with Moblin (-> Meego).

Intel and Microsoft... good partners - but only with each other :)

potkor··on How the Curiosity Rover's Nuclear Battery Works
The sensible way to get electricity out of burning wood would be a steam turbine or stirling engine-based micro CHP (https://en.wikipedia.org/wiki/Micro_combined_heat_and_power).
potkor··on Great work Visa, now I hate you
In Finland the banks recently dismantled the old debit card system and forced everyone onto the insecure (EMV based) and expensive Visa/MasterCard branded debit cards. You still sometimes see the old cards but banks have stopped issuing new ones.
potkor··on Valve Source Engine Running Faster on Linux than Windows
I must have bad luck so far then. Can you remember examples?
potkor··on Valve Source Engine Running Faster on Linux than Windows
> You want OpenGL or/and Linux, and you need performance ? Get a Nvidia.

Unfortunately they've dropped laptop support so not really an option these days. The open source Intel/Radeon drivers in Mesa look to be the only game in town in the future.

edit: to expand, they've said many times that they're not going to support Optimus and that covers all except the luggable laptops these days.

potkor··on Inside Apple's Thunderbolt to Ethernet Adapter
It carries the pcie protocol but pretty obiously it's not electrically identical to pci express (external cables and connectors don't generally provide as good signal integrity as required by pcie that is happening on your motherboard).
potkor··on Inside Apple's Thunderbolt to Ethernet Adapter
Maybe the thunderbolt cable is short and well-shielded enough that they can just run plain pci express over it.
potkor··on If you were involved in the OpenGL ES specification, you are an idiot
These "embedded systems with highly constrained resources" are machines with 512MB+ of memory and monster CPU/GPUs. It's perfectly OK to write code for them that you haven't bled over to optimize the hell out of.

And JWZ just showed you don't need "tons of driver calls" unless you mean simple function calls that don't cross the kernel boundary.

potkor··on Cascading errors caused AWS to go down
Hmm, wouldn't it be less practical to do that with large CHP plants (vs small ones)? Here in Europe district heating CHP plants are generally run by utilities.
potkor··on Which hashing algorithm is best for uniqueness and speed?
Going by just the subject, maybe a perfect hash function generated with eg. GNU gperf?
← PreviousPage 2 of 2