Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 9y ago · link · parent

The improvements since ENIAC have mostly been miniaturization. It seems like smartphones are about as small as you can make a computer before it starts to become less usable.

comment 9y ago · link · parent

It might be worth mentioning popular functions like FNV (http://isthe.com/chongo/tech/comp/fnv/) MurmurHash (https://github.com/aappleby/smhasher) and SipHash (https://131002.net/siphash/).

comment 9y ago · link · parent

The more fundamental question is whether filenames are under control of the user or the system. The answer today is "both": there's blessed paths /System/Library... and non-blessed paths like ~/Documents/Pokemon.txt. Addressing this properly means reifying that distinction: making apps always be explicit about whether they're working with the user's or the filesystem's view of a file.

This distinction is important for other reasons, too. Should this file be indexed for search? Should it store an access time to support features like "recently opened"?

On the other side, we want to know which blessed paths "belong" to which system application or service so we can sync them, protect access to them, and uninstall them with their owners.

Maybe the user-visible document store should be a separate mechanism entirely from low-level app/service data persistence.

2134.

Factor: A Practical Stack Language(factorcode.org ↗)

1 points · by panic · 9y ago · 1 comment

comment 9y ago · link · parent

Previously: https://news.ycombinator.com/item?id=13750097

comment 9y ago · link · parent

Here's an article investigating the subject: http://people.ds.cam.ac.uk/mhe1000/musphoto/flashphoto2.htm

tl;dr: "Clearly, flashes from 'smartphones' cannot be regarded as a conservation threat in any properly lit gallery."

comment 9y ago · link · parent

Why invent a new standard? HTML is fine, CSS is fine. Most importantly, everyone understands it and can work immediately with it.

In order to render HTML, CSS and JavaScript, you need an entire web rendering engine. A new standard would let us get by with a lot less.

2138.

GPU API for the Web: Obsidian API Proposal(github.com ↗)

1 points · by panic · 9y ago · discuss

2139.

Why Geometry Shaders Are Slow (Unless You’re Intel) (2015)(joshbarczak.com ↗)

1 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Here's a recursive descent trick worth mentioning: instead of decomposing expressions into levels called things like "term" and "factor" by the precedence of the operators involved, you can do it all using a while loop:

    function parseExpressionAtPrecedence(currentPrecedence) {
      expr = parseExpressionAtom()
      while op = parseOperator() && op.precedence < currentPrecedence {
        if op.rightAssociative {
          b = parseExpressionAtPrecedence(op.precedence)
        } else {
          b = parseExpressionAtPrecedence(op.precedence + 1)
        }
        expr = OperatorExpression(op, expr, b)
      }
      return expr
    }
The parseExpressionAtom function handles literals, expressions in parentheses, and so on. The idea is to keep pushing more operators on to the end of an expression until a higher-precedence operator appears and you can't any more. This technique (called precedence climbing) makes parsing these sorts of arithmetic expressions a lot less painful.

2141.

Complexity and Strategy(hackernoon.com ↗)

2 points · by panic · 9y ago · 1 comment

2142.

The Invisible Women: How female architects were erased from history(architectural-review.com ↗)

3 points · by panic · 9y ago · discuss

2143.

Regl: declarative and stateless webgl(regl.party ↗)

1 points · by panic · 9y ago · discuss

2144.

Still Logged In: What Social VR and AR Can Learn from MMOs [pdf](raphkoster.com ↗)

2 points · by panic · 9y ago · discuss

2145.

Toward a New Hacker Ethic(vimeo.com ↗)

1 points · by panic · 9y ago · discuss

2146.

Hope for Nonaddictive Opioid Painkillers(blogs.sciencemag.org ↗)

2 points · by panic · 9y ago · discuss

2147.

Keep It Simple and Take Credit(democracyjournal.org ↗)

1 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

I think I misread the OP. You're right that there's no straightforward way to make Facebook more reliable on weekdays than on weekends.

comment 9y ago · link · parent

What other engineering discipline would say "there's no way to improve our reliability except stopping work altogether"? There's always a way to improve reliability. Arguably, with formal verification, you could ensure large parts of your system are perfectly reliable given simple assumptions.

The problem isn't that it's impossible -- it's that it's more expensive than just hiring one more engineer to keep papering over the problems.

comment 9y ago · link · parent

You don't have to bet, you can see them here: http://quellish.tumblr.com/post/126712999812/how-on-earth-th...

comment 9y ago · link · parent

It's executing on a vision -- making the future you want to happen actually happen.

comment 9y ago · link · parent

The problem with asynchronous operations is that there has to be a buffer somewhere. Once you have a buffer, you have to answer the question: what happens when the buffer is full? If the answer is to block, then you haven't really solved anything.

2153.

A comment left on Slashdot(chaosinmotion.com ↗)

419 points · by panic · 9y ago · 287 comments

comment 9y ago · link · parent

This thread from a few years ago is worth a look: https://news.ycombinator.com/item?id=7602237

2155.

Unix System Call Timeouts(eklitzke.org ↗)

76 points · by panic · 9y ago · 63 comments

2156.

So You Want Continuous Time Zones(qntm.org ↗)

2 points · by panic · 9y ago · discuss

2157.

To save democracy, we need new economic metrics(citymetric.com ↗)

3 points · by panic · 9y ago · discuss

2158.

A Digital Clock in Conway's Game of Life(codegolf.stackexchange.com ↗)

10 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Saved you a click: the country is Sudan. (Maybe a title like "Sudan: Africa's most misunderstood country" would be better)
1
717273
120