Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 10y ago · link · parent

You don't need to use a root solver. If you represent numbers as "a + b sqrt(5)" you can do algebra directly in that space.

comment 10y ago · link · parent

In Haskell you can use Data.Real.Constructible (http://hackage.haskell.org/package/constructible) to compute exactly with arbitrary square roots.

comment 10y ago · link · parent

For a deeper look into the role of cities in society, check out the work of Jane Jacobs: https://en.wikipedia.org/wiki/Jane_Jacobs#Works

comment 10y ago · link · parent

The part where behavior is undefined when you overflow the stack makes alloca difficult to use safely, but it is very nice when you can use it!

Did you write your 6502 code with closures, higher-order functions, and so on? My point is that can be hard to figure out when to free an object in this kind of environment, where a value can be captured by multiple closures and may not have a clear owner.

comment 10y ago · link · parent

Well, when you use a GC, you don't have to figure out where to put the "free" calls. This sounds like a minor thing, but it lets you write code in a very different style (have you ever tried writing a functional program with explicit malloc and free?)

That said, there are other ways to avoid writing "free" than using a garbage collector. Regions (https://en.wikipedia.org/wiki/Region-based_memory_management) are faster at allocation than malloc (you just increment a pointer to allocate) and faster at freeing than a GC (you throw away the entire region when you're done with it). It seems tricky to base a general-purpose programming language around them, though.

comment 10y ago · link · parent

They aren't already broken for the people who rely on them.

comment 10y ago · link · parent

It does seem like a sensible solution, but the web isn't exactly a sensible place. People use terribly-written web sites for all sorts of things that are important to them in their life. Changes that potentially break these sites shouldn't be taken lightly.

comment 10y ago · link · parent

There are more than 1 billion websites. If just 0.1% of sites use target=_blank like that, you'd be breaking a million sites with your change. You can't use arguments like "I haven't seen any of those" or it "seems like a sensible idea" when making decisions like this.

comment 10y ago · link · parent

It seems to me that the bankers were just as necessary to the Irish as garbage workers were to New Yorkers. Why couldn't the people of New York set up their own program for trash disposal just like the Irish set up their own replacement banking system?

comment 10y ago · link · parent

So, Mozilla has already dedicated the necessary resources to handle performance. What are they to do with the rest of their company's resources, and most importantly, what can they do to grow the company?

Mozilla recently jettisoned Thunderbird, its email client, mostly because of its impact on Firefox development (https://groups.google.com/forum/#!msg/mozilla.governance/kAy...). Wouldn't a great native email client be a better way to grow the company than features like this? And shouldn't features be added to make the product better, not just because there are people sitting around with nothing else to do?

2831.

What's wrong with AMQP? (2008)(imatix.com ↗)

2 points · by panic · 10y ago · discuss

comment 10y ago · link · parent

Interesting! I'd love to read more about this connection.

comment 10y ago · link · parent

Farmers have been selectively breeding crops for thousands of years without help from patents.

comment 10y ago · link · parent

What are the arguments against it?

comment 10y ago · link · parent

The free market seems to work pretty well for people with money. The idea of UBI is to give everyone money so it works well for everyone. Is there evidence that these alternatives will do any better?

comment 10y ago · link · parent

To save you a click: the kind of diversity in question is "political or ideological diversity" with a focus on conservative politics and ideologies.

comment 10y ago · link · parent

Graphics on a 1366x768 display end up looking like mush if they're not aligned to pixels. Once everything's higher-res this will be less of an issue, though.

comment 10y ago · link · parent

Recently discussed at https://news.ycombinator.com/item?id=11508313

comment 10y ago · link · parent

How do you know your method works? Have you compared it side-by-side with other methods, including a control where you decide to hire or not completely at random?

comment 10y ago · link · parent

This retraction shows we have to be extra critical of things that reinforce our beliefs. Working as a programmer, it can be easy to believe that some people just aren't cut out for it. That doesn't mean a publication written using official-sounding words and methods that happens to match this belief is true at all.

comment 10y ago · link · parent

Neat idea! The social buttons on the bottom kinda ruin the aesthetic, though (at least for me).

comment 10y ago · link · parent

If "cringe" is a factor in reviewing resumes, you're doing it wrong anyway. Judge people on what they've done, not how they present it.

2843.

Don’t design like a programmer (2010)(uxdesignedge.com ↗)

113 points · by panic · 10y ago · 52 comments

comment 10y ago · link · parent

The problem of software quality is complicated and difficult to reduce to a single set of issues. I don't think anything you've said here contradicts what Seth wrote.

I think he's right, though, that economics is the fundamental problem. We bang out code quickly to meet deadlines measured in months despite the decades-long impact a poor decision can have (see JavaScript for example). When we find ourselves slowing down, we add more people to write more code; why are we surprised when our software becomes bloated?

But if we missed our deadlines too much, we'd lose the market to our competitor, who wrote their software more quickly. And if we didn't hire more programmers, we'd lose again to our competitor, who hired tons of people to add attractive features.

It seems impossible to write good software without losing in the free market. IMO we should be thinking about how to support software projects outside of market-based corporations.

comment 10y ago · link · parent

I'm not able to read the actual research paper, but the article refers to the "United Nations estimates of global forests." I'd assume they used the model they developed for forests and applied it to this estimate to get a number of trees.

2846.

SPMD Is Not Intel’s Cup of Tea(joshbarczak.com ↗)

89 points · by panic · 10y ago · 25 comments

2847.

Performance Culture(joeduffyblog.com ↗)

122 points · by panic · 10y ago · 29 comments

1
949596
120