Better HN
topnewbestaskshowjobs
Log inSign up

brokenparser

3,510 karma · joined Aug 4, 2012 (14y ago) · 569 submissions

Submissions

comment 13y ago · link · parent

it seems to have been uncommon until recently for internet protocols to come from vendors

Sorry, that's been going on for quite a while now. Cases in point: http://tools.ietf.org/html/rfc3768 http://tools.ietf.org/html/rfc5077 http://tools.ietf.org/html/rfc2637 http://tools.ietf.org/html/rfc2281 (these are just examples, there are many more citing Cisco, Microsoft, Nokia, Google, etc.)

comment 13y ago · link · parent

HTTP is not fixed and is in fact very flexible. And even if it were fixed, that doesn't make it broken and certainly doesn't mean you get to replace it with a binary protocol. They don't compare.

comment 13y ago · link · parent

Allright, if you're so inclined...

1. It definitely is an argument and in fact my main argument. At least explain how this would be any less valid than your "it's a hack" and (bandwagon) "wave of the future" arguments.

2. My turn to invoke "not an argument". Just because one can simply copy a struct over a socket doesn't mean it's a good idea to do so. Especially in light of the flourishing culture of diversity we have on the Internet.

3. You conveniently choose to ignore one half of the argument, but miss it entirely. The point is not that we can't overcome endianness mismatch, it's that we shouldn't have to. At least not inside layer 7.

4. Except the old records will have to remain there forever. HTTP implementations dropped the Pragma header a long time ago and today we can simply pretend it was never there.

5. When it comes to common sense, ASCII is right there. That's because a protocol on the Internet needs to interoperable with many systems. Sure, all of those systems use binary one way or another. But human operators are still going to have to program those systems and ASCII is a useful representation which enables us to do just that. Furthermore, the draft proposes to encode binary headers in base64 in order to transfer them in an HTTP/1.1 upgrade request. Now you have 3 ways of transferring HTTP headers instead of just one and we'll have to support all of them in any case. This might seem trivial to you, but it's a problem to servers and quite a huge one at that for intermediaries (proxies).

6. Amending HTTP with a new header again is much less a hack than providing a way to switch to a binary protocol and resume communications from there. Your buggy argument doesn't stand, for HTTP is not the car. It's the pavement upon which old buggies can ride along just fine until it's no longer considered safe amongst the faster carriages.

7. Yes, I'm not convinced client-provided request identifiers are the way forward myself. Though I would consider the proposal a better starting point for discussions than the current HTTP/2.0 draft because it leverages existing mechanisms better.

comment 13y ago · link · parent

That's useful for RPC type protocols, but HTTP isn't RPC based and it has lots of semantics written in English. I think it's better that way because it allows for a greater variety of use cases and implementations. You can still do RPC with websockets, if that's what you want.

comment 13y ago · link · parent

A binary protocol is bad for a couple of reasons, too.

First, OSI layer 6 called and it wants its old job back. It sat around connecting layers 5 and 7 peacefully since the dawn of the ARPANET, all while the HTTPbis guys were passing around messages back and forth trying to obsolete it.

Second, you can't type a binary protocol. Yet, you have to somehow make the server work without a client or vice versa (for the initial implementation). That's going to be a lot more difficult. With HTTP, you could literally hook up a teletype to the Internet, let it print incoming requests and type the response back to the user agent. I've done this occasionally on a terminal emulator for debugging purposes.

Third, the Internet is big-endian while most common processors in use today are little-endian. This is going to haunt peoples lives forever because you have to continuously convert between the two and although the conversions are orthogonal, the methods aren't idempotent (as opposed to converting a string to ASCII, or a text buffer to DOS style line endings).

