From: Bruno.Verlyck@inria.fr
To: dbely@mail.ru
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Cash 0.10
Date: Fri, 19 Jul 2002 16:05:17 +0200 [thread overview]
Message-ID: <200207191405.g6JE5HU10490@waco.inria.fr> (raw)
In-Reply-To: <heiwcn7z.fsf@mail.ru> (dbely@mail.ru)
X-Comment-To: Bruno.Verlyck@inria.fr
From: Dmitry Bely <dbely@mail.ru>
Date: Fri, 19 Jul 2002 09:15:28 +0400
Bruno.Verlyck@inria.fr writes:
> I'm pleased to announce the first release (0.10) of Cash, the Caml Shell.
Just curious: is it possible to build (some subset of) Cash under
Win32?
I'm afraid you'd have to use Cygwin (and the CVS sources, or the next
version). Cash aims at providing another Posix interface, oriented
towards shell programming: you must be able to fork...
As for a subset: the present decomposition of Cash in modules is very
ad-hoc: the only exported interface include all of them, and most
modules are related to a slice of the documentation, but they often
depend on others. One could make a much finer work, to be able to
link only some parts of Cash. But:
- it's a lot of work (and the documentation should be restructured);
- I'd better add the missing parts of scsh, and a syntax for pipelines;
- I have no experience of Windows programming, and am not really
interested in it (sorry).
All this could evolve if there's enough interest, but not in a near
future.
Also, does it need Ocaml/Ocaml libraries when running? Can I use
Cash on the computer where Ocaml itself is not installed?
I didn't tried it. You have 2 ways of using Cash:
- you can make stand-alone executables, with -custom; this should
work, but you have to compile each of your applications;
- you use it in script mode, so it uses a Caml top-level. For any
reference to the Caml standard library, the top-level must have
access to the .cmi; e.g., if I just type:
# String.length;;
under a fresh top-level, tracing it shows that it reads strings.cmi:
stat64("string.cmi", 0xbfffeb20) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/ocaml-3.04/contrib/string.cmi", 0xbfffeb20) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/ocaml-3.04/contrib/string.cmi", 0xbfffeb20) = -1 ENOENT (No such file or directory)
stat64("string.cmi", 0xbfffeb20) = -1 ENOENT (No such file or directory)
stat64("/usr/local/lib/ocaml-3.04/string.cmi", {st_mode=S_IFREG|0600, st_size=3069, ...}) = 0
open("/usr/local/lib/ocaml-3.04/string.cmi", O_RDONLY) = 3
read(3, "Caml1999I008\204\225\246\276\0\0\v\220\0\0\2M\0\0\10I\0"..., 4096) = 3069
close(3) = 0
write(1, "- : string -> int = <fun>\n", 26) = 26
So for script mode, the answer is no.
Bruno.
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
next prev parent reply other threads:[~2002-07-19 14:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-05 17:18 Bruno.Verlyck
2002-06-05 23:38 ` Michael Vanier
2002-06-06 9:37 ` Bruno.Verlyck
2002-07-19 5:15 ` Dmitry Bely
2002-07-19 14:05 ` Bruno.Verlyck [this message]
2002-07-19 20:29 ` Dmitry Bely
2002-07-22 17:50 ` Bruno.Verlyck
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=200207191405.g6JE5HU10490@waco.inria.fr \
--to=bruno.verlyck@inria.fr \
--cc=caml-list@inria.fr \
--cc=dbely@mail.ru \
/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