Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seabee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
32 ms
·
271.
▲
by
seabee
14y ago
> faster with an if(b){str1}else{str2} I'm not aware of any compiler that optimises such a structure to avoid branch misprediction. An array of two strings might require more bits and ops in an unoptimised interpreted language, or one i
272.
▲
by
seabee
14y ago
Actually I think the feature is primarily for SEO purposes, since the alternative is to have the article ID only.
273.
▲
by
seabee
14y ago
> Some approaches are NOT acceptable, it's not about optimizing prematurely, it's about coding obvious crap. And yet we miss the simple, efficient answer? isEven = 1 rowClasses[] = { 'odd', 'even' } loop isEven = 1
274.
▲
by
seabee
14y ago
Conversely: if you can do something with a branch that's correctly predicted 90% of the time it'll be just as fast as 10 non-branching ops. Branch prediction is a tool like any other - don't neglect it when it can help you.
275.
▲
by
seabee
14y ago
The link exactly describes (for it is) Google Wave.
276.
▲
by
seabee
14y ago
Honestly I never had a problem reading my Desire HD (plain LCD display) outdoors in noon sunshine, although it did need full brightness which isn't great for battery life.
277.
▲
by
seabee
14y ago
I've probably remembered something wrong here, nevertheless the centres of all adjacent hexagons are of equal distance to the centre of the central hexagon. In contrast, a square sharing one vertex (diagonally adjacent) with the central squ
278.
▲
by
seabee
14y ago
Hexagons do have the benefit of being isotropic, however.
279.
▲
by
seabee
14y ago
Give it time...!
280.
▲
by
seabee
14y ago
The main duties of the Lords are to impart wisdom and delay bills. On the whole this is a good thing, and it is unclear what benefits will come from being democratically elected.
281.
▲
by
seabee
14y ago
Anecdotally you can do this many places in the UK, too. Don't have to wait for them to get the payment processor machine either!
282.
▲
by
seabee
14y ago
In other words, the value of service is a function of the cost of the items. The supposed transparency of tipping is tainted by the opaqueness of everything else...
283.
▲
by
seabee
14y ago
I remember using this in MSVC 6 - so at least 14 years ago.
284.
▲
by
seabee
14y ago
His point is a spell checker wouldn't have helped here!
285.
▲
by
seabee
14y ago
> And cookbook recipes are copyrightable Are you sure about that? http://www.copyright.gov/fls/fl122.html The parts which make it a recipe are not copyrightable. That is analogous to comments in source code, I think...
286.
▲
by
seabee
14y ago
In implementation terms the main function isn't special, but its prototype is part of the C specification: http://groups.google.com/group/comp.std.c++/browse_thread/th...
287.
▲
by
seabee
14y ago
Or VPN through a server located outside the UK. As far as I know this is dealt with on a case-by-case basis (i.e. just these ISPs and just TPB) because it's a civil matter - the govt would need to make a new law to force all ISPs to block T
288.
▲
by
seabee
14y ago
Surprisingly difficult to find an arc interrupter in the UK. I found a link [0] which might shed some light on that; essentially the characteristics/problems of a 240v grounded system are different to a 110v, predominantly 2-pin system. [0]
289.
▲
by
seabee
14y ago
The difference is farmed poultry isn't an environmental concern (well, the waste they produce is, but not the birds themselves).
290.
▲
by
seabee
15y ago
Article's changed now - the BBC quite often make adjustments to the text after it's first published.
291.
▲
by
seabee
15y ago
I think the grandparent meant to suggest GPL is small-c communist.
292.
▲
by
seabee
15y ago
How many raw non-compressed binary streams do you need to deliver? Most assets a Web page requires are textual (CSS/JS) or already compressed: images, video, Flash content...
293.
▲
by
seabee
15y ago
Whether anti-competitor lobbying goes on regularly is also a moot point. Being an MEP does not disqualify you from disliking parts of or associated with the EP. As an extreme example, the UK Independence Party (who want to leave the EU) hav
294.
▲
by
seabee
15y ago
I think there's room for both. Firefox is pretty popular precisely because of all the things it can do. In any case, modern TVs suck at doing either of these things. I wouldn't mind which way they go as long as they do one of them.
295.
▲
by
seabee
15y ago
You'd probably be inclined to cheat if your business had the most-viewed web page in the (Western?) world.
296.
▲
by
seabee
15y ago
When you have bills to pay, having to deal with the worst case is not a fun prospect.
297.
▲
by
seabee
15y ago
I know you're being facetious, but realistically the vast majority of websites can be designed to display on lower-resolution displays. It's not a fun experience to read text by scrolling in a Z pattern.
298.
▲
by
seabee
15y ago
And why do you think he's the lead developer? :) Not out of the goodness of his heart, I should imagine.
299.
▲
by
seabee
15y ago
Not to my knowledge, but similar approaches have existed for a long time now e.g. RSA SecurID [0]. One day I'm going to set up my Yubikey to perform a similar purpose, but my motivation levels correlate with my paranoia :) [0] http://www.r
300.
▲
by
seabee
15y ago
The problem we're dealing with is not understanding the mechanics of what's going on, but of the legality of it. That's why we reach for the metaphors: to relate it to something that has legal precedence.
More ›