English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Yet another sudoku solver (838 bytes)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-19 (15:10)
From: Oliver Bandel <oliver@f...>
Subject: Yet another OCaml Webserver?! (was: Re: [Caml-list] Yet another sudoku solver (838 bytes))
On Sat, Nov 19, 2005 at 12:41:32PM +0000, Marco Maggesi wrote:
> While we are there, this is my soduku solver.  It is not as efficient
> as the other solver proposed in this list, but it takes a fraction of
> seconds to compute a solution on a P4 anyway.

Well, this nice game is able to trigger the OCaml-programmers
very well. It's fun and it's kind of academic programming
experience, because it's about solving theoretical problems.

But where is the "yet another" or even "first" Ocaml webserver?

Where are other interesting applications, which can show people
the power of this language - especially safety/security of an application?

When looking at many progra,s and libs, written in C, or Web-Languages
like PHP and such stupid stuff, I always remind me the very often
readable security warnings - buffer overflows and so on.

But where's the OCaml programmers community (is there something like that?),
showing that it also goes in other ways?

When asking here for databases and other stuff, often comes the
answer: try to use <xyz> library and write a C-binding.

Nice idea, but too often most of the libraries are buggy and
many of them struggle with Buffer Overflow (and similar) problems.

For example pcre-lib, curl-lib, a lot of the graphic-format libs, ...
...even cryptographic libs... where you send your credit card
informations through the network... well....

So, it looks like OCaml is mainly used to write code that lives
on the base of C-libraries.
Not thatr it is a nice feature to have the possibility to have
C-libs included relatively easy.
But to rely completely on that feature (and relying on potentially
insecure libraries) instead of reimplementing save versions of these
libraries, this is IMHO not the best idea.

Well, I really hate slow applications, and so, if a C-application
is much faster than one written in OCaml, this would be not so fine,
but when a fast application works unsecure/unsafe, then it is much
Speed of OCaml-programs maybe could be enhanced, when the compiler
will be more optimized. But as long as OCaml is only used for
such toy-applications (not that this is bad, it's fine, but
what's about the "real world"?!), then there will be no need for
further optimizing.
And no interest in that language on a broader population...

So, where are the projects like a webserver in OCaml (the first one,
and another one, and yet another one...) as there are several
implementations of other programs written in C?!

What's about starting such a project?

Here are a lot of fine programmers on the list, but
all are doing some small academic toy-programming,
but when it comes to bigger stuff, no one will start
the first line of code...

...big projects are done in C or Java or C++ or maybe


No one knows, no one uses...

Just... just only some thoughts about it...