Better HN
topnewbestaskshowjobs
Log inSign up

Turing_Machine

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

Submissions

comment 9y ago · link · parent

"From the consumers perspective, a definition centered around the production process is not very useful. "

According to this viewpoint, it would be okay to label Kool-Aid and orange Fanta as "fruit juice". No.

comment 9y ago · link · parent

An iPhone can make a phone call. Therefore it is a phone. Things that do the same things as iPhones without the phone functionality are called iPods.

"Just Mayo has more in common, functionally speaking, with egg-based mayonnaise"

Mustard, catsup, ranch dressing, and many other condiments also have a lot in common with mayonnaise functionally. That doesn't make them mayonnaise.

comment 9y ago · link · parent

Rust will never take off until someone (or some group) uses it as the basis for a new, mind-blowing, must-have thingie.

For C it was Unix.

For JavaScript it was the web.

My guess for when something like that will happen with Rust? Never.

Unfortunately, verbose, anal-retentive languages like Rust are simply poorly-suited for writing new, mind-blowing, must-have thingies. On the scale of languages that support exploratory programming, I'd put Lisp at the top, JavaScript fairly near the top, C somewhere above the middle (though it was quite close to the top when it was new), and Rust somewhere down in the FORTRAN and COBOL region of the spectrum.

Note that this is completely orthogonal to type-safety, running speed, or any other traditional measure of programming language merit. The shoals of the language ocean are littered with the wreckage of "better" languages (the various Wirth languages, e.g.). What really matters is whether a programmer can sit down and casually explore a cool idea in a few minutes of spare time, and you can't do that in a language that requires half a page of code to concatenate two strings.

Swift has managed to roll type safety (more or less) into a language that's actually fun to use, or at least not actively painful. Rust hasn't.

comment 9y ago · link · parent

"...probably the only mayonnaise brand that most Americans could name?"

Depends on the region of the country. :-) Hellman's is East Coast, Best Foods is West (same company, basically the same product).

I expect that many could also name Kraft Mayonnaise. Note that Kraft makes both mayonnaise (which has eggs) and Miracle Whip (which doesn't).

comment 9y ago · link · parent

Given that the name of their flagship product is basically a lie, I guess I'm not too surprised that they've allegedly been using other questionable labeling practices.

Mayonnaise is made with eggs. By definition.

Calling an eggless product "Just Mayo" (with a picture of an egg on the label, no less) is like labeling soyburger as "Just Burger" with a picture of a cow.

The FDA made them use a bigger font for "Egg-Free" and make the picture of the egg smaller, but it's still deceptive, IMO.

comment 9y ago · link · parent

It depends on how illegible the "designer" has managed to make the base text. Sometimes highlighting is necessary to make it readable.

comment 9y ago · link · parent

So you'd prefer Ted Bundy or Ted Kaczynski as a romantic partner? :-)

While it may be important to you to have an intellectual match as a romantic partner, there are many other factors involved for most people. Empathy is very important to many, along with, yes, physical attractiveness and financial security.

comment 9y ago · link · parent

The things the U.S. government "actually does" (or at least, is supposed to actually do) are those things listed in the Constitution of the United States, and nothing else.

"Health care" isn't in there.

comment 9y ago · link · parent

In fact we don't even know that it's been there for 500 years. It's only been continuously observed for 187 years.

While there were earlier observations of large spots on Jupiter, it's not 100% certain they were actually the same storm.

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

To extend, a series of disjoint astronomical observations of the Earth would likely show a hurricane/cyclone/typhoon somewhere, but it wouldn't necessarily follow that they were all the same one.

comment 9y ago · link · parent

Even rough interpolation converges pretty fast for plain vanilla square roots, especially if you don't need an answer accurate to more than a few decimals. Newton-Raphson or more sophisticated methods can be a big win for more complicated functions, of course.

Estimate sqrt(17):

Clearly it has to be between 4 and 5.

Try 4.5. Result: 20.25 Try 4.2. Result: 17.64 Try 4.1. Result: 16.81 Try 4.15. Result: 17.01. Probably good enough for most practical purposes.

comment 9y ago · link · parent

"On the "other scenarios", he made these projections before the EPA came into existence in 1970."

The EPA is a U.S. government agency. It had (and has) no authority in the Third World countries that were the subject of Ehrlich's most extreme "scenarios".

comment 9y ago · link · parent

Close. He said that 4 billion people would die of starvation between 1980 and 1989, including 65 million Americans.

Other Ehrlich scenarios (he gets prickly nowadays if you call them "predictions", as well he might):

"Smog disasters" in New York and Los Angeles, claiming of the order of 200,000 lives.

U.S. life expectancy falling to 42 years by 1980.

All "important animal life" (whatever that means) in the oceans being extinct by 1980.

Why anyone still pays attention to this chucklehead is a mystery to me.

comment 9y ago · link · parent

But ion channels (and their function) are on a much higher level than quarks. Looking at things at the quark level doesn't tell you anything about ions, or salt, or, for that matter, people. :-)

comment 9y ago · link · parent

The issue is with your word "simply". On one level, it's true, but on another level it's not.

The Eiffel Tower is "simply" a bunch of puddled iron. On an even more reductionist level, it's simply a bunch of quarks, as are you.

While "Both you and the Eiffel Tower are simply bunches of quarks." is a true description (according to modern physics), it's not a very useful one. It says nothing about why the Eiffel Tower is different from other bunches of quarks, and definitely says nothing about (e.g.) what kind of reaction you might have to visiting Paris and climbing the Eiffel Tower. Would you be scared (acrophobic)? Exhilarated? Bored? The "bunch of quarks" description is of absolutely no help there.

Reductionist models have their uses, but attempting to use them to explain everything is a grievous mistake.

comment 9y ago · link · parent

Not if the cats are the ones who already have nuclear weapons.

comment 9y ago · link · parent

Next up: mice vote to bell cat.

comment 9y ago · link · parent

Are you suggesting there are?

I asked for examples. Can you provide one?

comment 9y ago · link · parent

Electric motors are already ~90% efficient and far more reliable than IC engines, so there's not much gain to be had there.

Advances would be more likely to come in the form of reduced weight (better magnets for PM motors, e.g.) and durability.

After all, it's not like we haven't been using electric motors for roughly the same amount of time as we have IC engines. Heck, most of us own way more electric motors than IC -- kitchen appliances, HVAC, computer drive motors, laundry equipment. Even the car usually has a dozen or two electric motors in it compared to one IC engine. :-)

