vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
ollehar has quit [Ping timeout: 248 seconds]
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
tobiasBora has quit [Quit: Konversation terminated!]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
eikke has quit [Ping timeout: 276 seconds]
vivanov__ has quit [Read error: Operation timed out]
chambart has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
ygrek has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
letrec has quit [Ping timeout: 260 seconds]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
madroach has quit [Ping timeout: 248 seconds]
ygrek has quit [Ping timeout: 276 seconds]
madroach has joined #ocaml
walter has quit [Quit: This computer has gone to sleep]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
q66 has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
chambart has quit [Ping timeout: 240 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
talzeus has joined #ocaml
Drup has quit [Quit: Leaving.]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
ygrek has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
wormphlegm has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
osnr has quit [Quit: Leaving.]
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
walter has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
pkrnj has quit [Ping timeout: 276 seconds]
vivanov__ has quit [Read error: Operation timed out]
pkrnj has joined #ocaml
pkrnj has quit [Remote host closed the connection]
walter has quit [Quit: This computer has gone to sleep]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
jtoman has joined #ocaml
<jtoman>
Hello all, I'm developing a bridge between Lua and Ocaml (not because I think it'll be useful but for my own edification).
vivanov__ has joined #ocaml
<jtoman>
It's going more or less well, but when I try to use a value computed in ocaml and passed back to the C code via the Callbacks mechanism I get a segfault. Looking at other addresses I *know* are on the OCaml heap the address I'm getting back is plain wrong. Any thoughts?
<jtoman>
Is it impossible to return values from Ocaml back to C via the callbacks mechanism?
<jtoman>
Oh, as a final note, I'm not using C as the main program, the program is in OCaml and then calls back out to C which then sometimes calls back into OCaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
osnr has quit [Quit: Leaving.]
jtoman has quit [Quit: Page closed]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
cdidd has quit [Read error: Connection reset by peer]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
cdidd has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
cdidd has quit [Remote host closed the connection]
cdidd has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
cdidd has quit [Read error: Connection reset by peer]
vivanov__ has quit [Read error: Operation timed out]
cdidd has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
Yoric has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
ttamttam has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
eni has joined #ocaml
t4nk701 has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
<t4nk701>
is it possible to write a polymorphic "print" function that would check the type of the input and then call print_int, print_float, print_char etc. appropriately?
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
Arsenik has joined #ocaml
venk has quit [Ping timeout: 245 seconds]
vivanov__ has quit [Ping timeout: 260 seconds]
<ygrek>
t4nk701, directly - not possible
vivanov__ has joined #ocaml
<t4nk701>
ok fair enough
Watcher7 is now known as Watcher7|off
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
<rgrinberg>
companion_cube: how did you host the sequecnce tarball on github?
<rgrinberg>
companion_cube: I see an archive diretory in the url file for OPAM but no such directory in the github repo
ttamttam has left #ocaml []
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
speredenn has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
cdidd has quit [Read error: Connection reset by peer]
venk has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
cdidd has joined #ocaml
vivanov__ has joined #ocaml
osnr has quit [Quit: Leaving.]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
Arsenik has quit [Remote host closed the connection]
vivanov__ has quit [Read error: Operation timed out]
eni has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
cthuluh has quit [Read error: Operation timed out]
vivanov__ has quit [Ping timeout: 252 seconds]
cthuluh has joined #ocaml
osnr has quit [Client Quit]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
ontologiae_ has joined #ocaml
UncleVasya has joined #ocaml
vivanov__ has joined #ocaml
speredenn has quit [Ping timeout: 276 seconds]
cthuluh has quit [Ping timeout: 248 seconds]
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
mika1 has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
cago has joined #ocaml
chambart has joined #ocaml
ttamttam has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
thelema has quit [Remote host closed the connection]
thelema has joined #ocaml
raichoo has joined #ocaml
vivanov__ has joined #ocaml
raichoo has quit [Client Quit]
raichoo has joined #ocaml
Kakadu has joined #ocaml
ontologiae_ has quit [Ping timeout: 252 seconds]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 276 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
Yoric has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
ollehar has joined #ocaml
<companion_cube>
rgrinberg: github creates archives automatically when you push tags
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
thomasga has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
hkBst has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
ygrek has joined #ocaml
eikke has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
t4nk701 has quit [Ping timeout: 250 seconds]
yacks has quit [Quit: Leaving]
vivanov__ has quit [Ping timeout: 245 seconds]
thelema has quit [Read error: Connection reset by peer]
vivanov__ has joined #ocaml
ontologiae_ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
hkBst has quit [Read error: Connection reset by peer]
thelema has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
yacks has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
ontologiae_ has quit [Ping timeout: 248 seconds]
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
ontologiae_ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
cthuluh has joined #ocaml
mort___ has joined #ocaml
maufred has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
mort___ has left #ocaml []
vivanov__ has joined #ocaml
Yoric has joined #ocaml
ikudrautsau has joined #ocaml
jbrown has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
ttm has quit [Ping timeout: 264 seconds]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
zpe has joined #ocaml
The_third_man has joined #ocaml
osnr has quit [Quit: Leaving.]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
osnr has quit [Client Quit]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
dsheets has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
osnr has quit [Quit: Leaving.]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
osnr has quit [Client Quit]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
chambart has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
mcclurmc has quit [Ping timeout: 248 seconds]
thelema has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
<rgrinberg>
companion_cube: I see, thanks!
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
thelema has joined #ocaml
vivanov__ has joined #ocaml
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
skchrko has quit [Quit: Leaving]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
chambart has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
ttamttam has left #ocaml []
chambart has quit [Ping timeout: 245 seconds]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
mcclurmc has joined #ocaml
flx_ has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
thelema has quit [Remote host closed the connection]
thelema has joined #ocaml
flux has quit [Ping timeout: 245 seconds]
flx_ is now known as flux
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
talzeus has quit [Quit: where is the love...]
vivanov__ has quit [Ping timeout: 252 seconds]
SanderM has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
chambart has joined #ocaml
ggole has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
q66 has joined #ocaml
_andre has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
Drup has joined #ocaml
UncleVasya has quit [Quit: UncleVasya]
vivanov__ has quit [Ping timeout: 264 seconds]
testcocoon has quit [Read error: Connection reset by peer]
vivanov__ has joined #ocaml
chambart has quit [Ping timeout: 245 seconds]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
ttamttam1 has joined #ocaml
ttamttam1 has quit [Client Quit]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
testcocoon has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
walter has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
raichoo has quit [Quit: leaving]
raichoo has joined #ocaml
raichoo has quit [Quit: leaving]
raichoo has joined #ocaml
vivanov__ has joined #ocaml
<mcclurmc>
i'm getting an exception in the toplevel when using compiler-libs.toplevel in conjunction with the Lexing module
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
<mcclurmc>
if i load a file which contains just "let lnum_of_pos p = p.Lexing.pos_lnum" into a toplevel with compiler-libs.toplevel installed, i get this exception:
<mcclurmc>
# #use "exception.ml";;
<mcclurmc>
>> Fatal error: lnum_of_pos unbound at toplevel
vivanov__ has quit [Read error: Operation timed out]
raichoo has quit [Quit: leaving]
raichoo has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
SanderM has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
Kakadu has quit [Ping timeout: 256 seconds]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
letrec has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
dsheets has quit [Ping timeout: 276 seconds]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
so has quit [Ping timeout: 252 seconds]
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
so has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
so has quit [Ping timeout: 268 seconds]
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
Kakadu has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
tane has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
thelema has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
Adrian has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
thelema has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
vivanov__ has joined #ocaml
troydm has quit [Read error: Operation timed out]
vivanov__ has quit [Read error: Operation timed out]
tane has quit [Quit: Verlassend]
Snark has joined #ocaml
thelema has quit [Remote host closed the connection]
vivanov__ has joined #ocaml
troydm has joined #ocaml
thelema has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
SanderM has joined #ocaml
thelema has quit [Read error: Connection reset by peer]
SanderM has quit [Client Quit]
thelema has joined #ocaml
SanderM has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
smondet has joined #ocaml
Zeev has quit [Read error: Connection reset by peer]
Yoric has quit [Ping timeout: 252 seconds]
Zeev has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
SanderM has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
Adrian has quit [Quit: Page closed]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
hkBst has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
raichoo has quit [Quit: leaving]
hkBst has joined #ocaml
hkBst has quit [Changing host]
hkBst has joined #ocaml
<yezariaely>
can I increase the stack size of the toploop somehow/
<yezariaely>
?
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
cago has left #ocaml []
mika1 has quit [Quit: Leaving.]
zpe has joined #ocaml
<adrien_oww>
yezariaely: "toploop"?
<adrien_oww>
yezariaely: you can increase the stack size of ocamlrun, see "man ocamlrun"
<yezariaely>
ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
<adrien_oww>
so that will apply to byte-compiled executables and the toplevel (what you called "toploop" I guess)
<yezariaely>
found that, but these parameters do not work on ocaml
Yoric has joined #ocaml
<yezariaely>
ehm toplevel, sorry.
<adrien_oww>
better solution usually is to make your recursive function tail-recursive
<adrien_oww>
yezariaely: how did you invoke ocaml?
<yezariaely>
simply: ocaml -l1000 and tried ocaml -l 1000 as well.
vivanov__ has joined #ocaml
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
<adrien_oww>
won't work :-)
<adrien_oww>
you need to go through environment variables (or start ocaml with: ocamlrun -your-params /usr/bin/ocaml)
<adrien_oww>
OCAMLRUNPARAM="l=1000" ocaml
<yezariaely>
ah cool
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
zpe has quit [Ping timeout: 248 seconds]
chambart has joined #ocaml
vivanov__ has joined #ocaml
ikudrautsau has quit [Ping timeout: 256 seconds]
mattrepl has joined #ocaml
Kakadu has quit []
vivanov__ has quit [Ping timeout: 252 seconds]
Kakadu has joined #ocaml
vivanov__ has joined #ocaml
hkBst has quit [Quit: Konversation terminated!]
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
chambart has quit [Ping timeout: 248 seconds]
chambart has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
Yoric has quit [Ping timeout: 252 seconds]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
skchrko has joined #ocaml
zpe has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
dsheets has joined #ocaml
vivanov__ has joined #ocaml
letrec has quit [Ping timeout: 248 seconds]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
zpe has quit [Ping timeout: 256 seconds]
Neros_ has quit [Ping timeout: 248 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
osnr has quit [Client Quit]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has quit [Ping timeout: 245 seconds]
skchrko has quit [Quit: Leaving]
vivanov__ has joined #ocaml
Zeev has quit [Disconnected by services]
Zeev has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
chambart has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
thomasga has quit [Quit: Leaving.]
<dsheets>
what is the simplest way to convince oasis to compile a .d.byte ?
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
zpe has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
darkf has quit [Quit: Leaving]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
tobiasBora has joined #ocaml
<tobiasBora>
Hello,
<tobiasBora>
I'd like to know, what's the difference between != and <> ? Because <> doesn't seems to work on tupplets, but it's the only difference I can see.
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
<Drup>
tobiasBora: <> is the negation of =, != is the negation of == (the physical equality)
Yoric has joined #ocaml
<Drup>
(and <> works fine on tuples)
<tobiasBora>
Drup: Thanks. Ah yes I didn't wrote what I'd like : I mean != doesn't work on tuplets. It's the first time I heard about == in Ocaml, what is it exactly ?
vivanov__ has quit [Ping timeout: 248 seconds]
<flux>
tobiasbora, it compares if the objects being compared are the same object, not that if their contents is the same
<Drup>
= is structural, == is physicial
vivanov__ has joined #ocaml
<flux>
for example let (a, b) = (1.0, 1.0) /* a and b are now equal but they are distinct objects: a == b will return false, but a = b will return true */
<tobiasBora>
flux: and a==b for exemple when we do "let a=ref 0 in; let b=a; ?
vivanov__ has quit [Read error: Operation timed out]
<flux>
well, if you have let b = a then b == a regardless of if a is a ref or not
Neros has joined #ocaml
<tobiasBora>
I see... Thanks for your help !
vivanov__ has joined #ocaml
zpe_ has joined #ocaml
vivanov__ has quit [Ping timeout: 240 seconds]
zpe__ has joined #ocaml
vivanov__ has joined #ocaml
zpe_ has quit [Read error: Connection reset by peer]
zpe has quit [Ping timeout: 240 seconds]
Arsenik has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
chambart has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
oriba has joined #ocaml
vivanov__ has joined #ocaml
chambart has quit [Ping timeout: 248 seconds]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
Neros has quit [Ping timeout: 245 seconds]
Yoric has quit [Ping timeout: 252 seconds]
ollehar has quit [Quit: ollehar]
zpe__ has quit [Remote host closed the connection]
zpe has joined #ocaml
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
<Kakadu>
I have cloned opam-repo-dev and trying to add this remote to opam. But opam wants some file 'urls.txt' which doesn't present in dev-repo
<Kakadu>
what I'm doing wrong?
<companion_cube>
if you want the repo where packages live, I believe it's opam-repository
Zeev has quit [Read error: Connection reset by peer]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
mcclurmc has quit [Ping timeout: 260 seconds]
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
eikke has quit [Ping timeout: 276 seconds]
tobiasBora has quit [Ping timeout: 245 seconds]
vivanov__ has quit [Ping timeout: 248 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
himito has joined #ocaml
<himito>
Bonsoir
Kakadu has quit []
vivanov__ has joined #ocaml
himito has quit [Quit: WeeChat 0.3.7]
vivanov__ has quit [Ping timeout: 245 seconds]
vivanov__ has joined #ocaml
zpe has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
Snark has quit [Quit: leaving]
tobiasBora has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
osnr has quit [Quit: Leaving.]
Drup has quit [Remote host closed the connection]
LiesHidden has joined #ocaml
Drup has joined #ocaml
Drup has quit [Read error: Connection reset by peer]
Drup has joined #ocaml
tlockney has quit [Excess Flood]
<LiesHidden>
Anyone here? I'm not understanding why this line of code is causing an infinite loop " | hd::tl when (List.exists (fun x -> x = hd) tl) -> aux (List.filter (fun x -> x <> hd) tl) acc " it's in a match statement, I'm trying to get all instances of the list that have only one instance.
tlockney has joined #ocaml
<flux>
well, I would say that that line by itself cannot cause an infinite loop, as in the (assumed) recursion step the size of the set is always smaller
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
<flux>
in the same way this can never be an infinite loop: let rec loop xs = match xs with hd::tl -> loop tl
<LiesHidden>
That's my thought, and the next line is just the hd::tl -> aux tl (acc + 1) (assumed since it doesn't match, it must be unique)
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov_1 has joined #ocaml
osnr has quit [Client Quit]
<LiesHidden>
But If i run it without that line, it runs in a second, the instant I put that line in and run it, it goes on and on and on..
<flux>
add debug output.
<flux>
for example Printf.printf "%d\n%!" (List.length xs) at the beginning of the function is a great start :)
<def-lkb>
just to be sure, you don't have any cyclic structure involved (the list itself or the elements compared by polymorphic equality) ?
<LiesHidden>
(chuckles) i was thinking that when u suggested debug
<LiesHidden>
no, just those lines, plus the [] -> acc match at the beginning, of course
vivanov_1 has quit [Ping timeout: 264 seconds]
<flux>
if he does, he won't get the first debug message out :)
vivanov__ has joined #ocaml
<LiesHidden>
the list itself forms just fine, and since that statement only calls that list once, I don't see how it could be involved
<flux>
and you are certain this is the piece of code where the loop is occurring, not in the code that processes the results?
<def-lkb>
the "x = hd" and "x <> hd" may not terminate
<LiesHidden>
the first is to check if there are duplicates, the second is to remove those duplicates from the next loop...
<flux>
if he never calls recursive step with a list as long or longer than its input, it is impossible to end up in an infinite loop
<flux>
because eventually the list will be empty.
<oriba>
LiesHidden, " I'm trying to get all instances of the list that have only one instance" you mean a list of lists?
<oriba>
List.filter ( fun li -> List.length li = 1 ) list_of_lists
<def-lkb>
yes, the structural induction on list will terminate, but until we know more about what is inside the list, we can't be sure that equality tests in guards terminate
vivanov__ has quit [Ping timeout: 254 seconds]
<LiesHidden>
no, a list of ints.. but I need instances that only appear once, if they appear more than once, they're not to be included
<LiesHidden>
or rather a count, which is why acc + 1
vivanov__ has joined #ocaml
<flux>
lieshidden, have you played with the function in the toplevel? or only embedded inside your application?
<LiesHidden>
I'm running through the top level, but the code is in a file. i find it's easier to debug that way lol
<oriba>
looks like a job for a map ...
<oriba>
Map-module I mean
<oriba>
or Set
<flux>
Map and a fold is definitely the way to go, but I think this list-based approach should work as well :)
<oriba>
if you traverse the list you would need to look up all occurrecnes so far.
<oriba>
looks not very efficient to me
zpe has joined #ocaml
<oriba>
or I did not understand the task
<LiesHidden>
I'm just starting with OCaml, I haven't had much experience with optimizing yet, oriba lol
dsheets has quit [Ping timeout: 252 seconds]
<def-lkb>
LiesHidden: maybe you can just put your code on a pastbin?
<oriba>
LiesHidden, I did not mean optimizing OCaml-like, but optimizing algorithmic-like
<oriba>
But using lists is ok for learning OCaml :-)
<LiesHidden>
lol, Lists are a pretty functional approach ;)
<oriba>
or use a seperate function instead of so much nested functions in the match
<LiesHidden>
List.length was my first approach, but that requires building a second list, and that takes memory
<oriba>
pattern matches can also be dont like this hd::second::tl
<LiesHidden>
huh? That's not in my code
<flux>
alright
<flux>
I think the problem is not that the loop is infinite
<flux>
rather than your algorithms is WAY too inefficient :)
<LiesHidden>
hmm... the debug is working, but the code is going much slower than it should be, considering
<LiesHidden>
Like I said, if i remove that line, it runs in a second, tops
<flux>
this might be a good time to learn about the O(x) notation
<flux>
lieshidden, but it doesn't work, right?
vivanov__ has quit [Ping timeout: 252 seconds]
<flux>
consider how much work needs to be done to process a list of 10 elements
<LiesHidden>
It seems to be working, just taking a long time... but I let it run near an hour, and it never completed, with the debug Printf, it's moving though
<flux>
and how much to process a list of 20 elements
<LiesHidden>
And I'm processing one of 200K elements lol
<flux>
(wasn't very insightful of us to not ask about problem size..)
vivanov__ has joined #ocaml
<def-lkb>
(:))
<LiesHidden>
OK, so what would be a more efficient approach to getting a count on all instances that only contain ONE instance in the list?
<flux>
well, there are two basic approaches
<flux>
either you go the list through and maintain another structure with the counts
<flux>
like a hash or a map
<flux>
another option is to sort the list and eliminate consecutive elements that are equal
<LiesHidden>
I did sort it in the return on answer.... and that's what I was trying to do with the match statement that failed so uglily
gustav_ has quit [Remote host closed the connection]
<flux>
your current algorithm doesn't take advantage of the fact that the list would be sorted
<flux>
so for each element, it searches the (remaining) whole list
<flux>
you can see how much faster it can be if it only needs to look at the next element, if it's the same or not
<LiesHidden>
But there could be 3 or 4 or 5 repeated instances
<LiesHidden>
for instance, 120 I happen to know for a fact has 3
<flux>
let's say your list of numbers is [0;3;7;9;120;120;120;200;210;210]
vivanov__ has quit [Ping timeout: 260 seconds]
<flux>
you can find out your answer pretty fast from that, by looking at the adjacent elements?
<LiesHidden>
True, but I'm not sure how to program that
vivanov__ has joined #ocaml
<LiesHidden>
List.nth tl 0 would be the next element in the list on the tail.... match that against hd?
<flux>
well, your code would be structured something like this: match xs with a::b::rest when (a = b) -> blahblah
<def-lkb>
LiesHidden: mutually recursive functions can help (one keeping unique elements, one dropping consecutive ones)
<def-lkb>
let rec keep_uniq = function | a :: b :: tl when a = b -> drop a tl | a :: tl -> a :: keep_uniq tl | [] -> []
<def-lkb>
and drop a = function | b :: tl when a = b -> drop a tl | l -> keep_uniq l;;
vivanov__ has quit [Read error: Operation timed out]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
<LiesHidden>
You guys are awesome, that should help immensely :)
ttamttam has joined #ocaml
Zeev has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
eikke has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
Neros has joined #ocaml
Kakadu has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
<LiesHidden>
They tried to trick me, lol, the last one is a duplicate, so hd::next::tl didn't catch it, I had to put a clause in the hd::tl to catch it *chuckles* still it runs in about 5 seconds, which is MUCH better, thank you guys :)
eni has joined #ocaml
<def-lkb>
nice :)
<LiesHidden>
Ahh well, much as I'd love to do another problem, I have to get going, have a good one, guys, and thanks again.
LiesHidden has left #ocaml []
vivanov__ has quit [Read error: Operation timed out]
<oriba>
it was project Euler, No. 75, aha, we made the good solutions for him ;-)
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
emmanuelux has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
eikke has quit [Read error: Connection reset by peer]
ttamttam has left #ocaml []
vivanov__ has joined #ocaml
eikke has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
tane has joined #ocaml
Arsenik has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov_1 has joined #ocaml
vivanov_1 has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
zpe_ has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
eikke has quit [Read error: Connection reset by peer]
zpe_ has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
vivanov__ has joined #ocaml
eikke has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
stomp_ has joined #ocaml
jpdeplaix has joined #ocaml
vivanov__ has joined #ocaml
rixed_ has joined #ocaml
walter has quit [Quit: This computer has gone to sleep]
zen_ben has joined #ocaml
jpdeplaix` has quit [Ping timeout: 276 seconds]
stomp has quit [Ping timeout: 276 seconds]
rixed has quit [Ping timeout: 276 seconds]
ben_zen has quit [Ping timeout: 276 seconds]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
<wmeyer>
hi
<companion_cube>
hello
osnr has quit [Quit: Leaving.]
osa1 has joined #ocaml
<osa1>
how is printf implemented in OCaml? it's type depends on first parameter, can we also do that or is it implemented in an ad-hoc way so only printf works that way?
<osa1>
I was watching F# type providers presentation here http://2013.flatmap.no/follesoe.html and thought it may be possible to get a OCaml's printf like function in F# with type providers
<osa1>
(btw, I never written a single line of F#, this is only a guess)
<companion_cube>
osa1: printf literals are special, known by the compiler that type them
vivanov__ has joined #ocaml
<wmeyer>
companion_cube: hello
<wmeyer>
:-)
<osa1>
companion_cube: where can I learn more about it's implementation? let a = printf;; a "%s";; still works
<companion_cube>
osa1: "%s" is not really a string, but a format string, in this case
chambart has joined #ocaml
<companion_cube>
your example works, but not let s = "%" in printf (s ^ "s") "hello"
eikke has quit [Read error: Connection reset by peer]
wmeyer has quit [Remote host closed the connection]
<osa1>
ok, so does anyone has any ideas if it's possible to implement similar thing in F# type providers?
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
<companion_cube>
no idea
zpe has quit [Remote host closed the connection]
zen_ben is now known as ben_zen
zpe has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has quit [Ping timeout: 257 seconds]
vivanov__ has joined #ocaml
dsheets has joined #ocaml
zpe has quit [Ping timeout: 264 seconds]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
vivanov__ has joined #ocaml
speredenn has joined #ocaml
_andre has quit [Quit: leaving]
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
zbroyar has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
wmeyer has joined #ocaml
vivanov__ has joined #ocaml
thomasga has joined #ocaml
ollehar has joined #ocaml
eikke has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
Watcher7|off is now known as Watcher7
Yoric has quit [Ping timeout: 260 seconds]
Watcher7 is now known as Watcher7|off
thelema has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
malo has joined #ocaml
ulfdoz has joined #ocaml
<tobiasBora>
I've a little question about Algorithm : I've an array and I'd like to put a number in every case wich is inside a ring (I just know the coordonnee of one point inside the ring). What would be the best way to do that ? I thought about a recursive algorithme who would color the cases around him, but I'm not sure it's the best solution.
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
thelema has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
<tobiasBora>
Does anyone know if it's possible to define a function at the end of a file (because it's would make more sense to read this function at the end, but I must define it at the beginning in order to call it in an other function)
<orbitz>
tobiasBora: no
vivanov__ has joined #ocaml
<tobiasBora>
and put a little "prototype" at the beginning to say that the function is at the bottom ,
<orbitz>
tobiasBora: one reason to use mli's, you can give functions in the order that makes sense, then define them in any order in the .ml
Kakadu has quit []
Zeev has quit [Ping timeout: 252 seconds]
<tobiasBora>
orbitz: I see... It's interessting in classic programms, but I need to print my program to give it to my teacher, and It need to put it on only one file.
vivanov__ has quit [Read error: Operation timed out]
<zbroyar>
tobiasBora: 'to print my programm' - do you mean to print it on paper via the printer?
<tobiasBora>
zbroyar: yes
<zbroyar>
tobiasBora: then you can put your functions in any order: papers does not compile :-)
thelema has quit [Read error: Connection reset by peer]
<zbroyar>
I mean: write your program, compile, check and debug
vivanov__ has joined #ocaml
<zbroyar>
When it works - change the order as you like and print :-)
<tobiasBora>
zbroyar: Indeed ^^ But my moral would forgive me to print a program that we cannot compile !
<orbitz>
tobiasBora: I just use clear comments to indicate internal vs api functions
<orbitz>
it's not tha tbad
<zbroyar>
tobiasBora: your teacher is not going to write your program manually back to digital form, believe me :-)
<tobiasBora>
zbroyar: Oh you don't know my teacher ;-)
<tobiasBora>
orbitz: I may do that... I'll see if it really no make sense, and if so I'll give back an un-compilable program !
<zbroyar>
tobiasBora: anyway, OCaml doesn't have C-style forward declarations.
<tobiasBora>
Ok thanks for your help !
Zeev has joined #ocaml
thelema has joined #ocaml
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
<orbitz>
the order thigns get bound in Ocaml matters alot, comparedto soemthing liek C
<tobiasBora>
I see. Is it for "technical" raison or not ?
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
Yoric has joined #ocaml
<ggole>
I think the requirement to use 'and' in mutually recursive definitions is a deliberate decision and not a technical limitation.
jbrown has quit [Ping timeout: 256 seconds]
ikudrautsau has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
<tobiasBora>
ggole: what do you mean by 'and' ?
vivanov__ has joined #ocaml
<ggole>
In order to write function and type definitions that depend on each other, they need to be in scope in each others definitions
<ggole>
You do that by writing successive definitions with and instead of let
<ggole>
let f x = g x and g x = f (x + 1), for a (silly) example
eni has quit [Ping timeout: 252 seconds]
<Drup>
(However, you do need the rec for this)
<ggole>
Er, yeah
<ggole>
I always forget that :)
<ggole>
If I had a buck for every time I had to go back and add a 'rec'...
vivanov__ has quit [Ping timeout: 264 seconds]
<Drup>
and the . when dealing with float :p
vivanov__ has joined #ocaml
<ggole>
Yep. And often array.() and string.[], too.
<orbitz>
ggole: i think it is as well, and a good one
Yoric has quit [Ping timeout: 264 seconds]
<ggole>
It beats forward declarations.
<orbitz>
You can just rebind stuff so easily in ocaml, forward declarations don't make much sense IMO
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
osnr has quit [Quit: Leaving.]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
ggole has quit []
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
thelema has quit [Remote host closed the connection]
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
ollehar has quit [Ping timeout: 260 seconds]
tane has quit [Quit: Verlassend]
<wmeyer>
orbitz: hello
thelema has joined #ocaml
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
gasche has quit [Ping timeout: 264 seconds]
vivanov__ has quit [Ping timeout: 256 seconds]
vivanov__ has joined #ocaml
gasche has joined #ocaml
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
speredenn has quit [Quit: Leaving]
smondet has quit [Ping timeout: 252 seconds]
malo has quit [Quit: Leaving]
osnr has quit [Quit: Leaving.]
vivanov__ has joined #ocaml
eikke has quit [Ping timeout: 264 seconds]
smondet has joined #ocaml
eikke has joined #ocaml
hto has quit [Read error: Operation timed out]
vivanov__ has quit [Ping timeout: 276 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
hto has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
emmanuelux has quit [Read error: Operation timed out]
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 260 seconds]
osnr has joined #ocaml
osnr has quit [Changing host]
osnr has joined #ocaml
vivanov__ has joined #ocaml
rand0000 has joined #ocaml
oriba_ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
oriba has quit [Ping timeout: 260 seconds]
dsheets has quit [Ping timeout: 264 seconds]
<rand0000>
Hey - does anyone in here have experience with how fas the 'graphics.cma' library is compared to the SDL API? I need to view 25 images/sec with the application I'm planning to write...
<rand0000>
* fast *
vivanov__ has quit [Ping timeout: 252 seconds]
vivanov__ has joined #ocaml
zpe has joined #ocaml
<Drup>
I think that basically anything is better than graphics.cma if you want something "serious". graphics.cma is a good toy library but that's all
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
<rand0000>
ahh okay - thanks (:
<Drup>
rand0000: But I would not do any guess about how fast SDL is :)
<rand0000>
I just find that many of the API's available for func. prog.-langs is out of date with the newest versions of either the prog.-lang or the library implemented...
vivanov__ has quit [Ping timeout: 260 seconds]
<rand0000>
specifically looking at SDL api's or maybe open-gl...
vivanov__ has joined #ocaml
<Drup>
there are some up to date cairo or opengl bindings
<Drup>
(at least, they are uptodate afaik, I'm not really an expert)
<rand0000>
ok - I'll have a look at those
<rand0000>
native would just be coolest (:
emmanuelux has joined #ocaml
<Drup>
implementing a native graphic library in ocaml is just insane
<rand0000>
well I can imagine... seems like most func. prog.-lang implementations feel that way about native graphics lib's
<Drup>
having a functional binding on the other hand is possible and a far better way to go.
vivanov__ has quit [Ping timeout: 260 seconds]
Watcher7|off is now known as Watcher7
vivanov__ has joined #ocaml
<rand0000>
yes - but I'm a bit scared of my program breaking some time in the future if some API stops getting updated.. or should I not be worried?
<rand0000>
I could just stick with the old implementation and keep with that..
<Drup>
the opengl API for exemple do not evolve very fast
<rand0000>
ok
<ousado>
and it's not that hard to make a few changes
<Drup>
some function in the API have been declared as "deprecated" since 1.0, it's now 3.0 ...
<rand0000>
but I know fx that the SDL libs will get updated to a v 2.0 soon, which will bring a lot of change
<rand0000>
heh yeah ok
<rand0000>
open-gl is just a bit overkill concerning my use-case ; my impression is that SDL is a lot simpler
<rand0000>
also because SDL in itself support image-loading of differing formats
<rand0000>
I would need another library for that if I chose opengl
<Drup>
I'm not sure how the sdl binding is, but cairo can do what you want and the binding is quite nice.
vivanov__ has quit [Ping timeout: 252 seconds]
fraggle_laptop has quit [Remote host closed the connection]
<rand0000>
do you have any idea if cairo is fast?
<rand0000>
is it C-code?
<Drup>
it depend of what you wan
<rand0000>
I'll have a look...
<Drup>
want*
<rand0000>
25 frames/sec
<rand0000>
images of fullscreen size
vivanov__ has joined #ocaml
<rand0000>
SDL is fast enough - tested in python
zpe has quit [Remote host closed the connection]
<Drup>
that's not really the issue, the problem is the number of objects in your scene.
<rand0000>
ok? why not the speed of image-playback?
zpe has joined #ocaml
<rand0000>
I will not have many objects...
emmanuelux has quit [Read error: Operation timed out]
<Drup>
It's like if you say "I want to filter a list every X ms" without precising the size of the list :D
vivanov__ has quit [Read error: Operation timed out]
<rand0000>
ahh you mean how many images that need to be loaded into memory?
<rand0000>
that matters a lot... I need as many as I can get
<Drup>
no
<Drup>
but 25 f/s is not a lot so I suppose you should be ok.
<rand0000>
ok I guess I understand what you mean
vivanov__ has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
<Drup>
anyway, all those APIs are similar, you can switch from one to another without too much trouble if you're application is modular enough.
zpe has joined #ocaml
<rand0000>
You are right (:
smondet has quit [Ping timeout: 264 seconds]
vivanov__ has quit [Ping timeout: 260 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
<rand0000>
thanks for the help - I'm on the right track
<Drup>
no problem
ollehar has joined #ocaml
vivanov__ has joined #ocaml
ulfdoz has quit [Ping timeout: 252 seconds]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
vivanov__ has quit [Read error: Connection reset by peer]
osa1 has quit [Ping timeout: 245 seconds]
osa1 has joined #ocaml
eikke has quit [Ping timeout: 276 seconds]
eikke has joined #ocaml
vivanov__ has joined #ocaml
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
thomasga has quit [Quit: Leaving.]
vivanov__ has quit [Ping timeout: 264 seconds]
vivanov__ has joined #ocaml
osa1_ has joined #ocaml
osa1 has quit [Ping timeout: 264 seconds]
rand0000 has quit [Quit: leaving]
vivanov__ has quit [Read error: Operation timed out]