okmjuhb | 15 years ago | on: C++0x (upcoming C++ standard, includes lambda functions)
okmjuhb's comments
okmjuhb | 15 years ago | on: Sharpie reinvents the pen with liquid pencil
Writing your code this way encourages a "write as you would speak" tone in the resulting code, better decomposition, and better documentation. It also means that each line gets reviewed from a fresh start at least twice before making it to the computer.
The biggest problem comes when you're working with a large API you don't know well; you're frequently forced to experiment with it in a manner that this sort of batching doesn't really handle well.
okmjuhb | 15 years ago | on: Ask HN: How would you store 5TB of data for 50 years, untouched?
At this rate, encoding a gigabyte requires 2,185 pages. As an aside, this is only 5 pages fewer than are contained in the "Art of Computer Programming" box set.
We can comfortably fit a gigabyte, then, on printed paper, in a 10"x12"x5" box. A terabyte will then fit comfortably in a 10'x10'x5' space. Throw a few of these together to get 5 terabytes. Let's add, say, 1 TB more of error correcting codes. In the unused margins of each page add in some information about alignment, a printing of all the colors used (to try to protect against inks changing color over time) and the page number. All together, this is certainly big, but could probably fit in, say, a tractor-trailer. Throw in some books describing the data format and the meaning of the data, and you're done.
okmjuhb | 15 years ago | on: Optimizing code for instruction cache
okmjuhb | 15 years ago | on: Bill Gates: In Five Years The Best Education Will Come From The Web
- It's the only socially acceptable way to spend years simply learning as a full time job.
- The argument that "lectures will soon be online" only makes sense if you believe that physically being present in lectures is the way that people gain knowledge in school.
- University admissions maintain a level of intelligence in incoming classes that I don't think an online community ever could - so that the students who interact at a university are interacting in a productive way.
- Physical colocation is just a better way of interacting with people than communicating online is.
okmjuhb | 15 years ago | on: College Grads, Here’s How to Become Millionaires
okmjuhb | 15 years ago | on: Why Do Employers Use FICO Scores?
If I'm hiring an employee who will be handling cash, or who will control purchasing decisions, or who will have access to information my competitors want, it's important to me to know that my employee won't ever be in desperate enough financial circumstances that they feel compelled to steal or accept a bribe.
okmjuhb | 15 years ago | on: Richard Stallman answers Reddit's top 25 questions.
Stallman's contribution is much greater than that of cheerleader or discussion framer - the ecosystem that exists in large part because of him is, I suspect, tremendously important in the day to day lives of many of the people reading this.
okmjuhb | 15 years ago | on: Buy 1 get 1 sale at O'Reilly. What are some good startup or tech-related books?
okmjuhb | 15 years ago | on: Will it optimize?
But the "what if another thread changes the string" issue is a red herring. The question to keep in mind when optimizing in a multi-threaded context is "does the output of the compiler generated code correspond to at least one possible interleaving of threads". Since this thread doesn't do any synchronization, it's possible that all the function executes without being interrupted by another thread, so this is a sound optimization.
okmjuhb | 15 years ago | on: a² + b² = c²
okmjuhb | 15 years ago | on: Want speed? Pass by value.
okmjuhb | 15 years ago | on: The Velluvial Matrix
It was able to outperform pathologists in the area it was designed for because (or so I've been told) it didn't face the cognitive biases that human doctors have (like the inability to reason with probabilities, the accessibility bias, etc).
okmjuhb | 16 years ago | on: What do Bill Gates and Richard Stallman have in common ?
If you look at the problem sets, they're very hard (especially given that the students are all freshmen - a few of whom haven't ever done advanced mathematics before), but not unreasonably so (not really even beyond the top math majors of most top schools, I'd wager). Having made friends in a trial by fire like the 55 a/b series though, is a key to surviving later ones.
okmjuhb | 16 years ago | on: Three-dimensional literals in C++
This person will have a lot to answer for one day.
okmjuhb | 16 years ago | on: The Just-World Fallacy
People don't respond to homelessness when they've convinced themselves that homeless people deserve it. "the world sucking is no reason for you to change your attitude one way or the other" is of course absurd. If the world sucks, there's a reason to change it.
okmjuhb | 16 years ago | on: Ending the Era of Patronizing Language Design
C++ coddles programmers and Ruby doesn't. Really? That sounds like a sensible thing to say?
C++ avoided reflection because it would be misused by programmers? Only a profound misunderstanding of the design goals of C++, or having never actually used it, could inspire such a claim.
ActiveRecord is a Rails innovation that took decades to realize? What? Why would you think this?