Better HN
topnewbestaskshowjobs
Log inSign up

Turing_Machine

10,789 karma · joined May 28, 2010 (16y ago) · 6,160 submissions

Submissions

comment 5y ago · link · parent

Vast amounts of barium sulfate are used to whiten paper, which is often burned, and no one worries about that.

comment 5y ago · link · parent

Soluble barium compounds are toxic. Barium sulfate is nearly insoluble and has very low toxicity. People routinely drink the stuff as a radiocontrast agent before getting an x-ray.

comment 5y ago · link · parent

> Sinclair products were almost comical in how ingeniously their engineers shaved off any pennies they could.

Yes, that was their rule from day 1.

My favorite: in the early days, Sinclair designed a very cheap transistor radio -- so cheap that it didn't even have a speaker, just an earphone (mono, one ear). Sinclair noticed that the available earphone jacks had a built-in switch that was intended to disconnect the speaker when the earphone plug was inserted. Since there was no speaker, this switch was repurposed to serve as the on-off switch for the unit -- plug in the earphone and it's on, pull it out and it's off. That saved both the cost of a separate switch and the space it would have taken up.

I believe this hack required manually bending the contacts on the jack switch to turn it from NC to NO.

comment 5y ago · link · parent

> It's not that unique in the computer business.

Yes, it's very common. Even companies like Intel sometimes test a CPU at umpteen GHz, then retest the ones that fail at umpteen/2 GHz and sell them at a lower price if they work reliably at the lower speed.

comment 5y ago · link · parent

The teeth are still wrong, though.

I'm not sure what's so hard about teeth, but (so far) weird teeth has always been a reliable tell for me.

comment 5y ago · link · parent

For permanent installation in parking lots, they need to be weatherized, rugged enough to make at least a token resistance against people running them over, and so on.

The ones I was seeing were built into bollard-like posts.

comment 5y ago · link · parent

Did you actually read this? In the case of trial is not the same thing as entitled to a trial.

> After a "competent tribunal" has determined that an individual is not a lawful combatant, the "detaining power" may choose to accord the individual the rights and privileges of a prisoner of war as described in the Third Geneva Convention, but is not required to do so. (emphasis mine)

Edit to add this P.S: I'm not going to slam you for citing Wikipedia, but I will take off points for not mentioning (or checking, perhaps) that the original source is an opinion piece written by a lawyer -- not a law, treaty, court decision, or anything else that has actual weight.

comment 5y ago · link · parent

> Piracy, espionage (spying) etc are crimes

In peacetime, yes.

Not in a combat situation.

comment 5y ago · link · parent

There are a lot of misconceptions here, both in the original article and many of the comments. Most of them derive from assuming that this is some type of "crime" situation that automatically falls into the purview of the civilian courts, with Miranda rights and all that stuff. That is wrong. A completely separate system of jurisprudence is involved.

There are two basic statuses for captured combatants. The first is "prisoner of war". There are rules about how POWs may be treated, but they don't include anything like a "fair trial". It is, in fact, illegal to put POWs on trial. Instead, they are supposed to be treated humanely and repatriated after hostilities have ceased. The catch here is that to be entitled to POW status the combatant must abide by the so-called laws of war, including bearing arms openly in the field (i.e, not hiding among civilians) and wearing a uniform or other insignia recognizable at a distance (something like a purple armband would be enough -- it just has to be something that clearly identifies you as "not a civilian" as seen from a distance).

The second status is that of the so-called "unlawful combatant". This includes pirates, spies, terrorists, or anyone else who engages in hostilities without wearing a uniform or insignia, or who engages in other actions in violation of the laws of war (for example, deliberately attacking civilians, hiding among the civilian population, falsely wearing a symbol that indicates that the combatant is a medic, and so on).

Unlawful combatants have no rights of any kind. They may be detained indefinitely (even after hostilities have ceased), tried by a military tribunal, or even be summarily executed on the spot when captured.

This basic framework has been the rule for centuries, and was most recently codified by the Geneva Conventions. It's not some new policy that the United States made up.

comment 5y ago · link · parent

That's a little nit-picky, don't you think?

In any case, it's not inc(Pascal), now, is it?

comment 5y ago · link · parent

Not that I recall, and even if it had, that wouldn't help, as there was no way to cast the resulting chunk of memory to whatever arbitrary type you needed it to be.

comment 5y ago · link · parent

