News for hackers. Stuff that matters.
Re:The Tcl War (1994) by SFJulie on Sunday July 03, 2016 @06:24AM (#12025506)
I love how RMS always begin is war on language with "it does not have a LISP/scheme syntax".

University coders and their obsession of purity of syntax (map/purity) superior to actually dealing with the true problem of the hardware is looking (territory/practicality) is looking for me like an Aristolecian argument of superiority of the style over the «getting things done».

Well, as spotted in the answers, expect is a nice non university bred innovation (is it?) that is still a de facto standard in handling interactive session (stateful) with a simple syntax that helps getting things done with maintainable code.

It is ported in Perl, python ... and I think this is probably a point for what Tcl is worthy : getting things done.

Practicality beats purity.

And as of today it is still the most portable way to write embeddable graphical user interface that have good FFI.

Re:The Tcl War (1994) by agumonkey on Sunday July 03, 2016 @07:42AM (#12025702)
Lisp is close to syntaxless. What "lisp syntax" means is principled to the bones systems, including syntax. The fact that everything in lisp was in recursively defined lists meant you could reuse recursive thinking everywhere. An `infinite` tower of reuse. You get genericity, pattern matching, combinatorial generation for very low cost. It's not practical for people crunching data or opening files .. but whenever you need to attack something a little more complex the 'practicality' argument shift sides.
Re:The Tcl War (1994) by lawpoop on Sunday July 03, 2016 @08:45AM (#12025841)
Well, if he meant "it doesn't have S-expressions", he should have said that. That's not an unreasonable expectation for a guy who is otherwise a pedant in almost all other areas of his life.
Re:The Tcl War (1994) by agumonkey on Sunday July 03, 2016 @08:59AM (#12025875)
Fair point, and to be honest, it's a common problem in many places. People enjoying a property often fail to communicate it clearly with those who never did. Math, and I believe Lisp has many times more inherited math genes than other languages, is especially guilty of this. It's often a lethal cultural shock.
Re:The Tcl War (1994) by eru on Sunday July 03, 2016 @07:37PM (#12028128)
S-Expressions are fun. When I first learned a Lisp, Scheme in my case, I found them weird but could see the appeal.

When I learned Haskell afterwards, it was the opposite: I thought I'd miss S-Expressions, but I learned to like its more baroque syntax.

S-Expressions have the chief virtue of making even the most crude macro look no different from the most over-engineered builtin to the language from the user's point of view.

And they clearly separate the syntactical space in the language, so that new features (whether as macro or built-in) can always find a space. Compare to the cracks of C they had to fit C++ into.

Haskell might be even worse. The chief obstacle to adding OCaml or-patterns to Haskell (https://stackoverflow.com/questions/24700762/or-patterns-in-...) seem to be finding a syntax that's both pleasant and fits between the strands of the fine web in ascii space of already valid Haskell programs.

Re:The Tcl War (1994) by qwertyuiop924 on Monday July 04, 2016 @10:36AM (#12031005)
...And I never grew to like Haskell. The syntax makes all of your programs look very elegant, but there are no clear delimiters. The syntax for how functions are delimited isn't clearly explained by most sources. And I don't want to type my code and just hope that the magical compiler fairies deduce my meaning. That kind of programming attracts bugs like a man covered in honey.
Re:The Tcl War (1994) by gnufx on Monday July 04, 2016 @06:58PM (#12033455)
I don't know what that means, but if the objection is to layout ("the off-side rule"), that's just an alternative to the braces and semi-colons that you'd typically use if it was machine-generated, for instance.
Re:The Tcl War (1994) by qwertyuiop924 on Tuesday July 05, 2016 @08:53AM (#12036026)
The objection isn't so much to the layout, as it is to the fact that I can't find any documentation as to what the layout is and how the compiler interprets it.
Re:The Tcl War (1994) by eru on Wednesday July 06, 2016 @06:34AM (#12042214)
Interesting. I've never bothered to look up the formal specs, but it was never a problem that lead to an ambiguous interpretation of my programs. (I sometimes write programs that the compiler doesn't like. But seldom once that the compiler interprets different from me.)

I usually give types for my top level functions. It's good documentation, and also prevents most of these kind of issues. (For a similar example, human mistakes with operator precedence usually lead to compile-time type errors in Haskell, seldom to runtime problems like in C or C++.)

Re:The Tcl War (1994) by qwertyuiop924 on Thursday July 07, 2016 @10:20AM (#12049457)
It's not a huge problem, but lack of understanding of how the compiler delineates blocks of code makes the code hard to reason about. I like to know what the compiler will do with my code, and what is and isn't valid through something other than trial and error. Scheme's perfect regularity makes that easy. Haskell... doesn't.

I am aware that the information exists somewhere, and I think I got a link a bit back, so I'll have to go track that down. But it is absolutely baffling that people don't discuss it more. Would you be able to write Python if nobody told you about the indentation rules? Of course not.

I'll have to find that link...

Re:The Tcl War (1994) by eru on Tuesday July 05, 2016 @07:45AM (#12035726)
> And I don't want to type my code and just hope that the magical compiler fairies deduce my meaning. That kind of programming attracts bugs like a man covered in honey.

I wrote plenty of Haskell commercially (and for fun). Not once did we run into that problem.

Re:The Tcl War (1994) by dleslie on Sunday July 03, 2016 @11:56AM (#12026419)
> It's not practical for people crunching data or opening files .. but whenever you need to attack something a little more complex the 'practicality' argument shift sides.

    (define (my-reader)
      (let ((c (read-char)))
        (when (not (eof-object? c))
          (display c) (newline)
          (my-reader))))

    (with-input-from-file "myfile" my-reader)
Re:The Tcl War (1994) by gnufx on Monday July 04, 2016 @07:02PM (#12033470)
"not practical for people crunching data or opening files" in what way? It's been extensively used for crunching numerical and symbolic data, and I've no idea how opening files is an issue.
Re:The Tcl War (1994) by GFK_of_xmaspast on Sunday July 03, 2016 @11:42AM (#12026361)
> It's not practical for people ... opening files

Or in other words, being a "glue" language?

Re:The Tcl War (1994) by eru on Sunday July 03, 2016 @06:44AM (#12025564)
Lisps ain't particularly pure.. They are closer to the practical side of things.

RMS is of course a bit nuts, and perhaps living in some kind of ivory tower, but it's not the academic ivory tower.

Re:The Tcl War (1994) by _acme on Sunday July 03, 2016 @09:46AM (#12026028)
I thought he literally lived in one of MIT's office/academic buildings rather than having an actual apartment?
Re:The Tcl War (1994) by eru on Sunday July 03, 2016 @07:30PM (#12028109)
Oh, I meant where he's living intellectually. But I think my perception of what classifies an academic is pretty skewed: I managed to code Haskell for money for the first five years of my career (now still sneaking it in at Google in my 20% time), and don't consider myself an academic at all.

Perhaps I also have a European bias here. After the war, the Americans got to play with their computers early on, and their academics ended up with Lisp. The European computer scientists had to wait, and thus had nothing better to do but think. They ended up with types and ML (the family that Haskell sprang from).

These days, it seems that the European tradition has firmly won in the most academic parts of computer science. Lisps are still around, and with Clojure have seen more mainstream success that ever before. But in Academia the only Lispers left standing seem to be the Schemers, and they have warmed up to static types, too. (They did some great work on contracts.)

Re:The Tcl War (1994) by kazinator on Sunday July 03, 2016 @01:15PM (#12026767)
Here he begins by saying that TCL, in effect, does have Lisp syntax (which "hackers" like) but that the regular non-hacker users will balk at it.

This part of his proclamation anticipates and softens the ironic impact of subsequently promoting a Scheme, further mitigated by in the same breath promising the availability of a parallel notation that will provide the blub syntax for non-hackers.

(Of course, he was right about a dual syntax approach being viable: today we have virtual machine environments with multiple languages. As a Lisp hacker, Stallman knew about the existing history of such practice, like CGOL for Common Lisp and whatnot.)

Re:The Tcl War (1994) by yenda on Sunday July 03, 2016 @07:37AM (#12025688)
It wasn't RMS who wrote this post, it was a prank
Re:The Tcl War (1994) by glv on Sunday July 03, 2016 @09:10AM (#12025893)
It did later come out that Tom Lord wrote it, but not as a prank; he was working with RMS to build Guile, and this was the opening salvo in trying to build the case for it. RMS did post it under his own name.
Re:The Tcl War (1994) by SFJulie on Sunday July 03, 2016 @02:32PM (#12027090)
Well, fake money is well done when it looks as good as the original :)

Just for saying I did not invent the lisp/scheme obsession directly from his web page[1] :

The most powerful programming language is Lisp. If you don't know Lisp (or its variant, Scheme), you don't know what it means for a programming language to be powerful and elegant. Once you learn Lisp, you will see what is lacking in most other languages.

[1] https://stallman.org/stallman-computing.html

Re:The Tcl War (1994) by qwertyuiop924 on Monday July 04, 2016 @10:48AM (#12031081)
Lisp is still pretty damn practical. I can crank out working code far faster in Scheme than anything else. Because the mental model is so small, you focus more on your design than on getting it to fit your language.

And if you like TCL's command syntax, srfi-49[0], srfi-110[1], and srfi-119[2] all push scheme towards that to varying degrees.

0:http://srfi.schemers.org/srfi-49/srfi-49.html

1:http://srfi.schemers.org/srfi-110/srfi-110.html

2:http://srfi.schemers.org/srfi-119/srfi-119.html

Re:The Tcl War (1994) by digi_owl on Sunday July 03, 2016 @12:08PM (#12026462)
Well RMS didn't go with a unix clone because it was what he wanted, but because he figured it was more likely to get to a working state. At his heart he is always an AI Lab guy, lamenting the demise of the lisp machine.
Re:The Tcl War (1994) by groovy2shoes on Sunday July 03, 2016 @02:09PM (#12026995)
Tcl and Python (among many others) were also designed by "University coders". When it comes to language design, academic origins tend to have little bearing on how "practical" a language is.
Re:The Tcl War (1994) by kazinator on Sunday July 03, 2016 @01:34PM (#12026846)
In programming, that which you're calling the map is in fact the territory. The analog of a map is design documents: these indicate how the territory is going to be soon, or how it is.

In the physical world, we change the territory (e.g. alter the landscape, build). That's what is analogous to coding.

It is helpful for the territory and all of its manipulations to be clean and well-organized.

This is not just an "obsession" of "university coders".

Re:The Tcl War (1994) by cafard on Sunday July 03, 2016 @07:55AM (#12025738)
The fellow who wrote Expect worked at NIST