HNHacker News
TopNewBestAskShowJobs

derleth

5,614 karma · joined January 2, 2011

submissionscomments
derleth··on Poll: Where are you currently living?
Interestingly, the UN includes Mexico in Central America, but it seems to be one of the few official organizations to do so:

http://unstats.un.org/unsd/methods/m49/m49regin.htm

derleth··on Contractors See Weeks of Work on Health Site
> It's best to keep the code in everything to the minimum!

Optimizing for readability is usually most important.

Readability is usually more important than reusability, in fact, although readability very often enables reusability.

But we're talking about mission-critical embedded code, which is a special case in many respects. Still, making it as readable as possible makes bugs easier to find.

derleth··on Contractors See Weeks of Work on Health Site
They might be including all of the HTML in addition to all of the library code and all of the code in all of the interpreters and compilers they used, but even that probably comes up short.

Maybe if they include all of the possible HTML the site could generate, but counting potential code seems perverse even beyond the usual cluelessness of the mass media when talking about software.

derleth··on Accidentally Turing-Complete
> I could probably simulate a turing machine on a TI-81 graphing calculator depending on if it fit in memory.

Depending on how you define 'Turing-equivalent' this is never a problem: Something is Turing-equivalent if and only if you always have enough memory for the current computation.

Note that you do not have infinite memory, merely sufficient memory, another pedantic distinction sometimes harped upon.

The above distinctions are frequently disregarded in actual conversations because they reduce a useful term to something which can only have application to the most theoretical parts of Computer Science.

Finally, a third distinction: Problems are Turing-complete. Machines are Turing-equivalent. Cite: http://scienceblogs.com/goodmath/2007/01/05/turing-equivalen...

derleth··on The Navy’s newest warship is powered by Linux
> Such a time wouldn't exist.

It seems you could get close to ensuring such a time would exist by creating constant emergencies for the crew to deal with such that rebooting would be hazardous, and waiting for the reboot-or-crash date to launch the major attack.

derleth··on Wireshark is switching to Qt
> There is a reason why upvote exists. It pushes good discussion top.

And downvoting helps push bad comments down, which is by design.

> If you are worrying about space complexity: good news! HN is using a modern database, not flat file. You can store 10k comments.

This is irrelevant to having a good discussion.

derleth··on Wal-Mart Returning To Full-Time Workers
> GP was not simply describing - they were excusing.

That's not what I read.

> Actually by calling out and disagreeing with this behavior we can change it.

I agree. Disagree with the behavior, not the people describing it.

> The most effective way is through strong regulations

I also agree with this.

derleth··on Wal-Mart Returning To Full-Time Workers
> Regulations? How about just not shopping there?

Because we've tried that, and it doesn't work. Look at the Gilded Age.

derleth··on Wal-Mart Returning To Full-Time Workers
>> Those people have fiduciary responsibilities to their stockholders, not to your moral compass. This is something resolved on a societal level, not on the corporate level.

> This is the kind of ethical cop-out non-philosophy that's tearing then American environment apart.

It's possible to describe something without agreeing with it.

Responding to that statement the way you did is pointless. It's like getting angry at the doctor who tells you the cancer you have is almost certain to kill you.

What you quoted is simple observable fact, verified in many ways through history, and becoming angry at someone for stating it means you are angry and it is still a simple observable fact, verified in many ways through history.

derleth··on Wal-Mart Returning To Full-Time Workers
Great article on the subject, which turned into the first in a series: http://www.bloomberg.com/news/2013-08-27/why-walmart-will-ne... ("Why Wal-Mart Will Never Pay Like Costco", By Megan McArdle, Bloomberg, Aug 27, 2013 12:29 PM MT)

Key paragraph:

> In other words, Trader Joe’s and Costco are the specialty grocer and warehouse club for an affluent, educated college demographic. They woo this crowd with a stripped-down array of high quality stock-keeping units, and high-quality customer service. The high wages produce the high levels of customer service, and the small number of products are what allow them to pay the high wages. Fewer products to handle (and restock) lowers the labor intensity of your operation. In the case of Trader Joe’s, it also dramatically decreases the amount of space you need for your supermarket ... which in turn is why their revenue per square foot is so high. (Costco solves this problem by leaving the stuff on pallets, so that you can be your own stockboy).

