caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: robert@fischerventure.com
To: "OCaml" <caml-list@inria.fr>
Subject: Re: [Caml-list] Before teaching OCaml
Date: Mon, 8 Jan 2007 11:31:34 -0800 (PST)	[thread overview]
Message-ID: <43813.151.151.73.168.1168284694.squirrel@webmail.fischerventure.com> (raw)
In-Reply-To: <45A29223.3090600@mcmaster.ca>

Alright, then I recommend staying to the simple stuff (and away from
Abstract Algebra) for the sake of the class.  I stand by the simple
mathematical interpreter as a good example, though.

The nice thing about mathematics is that one can assume a rather universal
"intuitive" understanding with this class, so the instructor wouldn't need
to get into syntax definitions or the like.  And the project doesn't
require any mucking about with GUIs, which is a lot of time dedicated to
little learning return.

Thanks for the paper reference, BTW.

~~ Robert.
Fischer Venture Management Corp

>> This was actually going to be my suggestion.  I'd suggest a very
>> toned-down version of a mathematics interpreter (think of a baby
>> Mathematica).  That's the kind of problem that will play well to Ocaml's
>> strengths, and since you're looking at math-oriented problems, it'd be
>> reasonably forward.
>>
>> It'd be really fun to do this post-abstract algebra.  Define Rings and
>> that kind of stuff as functors, and then go to town.  :-D
>>
> You would think so - and then when actually doing it, realize that it
> doesn't *quite* work.  See for example
> http://focal.inria.fr/site/images/stories/articles/boulme_rr00b.ps.gz
> i.e.
>
> @TECHREPORT{BoulmeRR00b,
>   AUTHOR = {Sylvain Boulm\'e and Th\'er\`ese Hardin and Renaud Rioboo},
>   TITLE = {Polymorphic Data Types, Objects, Modules and Functors: is it
> too much?},
>   INSTITUTION = {LIP6},
>   TYPE = {Research report},
>   YEAR = 2000,
>   NOTE = {Available on
> \url{http://www.lip6.fr/reports/lip6.2000.014.html}{http://www.lip6.fr/reports/lip6.2000.014.html}},
>   KEYWORDS = {classes, modules, functors, objects, types, polymorphism,
> functionnal programming, Computer Algebra, specification, library},
>   ABSTRACT = {Abstraction is a powerful tool for developers and it is
> offered by numerous features such as polymorphism, classes, modules and
> functors, ...
>                       A working programmer may be confused with this
> abundance. We develop a computer algebra library
> which is being certified. Reporting this experience
> made with a
>                       language (Ocaml) offering all these features, we
> argue that they are all needed together. We compare
> several ways of using classes to represent algebraic
> concept,
>                       trying to follow as close as possible mathematical
> specification. Then we show how to combine classes
> and modules to produce code having very strong
> properties.
>                       Currently, this library is made of one hundred units
> of functional codes and behaves faster than
> analogous ones such as Axiom}
> }
>
> To really make it 'work', you need quite a bit of technology.  You can do
> a toy version without getting too fancy, but you have to be careful
> because so many different extensions you might want to implement do not
> *quite* work.
>
> I have also seen a "baby Maple" written in Haskell -- the level of
> necessary technology is also quite high.
>
> Jacques
>



  reply	other threads:[~2007-01-08 19:31 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-07 18:15 David Teller
2007-01-07 20:25 ` [Caml-list] " Dan Hipschman
2007-01-07 21:07 ` Sylvain Le Gall
2007-01-07 21:13 ` [Caml-list] " Aleksey Nogin
2007-01-07 21:20 ` Richard Jones
2007-01-07 22:37 ` skaller
2007-01-08 18:26   ` robert
2007-01-08 18:49     ` Jacques Carette
2007-01-08 19:31       ` robert [this message]
2007-01-07 23:17 ` Jacques GARRIGUE
2007-01-08  6:56   ` Oliver Bandel
2007-01-08  2:47 ` Jon Harrop
2007-01-08  6:45 ` Oliver Bandel
2007-01-08  9:33 ` Andrej Bauer

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=43813.151.151.73.168.1168284694.squirrel@webmail.fischerventure.com \
    --to=robert@fischerventure.com \
    --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).