News for hackers. Stuff that matters.
Re:The Opa Framework for Javascript by eranation on Friday October 12, 2012 @09:28PM (#4647552)
Opa - Gangnam style: http://opalang.org/gangnam.style.html

Jokes aside, this seems like a serious project, and has some sort of connection to OWASP https://www.owasp.org/index.php/Opa

a secure javascript framework? write server side and client side in the same language (anyone said Meteor)? I'm going to try this.

prediction: HN front page posts about opa will exceed posts about Go in the next year.

EDIT: unfortunately, using TypeScript will not work here, seems Opa is generating JavaScript itself. Still interesting in any case.

Re:The Opa Framework for Javascript by T-R on Saturday October 13, 2012 @12:40AM (#4647923)
I'd maybe argue that "framework" is a bit of a misnomer - Opa is a programming language based on ML (it was originally called MLState) where the compiler determines/enforces what runs on the client or server. It originally compiled down to native code on the server via OCaml as well as front-end Javascript, until the more recent switch to using Node.js on the backend. A lot of the security benefits it offers likely come from the type system (with type inference), probably similar to building a site in Haskell (compile-time errors on unclean strings, type-safe URLs, etc.).

Along side of this, it includes a slew of libraries and tools for doing things like authentication, interfacing with specific web services, and building websites, which is why it seems they've started to focus on the "framework" aspect.

Re:The Opa Framework for Javascript by stesch on Saturday October 13, 2012 @04:13AM (#4648171)
To your prediction: Nope, Opa is an old thing already. Maybe it was a interesting project when they compiled to native code, but now it's just another way to use node.js.

I would have used it 2 years ago but there seemed to be no easy way to use HTML5 with it. It was fix with XHTML 1.1.

Re:The Opa Framework for Javascript by hbbio on Saturday October 13, 2012 @04:54PM (#4649667)
I'm the creator of Opa. When we released Opa in June 2011, it had only a native backend. Most of the feedback we got was to support a standard runtime, which we did when we chose to target Node.js as we already generated JavaScript client code.

Why (now Opa supports HTML5 and the like) do you think native backend is better?

Re:The Opa Framework for Javascript by greyfade on Thursday October 18, 2012 @04:16AM (#4667879)
Personally, Node.js+MongoDB is counter to my intended use cases. NoSQL databases are incompatible with my data models. Node.js has limitations in responsiveness, especially for complex (read: data/code-heavy) responses.

It simply doesn't meet my needs, and the community's focus is on improving areas that are completely orthogonal to my needs.

A native backend that is properly threaded and uses, e.g., continuations and thread pools to manage highly concurrent requests is far more preferable compared to Node.js, and proper support for RDBMS and memcached meets my needs better than MongoDB could ever dare dream.

Re:The Opa Framework for Javascript by wickedbass on Friday October 12, 2012 @10:00PM (#4647622)
hahah - work time well spent