flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 4.01.0 http://bit.ly/1851A3R | http://www.ocaml.org | Public logs at http://tunes.org/~nef/logs/ocaml/
contempt has quit [Ping timeout: 245 seconds]
contempt has joined #ocaml
contempt has quit [Ping timeout: 240 seconds]
contempt has joined #ocaml
contempt has quit [Ping timeout: 272 seconds]
contempt has joined #ocaml
breakds has joined #ocaml
mfp has quit [Ping timeout: 260 seconds]
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
iZsh has quit [Ping timeout: 272 seconds]
iZsh has joined #ocaml
nikki93 has joined #ocaml
platypine has quit [Ping timeout: 246 seconds]
BitPuffin has quit [Ping timeout: 272 seconds]
breakds has quit [Quit: Konversation terminated!]
platypine has joined #ocaml
ocp has joined #ocaml
manizzle has quit [Ping timeout: 245 seconds]
ocp has quit [Ping timeout: 245 seconds]
ocp has joined #ocaml
csakatoku has joined #ocaml
ollehar has quit [Ping timeout: 245 seconds]
ocp has quit [Ping timeout: 272 seconds]
<wmeyer```> ping adrien
TDJACR has quit [Ping timeout: 245 seconds]
TDJACR has joined #ocaml
stevej has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
TDJACR has quit [Ping timeout: 272 seconds]
skchrko has quit [Remote host closed the connection]
breakds has joined #ocaml
Simn has quit [Quit: Leaving]
TDJACR has joined #ocaml
TDJACR has quit [Ping timeout: 272 seconds]
nikki93 has quit [Remote host closed the connection]
ollehar has joined #ocaml
TDJACR has joined #ocaml
manizzle has joined #ocaml
breakds has quit [Remote host closed the connection]
pango_ has joined #ocaml
pango has quit [Ping timeout: 272 seconds]
breakds has joined #ocaml
breakds has quit [Remote host closed the connection]
platypine has quit [Ping timeout: 248 seconds]
Drup has quit [Quit: Leaving.]
manizzle has quit [Quit: Leaving]
csakatoku has quit [Remote host closed the connection]
manizzle has joined #ocaml
ggole has joined #ocaml
ggole has quit [Read error: Connection timed out]
ggole has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
talzeus has quit [Read error: Connection reset by peer]
strobegen has joined #ocaml
talzeus has joined #ocaml
asmanur has joined #ocaml
nikki93 has joined #ocaml
sgnb has quit [Ping timeout: 246 seconds]
shinnya has quit [Ping timeout: 240 seconds]
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
manizzle has quit [Ping timeout: 260 seconds]
talzeus has quit [Ping timeout: 246 seconds]
Kakadu has joined #ocaml
cdidd has joined #ocaml
<adrien> wmeyer```: pong
<adrien> morning
ygrek has joined #ocaml
asmanur has quit [Quit: quit]
asmanur has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
mort___ has joined #ocaml
csakatoku has joined #ocaml
darkf has quit [Quit: Leaving]
Picolino has joined #ocaml
mfp has joined #ocaml
mort___ has quit [Quit: Leaving.]
ulfdoz has joined #ocaml
nikki93 has quit []
csakatok_ has joined #ocaml
wolfnn has joined #ocaml
Arsenik has joined #ocaml
sgnb has joined #ocaml
<mrvn> % ocamlopt -output-obj -o foo.o foo.ml
<mrvn> foo.o: file not recognized: File truncated
<mrvn> What is wrong there?
<Kakadu> can u try to pass foo.cmx to this command?
Simn has joined #ocaml
<mrvn> "ocamlopt -output-obj -o foo.ml foo.o" works
<mrvn> or not, doesn't give an error but doesn't create foo.o
<mrvn> % ocamlopt -output-obj -o foo.o foo.cmx
<mrvn> foo.o: file not recognized: File truncated
<Kakadu> I think because name collision
<Kakadu> ocamlopt -output-obj -o foo.o foo.ml don't work
<Kakadu> ocamlopt -output-obj -o foo2.o foo.ml do
<mrvn> ahhh.
<mrvn> Kakadu: thanks. bug files. ocamlopt should spot that.
<mrvn> s/files/filed/
csakatoku has quit [Remote host closed the connection]
csakatoku has joined #ocaml
csakatoku has quit [Ping timeout: 248 seconds]
talzeus has joined #ocaml
csakatok_ has quit []
BitPuffin has joined #ocaml
rand000 has joined #ocaml
zpe has joined #ocaml
* mrvn wonders what ocamls libasmrun needs opendir() for
ontologiae has joined #ocaml
<pippijn> mrvn: what are you doing?
<mrvn> playing with -output-obj
<mrvn> /usr/lib/ocaml/libasmrun.a(unix.o): In function `caml_read_directory':
<mrvn> (.text+0x329): undefined reference to `opendir'
<pippijn> hmm
<mrvn> why isn't unix.o in its own file?
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
ontologiae has quit [Ping timeout: 245 seconds]
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
rks_ has quit [Quit: leaving]
rks_ has joined #ocaml
mzie has joined #ocaml
<mzie> i have: Error: Unbound module GdkPixbuf, i built ocaml 4.01.1+dev0-2013-09-11 from source, how can i add that module?
<adrien> it's from lablgtk which you can get from http://lablgtk.forge.ocamlcore.org
<adrien> btw, you shouldn't use svn snapshots
AltGr has joined #ocaml
<mzie> adrien: i installed lablgtk 2.18.0 (with ./configure && make world && sudo make install) but i'm still getting the same error
<mzie> ocaml and lablgtk2 are both installed in /usr/local/bin/
<adrien> what are you building?
<adrien> (the one that is failing)
<mzie> File "src/gfx.ml", line 47
<adrien> ok, uninstall lablgtk2, then install findlib and install lablgtk2 again
<adrien> (I think you can "make uninstall", although I'm not 100% sure)
<mzie> adrien: findlib from source?
<adrien> if you've built others from source, you need to build findlib yourself too (findlib/ocamlfind)
<mzie> adrien: it looks like i already have ocamlfind, but it might from an older install (/usr/bin/)
<mzie> and maybe not compiled from source but from ubuntu
<adrien> that doesn't sound good
<mzie> adrien: i installed findlib and lablgtk2 from source, now i'm getting Error: Cannot find file lablgtksourceview2.cmxa for laby
<adrien> 1- you need a lablgtk2 that has been built with gtksourceview2 support
<adrien> 2- considering the code is 2-yo, it doesn't have a specific change
<mzie> yes for 1-
<adrien> in src/config.sh, replace "lablgtk2" with "lablgtk2.sourceview2"
<mzie> adrien: File "_none_", line 1: Error: Cannot find file lablgtksourceview2.cmxa
<mzie> thanks a lot for helping
<adrien> did you use "make opt" to build lablgtk2?
<adrien> in other words: are you sure you have .cmxa files?
<mzie> oh right i forgot that after reinstalling findlib
<mzie> thanks
mort___ has joined #ocaml
talzeus has quit [Remote host closed the connection]
talzeus has joined #ocaml
enstrophy has joined #ocaml
enstrophy has quit [Client Quit]
NoNNaN has quit [Ping timeout: 240 seconds]
lopex has quit [Remote host closed the connection]
dch has quit [Read error: Connection reset by peer]
NoNNaN has joined #ocaml
dch has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
lopex has joined #ocaml
robink_ has joined #ocaml
robink has quit [Ping timeout: 240 seconds]
breakds has joined #ocaml
jayprich has joined #ocaml
shinnya has joined #ocaml
robink_ has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
robink has joined #ocaml
fantasticsid has joined #ocaml
fantasticsid has quit [Remote host closed the connection]
fantasticsid has joined #ocaml
robink has quit [Quit: No Ping reply in 180 seconds.]
robink has joined #ocaml
ollehar has joined #ocaml
Drup has joined #ocaml
fantasti` has joined #ocaml
fantasticsid has quit [Ping timeout: 245 seconds]
tobiasBora has joined #ocaml
ygrek has quit [Remote host closed the connection]
gal_bolle has joined #ocaml
ygrek has joined #ocaml
strobegen has quit [Quit: Leaving.]
shinnya has quit [Ping timeout: 246 seconds]
platypine has joined #ocaml
yacks has joined #ocaml
fantasti` has quit [Remote host closed the connection]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
mort___ has quit [Quit: Leaving.]
Arsenik has quit [Remote host closed the connection]
robink has quit [Ping timeout: 245 seconds]
robink has joined #ocaml
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 272 seconds]
Kakadu has quit []
Drup has quit [Quit: Leaving.]
Drup has joined #ocaml
robink_ has joined #ocaml
robink has quit [Ping timeout: 240 seconds]
Picolino is now known as julien_t
jbrown has quit [Remote host closed the connection]
q66_ has joined #ocaml
jbrown has joined #ocaml
robink_ is now known as robink
q66 has quit [Ping timeout: 245 seconds]
talzeus has quit [Read error: Connection reset by peer]
RagingDave has joined #ocaml
RagingDave has quit [Client Quit]
ygrek has quit [Remote host closed the connection]
q66_ is now known as q66
<swistak35> I'm newbie in ocaml - is there a way to map over list of numbers? I mean, syntax like "map some_function [1..10]" from haskell
maufred_ has joined #ocaml
<Drup> there is no shortcut syntax like [1..10]
<ggole> List.map some_function list
maufred_ has quit [Client Quit]
<swistak35> Drup: so I need to create a functio which will generate me list of numbers from x to y?
<mrvn> yes
<swistak35> ok, thank you
<ggole> Or you could do something like let rec map_range low high f = if high <= low then [] else f low::map_range (low + 1) high f
<mrvn> ggole: that isn't tail recursive
maufred_ has joined #ocaml
<ggole> Yeah, I'm lazy
maufred_ has quit [Client Quit]
<ggole> let map_range low high f = let rec loop l h acc = if l >= h then acc else let h' = h - 1 in loop l h' (f h'::acc) in loop low high []
robink has quit [Ping timeout: 240 seconds]
jayprich has quit [Ping timeout: 272 seconds]
<mrvn> type 'a t = { x:'a; mutable n:'a t; } let map_range : int -> int -> (int -> 'a) -> 'a list = fun low high f -> let rec loop l t = if l <= high then let t2 = { x = f l; n = Obj.magic [] } in t.n <- t2; loop (l + 1) t2 in let t = { x = Obj.magic 0; n = Obj.magic [] } in loop low t; Obj.magic t.n
<ggole> O_o
<mrvn> scared yet?
<ggole> Why would you do that D:
<mrvn> In case f has side effects
robink has joined #ocaml
<ggole> I think I'd go for a reversed accumulator over that.
<ggole> Might even be faster, since you don't eat a write barrier each time through.
tobiasBora has quit [Read error: Operation timed out]
<ggole> (It has a kind of twisted beauty though.)
<mzie> Obj.magic :o
rand000 has quit [Ping timeout: 240 seconds]
rand000 has joined #ocaml
w0rm_x has joined #ocaml
platypine has quit [Ping timeout: 246 seconds]
tane has joined #ocaml
lamawithonel_ has quit []
w0rm_x has left #ocaml []
tobiasBora has joined #ocaml
julien_t has quit [Ping timeout: 245 seconds]
lamawithonel_ has joined #ocaml
AltGr has left #ocaml []
ggole has quit []
darkf has joined #ocaml
Arsenik has joined #ocaml
<wmeyer```> hi
wmeyer``` is now known as wmeyer
jayprich has joined #ocaml
darkf has quit [Quit: Leaving]
skchrko has joined #ocaml
platypine has joined #ocaml
darkf has joined #ocaml
ygrek has joined #ocaml
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 240 seconds]
jonludlam has joined #ocaml
tobiasBora has quit [Ping timeout: 240 seconds]
tobiasBora has joined #ocaml
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
jayprich has quit [Ping timeout: 245 seconds]
zpe has quit [Ping timeout: 245 seconds]
tobiasBora has quit [Ping timeout: 240 seconds]
platypine has quit [Ping timeout: 245 seconds]
ygrek has quit [Ping timeout: 260 seconds]
brainacid has joined #ocaml
<brainacid> hello channel
brainacid has left #ocaml []
tobiasBora has joined #ocaml
<wmeyer> hi
jayprich has joined #ocaml
platypine has joined #ocaml
jayprich has quit [Client Quit]
jayprich has joined #ocaml
wagle has quit [Ping timeout: 264 seconds]
gal_bolle has quit [Remote host closed the connection]
jayprich has quit [Quit: shuffles into the gloom]
wmeyer has quit [Remote host closed the connection]
zpe has joined #ocaml
ulfdoz has quit [Ping timeout: 245 seconds]
zpe has quit [Ping timeout: 245 seconds]
tane has quit [Quit: Verlassend]
chambart has joined #ocaml
nicoo has quit [Quit: Read error: Connection reset by Hadopi]
nicoo has joined #ocaml
shinnya has joined #ocaml