Here in Alaska, people commonly plug in their normal cars in the winter so they will start after a cold night (these are heating units that are spliced into the engine's hoses to circulate and warm the engine coolant). Just about every private parking spot has an electrical outlet for each parking space, even at quite downscale apartment buildings. It's usually controlled by a switch inside the unit. You can flip it on when you wake up so the car is warmed up enough to start by the time you leave for work.

I remember many years ago that having one of these outlets was a bullet point for apartment listings, but nowadays it's just expected.

So the market worked in that case.

EV charging stations are going to be more expensive than a basic 20 amp outlet (a quick web search indicates $700 to $2,000, not including installation), but not all that expensive, compared to the other capital expenses involved in being a landlord.

comment 5y ago · link · parent

> Naturally, those variants were ignored, as Kernighan had a message to sell.

Those variants were "ignored" because they largely didn't exist. Kernighan's essay was written in 1981. The first release of Turbo Pascal wasn't until 1983. The Extended Pascal standard wasn't released until 1990.

comment 5y ago · link · parent

They were "Inprise" for a while in there, too. I think the "Inprise" crap was where they took their finger off the button. "Sure, let's drop a name that pretty much every working programmer associates with quality tooling and start using a bland, corporate-speak name that no one has ever heard of. What could possibly go wrong?"

Inprise sounds like a name out of Mike Judge's Office Space.

They eventually figured this out and changed back to Borland, but by then it was too late.

comment 5y ago · link · parent

Both Microsoft and Apple switched to C long before they became actual Unix (i.e., Apple with OS X) or even had a POSIX API (Microsoft).

comment 5y ago · link · parent

C had `malloc` and (real) pointers pretty much from day 1, and allows you to treat the result of `malloc` as an array.

Pascal's `new` did not let you do this, as I recall (it didn't even allow you to allocate a chunk of memory of arbitrary size... meaning that you can write `malloc` in C, but you can't write `new` in Pascal -- edit: before someone starts jumping on me with the claim that "Golly-Gee-Whiz Pascal '92" lets you do this, I am talking about Pascal, the language as designed by Niklaus Wirth, not about some bastardized non-standard extension. And yes, I fully concede that arbitrary pointers are dangerous, and are prone to producing nasty bugs. They also provide a whole lot of power).

comment 5y ago · link · parent

> I'm not sure Pascal entirely lost due to just C. Borland's Turbo Pascal was quite popular

Look at which one is being used to this day to write essentially every modern operating system, and even the interpreters and compilers for other languages. JavaScript engines are written in C, not Pascal.

I think it obviously did lose, though judging from the moderation it clearly still has some fanatical followers.

Both Turbo Pascal and Object Pascal had so many extra non-standard and un-Pascal-like features that they were barely even the same language.

As I mentioned in another comment, allowing you to write bare assembly language inline wasn't exactly a feature of the original Wirth Pascal. The analogy I used at the time was that (Wirth) Pascal was like a pair of blunt-pointed kindergarten scissors, while C was more like a chainsaw. Borland added enough non-standard features to make it more like maybe a kitchen knife, but in the long run that still wasn't enough.

comment 5y ago · link · parent

> The contents of that post have not been relevant for decades.

But decades ago is precisely the timeframe we're talking about here.

Pascal lost to C for the reasons Kernighan mentions (among others), which is the question the OP was asking.

comment 5y ago · link · parent

Turbo Pascal added a whole lot of bells and whistles to Wirth's Pascal, though.

Let's just say that the ability to include inline assembly language wasn't exactly a feature of Wirth's original Pascal.

The best feature of the classic Borland languages was the debugger, IMO.

comment 5y ago · link · parent

Yeah, me too. AS = Alaska Airlines, which I fly on semi-regularly.

comment 5y ago · link · parent

Sure.... and we have bread and alcoholic beverages because yeast excrete carbon dioxide and alcohol.

I suppose that makes mead a combination of bee vomit and yeast poop, but it's quite tasty nonetheless.

comment 5y ago · link · parent

The truly weird thing is that it's not even the only vaguely similar ingredient used in perfumes.

Hyraceum is made from petrified hyrax droppings, while civet oil, musk, and castoreum come from the anal glands of civets, deer, and beavers respectively.

comment 5y ago · link · parent

No (alleged) witches were burned at Salem.

They were all hanged, except one who was pressed to death.

comment 5y ago · link · parent

A Bentham panopticon without the expense of having to actually build one. How lovely. Stalin would be pleased.

comment 5y ago · link · parent

Likely not just "sitting", but something that sounds similar.

I wonder whether they've measured the RF absorption of pigeon guano in that region of the spectrum.

comment 5y ago · link · parent

Yes, or the one where the DNA "expert" testified that the odds were "millions to one" against a false match.

Except that the (accused, but innocent) "perpetrator" was a member of (ethnic group), as was the actual perpetrator, and it turned out that a high percentage of members of (ethnic group) exhibited this allegedly rare DNA feature.

comment 5y ago · link · parent

Based on the current price of the revived Polaroid film from the Impossible Project, you'd be looking at around US$70/shot for this. If you could get new film for it.

Photography (especially on this scale) used to demand a lot of forethought and commitment. While do I enjoy taking pictures without having a meter running, I sometimes wonder what's been lost along the way.

comment 5y ago · link · parent

There's even a well-known song about the Charles.

https://www.youtube.com/watch?v=62XRy-jFCm8

London has many "vanished" rivers, the most famous of which is the Fleet.

In earlier times it was nice enough that a royal palace was built on its banks, but by the Restoration it had become what Neal Stephenson's _Baroque Cycle_ described as a "river of shit" (the palace had been converted into a prison by then, too).

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

comment 5y ago · link · parent

Apple was a giant rolling ball of success when John Sculley took over, too.

But that sure didn't last.

comment 5y ago · link · parent

> Chances are that anyone other than Tim could have done just as well.

The history of Apple CEOs indicates otherwise.

1
717273
206