The Artima Developer Community
Sponsored Link

Agile Buzz Forum
He doesn't know what he doesn't know

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
He doesn't know what he doesn't know Posted: Dec 20, 2005 12:00 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: He doesn't know what he doesn't know
Feed Title: Cincom Smalltalk Blog - Smalltalk with Rants
Feed URL: http://www.cincomsmalltalk.com/rssBlog/rssBlogView.xml
Feed Description: James Robertson comments on Cincom Smalltalk, the Smalltalk development community, and IT trends and issues in general.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Cincom Smalltalk Blog - Smalltalk with Rants

Advertisement

Here's James Gosling explaining why Java isn't a "scripting" language"

The biggest was concerns about performance and the inevitability of scale. I can't remember how often I've had experiences where someone has proudly shown me some system they've put together using the scripting-language-du-jour: things like an Adobe Illustrator clone written entirely in PostScript; a satellite groundstation diagnostic system written as TECO macros; a BASIC compiler written as Emacs macros; fourier transform algorithms in PostScript... This list is endless. They always ended with "this is so cool, but I'd like it to be as fast as {C,Assembler,whatever}". People get into scripting to quickly build small quick things, but they often grow far beyond where the initial concept started.

Another was about testing, reliability and maintainability. One of the common properties of scripting languages is brevity. This tends to lead to omitting declarations, weak typing and ignoring errors. Generally a great thing if you're quickly putting something together; not so great if you want checks and balances that crosscheck correctness.

It's telling that he lumps all scripting/dynamic languages together as weakly typed (casting in Java, anyone?). Makes me wonder if he's even looked at Smalltalk or Ruby - since both are strongly, but dynamically, typed. In Smalltalk, you can't get a type error - you'll get a well understood exception.

Then there's his assumption of slowness - not all dynamic languages are interpreted. Lisp, for instance, has implementations with type inferencing and all the speed of optimized C. Most Smalltalk implementations use a JIT, and are plenty fast (although, doing arithmetic tests is not an area Smalltalk shines at). Ruby is interpreted, but there's at least one project - YARV - out to create a JIT.

The fun part is, Gosling caught a lot of crap for that post, and mostly backed off, retreating into the "chains are good for you" position:

One of the slogans that was brought up in the commentary to my previous blog entry was "freedom vs. safety". Once upon a time I used to believe that: it has certainly been conventional wisdom for years. But a lot of the time, the truth is actually that safety is freedom (eg. a good safety harness and rope give you the freedom to climb a mountain).

When I'm writing a function and declare a parameter to be an Image, I am free to trust that it is an Image. I'm free to trust that no one's array access has smashed my data structure. Examples abound.

Ahh yes, argument by assertion. "Examples abound", so he needn't give any. I've made this point many times - the kind of error that type checking catches is extremely rare - it's come up a handful of times for me over the last 13 years of Smalltalk development. The kind of type checking that Java requires comes at a high cost - it catches errors that almost never come up, and adds in expensive rigidity (generics are simply the latest attempt by the Java guys to muck their way past the casting issue).

Which reminds me - casting is a lie to your compiler, and walks right past this vaunted type safety. So if the "safety"offered by Java style typing is so phenomenal, then why do you allow casting at all? Wouldn't you be even more safe and more free without it?

Read: He doesn't know what he doesn't know

Topic: CORBA Redux Previous Topic   Next Topic Topic: Who controls the vertical?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use