Better HN
topnewbestaskshowjobs
Log inSign up

panic

29,749 karma · joined Sep 16, 2009 (17y ago) · 3,593 submissions

Submissions

comment 11y ago · link · parent

It's a richer visualization than that. The Sieve of Eratosthenes only marks which numbers are composite -- this visualization actually shows each of the factors.

comment 11y ago · link · parent

Sub-pixel rendering isn't really worth it on high DPI displays like this. It also doesn't work that well with iOS's CoreAnimation compositing model. Blending sub-pixels properly across transparent layers in particular is difficult.

comment 11y ago · link · parent

This sounds similar to FOAF -- https://en.wikipedia.org/wiki/FOAF_(ontology) -- and more generally similar to concepts from the semantic web. Why not build on these existing formats?

comment 11y ago · link · parent

If you zoom out a bit, there are noticeable "holes" above the North and South Poles where the density of objects is lower. Does anyone know what is causing these holes?

comment 11y ago · link · parent

It should be noted however (as I do) that the decimal number is still not equivalent to the actual floating point number, only that when converted back it is the same.

Since 2 divides evenly into 10, every binary number has an exact decimal representation, and you can produce a decimal string which is equivalent to any floating point number. You may need quite a few digits, though.

comment 11y ago · link · parent

In cases where the iteration can’t be avoided, it’s vital to understand you won’t get the expected result. A certain amount of rounding error will always accumulate.

You can track the error and account for it during iteration to avoid errors accumulating. See, for example, Kahan summation: https://en.wikipedia.org/wiki/Kahan_summation_algorithm

comment 11y ago · link · parent

Christian Neukirchen's Trivium: http://chneukirchen.org/trivium/ (a descendant of the original "tumblelog", Anarchaia)

comment 11y ago · link · parent

You can still install any software you want on your Mac. As that bugzilla page says, Firefox already uses plenty of private APIs, so this doesn't seem to be a big deal in practice. And Firefox was not rejected from the App Store, another XUL client was (IMVU).

comment 11y ago · link · parent

Indeed, Apple briefly added a sort of full-screen mode to iOS Safari (Google "minimal-ui" viewport for more info) but removed it due to abuse.

comment 11y ago · link · parent

Safari's engine, WebKit, is open source. There are no secret advantages. Other browsers are free to read WebKit's code and copy its techniques.

comment 11y ago · link · parent

Speaking of frequent rebooting, I always thought the lack of support for orthogonal persistent state, seamless application checkpointing and built-in dynamic software upgrade facilities represented a failure in modern mainstream computing.

When a system is in a complex, poorly-tested state, problems often occur. Rebooting solves these problems by putting the system back to a simpler, more predictable state. With orthogonal persistent state, the system remains in the complex state across reboots, and these problems become much more difficult to solve.

As a user, I agree that persistence is really nice, but I think we need to address the existence of these complex, poorly-tested states before we start transparently persisting them.

3162.

Operant Conditioning by Software Bugs (2012)(blog.regehr.org ↗)

48 points · by panic · 11y ago · 20 comments

comment 11y ago · link · parent

Is this really undefined behavior? The C spec says (6.7.8.10) "If an object that has automatic storage duration is not initialized explicitly, its value is indeterminate." The fact that the indeterminate value could be a signaling NaN is a feature of floating point numbers, not C.

comment 11y ago · link · parent

You could use the indentation as a hint for error reporting even without giving it syntactic meaning.

comment 11y ago · link · parent

Basically all the data fit in the CPU cache

True, but it's the relatively-slow L3 cache (the L2 cache is at most 1MB for the processor being used for testing).

I think the biggest problem with this trie implementation is the amount of pointer-chasing due to the low branching factor. The step function does four (!) loads for every character, each depending on the result of the previous load. Real tries have much larger branching factors (and compress each node to avoid wasting tons of memory).

comment 11y ago · link · parent

The tagline is "watch people code products, live". The word "products" appears in almost every piece of copy on the front page. Why not just "watch people code, live"? Why the focus on products? What about open source code, personal projects or other things that will never be sold?

Classifying streams by programming language is also kind of odd. Lots of projects use multiple programming languages. A better classification might be what general kind of code is being written (machine learning, graphics, UI, web frontend/backend, games, etc).

That said, I'm very interested in this and hope to see it succeed!

comment 11y ago · link · parent

One example that comes to mind is adding custom force touch events on Apple's new trackpads.

comment 11y ago · link · parent

You could also make this argument in the other direction: it's incredibly shortsighted to lock yourself into Qt when there are some things you can do only with a native toolkit. Using native libraries on each platform gives you flexibility and intra-platform consistency at the expense of lots of extra effort. It really just comes down to whether you're willing to expend this effort or not.

comment 11y ago · link · parent

do we really want all the different tech companies and car manufacturers competing to build separate driverless software and standards?

Diversity is good. If everyone used the same software, it would all have the same flaws. Competition also provides an incentive to make the software better.

3170.

The CADT Model(jwz.org ↗)

2 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

Reddit's low point was right before they separated out political posts into their own section (this was about seven years ago, before subreddits). The front page was full of "vote up if" self-posts and overly-hysterical articles about the upcoming elections. It's much better now that you can pick what kinds of articles you want to see.

3172.

GUI Architectures (2006)(martinfowler.com ↗)

84 points · by panic · 11y ago · 10 comments

3173.

Ban boring mike-based Q&A sessions and use index cards instead(blog.valerieaurora.org ↗)

4 points · by panic · 11y ago · 1 comment

comment 11y ago · link · parent

It would be interesting to separate out the sensitivity (how often does the test give a positive result on good candidates?) from specificity (how often does the test give a negative result on bad candidates?) for each of these tests. I'd guess a fizz-buzz-style test has good sensitivity but terrible specificity.

comment 11y ago · link · parent

Apple has been experimenting with zoomable UI a bit recently: the Apple Watch home screen is essentially a ZUI. On the iPhone, Photos and Calendar zoom as you progress through the levels of hierarchy (though you can't zoom interactively). Safari on the Mac and iPad also lets you zoom out to see your tabs in a ZUI-ish way.

3176.

My week at Recurse Center(blog.plover.com ↗)

2 points · by panic · 11y ago · discuss

comment 11y ago · link · parent

In practice, most programming languages are not purely or even mostly functional. So why is everything on this list about functional programming?
1
105106107
120