Announcing Ozma: Extending Scala With Oz Concurrency 38
setori88 writes "Programming for concurrency makes sense in developing for both large
scales (cloud computing) and small (multicore CPUs). Some languages
were designed for concurrency and distribution; One of those languages
is Oz, which provides advanced primitives regarding concurrency and
distribution. Oz is mostly declarative, a paradigm that encompasses
functional and logic programming. Despite its innovative features and
expressiveness, Oz never made it into the wide developer community;
one reason is its
unusual
syntax." Read on to learn about an effort to bring Oz's concurrency
features to more programmers.
setori88 continues: "But first, some background: Martin Odersky, in designing the Scala programming language, recognized the need for community acceptance of the kind that Oz lacked. He designed Scala as being both close to Java (in terms of syntax and concepts) and interoperable with existing Java libraries. Today, Scala seems to be the best hope for making functional programming accessible to programmers.
Although Scala has no language feature related to concurrency, the advanced library Akka, inspired by Erlang, provides Scala programmers with concurrent and distributed concepts.
Now comes a project attempting to popularize the concurrency concepts of Oz, called Ozma. Ozma implements the full Scala specification and runs on the Mozart VM. It extends Scala with dataflow variables, declarative concurrency, lazy declarative concurrency, and message-passing concurrency based on ports. Ozma extends the duality of Scala, namely the combination of functional and object styles, to concurrent programming."
Frustrating name (Score:2)
I have a hard time imagining why you would use a name in 2003 that has been the name of a software product and a software company that you don't even work for since 1987. It would be like naming a programming language "Borland" when you work for Seagate.
Re: (Score:2)
Or the name of a Rock band from Pasadena, CA.
Yeah, that's almost as relevant as the name of a knitting needle manufacturer in Sasketchewan. On the other hand, Scala is a digital presentation and signage system, featuring a scripting language called ScalaScript. Years later we get a programming language called Scala. This is inherently confusing.
Re: (Score:1)
fun {Send X} {Port.sendRecv Server.port X} (Score:2)
[] X#nil then Z=X (Score:3, Informative)
1. Almost zero documentation on getting the language to (partially) compile and/or run outside of Eclipse. I'm not sure how I ever figured this out, to be honest.
2. Lack of a decent file I/O library. When was the last time you had to write your own streamreader for a business application?
I am thrilled to see Oz getting more mainstream attention - the whole dataflow concept is very cool, and it's fun to write.
Re: (Score:2)
You have quite a good point. If syntax weirdeness were a problem, C would have never taken off. Lack of decent I/O is the problem with most languages that are easy to paralelize. It seems that most such languages aren't defined with I/O in mind, and it is easy to imagine why, doing I/O in a paralel environment is very complex.
Re: (Score:3)
Eclipse? WTF?
Not sure if it even runs in Eclipse... It's pretty tied to Emacs though. I think the Browser is ok for seeing concepts, but I doubt I'd care to use it for serious programming though. I've been compiling what I code in oz with vi, and running it on the command line.
The documentation needs to be better though. I did buy http://www.info.ucl.ac.be/~pvr/book.html [ucl.ac.be], but the online docs need some polishing and completing, especially section 12 of the tutorial since that's where much of the cool stuf
Re: (Score:3)
"Another annoying thing is that Oz only runs in 32 bit so far."
When I tried it around 1.5 year ago, the database libraries were quite buggy (they borrowed them from tcl IIRC). So I don't think it can be considered a production ready language.
CSP (Score:4, Informative)
If I remember correctly, "#" is for constraint statisfaction problems (delayed goal), and I think that operator shouldn't be taught to an Oz newbie, as Constraint Logic Programming is a paradigm onto itself (and not just paradigm, as in thinking pattern, but it involves quite a lot of complex algorithm that run in the background (demons), and non-sequantial execution).
Last time I installed Oz, it came with Emacs bundled by default.
Re: (Score:1)
Oh yeah, Emacs, not Eclipse. *facepalm* My bad. I just remember it was an IDE that I couldn't get working at the time, and had to dig through docs for literally days to figure out how to compile from the command line.
At least in the subject line of my original comment, # is just an infix representation for a tuple. From the Oz Tutorial [mozart-oz.org]:
"A common infix tuple-operator used in Oz is #. So, 1#2 is a tuple of two elements, and observe that 1#2#3 is a single tuple of three elements: '#'(1 2 3) and not the pa
Re: (Score:2)
Well, I haven't used Oz in a while, but my first exposure consisted some conference slides, and it was quite overwhelming as it involved a CSP without even properly clarify the syntax. And in Prolog CSP frameworks "#" means constraint equality. (CSP got "mainstream" with Prolog first.)
On the other hand I agree that Emacs feels ass-backwards.
Disingenuous (Score:2)
Scala's actor framework is indeed built in, and works very well for multi-core scaling. What it doesn't have is a distributed concurrency model that makes it trivial to run a single "program" on multiple weakly-connected systems ("in the cloud.")
Excuse me (Score:2)
Re: (Score:2)
No, normaly dumb people prefer to cast doubt on perfectly made arguments when they want to sound important.
Those words have a meaning, a quite clear and well define done. Learn those meanings if you want to talk about the subject in question.
Re: (Score:2)
Re: (Score:2)
Yep, I agree that the language seems pointless, but you'd have a way better reception if you criticised the language (or the "advanced primitives" phrase), instead of arguing against well known and rightly used jargon.
Re: (Score:2)
Re: (Score:2)
All of the features touted in this language are things that either already exist, or for any well designed application be a non-issue.
There's more to language design than creating new features. Most languages I've seen introduce few, if any, new or fundamental features, but instead seek different balances in the various tradeoffs involved. Off the top of my head, those tradeoffs include things like raw speed, syntax expressiveness, syntax flexibility, memory consumption, number, breadth and convenience of builtins and number, breadth and convenience of libraries.
Most languages even seek to remove some mundane aspects of architecting a "we
Re: (Score:2)
In programming, "paradigm" usually refers to a mindset or a "way of doing things." You might find this [rosettacode.org] useful.
Re: (Score:2)
I think Scala is mostly used by Lambda-the-ultimate fabboys, who just fall in love with everything if it has anonymous functions and continuations, and don't really give a shit about productivity, developer training, good documentation, good tool support or performance.
Re: (Score:3)
I bought the MIT book about Oz, and it was really fun. (Read only 3 chapters) However I can't imagine learning it from PowerPoint slides. (Especially if you got shown a constraint statisfaction problem right-away.) By the way it seems less weird for me than Haskell or Common Lisp. * (I'm just fiddled with them, don't know them at any usable level.)
I think when you understand the canonic representation of program structures, and how the flow of control goes, it does seem quite sensible.
On the other hand when
Re: (Score:3)
I mean this book:
http://www.info.ucl.ac.be/~pvr/book.html [ucl.ac.be]
"Advanced primitives"? (Score:2)
So it's got "unusual syntax" AND builtin oxymorons? Sign me up!
Why Ozma? (Score:1)
It's true that the Oz runtime system, libraries, and development environment are not as good as mainstream systems like Java. But that's not the point!
The point is concurrent programming: Ozma (and Oz) have a concurrency model worlds beyond that of Java, and much better even than Scala or Erlang. Simple, easy to program in, and with very few race conditions (zero if your program uses only dataflow and no ports). If you haven't seen this model, you can't imagine how much better it is than the crud that Ja