Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 8y ago · link · parent

> I've spent some time wondering what a social network might look like if it was explicitly built around the idea of people managing multiple public profiles, and keeping the connection between them private.

Twitter supports this, though it's not explicitly built around it. Lots of people have multiple Twitter accounts, and some third-party clients like TweetDeck support multiple logged-in accounts at once.

1442.

Xenographics(xeno.graphics ↗)

1 points · by panic · 8y ago · discuss

1443.

A sketch of string unescaping on GPGPU(raphlinus.github.io ↗)

73 points · by panic · 8y ago · 7 comments

comment 8y ago · link · parent

I think this is really the heart of it -- if you're working on a product together, all you have to worry about is whether your work is improving the product. You can get other people to help you as long as it also helps the product. It's a lot easier to be productive when you don't have to worry about whether team X will be on board or whether executive Y will like what you're doing.

1445.

Building games that can be understood at a glance(stfj.net ↗)

220 points · by panic · 8y ago · 61 comments

comment 8y ago · link · parent

Jones Forth: http://git.annexia.org/?p=jonesforth.git;a=blob_plain;f=jone...

There was some discussion of it here a while ago: https://news.ycombinator.com/item?id=942684 (though unfortunately the site is now dead)

comment 8y ago · link · parent

How would a keyboard like this detect simultaneous key presses? It seems like you'd either see only the lower-resistance key (if the resistances are orders of magnitude apart) or end up with a completely nonsense value.

1448.

The Great Theorem Prover Showdown(hillelwayne.com ↗)

150 points · by panic · 8y ago · 22 comments

1449.

A Billion Dollar White Elephant and a Community Destroyed (2009)(pbase.com ↗)

3 points · by panic · 8y ago · discuss

comment 8y ago · link · parent

I think most people do care about privacy, but they're not being given much of a choice here. Their friends are on Facebook, so the only way to share pictures with all of them is through Facebook.

comment 8y ago · link · parent

This other post from the same blog gives some more concrete background on why this sort of structured concurrency is a good idea: https://vorpus.org/blog/some-thoughts-on-asynchronous-api-de...

comment 8y ago · link · parent

Yeah, I think the question of what we should optimize for is the fundamental problem here. There's really nothing called "human wellbeing" that can be maximized. Everyone has different perspectives, values, goals, ideas, dreams, and so on. It's impossible to turn all these ways of seeing the world into a working system without involving the people themselves, especially given how people's perspectives change over time.

comment 8y ago · link · parent

Our human desires and values are the whole point of the system, though. Anyone designing a "political economy" should treat the experience of the people living in it as the most important thing -- abstract concepts like "efficiency" are ultimately just ways to affect that experience.

comment 8y ago · link · parent

> Uhm, no. It just means that people are hovering over links with their mouse. It does not imply any opinion about the previews.

When you evaluate features using engagement metrics, there are only two possibilities. If the metric is high, users love the feature. If the metric is low, users don't know the feature exists, and more alerts or "unread" badges must be added to help them learn.

1455.

Telescript and Magic Cap(datarover.com ↗)

1 points · by panic · 8y ago · discuss

1456.

The Distributional Effects of Minimum Wages [pdf](census.gov ↗)

2 points · by panic · 8y ago · discuss

comment 8y ago · link · parent

Here's another post which goes into more detail about the mapping from Turing machines to sets of Wang tiles: https://moyix.wordpress.com/2012/04/06/computing-with-tiles/

comment 8y ago · link · parent

You're right, I didn't word that very clearly. I meant "more strings contain this substring", not "this substring occurs more times total" (which, as you say, would be the usual meaning of "matches happen more frequently").

Why care about strings containing a particular substring versus total number of occurrences? The article referenced this PDF: https://www.cs.cornell.edu/~ginsparg/physics/INFO295/mh.pdf, which is about how many coin flips it takes to see a run of N heads. That's really what the argument in the second half of my post is about, but it applies to the "how many strings contain this substring" problem too, and that one seemed simpler to draw a table for.

comment 8y ago · link · parent

Yeah, you can see finite automata explicitly used in the PDF that's linked in the article itself: https://www.cs.cornell.edu/~ginsparg/physics/INFO295/mh.pdf

comment 8y ago · link · parent

Sure, but the question is "how likely" not "how many times". Counting the expected number of times is a much easier problem because you can use the linearity of expectation.

comment 8y ago · link · parent

> We're looking for a specific sequence, though, not a specific number of heads in a row. We don't even know what the sequence is since it hasn't been sent yet. Is that a problem? Not at all! We're looking for some sequence of length n, and given that both 0 and 1 are equally likely, the sequence 00110 is equally likely as 11111.

Interestingly enough, this isn't true!

First, let's test on a small example: how likely are the substrings "11" and "10" to appear in binary strings of length 3? Here's a table with the matches marked.

        "11" "10"
    000
    001
    010        *
    011   *
    100        *
    101        *
    110   *    *
    111   *
"10" can appear in four ways, but "11" can only appear in three. Why is this?

Say you're scanning through a bit string, looking for "11111". You've seen "111" so far -- that's three matches. Now you encounter a "0". Your counter resets to zero matches until you see a "1" again.

Now say you're looking for "00110". You've seen "001" so far. Just like before, you encounter a "0". You still need to reset your counter, but this time the "0" may actually be the start of a new "00110". So your counter resets to one, not zero. This means "00110" matches are easier to find, and happen more frequently!

comment 8y ago · link · parent

Wouldn't a proof-of-time scheme have a bootstrapping problem? You need some way to unforgeably (and fairly) generate your Bitcoins before anyone will care to trade them with you.

comment 8y ago · link · parent

That example is initialization code, but you'd run into the same problem even if the control were already initialized (and you were trying to set new properties on it). In that case, you'd likely have a borrowed pointer, so it wouldn't be dropped when the panic happened.

comment 8y ago · link · parent

The button has to exist after leaving the scope, since the whole point is to create it and add it to the window. It can't remove itself when the function returns.

You could make this general idea work, though, by adding a "button.commit();" at the end of the function. The button destructor would remove itself unless commit() had been called -- basically an ad-hoc transaction on the level of a single button.

comment 8y ago · link · parent

Say you have some code like,

    auto button = Button::create();
    window.addSubview(button);
    button.setLabel("test");
    button.setAlignment(Alignment::TOP_LEFT);
    button.sizeToFit();
If setLabel() throws an exception, you'll end up with a half-initialized button in the view hierarchy.

For exceptions to work predictably, all mutation within a try-catch block should be captured in a transaction that can be rolled back. Then you don't need to worry about each function possibly throwing an exception. Either the entire block commits its changes, or it's as if the entire block didn't happen at all.

comment 8y ago · link · parent

There's more to the web than HTML, though. Most new web standards are developed through W3C working groups.
1
484950
120