Better HN
topnewbestaskshowjobs
Log inSign up

panic

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

Submissions

comment 16y ago · link · parent

A mutex is more than that. That's the entire point of the article. A mutex implementation needs to deal with issues like priority inversion, where higher-priority threads continually interrupt a lower-priority thread holding a naively-implemented mutex, starving any other thread (even a high-priority thread) that needs the resource it protects.

3482.

Time Makes Things Worse(artlebedev.com ↗)

4 points · by panic · 16y ago · discuss

comment 16y ago · link · parent

You mean cache invalidation, naming things, and off-by-one errors?

comment 16y ago · link · parent

Francisco Tolmasky (of 280 North / Cappuccino fame) had an insightful blog post about this subject:

But let’s get to the real issue here, because this is once again a misunderstanding of design vs. programming. HTML, JS, and CSS do not magically create wonderful experiences on every platform they are run. As you can see from the above screenshot, they certainly have the nice side effect of working on said platforms, but if you’re expecting HTML to somehow handle the subtle and explicit differences between a handheld multitouch peripheral and a desktop application, well then you’re doing it wrong. These are completely different environments and they require completely different designs and often implementations.

http://www.alertdebugging.com/2009/11/04/mockingbird-cappucc...

comment 16y ago · link · parent

I bet we're going to feel the same way when we figure out how our brain works.

comment 16y ago · link · parent

The Seed Media Group has a similar sort of parametric logo: http://www.sagmeister.com/worknew7.swf

comment 16y ago · link · parent

If you embed an image in an HTML email, you can find the IP of the machine in your server logs (when the email client requests the image from your server).

comment 16y ago · link · parent

The system doesn't have to be automatic. It could look for a list of possible duplicates by ignoring the query string, then show them to the user if the list is shorter than some threshold.

comment 16y ago · link · parent

It's not built in, but there's an application called ViewFrame[1] that lets you view and modify the system as it's running.

[1] http://pobox.com/~JasonHarper

comment 16y ago · link · parent

All startup ideas persistently fail — until they don't. Maybe it's not the idea that failed, but the implementation?

comment 16y ago · link · parent

In the first picture, the weight pulls down with 1kg of force, and the ceiling pulls up with 1kg of force. If it didn't, there would be an imbalance, causing a net acceleration downwards.

In the second picture, the first weight pulls rightward with 1kg of force, and the second weight pulls leftward with 1kg of force. The situation is exactly the same as the first, except with gravity providing the second force rather than the inter-molecular bonds responsible for maintaining the rigidity of the ceiling.

comment 16y ago · link · parent

I know it's fun, but please don't do this. Pun threads are malignant growths. They're easy to reply to, since each individual pun doesn't take a lot of thought. Most upvotes are given out sparingly, for interesting or insightful comments, but everyone involved in a pun thread votes up the rest of the comments in the thread. This leads to a self-perpetuating cancer with no real meaning or value to anyone but its contributors.

comment 16y ago · link · parent

I'm glad somebody went and did this. Fundamentally, humans structure their social relationships in terms of groups, though the groups may not have names or be disjoint, and membership may not be binary. I think you guys are on the right track.

The biggest question I have is, how do you get people into your site in the first place? I would love to use The Fridge, but if my friends don't, what's the point?

comment 16y ago · link · parent

It would be really neat if this were interactive — that is, if you could paint on the modern image to reveal the 1940s image underneath.

comment 16y ago · link · parent

http://i.imgur.com/39U4k.png

This is an image representing an average-length human life; each box is one month.

comment 16y ago · link · parent

LLVM's clang uses a recursive-descent parser to parse C, ObjC, and C++ (http://clang.llvm.org/features.html#unifiedparser).

Clang is the "C Language Family Front-end", which means we intend to support the most popular members of the C family. We are convinced that the right parsing technology for this class of languages is a hand-built recursive-descent parser. Because it is plain C++ code, recursive descent makes it very easy for new developers to understand the code, it easily supports ad-hoc rules and other strange hacks required by C/C++, and makes it straight-forward to implement excellent diagnostics and error recovery.

comment 16y ago · link · parent

Apple's Core Foundation data structures do this sort of "usage-based implementation selection," though in a much simpler context: (see e.g. http://ridiculousfish.com/blog/archives/2005/12/23/array/). I'm not sure why this technique isn't more widespread.

3498.

The Unreliable State Machine(blog.andymatuschak.org ↗)

5 points · by panic · 16y ago · discuss

comment 16y ago · link · parent

This is really great; I'd love to see an iPhone app!

comment 16y ago · link · parent

Apple is sponsoring the development of MacRuby. It's not sponsoring pypy or Haskell LLVM backends.

comment 16y ago · link · parent

IE 10 or 11 will probably be able to render this example correctly.

It won't. The demo uses -webkit-gradient, -webkit-box-shadow, -webkit-border-radius, -webkit-box-reflect, -webkit-transform, and -webkit-animation. Of course, it might be able to render it correctly when the "-webkit-" prefix is removed. But for now, demos like this are necessarily browser-specific.

comment 16y ago · link · parent

See earlier discussion at http://news.ycombinator.com/item?id=1438299

3503.

Startup Lessons Learned: No departments(startuplessonslearned.com ↗)

11 points · by panic · 16y ago · discuss

comment 16y ago · link · parent

There's also http://www.reddit.com/r/coding/ and http://www.reddit.com/r/compsci/ (and most likely more).

comment 16y ago · link · parent

Interesting article, but without actual numbers it's hard to tell whether the change made any difference in performance.

comment 16y ago · link · parent

You could even trivially convert it to XML and use XSLT, if you were silly enough. But Lisp is directly executable, so you could simply make the tag names functions that automatically transform themselves. It'd be a lot easier than using XSLT, and less than a tenth the size.

And now anyone who can modify your log can execute arbitrary code in the reader process…

comment 16y ago · link · parent

Nobody mentioned the unrolled linked list, a simple, useful, and often-overlooked data structure.

http://en.wikipedia.org/wiki/Unrolled_linked_list

The idea is the same as a linked list, but instead of just one element in each node, it stores an entire array. This simple change fixes the two biggest problems with linked lists — memory overhead and cache efficiency. It's also easy to tweak to be more "array-like" or more "list-like" as needed.

comment 16y ago · link · parent

They originally gave themselves 3 months -- that's a vanishingly small amount of time to produce any kind of fully working product.

The first revision of Facebook (then Thefacebook) was written in about one week, IIRC.

comment 16y ago · link · parent

Why not just read the (draft) script? http://wiscreenwritersforum.org/wp-content/uploads/2010/01/S...
1
116117118119120