Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 6y ago · link · parent

It's hard to believe that report when it doesn't name any of the people or organizations they met with. As far as I know, the protesters don't have any leaders that could negotiate on their behalf.

comment 6y ago · link · parent

The police could stop the protests instantly by changing how they deal with racist officers and officers who kill people. They would rather escalate the situation than make these changes.

753.

Where Did Software Go Wrong?(blog.jse.li ↗)

7 points · by panic · 6y ago · discuss

754.

The Infinite Heartbreak of Loving Hong Kong(thenation.com ↗)

12 points · by panic · 6y ago · 1 comment

comment 6y ago · link · parent

Dealing with Google these days seems a lot like dealing with an authoritarian government. To operate safely on Google's platforms, you need a friend who works at Google who can vouch for you as their over-eager police keep trying to put you in jail.

comment 6y ago · link · parent

Jean Yang made a great analogy here: https://twitter.com/jeanqasaur/status/1262833050473259009

> Programming languages researchers are like fashion designers and "research languages" like Haskell and Idris are like runway looks. Nobody expects people to go around snakes on their bodies. They're pushing the boundaries of art and science and showing what's possible.

And just like in fashion, the runway looks eventually change what people are wearing. Rust’s memory management would never exist in its current form if Cyclone hadn’t already shown it was possible.

comment 6y ago · link · parent

I just wish these large organizations would be held accountable for failing to perform the single task we rely on them to do. The College Board has one job -- to administer exams. Experian has one job -- to keep financial data. But when they screw up this single job in a fundamental way, nothing seems to happen to them.

comment 6y ago · link · parent

I can't believe anyone is still considering $HYPED_TECHNOLOGY in $CURRENT_YEAR. We at $NO_PROFIT_STARTUP gave it our best shot, but the bugs they mention aren't as small as they seem -- they completely sank the project. At this point it's clear that $HYPED_TECHNOLOGY is falling behind on both adoption and ergonomics to $TRENDY_TECHNOLOGY, which handles these issues in a much cleaner and more scalable way. We'd strongly suggest anyone considering $HYPED_TECHNOLOGY to take a closer look before following the advice in this post.

759.

All I Want for Christmas Is a Revolutionary Apple TV (2017)(tolmasky.com ↗)

1 points · by panic · 6y ago · discuss

comment 6y ago · link · parent

Another helpful meta tag is

    <meta charset=utf-8>
Without this, your document may be interpreted using an implementation-defined ASCII-like encoding (e.g., windows-1252 for English-speaking locales) if served without a Content-Type.

comment 6y ago · link · parent

The constitution guarantees a right to vote; laws against returning other people's ballots have been found unconsitutional on those grounds: https://apnews.com/d6b75b7a1c2da695d756cb4e864cd2b8 (full opinion if you're curious: https://cdn.ca9.uscourts.gov/datastore/opinions/2020/01/27/1...)

762.

We Need to Talk About Digital Contact Tracing(ali-alkhatib.com ↗)

2 points · by panic · 6y ago · discuss

comment 6y ago · link · parent

The section of the WHATWG HTML spec about parsing XHTML begins with this note:

> An XML parser, for the purposes of this specification, is a construct that follows the rules given in XML to map a string of bytes or characters into a Document object.

> Note: At the time of writing, no such rules actually exist.

What do the authors of HTML mean by this? Isn't there a spec for XML? There is -- here's what it has to say about comments (https://www.w3.org/TR/xml/#sec-comments):

    Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'
The HTML spec, on the other hand, writes out the token state machine explicitly. There are ten states involved with parsing comments; here's one (https://html.spec.whatwg.org/multipage/parsing.html#comment-...):

    12.2.5.45 Comment state
    
    Consume the next input character:
     U+003C LESS-THAN SIGN (<)
      Append the current input character to
      the comment token's data. Switch to
      the comment less-than sign state.
     U+002D HYPHEN-MINUS (-)
      Switch to the comment end dash state.
     U+0000 NULL
      This is an unexpected-null-character
      parse error. Append a
      U+FFFD REPLACEMENT CHARACTER
      character to the comment token's data.
     EOF
      This is an eof-in-comment parse error.
      Emit the comment token. Emit an end-
      of-file token.
     Anything else
      Append the current input character to
      the comment token's data.
The spec defines what to do for every character, even characters that should not appear in valid HTML. An HTML parser will behave exactly the same as another HTML parser in all circumstances.

You can see the success of this approach on the real web; inconsistent HTML parsing between browsers is no longer the issue it used to be 15 years ago. It may be more work to write, but I wish HTML's precise, step-by-step format was more common. Writing a spec as a list of rules makes it easier to implement (as a first pass, you can just go line-by-line and translate it to code) and reduces the chance of inconsistencies like the one in the article (and their associated security implications).

comment 6y ago · link · parent

How people live isn't entirely their own decision -- it's also determined by the world they're a part of. We've given profit-seeking systems a lot of control over how this world is structured.

765.

Pandemic, Parents, and Schools(siderea.dreamwidth.org ↗)

3 points · by panic · 6y ago · discuss

766.

Let’s Invent B(+)-Trees(shachaf.net ↗)

420 points · by panic · 6y ago · 69 comments

comment 6y ago · link · parent

This is an interesting argument! Wouldn't it also work for positions, though? That is, either the universe is finite, or, since there can't be a uniform distribution over an infinite space of positions, there must be some preferred "center" of the universe?

768.

Myths about USB NKRO and how USB HID works(devever.net ↗)

118 points · by panic · 6y ago · 59 comments

769.

Custom Game Engines: A Small Study(gist.github.com ↗)

390 points · by panic · 6y ago · 175 comments

1
252627
120