List Info

Thread: "ocaml_beginners"::[] output_binary_int




"ocaml_beginners"::[] output_binary_int
user name
2006-07-30 14:25:36
Folks,

What type of endianness does output_binary_int function use?
The  
platform-specific one?

Also, are there libraries for serialization compatible with
C/C++?

	Thanks, Joel

--
http://wagerlabs.com/







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"::[] output_binary_int
user name
2006-07-31 13:28:59
On Sun, Jul 30, 2006 at 03:25:36PM +0100, Joel Reymont
wrote:
> What type of endianness does output_binary_int function
use? The  
> platform-specific one?

It's defined as big endian, ie. network byte order.  Note
that on a 64
bit machine the integer is truncated to 32 bits before being
output.
On a 32 bit machine of course integers can only be 31 bits.

> Also, are there libraries for serialization compatible
with C/C++?

Yes, several.

* Use SunRPC / XDR - 
http://www.ocaml-programming.de/programming/rpc.html
* Or XMLRPC - http:
//raevnos.pennmush.org/code/ocaml-xml-rpc/
* Or COM (on Windows) - 
http://caml.inria.fr/cgi-bin/hump.en.cgi?contrib=343
* Use XML (eg. something like PXP - 
http://www.ocaml-programming.de/programming/pxp.html).
* Use CSV - http://merjis.com/de
velopers/csv
* Use something like YAML.
* Write your own 

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


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"::[] output_binary_int
user name
2006-07-31 14:59:46
On Jul 31, 2006, at 2:28 PM, Richard Jones wrote:

> * Use something like YAML.

Thanks Rich! Is there some OCaml library to work with YAML
then?

--
http://wagerlabs.com/







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"::[] output_binary_int
user name
2006-07-31 15:50:29
On Mon, Jul 31, 2006 at 03:59:46PM +0100, Joel Reymont
wrote:
> On Jul 31, 2006, at 2:28 PM, Richard Jones wrote:
> > * Use something like YAML.
> Thanks Rich! Is there some OCaml library to work with
YAML then?

There was a lot of talk about it, but I'm not sure whether
anyone got
around to making a good implementation.  Anyway, a Google
search for
"ocaml yaml" came up with:

http://whytheluckys
tiff.net/syck/

The page title mentions OCaml, but there's not much in the
body to
indicate that OCaml is supported.

There was discussion on one of the OCaml mailing lists about
it too,
but I can't find that right now ...

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


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-4]

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