HNHacker News
TopNewBestAskShowJobs

anonymous

1,064 karma · joined March 11, 2007

submissionscomments
anonymous··on How Java’s Floating-Point Hurts Everyone Everywhere (1998) [pdf]
1. Faster? Really? Those values only live in registers for a short while, is saving one or two cycles all that important?

2. That is an interesting point. Gut instinct says tmp should end up being f64 and then both expressions would be the same. Equally valid is the interpretation that the user selected explicitly for conversion to f32 of the intermediate value. We all know computers don't perform platonically perfect math with real numbers, there isn't much you can do about it, but I think the choice which results in the most precision should win at the end of the day.

Perhaps in a language which doesn't require specifying types like Rust, the best thing to do is to simply dispense with 32-bit floating point values entirely. I'd be equally happy with compiler flags like -fmore-precision. Or maybe you could have other arithmetic operators like +64 and +80 which cast all their arguments to 64/80-bit floating point numbers and produce a result with that precision. So I'd write

    let a: f32 = b (+80) c (/80) d as f32
Given that Rust is a pretty young language and still far from a 1.0 release, do consider if you can provide any kind of syntax to actually make full use of computers' numerical capabilities.
anonymous··on How Java’s Floating-Point Hurts Everyone Everywhere (1998) [pdf]
In what context would I want less accurate results from my arithmetic expressions? I mean, I have some numbers, I write an expression with them, and then I expect to get the most accurate possible result. Doesn't it make a lot more sense to let users specifically specify that a given expression is to be evaluated only using 32-bit float values, than to make everybody always cast every value in every expression to 64-bit float? I can tell you that having to sprinkle (double) all over your Java code (and then an additional (float) in front) to be sure you're getting the most available precision is pretty tedious.
anonymous··on The Fireplace Delusion (2012)
Isn't there something else we can burn that also gives off that nice wooden smell? I smell a market opportunity here - bio natural imitation fireplace wood - 100% carcinogen free smoke, asbestos free, cholesterol free, contains no hydrogenated fats.
anonymous··on Show HN: Pigs – Lightweight server for querying and playing from Grooveshark
Why the downvotes guys? He's right. Pigs are tasty. I mean you get ham and bacon and steak and butt and all kinds of stuff from pigs.
anonymous··on Google is broken in IE11 on Windows 8.1
MS-DOS ain't done...
anonymous··on Nvidia's G-Sync: Attempting to Revolutionize Gaming via Smoothness
I have been wondering for a while what reason there is for LCD displays to have refresh rates at all. There is nothing to refresh per se. Shouldn't the display just tell the videocard it can handle frames as long as they're at least some ms apart, then the videocard pushes the frames when they are ready, whenever that may be?

It makes way more sense to me than carrying over the limitations of old (CRT) technology.

anonymous··on RVM 2.0: Convert 20,000 lines of shell script into Ruby [Fundraiser]
Well, since you seem to have insight as to the reasoning behind others' choices, perhaps you could enlighten us how someone came up with the idea of writing 20K lines of shell and passing it off to a community of Ruby developers as a "command line tool"?
anonymous··on RVM 2.0: Convert 20,000 lines of shell script into Ruby [Fundraiser]
Or, they could just learn shell scripting. How much would that cost?

I do not understand why the[1] shell... which is a relatively small language... is so difficult for people to learn.

If you can find the time to learn Ruby, what stops you from learning a shell? What is the cost of ignoring it?

1. Preferably something resembling the proposed POSIX standard which might lend to portability. Bash is not necessarily the best choice unless every server you will ever use will be GNU userland/Linux kernel.

anonymous··on Stop Being Wrong About China Buying Our Bonds
It's a global economy. I take it you all agree on that.

I have a question for you: "With respect to importing and exporting, how important is it to be in balance, or to have trade surplus (versus a trade deficit)?"

China's strategy is aimed at ensuring it maintains a trade surplus. They have succeeded for centuries. China will export more than it imports.

And the US? Its strategy is to look for the cheapest labor and goods to "exploit", whereever those may be found.

What do you think? Which is the better strategy? Does trade balance matter?

As for this article, I have no idea what this guy is on about.

The US is primarily a buyer. China is primarily a seller.

If you accept that as true, then the US's "credit" is important. And who do you think decides whether a buyer's credit is good?

Would you keep shipping goods to a buyer who could not pay?

