Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Web Development

Language of the Month: Opa



Related Reading


More Insights




Andrew Binstock

I believe that's part of Opa's evolution in the two years since this article first appeared.

mozillanerd

I have noticed a discrepancy in the information provided here and in http://en.wikipedia.org/wik... about the compiler's result - here the result is an executable with extension .exe, in the wikipedia document the compile steps results in an 'executable' .js file.

AdamKoprowski

As for CSS and similar resources Opa has a special "development" mode where such resources are mapped to the file system, can be edited (with immediate changes in the running application) and only then the app can be recompiled to embed those changed files. [http://doc.opalang.org/inde..., http://blog.opalang.org/201...]
As for the code Opa supports a plug-in mechanism which allows linking against other libraries, which can be written either in Opa or in other languages (JS, C, Ocaml), [http://doc.opalang.org/inde...].

Matthew Skelton

How are external dependencies managed?
Having evreything in one deployment package is nice, but we've been here before, and often it's essential to be able to swap out a particular sub-component (library, DLL, SO, etc.) for a newer (fixed) version. Same goes for other assets (CSS, etc.).
To have to rebuild the whole unit just for a CSS change seems extreme, or have I missed something?

PRAMENSKY000

WT achieves this using C++.

AdamKoprowski

Apart from Opa I think there is Node.js and Ur/web that are trying to do that. But indeed, there does not seem to be a *popular* language (Ruby on Rails aside) using this approach. Of course my hopes are high that Opa will fit this bill one day :).

Andrew Binstock

Weird that after the success of Ruby on Rails, no other language has embraced this approach. That is, of using one language for all three tiers.