From: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCaml compared as a scripting language
Date: Mon, 14 Jun 2004 17:29:07 +0100 [thread overview]
Message-ID: <20040614162907.GA17265@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0406141049260.4243-100000@localhost.localdomain>
Sure. I think it's pretty cool that an application language does
relatively well as a scripting language, when it plainly wasn't
designed to do that.
I think it'd be possible to assemble a very capable scripting language
without affecting the core language at all. "OCamlScript" would be:
* normal OCaml
+ Regexp/OCaml (a Camlp4 extension, modified to use pcre)
+ File utilities module
+ ExtLib
+ a bunch of helper functions which I've been writing (eg. slurp
all lines of a file into memory in various ways) - some of this
is in ExtLib.
It might also make sense to add some operators using Camlp4 for
handling files. eg. I've always thought it's a crying shame that you
can't write to a file in Perl using 'command >filename'. You could
actually _do_ something like that in OCaml + Camlp4, which could be a
real timesaver.
This would be an interesting project for someone ...
Rich.
--
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
'There is a joke about American engineers and French engineers. The
American team brings a prototype to the French team. The French team's
response is: "Well, it works fine in practice; but how will it hold up
in theory?"'
-------------------
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:[~2004-06-14 16:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-14 9:52 Richard Jones
2004-06-14 15:55 ` Brian Hurt
2004-06-14 16:29 ` Richard Jones [this message]
2004-06-15 6:40 ` Florian Hars
2004-06-15 16:13 ` Bruno.Verlyck
2004-06-15 17:15 ` Richard Jones
2004-06-15 17:35 ` John Goerzen
2004-06-15 18:16 ` Karl Zilles
2004-06-15 19:23 ` John Goerzen
2004-06-15 21:17 ` Alex Baretta
2004-06-16 2:12 ` skaller
2004-06-15 17:41 ` Jon Harrop
2004-06-15 17:42 ` William D. Neumann
2004-06-15 18:27 Hellflame
2004-06-15 20:07 ` Brian Hurt
2004-06-16 2:26 ` skaller
2004-06-16 11:00 ` sejourne kevin
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=20040614162907.GA17265@redhat.com \
--to=rich@annexia.org \
--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