5 ms·
Tcl is a bloody good language+ but seems to have languished in obscurity. I can't count the number of times I've heard people in the Python and Ruby (and Lua an
by gaius 14y ago
Tcl is a bloody good language+ but seems to have languished in obscurity. I can't count the number of times I've heard people in the Python and Ruby (and Lua and Processing, and node.js, for that matter) communities announce some wizzy new thing that Tcl had 5 or 10 years earlier. I've never understood why that is. The problem with the computing community in general is that it can't see over its own shoulder. Every few years, we reinvent the wheel.
+ By this I mean you can get a lot done, in not very much code, and maintain it afterwards, and read and modify other people's code easily.
- pacala 14y agoProductivity is highly valued. It's easier to be highly productive at reinventing wheels than it is to figure out which existing wheel fits a given problem.
- adestefan 14y agoIt seems to be trivial productivity. People like to say they've contributed and it's easier to port trivial libraries to new frameworks. I'm amazed everytime I see XYZ ported to framework de jour so celebrated.
- pacala 14y agoCopying is the foundational intelectual activity. Arguably copying enables natural language and culture. The world wide human network is engaged in a large scale genetic algorithm founded on copying. Porting successful features serves as an effective filter for bad ideas. Good ideas thrive and are copied everywhere, bad ideas get few copies and eventually die in obscurity.
- SkyMarshal 14y agoYou're preaching to the choir, comrade. My first professional manager back '99 taught me the same thing - programming is trendy, the same concepts keep showing up in new languages and packaging. Learn the concepts and you'll be set for as long as you stick with this career. Even Alan Kay has been complaining about it since 1997 [1]. Looks like even our complaints get recycled. 1. http://video.google.com/videoplay?docid=-2950949730059754521 http://video.google.com/videoplay?docid=-2950949730059754521
- lifeisstillgood 14y agoOk, so let's enumerate those concepts, stick 'em up as a guide for future generations (probably a good idea to work out what they are ourselves) 1. Code is data, data is code Implications: everything should be a first class citizen of the language, able to be passed by reference, altered by functions elsewhere. Examples: s-expression in lisp? Subclassing built-in types of oo language (python new style objects) 2. Configs are applied to code, so that the same code can run unchanged on dev beta and live. (this is my favourite reinvented wheel du jour - devops. In fact the whole 12factor app recently on HN is a great example of rediscovered wheels - or perhaps more fairly a great example of doing this guide to future generations too) 3. iPads are no way to type into unresizeable text boxes ... Edits coming when I get a keyboard
- gaius 14y agoLet's say you wrote that list, now in 2012. In 2015, people will look at the date on the blog posting and immediately disregard it because it's "old". That is the problem. The knowledge hasn't been lost, over the last 30, 40, however many years. It is being actively shunned by people who take all the complexity involved in a useful system utterly for granted and think they don't need experience or to study the experiences of others. I find it fascinating, it's as if kids these days believe that their fathers had all the things they take for granted, like smartphones, tablets, AJAX, whatever, and then, because they were stupid, chose to use green screens and FORTRAN instead.
- JamesLeonis 14y agoI think why we disregard old material is because we were bitten by that while we were learning programming in the first place. The web is full of old cruft that no longer applies, and some of it flat out dangerous, so we shun older information in favor of newer information.
- gaius 14y agoHaha, you are proving my point "the web" indeed, this problem has been going on for long before there was "the web", tho' the web has certainly made it worse, everyone thinks they're using the latest greatest thing, they don't even realize that it's just yesterday's leftovers with different buzzwords attached. That's the tragedy here. And who is to say the new information is any better? At it's very best, it's just repeating what has gone before. Why not go to the original, and learn for yourself?
- davidw 14y agoAs to why it faded into obscurity: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-...
- excuse-me 14y agoThe library/packaging system was a disaster - at least in the early versions. Half the libs needed a source code change to the tcl interpreter. There were two main add ons (I want to remember one was called green eggs and ham???) which were incompatible, so if your lib needed A and another bit needed B you were stuck.
- jeffh 14y agoWhile it was a disaster, the current Tcl package implementation surpasses many other languages. It's possible to have multiple versions installed and have different runtimes choose a version they want. The biggest advantage though is binary version independence through stubs (http://wiki.tcl.tk/stubs http://wiki.tcl.tk/stubs). Compile a binary package for 8.x, it will work in 8.y where y >= x.
- excuse-me 14y agoYes this was back in the early 90s and I don't even remember what they were called. I don't know if it was really a deficiency of TCL that you had to patch the interpreter to enable library features or the writers were just lazy. One thing it did have was very easy to write C plugins because everything is a string
- haberman 14y agoA programming language runtime is a whole package; just because some elements of previous system designs are reused does not mean that we are "reinventing the wheel." To pick Lua (my favorite of the technologies you listed), it has the following things that Tcl does not have: - strict ANSI C implementation - small implementation (15k sloc vs. 110k-160k for Tcl, depending on how you count) - a fast implementation, with an even faster JIT If you follow your argument to its logical conclusion then everything is just a reinvention of Lisp (including Tcl). But we have tools available to us today (like Lua) that are strictly better than Lisp or Tcl for some use cases.
- pka 14y agoAn honest question: for which use cases is Lua strictly better than Lisp?
- haberman 14y agoLua has the following advantages over Lisp-the-language: - only one dialect (sometimes changes between major versions, but there aren't multiple dialects evolving in parallel). - infix notation is preferred by many programmers, and is easier to use for non-programmers. - the language is small (more like Scheme than Lisp) The Lua and LuaJIT implementations have the following advantages over SBCL (you didn't say which Lisp, so I'm just picking what seems to be the most popular one): - extremely portable - extremely small - easy to sandbox - very good integration with existing C and C++
- silentbicycle 14y agoLua is designed specifically to provide a scripting/extension language for projects in C or C++, or projects where interop with C is key. This is where it really shines -- where most Lisps expect to be the primary language, but have FFIs to C for performance and integration reasons, Lua expects to be used for writing plugins, configuration, and the like. It handles those tasks well, and otherwise stays out of the way. While it's good as a standalone language, it's an outstanding extension language. It's small, trivially portable, and has excellent interop with C. It's not competition for Lisp in general so much as Emacs Lisp or vimscript, designed for systems that have a core written in C but need a lot of customization layered on top. Configuration for window managers, scripting enemy behavior for game engines written in brutally optimized C++, that kind of thing. Systems with a "hard and soft layer" architecture (http://c2.com/cgi/wiki?AlternateHardAndSoftLayers http://c2.com/cgi/wiki?AlternateHardAndSoftLayers). (Incidentally, Tcl was also designed with this use case in mind.) That said, if you're using Lua as your primary language but are proficient in C, you can add a lot of power to it pretty easily. The emphasis on C interop goes both ways. (Also, the implementation is very intelligently engineered, and is worth study if you're interested in language design or virtual machines.)