Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 12y ago · link · parent

Most platformer games actually let you jump for a short time after you run off the edge of a platform. The lack of this mechanic is what causes the jump to feel inconsistent.

comment 12y ago · link · parent

I've been doing the same thing!

I believe the higher numbers work like this: every 21 turns, Threes generates a number from 0-20. After this number of turns elapses, if the highest number seen is 48 or greater, Threes skips drawing from the normal set of ones, twos, and threes, and instead generates a "special spawn". The special spawn is a number between 6 and <highest number seen> / 8 (I believe the distribution is uniform).

Source: Threes writes a preference plist that allows it to resume games if the app is killed in the background. The keys to look at are "PseudoSpawnSpecialIndex" and "PseudoSpawnSpecialList".

comment 12y ago · link · parent

3. What is up with RAM? I saw nothing about memory, with lots of pipelines it is bound to be memory bound.

There's more information about memory in the talk at http://ootbcomp.com/topic/memory/

3364.

Floating Point Determinism(gafferongames.com ↗)

2 points · by panic · 12y ago · discuss

comment 12y ago · link · parent

You could also train yourself (using e.g. http://en.wikipedia.org/wiki/Mnemonic_major_system) to memorize a completely random private key.

comment 12y ago · link · parent

This was actually done live with a real cartridge last week at AGDQ: http://www.youtube.com/watch?v=ioQmbEoYL0M

comment 12y ago · link · parent

Xerox PARC may never have produced the modern computer if there had been an explicit profit goal. The "spectacular failure" here was not in the goal of the lab -- the problem was how Xerox management dealt with its results.

3368.

Amish Hackers(kk.org ↗)

2 points · by panic · 12y ago · discuss

comment 12y ago · link · parent

I've noticed Safari delaying hover events while scrolling, presumably for this same reason. It seems like something the browser should handle. Individual sites shouldn't be forced to hack around the issue.

comment 13y ago · link · parent

Why does it have to be a driverless car revolution? It seems more likely we'll get there incrementally, adding pieces of the experience one by one as safety features. Eventually, with all the safety features enabled, the car will be able to drive itself.

comment 13y ago · link · parent

WebKit uses a bloom filter to optimize CSS descendant selector matching: http://trac.webkit.org/changeset/77777

comment 13y ago · link · parent

Objective-C isn't exactly a "post-C++ language". The two languages showed up around the same time in the 80's and have orthogonal object models (in a very concrete sense given the existence of Objective-C++).

3373.

Why the Web of Trust Sucks(lists.torproject.org ↗)

8 points · by panic · 13y ago · discuss

3374.

The Great Ones(rationallyspeaking.blogspot.ch ↗)

1 points · by panic · 13y ago · discuss

3375.

Moonpig - how to write a billing and accounting system that doesn't suck(perl.plover.com ↗)

3 points · by panic · 13y ago · discuss

comment 13y ago · link · parent

It's the same in JavaScript:

   x = 5; // global
   var x = 5; // local
Lua just replaces var with local:

   x = 5  -- global
   local x = 5  -- local

3377.

Outsourcing a Life(sfchronicle.com ↗)

1 points · by panic · 13y ago · discuss

comment 13y ago · link · parent

Relatively low-quality gel casts don't seem to work: http://blog.fortinet.com/iPhone-5s--Basic-Fingerprint-Replic...

comment 13y ago · link · parent

Even 25–50ms is noticeable in certain situations. See http://www.youtube.com/watch?v=vOvQCPLkPt4 for an illustration of how things get noticeably better, even as you go below 10ms.

comment 13y ago · link · parent

Instead of brute force, it looks like it's comparing automatically-generated models of the two implementations symbolically.

Success! Amazingly, this proof systems scales to large values of n where exhaustive checking is not feasible:

    $ time make n=1000
    Proving function equivalent to reference:
    encode_aig : [1000][8] -> [1336][8]
    Q.E.D.
    real: 17.882s  user: 16.31s  cpu: 1.50s*

comment 13y ago · link · parent

This has been available on iOS since iOS 6. I'm surprised more people don't know about it!

comment 13y ago · link · parent

It does! In fact, this is the reason sticky positioning exists. See the original proposal at http://lists.w3.org/Archives/Public/www-style/2012Jun/0627.h...:

Many web sites have elements that alternate between being in-flow and being position:fixed, depending on the user's scroll position. This is often done for elements in a sidebar that the page author desires to be always available as the user scrolls, but which slot into a space on the page when scrolled to the top. It can also be done for table headers which remain visible after the top of the table has been scrolled off- screen.

Lots of sites, such as news.google.com (the "Top Stories" sidebar) and yelp.com (the search results map), use scroll event listeners in JavaScript to achive this effect. However, browsers are increasingly moving towards scrolling implementations that make use of hardware acceleration to improve performance, for example by leveraging the GPU, and doing scrolling on a thread other than the main UI thread.

In this situation, browsers may use fast scrolling but fire scroll events asynchronously, which will result in rendering glitches on pages that update element positions from JavaScript via scroll events. Alternatively, the browser may fall into a slow scrolling mode when scroll events are listened for; this impacts the perceived quality of the browser's scrolling. To address this problem, common scrolling behaviors like this should be exposed declaratively, through CSS.

3383.

The Athens Affair(spectrum.ieee.org ↗)

1 points · by panic · 13y ago · discuss

3384.

Lateral Thinking with Withered Technology(ignorethecode.net ↗)

2 points · by panic · 13y ago · discuss

comment 13y ago · link · parent

"Major hard on"? Really?

comment 13y ago · link · parent

A picture would be worth a thousand words here. An interactive illustration would be worth a million. Instead, the article has two totally irrelevant images and a bunch of hard-to-follow prose.

Why, in 2013, are we still forcing people to construct images in their head based on words instead of showing them the full picture on their computer?

3387.

The Church of Interruption(diiq.org ↗)

2 points · by panic · 13y ago · discuss

3388.

The Perils of Future-Coding(sebastiansylvan.com ↗)

2 points · by panic · 13y ago · discuss

comment 13y ago · link · parent

We should go with http://black.bikeshed.com instead. The black background will save power on devices with OLED displays.

3390.

NULL considered harmful(ewontfix.com ↗)

5 points · by panic · 13y ago · discuss

1
112113114
120