And Walmart is the exact opposite of those things: It thrives on selling poor people everything they need and can afford, and they need lots of cheap labor to do everything a Walmart store needs to do on a daily basis.

derleth··on Wireshark is switching to Qt
It's not the difference of opinion, it's the fact your post adds nothing to the discussion. This adds even less.
derleth··on Wal-Mart Returning To Full-Time Workers
On the other side of the coin, there also aren't enough employees to stop shoplifters and it's policy that they can't really challenge them anyway.
derleth··on Wal-Mart Returning To Full-Time Workers
So, if Walmart employees are on Socialized Medicine, does that make them Makers or Takers?
derleth··on New global index exposes 'modern slavery' worldwide
> Al Jazeera also did a series on modern slavery

Doesn't look like they include the slaves held in Qatar. Al Jazeera has also been very light on what's been uncovered about the Doha World Cup and everything related to that.

derleth··on Biology-Online.org, "Urban Whores," And The Many Axes Of Douchebaggery
Why does popehat assume Ofek is male?
derleth··on Unix: When pipes get names
Wow. This is entirely incorrect on a simple, factual level.
derleth··on Why Registers Are Fast and RAM Is Slow
It wasn't always thus: On the 6502, which the early Apple II machines were built around, it was possible to access RAM at only a one- or two-cycle penalty compared to doing everything in registers and immediate values. This was only the case if you used zero-page memory without indexing, however, so you couldn't have a lot of stuff in RAM without incurring more speed penalties.

http://www.6502.org/tutorials/6502opcodes.html

(Zero-page memory on the 6502 was the memory accessed via addresses with a high byte of 0x00. Since 6502 had sixteen-bit RAM addressing, this meant each page was 256 bytes large, so the zero-page was almost as good as having 256 single-byte registers.)

derleth··on A Confederacy of Quacks: The War Against Antidepressants
There's absolutely nothing inherently wrong with heroin if it's used in a reasonable manner for something it can actually help with. It is, in fact, quite useful to deal with some kinds of physical pain. It's been eclipsed in recent decades by other kinds of opioids, but that's a difference of degree, not kind. Heroin isn't magically evil just because it's become a bogeyman 'substance of abuse' over the past few decades.

The point is that drugs are not inherently evil. Some drugs might be more harmful than beneficial, but that can only be determined by trials and evidence. Demonizing the things is the exact opposite of helpful.

In fact, I'll amplify the point: Injecting morality into things without a moral dimension is very harmful. It prevents people from looking at things rationally, by clouding the issue with emotional noise.

derleth··on Oops: Azerbaijan released election results before voting had even started
Parody or not, there are sedevacantists in the world:

> Sedevacantism is the position, held by a minority of Traditionalist Catholics,^[1]^[2] that the present occupant of the papal see is not truly pope and that, for lack of a valid pope, the see has been vacant since the death of Pope Pius XII in 1958. A tiny number of these claim the vacancy actually goes back to the death of Pope Pius X in 1914.

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

The belief the Pope is a Jew is a new one on me, but the general tenor of "There is no valid Pope; the current one is a pretender." is no new idea.

derleth··on The Linux Backdoor Attempt of 2003
Even better: Emacs has cwarn-mode, which by default highlights = (assignment-equal) in tests in BRIGHT RED. I'm sure Vim has something similar; maybe the customized version of uEmacs/PK 4.0.15 Linus uses does not.

http://www.emacswiki.org/emacs/CWarnMode

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

http://web.archive.org/web/20061124122032/http://www.stifflo...

derleth··on Firefox Developer Tools and Firebug
> Although Opera had them first

