oriba has quit [Remote host closed the connection]
Amorphous has quit [Ping timeout: 272 seconds]
Amorphous has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
boscop has quit [Ping timeout: 245 seconds]
Amorphous has joined #ocaml
boscop has joined #ocaml
Tobu has quit [Ping timeout: 265 seconds]
Tobu has joined #ocaml
groovy2shoes has joined #ocaml
mlh has joined #ocaml
groovy2shoes has quit [Quit: groovy2shoes]
joewilliams is now known as joewilliams_away
sgnb has quit [*.net *.split]
fraggle_ has quit [*.net *.split]
Amorphous has quit [*.net *.split]
gildor has quit [*.net *.split]
thelema has quit [*.net *.split]
cthuluh has quit [*.net *.split]
noj has quit [*.net *.split]
cods has quit [*.net *.split]
npouillard has quit [*.net *.split]
avsm2 has quit [*.net *.split]
asmanur_ has quit [*.net *.split]
gnuvince1 has quit [*.net *.split]
nimred has quit [*.net *.split]
vk0 has quit [*.net *.split]
Tianon has quit [*.net *.split]
rossberg_ has quit [*.net *.split]
mehdid has quit [*.net *.split]
yurug has quit [*.net *.split]
__marius__ has quit [*.net *.split]
mlh has quit [*.net *.split]
adrien has quit [*.net *.split]
thieusoai has quit [*.net *.split]
maskd has quit [*.net *.split]
patronus_ has quit [*.net *.split]
Axioplase_ has quit [*.net *.split]
brendan has quit [*.net *.split]
zzz_ has quit [*.net *.split]
lamawithonel_ has quit [*.net *.split]
theDroggl has quit [*.net *.split]
bzzbzz has quit [*.net *.split]
hyperboreean has quit [*.net *.split]
srcerer has quit [*.net *.split]
rudi_s has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
BiDOrD has quit [*.net *.split]
jonafan has quit [*.net *.split]
rks has quit [*.net *.split]
ninegrid has quit [*.net *.split]
fremo___ has quit [*.net *.split]
kerneis has quit [*.net *.split]
xl0 has quit [*.net *.split]
willb has quit [*.net *.split]
manveru has quit [*.net *.split]
joewilliams_away has quit [*.net *.split]
svenl has quit [*.net *.split]
julm has quit [*.net *.split]
_2x2l has quit [*.net *.split]
rwmjones has quit [*.net *.split]
Obfuscate has quit [*.net *.split]
tmaeda has quit [*.net *.split]
hto has quit [*.net *.split]
thomasga has quit [*.net *.split]
diml has quit [*.net *.split]
mbac has quit [*.net *.split]
melwtech45 has quit [*.net *.split]
boscop has quit [*.net *.split]
Fullma has quit [*.net *.split]
rixed has quit [*.net *.split]
mfp has quit [*.net *.split]
eldragon has quit [*.net *.split]
orbitz has quit [*.net *.split]
robthebob has quit [*.net *.split]
mal`` has quit [*.net *.split]
mattam has quit [*.net *.split]
shachaf has quit [*.net *.split]
Modius has quit [*.net *.split]
Pepe_ has quit [*.net *.split]
rikta06 has quit [*.net *.split]
jlouis has quit [*.net *.split]
bitbckt has quit [*.net *.split]
Derander has quit [*.net *.split]
pheredhel has quit [*.net *.split]
hcarty has quit [*.net *.split]
emias has quit [*.net *.split]
Tobu has quit [*.net *.split]
ftrvxmtrx has quit [*.net *.split]
avsm has quit [*.net *.split]
mikemc has quit [*.net *.split]
strlen has quit [*.net *.split]
kaustuv has quit [*.net *.split]
flux has quit [*.net *.split]
mcclurmc has quit [*.net *.split]
nejimban has quit [*.net *.split]
f[x] has quit [*.net *.split]
caligula has quit [*.net *.split]
fabjan_ has quit [*.net *.split]
bacam has quit [*.net *.split]
haelix has quit [*.net *.split]
krktz has quit [*.net *.split]
ulfdoz has joined #ocaml
mlh has joined #ocaml
Tobu has joined #ocaml
boscop has joined #ocaml
Amorphous has joined #ocaml
Modius has joined #ocaml
ftrvxmtrx has joined #ocaml
fraggle_ has joined #ocaml
rikta06 has joined #ocaml
zzz_ has joined #ocaml
lamawithonel_ has joined #ocaml
theDroggl has joined #ocaml
avsm has joined #ocaml
mcclurmc has joined #ocaml
Fullma has joined #ocaml
Tianon has joined #ocaml
bzzbzz has joined #ocaml
mikemc has joined #ocaml
rixed has joined #ocaml
mfp has joined #ocaml
strlen has joined #ocaml
nejimban has joined #ocaml
adrien has joined #ocaml
rossberg_ has joined #ocaml
Asmadeus has joined #ocaml
thomasga has joined #ocaml
xl0 has joined #ocaml
diml has joined #ocaml
thieusoai has joined #ocaml
asmanur_ has joined #ocaml
maskd has joined #ocaml
Pepe_ has joined #ocaml
sgnb has joined #ocaml
rwmjones has joined #ocaml
mbac has joined #ocaml
eldragon has joined #ocaml
Obfuscate has joined #ocaml
gildor has joined #ocaml
mehdid has joined #ocaml
melwtech45 has joined #ocaml
BiDOrD has joined #ocaml
gnuvince1 has joined #ocaml
orbitz has joined #ocaml
nimred has joined #ocaml
tmaeda has joined #ocaml
hyperboreean has joined #ocaml
willb has joined #ocaml
thelema has joined #ocaml
kaustuv has joined #ocaml
robthebob has joined #ocaml
f[x] has joined #ocaml
srcerer has joined #ocaml
manveru has joined #ocaml
flux has joined #ocaml
vk0 has joined #ocaml
joewilliams_away has joined #ocaml
mal`` has joined #ocaml
jonafan has joined #ocaml
rudi_s has joined #ocaml
rks has joined #ocaml
mattam has joined #ocaml
yurug has joined #ocaml
hto has joined #ocaml
shachaf has joined #ocaml
caligula has joined #ocaml
__marius__ has joined #ocaml
noj has joined #ocaml
svenl has joined #ocaml
fabjan_ has joined #ocaml
Derander has joined #ocaml
ninegrid has joined #ocaml
julm has joined #ocaml
fremo___ has joined #ocaml
bacam has joined #ocaml
cods has joined #ocaml
patronus_ has joined #ocaml
jlouis has joined #ocaml
haelix has joined #ocaml
avsm2 has joined #ocaml
npouillard has joined #ocaml
bitbckt has joined #ocaml
brendan has joined #ocaml
kerneis has joined #ocaml
pheredhel has joined #ocaml
hcarty has joined #ocaml
krktz has joined #ocaml
Axioplase_ has joined #ocaml
emias has joined #ocaml
_2x2l has joined #ocaml
cthuluh has joined #ocaml
cthuluh has quit [Ping timeout: 272 seconds]
eldragon has quit [Ping timeout: 245 seconds]
ulfdoz has quit [Ping timeout: 240 seconds]
Yoric has joined #ocaml
Snark has joined #ocaml
eldragon has joined #ocaml
Yoric has quit [Ping timeout: 272 seconds]
seafood has joined #ocaml
Modius has quit [Read error: Connection reset by peer]
Modius has joined #ocaml
Modius has quit [Quit: "Object-oriented design" is an oxymoron]
ftrvxmtrx has quit [Quit: Leaving]
ikaros has joined #ocaml
ttamttam has joined #ocaml
Tobu has quit [Ping timeout: 240 seconds]
seafood has quit [Quit: seafood]
ftrvxmtrx has joined #ocaml
Yoric has joined #ocaml
seafood has joined #ocaml
edwin has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
ttamttam has quit [Remote host closed the connection]
seafood has quit [Ping timeout: 260 seconds]
mike__ has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
BiDOrD has quit [Quit: BiDOrD]
BiDOrD has joined #ocaml
jcaose has joined #ocaml
groovy2shoes 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
groovy2shoes has quit [Read error: Connection reset by peer]
groovy2shoes has joined #ocaml
groovy2shoes has quit [Quit: groovy2shoes]
drunK has joined #ocaml
joko has joined #ocaml
<joko>
Hello, I'm interested in implementing a best first search algorithm in OCaml, do you have any tips?
jcaose has quit [Ping timeout: 265 seconds]
<flux>
joko, just do it :)
<thelema>
joko: not really - I have a maxarg function that might be useful for you
<flux>
I guess he eventually need the remaining values as well
<thelema>
oops, yes... I guess sorting is best...
<flux>
or possibly a map
<flux>
I'm not sure if that's the same algorithm still
<flux>
and you need batterie's variation of it as well, so you can find the lower/highest score element :)
<thelema>
BatArray.decorate_fast_sort, if your cost fuction is expensive
<flux>
(or use a Set one keeps in synch)
<thelema>
joko: what data structure are you going to use for your graph?
yezariaely has joined #ocaml
ikaros has joined #ocaml
joewilliams_away is now known as joewilliams
cthuluh has joined #ocaml
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
schme has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
pikachuyann has joined #ocaml
edwin has quit [Remote host closed the connection]
init1 has joined #ocaml
kerneis has quit [Ping timeout: 265 seconds]
Yoric has quit [Quit: Yoric]
avsm has quit [Quit: Leaving.]
jcaose has joined #ocaml
kerneis has joined #ocaml
pikachuyann has quit [Ping timeout: 265 seconds]
edwin has joined #ocaml
Edward has joined #ocaml
yezariaely has quit [Quit: Leaving.]
ftrvxmtrx has joined #ocaml
cole has joined #ocaml
fraggle_ has quit [Ping timeout: 245 seconds]
fraggle_ has joined #ocaml
<adrien>
with batteries, I'm trying to read two files and find the matches for the first file in the second file, so far I'm using BatEnum, my issue is that find consumes the enumeration while searching and I don't know if the input files are sorted and I don't see a way to sort enums directly
<adrien>
is the only way to convert to an array or list?
<hcarty>
adrien: Would a map or hash table work?
<hcarty>
Or a set
<hcarty>
Inset all elements from (1) in to the set, them check each element from (2) against the set
<adrien>
hcarty: yeah, of course, I started this the stupid way , I/O will be limitating anyway
<adrien>
hmmm, I was told they are actually sorted (I'm helping a biology student, for me it's the occasion to learn Batteries, for her it's the occasion not to write horrible perl :p )
fraggle_ has quit [Ping timeout: 245 seconds]
<adrien>
why is a functor required to make a hashtable with a custom hash btw?
<adrien>
I can't see a big problem but I can see smaller ones (especially when marshalling)
<flux>
aren't non-functored approaches especially difficult when marshalling? you need to marshal closures as well?
<flux>
although I'm not sure if there is a good reason.. Hashtbl doesn't have functions that interface with more than one Hashtbl at the same time.
<adrien>
and BatList.find should have a special case for sorted lists (it'd consume only up to a point: it'd stop when the sorting makes it impossible to find new values)
<flux>
how often would that be used?
<adrien>
at least once :P
<flux>
when one hears about sorted lists, using another data structure comes to mind..
<adrien>
sorted lists would make it O(n) actually, it'd be good
<adrien>
(and I'm just too tired for anything tonight, better eat, go to bed and do that tomorrow=
<adrien>
)
Snark has quit [Quit: Ex-Chat]
cole has quit [Ping timeout: 265 seconds]
groovy2shoes has joined #ocaml
init1 has quit [Quit: Quitte]
<flux>
..versus using non-sorted lists with O(n) complexity?
schme has left #ocaml []
groovy2shoes has quit [Quit: groovy2shoes]
<edwin>
hi
<edwin>
speaking of marshaling, what are safe alternatives? (that don't crash when marshaled data is corrupted)
<edwin>
I think SQL DB is one, anything else?
redfire has joined #ocaml
<adrien>
flux: no, I'd be consuming two enums, not one, the non-sorted case would be much worse
<adrien>
edwin: binprot, biniou/json, sexplib
ikaros_ has joined #ocaml
<edwin>
adrien: thanks, I'll have a look at those
<adrien>
there are more too
<redfire>
hi
<redfire>
I would like to compile one ocaml file with the lib bitstring (yes I'm sill on it :-)) and I'm not used to ocaml compilation
<redfire>
In the documentation we can see, an example but not juste to get a .cmo
<redfire>
but now I want to use the bitstring of my directory lib/
<redfire>
and not the one of th system
<redfire>
is it possible N
<redfire>
?
<adrien>
first, why, and then, how have you installed this bitstring?
<adrien>
specifically, do you have a META file in your lib/
<adrien>
there's also the dead-simple solution: run the previous command with -verbose, copy paste the output (it lists the commands being run) and update the paths
<redfire>
why ? school project.... So I have to put everything together
<adrien>
ok
<adrien>
does that mean you'll have to compile bitstring on the host machine?
<redfire>
probably
Messanger has joined #ocaml
<Messanger>
world leaders setting you all up right now to get microchipped by RFID microchips with identity/healthcare/credit information into their new world order why they are folding the economy , their solution to the problem they are causing is the RFID microchip http://www.scribd.com/doc/44997148/The-Mark-of-the-Beast Romans 10:13 all who call upon the name of the Lord shall be saved.
Messanger has quit [K-Lined]
* adrien
wonders if that bible quote was required
<adrien>
(actually I'm wondering why it was put there, can't see the link)
hto has quit [Read error: Connection reset by peer]
hto has joined #ocaml
metropolis has joined #ocaml
hto has quit [Client Quit]
hto has joined #ocaml
<metropolis>
Ok, is it possible to build C-callable libraries using ocaml?
<metropolis>
My startup is evaluating ocaml, which a few people have played with, as our "performance" language for writing performance-critical sections of our codebase, and then ultimately calling from our extensive python codebase. So the first question is "can we create shared objects that something-that-needs-a-C-API-can-call?"
<adrien>
as far as I know, yes, but I've never done it
<adrien>
(won't allow you to get thread-level parallelism however)
<rwmjones>
metropolis: yes, it's quite tricky though
<rwmjones>
you will still need to write manual wrappers around the libraries (we were hoping to autogenerate those but didn't get around to it)
<metropolis>
My understanding was that the current ocaml runtime did not support thread-level parallelism, is that correct?
<metropolis>
Well, my christmas project might be tackling this, because we rely on boost::python to wrap c++ in python right now, and it's pretty easy to use, but sweet zombie jesus I want to get us away from c++
<metropolis>
adrien: that link helps a lot, thanks
<adrien>
only one ocaml thread may run at a given time with the current implementation, a project called oc4mc is working on improving that
<metropolis>
this is a dumb question, but are there IPC mechanisms to make message-passing concurrency from multiple processes viable?
joewilliams is now known as joewilliams_away
<adrien>
there's a number of different libs/approaches depending on your needs, I'm only familiar with ocamlnet (it has rpc but it's type-safe and pretty easy to use, but it also has some modules for shared-memory and passing values between caml processed), it's probably not the easiest library however
<adrien>
I need to go to sleep, it's getting hard to make sense :P
joewilliams_away is now known as joewilliams
Edward has quit []
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
fraggle_ has joined #ocaml
sukhov has joined #ocaml
sukhov has left #ocaml []
sukhov has joined #ocaml
Obfuscate has quit [Quit: The joy of kernel vulnerabilities.]
Obfuscate has joined #ocaml
Tianon has quit [Ping timeout: 260 seconds]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
Tianon has quit [Ping timeout: 272 seconds]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
<hcarty>
metropolis: There are also JoCaml, camlp3l and ocamlmpi as options for message passing/multi-processing
<metropolis>
hcarty: thanks!
edwin has quit [Remote host closed the connection]
<hcarty>
metropolis: Good luck on your quest to escape C++ :-)
mike__ has quit [Ping timeout: 245 seconds]
redfire has quit [Quit: Lost terminal]
ftrvxmtrx has quit [Quit: Leaving]
ulfdoz has joined #ocaml
bitbckt is now known as pitbckt
ftrvxmtrx has joined #ocaml
pitbckt is now known as bitbckt
ulfdoz has quit [Ping timeout: 276 seconds]
metropolis has quit [Quit: metropolis]
jcaose has quit [Quit: Leaving]
ikaros_ has quit [Quit: Leave the magic to Houdini]
lamawithonel_ has quit [Ping timeout: 255 seconds]