You mention 32-bit identifiers as opposed to a string of digits. This is more error-prone than you think, two's complement isn't the only integer representation out there. Implementations written in C would have to deal with their underlying architecture as the standard allows for 3 different representations (so the compiler wouldn't help you out). Then there's signed and unsigned, either of which might not be available in the implementers programming language. You end up unpacking the identifier by hand, which may end up being slower than just looping through a string. ASCII is hardly an inefficient serialisation format.

Fourth, any fixed-length records are going to be useless at some point in the future. Several versions later the fixed length records are going to either point to an extra set of records tailing the 2.0 records or will simply have a (designated) backwards compatible value for consumption by older peers. With HTTP, we can add a header anywhere in the request or response except for the very top. We can even shuffle them at will without adverse effects on peers.

Fifth, it doesn't make sense to optimise a tiny fraction of the entire HTTP session. Any benefits are too small to be worthwhile and would therefore result in a net-negative to most implementers.

Sixth, you can still make improvements to HTTP without moving to a binary protocol. Not sending the same headers on every single request isn't one of them. HTTP is essentially a stateless protocol and every request could be handled by a different server. You can architect clusters of servers routing incoming requests however you please and satisfy every one of them correctly and efficiently. For starters, you can replace any underlying protocol in the stack with a more cluster-friendly protocol in transit.

Seventh, just because no one is using a given content type in HTTP (I think you were referring to multipart/related) doesn't mean the protocol used to transfer that content is bad. Heck, it's not even part of any HTTP standard.

396.

‘1984 not instruction manual’: Thousands protest NSA spying across US(rt.com ↗)

3 points · by brokenparser · 13y ago · 1 comment

comment 13y ago · link · parent

That's Augeas. ( http://augeas.net/ ) It takes some getting used to (some files are much easier to manage with plain old sed), but it's quite a cool and useful tool. Puppet and Kickstart are good use cases.

comment 13y ago · link · parent

Putin is a former KGB agent and not to be trusted. We know that from the leaked cables.

comment 13y ago · link · parent

Well, I still wouldn't be able to reopen the bug on a hand-waving comparison between two unrelated software projects. Also, I'll have it known that I love Eclipse and think it's way better than IntelliJ. I know that's not a very popular opinion around these parts, but still.

comment 13y ago · link · parent

Also, a new engine is being built which goes by the name Servo. Mozilla, Samsung and independent contributors from the open source community are actively working on it. Git: https://github.com/mozilla/servo

comment 13y ago · link · parent

Status: CLOSED WORKSFORME

(This is a tough one to debug, perhaps if Firefox had a pixel perfect Chrome theme it'd work for you?)

comment 13y ago · link · parent

Looks neat but it's taking forever for someone else to join.

comment 13y ago · link · parent

    Dear Firefox,
    
    Please don't.
    
    Sincerely,
    the Internet

comment 13y ago · link · parent

Firefox can't do anything to prevent a plugin from crashing. That and I'd wager most of the Flash movies are very poorly coded, resulting in exceptions that could've been prevented. You can tell by browsing the web with a debug build of Flash.

comment 13y ago · link · parent

Except for the bookmarks window. Can you elaborate?

comment 13y ago · link · parent

The one I use is not on the list. Good!

comment 13y ago · link · parent

Why not use a QR code to link the mobile device with the form instead of/in addition to SMS?

comment 13y ago · link · parent

Wine ain't bullshit, they finally managed to release a version which runs AoE2 with readable fonts! Lots of applications are working just fine, often the only thing that's broken is the copy protection scheme (they do nasty shit like installing device drivers).

409.

The chilling effects of surveillance(aljazeera.com ↗)

7 points · by brokenparser · 13y ago · 1 comment

comment 13y ago · link · parent

I asked if I'm on a shitlist and it said I'm an Al Queda associative force. I'll take that as a yes.

comment 13y ago · link · parent

Well, he's definitely "off the radar" now.

comment 13y ago · link · parent

Alt+Shift select in Sublime Text (and Esc to cancel).

413.

CIA faulted for choosing Amazon cloud over IBM(brisbanetimes.com.au ↗)

34 points · by brokenparser · 13y ago · 11 comments

414.

The NSA can store communications of US citizens for up to 5 years, sans warrant(thenextweb.com ↗)

282 points · by brokenparser · 13y ago · 59 comments

415.

Google and privacy: European data regulators round on search giant(guardian.co.uk ↗)

1 points · by brokenparser · 13y ago · discuss

comment 13y ago · link · parent

Editors which treat indentation spaces as tabs only do that some of the time, which is annoying because it's inconsistent. There's also no need to "experiment with configurations", that's just a load of crap. Just put a line at the top or bottom of every file with the settings needed for that particular file. You don't even need a specific editor, there are plug-ins available for most IDEs and editors to read emacs or vim modelines. Anjuta supports both out of the box.

417.

By David Simon's Own Logic, NSA Surveillance Should Alarm Him(theatlantic.com ↗)

1 points · by brokenparser · 13y ago · discuss

comment 13y ago · link · parent

GMemcachePG

comment 13y ago · link · parent

Not necessarily, in PostgreSQL you could simply add a canonicalised index.
1
131415
19