Opera had little miniature windows inside the main window. A small difference, perhaps, but tabs are simpler to manipulate at the cost of, perhaps, being less flexible (you can't resize tabs and move them around like you can windows).

derleth··on Unix: When pipes get names
Does:

    sort < foo | uniq -u
not work with named pipes?
derleth··on Unix: When pipes get names
> im not sure if its a per executable thing or actually built into the shell?

It's built into the shell in zsh, and it must also be in bash. By way of explaining how I know, I am first going to tell you a little bit about the program called strace, but probably not backwards-talking little people:

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

When invoked like so:

    strace diff <(ls /path/to/dir/1) <(ls /path/to/dir/2)
strace positions itself between the running process which it invokes (in this case, diff) and the OS kernel. It then prints for you all of the communications traffic, in the form of system calls and return values, between the kernel and the process. Because it runs after the shell has expanded the command line, it gets to see the command line as the program sees it, as opposed to how it was typed.

Now, the output scrolls by pretty fast (there is a -o option to save the output to a file, which I neglected to bother with here), so I saw the end first:

    stat("/proc/self/fd/11", {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
    stat("/proc/self/fd/12", {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
    open("/proc/self/fd/11", O_RDONLY)      = 5
    open("/proc/self/fd/12", O_RDONLY)      = 7
and so on. Obviously, diff is getting information from /proc/self/fd/11 and /proc/self/fd/12. Weird. Where do those come from?

Scrolling up to the top of my xterm, we have the answer:

    execve("/usr/bin/diff", ["diff", "/proc/self/fd/11", "/proc/self/fd/12"], [/* 68 vars */]) = 0
You can look up execve for yourself; the upshot is, its second argument is the argv passed in to the process by the runtime environment, which reflects the command line after shell expansion. Thus, the <(ls foodir) stuff is a shell feature, and not per-command.
derleth··on Fix 260 character file name length limitation: Declined
Better than that: The original NT design is from Dave Cutler, who designed a series of good-to-great OSes for DEC, including RSX-11M, VMS, and Mica, which never saw the light of day but was meant to be VMS-meets-Unix for the brand-new RISC chip DEC was making before it transmuted into Alpha (the chip, not the OS).

He's on the Xbox team now. He helped design the OS for Xbone, which, at this point, can't possibly tarnish his reputation that badly.

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

http://www.krsaborio.net/research/1990s/98/12_b.htm

derleth··on Archaeology: The milk revolution
> That alone eliminates your entire argument.

Sure. I believe you. What, if any, training in biology have you had?

derleth··on Archaeology: The milk revolution
> The real reason for pasteurization is the benefit to large scale commercial dairy farming.

And here we go with the conspiracy theories. What's your biological training?

derleth··on Luje 0.1 – a pure Lua JVM
Seems a bit like cheating if you do it that way, though.
derleth··on Luje 0.1 – a pure Lua JVM
Eh, programs compiled to assembly language aren't limited to machine-word-sized integers and whatever the floating-point hardware (if any) natively supports. I'd be interested to know what its performance on integer code is, though.
derleth··on Luje 0.1 – a pure Lua JVM
> you pay only for what you use

In assembly and C, but not C++, at least if you use exceptions:

http://yosefk.com/c++fqa/exceptions.html#fqa-17.1

Of course you can pare down C++ further and further, but then you have C with slightly different type-checking semantics and you might as well move to a language where 'new' isn't a reserved word.

derleth··on Archaeology: The milk revolution
It's amazing how quickly that claim falls to basic research: http://www.fda.gov/Food/FoodborneIllnessContaminants/BuyStor...

> Probiotic microorganisms must be of human origin in order to have an impact on human health (Teitelbaum and Walker, 2000). Bacteria present in raw milk are from infected udder tissues (e.g., mastitis causing bacteria), the dairy environment (e.g., soil, water, and cow manure), and milking equipment. High bacteria counts in raw milk only indicate poor animal health and poor farm hygiene.

> Bacteria in raw milk are typically not of human origin. An exception is Streptococcus pyogenes. S. pyogenes that has adapted to humans can be transmitted to animals. Once S. pyogenes is colonized in animals, it can be re-transmitted to humans as a human pathogen that causes strep throat. For example, S. pyogenes can infect a cow udder to cause mastitis. The infected cow udder can subsequently shed S. pyogenes, a pathogen, into raw milk.

This is one reason many people are wary of 'raw milk': People lie to promote it. They tell bald-faced lies, and they expect people won't check up on them. And then they spin conspiracy theories when someone does check up on them and call them on their lies. It's just cynical advertising from an industry that uses fear to sell its wares.

← PreviousPage 7 of 34Next →