anonymous··on You’re infected—if you want to see your data again, pay us $300 in Bitcoins
Wouldn't it be possible to attach a debugger to a running instance of the virus and extract the key while encryption is taking place?
anonymous··on You’re infected—if you want to see your data again, pay us $300 in Bitcoins
And having a flamewar on how people should google things for themselves wasted how many kettles? Anyway, if you don't want to tell people things, then don't tell people things, but going on and on on how OP should just google things themselves, is reaching 4chan levels of elitism. It's a really shitty kind of elitism.
anonymous··on LG G Flex curved smartphone revealed
So it's not just a phone, it's also a self-defence device (as long as your attacker stays with his back to the sun and it's not cloudy or dark).
anonymous··on What is it like to be a mathematician?
See that https in your browser bar right now? You can thank math for that.
anonymous··on A Holiday in Honor of the Korean Writing System
The way I've heard it explained is that Japanese has too many homonyms and simply writing things by sound would be too ambiguous.

On the other hand, a friend who spent a year in Japan remarked that, e.g. policemen carry dictionaries with them. When you need to carry around a book on how to write your own language because it has way too many complicated glyphs for everyday people to learn to 100%, maybe it's time for an orthographic reform.

anonymous··on Formula 1′s Leading Team Has a Big Secret
Couldn't it be some sort of new notification system for the driver which gives him instinctive feedback and lets him drive the engine the same way traction control would?
anonymous··on How Harvey Mudd Transformed Its CS Program And Nearly Closed Its Gender Gap
You know, on reflection, this is actually a good thing. Not because of the diversity - screw diversity. Because you'll have more people with aptitude admitted. Programming aptitude is mostly evenly distributed regardless of gender and race, therefore if you keep your number admitted persons constant, but give a good incentive for every kind of person to apply, you'll end up with better applicants. Or to put it another way, the best 1000 white male americans are worse than the best 1000 americans in general. And at least in this case, I'd expect that there would be about as many capable females as males. Things might go skewed if we try to have the same number of heterosexuals and homosexuals or left-handed and right-handed people though.
anonymous··on This Bird Can Stay in Flight for Six Months Straight
There's also the common swift, who spends almost all its time in the air and absolutely never lands on ground, due to being unable to take-off -- its legs are too short and weak to do that. They only land on rock faces and take off by letting go. That's where they build their nests too. You can see them in a lot of cities actually -- high buildings are pretty much perfect for them to nest on.
anonymous··on Unix: When pipes get names
You need to buffer the input in any case, why not just

    LS=$(ls)
    ./cruncher <<END
    $LS
    END
    ./muncher <<END
    $LS
    END
anonymous··on Javascript apps can be fully crawlable
I was under the impression that Googlebot already executes javascript on pages.

A more interesting idea would be if you do this for every user - prerender the page and send them the result, so they don't have to do the first, heavy js execution themselves. I know it sounds a bit retarded at first - you're basically using javascript as a server-side page renderer, but think about this: You can choose to prerender or not to prerender based on user agent string -- do it for people on mobile phones, but not for desktop users. You can write your entire site with just client-side page generation with javascript and let it run client-side at first, then switch to server-side prerendering once you have better hardware.

anonymous··on The Bonehead Mistake That Brought Down an Online Drug-Dealing Empire
right BH?

What? If you imply those are my initials, I'm sorry to say you're mistaken.

anonymous··on The Bonehead Mistake That Brought Down an Online Drug-Dealing Empire
This sounds a bit too dumb to be the actual dread pirate roberts. Could he be the third owner of the site? IIRC the original DPR just set it up not with some ideals in mind, but just to sell drugs. Then he left it to the next DPR, the one they allegedly busted. Maybe the one they busted is actually the third one?
anonymous··on Unnoficial design concept for Windows 9
And where in the entire body of everyday natural instinctively useful objects, are things that respond to and are manipulated by caressing them precisely with just the tips of your fingers? Well, sex obviously, but having sex with a large square piece of glass isn't at all enjoyable.

Kind of explains the popularity of thinkpads' nipple mouse, though.

anonymous··on Note 3’s benchmarking “adjustments” inflate scores by up to 20%
Question: why don't benchmark sites then install a third-party android distro and benchmark with that?
anonymous··on So you're thinking of tracking your JS errors
Is it just me, or does anyone else think the way CORS works right now is completely bass-ackwards? We have a page served by Host A that wants to access resources on Host B. Why is it that Host B has to allow this and not Host A? If I compromise a script on Host A, of course I'll also add the needed headers in the reply by Host B! Isn't it a lot more sensible that Host A should include a header that says "you are allowed to also download resources from Host B"?
anonymous··on Where do Github users live? WebGL visualization
No, it was the same for me. Seas are dark blue while landmasses are white near the poles, green in most other places and sandy yellow in deserts - light colours. It makes me expect lands to be light and seas to be dark, even on a stylised monochrome globe.
anonymous··on Freelan - an open-source, multi-platform, peer-to-peer VPN software
Isn't the upnp feature of most home routers enough?
anonymous··on Pudb – A full-screen, console-based Python debugger
That's not amazing, that's just sad.
anonymous··on UTF-8 – "The most elegant hack"
Consider that it's

1. completely backwards-compatible with ASCII

2. you can always tell if you're reading a part of a multibyte character or not, meaning that you can tell if you're reading a message that was cut in some random point and can tell how many bytes to drop before reaching the first start of a character

3. endian-agnostic due to being specified as a byte stream

4. contains no null bytes, so it can fit in any normal C string

Point 1 is absolutely vital for backwards-compatibility and 2 makes it better than a lot of other multibyte encodings. Consider for instance chopping one byte off the start of a ucs2-encoded string - you'll get complete garbage. And 3 means you don't get strange endian-related errors.

It's a robust, resilient encoding that's a drop-in replacement for ASCII and needs no special support from many utilities - tail and head for instance can work with UTF8 text as if it's plain ASCII, just looking for a \n byte and chopping the input in lines.

So yes, I do think it's elegant. It may not be the simplest possible encoding for unicode, but it's extremely practical.

anonymous··on Urbit: The Internet failed (slides and video)
> That's because there is no (easy) way for you to connect to my computer.

Er.. just give me your IP and we're good to go, no? Even easier if you register a name for free on dyndns (for instance) and then give me something like mshaxxorette.homelinux.org.

anonymous··on Steam Controller
Presumably you won't ever raise your thumb from the circle, therefore never losing your place.
← PreviousPage 2 of 19Next →