Re:What Languages Fix (2002)
by gecko on Friday December 21, 2012 @05:41PM
(#4954902)
There's some truth to that: JavaScript's execution model was Scheme, with the syntax swapped out relatively last-minute in response to corporate pressure. What I genuinely don't remember anymore is whether LiveScript shipped with the Scheme syntax at any point. If it didn't, then yes, I'd say it's fair to say they shared an influence.
Re:What Languages Fix (2002)
by btilly on Friday December 21, 2012 @05:36PM
(#4954885)
We can keep on adding...
JavaScript, "We want a scripting language in our web pages."
TCL, "It should be easy to extend your scripting language in C."
SQL, "We need a standard way to talk to our databases."
PL/SQL, "We want to push complex logic into our databases."
BASIC, "We need an easy language for absolute beginners."
And so on.
But one historical comment. The ACTUAL problem that Ruby was created to fix was that Matz needed a scripting language that could handle Japanese text. People may adopt it now for different reasons, but that is not the historical inspiration.
Re:What Languages Fix (2002)
by btilly on Friday December 21, 2012 @08:54PM
(#4955461)
The issue was much worse than Unicode support.
Ruby natively supports multipleincompatible Japanese encodings, including Unicode and shift-JIS. This is a lot harder than just marking off a Unicode checkbox.
Re:What Languages Fix (2002)
by eldavido on Friday December 21, 2012 @05:17PM
(#4954808)
Ruby: Perl has crap OO, and Lisp syntax is scary.
Perl did a lot of things right, e.g. regex literals, wide range of terseness possible (one-liners vs. large modular programs), CPAN, but I could never get over its ugly, hacked-in implementation of objects that kinda-sorta behaved like hashes and didn't do information hiding well.
Re:What Languages Fix (2002)
by guard-of-terra on Friday December 21, 2012 @05:49PM
(#4954940)
You can't have good OO "outside" your language. You can't duct tape some OO to a language and consider it done.
That's classic: PHP guy say, "we have objects in PHP5 so now it is Object Oriented".
It's not. To say that language is Object Oriented because it has classes is like to say that language is Functional because it has functions.
So, Moose is a clever thing, but does it make every hash an object (I genuinely wonder)? Does it provide OO API for I/O? With exceptions? Does it make everything behave consistently? Because consistency seems to be the main reason that Perl did not become the final stop.
Re:What Languages Fix (2002)
by guard-of-terra on Saturday December 22, 2012 @11:24AM
(#4956837)
There are all kinds of opinions about this:
http://steve-yegge.blogspot.ru/2006/04/lisp-is-not-acceptabl...
Yes, it's wonderful that you have the band-aid — or maybe duct tape is a better analogy — certainly you miss them dearly when you're working in other languages. But you don't want to have to build your entire object system with duct tape.
Re:What Languages Fix (2002)
by gecko on Friday December 21, 2012 @05:42PM
(#4954909)
I don't quite think the Smalltalk one is fair. Smalltalk-80 definitely went to the extreme with everything-is-an-object, but PG is glossing over the history of Smalltalk-76 and Smalltalk-72, which betray the actual purpose: "Programming accessible by the everyman should be just as powerful as a 'real' language, not like BASIC."
Re:What Languages Fix (2002)
by gruseom on Friday December 21, 2012 @05:43PM
(#4954912)
Lua is as old as Python and Ruby. The alternative was Tcl, and the problem with it wasn't embeddability:
In 1993, the only real contender was Tcl, which had been explicitly designed to be embedded into applications. However, Tcl had unfamiliar syntax, did not offer good support for data description, and ran only on Unix platforms.
Re:What Languages Fix (2002)
by dvirsky on Friday December 21, 2012 @06:02PM
(#4954988)
Or rather: C++ & friends suck, Python & friends are too slow. Quoting from the Go FAQ:
>Go was born out of frustration with existing languages and environments for systems programming. Programming had become too difficult and the choice of languages was partly to blame. One had to choose either efficient compilation, efficient execution, or ease of programming [...]
>Go is an attempt to combine the ease of programming of an interpreted, dynamically typed language with the efficiency and safety of a statically typed, compiled language. It also aims to be modern, with support for networked and multicore computing.
http://www.solipsys.co.uk/new/EveryLanguageFixesSomething.ht...
There was some discussion a while ago:
http://news.ycombinator.com/item?id=2816526
Added in edit: That's a shame - someone has flagged this item so it's no longer on the front page. 8-(
http://web.archive.org/web/20020210063149/http://paulgraham....
That link is in the original version of the essay, and that's why it's in the diagram that's described as a graph of the dependencies that PG gave.
The version on the WayBack machine has:
It does not have:JavaScript, "We want a scripting language in our web pages."
TCL, "It should be easy to extend your scripting language in C."
SQL, "We need a standard way to talk to our databases."
PL/SQL, "We want to push complex logic into our databases."
BASIC, "We need an easy language for absolute beginners."
And so on.
But one historical comment. The ACTUAL problem that Ruby was created to fix was that Matz needed a scripting language that could handle Japanese text. People may adopt it now for different reasons, but that is not the historical inspiration.
Now, Ruby must be differentiated by other things.
Ruby natively supports multipleincompatible Japanese encodings, including Unicode and shift-JIS. This is a lot harder than just marking off a Unicode checkbox.
FTFY
Agda: when Turing completeness gets in the way of your mathematical logic.
Perl did a lot of things right, e.g. regex literals, wide range of terseness possible (one-liners vs. large modular programs), CPAN, but I could never get over its ugly, hacked-in implementation of objects that kinda-sorta behaved like hashes and didn't do information hiding well.
That's classic: PHP guy say, "we have objects in PHP5 so now it is Object Oriented". It's not. To say that language is Object Oriented because it has classes is like to say that language is Functional because it has functions.
So, Moose is a clever thing, but does it make every hash an object (I genuinely wonder)? Does it provide OO API for I/O? With exceptions? Does it make everything behave consistently? Because consistency seems to be the main reason that Perl did not become the final stop.
Everyone's using Smalltalk now? Consistency seems to be overrated; most of the popular languages these days seem to be multi-paradigmatic.
MUMPS: All other languages weren't written for/by medical doctors/professionals.
Lua: Python and Ruby are each too big to embed.
In 1993, the only real contender was Tcl, which had been explicitly designed to be embedded into applications. However, Tcl had unfamiliar syntax, did not offer good support for data description, and ran only on Unix platforms.
http://www.lua.org/doc/hopl.pdf
C# [n] (where n > 1) --- C# [n - 1] would be more awesome if it had...
http://en.wikipedia.org/wiki/Malbolge
I was just trying to stick with the form of the essay.
http://web.archive.org/web/20020210063149/http://paulgraham....
>Go was born out of frustration with existing languages and environments for systems programming. Programming had become too difficult and the choice of languages was partly to blame. One had to choose either efficient compilation, efficient execution, or ease of programming [...]
>Go is an attempt to combine the ease of programming of an interpreted, dynamically typed language with the efficiency and safety of a statically typed, compiled language. It also aims to be modern, with support for networked and multicore computing.