caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "William Le Ferrand" <William.Le-Ferrand@polytechnique.edu>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] [announce] O'Browser : OCaml on browsers
Date: Sun, 30 Nov 2008 13:09:07 +0100	[thread overview]
Message-ID: <5e5d16b10811300409o85edd3cv3042e720555db331@mail.gmail.com> (raw)
In-Reply-To: <1227281254.6375.23.camel@localhost>

[-- Attachment #1: Type: text/plain, Size: 2715 bytes --]

Hi !

Thank you for this amazing work !

I'm rewriting large parts of my website using this tool, and I may have
found two little bugs :

* get_attribute (in rtjs.js)

when get_attribute "toto" returns a boolean, value_from_string returns the
empty string (this is nasty ..)

(temporary) solution : in rtjs.js, just cast on line 33 with something like

  return value_from_string (v == null ? "" : (v+""));

* input (in js.ml)

it seems that the editable function

    editable = (
      function
          true -> (try  Node.remove_attribute node "disabled" with _  -> ())
        | false -> Node.set_attribute node "disabled" "disabled"
);

works better. (at least it works with buttons, check boxes and so on)

Thank you again !

All best,

William Le Ferrand

www.beouifi.org

2008/11/21 Benjamin Canou <benjamin.canou@gmail.com>

>  Hi,
>
> >From Kuba Ober:
> > Pardon the question, but is this meant to be "useful" in the future,
> > or is it just a fun experiment (in which case the next target should
> > be brainfuck).
> Coming soon: the OCaml VM on a turing machine !
>
> >From Burgisser Francois :
> > Good idea but maybe a browser plugin to manipulate DOM would be much
> > more efficient.
> >From Gabriel Kerneis:
> > But, sadly, much less portable.
> >From Jon Harrop:
> > Could you write a compiler and call eval to get better performance?
> >From David Thomas:
> > I'd like to see a plugin that makes available to JS a function to
> > execute ocaml bytecode.
>
> Our plan is to achieve efficiency with a (not yet available) browser
> plug-in (the original bytecode interpreter or the native compiler) while
> remaining portable by using the JavaScript VM where the plug-in is not
> available. So we don't currently focus on optimizing (and complexifying)
> too much the JavaScript version.
>
> >From David Teller:
> > To me, the fact that you can write portable lightweight applets sounds
> > like a good enough reason. That and the fact that I can see this being
> > used by stuff like Ocsigen to make for (even) richer client-server
> > applications.
>
> Indeed, as Vincent wrote, even if O'Browser is at this point only a
> client-side scripting core, it takes place into the Ocsigen project and
> will be used to interact with (OCaml) server code (in its current form
> or not).
>
>  Benjamin Canou.
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



-- 
William Le Ferrand

E-mail : william@beouifi.org
Mobile : +33 6 84 01 52 92

[-- Attachment #2: Type: text/html, Size: 4148 bytes --]

  reply	other threads:[~2008-11-30 12:09 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 [this message]
2008-11-18  8:18 ` Jon Harrop
2008-11-18 18:18   ` Kuba Ober
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=5e5d16b10811300409o85edd3cv3042e720555db331@mail.gmail.com \
    --to=william.le-ferrand@polytechnique.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).