Skip to content
SPECIFICTION
Get listed

Google Web Toolkit vs js_of_ocaml

Google Web Toolkit

gwtproject.org

js_of_ocaml

ocsigen.org

Side by side

FigureGoogle Web Toolkitjs_of_ocaml
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WebYesYes
WindowsYes—
macOSYes—
LinuxYesYes
API—Yes
Plans published11
Spec score · Code Transpilers8.3 (#6)8.4 (#5)
PurposeGoogle Web Toolkit is an open source Java software development framework for writing AJAX applications.js_of_ocaml compiles OCaml bytecode programs to JavaScript for use in browsers and Node.js.
SupportQuestions can be posted to the GWT developer discussion group on Google Groups, where the engineering and operations team participates.The project asks users to report problems or questions through GitHub issues and include version details and a minimal reproducible example when possible.

Plans

Google Web Toolkit

  • FreeFree

Google Web Toolkit pricing →

js_of_ocaml

  • js_of_ocamlFree

js_of_ocaml pricing →

In their own words

Google Web Toolkit

Google Web Toolkit (GWT) is a free, open-source Java framework for building AJAX web applications. Its compiler converts Java applications into JavaScript and HTML for browser use, and the SDK includes the core libraries and compiler. Deferred binding generates browser-specific code at compile time, while the compiler can create separate application versions for different browsers and languages. Applications can communicate asynchronously with servers through GWT RPC or JSON. An Eclipse plugin provides IDE support and an option to install the SDK. The developer guide covers deployment to Google App Engine, JUnit unit testing and Emma code coverage; documentation also includes SafeHtml guidance for XSS prevention and GWT RPC XSRF protection. GWT is licensed under Apache 2.0 for non-commercial, commercial and enterprise applications. Version 2.13.1 is listed for Windows, Mac OS X and Linux. Development mode and the compiler periodically send a timestamp ID and product version to Google; Google says it does not log cookies or personal information. The webAppCreator utility has been deprecated since version 2.11.0.

Visit gwtproject.org

js_of_ocaml

js_of_ocaml compiles OCaml bytecode programs into JavaScript for browsers and Node.js. It works with an existing OCaml installation and does not require libraries to be recompiled. Installation is available through opam, while Dune supports separate compilation in development and whole-program compilation in release builds. Whole-program compilation performs global dead-code elimination and cross-module optimization. The library provides a typed bridge between OCaml and JavaScript, including PPX syntax for properties, methods, constructors and objects. Browser bindings cover the DOM, Fetch, WebSockets, WebGL, workers and typed arrays. Optional packages add Lwt support, TyXML, JSON derivation and an OCaml toplevel in the browser. Documented targets include Node.js 18 or later, QuickJS-NG and modern ECMAScript 2020 browsers, including Chrome 80+, Firefox 74+, Safari 13.4+ and Edge 80+. Requirements include OCaml 4.13–5.5, Dune 3.20 or later and Menhir. The project is free and open source.

Visit ocsigen.org