gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0 http://bit.ly/aNZBUp
jakedouglas has quit [Quit: Leaving.]
|marius| has quit [Ping timeout: 240 seconds]
philtor has joined #ocaml
philtor has quit [Ping timeout: 240 seconds]
aj2009 has joined #ocaml
aj2009 has quit [Client Quit]
aj2009 has joined #ocaml
alpounet has quit [Excess Flood]
alpounet has joined #ocaml
<roconnor> what is the ocaml idiom for iterating a function f n times?
joewilliams_away is now known as joewilliams
<bitbckt> roconnor: Do you need to aggregate the results in any way?
<bitbckt> Or just side-effects?
<roconnor> f is pure
<roconnor> er
<roconnor> I should rephrase
<roconnor> I want to compose f with itself n times
<roconnor> sorry I wasn't clear before
<det> You mean something like this: http://pastebin.ca/1925553 ?
joewilliams is now known as joewilliams_away
Associat0r has quit [Quit: Associat0r]
Modius has quit [Ping timeout: 276 seconds]
ftrvxmtrx has quit [Ping timeout: 265 seconds]
ftrvxmtrx has joined #ocaml
Edward__ has joined #ocaml
Edward_ has quit [Ping timeout: 240 seconds]
bzzbzz has quit [Quit: leaving]
aj2009 has quit [Quit: Leaving]
wormphlegm has joined #ocaml
wormphlegm has quit [Client Quit]
_unK has quit [Remote host closed the connection]
jakedouglas has joined #ocaml
wormphlegm has joined #ocaml
<roconnor> det: ya. I was hoping it was common enough that there was a library function for it.
Edward__ has quit []
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
aj2009 has joined #ocaml
aj2009 has quit [Quit: Leaving]
aj2009 has joined #ocaml
ulfdoz_ has quit [Quit: Reconnecting]
ulfdoz has joined #ocaml
jakedouglas has quit [Quit: Leaving.]
aj2009 has quit [Remote host closed the connection]
Yoric has joined #ocaml
aj2009 has joined #ocaml
wormphlegm has quit [Quit: hmm]
ska1 has joined #ocaml
ska1 has left #ocaml []
ttamttam has joined #ocaml
Amorphous has quit [Ping timeout: 276 seconds]
Yoric has quit [Quit: Yoric]
ftrvxmtrx has quit [Quit: Leaving]
Amorphous has joined #ocaml
pikachuyann has joined #ocaml
<flux> piqi seems quite interesting
Leonidas has quit [Ping timeout: 240 seconds]
Leonidas has joined #ocaml
Leonidas is now known as Guest60304
<adrien> can't remember, what is it?
<flux> piqi.org
<flux> it's a structured data representation format/tool/library thaat works with ocaml and has the wire format of google protocol buffers
<adrien> ah, right :-)
<adrien> saw it from the cufp mailing-list message? ;-)
shachaf has quit [Read error: Connection reset by peer]
shachaf has joined #ocaml
<flux> if by that you mean caml-list, then yes :)
<adrien> yup
<adrien> too early in the morning :P
Guest60304 has quit [Ping timeout: 240 seconds]
Leonidas_ has joined #ocaml
Leonidas_ is now known as Guest96662
wowi_ has joined #ocaml
<wowi_> plop
seafood has quit [Quit: seafood]
ikaros has joined #ocaml
ftrvxmtrx has joined #ocaml
ikaros has quit [Client Quit]
oc13 has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Remote host closed the connection]
ftrvxmtrx has joined #ocaml
aj2009 has quit [Read error: Connection reset by peer]
ikaros has joined #ocaml
slunk has quit [Ping timeout: 264 seconds]
ikaros has quit [Client Quit]
ikaros has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 260 seconds]
ftrvxmtrx has joined #ocaml
<f[x]> can anyone devise a delimcc analogue for the following (mz)scheme code : (reset (+ 1 (shift k (list (k 10) (k 20) (k 30))))) ?
<f[x]> I cannot get the straight translation to work, the types get in the way, probably delimcc's shift is not scheme's shift..
verte has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Guest96662 has left #ocaml []
Leonidas has joined #ocaml
Yoric has joined #ocaml
slunk has joined #ocaml
avsm has joined #ocaml
Tianon has quit [Read error: Operation timed out]
Tianon has joined #ocaml
Tianon has quit [Changing host]
Tianon has joined #ocaml
Associat0r has joined #ocaml
ikaros has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
sgnb has quit [Remote host closed the connection]
glondu has joined #ocaml
glondu has quit [Remote host closed the connection]
sgnb has joined #ocaml
ikaros has joined #ocaml
Yoric has quit [Quit: Yoric]
avsm has quit [Quit: Leaving.]
_unK has joined #ocaml
avsm has joined #ocaml
tomasz has left #ocaml []
npouillard has quit [Ping timeout: 272 seconds]
Yoric has joined #ocaml
Associat0r has quit [Read error: Connection reset by peer]
ikaros has quit [Remote host closed the connection]
ikaros has joined #ocaml
verte has quit [Quit: ~~~ Crash in JIT!]
barismetin has joined #ocaml
barismetin has quit [Remote host closed the connection]
npouillard has joined #ocaml
mjonsson has quit [Ping timeout: 276 seconds]
seafood has joined #ocaml
z77z has joined #ocaml
joewilliams_away is now known as joewilliams
jakedouglas has joined #ocaml
Modius has joined #ocaml
seafood has quit [Ping timeout: 240 seconds]
ttamttam has quit [Remote host closed the connection]
wowi_ has quit [Remote host closed the connection]
ccasin has joined #ocaml
tmaedaZ has joined #ocaml
tmaedaZ is now known as tmaeda
tmaeda is now known as tmaedaZ
tmaedaZ is now known as tmaeda
tmaeda is now known as tmaedaZ
jsk-away has left #ocaml []
tmaedaZ is now known as tmaeda
z77z has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
|marius| has joined #ocaml
|marius| has quit [Remote host closed the connection]
|marius| has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
tmaeda is now known as tmaedaZ
ygrek has joined #ocaml
Yoric has joined #ocaml
<adrien> hi, I'd like to write a function like 'fun f arg1 arg2 arg3 ... -> f (arg1, arg2, arg3, ...)' but I don't know how to handle having a variable number of argument, any ideas?
<adrien> (I can work around the problem by making explicit f1, f2, f3, ... functions but it doesn't look very good)
<mfp> adrien: this is usually solved by going CPS
<mfp> adrien: see e.g. http://www.brics.dk/RS/01/10/ or Danvy's functional unparsing
ergodick has joined #ocaml
ergodick has left #ocaml []
Leonidas has quit [Ping timeout: 272 seconds]
<adrien> mfp: thanks, now to decide whether I should go for CPS or explicitely pass f1/f2/f3/... functions...
<adrien> this if for lablgtk2+react, more precisely, for signals, so it might be called quite often
Leonidas has joined #ocaml
<roconnor> has anyone here build ocaml-expat? I'm trying to run the unit tests before install but I get the error "Fatal error: cannot load shared library dllmlexpat // Reason: dllmlexpat.so: cannot open shared object file: No such file or directory", but the dllmlexpat.so file is right here in this directory where it was just built.
<mfp> roconnor: does it work with LD_LIBRARY_PATH=. ?
<mfp> or maybe CAML_LD_LIBRARY_PATH=.
<roconnor> mfp: it at least runs
<roconnor> yes
<roconnor> unittest was built with the command
<roconnor> ocamlfind ocamlc -o unittest -package oUnit -ccopt -L. -linkpkg expat.cma unittest.ml
<roconnor> I figured the -L. was there to pick up the dllmlexpat.so file
<roconnor> The unit test fails with Sys_error("/home/maas/xml-samples/REC-xml-19980210.xml.txt: No such file or directory")
* roconnor sighs
<roconnor> who puts "/home/maas" in the unit tests of software they are distrubuting?
<adrien> do you have these testfiles?
<roconnor> you mean REC-xml-19980210.xml.txt ?
<adrien> yeah
<roconnor> well, given it's name I can probably find it on the internet
<roconnor> I guess to be fair this package isn't even at verion 1.0
<adrien> I don't know if there have been recent developments of ocaml-expat but you might simply ask its author for an update with these files
* adrien wonders if adding a field to each signal record in lablgtk2 would be ok
<roconnor> Last-Modified: Sun, 13 Mar 2005 14:12:46 GMT
<roconnor> ah well
<roconnor> I guess I should be happy to have anything at all :D
<adrien> if the interface of expat is stable (and it looks like it is), there is no real need to update the bindings
<adrien> but why expat?
<roconnor> adrien: I'm working through my list of requirements to build matita
<adrien> ah, ok
<roconnor> ah, It passed the tests
<roconnor> now I wonder if I should patch the files somehow or just not run the tests at all
<roconnor> adrien: is there some better way of running the tests than doing LD_LIBRARY_PATH=. ./unittest ?
<roconnor> can I build unittest so it looks in .?
<roconnor> I thought that was what the -L. parameter was for
<adrien> linking with "-ccopt -rpath something" (not sure of the name) should do it but I'm not sure it's worth it, what's the problem with LD_LIBRARY_PATH, it's one-time and gets the job done
<adrien> -L is for build-time (well, link-time)
<adrien> '-ccopt -Wl,-rpath=.' should do it
<roconnor> ocamlfind ocamlc -o unittest -package oUnit -ccopt -L. -linkpkg -ccopt -Wl,-rpath=. expat.cma unittest.ml
<roconnor> results in a ./unittest that still cannot find dllmlexpat.so
<adrien> '-cclib -rpath=.' should be equivalent (and a bit cleaner), you can try with an absolute path instead of '.' (so, "-cclib -rpath=$(pwd)")
<adrien> but I've never really used rpath and I'd really use LD_LIBRARY_PATH here
<roconnor> reall?
<roconnor> ok
<roconnor> test: unittest
<roconnor> LD_LIBRARY_PATH=. ./unittest
<roconnor> ^^ this is how the makefile looks
<adrien> how it looks currently and it doesn't work?
<roconnor> that is my new makefile
<adrien> I'd use that if it works
<adrien> forcing a path at build-time is a bit annoying, I wouldn't spend too much time on that
<roconnor> ok
oriba has joined #ocaml
metasyntax has quit [Read error: Operation timed out]
iago has joined #ocaml
Yoric has quit [Quit: Yoric]
metasyntax has joined #ocaml
Yoric has joined #ocaml
oriba has quit [Quit: Verlassend]
ygrek has quit [Ping timeout: 245 seconds]
Anarchos has joined #ocaml
sepp2k has joined #ocaml
SylvainK has joined #ocaml
ftrvxmtrx has joined #ocaml
Anarchos has quit [Ping timeout: 260 seconds]
Edward__ has joined #ocaml
rolfr has joined #ocaml
rolfr has quit [Client Quit]
sepp2k has quit [Ping timeout: 240 seconds]
avsm has quit [Ping timeout: 240 seconds]
jamii_ has joined #ocaml
Edward__ has quit [Ping timeout: 258 seconds]
sepp2k has joined #ocaml
thieusoai has quit [Remote host closed the connection]
SylvainK has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
jamii_ has quit [Quit: Leaving]
SEcki has joined #ocaml
tmaedaZ is now known as tmaeda
thieusoai has joined #ocaml
|marius|_ has joined #ocaml
tmaeda is now known as tmaedaZ
|marius| has quit [Ping timeout: 260 seconds]
thieusoai has quit [Remote host closed the connection]
|marius|_ has quit [Remote host closed the connection]
|marius| has joined #ocaml
<pikachuyann> bonne nuit / good night
pikachuyann has quit [Quit: Quitte]
|marius| has quit [Read error: Connection reset by peer]
|marius| has joined #ocaml
boscop_ has quit [Ping timeout: 265 seconds]
boscop has joined #ocaml
avsm has joined #ocaml
seafood has joined #ocaml
oc13 has quit [Ping timeout: 260 seconds]
Edward_ has joined #ocaml
ccasin has quit [Quit: Leaving]
avsm has quit [Quit: Leaving.]
ftrvxmtrx has quit [Ping timeout: 240 seconds]
seafood has quit [Quit: seafood]
Yoric has quit [Quit: Yoric]
ftrvxmtrx has joined #ocaml
iago has quit [Quit: Leaving]
sepp2k has quit [Quit: Leaving.]
Edward_ has quit [Ping timeout: 240 seconds]
seafood has joined #ocaml
Edward_ has joined #ocaml
SEcki has quit [Remote host closed the connection]
ikaros has quit [Quit: Leave the magic to Houdini]