|
List Info
Thread: "ocaml_beginners"::[] ocaml object persistence?
|
|
| "ocaml_beginners"::[] ocaml
object persistence? |

|
2006-07-18 20:07:16 |
Is there a library available for ocaml which implements
object
persistence? I don't care strongly whether it's backed by
BDB, an RDBMS,
or the filesystem. Indeed, i don't mind if it stores
full-fledged
objects or just type instances.
I've searched through some of the documentation, the
libraries available
at the Hump, and the web, and i haven't found anything
available.
I'm willing to move forward implementing my own, but i
wanted to see
what was available in case i was reinventing the wheel.
Thanks,
-johnnnnnnnnn
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| "ocaml_beginners"::[] ocaml
object persistence? |

|
2006-07-18 21:29:28 |
On Tue, 18 Jul 2006, johnnnnnn wrote:
> Is there a library available for ocaml which implements
object
> persistence? I don't care strongly whether it's
backed by BDB, an RDBMS,
> or the filesystem. Indeed, i don't mind if it stores
full-fledged
> objects or just type instances.
>
> I've searched through some of the documentation, the
libraries available
> at the Hump, and the web, and i haven't found anything
available.
>
> I'm willing to move forward implementing my own, but i
wanted to see
> what was available in case i was reinventing the wheel.
There is PERSIL http://cris
tal.inria.fr/~starynke/persil/
but I don't know much about it.
You can also roll your own using the Marshal module and your
favorite
storage system.
Martin
--
Martin Jambon, PhD
http://martin.jambon.fre
e.fr
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| "ocaml_beginners"::[] ocaml
object persistence? |

|
2006-07-19 11:05:35 |
On Tue, Jul 18, 2006 at 03:07:16PM -0500, johnnnnnn wrote:
> Is there a library available for ocaml which implements
object
> persistence? I don't care strongly whether it's
backed by BDB, an RDBMS,
> or the filesystem. Indeed, i don't mind if it stores
full-fledged
> objects or just type instances.
Marshal (part of the standard library) is probably the
easiest way to
go. It has a big problem however which is that it isn't
type safe.
It will allow you to write, for example:
let data = "this is my data" ;;
let data : float = Marshal.from_string (Marshal.to_string
data []) 0 ;;
And that sort of thing can rapidly lead to segmentation
faults.
I was intrigued by Jonathan Roewen's pickle:
htt
p://alan.petitepomme.net/cwn/2006.01.17.html#1
But I've not actually used it for anything yet.
How about using a database? PG'OCaml is a type safe
interface to
PostgreSQL:
http://merjis.co
m/developers/pgocaml
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
------------------------ Yahoo! Groups Sponsor
--------------------~-->
Something is new at Yahoo! Groups. Check out the enhanced
email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/saFolB/TM
------------------------------------------------------------
--------~->
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| "ocaml_beginners"::[] ocaml
object persistence? |

|
2006-07-19 18:15:37 |
Martin Jambon wrote:
> There is PERSIL http://cris
tal.inria.fr/~starynke/persil/
> but I don't know much about it.
Interesting. Latest release in may of 2004... either very
stable or very
unmaintained.
Richard Jones wrote:
> Marshal (part of the standard library) is probably the
easiest way to
> go. It has a big problem however which is that it
isn't type safe.
Yeah. Type safety isn't a huge issue for me -- this is all
hobby code --
so i might end up just going that route. I had completely
missed it on
my run through the library.
> I was intrigued by Jonathan Roewen's pickle:
>
> htt
p://alan.petitepomme.net/cwn/2006.01.17.html#1
That looks promising, too.
> How about using a database? PG'OCaml is a type safe
interface to
> PostgreSQL:
Thank you for suggesting Postgres instead of MySQL, but i'm
trying to
avoid a relational store for this particular project. It's
on relatively
limited hardware, and won't be doing anything aside from
single
primary-key retrieves, so i figured an object store would be
best.
Thanks everyone for the help.
-johnnnnn
------------------------ Yahoo! Groups Sponsor
--------------------~-->
Great things are happening at Yahoo! Groups. See the new
email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/saFolB/TM
------------------------------------------------------------
--------~->
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
| "ocaml_beginners"::[] ocaml
object persistence? |

|
2006-07-19 18:54:18 |
On Wed, Jul 19, 2006 at 01:15:37PM -0500, johnnnnnn wrote:
[...]
The other module you might want to look at is Dbm -- also
part of the
standard library. It's an interface to NDBM databases.
There are plenty of other options too, eg. interfaces to
sqlite.
Rich.
--
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com
------------------------ Yahoo! Groups Sponsor
--------------------~-->
Great things are happening at Yahoo! Groups. See the new
email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/saFolB/TM
------------------------------------------------------------
--------~->
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|
|
[1-5]
|
|