Alpounet changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | 3.11.1 out now! Get yours from http://caml.inria.fr/ocaml/release.html - Answer OCaml Meeting 2010 poll https://forge.ocamlcore.org/survey/survey.php?group_id=77&survey_id=1
schmx has quit [Read error: 110 (Connection timed out)]
hyperboreean has quit [Read error: 60 (Operation timed out)]
tmaeda is now known as tmaedaZ
hyperboreean has joined #ocaml
seanmcl has joined #ocaml
munga_ has joined #ocaml
julm has quit [Remote closed the connection]
julm has joined #ocaml
julm has quit [Read error: 60 (Operation timed out)]
julm has joined #ocaml
_unK has quit [Remote closed the connection]
julm has quit [Remote closed the connection]
<Alpounet> godbe, you may want to take a look at the very minimal REPL included in HLVM
onigiri has quit []
<Alpounet> REPL for mini, caml like programming language
<Alpounet> +" a "
julm has joined #ocaml
godbe has quit [Read error: 110 (Connection timed out)]
julm has quit [Read error: 60 (Operation timed out)]
tmaedaZ is now known as tmaeda
munga_ has quit [Read error: 148 (No route to host)]
thrasibule has joined #ocaml
thieusoai has joined #ocaml
BigJ has quit ["Leaving"]
seanmcl has quit []
tmaeda is now known as tmaedaZ
verte has joined #ocaml
tmaedaZ is now known as tmaeda
Amorphous has quit [Read error: 110 (Connection timed out)]
valross has quit [Read error: 60 (Operation timed out)]
Amorphous has joined #ocaml
julm has joined #ocaml
julm has quit [Remote closed the connection]
seanmcl has joined #ocaml
seanmcl has quit [Client Quit]
julm has joined #ocaml
sgnb` has joined #ocaml
smimou has quit [sendak.freenode.net irc.freenode.net]
prigaux has quit [sendak.freenode.net irc.freenode.net]
haelix has quit [sendak.freenode.net irc.freenode.net]
hugin has quit [sendak.freenode.net irc.freenode.net]
Asmadeus has quit [sendak.freenode.net irc.freenode.net]
fremo has quit [sendak.freenode.net irc.freenode.net]
Camarade_Tux has quit [sendak.freenode.net irc.freenode.net]
sgnb has quit [sendak.freenode.net irc.freenode.net]
schme has joined #ocaml
haelix has joined #ocaml
Camarade_Tux has joined #ocaml
Asmadeus has joined #ocaml
fremo has joined #ocaml
fremo is now known as Guest87141
prigaux has joined #ocaml
hugin has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
caligula_ has joined #ocaml
caligula__ has quit [Read error: 60 (Operation timed out)]
verte has quit [Read error: 110 (Connection timed out)]
julm has joined #ocaml
smimou has joined #ocaml
fremo has joined #ocaml
fremo has quit [Remote closed the connection]
julm has quit [Remote closed the connection]
julm has joined #ocaml
julm has quit [Remote closed the connection]
julm has joined #ocaml
valross has joined #ocaml
Modius_ has quit [Client Quit]
Modius has joined #ocaml
julm has quit [Remote closed the connection]
julm has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
julm_ has joined #ocaml
julm_ has quit [Read error: 60 (Operation timed out)]
thrasibule has quit [Read error: 110 (Connection timed out)]
julm has joined #ocaml
ski_ has joined #ocaml
julm has quit [Remote closed the connection]
NYnix has joined #ocaml
julm has joined #ocaml
struktured has quit [Read error: 110 (Connection timed out)]
ttamttam has joined #ocaml
ttamttam has quit ["Leaving."]
julm has quit [Remote closed the connection]
<yziquel> thelema, hcarty: include doesn't work...
Yoric[DT] has joined #ocaml
julm has joined #ocaml
ikaros has joined #ocaml
julm has quit [Remote closed the connection]
julm has joined #ocaml
Mr_Awesome has quit ["aunt jemima is the devil!"]
kaustuv has quit [Read error: 110 (Connection timed out)]
Yoric[DT] has quit ["Ex-Chat"]
yziquel has quit [sendak.freenode.net irc.freenode.net]
caligula__ has joined #ocaml
ttamttam has joined #ocaml
mgodshall has joined #ocaml
prince has joined #ocaml
caligula_ has quit [Read error: 110 (Connection timed out)]
ygrek has joined #ocaml
th5 has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
dmentre has joined #ocaml
_zack has joined #ocaml
reid99 has quit [Read error: 110 (Connection timed out)]
reid99 has joined #ocaml
gdmfsob has joined #ocaml
mishok13 has quit [Nick collision from services.]
julm has quit [Remote closed the connection]
Yoric has joined #ocaml
julm has joined #ocaml
rwmjones_afk has quit [Remote closed the connection]
rwmjones_afk has joined #ocaml
rwmjones_afk is now known as rwmjones
monestri has quit [Read error: 110 (Connection timed out)]
monestri has joined #ocaml
_zack has quit ["Leaving."]
Yoric has quit []
julm_ has joined #ocaml
julm_ has quit [Remote closed the connection]
_zack has joined #ocaml
julm__ has joined #ocaml
julm__ has quit [Remote closed the connection]
Yoric has joined #ocaml
julm__ has joined #ocaml
julm has quit [Read error: 110 (Connection timed out)]
mgodshall has quit ["rcirc on GNU Emacs 22.1.1"]
Snark has joined #ocaml
Snark has quit [Read error: 54 (Connection reset by peer)]
srisw has joined #ocaml
cerise_ has joined #ocaml
cerise_ has quit ["Leaving"]
cerise_ has joined #ocaml
Yoric has quit []
Yoric has joined #ocaml
Associat0r has joined #ocaml
_andre has joined #ocaml
Yoric has quit []
avysk has joined #ocaml
<avysk> Hello, can someone help me with easy question? I'm relatively new to ocaml but I understand a thing or two about functional programming in general... The question: is there a better way to reverse a string (not in place, I need a copy) than going through it with 'for' loop? Of course I can do recursive version but it looks ugly and inefficient... Is there something in standard library to help me?
<mrvn> Nope. No String.iteri, no String.init, no String.rev
<avysk> Thanks. So for loop is my best choice?
<mrvn> seem most readable.
seanmcl has joined #ocaml
<avysk> Thanks.
_unK has joined #ocaml
tmaeda is now known as tmaedaZ
zhijie has joined #ocaml
daviv has joined #ocaml
daviv has left #ocaml []
Alpounet has quit [Read error: 113 (No route to host)]
bzzbzz has joined #ocaml
Alpounet has joined #ocaml
_zack has quit ["Leaving."]
cerise_ is now known as jcaose
Yoric has joined #ocaml
rwmjones is now known as rwmjones-lunch
jcaose has quit ["Leaving"]
jcaose has joined #ocaml
deavid has quit [SendQ exceeded]
deavid has joined #ocaml
Guest87141 is now known as fremo
<thelema> avysk: String.init n (fun i -> orig.[n-i])
<ygrek> n-i-1
<mrvn> # String.init;;
<mrvn> Error: Unbound value String.init
<mrvn> thelema: Batteries?
Yoric has quit []
kaustuv has joined #ocaml
Yoric has joined #ocaml
tmaedaZ is now known as tmaeda
rwmjones-lunch is now known as rwmjones
ygrek has quit [Remote closed the connection]
kaustuv has quit ["ERC Version 5.3 (IRC client for Emacs)"]
th5 has quit []
ski_ has quit ["Lost terminal"]
julm has joined #ocaml
julm__ has quit [Read error: 60 (Operation timed out)]
_zack has joined #ocaml
jcaose has quit ["Leaving"]
Yoric has quit []
julm has quit [Remote closed the connection]
julm has joined #ocaml
Yoric has joined #ocaml
_zack has quit ["Leaving."]
julm has quit [Remote closed the connection]
julm has joined #ocaml
_zack has joined #ocaml
Yoric has quit []
ikaros has joined #ocaml
dmentre has quit ["Leaving."]
munga has joined #ocaml
ztfw has joined #ocaml
Yoric has joined #ocaml
seanmcl has quit []
_zack has quit ["Leaving."]
ygrek has joined #ocaml
jcaose has joined #ocaml
Yoric has quit []
ttamttam has quit ["Leaving."]
Waleee has joined #ocaml
ygrek has quit [sendak.freenode.net irc.freenode.net]
smimou has quit [sendak.freenode.net irc.freenode.net]
smimou has joined #ocaml
Walee has joined #ocaml
smimou has quit [sendak.freenode.net irc.freenode.net]
srcerer has joined #ocaml
Waleee has quit [Read error: 110 (Connection timed out)]
smimou has joined #ocaml
ulfdoz has joined #ocaml
valross has quit [Read error: 60 (Operation timed out)]
Snark has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
ikaros has joined #ocaml
drunK_ has joined #ocaml
ygrek has joined #ocaml
jcaose_ has joined #ocaml
<flux> regarding jdh's latest post on the caml ml.. doesn't matlab use some magical fast operation for doing multiplication or large matrices?
<Alpounet> it's likely yeah
<flux> apparently it uses BLAS' matrix multiplication
<Alpounet> Karatsuba
<Camarade_Tux> matlab is terribly slow outside of "external" functions written in another language
<flux> in addition it may be able to parallelize it
<flux> and apparently jdh has a 8-core system
<Camarade_Tux> I still wonder how he can call 8-core systems something else than "expensive" btw ><
<mrvn> Camarade_Tux: well, thats just a 4core cpu doubled.
<Camarade_Tux> my 4-core headless just cost 350-400 euros and I don't think an 8-core cost 800 or less
<Camarade_Tux> mrvn: several computers will be far less expensive
<Camarade_Tux> (that's what I meant)
<flux> camarade_tux, well, you need to buy a more expensive mb to put in two cpu's
<flux> camarade_tux, and if it's an older mb, which is likely, it may have required a 4-slot mb
<mrvn> but then you only need half the disks, network, screens, power supply
<flux> also, maybe the cpu's are Xeons ;)
<flux> by 8-core I understood that 'real' 8 cores also, without considering hyperthreading
<Camarade_Tux> mrvn: that's why I said 800 euros: that's twice the system I built with a quad-core
<mrvn> and is not really expensive
<Camarade_Tux> flux: I don't think he's referring to HT (or if he does, someone should stab him)
<flux> camarade_tux, but you can pay a lot more, too
<flux> (and get better performance)
<mrvn> do intells quad core cpus have HT?
<Camarade_Tux> mrvn: i7 yes, i5 no
<flux> I suppose they would, not sure though
<Camarade_Tux> flux: he, the one I just built is already pretty good ;-)
<mrvn> For 3k$ you can also buy a 64 core mips.
<flux> the most expensive 4-core xeon is 1000 EUR here
<mrvn> and that is last years price
<flux> it has 12M L2 cache..
<flux> and 3.16 GHz
jcaose__ has joined #ocaml
<Camarade_Tux> flux: but in the end, it's still (much) more expensive than several smaller computers
tuple has joined #ocaml
jcaose__ has left #ocaml []
<Camarade_Tux> which goes against Jon
<flux> an asus xeon mb for two cpu's is around 600 EUR, and you can put 64 gigabytes into it
<tuple> "ocamlfind: Package `threads' not found" I'm on Mac OS X Snow Leopard. Any ideas what's wrong? I'm trying to install ocaml-sqlite3-1.5.6
<flux> camarade_tux, but if you have an algorithm that requires a large cache, having many smaller pc's doesn't really help
<Camarade_Tux> a 2*4core on dell(.fr) is 7k euros :D
<Camarade_Tux> flux: yeah, of course
<Camarade_Tux> ok, won't have anything to eat tonight, too late to buy food ='(
<flux> so you'll starve :(
<mrvn> 2 more hours till shops close.
_unK has quit [Read error: 110 (Connection timed out)]
<Camarade_Tux> here, not really, some will only close in about 50 minutes but that's it (well, not for various restautants of course)
<Camarade_Tux> tuple: how did you install?
<tuple> Camarade_Tux: First I used the binary, now I compiled manually
jcaose has quit [Read error: 110 (Connection timed out)]
<tuple> no errors, everything was fine...
<tuple> /usr/local/lib/ocaml/threads/
<tuple> folder is there..
<Camarade_Tux> run "ocamlfind list", does it show "threads"?
<tuple> it gives an empty list
<Camarade_Tux> when did you install ocamlfind?
<tuple> few hours ago, no errors either
<Camarade_Tux> before or after you recompiled? and do the paths in "ocamlfind printconf" look right?
<tuple> printconf says "The standard library is assumed to reside in: /usr/local/lib/ocaml" which is where the files are
<tuple> Search path: (empty) Packages will be installed in/removed from: (not found)
ttamttam has joined #ocaml
<tuple> Before and after I recompile. Before it made some errors, so that's why I compiled it from the source
<tuple> then they went away, but sqlite still doesn't make properly
<Camarade_Tux> it maybe left a configuration file
<Camarade_Tux> you have /usr/local/etc/findlib.conf?
<tuple> yes
<tuple> destdir="" path=""
<tuple> ocamlc="ocamlc.opt" etc
<tuple> no idea what they are supposed to look like
<Camarade_Tux> ok, remove it and install ocamlfind again (make clean, configure, make, make install)
<tuple> ok
<Camarade_Tux> or, wait
<Camarade_Tux> ah, my installation is non-standard (godi), I can't really tell you how the file should look
<Camarade_Tux> btw, have you seen godi?
<Camarade_Tux> :win 17
<Camarade_Tux> bleh
<tuple> oh oh oh
<tuple> I think it worked
<tuple> silly config file...
<Camarade_Tux> he :)
<tuple> the paths definitely look better now!
drunK_ has quit [Read error: 104 (Connection reset by peer)]
_unK has joined #ocaml
<Camarade_Tux> he :)
<tuple> thanks, it's appreciated
drunK_ has joined #ocaml
<Camarade_Tux> np :)
<hcarty> tuple: Camarade_Tux's suggestion of looking in to GODI is a good one, just for future reference!
<hcarty> tuple: Though I can't comment on how well or poorly it works on OSX
* Camarade_Tux has about 30% of his messages with happy face smileys and tops the ranking of ##slackware: 300 people :)
<tuple> ok :)
<Camarade_Tux> I think it works pretty well now
<tuple> "Cannot find file sqlite3.cma." it continues!
jcaose has joined #ocaml
<tuple> ok full path worked :p
<flux> tuple, what did you do to make that message appear?
<tuple> #load "sqlite3/sqlite3.cma"
<tuple> ;;
<flux> tuple, maybe you could first do #use "topfind";;
<flux> tuple, and then #require "sqlite3";;
<tuple> aha!
<flux> tuple, #use "topfind";; can be stuck into ~/.ocamlinit
<flux> and it'll work on your future ocaml sessions
<Camarade_Tux> btw, don't load the same library several times in the same toplevel
<tuple> weee!
<flux> tuple, also, if you're using ocaml directly, consider using it instead via rlwrap, ledit or emacs
<flux> (emacs is very nice if you swing that way)
<tuple> I just want to play a little, and I spent too much time installing that Sqlite3 already, but I want to have some datas :)
jcaose has quit [Client Quit]
jcaose_ is now known as jcaose
_unK has quit [Read error: 110 (Connection timed out)]
tuple has quit ["Page closed"]
tmaeda is now known as tmaedaZ
gdmfsob has quit ["Leaving"]
drunK_ has quit [Read error: 60 (Operation timed out)]
BigJ2 has joined #ocaml
drunK_ has joined #ocaml
jcaose has quit [Read error: 104 (Connection reset by peer)]
rwmjones is now known as rwmjones-afk
<BigJ2> in emacs if I am running the top level and want to kill just the top level in emacs what would the command be ?
<flux> I usually just close the buffer
<flux> maybe there's a command for it
<BigJ2> flux: I have an infinite loop i don't know if closing the buffer solves it
<mehdid> BigJ2: Ctrl-C in the toplevel buffer ? :)
<flux> bigj2, press C-c C-c in the buffer
<mehdid> yeah twice
<BigJ2> ahh thx
_andre has quit ["*puff*"]
<BigJ2> I am trying to make this recursive definition but keeping getting an infinite loop... http://codepad.org/mg6eqzZr
<orbitz> BigJ2: of course
<orbitz> you never don't call print_factorial
Snark has quit ["Ex-Chat"]
_unK has joined #ocaml
drunK_ has quit [Read error: 60 (Operation timed out)]
drunK_ has joined #ocaml
_unK has quit [Read error: 60 (Operation timed out)]
<mehdid> BigJ2: print_factorial isn't recursive
<mehdid> putting "rec" everywhere is error prone
drunK_ is now known as _unK
<BigJ2> k
<BigJ2> ok I see why
<BigJ2> i always call factorial n at the begging of the function
bzzbzz has quit ["leaving"]
r0bby_ is now known as r0bby|android
r0bby|android is now known as r0bby
sramsay has joined #ocaml
ygrek has quit [Remote closed the connection]
BigJ2 has quit [Client Quit]
r0bby is now known as r0bby|android
r0bby|android is now known as r0bby
BigJ2 has joined #ocaml
<orbitz> mehdid: it shoudln't eb recursive that is
<orbitz> BigJ2: the problem isyou call print_factorial at teh end of itself
polemon has joined #ocaml
<polemon> hi, can someon help me with ocaml-bitstring?
<polemon> it does not compile
<Camarade_Tux> not sure I can but what is the error?
<polemon> when running make:
<polemon> Error: Error while linking /usr/lib/ocaml/camlp4/camlp4lib.cma(Camlp4):
<polemon> Reference to undefined global `Dynlink'
Associat0r has quit []
<Camarade_Tux> which OS/architecture?
<polemon> ./configure runs fine, doesn't show that something's missing
<polemon> Ubuntu Server 9.10
<polemon> i686 GNU/Linu
<orbitz> Isn't this a standard problem?
<orbitz> the apt author likely forgot to linka gainst dynlink.cmxa
<polemon> i was searching for a dynlink package but couldn't find one
<orbitz> it's part of base ocaml
<polemon> ok...
<polemon> if it's just linking, I could change the line myself in the makefile
<orbitz> my guess is author forgot to add the dynlink.cmxa in the build, but I can't say for sure
<orbitz> what's the link line look like?
ikaros has quit ["Leave the magic to Houdini"]
<polemon> ocamlfind ocamlc -I +camlp4 unix.cma camlp4lib.cma -linkpkg bitstring.cma bitstring_persistent.cma bitstring_objinfo.cmo -o bitstring-objinfo
<orbitz> for kicks try adding dynlink.cma to the -linkpkg portion
<polemon> ok, wait a sec
<mfp> polemon: it's a missing package dependency in the META file for camlp4 (old findlib)
<polemon> ocamlfind ocamlc -I +camlp4 unix.cma camlp4lib.cma -linkpkg dynlink.cmabitstring.cma bitstring_persistent.cma bitstring_objinfo.cmo -o bitstring-objinfo
<orbitz> forget space?
<polemon> erm ok?
<polemon> nop, it's ok just pasting it into Irssi broke it
<polemon> ocamlfind ocamlc -I +camlp4 unix.cma camlp4lib.cma \
<polemon> -linkpkg dynlink.cma \
<polemon> bitstring.cma bitstring_persistent.cma \
<polemon> bitstring_objinfo.cmo -o bitstring-objinfo
<polemon> still yields the same error
<polemon> mfp: what should I do then?
<mfp> polemon: try placing dynlink.cma before camlp4lib.cma
<mfp> upgrading to a newer findlib would do
<mfp> alternatively, edit /usr/lib/ocaml/METAS/META.camlp4
<mfp> and add requires = "camlp4 dynlink" to the package "lib" ( section
<mfp> this way, compiling with -package camlp4.lib -linkpkg should work
<mfp> depends on how ocaml-bitstring's Makefile is written, though
<orbitz> mfp: this just a mistake by whoever made the package?
<polemon> well, the bitstring page suggest going here to ask for help
<mfp> orbitz: dynlink wasn't needed before; the dependency was added in a later findlib release
<orbitz> k
<mfp> polemon: are you compiling from ocaml-bitstring-2.0.0.tar.gz?
<polemon> yes
<mfp> ok, I'm having a look
<mfp> hmm the Makefile is not making full use of ocamlfind's -package option
<polemon> what should I do, then?
<mfp> try to replace all instances of camlp4lib.cma with dynlink.cma camlp4lib.cma and same for .cmxa
<polemon> edit the META-File?
<polemon> hmm, ok
<mfp> editing the META file would have no effect, as the Makefile is not using -package camlp4.lib
<mfp> so in this case it's ocaml-bitstring's Makefile that is buggy
<polemon> ok; I don't know much about it, I just need it for liquidsoap
<mfp> works for me after adding dynlink.cma before camlp4lib.cma in the Makefile(.in); there's no .cmxa
<polemon> hey, i think it worked!
<polemon> yeah, I don't get any errors!
<polemon> thanks a lot, mfp
<mfp> np
BigJ2 has quit [Client Quit]
ulfdoz has quit [Read error: 110 (Connection timed out)]
ztfw has quit [Read error: 104 (Connection reset by peer)]
sgnb` has quit [Read error: 104 (Connection reset by peer)]
sgnb` has joined #ocaml
jonafan_ has joined #ocaml
thelema_ has joined #ocaml
thelema has quit [Remote closed the connection]
jonafan has quit [Read error: 145 (Connection timed out)]
jonafan_ is now known as jonafan
ttamttam has quit ["Leaving."]
Ched has quit [Read error: 104 (Connection reset by peer)]
Ched has joined #ocaml
jeddhaberstro has joined #ocaml
thrasibule has joined #ocaml
sramsay has quit [Read error: 110 (Connection timed out)]
Walee has quit [Read error: 131 (Connection reset by peer)]
Waleee has joined #ocaml
polemon has left #ocaml []
Waleee has quit []
tmaedaZ is now known as tmaeda