From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@inria.fr
Subject: [Caml-list] OCaml as fancy calculator...
Date: Sun, 5 Aug 2001 11:16:04 +0200 (MET DST) [thread overview]
Message-ID: <Pine.LNX.3.95.1010805110027.163A-100000@first.in-berlin.de> (raw)
Hello,
in the examples of the introductional texts to OCaml
is mentioned, that OCaml may be used as a fancy
calculator.
Ok, if I take this idea, I want to have some mathematical
libraries, like histograms (frequencies) and the like.
If I write some often-needed mathematical routines,
so that it can be used with file-based OCaml-programs
for compilation, how can I use such files (or the compiled
byte-code or binaries) for interactive sessions with
ocaml?
Is this the first step to use the module system?
Or can I start with things like "include"-statements
in other calculator-like programs? (Including
source-files like an #include in C or load-commands
of some programs.)
I think about writing some mathematical routines
and maybe some output-routines to postscript
(Or maybe I can use cdk for this?).
Maybe this can acchieve things like gnuplot does,
but in a functional way.
So I'm thinking about implementing some simple
routines for loading data-files, doing mathematical
operations and writing the results as ASCII-output and
maybe as postscript-output (or psTricks-Output for including
the reults in LaTeX-documents).
I think as a beginner of FPLs and OCaml, it's too much effort
to write a complete application like a functional-gnuplot.
I want to use this tool for solving some common problems of the day
and I want to learn OCaml (and FP in general) with it.
So, it's ok, if it is only a small tool. But I want to have the
right design decisions for using it as a tool, but one, which is
expandable in future time, when it - maybe - can become a
complete application.
* Any hints, how to plan/design such a project, which
tools I can use and so on...?!
* How can I use it in in interactive mode?
* other things to think about?
TIA,
Oliver
--
Obviously, because programming is a creative activity there is not
going to be a set of rules which will always lead us mechanically
to a solution to a problem.
(Simon Thompson: Haskell - The Craft of Functional Programming)
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-08-05 9:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-05 9:16 Oliver Bandel [this message]
2001-08-05 11:06 ` Pixel
2001-08-05 15:15 ` Oliver Bandel
2001-08-05 19:36 ` Pixel
2001-08-07 14:32 ` John Max Skaller
[not found] ` <20010807171614.B1646@hars>
2001-08-07 17:34 ` [Caml-list] Re: ledit (was: OCaml as fancy calculator...) Daniel de Rauglaudre
2001-08-09 7:21 ` Florian Hars
2001-08-09 7:30 ` Laurent Chéno
2001-08-09 8:02 ` Ari Heitner
2001-08-09 8:37 ` Sven
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=Pine.LNX.3.95.1010805110027.163A-100000@first.in-berlin.de \
--to=oliver@first.in-berlin.de \
--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