Live data from Hacker News

E.W.Dijkstra: On the foolishness of "natural language programming"

cs.utexas.edu

41–50 of 71 posts

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#41
post #11
post #4

Earlier quoted context omitted.

It's often the foolhardy and the ignorant that tackle problems that are supposedly impossible. And sometimes end up succeeding. Wisdom is certainly something to take from, but embodying the limits imposed by someone as a roadblock to onself isn't the way to innovation.

Let's suppose it's a really easy problem to solve. Why the hell would anyone want to program in a natural language? Suppose you could write a kernel in such a language, and one of the instructions was: "Load the first 5 bits at address 0x323abc into the last 5 bits after address 0x89bbca" Now, wouldn't it be easier to say 'shuffle_bits(5, 0x232abc, 0x89bbca);' where you control precisely what 'shuffle_bits' does?

Or even:

    load_first_five_bits_into(0x323abc)
    load_last_five_bits_into(0x89bbca)
Or if you do mappings a lot, I'm sure I saw an IP packet parser based on syntax like this:

    [----5----|----n----|----5----]
    [0x323abc |void     |0x89bbca ]

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#42

"When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong." — Arthur C. Clarke's First Law

Dijkstra said this in 1978, so he was only 48 at the time.

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#43

"When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong." — Arthur C. Clarke's First Law

This holds for everyone, not just elderly scientists. Impossibility proofs are by their nature more difficult than existence proofs.

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#44
post #9
post #4

Earlier quoted context omitted.

It's often the foolhardy and the ignorant that tackle problems that are supposedly impossible. And sometimes end up succeeding. Wisdom is certainly something to take from, but embodying the limits imposed by someone as a roadblock to onself isn't the way to innovation.

> It's often the foolhardy and the ignorant that [...] sometimes end up succeeding. Please name some examples. How often is sometimes? What is their probability of success compared to that of domain experts?

I can think of one: http://www.snopes.com/college/homework/unsolvable.asp?a

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#45

"When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong." — Arthur C. Clarke's First Law

Arthur C. Clarke: Science fiction writer.

E.W. Dijkstra: Actual computer scientist.

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#47
╭⌒╮WELCOME http://www.onseeking.com/ ----- ~ ¤ ╭⌒╮ ╭⌒╮ ╭⌒╭⌒╮╭⌒╮~╭⌒╮ HANDBAG 35$ ,)))),'')~~ ,''~) ╱◥█◣ ╱◥█◣ SHOES 35$ |田|田||田|田| CLOTH 15$ ╬╬╬╬╬╬╬╬╬╬╬╬╬╬ 2010 NEW Your fashion! Your season! Michael bag fashion tidalcurrent.the fashionable element "bag" you - glamour infinite. Mass commodity, low discount, the buy cheaper. { www. onseeking .com } mall price can buy eligible products and services. Select all kinds of women, men's shoes, etc, { onseeking .com } shopping navigation! In addition, the company has a good reputation, quality standard, At a reasonable price. In the past few years, have been deeply overseas My friends for their support. Therefore, please rest assured purchase. ====== Free transport====== !!!!!!!!!!!!!! (http://www.onseeking.com/) !!!!!!!!!!!! input this URL: (http://onseeking.com/) you can find many cheap and fashion stuff (jor dan s-h-o-e-s) (NBA NFL NHL MLB j-e-r-s-e-y) ( lv h-a-n-d-b-a-g) (cha nel w-a-l-l-e-t) (D&G s-u-n-g-l-a-s-s-e-s) (ed har dy j-a-c-k-e-t) (UG G b-o-o-t) WE ACCEPT PYAPAL PAYMENT YOU MUST NOT MISS IT!! ----------------------

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#48
post #45

"When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong." — Arthur C. Clarke's First Law

Arthur C. Clarke: Science fiction writer. E.W. Dijkstra: Actual computer scientist.

Clarke was no technical slouch! http://lakdiva.org/clarke/1945ww/

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#49
post #40

Earlier quoted context omitted.

Actually, I don't think this has to do with dynamic vs static typing. It is more about strong vs weak typing, i.e. implicit type casting. In many dynamically but strongly typed languages (like Ruby), you would still get a type mismatch when you try to add a string to a number at runtime. It's just that with static typing, you would have realized your error much earlier at compile time.

While I think you're right, my guess is that he had strong static typing in mind when he wrote the article. Ultimately they lie on a scale. With a dynamic, strongly typed language, you still leave plenty of opportunity to make undetected mistakes. The obvious example is changing the expected type of a method argument, while only updating a subset of the call sites.

I'm not sure what he had in mind at that time, but Dijkstra was never all that enthusiastic about type theory. He thought it was a promising and worthwhile avenue, but was suspicious of it being treated as a panacea.

http://www.cs.utexas.edu/users/EWD/transcriptions/EWD12xx/EW...

"Another thing we can learn from the past is the failure of characterizations like "Computing Science is really nothing but X", where for X you may substitute your favourite discipline, such as numerical analysis, electrical engineering, automata theory, queuing theory, lambda calculus, discrete mathematics or proof theory. I mention this because of the current trend to equate computing science with constructive type theory or with category theory."

Re: E.W.Dijkstra: On the foolishness of "natural language programming"

#50
post #9
post #4

Earlier quoted context omitted.

It's often the foolhardy and the ignorant that tackle problems that are supposedly impossible. And sometimes end up succeeding. Wisdom is certainly something to take from, but embodying the limits imposed by someone as a roadblock to onself isn't the way to innovation.

> It's often the foolhardy and the ignorant that [...] sometimes end up succeeding. Please name some examples. How often is sometimes? What is their probability of success compared to that of domain experts?

The model of the atom that was popular before the current model. The model of the atom that was popular before that one. The model of the atom before..., ok you get the point.

If you'd like more, A Short History Of Everything by Bill Bryson is about 600 pages of examples.

Post reply on HN