Events
2024-09-16
Come and learn Ocsigen at FUN OCaml in Berlin!
Eliom lets you write client and server code in the same file, and as a single program. The compiler checks that they stay consistent — no more broken APIs!
A single codebase compiles to a Web app and to mobile apps for iOS and Android.
Compile any OCaml program to JavaScript or WebAssembly. WASM delivers near-native performance; JS ensures compatibility with all browsers.
Works directly from OCaml bytecode — use any OCaml library without recompiling. Seamless interop with JavaScript libraries.
let fib num =
let rec aux num prec2 prec =
if num = 0
then prec
else
aux (num - 1) prec (prec + prec2)
in aux num 1 1function fib(num)
{var num$0=num,prec2=1,prec=1;
for(;;)
{if(0 === num$0)return prec;
var
prec$0=prec + prec2 | 0,
num$1=num$0 - 1 | 0,
num$0=num$1,
prec2=prec,
prec=prec$0;
continue}}function(d){var b=d,c=1,a=1;for(;;){if(0===b)return a;var b=b-1|0,e=a+c|0,c=a,a=e;continue}};➔
➔
Compile OCaml to JS and WebAssembly. Run in any browser.
Write client and server as one program. Deploy to Web and mobile.
Production-ready Web server with native OCaml integration.
Concurrent programming made simple — no callback hell.
Key-value store for data that survives server restarts.
Type-safe HTML/SVG generation. Invalid markup won't compile.
Ready-to-use UI widgets for Web and mobile apps.
Complete starter app with users, notifications, and mobile support.