caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alexsandro Soares <a_s_soares@yahoo.com.br>
To: lista OCaml <caml-list@inria.fr>
Subject: A small footprint GUI for OCaml
Date: Sat, 26 May 2007 15:09:43 -0700 (PDT)	[thread overview]
Message-ID: <20070526220943.45293.qmail@web51612.mail.re2.yahoo.com> (raw)

My collaborators and I wrote a small footprint graphics.cmxa based GUI for OCaml.  It works well on Windows, but not so well on Linux. In fact, in most Linux installations the program turns out to be unbearably slow; to make it usable, I am forced to use powerful and well tuned video cards. However, if I compile the program on  Windows, and use CEDEGA, I am able to run it on Linux.  I would appreciate if members of the list take a look at the sources, and make suggestion to run the program on Linux. You can download the sources from

http://www.discenda.org/ocaml/bed.zip

After downloading, you can compile it thus:

ocamlopt graphics.cmxa wid.ml nw.ml -o nw

If you run the program, and click on a tab (for instance, on the "blabla" tab), you will find yourself on a Emacs like editor. You can type text, and use Emacs commands, like:

1-- Ctrl-b  : Back step
2-- Ctrl-f  : Step forward
3-- Ctrj-j  : Break a line
4-- Ctrl-p : Previous line
5-- Ctrl-n : Next line
6-- Ctrl-d : Delete a char
7-- Ctrl-q : Toggle Backspace from backerase to backstep
8-- Ctrl-e : Beginning of line
9-- Ctrl-a : End of line
10-- Esc-space + Esc w : Put text between mark and point in the kill ring.
11-- Ctrl-y : yank
12-- Ctrl-w Ctrl-s : Save buffer
13-- Ctrl-w Ctrl-w <file name> : Save as
14-- Ctrl-x Ctrl-f : Visit file
15-- Ctrl-t : Execute OCaml funcion on text
16-- Ctrl-r : Toggle between result of the execution and original text

There are two kinds of text. One is just a text. The other is a data entry form. Please test the program on Linux, and make suggestion about how to change it in order to make it run as well on Linux as on Windows.


__________________________________________________
Fale com seus amigos  de graça com o novo Yahoo! Messenger 
http://br.messenger.yahoo.com/


             reply	other threads:[~2007-05-26 22:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-26 22:09 Alexsandro Soares [this message]
2007-05-27 14:52 ` [Caml-list] " Eric Cooper

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=20070526220943.45293.qmail@web51612.mail.re2.yahoo.com \
    --to=a_s_soares@yahoo.com.br \
    --cc=caml-list@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).