Better HN
topnewbestaskshowjobs
Log inSign up

nn2

72 karma · joined Dec 28, 2011 (14y ago) · 43 submissions

Submissions

comment 13y ago · link · parent

From the original interview: "The only advantage you had over a newcomer was that you were prepared to read the manual." So true still today. I am always astonished by how much time some programmers are wasting by not reading manuals and how much of a competitive advantage even basic reading comprehension and willingness to do so is.

comment 13y ago · link · parent

Variants of large scale Passive Radar http://en.wikipedia.org/wiki/Passive_radar was supposed to beat first generation stealth. I suppose it's a closely guarded secret if it still does for the more modern systems. This also disrupts the standard tactics of taking out the radars first to let non stealthy planes follow.

comment 13y ago · link · parent

They optimize away unnecessary monitoring inside the traces once the types have been propagated there. So only slow path code does the monitoring. All the active traces should get stable types without extra monitoring at some point.

Essentially it's moving doing type propagation in "batch" to a "dynamic trigger" system. How effective that is really depends on the programs (or the programing style) and how often they really change types.

I hope it's not just optimized for the usual benchmarks, but some real code.

comment 13y ago · link · parent

But they've been increasing tuition like crazy too right?

~4-6% every 3 years according to http://oir.yale.edu/node/108/attachment

Apparently that gets spent on all kinds of things, just not the actual education the students need. At >30k a year you could really expect that they would hire enough real teachers.

comment 13y ago · link · parent

Yes I noticed that too and immediately started to godel: "how many of the wrongnesses the author believes are wrong are really right ..."

comment 13y ago · link · parent

Less jobs for lawyers generally seems like a good thing to me. Like investment banks lawyers do not create much (any?) value. That's a good sign for society. There may be some hope left.

Now it's not good for those who wasted a lot of money on a law school. They made a bad decision and will adjust.

comment 13y ago · link · parent

Really good point. That always annoys me with most formulas. I have to dig back several paragraphs (with no scope/indexing tool) to figure out what the individual variables mean.

And a lot of papers do not even bother to explain some variable but just assume the reader already knows it. One of the earlier commenters made this mistake very prominently enthusing over Maxwell's equations.

Yes of course the formula looks better shorter when you already know what it means. But that completely misses the point that it was written down to explain it to someone who doesn't already know what it means. If you already do you're the wrong target audience.

Longer variable names would help. Or for online paper just have a tooltip that opens the paragraph that explains what the variable mans when you hover over it would also help a lot.

Or maybe some color coding to easily find it (there was a recent link here recent explaining FFT which used this trick very successfully)

But I guess most Mathematicians don't bother because they only write for a small circle of colleagues anyways.

comment 13y ago · link · parent

Asperger is now autism. Let me guess: Treating autism pays more?

comment 14y ago · link · parent

Don't use a off the shelf database. They are overkill for this.

This only needs a very single table key->value store where every transaction is only a single access. I would just map it to a hash table mapped directly to the raw disk. Doesn't need transactions with a log if done right.

The hash spreads out the allocation, no information leaks for the allocation. If you don't have a log there are no time stamps.

Modern disks are big enough that you dont need to worry about resizing the hash table. And the random salt makes collisions unlikely enough.

comment 14y ago · link · parent

Don't do your own locking. Let the caller pass in state. Push locking to the caller. Don't have your own global state that would need hidden locks, but instead let the caller handle it with arguments.

That is similar how the STL does it, but not like stdio

I'm not sure I fully agree. - For simple libraries it's likely good advice. - But it encourages big locks and poor scaling. It may be right for desktop apps, but not necessarily for server code that needs to scale. For some things that's fine, but you don't want that for the big tree or hash table that your multi threaded server is built around on. - It avoids the problems of locks being non composable, that is the caller may need to know which order the locks need to be called, to avoid deadlock. Actually it doesn't avoid it, just pushes it to someone else. However if you make sure the library is always the leaf and never calls back the library locks will be generally at the bottom of the lock hierarchy.

comment 14y ago · link · parent

You may not realize it, but that's a quite damning statement on the CUDA compiler.

