Questions tagged [opa]

Opa is an open source programming language for both backend and frontend web development. Opa therefore provides a unified syntax and semantics for writing all aspects of a web application: client-side, server-side and database queries. But it’s not only about expressiveness: Opa also features a unique type system that provides strong static typing from the client UI to the MongoDB queries.

Important links:

251 questions
16
votes
1 answer

Opa vs Dart vs Haxe vs CoffeeScript

I've been googling for latest web apps, and found the following languages: - Opa - Dart - Haxe - CoffeeScript Since these languages are new, there are not many information available. Can anyone explain the advantages and disadvantages of these…
Gokul Nath KP
  • 15,485
  • 24
  • 88
  • 126
6
votes
4 answers

Which IDE to use for Opa programming and how to host Opa code?

I am Dot Net developer and would like to try using Opa, my questions are: What's a good IDE to use? How to host Opa code?
5
votes
3 answers

generating static pages in OPA

In one of my project, I have to write HTML & JavaScript code. I would prefer to use a statically typed language instead, so I'm evaluating OPA. However, my goal is to generate a collection of static pages, so I don't care about the OPA HTTP server…
Thomas
  • 5,047
  • 19
  • 30
5
votes
1 answer

Opa: How to Efficiently Read/Write a Large Number of Records

The Problem I need to read and write a large number of records (about 1000). The example below takes as long as 20 minutes to write 1000 records, and as long as 12 seconds to read them (when doing my "read" tests, I comment out the line do…
nrw
  • 819
  • 2
  • 7
  • 22
5
votes
2 answers

Can opa extensions be written in Ocaml?

I notice that included in the source of the OpaWhiteBoard example, there is a .ml file here: https://github.com/hhugo/OpaWhiteBoard/blob/master/src/opacairo/cairo.ml This appears to be OCaml with some directives ("##"). I'm guessing this means it's…
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
5
votes
2 answers

How to do File I/O in Opa?

After reading (nearly) the whole ebook and taking a look at the API i am still asking myself how to realize "traditional" web server behaviour with opa. I understand (at least i believe that) that opa links external resources specified at compile…
user830179
5
votes
1 answer

Is it possible to create a global variable in Opa?

In MLState's new programming language Opa, is it possible to create a global variable?
J D
  • 48,105
  • 13
  • 171
  • 274
5
votes
1 answer

What exactly is the executable produced by Opa?

Is it a server? Or do I need to run Opa behind apache? Basically - if I want to deploy an Opa application, would it be as simple as launching the executable on a VPS for example, or would I need some other stack elements? EDIT: Noticed a similar…
arcologies
  • 742
  • 1
  • 6
  • 22
4
votes
1 answer

Opa: How to Interact With the Database Without Blocking the UI

The Setup I have a (rather standard) form that allows a user to create an account by entering a username and password. When the #username field loses focus, the database is queried to see if the supplied username is available. The…
nrw
  • 819
  • 2
  • 7
  • 22
4
votes
1 answer

Is Opa's graph-based database available separately?

I'm guessing that Opa's graph-based database is written in OCaml. Is it available as a separate project so that it can be used from an OCaml program?
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
4
votes
1 answer

How to catch error

I was using function Float.of_string to convert an input obtained by a formular. Surely the user could be a bad guys and write a sentence instead of a float number in the input :) There is lot of solution, to test the string input... But In my mind…
Mattgu74
  • 224
  • 1
  • 6
4
votes
1 answer

Equivalent of List.exists for Db

I've used List.exists( ), i woudl like to know if there is an equivalent for Db. If i have a function f(e) : bool, i would like to know if there is at least one element e, with f(e) -> true. Currently i use the Db.intmap_fold_range( ), but it…
trecouvr
  • 743
  • 5
  • 7
4
votes
1 answer

How does one access HTML Canvas elements in Opa?

Is it possible to access HTML5 canvas elements in Opa?
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
4
votes
2 answers

How is Opa handling communication between client and server?

Is Opa using AJAX or Websockets? I'm guessing it would be the former. What if I want to use websockets instead of AJAX? Or is it similar to socket.io for Javascript - if the browser supports Websockets it uses them, otherwise it falls back to…
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
4
votes
1 answer

Opa: how does it identify server-side or client side script

I am recently interested in learning a new language called Opa which seems to be promising when I read about it. As far as wikipedia describes it, it is capable of client-side,server-side scripting as well as can also be used for database (correct…
Jack_of_All_Trades
  • 10,942
  • 18
  • 58
  • 88
1
2 3
16 17