Serious question. I was about to open a dedicated thread, but this one seems to be fine (if we exclude spam and trolling).
I'm searching for a new programming language to learn. I'd like to have something like python on the speed-of-programming point of view, but with a strong threading model (which totally lacks in python, unfortunately).
>>27
What about Jython? It's python running on top of the JVM, so you get the JVM's threading model. If you've programmed in a lisp dialect, maybe Clojure fits you; these days it's becoming a not so fast, by now at least, but with good constructs for concurrency; using the very same JVM's threading model.
Except the spec essentially requires that the threads be processed sequentially.
really advanced FIOC
IHBT
>>27
Haskellﷺ (you can easily go as slow as python if you use [Char] instead of ByteString.
Name:
Anonymous2010-01-31 4:26
>>27
Lua is probably the closest thing to Python that has a nice concurrency model ( http://luaforge.net/projects/luapi/ ). Library availability is better than commonly implied, but the Lua community is pretty disorganized when compared to that surrounding Python, Perl, or Ruby.
Erlang's community is somewhat better, but that's a whole different ball game.
I don't know where Perl falls into this. I know it can be thread-safe (no GIL), but I don't know much about Perl concurrency.
Name:
Anonymous2010-01-31 6:12
>>32
Personally I dislike Perl. It's well known as good system language under *nix, but I think it's not very self-coherent. It seems like it has been built by patching patches over a patched language. This is just my impression, of course.
What about it's threading model?
Name:
Anonymous2010-01-31 6:36
>>33
threading in perl is fine as far as i know.
you are right though, perl is not a good idea for a embemed scripting language. it has quite a complicated and somewhat messy syntax, but it is quite powerfull and flexible.
that doesnt mean that every perl program is a mess, you can write quite clean programs in perl ofcourse.
Lately I've really been enjoying Scala. Sure, it's not perfect (runs on the JVM, with expected overhead issues) but I do like how it marries functional and object-oriented programming in a very usable way that took a C-trained programmer like me a few days to really feel at home in.
If perfect means perfect in every way, there isn't one. But of all the languages I have worked with much, I'm enjoying Scala as much as C, and I'm sure nostalgia for my first useful language affects my opinion of C.
This is purely from a joy-of-programming standpoint, not taking into account efficiency of compiled code etc.