HNHacker News
TopNewBestAskShowJobs

derleth

5,614 karma · joined January 2, 2011

submissionscomments
derleth··on How can C Programs be so Reliable? (2008)
> If embedded systems programmers wrote code the same way modern desktop applications developers did, we'd all be dead.

If Boeing made passenger jets the way Boeing made fighters, we'd all be dead, too, but try telling a fighter pilot that they should do their job from a 777. It's two very different contexts.

Besides, some errors can't be recovered from. What do you do when your error logging code reports a failure? Keep trying to log the same error, or do you begin trying to log the error that you can't log errors anymore?

derleth··on Taboo Your Words (2008)
> "anything vaguely resembling trinitarianism".

So they exclude Jehovah's Witnesses, then. Not really all-inclusive.

http://en.wikipedia.org/wiki/Jehovah%27s_Witnesses

derleth··on Has StackOverflow saved billions of dollars in programmer productivity?
> The number of questions on SO that can be answered by RTFM is quite remarkable.

Every language needs two manuals: A reference text, to teach you what is possible, and a tutorial, to teach you what is tasteful. You should expect people to read the tutorial, but expecting everyone to inhale reference material is a bit much.

(Later, there should be a third book: An anti-tutorial, laying out anti-patterns, or things you shouldn't be doing but that people tend to do anyway, and how to solve the problem the right way, with pointers to other tools if necessary.)

derleth··on Has StackOverflow saved billions of dollars in programmer productivity?
> Well, if not for SO, I would have been stuck with the wrong set of keywords to search with.

This is precisely the sort of bootstrap problem good tutorials are meant to help you avoid. Learning out of a book is not as satisfying as grabbing an interpreter and some example code and just hacking away, but this is precisely a case where the by-the-book method can save you a lot of time and frustration later on.

Another example of a problem tutorials solve is not knowing what 'tasteful' means in a given language. If you don't know what the language culture considers good taste, you'll beat your head against a wall trying to solve problems tasteful developers don't even have, because you're cutting against the grain.

(Yes, yes, a Real Programmer can write FORTRAN-IV in any language.)

derleth··on Chain of fools: Upgrading through every version of Windows
ibiblio has a number of old distributions, including MCC (the first distro), SLS (which was so bad it inspired both Slackware and Debian), and Yggdrasil (the first commercial distro):

http://www.ibiblio.org/pub/historic-linux/distributions/

Here's how to run them using qemu:

http://www.freesoftwaremagazine.com/node/2097

And some history:

http://lwn.net/Articles/91371/

derleth··on Life Advice for Young Men That Went Viral in the 1850's
> Again, there is literally no thing on Earth that can stop you from acting with dignity.

Nothing except serious illness.

Involuntarily vomiting your guts out is not dignified. Being paranoid and acting on your bizarre delusions is not dignified. Ranting on and on about the same things every few minutes because your short-term memory is gone is not dignified.

Maybe your definition is different from mine. Try to apply it the next time you see and smell a homeless person mumbling to themselves in public.

derleth··on Life Advice for Young Men That Went Viral in the 1850's
> "Your character can never be essentially injured except by your own acts."

If only this were true, we would not need laws against defamation.

derleth··on Evading Airport Security
> Funnier thing is mall securities, you can't bring a small knife into mall but you can buy a chainsaw

Can you fuel up (or charge up) a chainsaw in a mall? How dangerous is a chainsaw when it can't be turned on?

And that's assuming small knives really are banned from malls. Do they really care if you have a pocketknife on your belt? Maybe things are different where I live (Montana).

derleth··on Evading Airport Security
> Nobody ... except for Tom Clancy and every single person who read _Debt of Honor_, wherein a plane is used as a suicide weapon flown into the US capital building.

Which is almost how Samuel Byck planned to assassinate Richard Nixon. The difference is that Byck planned to fly into the White House. (No, they're not the same building. Many people are confused on this point.)

He utterly failed in his attempt to hijack the airliner (hint: don't attempt a hijacking while the plane is still on the ground unless you know how to get a plane airborne), however, and Byck killed himself before the police got to him.

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

Anyway, movie-plot threats only very rarely come to pass. There are thousands of potential threats of this nature for every attempt, and the ratio of attempts to successful attempts is probably fairly high as well. It isn't worthwhile to try to protect against these kinds of threats.

https://www.schneier.com/essay-087.html

derleth··on A Testament to X11 Backwards Compatibility
> Oh you need that abandoned Chemistry application from 2006 that depends on X11? Spin up a VM.

No, just load a compatibility library, possibly in the form of a wrapper program. If Wine can run Windows programs on Linux by translating Win32 to POSIX and X11, which it can to a very usable extent, something equivalent can translate X11 library calls to whatever the new library speaks, especially since it will be able to use whatever X11 code it needs.

derleth··on GCC Poison
> They also 'standardised' threads which were hardly common usage.

Didn't the POSIX standard do that, as opposed to the ANSI C standard?

derleth··on GCC Poison
> They were Microsoft functions long (6 years?) before they were standardized.

And most of what's in ANSI C (the first C standard, before ISO stepped in, from 1989) was in C compilers before ANSI C existed. I think void and void* were the only things ANSI C really added to the language.

My point is, the C standards body likes to standardize common usage, and 'what a Microsoft compiler does' is pretty close to being common in some parts of the world.

derleth··on Europe's Ryanair vs. America's Southwest
Which isn't true of everyone, or even of most people.
derleth··on Meet the BRCK
> If it works in Africa, then, objectively, it works in sparsely populated and sparsely connected areas.

If it works in a really nice hotel in Johannesburg, it's working in Africa.

Your point is invalid.

derleth··on Europe's Ryanair vs. America's Southwest
> American cars vs. the rest of the world, American houses vs. the rest of the world

This is entirely due to how cheap land is over here, and it's not even true in a large number of places in the US. Compare New York City to the Midwest, or (especially) the Great Plains.

derleth··on Why the Web Won't Be Nirvana (1995)
What's more, Wikipedia gets better the more contentious the topic. For example, the Evolution article is well-cited, due to constant bickering, and constantly policed, because it would otherwise be taken over by religious people who are utterly convinced that T. rex fossils were planted by God to test the faith of the masses.

(The Talk pages are a hoot and a half if you're in the mood for that sort of thing; some people get really annoyed when NPOV means "We put the scientific consensus front and center, because that's what the reliable sources state.")

derleth··on Toast Sandwich
> Although often hilarious, Urban Dictionary now pretty much allows people to make shit up.

Which is precisely what happens when you don't demand citations to good sources. You can't really have it both ways.

derleth··on Computer-driven cars will convulse the automotive industry
A child runs into the street. The only place to swerve is into a few senior citizens. The kid's dead, right? Obviously the seniors have seniority, you must Respect Your Elders, and their estates can pay for much better attorneys that a grieving young couple can. I just wonder if the software will be smart enough to know that.
derleth··on Why I don't trade stocks and (probably) neither should you
> There are also the rare individuals who have some method that has been shown to work and they follow it with great discipline.

People like this can win at roulette, too.

(Well, for a while.)

derleth··on Toast Sandwich
> I'm going to assume this is some form of mayonnaise until told otherwise.

Indeed it is.

https://en.wikipedia.org/wiki/Salad_cream

derleth··on Toast Sandwich
Well, that's why we have Urban Dictionary. Not everything has to be in Wikipedia.
derleth··on Rename "master/slave" terminology to "client/server" (2008)
> "Robot" is etymologically derived from a Slavic word for slave ("Rab" in Russian, apparently).

More immediately, it's Czech for 'worker': Karel Čapek, the person who coined the word as it's now used in English for his play R.U.R. (Rossum's Universal Robots), was Czech.

Karel Čapek: http://en.wikipedia.org/wiki/Karel_%C4%8Capek

R.U.R.: http://en.wikipedia.org/wiki/R.U.R.

derleth··on Caveat Emptor: Lovers of Latin Try to Sell a Dead Tongue
> Shakespeare from around 1600 is rewarding but pretty much needs a translator into English to be understood by moderns.

Nobody in 1600s England spoke the way Shakespeare wrote. Shakespeare was writing poetry. His plays are famous for their use of iambic pentameter especially, which is beautiful to hear and read but not a natural part of English prose.

To pick another example more-or-less at random from the same era, the work of Thomas Hobbes is much less poetic and, therefore, substantially more readable. The major stylistic difference I can see is that they were absolutely addicted to what we'd now consider overlong, or even run-on, sentences.

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

Leviathan: http://www.gutenberg.org/ebooks/3207

derleth··on Caveat Emptor: Lovers of Latin Try to Sell a Dead Tongue
> Latin lives on in English

Only through borrowings. English is a Germanic language.

derleth··on Show HN: Headline Smasher
Congratulations: You've automated The Onion.

(The best part of The Onion is the headlines. The articles are funny, too, but they too often just beat the headline's joke into the ground.)

derleth··on List of important publications in philosophy
Find some reliable sources and fix it, if it bothers you.
derleth··on CyanogenMod Installer Application Removed from Play Store
That's what they say they're doing. Do you trust them now? Do you trust them when the NSA comes calling?

And now, the question nobody will answer: Why isn't it opt-in?

derleth··on A Low Level Curriculum for C and C++
> some of the low-level stuff (pointers, memory layouts, stuff...) really ought to be part of CompSci 101.

This is forever a balance between the universal constants of the low-level world, and stuff which seems to be a constant but it actually a flavor-of-the-month and will be obsolete by the time you're in a position to apply it.

For example, someone taking an architecture course (learn assembly language from the transistor up!) will likely learn on the MIPS, because it's a simple design which fits a simple five-stage pipeline model very cleanly and it has a simple, easy-to-teach machine code ISA as well. Plus, of course, Hennessy and Patterson teach MIPS, so you get to use their well-written book if you do, too.

However, spending your time learning how to schedule opcodes to take advantage of a branch delay slot, which is an intrinsic part of the MIPS worldview, is a mistake. No architecture in modern use has them: ARM, PowerPC, and even the venerable Alpha found a way to avoid the concept, and, of course, the x86 has never had them. Branch delay slots are a flavor of the month from decades ago; they're downright archaic today.

(DSPs seem to have them. Will they have them a couple generations from now? Are you actually going to learn enough about the other unique features of DSPs to make learning about branch delay slots worthwhile?)

OTOH, teaching the theoretical side is a lot closer to being future-proof: Even if certain algorithms get finessed by differences in future hardware design, learning to think rigorously is always a useful pursuit.

derleth··on CyanogenMod Installer Application Removed from Play Store
As long as CM phones home, it shouldn't be in the Play Store.
derleth··on CyanogenMod Installer Application Removed from Play Store
Then why isn't it opt-in?
← PreviousPage 3 of 34Next →