3 ms·
So: PLT Scheme is a great system with great FFI and a lot of really good libraries. It's flexible and has a very fast interpreter—approaching webkit's interpret
by KirinDave 17y ago
So: PLT Scheme is a great system with great FFI and a lot of really good libraries. It's flexible and has a very fast interpreter—approaching webkit's interpreter, even!
But: “Objective-C is a great example of what is going on. Obj-C is a cool language that implements fancy message passing, but it has ugly syntax and doesn't really offer anything new to the average programmer (Python works just fine without message passing, doesn't it?).”
What I can't stand is people who don't really understand their underlying languages start to talk about them. I mean, are you kidding me jlongster? Objective-C's system is bad but Python's system is okay? Why not say you love the taste of chocolate but hate the taste of cocoa? They're performing the same function for the runtime!
I want to like Python, but its community of people who just refuse to understand how other languages relate to their favorite language really frustrates me. I'm not sure I can even count how many times a pythonista has challenged me, “What do you mean Python doesn't have real lambdas? _You don't even know Python!_” Given how important a community is to a language (see also: common lisp), it's difficult to overlook stuff like this.
- Davertron 17y agoI'm not really sure what you're talking about; his whole point referring to Objective-C was that the reason it's popular isn't because of any of its particular language features (i.e. "other languages are equally powerful"), it's popular because Apple took it and built a whole bunch of great libraries with it for its computers so that, if you want to program applications on a Mac, and you want to use things like Core animation and all of that, you're probably going to end up using Objective-C.
- deleted 17y ago[deleted]
- jlongster 17y agoI wrote that tongue-in-cheek. Objective-C is superior to Python in so many ways, but why is Python more widely used? The average programmer can get along fine with Python, and Objective-C just looks more complicated. I'm saying this from the view of a typical programmer. What is written in PLT, and who uses it? I'm not talking about great technology, I'm talking about putting that into practice. I use Gambit Scheme and I think it's the best system out there. But I'm challenging Scheme programmers to make great things, and put them to use, and give people a reason to learn Scheme.
- rpdillon 17y agoNot meant to be a thread hijack, but I guess it is anyway... I put up a blog post last night with some troubles I was having in Gambit (my site with the post: http://etherplex.org http://etherplex.org) I'm very new to non-JVM hosted languages, so I'm not yet sensitive to where the performance pitfalls are. Essentially, a professor of mine gave me a program in C that boiled down to a for loop doing 144 million iterations with a check inside of it, and an increment if the check passes. The C program runs in 1 second, and the straight port to Gambit I attempted runs in about 8 minutes. I posted code, in hopes someone might spot my error. Are nested do statements or let statements particularly expensive, or did I make some bone-headed mistake somewhere when I ported it over? It's not meant to be functional (yet), I thought I'd just start with an imperative implementation and go from there, since that was what the original code was. Thoughts?
- jlongster 17y agoI will take a look at it later tonight. But the first thing you need to do is add this to the top of your Scheme file: (declare (block) (standard-bindings) (extended-bindings)) These are statements to let the compiler optimize things, losing some dynamicism. That should increase it a lot. When it comes to tight loops, Gambit doesn't usually do as good of a job because of its garbage collector (it doesn't optimize for lots of small short-lived objects), which is planned to be fixed in the future.
- rpdillon 17y agoThanks very much...those settings don't seem to help much, but they've led me to the area of the documentation that I haven't looked at before. I'll read through it and learn a bit more about the compiler settings.
- grettke 17y agoYou might post it to a Scheme related list: http://www.wisdomandwonder.com/scheme http://www.wisdomandwonder.com/scheme