comment 14y ago · link · parent

True for the html layout, but not the content (the projects/code). For a code site layout in the end is very secondary.

Besides github is doing its best to compete on the "largest number of useless buttons/toolbars on the webpage" front with sf. I also found that finding something based on keywords works better on sf than on guthub.

comment 14y ago · link · parent

Not sure about sourceforge. It lost its lustre to github, but there are still a lot of good project there.

freshmeat/freecode is really great. Lots of great software there (I liked the old name better)

Browsing the freecode frontpage is far more satisfying than the HN page because it's all about real code that does something and very little hype and BS.

14.

Adding lock elision to Linux(linuxplumbers.ubicast.tv ↗)

1 points · by nn2 · 14y ago · discuss

comment 14y ago · link · parent

Did you actually read the article? It quoted studies that contradicted exactly what you said. Most studied people stopped using it at some point.

comment 14y ago · link · parent

Dvorak doesn't support the Alt-<type unicode number on number block> trick?

comment 14y ago · link · parent

Universities are still extremely expensive, just with the people (grad students and post docs) who do most of the actual science getting very little of the money. It's just extremely unfair and calling it a "pyramid scheme" is charitable.

Overall universities are just extremely inefficient. Where does all the money go to?

The person in the article who went into an administrative job may have been onto something.

Part of the problem is also the biology/chemistry bubble. In the 90ies these areas expanded extremely and now they are downsizing to more reasonable levels again.

With CS degrees they would be better off.

comment 14y ago · link · parent

Reminds me of that old quote "social media had popularized non-fact based reality"

Macro is a mac developer, his friends are mac developers and he somehow determines Microsoft development is dead because he doesn't do it. And we are supposed to believe him in that.

Next step: profit?

comment 14y ago · link · parent

Nothing new. As usual the faithful are the suckers.

comment 14y ago · link · parent

It has some nice features: parallel iteration and lazy iteration (return an iterator that is only evaluated when the values are needed)

comment 14y ago · link · parent

AV Rule 25 (MISRA Rule 127) The time handling functions of library <time.h> shall not be used.

Yes everyone reinventing their own broken flat tire date routines is the way go. If they used the same silly rule on the F22 that explains http://blog.utest.com/international-date-line-bug-caused-fig...

Time related code is really hard to write.

comment 14y ago · link · parent

Oh the irony. Something called "Accelerate" that makes programs run slower (and also harder to debug)

Maybe they should have called it "snake oil" instead.

comment 14y ago · link · parent

Are you serious? I would never give some random supplier unlimited access to my server and internal network. Such a requirement is an absolute show-stopper.

comment 14y ago · link · parent

I considered splunk at some point until I read the EULA review of theirs at http://blog.hacker.dk/

" Upon at least ten (10) days prior written notice, Splunk may audit your use” …. ” Any such audit will be conducted during regular business hours at your facilities“ … “You will provide Splunk with access to the relevant records and facilities“ "

More or less they screw their customers.

comment 14y ago · link · parent

I read programming pearls about halfway until I discovered that a several of the samples were using gets() and could be trivially exploited for buffer overflows.

Calling programs like that "pearls" just seemed too wrong to me to go on.

comment 14y ago · link · parent

7+ billions eggs in one unserviceable fragile basket that needs to plunder all other projects? I'm not optimistic on Webb. And if the rocket fails or that unfold mechanism from hell doesn't work it will all go up in smoke.

It would have been great to spend the money on Webb on several smaller missions like Kepler, and leave the Mars missions alone.

Whatever science Webb can do is unlikely to make up for the opportunity costs lost in these other missions.

comment 14y ago · link · parent

Except when they don't work, like in healthcare, lawyers, research etc.

relevant recent HN stories: healthcare: http://news.ycombinator.com/item?id=3661731 lawyers: http://news.ycombinator.com/item?id=3672815

comment 14y ago · link · parent

- amazon has a relatively painless website, unlike a lot of other webshops

comment 14y ago · link · parent

Does your explanation for junk DNA pass the onion test? http://www.genomicron.evolverzone.com/2007/04/onion-test/
12