Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

1921.

WebAssembly cut Figma’s load time by 3x(blog.figma.com ↗)

22 points · by panic · 9y ago · discuss

1922.

Today in Berlin: June 7 1802 or Little Spots in History(kreuzberged.com ↗)

3 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

A machine learning model is used to classify which top privately-controlled domains have the ability to track the user cross-site, based on the collected statistics. Out of the various statistics collected, three vectors turned out to have strong signal for classification based on current tracking practices: subresource under number of unique domains, sub frame under number of unique domains, and number of unique domains redirected to.

What's preventing ad networks (or whoever this is meant to protect against) from gaming this system?

comment 9y ago · link · parent

And there's a paper describing the technique coming soon: https://twitter.com/EricLengyel/status/872362370689097732

1925.

Can’t see the FOUR-est for the trees(gigamonkeys.com ↗)

1 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Another Algol-style language with a macro system in this vein is Honu (https://www.cs.utah.edu/~rafkind/papers/dissertation.pdf). It goes slightly further, allowing macros to do things like define new infix operators, and its layered approach (with an "enforest" step interleaved with parsing) is worth a look.

comment 9y ago · link · parent

Many Americans don't understand how their government works -- you can't expect a president to be able to change things on their own. I agree with former Supreme Court Justice Souter's criticism here of civic education in this country: https://www.youtube.com/watch?v=rWcVtWennr0. Schools and the media ought to focus less on the office of the president and more on the actual operation of the government, including the behavior of our representatives in Congress.

comment 9y ago · link · parent

You're probably right, but I think it's important to note the difference between Touch ID (a user feature) and ARKit (a developer feature). Users won't know or care about ARKit if developers don't adopt it.

comment 9y ago · link · parent

Most apps these days run on Android, too, which makes using a single-platform framework like this a lot harder to justify. It's the same reason you don't see many games using SpriteKit -- it just doesn't make sense when you know you'll need to support Android in the future.

I wonder if it would make sense for Apple itself to support frameworks like ARKit and SpriteKit on Android. I think it would make people a lot more comfortable relying on them.

comment 9y ago · link · parent

The Atlas project itself has some interesting stuff, including a custom programming language (http://www.liegroups.org/software/documentation/atlasofliegr...) with parts written in literate C++ (e.g. https://github.com/jeffreyadams/atlasofliegroups/blob/master...)!

1931.

Google Brain Residency(tinyclouds.org ↗)

3 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

I was just speaking to the part about being a "violent criminal living in a violent neighborhood" -- that doesn't justify shooting someone.

Typically in these cases the victim wasn't threatening the police officer's life in any way. Walter Scott was shot while running away. Freddie Gray was already safely in police custody. Eric Garner was selling loose cigarettes, not attacking anyone. Tamir Rice was a 12 year old playing with a toy gun.

comment 9y ago · link · parent

It doesn't matter whether they're violent criminals. Our country has a court system. The role of judge, jury and executioner does not belong to police officers.

1934.

Planning – The Core Reason Why Gameplay Feels Good(frictionalgames.blogspot.com ↗)

1 points · by panic · 9y ago · discuss

1935.

Relaxed Revocable Locks: Mutual Exclusion Modulo Preemption(pvk.ca ↗)

3 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

I have never understood why people think that if someone has something means they don't need more of it.

Because almost everything in life works this way. Once I have a place to live, I don't need to find a second one. Once I've eaten enough food to be full, I don't need to keep eating. Maybe by buying enough clothes you can avoid doing laundry, though…

comment 9y ago · link · parent

Yep! I have also been pointed at this PhD thesis: https://www.cs.utah.edu/~rafkind/papers/dissertation.pdf which defines a macro system on a uniform Algol-like syntax with intermediate "reading" and "enforestation" phases and corresponding syntax representations (the "read" representation being pretty much the same as the token tree representation here).

comment 9y ago · link · parent

The concept of a "token tree" as a separate stage between ordinary tokenization and full parsing seems interesting on its own: was it based on another system or invented for Rust? For example, you could imagine implementing incremental parsing by writing your parser as a transformation on a token tree.

1939.

Walmart is training employees with a Black Friday VR simulator(theverge.com ↗)

3 points · by panic · 9y ago · discuss

comment 9y ago · link · parent

Awesome, thank you for the super fast response!

comment 9y ago · link · parent

I'm seeing the same thing. It looks like the app is calling -[UITraitCollection forceTouchCapability], which isn't available on iOS 8.

comment 9y ago · link · parent

This topic is covered in a sidebar in the chapter: allowing the top level to be list of statements instead of declarations means that each function definition must happen in order. Otherwise you can end up with troublesome code like this:

    function f() { g() }
    f()
    var x = read_user_input()
    function g() { print x }
Static languages typically don't allow the calls to f() and read_user_input() -- maybe that's the right answer here. There are other answers that come to mind as well. But, either way, I don't think we should perpetuate the mistake of dynamic variable lookup.

comment 9y ago · link · parent

This is great writing: very clear and easy to understand!

I feel that dynamic variable lookup is a mistake, though -- it's just so painful to have to wait until runtime to discover you've made a typo. Is supporting mutual recursion really important enough to offset this pain?

comment 9y ago · link · parent

States also have governments which make decisions (like the one being discussed here). That said, the grandparent comment is a massive oversimplification. California itself had tax revenue problems not too long ago.

comment 9y ago · link · parent

The "compiler" here refers to the WebAssembly -> machine code compiler, not the C -> WebAssembly compiler. NaCl used some clever tricks to guarantee the safety of raw machine code.

1946.

How America's Top 20 Percent Perpetuates Inequality(bostonreview.net ↗)

51 points · by panic · 9y ago · 100 comments

comment 9y ago · link · parent

In real fireflies, the individual clocks have slightly different frequencies. The inverse of the protocol is no protocol: stop syncing and let the blinks slowly fall back into chaos.
1
646566
120