Banana changed the topic of #ocaml to: OCaml 3.08 "Bastille Day" Release available ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
small_duck has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
<small_duck> hi!
cjohnson has joined #ocaml
<small_duck> I'm looking for help over ocaml sockets
<jourdechance> coin coin
<small_duck> o<
<small_duck> In fact, I'm trying to send binary data over a socket
<small_duck> but since I'd like to get the data on the other side from a C++ app, I cannot use marshal my data
<ronwalf> and you have to do it as binary data?
<small_duck> well, no...
<small_duck> I'm just affraid about performances
<small_duck> turning an int into a string at one side
<small_duck> sending it
<small_duck> and turning it back to an int at the other side
<small_duck> well, more about network performances, in fact
<small_duck> maybe if I could compress my string...
<ronwalf> What is this for?
<small_duck> a RPG server
<small_duck> I'm still hesitating between C++ and OCaML, for the server...
<ronwalf> Common practice is to leave the protocol text based until performance requirements demand otherwise
<ronwalf> well, a common practice anyway
<ronwalf> Just make the transport modular
<ronwalf> I'd hate to have a server in C++...
<small_duck> why? :)
<ronwalf> Well, I'd hate to have anything in C++ :)
<small_duck> but, yeah, I think you're right: keeping it text based for the moment should do the trick
<ronwalf> But buffer overflows and memory management are big issues
<small_duck> that's right
<small_duck> But since I'm not alone on this development, I cannot do the server with OCaML :(
<small_duck> na
<small_duck> the client
<small_duck> the server, that's my part, so basically, I do what I want with it
<ronwalf> In some ways, the client is easier
<ronwalf> It's not as long running
<small_duck> yep, less problems with memory leaks
<ronwalf> but you should still not leave them with buffer overflows
<small_duck> I try to be careful.
<small_duck> Just have to loose my habits from pure C
<small_duck> Well, thanks for these advices
<small_duck> I'll stick to pure strings!
<small_duck> bye all
small_duck has quit ["bye"]
Bols has quit []
cjohnson has quit [Read error: 110 (Connection timed out)]
cjohnson has joined #ocaml
cjohnson has quit [Success]
cjohnson has joined #ocaml
Xolution has joined #ocaml
rj-cole has joined #ocaml
cjohnson has quit [Read error: 110 (Connection timed out)]
whee has quit []
vezenchio has quit ["I thought what I'd do was, I'd pretend I was one of those deaf-mutes ^_^"]
GreyLensman has quit [niven.freenode.net irc.freenode.net]
gim has quit [niven.freenode.net irc.freenode.net]
kuz has quit [niven.freenode.net irc.freenode.net]
mflux has quit [niven.freenode.net irc.freenode.net]
TheDracle has quit [niven.freenode.net irc.freenode.net]
j_n has quit [niven.freenode.net irc.freenode.net]
avlondono has quit [niven.freenode.net irc.freenode.net]
debona|r has quit [niven.freenode.net irc.freenode.net]
Lemmih has quit [niven.freenode.net irc.freenode.net]
pnou has quit [niven.freenode.net irc.freenode.net]
avn has quit [niven.freenode.net irc.freenode.net]
Hipo has quit [niven.freenode.net irc.freenode.net]
rj-cole has quit [niven.freenode.net irc.freenode.net]
det has quit [niven.freenode.net irc.freenode.net]
slashvar[lri] has quit [niven.freenode.net irc.freenode.net]
jourdechance has quit [niven.freenode.net irc.freenode.net]
Xolution has quit [niven.freenode.net irc.freenode.net]
rj-cole has joined #ocaml
Xolution has joined #ocaml
GreyLensman has joined #ocaml
avlondono has joined #ocaml
gim has joined #ocaml
slashvar[lri] has joined #ocaml
Lemmih has joined #ocaml
kuz has joined #ocaml
det has joined #ocaml
debona|r has joined #ocaml
pnou has joined #ocaml
j_n has joined #ocaml
mflux has joined #ocaml
TheDracle has joined #ocaml
jourdechance has joined #ocaml
Hipo has joined #ocaml
avn has joined #ocaml
GreyLensman has quit ["Leaving"]
debona|r has left #ocaml []
zigong_ has joined #ocaml
debona|r has joined #ocaml
Nutssh has joined #ocaml
Xolution has quit ["Leaving"]
Lemmih has quit ["Leaving"]
withersoever has joined #ocaml
debona|r has left #ocaml []
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
mattam_ has joined #ocaml
fab_ has quit [Read error: 110 (Connection timed out)]
fab_ has joined #ocaml
mattam has quit [Read error: 110 (Connection timed out)]
fab_ has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
leolio has joined #ocaml
Nutssh has quit ["Client exiting"]
mattam_ has quit [Read error: 110 (Connection timed out)]
Bols has joined #ocaml
_fab has joined #ocaml
ita has joined #ocaml
<ita> hi all
<ita> has anyone ever thought of a compiler output (warning, errors..) in colors ?
leolio has quit [Remote closed the connection]
_fab has quit [Read error: 110 (Connection timed out)]
_fab has joined #ocaml
ita has quit ["leaving"]
erm has joined #ocaml
vezenchio has joined #ocaml
Lemmih has joined #ocaml
debona|r has joined #ocaml
CosmicRay has joined #ocaml
cjohnson has joined #ocaml
fab_ has joined #ocaml
_fab has quit [Read error: 110 (Connection timed out)]
debona|r has quit [Read error: 104 (Connection reset by peer)]
monochrom has quit ["Don't talk to those who talk to themselves."]
erm has quit ["leaving"]
Nutssh has joined #ocaml
CosmicRay has left #ocaml []
awwaiid has joined #ocaml
whee has joined #ocaml
mrsolo has quit [Connection timed out]
<mflux> doubtful, considering the toplevel doesn't have command line editor ;)
awwaiid has quit [Read error: 54 (Connection reset by peer)]
<mflux> I must say, graphviz is damn useful tool when writing binary trees ;)
<whee> graphviz is great
awwaiid has joined #ocaml
<Hadaka> is there some library that might help me in parsing a nasty binary file structure with lots of 32-bit longs and char flags and relative offsets into files and structures?
<ronwalf> int32 might help...
<Hadaka> well, obviously :)
<ronwalf> Somebody had a similar question a day or so ago
<ronwalf> Unfortunately, I had no better answer :)
<Hadaka> well, I guess I shall just wrap my own funs
<Hadaka> thanks anyway
CosmicRay has joined #ocaml
withersoever has quit ["Leaving"]
Walnutssh has joined #ocaml
Nutssh has quit [Remote closed the connection]
whee has quit [niven.freenode.net irc.freenode.net]
Riastradh has quit [niven.freenode.net irc.freenode.net]
jrosdahl has quit [niven.freenode.net irc.freenode.net]
ionOSu has quit [niven.freenode.net irc.freenode.net]
whee has joined #ocaml
Riastradh has joined #ocaml
jrosdahl has joined #ocaml
ionOSu has joined #ocaml
whee has quit [Connection timed out]
whee has joined #ocaml
<Hadaka> okay, there _has_ to be a library for this
<Hadaka> I could find functions for reading and writing Int32's out of buffers
<Hadaka> humps here we come
<Hadaka> (I wonder if extlib has some)
<CosmicRay> how does one get listed on the humps anyway
<CosmicRay> I have tried about three different times and nothing ever happens
awwaiid has quit [Read error: 104 (Connection reset by peer)]
<Hadaka> woo, extlib to the rescue
<Hadaka> it has, um, generic IO interface, which does int32 input and output
<Hadaka> ...but the interface does not offer seeks, and in addition to that, I most likely need to use buffers to handle it all
<Hadaka> so sigh...
<Hadaka> but I will be using extlib from now on it seems - it even does zlib!
awwaiid has joined #ocaml
<mellum> Hadaka: no, it doesn't, it implements its own deflate
<CosmicRay> err, its own inflate, right/
<CosmicRay> it doesn't compress yet
awwaiid has quit [Read error: 104 (Connection reset by peer)]
<Hadaka> mellum: inflate, right - I just meant that it can decompress what zlib produces without depending on zlib :)
<Hadaka> which is _just_ what I need
awwaiid has joined #ocaml
<mflux> I must say it turned out to be lots less work to write balanced rb-trees with ocaml than it was with c++
<Hadaka> mflux: I hope that was an exercise or a test :)
<mflux> the c++-version was, this was sort of a test which I will use later ;)
<mflux> hmh, not a test as in I would neet to return it
<mflux> but rather for myself how suitable ocaml is for that sort of stuff
<mflux> besides I bitched about the missing functions in Map -module ;)
<Hadaka> mflux: yeah - I was just pointing to the fact that there's plenty of red-black balanced trees written in ocaml out there
<Hadaka> for example from pagoda:
<Hadaka> - Functional red-black binary tree (associative array).
<Hadaka> - Functional sets and maps based on red-black binary tree.
<mflux> I believe those are licensed under GPL
<mflux> and I don't intend to limit myself to one license quite just yet
<Hadaka> possible - I doubt all red-black trees around places are gpl though
<mflux> hm, I wonder if I'm mixing that up with something else
<mflux> I did browse through the selection on Hump
<mflux> nope, I definitely haven't encountered pagoda before
<Hadaka> pagoda seems to be bsd license
<Hadaka> with the apache like requirements on presenting the notice on documentation
<mflux> well, maybe I'll use it if it turns out I need something else from there
<mflux> atleast that map has the capability to search neighbouring nodes
<mflux> pagoda's sequences seem quite elegant
<Hadaka> ask me, I think they've gone a bit nads with their monads :)
whee has quit []
whee has joined #ocaml
awwaiid has quit [Read error: 104 (Connection reset by peer)]
awwaiid has joined #ocaml
bitwiseshiftleft has joined #ocaml
<bitwiseshiftleft> question: is there any way to replace a method of an object?
<bitwiseshiftleft> eg, if I have an object with a method foo that returns 1, is there any way to patch it to return 7 instead?
<Riastradh> No.
<bitwiseshiftleft> darn
<bitwiseshiftleft> so I would basically have to replace the objects with some sort of record then?
CosmicRay has quit ["Client exiting"]
awwaiid has quit [Read error: 104 (Connection reset by peer)]
awwaiid has joined #ocaml
bitwiseshiftleft has quit ["BitchX-1.1-final -- just do it."]
awwaiid has quit [Read error: 104 (Connection reset by peer)]
awwaiid has joined #ocaml
awwaiid has quit [Read error: 104 (Connection reset by peer)]
awwaiid has joined #ocaml
smimou has quit ["?"]
awwaiid has quit [Read error: 104 (Connection reset by peer)]
det has quit [Read error: 60 (Operation timed out)]
awwaiid has joined #ocaml