caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kuba Ober <ober.14@osu.edu>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] [announce] O'Browser : OCaml on browsers
Date: Tue, 18 Nov 2008 13:18:08 -0500	[thread overview]
Message-ID: <200811181318.10282.ober.14@osu.edu> (raw)
In-Reply-To: <200811180818.01042.jon@ffconsultancy.com>

On Tuesday 18 November 2008, Jon Harrop wrote:
> On Monday 17 November 2008 16:20:50 Benjamin Canou wrote:
> >   Hi,
> >
> > O'Browser is an implementation of the OCaml virtual machine in
> > JavaScript, designed to run in web browsers.
> > It features a runtime library compatible with OCaml's standard one
> > (including OOP and concurrent threads) and bindings of some JavaScript
> > functions to manipulate the DOM primitives.
> >
> > The distribution is available at [1] and an online version of the
> > tutorial is reachable at [2].
> >
> > Please note that this is an early version, in particular the DOM
> > interface module is neither pretty nor well typed.
> > However, it can already be used to create little applets or scripts (as
> > in the tutorial [2], the examples of the distribution [3] or my webpage
> > [4]) and we'll be glad to receive your comments or bug reports.
>
> This is a really awesome project! Performance is fine on a decent browser.
> Times taken to highlight syntax_common.ml on this machine:
>
> Chrome:     0.5s
> Firefox:    1.1s
> IE7:        5.7s
> Konqueror: 17.5s
>
> Looks like you've got an OCaml bytecode interpreter written in Javascript.
> Could you write a compiler and call eval to get better performance?

That's what I was gonna suggest: if one could sorta-kinda macro-expand
bytecode interpreter running on some bytecode, then JIT platforms such
as tracemonkey could dramatically improve the performance of such code.

Cheers, Kuba


  reply	other threads:[~2008-11-18 18:18 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-17 16:20 Benjamin Canou
2008-11-18  3:43 ` [Caml-list] " Kuba Ober
2008-11-18  7:33   ` David Teller
2008-11-18 18:15     ` Kuba Ober
2008-11-18 18:32       ` Vincent Balat
2008-11-18 20:01         ` David Thomas
2008-11-21 15:27           ` Benjamin Canou
2008-11-30 12:09             ` William Le Ferrand
2008-11-18  8:18 ` Jon Harrop
2008-11-18 18:18   ` Kuba Ober [this message]
2008-11-18  8:33 ` Florian Hars
2008-11-18  9:12 ` Paolo Donadeo
2008-11-18  9:14 ` Burgisser Francois
2008-11-18  9:40   ` Gabriel Kerneis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200811181318.10282.ober.14@osu.edu \
    --to=ober.14@osu.edu \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).