gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
Edward_ has joined #ocaml
morphbot has joined #ocaml
morphbot has left #ocaml []
seafood has joined #ocaml
smerz has quit [Quit: Ex-Chat]
ftrvxmtrx has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
seafood has quit [Quit: seafood]
Edward_ has quit []
mfp has joined #ocaml
ulfdoz has quit [Ping timeout: 260 seconds]
ulfdoz has joined #ocaml
tmaeda has quit [Ping timeout: 255 seconds]
tmaeda has joined #ocaml
boscop has quit [Ping timeout: 240 seconds]
boscop has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
Amorphous has joined #ocaml
<orbitz> does anyone use OcamlMakefiel with lwt? Not sure hwo to tell it how to read lwt syntax when it figures out dependencies
<elehack> orbitz: I don't remember the details, but you can specify preprocessors with (*pp preproc *) comments at the top of the file
<orbitz> Right, do you know what you specify for lwt though?
<elehack> you specify the actual preprocessor command line.
<elehack> to use lwt, you'll the camlp4find shell script, I think.
<elehack> to use it via ocamlfind, anyway.
<elehack> and then you'll do camlp4find lwt.syntax
<orbitz> hrm i dont' seen to have camlp4find
<elehack> it's a shell script floating around the Internet somewhere.
<orbitz> hrm
<orbitz> camlp4find lwt.syntax doesn't output anything
<elehack> there's a few other details.
<elehack> I am trying to look them up, but I switched my codebases from OCamlMakefile to OMake and don't remember off-hand
<orbitz> i probably should do that too but i liek OcamlMakefile's simplicity
<elehack> It is pretty simple, until you want to build multiple targets in the same directory.
<orbitz> yeah
<elehack> I can't find it quickly here :(
<elehack> Basically, I had to modify camlp4find.sh, which I don't remember where I found, to supply the appropriate prerequisites.
<elehack> These days, I tend to go with ocamlbuild when I have simple needs and OMake when they're more complex.
<elehack> but I need to log off now, so good luck,
elehack has quit [Quit: not a typewriter]
lamawithonel has joined #ocaml
lamawithonel has quit [Ping timeout: 255 seconds]
joewilliams is now known as joewilliams_away
Fullma has joined #ocaml
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
drunK has quit [Remote host closed the connection]
itewsh has joined #ocaml
init1 has joined #ocaml
avsm has joined #ocaml
Sikul has quit [Remote host closed the connection]
itewsh has quit [Quit: Quitte]
<flux> meh, I don't like having an otherwise pure ocaml program that uses curl and sdl segfault in gc :/
<rwmjones> ah, that's not so "pure"
<flux> oh, and threads
<flux> but I'm suspicious of curl, because I've used it little and I have had mostly no problems with sdl
<flux> I guess I could use some other tool, but not many libraries are capable for processing multi-part jpeg stream.. (even though I need to do the stream dedoding myself)
<flux> maybe ocamlnet can do it
<adrien> 5(* pi is not a constant! *)
<adrien> rargh =)
ikaros has joined #ocaml
mlh has quit [Ping timeout: 240 seconds]
mlh has joined #ocaml
Yoric has joined #ocaml
monadic_kid has joined #ocaml
almaisan-away is now known as al-maisan
<al-maisan> Hello there! What library should one use for building xmpp clients in ocaml?
<rwmjones> first hit in google
<adrien> I'm getting desperate: it's like there's almost no way to get a simple, cross-platform, light (size on disk), GUI and labltk doesn't bind TreeView which I'd like to use =/
* al-maisan looks at ocaml-xmpp
<rwmjones> adrien: why aren't you using lablgtk / gtk?
* rwmjones was following your discussions with kai
<adrien> rwmjones: tk will take less space on disk and require less files
<adrien> I'd really like to get something small(er) but if I can't get what I want with labltk, I'll most probably switch to lablgtk
<rwmjones> disk space is cheap these days, and gtk is actively developed and full-featured
<julm> +1
<adrien> I know, it's rather what is "perceived", and shipping a 10 or 20MB package for what is going to be a very simple interface doesn't sound very good (there will always be people complaining so I'm trying to avoid this complaint)
<julm> "there will always be people complaining", KISS
<adrien> heheh =)
<al-maisan> rwmjones: the OCaml-XMPP lib seems abandoned .. I can't even find the sources
<adrien> I think there's something on the forge, not sure though, lunch time :-)
ygrek has joined #ocaml
<rwmjones> svn checkout svn://svn.tuxfamily.org/svnroot/ocamlxmpp/ocamlxmpp/trunk
<al-maisan> rwmjones: gtreat, thanks!
monadic_kid has quit [Read error: Connection reset by peer]
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
shm has joined #ocaml
ztfw has joined #ocaml
SEcki has joined #ocaml
SEcki_ has joined #ocaml
SEcki has quit [Client Quit]
SEcki_ is now known as SEcki
ftrvxmtrx has quit [Ping timeout: 265 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]
ftrvxmtrx has joined #ocaml
al-maisan is now known as almaisan-away
noj has quit [*.net *.split]
flux has quit [*.net *.split]
flux has joined #ocaml
noj has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
<thelema> grr, ocaml sucks at hashing my trees - # elements: 64103, # empty buckets: 59082, longest bucket: 3431
avsm1 has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
avsm has joined #ocaml
<thelema> (using Pycaml) I have a python sequence that I want to turn into an int array. The straightforward way (Array.init (pysequence_length output) (fun i -> pysequence_getitem (output, i) |> cpr |> pyint_aslong |> Int64.to_int) ) takes 2/5 of my program runtime - does anyone see an optimization?
<ygrek> this is simple - get rid of python
<thelema> ygrek: got a min-weight-matching implementation in ocaml?
* ygrek proposes a solution - you implement it - that's the rules of the game, isn't it? :)
<thelema> I wish my deadline were that reasonable.
almaisan-away is now known as al-maisan
<thelema> matching algorithms are *complex*
ikaros has joined #ocaml
<ygrek> then rewrite the function (converting seq to array) in c
<ygrek> if it is really the hot spot
<thelema> I guess I may have to....
joewilliams_away is now known as joewilliams
joewilliams is now known as joewilliams_away
al-maisan is now known as almaisan-away
groovy2shoes has joined #ocaml
smerz has joined #ocaml
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
groovy2shoes has quit [Changing host]
groovy2shoes has joined #ocaml
almaisan-away is now known as al-maisan
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
groovy2shoes has quit [Changing host]
groovy2shoes has joined #ocaml
<thelema> julm: just an ocr glitch - the original is "Scania" - how that became ocaml, I don't know.
<julm> :D
<thelema> and I don't see a way to give feedback on the ocr
<adrien> could they process things again? that'd probably take quite a lot of power
<thelema> that would give the same answer as the first time, no?
<thelema> or do you mean scan and ocr again?
<thelema> the scanning, probably not going to be done 2x
<thelema> I guess the images could be shifted a tiny bit and re-ocred
<julm> maybe the ocr will be improved with their recaptcha thing
<thelema> I guess the ocr could be retrained
al-maisan is now known as almaisan-away
gildor_ has quit [Ping timeout: 260 seconds]
gildor has joined #ocaml
<smerz> "open Graphics" in .ml source. Compile error: "Error: Unbound module Graphics".
<smerz> How can I add the "Grapgics" module, can someone give me a hint?
<ygrek> smerz, ocamlfind ocaml{c,opt} -linkpkg -package graphics source.ml -o prog
<smerz> thanks i'll work that into my stuff
<smerz> the library seems to be missing altogether on my ubuntu system
<smerz> the graphics module/library that is :(
<adrien> usually it's in another package
<adrien> (at least)
<adrien> also: what do you want to do?
<smerz> just to be sure. there should be _somewhere_ on my disk a file called "graphics.cma" correct? :|
<smerz> well i got 2 source files. and i want to compile them
<thelema> smerz: yes
<smerz> there is no such file on my disk (graphics.cma)
<smerz> these files should just compile out of the box heh
<gildor> rwmjones: ping
<thelema> smerz: ocaml-base provides /usr/lib/ocaml/graphics.cma on my system
<smerz> thanks
<smerz> that did it thelema
<smerz> thanks guys :)
f[x] has quit [*.net *.split]
hcarty has quit [*.net *.split]
strlen has quit [*.net *.split]
vk0 has quit [*.net *.split]
ztfw has quit [*.net *.split]
jonathandav has quit [*.net *.split]
mattam has quit [*.net *.split]
bacam has quit [*.net *.split]
init1 has quit [*.net *.split]
pheredhel has quit [*.net *.split]
mehdid has quit [*.net *.split]
xl0 has quit [*.net *.split]
fremo__ has quit [*.net *.split]
rks has quit [*.net *.split]
flux has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
julm has quit [*.net *.split]
snarkyboojum has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
nejimban has quit [*.net *.split]
fabjan_ has quit [*.net *.split]
haelix has quit [*.net *.split]
krktz has quit [*.net *.split]
Yoric has quit [*.net *.split]
mfp has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
sgnb has quit [*.net *.split]
Tianon has quit [*.net *.split]
kerneis has quit [*.net *.split]
rossberg_ has quit [*.net *.split]
__marius__ has quit [*.net *.split]
shm has quit [*.net *.split]
ftrvxmtrx has quit [*.net *.split]
almaisan-away has quit [*.net *.split]
thelema has quit [*.net *.split]
nimred has quit [*.net *.split]
shachaf has quit [*.net *.split]
zzz_` has quit [*.net *.split]
cods has quit [*.net *.split]
emias has quit [*.net *.split]
groovy2shoes has quit [*.net *.split]
smerz has quit [*.net *.split]
avsm has quit [*.net *.split]
SEcki has quit [*.net *.split]
Fullma has quit [*.net *.split]
boscop has quit [*.net *.split]
mikemc has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
srcerer has quit [*.net *.split]
eldragon has quit [*.net *.split]
companion_cube has quit [*.net *.split]
svenl has quit [*.net *.split]
adrien has quit [*.net *.split]
jlouis has quit [*.net *.split]
coucou747 has quit [*.net *.split]
hto has quit [*.net *.split]
schmx has quit [*.net *.split]
caligula has quit [*.net *.split]
noj has quit [*.net *.split]
Amorphous has quit [*.net *.split]
rudi_s has quit [*.net *.split]
cthuluh has quit [*.net *.split]
tsuwabuki has quit [*.net *.split]
avsm2 has quit [*.net *.split]
npouillard has quit [*.net *.split]
theDroggl has quit [Ping timeout: 255 seconds]
theDroggl has joined #ocaml
groovy2shoes has joined #ocaml
smerz has joined #ocaml
avsm has joined #ocaml
noj has joined #ocaml
flux has joined #ocaml
ftrvxmtrx has joined #ocaml
SEcki has joined #ocaml
ztfw has joined #ocaml
shm has joined #ocaml
Yoric has joined #ocaml
init1 has joined #ocaml
Fullma has joined #ocaml
Amorphous has joined #ocaml
boscop has joined #ocaml
mfp has joined #ocaml
pheredhel has joined #ocaml
rudi_s has joined #ocaml
cthuluh has joined #ocaml
mcclurmc has joined #ocaml
mikemc has joined #ocaml
jonathandav has joined #ocaml
tsuwabuki has joined #ocaml
almaisan-away has joined #ocaml
schmx has joined #ocaml
thelema has joined #ocaml
fraggle_ has joined #ocaml
mehdid has joined #ocaml
nimred has joined #ocaml
vk0 has joined #ocaml
strlen has joined #ocaml
hcarty has joined #ocaml
f[x] has joined #ocaml
avsm2 has joined #ocaml
shachaf has joined #ocaml
xl0 has joined #ocaml
coucou747 has joined #ocaml
fremo__ has joined #ocaml
hto has joined #ocaml
Pepe_ has joined #ocaml
julm has joined #ocaml
rks has joined #ocaml
mattam has joined #ocaml
companion_cube has joined #ocaml
eldragon has joined #ocaml
sgnb has joined #ocaml
svenl has joined #ocaml
zzz_` has joined #ocaml
caligula has joined #ocaml
cods has joined #ocaml
Tianon has joined #ocaml
adrien has joined #ocaml
bacam has joined #ocaml
krktz has joined #ocaml
haelix has joined #ocaml
fabjan_ has joined #ocaml
nejimban has joined #ocaml
Asmadeus has joined #ocaml
snarkyboojum has joined #ocaml
emias has joined #ocaml
jlouis has joined #ocaml
__marius__ has joined #ocaml
rossberg_ has joined #ocaml
kerneis has joined #ocaml
npouillard has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
init1 has quit [Quit: Quitte]
ztfw has quit [Remote host closed the connection]
<thelema> I guess I shouldn't be too surprised that converting a python array into an ocaml int array is much faster in C than in ocaml
<adrien> how much?
<adrien> btw, I ended up using lablgtk for my gui, we'll see later about the size, and I'm quite glad I did because there's more work than I expected
<thelema> well, it was taking as much as 60% of the runtime of my program, now it's taking .06%
<adrien> oh, a quite minor improvement =P
<thelema> I guess I can quantify that as 3 orders of magnitude
<thelema> yes, there's always more work in building a gui
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
groovy2shoes has quit [Quit: groovy2shoes]
ygrek has quit [Quit: Leaving]
<adrien> I'll be going to bed soon but can someone try this very short lablgtk2 test: http://vpaste.net/G2dXx? , you'll have to resize the window a bit and try clicking on one of the two checkbox, I can't get them to react to clicks and I'm wondering if it's an issue on my laptop
<adrien> hmmm, corrected one: http://vpaste.net/JLH8E?
<adrien> (it still fails but the previous one had a stupid last-minute change)
<thelema> better - I was about to complain about the previous url
Yoric has quit [Quit: Yoric]
<thelema> segfault on my PC
<adrien> oh, that's interesting
<thelema> probably because of no init?
<thelema> fixed by adding let _ = GtkMain.Main.init ()
<thelema> it runs, and neither of the two checkboxes does anything
<adrien> which version of lablgtk2 and gtk+2 are you running? I don't think I ever had to use GtkMain.Main.init
<thelema> maybe your meta file links with gtkinit...
<adrien> ok, thanks, I guess I'll post this to the lablgtk list, I really don't know what to do
<adrien> oh, right, most probably, it's godi and it has several changes
<adrien> I compared stock, debian's, fedora's, godi's, ... meta files for lablgtk2 and all are different
<thelema> yup, sadly true.
eelte has joined #ocaml
<adrien> I found a message from Jacques stating the stock one was what it is because he doesn't know meta files so it should be possible to make a better one and have it included =)
ftrvxmtrx has quit [Quit: Leaving]
coucou747 has quit [Ping timeout: 276 seconds]
ikaros has quit [Quit: Leave the magic to Houdini]