comment 9y ago · link · parent

"Those are not remotely good. Some examples closer to being good are Rust, a step in the right direction that’s still unfolding, and Haskell, a wonderful language hampered by a slow compiler and a lack of decent packages. (And probably several less popular languages, but popularity is an important factor…)"

Wait: so you are arguing that startups should use languages that are either incomplete (Rust) or that have slow compilers and poor library support (Haskell), or possibly some other "good" language that doesn't actually even exist?

comment 9y ago · link · parent

"They could have succeeded in spite of dynamic typing, not because of it."

Yes, they could have. Evidence for your hypothesis would be the existence of similarly successful companies that used compiled statically-typed languages from the beginning.

Are there any recent ones?

comment 9y ago · link · parent

National defense is a constitutionally mandated function of the federal government.

"Healthcare" is not.

comment 9y ago · link · parent

Yeah, I have. Java is notorious for tossing 30 page runtime exceptions all over the place. Given that the alleged advantage of getting type happy is to prevent runtime errors, can you explain how Java actually supports your case?

comment 9y ago · link · parent

"Can you clarify this? "Pascal is no longer popular. Pascal had a static type system. Therefore, static typing has failed?""

I would make it "Pascal was never popular", but yes.

"If so, I counter: the last 3 years have been a series of breakthroughs both in terms of technology and social acceptance of typed programming."

This isn't the first rodeo for many of us. "Compile-type static type checking will solve all of our problems" is an idea that's come around repeatedly. Outside of a few niche applications, it never works, or even catches.

As for the supposed booming popularity of TypesScript... dude, TypeScript doesn't even make the top 30 on GitHub. It's less popular than assembly language and Visual Basic.

comment 9y ago · link · parent

"So does anyone who's done math."

Hmmm... I could have had an undergrad math degree in addition to the CS degree if I'd stuck around one more semester, but decided to head off for CS grad school instead. And yeah, I understand cardinality, and why there are more real numbers than integers (and could even write the proof for you from memory).

I also completely understand that 2.5 in a computer isn't actually represented as a non-integral real number, or anything like it. The computers we have now can't represent arbitrary real numbers (quantum computers can, I think, but I haven't studied those in any great degree). At one time I even wrote some non-trivial asm programs that ran on the 80x86 FPU, but I'd have to do a fair amount of review before doing that again.

So yeah, I'd say I've both "done some math" and have a good handle on how integers and floats are represented in a computer.

That still doesn't mean I want to have to put in a freakin' type cast when I add 2 and 2.5 on a pocket calculator. Nor does anyone else.

comment 9y ago · link · parent

No, I'm not an expert, but I've seen plenty of artifacts that are made from both fossil ivory and modern ivory. They simply don't look alike, not even to a casual glance.

How many exampes of both have you seen, in person?

I won't dispute that fossil ivory could possibly be bleached to look like modern ivory (which would have no effect on the elephants or arguably a positive effect, since it would be eating some of the market for the modern stuff), or that modern ivory could be stained to look like fossil ivory (which would devalue it).

I just don't see any economic incentive to do either one.

comment 9y ago · link · parent

Both of those are runtime errors, though.

The "type safe" guys like to pretend that their approach can catch all that stuff at compile time. It does catch a certain class of error, but at the cost of making the code take much longer to write. That doesn't work in a world where your competitor is iterating five times while you're still building the first one. Excellent way to get your milkshake drunk, that.

comment 9y ago · link · parent

"If you use these newer techniques and tools and patterns, you get more bang for your buck."

But you don't, necessarily. Dealing with type wankery takes time. And no, it has nothing to do with "learning something new". Languages that tout "type safety" have been around since at least Pascal (47 years old)... arguably even before that, with some of the Algol variants.

Yet they've never made it to mainstream acceptance. It's not even about hype -- Pascal was pushed HARD, by just about every university. Where is it now? Turbo Pascal had a small degree of success, but that's only because it chucked a lot of real Pascal's rigidity out the window.

comment 9y ago · link · parent

Floating point precision isn't even a problem for most scientists, at least not the ones dealing with real-world data.

It's pretty rare to have measurements that are accurate to more than a few decimal places.

comment 9y ago · link · parent

What "new model"? The abstract makes no mention of such.
1
110111112
206