Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

2941.

The Scope of Unsafe(ralfj.de ↗)

78 points · by panic · 10y ago · 46 comments

comment 10y ago · link · parent

Negative things tend to grab our attention, but the world is actually doing pretty well. The number of people living in poverty has been going down steadily since the 70's, for example.

comment 10y ago · link · parent

Seconded. Metafilter is one of the best-moderated communities out there.

comment 10y ago · link · parent

Why do you think they'll be short lived? Emoji can be more expressive than pure text, and they have a tendency to take on a meaning that can't quite be described in words. For example, a quick thumbs-up is a great way to show you acknowledged something.

comment 10y ago · link · parent

Font atlasing can and does work during pinch-to-zoom: that was the point I was trying to make. You have to generate a new atlas each time you paint, but drawing multiple "e" glyphs from an atlas is much cheaper than rasterizing each "e" individually.

comment 10y ago · link · parent

In a market economy, people are paid just enough so they don't leave. Salary depends more on the typical economic situation of an employee than their ability.

comment 10y ago · link · parent

Lots of short functions are usually worse than a single long function. When you go to figure out what the code is doing, instead of reading through each statement of a single function and understanding it as you go, you keep being interrupted by new functions you have to read and understand. What does "reduceDepositedCoinsBy" do? Yes, I'm sure it subtracts its argument from the deposit amount, but what else does it do? Could it be causing the bug I'm trying to fix? No, it just does the obvious thing, OK, now what does "removeFromInventory" do? And so on…

comment 10y ago · link · parent

The font atlas is definitely still worth it. For example: your comment, which fits in a single browser tile, is made up of 735 drawn glyphs. There are 50 distinct glyphs used (not counting italics because I'm lazy).

Assuming it takes twice as long to draw a glyph into an atlas but half as long to draw it once it's in the atlas, an atlas that starts completely empty will speed up text drawing for your comment by 66% (735 divided by 50 * 2 + (735 - 50) * 0.5, which is 442.5). And this underestimates the savings by a lot (drawing glyphs from an atlas is much more than two times as fast, and some glyphs are probably in the atlas already).

2949.

Alternative mathematical notation and its applications in calculus (2012) [pdf](jakubmarian.com ↗)

4 points · by panic · 10y ago · discuss

2950.

The Same User Interface Mistakes Over and Over(prog21.dadgum.com ↗)

119 points · by panic · 10y ago · 87 comments

comment 10y ago · link · parent

You could use indentation as a heuristic during error reporting. If there's an indentation change without a brace, that's probably where the error is.

comment 10y ago · link · parent

Here's where I got it: http://www.melconway.com/Home/Committees_Paper.html

comment 10y ago · link · parent

As written by the Conway of "Conway's law" in 1968:

As long as the manager's prestige and power are tied to the size of his budget, he will be motivated to expand his organization. This is an inappropriate motive in the management of a system design activity. Once the organization exists, of course, it will be used. Probably the greatest single common factor behind many poorly designed systems now in existence has been the availability of a design organization in need of work.

comment 10y ago · link · parent

It's probably being flagged by users, not admins.

comment 10y ago · link · parent

The simplicity and ease of use of C++ combined with the blazing performance of JavaScript. Truly the best of both worlds!

2956.

Pirate Bay founder's new project shows the absurdity of giving value to copies(torrentfreak.com ↗)

50 points · by panic · 10y ago · 101 comments

comment 10y ago · link · parent

Nice article, but I couldn't pass up a chance to correct Elon Musk's math:

It is important to note that the amount of energy needed to achieve a given velocity increases with the square, so going from 1000 km/h to 2000 km/h takes four times as much energy as going from 0 km/h to 1000 km/h, not twice as much.

Three times, not four--you already spent a quarter of the energy getting to 1000 km/h. Getting the rest of the way to 2000 km/h takes the remaining three quarters.

comment 10y ago · link · parent

The BBC article you linked contradicts your argument:

The rate of infection among UK-born Londoners has risen, while among the non-UK-born it has fallen - and the report said it would be wrong to assume TB was a disease of migrants.

comment 10y ago · link · parent

If enough people care about an ad-free web, it wouldn't have to be a special few: it could be a relatively large group of passionate people.

But that's just one idea. The point is that it's not a dichotomy of low-friction, indirect ads versus high-friction, direct payment. There may be other options.

comment 10y ago · link · parent

You could do indirect payments without ads. For example, say an organization gave grants to ad-free websites based on certain criteria. Some of these criteria could be how much people visit the site or how highly they rank it. Funding could come from people interested in keeping the web ad-free.

2961.

Safe Native Code(joeduffyblog.com ↗)

141 points · by panic · 10y ago · 72 comments

comment 10y ago · link · parent

Expecting your kids to become CEOs is another way to make them feel worthless.

comment 10y ago · link · parent

Becoming a doctor requires years of education and training and along comes this young woman who just decides "I'm going to change all of this."

You don't need to be a doctor to hire doctors. Aren't startups supposed to be all about this kind of disruption by outsiders? People who come along and decide "I'm going to change all of this"?

comment 10y ago · link · parent

This article: http://motls.blogspot.co.uk/2015/12/first-batch-of-9-pheno-p... also mentions that spin 1 is disallowed by the Landau-Yang Theorem. So it's most likely spin 0.

comment 10y ago · link · parent

You should take up Luboš Motl on his bet: http://motls.blogspot.lu/2015/12/a-new-750-gev-boson-is-very...

comment 10y ago · link · parent

Technology is not always positive! Do you think the people who designed and built Room 641A were giving back?

comment 10y ago · link · parent

"Modern" meaning 1999, of course!

It looks like there's some more info and links at https://www.c64-wiki.com/index.php/Graphics_Modes

comment 10y ago · link · parent

He mentions a plug-in API in the second linked post. Enums would be a good solution, but they can't be extended with more cases by a plug-in.

2969.

Limitations of protocols in Swift(inessential.com ↗)

36 points · by panic · 10y ago · 30 comments

1
9899100
120