<phubuh>
it doesn't do any file sharing yet, though
<Maddas>
Doesn't matter
<Maddas>
Just looking at code
<phubuh>
okay :-)
<Maddas>
oh, are you still working on it?
<phubuh>
i figured.
<phubuh>
i haven't done anything on it for a while, but i think i'm going to hack on it a bit this weekend
<Maddas>
ok, cool
<Maddas>
hm, I'm just too nosy... what GNOME theme do you use?
<phubuh>
hee hee, i think that's a late version of bluecurve (redhat's metacity theme)
<phubuh>
actually, the gtk theme is bluecurve as well
<Maddas>
ok, thanks
<Maddas>
:)
<Maddas>
phubuh: which file should I start reading the code from? :)
<Maddas>
(so that it's easiest to follow the program flow)
<phubuh>
Client is the most high-level module, DirectConnect is slightly more low-level, and Connection is just a high-level interface to non-blocking unix tcp sockets
<Maddas>
Ok, thanks
<Maddas>
You don't mind if I reuse any of your code, do you? (I'll mention you of course)
<phubuh>
absolutely not :-)
<phubuh>
i absolutely don't mind, that is
<Maddas>
Ok, especially the Connection things might come in handy ;-)
<phubuh>
the creation of 'commands' in directConnect.ml is really really yucky and kind of hard to follow
<Maddas>
heh, ok
lus|wazze has joined #ocaml
buggs|afk has joined #ocaml
jdmarshall has quit [Ping timeout: 14400 seconds]
karryall has joined #ocaml
buggs has quit [Read error: 110 (Connection timed out)]
buggs|afk is now known as buggs
two-face has joined #ocaml
<two-face>
hi
<karryall>
hej
<karryall>
alors ca marche ocamlsdl avec la 3.07
<two-face>
je m'aprète à le faire
<two-face>
karryall: c'est ok
<karryall>
cool
<karryall>
vous reconstruisez tous les packages debian pour la 3.07 ?
<two-face>
oui
<two-face>
on a bientôt fini
<karryall>
pour lablgtk 1.2.6: Jacques ne l'a pas annoncé ou j'ai raté le mail ?
<two-face>
il n'a pas annoncé, il a juste répondu sur la liste debian-ocaml
<karryall>
ah ok
<two-face>
(si je me souviens bien)
<karryall>
il voulait faire une grosse release de lablgtk2 (pas beta) apres la 3.07, ça va être pour bientôt
<two-face>
ok
<Maddas>
oi, there isn't any C/C++ backend for O'Caml, is there?
<phubuh>
like an ocaml compiler that compiles to C or C++?
<Maddas>
yes
<two-face>
this would be silly
<Maddas>
so I can submit things to topcoder.com while practicing O'Caml ;-)
<phubuh>
not that i know of...
<phubuh>
haha
<Maddas>
Well, I guess I'll just use Scheme and Bigloo for that then
<karryall>
if think there was one for caml light ...
<Maddas>
hmmm.
<two-face>
what is the benefit of compiling to C?
<karryall>
it may still be in the hump but caml.inria.fr seems down
<Maddas>
two-face: topcoder.com only accepts C/C++/Java/VB code
<Maddas>
and I just wondered, I don't think there is any *good* reason to do it
<Maddas>
Just thought I might ask
<two-face>
Maddas: you loose efficency even
<Maddas>
two-face: Yeah, I know
<two-face>
karryall: j'ai réussi à sauver ocaml-xlibs :)
<karryall>
two-face: bravo
<two-face>
karryall: bizarre j'arrive à booter mon disque quelquefois
owll has joined #ocaml
rox is now known as mamuran
<Maddas>
hm
<Maddas>
does O'Caml have a binary xor operator/function built-in?
<two-face>
yup
<two-face>
afaik
<Maddas>
Cool, what's its name?
<two-face>
manual.html :)
<Maddas>
ok :)
<phubuh>
directConnect.ml ;)
<Maddas>
Hm? :)
whee has joined #ocaml
<phubuh>
calculate_key uses a lot of bitwise operators :P
<Maddas>
ok :)
<Maddas>
ah, 'lxor'
two-face has quit [Read error: 60 (Operation timed out)]
mattam has quit [Nick collision from services.]
mattam_ has joined #ocaml
mattam_ is now known as mattam
two-face has joined #ocaml
z|away has joined #ocaml
Hipo has quit ["Moi."]
<z|away>
Why are integers so small in ocaml?
<two-face>
small ?
<z|away>
I assume they are 4 bytes, but they only seem to hold 2^30 - 1.
<z|away>
Printf.printf "Why are these equal? %d %d\n" 0xFFFFFFFF 0x7FFFFFFF;
<Smerdyakov>
The rascals use bits for garbage collection purposes.
<z|away>
Ah.
<two-face>
you can use int32 or nativeint or bigint
<Smerdyakov>
But they are boxed, i.e., heap-allocated and accessed via pointers.
<two-face>
it is a matter of performance, which wasn't the point
<mattam>
anybody got a spamoracle database ?
<mattam>
(i delete my spam usually :)
<z|away>
Is there a way I can convert this small int into a normal full four byte int mathematically? (bit shifting somehow?) So it will be portable to other languages?
<whee>
you can use int32 types to get those
<two-face>
ocaml is not a low level language
<whee>
I never found it to be a real issue, anyway
<z|away>
Lets say I have an "ocaml" int that I send to a C app. How can the C app deal with it? (I can't use int32 since I'm not in control of the ocaml app).
<whee>
it deals with it like any other integer
<two-face>
z|away: in ocaml .h files, there are macros that can handle them
<Maddas>
64 bit systems have a valid integer range of -2^62-1 until 2^62-1 in O'Caml
<Maddas>
(in case that matters)
<z|away>
yes. I'm looking for something more mathmatical, not ocaml related I guess. In Ocaml, 0x7FFFFF02 is -254, but on C it will be 2147483394, So, if I'm in C, how would I get -254 out of that... so they would be the same across platforms.
phubuh has quit ["Leaving"]
phubuh has joined #ocaml
two-face has quit [Read error: 60 (Operation timed out)]
<Smerdyakov>
You should consider using bigint if you are about this and are doing something "more mathematical."
whiskas has joined #ocaml
<Smerdyakov>
s/about this/worried about this
brwill_out is now known as brwill_ATL
whiskas has quit []
z|away has left #ocaml []
owll has quit ["Client Exiting"]
two-face has joined #ocaml
esb has joined #ocaml
jdmarshall has joined #ocaml
two-face has quit [Read error: 110 (Connection timed out)]
stardust has joined #ocaml
systems has joined #ocaml
lus|wazze has quit ["The Ogre philosopher Gnerdel believed the purpose of life was to live as high on the food chain as possible. She refused to e]
Hipo has joined #ocaml
systems has quit ["Client Exiting"]
reltuk has quit [SendQ exceeded]
reltuk has joined #ocaml
two-face has joined #ocaml
two-face has quit ["Client exiting"]
jdmarshall has quit ["ChatZilla 0.8.31 [Mozilla rv:1.4/20030624]"]
clam has joined #ocaml
Xcalibor has quit [Read error: 113 (No route to host)]