List Info

Thread: "ocaml_beginners"::[] Ocaml and Threading




"ocaml_beginners"::[] Ocaml and Threading
user name
2007-01-07 21:05:18

On Sun, Jan 07, 2007 at 07:18:24PM -0000, deech_99 wrote:
> I am considering Ocaml for a project where a client requests JPEG
> images from multiple databases running on remote machines.
>
> On the client GUI I want to have red/green lights that flash red when
> a database is no longer accessible.
>
> Each of these lights then is a thread that sleeps for a while, wakes
>; up, pings the server, outputs the result to the GUI and goes back to
> sleep.
>
> Given that Ocaml does not have thread support is this possible?

OCaml does have thread support, so this will work fine.

You're a bit vague on essential details like what database(s) you're
querying and what GUI system you'll be using, so it's hard to go any
further and say whether this is a good use of OCaml and/or threads.
Also have you thought about an off-the-shelf system, like a network
monitoring system?

Rich.

--
Richard Jones
Red Hat UK Limited

__._,_.___
.

__,_._,___
"ocaml_beginners"::[] Re: Ocaml and Threading
user name
2007-01-07 21:47:29

> You're a bit vague on essential details like what database(s) you're
> querying and what GUI system you'll be using, so it's hard to go any
> further and say whether this is a good use of OCaml and/or threads.

At this prelim stage I am thinking of using Sqlite and Labltk (is
there a better GUI library in ocaml?). I have not started coding and I
am a complete Ocaml beginner although I have studied Haskell.

The threading question came up because while scouring Google trying
understand the pros and cons of Ocaml I came across a post saying that
Ocaml threads did not support GC and therefore Ocaml should not be
used for application with any kind of concurrency.

The client/server application I plan to write basically serves up
medical images. These images use a protocol called DICOM for
communication. In addition to the green/red light GUI feature I want
to be able to load images in the background etc.

The solutions that exist so far(including commercial) are written in
Java and are very inefficient.

I am exploring Ocaml because of it's language shootout benchmarks,
multi-paradigm model (read no monads) and readability.

Thanks for the support. Given your prompt and knowledgeable responses
are typical I feel much more confident about using the language.

> Rich.
>;
> --
> Richard Jones
>; Red Hat UK Limited
>

Thanks...
Deech

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )