Lisp and Ruby 336
sdelmont writes "The developers of Rubinius, an experimental Ruby interpreter inspired by SmallTalk, have been discussing the possibility of adding a Lisp dialect to their VM. Pat Eyler collected some ideas and opinions from the people involved and it makes for some interesting reading. For many, Ruby already is an acceptable Lisp, and the language itself started as a 'perlification' of Lisp (even Matz says so) so it is perhaps fitting and might help explain why the whole idea feels right. Now, if someone added support for VB and gave it the respect it deserves, the world would be a better place."
Performance, anyone? (Score:2, Insightful)
Yeah, it's cool to virtualize, introduce dialects, interpret, etc. etc. Now, for the first time ever, we have cheap mainstream computer hardware that's capable of handling all these ideas in an acceptable way. But, isn't it a huge waste of resources? What about performance?
I mean, take Lisp and its performance. Compare it to Ruby's. Matz said himself that Ruby started as a kind of Lisp reconsideration. And you call this progress?
The thing is that you can implement a dynamic language that isn't painfully slow. Take Lua for instance. Eh, if only it had Unicode support.
Re:VB already gets the respect it deserves... (Score:5, Insightful)
Re:VB already gets the respect it deserves... (Score:1, Insightful)
From a technical perspective it might suck but it works a lot of people (especially non-programmers) to get real work done.
Re:VB already gets the respect it deserves... (Score:1, Insightful)
VB (and even more VB.NET) is a language where you clearly see the difference between a rookie programmer and a pro. The sad part is that they market it as targeted to the rookie which has unlimited potential for damage (starting from the option strict off).
Re:VB already gets the respect it deserves... (Score:5, Insightful)
And when that program gets too big for them to maintain (or they just don't feel like it anymore) they dump it on their IT area and we're stuck maintaining or converting an app in a technology we wouldn't have chosen that looks like it was designed by a pack of drunken monkeys.
Build a tool even an idiot can use and only an idiot will want to use it.
Re:VB already gets the respect it deserves... (Score:3, Insightful)
Re:Genuine question about perl vs ruby (Score:5, Insightful)
Ruby still has some pretty significant drawbacks, of course; it's slow, and has little support for Unicode (not that surprising, seeing it's from Japan). The libraries aren't as mature yet either; Perl has many year's headstart there so again no surprise. All of these are improving, though.
Because you'll end up at Lisp. (Score:5, Insightful)
What fewer people realize is that Smalltalk is Lisp with a slightly different syntax. The concepts are basically identical, however. So suppose the Ruby developers do all the hard work needed to switch their language over to a Smalltalk-like syntax. Do you know what will happen next? They'll ask themselves what could be improved next. And the first thing that'll happen is a consideration of making the syntax and semantics of the language more Lisp-like. And that's just because Lisp represents the most inherent aspects of what a programming language is.
Re:VB already gets the respect it deserves... (Score:5, Insightful)
Re:VB already gets the respect it deserves... (Score:3, Insightful)
I've been on the receiving end of many a poorly designed VB app, but is that the language's fault?
Assume we collect a random number of 3rd graders' essays. We can safely assume they will be pretty badly written. Do you automatically blame 'english' for the essays being bad? Maybe you also tout another language as superior just because the only ones you know speaking that other language are all 20+, and have picked up a bit or two about telling a story.
Btw, english is not my first language, and I think the VB slamming that is so fashionable around slashdot is just stupid. Not that I think there's any doubt about either after this.
Re:Performance, anyone? (Score:5, Insightful)
It is if it helps introduce the concepts behind Lisp to a lot of people who never would have dared to venture into Lisp otherwise. Ruby was the first language with functional constructs I tried (very much due to the excitement around Rails). Now I'm reading up on Lambda Calculus and learning Haskell, and I'm not at all sure it would have happened, were it not for Ruby.
Re:VB already gets the respect it deserves... (Score:5, Insightful)
Re:VB already gets the respect it deserves... (Score:4, Insightful)
When you write code using the OpenStep frameworks, designed by NeXT and tidied up by NeXT and Sun, the path of least resistance is a clear model-view-controller separation. Someone asked me last week 'do you always follow strict MVC separation in your code?' I hadn't really thought about it, but I tend to because the framework just makes that the obvious way of working. In contrast, VB encourages you to keep model information in the view objects.
This is just one example. A good framework means that you implement good design patterns without thinking. If you do this, then your application will be more flexible and maintainable when you come to make changes to it in the future (or, more importantly, when someone else does). Developing with OpenStep is slightly harder than developing with VB. Maintaining an OpenStep application is far easier than maintaining a VB application.
Re:VB already gets the respect it deserves... (Score:2, Insightful)
I guess I could be considered a real programmer as I have been programming various systems for about 25 years. I program in practically every language there is depending on the project. Yes, I write VB code. I have written huge VB applications in fact. While most of my code is other languages and dispite its shortcomings, VB suits its role very well.
Ignorance is bliss?
MOD PARENT UP (Score:4, Insightful)
I don't think I'd use Ruby for anything (except maybe as a teaching language), but I can't deny that it has done a superb job of introducing a new generation of programmers to the benefits of a true high-level language.
Re:Genuine question about perl vs ruby (Score:3, Insightful)
Actually there is a good reason to look at Perl given Ruby. Regular Expressions. Ruby has a object and method for doing regular expressions but compared to Perl it's very combersome and is even lacking some of the properties that Perl's regex has. Since I tend to use a lot of my programming time dealing with text of some kind, regular expression are important to me.
Ruby is a nice language. It's easy to work with. But it's got some maturing to do and I do hope they spend at least a version working on speed and documentation.
Re:VB already gets the respect it deserves... (Score:1, Insightful)
The difference was not and never is the language. It's the developers that come into the business b/c of the good pay ($$$) and never made it through a Computer Science degree at a 4 year school. I've been interviewing and hiring developers over the past 5 years and the story is always the same. There are those who went to school and understand the concepts, and there are those who were taught the basics at some training course and then figure out the rest by blindly stabbing at the problem until it kind of works. The sad part is that I've had interviewees actually tell me that they were a person that got into programming when some company pulled them off the street and trained them for 4 weeks, then threw them into a contract that they needed bodies in to rack up billable hours. The sad part is that those same people come out at the end of the contract thinking that they can really build something!
There's always going to be a (large) group of unprofessional idiots in any profession that requires no certification or licences and makes good money. Look how the booming real-estate market suddenly created so many "investors". All of the sudden everyone's a real-estate expert.
Re:I use Common Lisp because of its 'white hot' sp (Score:5, Insightful)
Not so much in response to the post, but to add to it...
I'm not that old, but I remember the same being said for:
You are missing a group. (Score:1, Insightful)
There's also the group being tricked into thinking development speed and the number of characters in your source code are the same thing. This is where the answer to your "how does this help me..." question comes it. It doesn't help you, obviously. But it creates an illusion of faster development, which is what draws people in. Who cares that 90% of your time is spent maintaining the code, not writing it. You can wow people with an upfront display of seemingly fast coding, and ignore the fact that in the long run, that code is useless and needs to be re-written correctly. Its just a cheezy magic trick, but as long as people are jizzing over "criss angel" (why would you pick a porn name for chicks to be a "badass" magician?) they will be jizzing over ruby.
karma (Score:3, Insightful)
Well, they better do want to program, because that's what they'll be doing most by going for the "ease" of VB: writing patches and more patches to correct bugs, doing excessive maintanence due to lots of improper, parameterless copy-pasting code and lots of rewrites from scratch once the whole thing eventually collapses under its own weight...
that, or hire real programmers with real tools from the get-go...
Re:VB already gets the respect it deserves... (Score:3, Insightful)
In the long run VB is a hinderance and not a help. It's better to have a clean separation then a flashy IDE if you intent to keep your application alive for more then a few days.
Re:Because you'll end up at Lisp. (Score:4, Insightful)
Lisp has its weaknesses, but expressiveness and abstraction are not among them.
Re:VB already gets the respect it deserves... (Score:3, Insightful)
Not quite. You should read my reply in the context of what I was replying to.
Re:VB already gets the respect it deserves... (Score:4, Insightful)
Nice bit of flamebait. Moving right along...
My company does all of that. We have a list of technologies that are approved, in containment and being retired. The department I work for is the likely place for these types of requests to be handled and we have a triage process that takes any request that comes in to well publicized email address and discusses it with the client to determine their needs and estimate the effort. If the client wants to go ahead it is prioritized and put in the schedule. Most times when they realize how much thought and effort it really takes to do it right they let us do it for them.
Even with all that there's always a guy (surprisingly never a woman) who read VB for dummies over the weekend and now thinks he knows as much as the entire IT department of a multi-billion dollar company. Unfortunately, what he doesn't realize is that writing a program is only a small piece of the problem. Once it's there you have to support and maintain it and that takes time. Then people begin asking for enhancements that he starts bolting on anywhere he can but it's getting harder and harder because he has no concept of design. Now his boss is telling him that he's spending too much time on it and it's not what he's getting paid for anyway. Then it gets dumped on IT and now we have to maintain it.
And anyone who says why don't you tell them that they'll have to keep maintaining it themselves or pay to have us migrate it to an approved technology has never worked in a large shop where politics often wins out over reality.
Besides, IT areas do a lot more than write programs. Coding is maybe 15-25% of the actual effort. There is analysis, design, integration (with other internal/external apps), regression testing and deployment to name a few. That's not to mention on-call support, enhancements and regulatory compliance not the least of which is SOX [wikipedia.org].
I don't have a problem with trained VB developers it's just that the simplicity of the tool and Microsoft's marketing give untrained people a false sense of ability.