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
clog has joined #ocaml
mjonsson has joined #ocaml
snarkyboojum has quit [Ping timeout: 252 seconds]
CoryDambach has quit [Quit: Leaving]
CoryD has quit [Quit: Leaving]
snarkyboojum has joined #ocaml
snarkyboojum has quit [Ping timeout: 240 seconds]
snarkyboojum has joined #ocaml
snarkyboojum has quit [Ping timeout: 240 seconds]
bzzbzz has quit [Read error: Operation timed out]
valross has quit [Ping timeout: 245 seconds]
bzzbzz has joined #ocaml
_unK has quit [Remote host closed the connection]
valross has joined #ocaml
snarkyboojum has joined #ocaml
snarkyboojum has quit [Ping timeout: 240 seconds]
snarkyboojum has joined #ocaml
snarkyboojum has quit [Ping timeout: 240 seconds]
ulfdoz has joined #ocaml
snarkyboojum has joined #ocaml
mjonsson has quit [Ping timeout: 240 seconds]
snarkyboojum has quit [Ping timeout: 240 seconds]
jakedouglas has quit [Quit: Leaving.]
Yoric has joined #ocaml
ulfdoz has quit [Ping timeout: 272 seconds]
mjonsson has joined #ocaml
ygrek has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ygrek has quit [Ping timeout: 245 seconds]
hto has quit [Quit: Lost terminal]
hto has joined #ocaml
valross has quit [Remote host closed the connection]
mjonsson has quit [Remote host closed the connection]
Yoric has quit [Quit: Yoric]
Amorphous has quit [Ping timeout: 265 seconds]
Axsuul has joined #ocaml
<Axsuul> what does it mean by... if a list is a subset of a list
lpereira has joined #ocaml
ikaros has joined #ocaml
ftrvxmtrx has joined #ocaml
Amorphous has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
elehack has joined #ocaml
sgnb` has joined #ocaml
ftrvxmtrx has joined #ocaml
cthuluh has quit [Ping timeout: 276 seconds]
sgnb has quit [Ping timeout: 276 seconds]
cthuluh has joined #ocaml
<Axsuul> what does Node() mean
<flux> ?
<flux> it means a constructor Node with argument unit
munga has joined #ocaml
Yoric has joined #ocaml
<Axsuul> im looking at some of the modules
<Axsuul> and i dont get how they defined the Empty constructor
<Axsuul> for example
<flux> type t = Empty <- this defines the Empty constructor?
<Axsuul> match (t1, t2) with (Empty, t) ->
<Axsuul> flux: how does that mean it's empty?
<Axsuul> flux: basically, i just want to do a match (t1, t2) .. how would i detect if t1 is empty.. that is, it's a list and is []
th5 has joined #ocaml
elehack has quit [Ping timeout: 265 seconds]
<flux> match (t1, t2) with ([], x) -> (* x == t2 *) ..
<Axsuul> thanks
ikaros has quit [Quit: Leave the magic to Houdini]
ygrek has joined #ocaml
_andre has joined #ocaml
_unK has joined #ocaml
th5 has quit [Quit: th5]
seafood has quit [Quit: seafood]
ikaros has joined #ocaml
seafood has joined #ocaml
munga has quit [Ping timeout: 240 seconds]
ccasin__ has joined #ocaml
tmaeda has quit [Read error: Operation timed out]
sgnb` has left #ocaml []
sgnb has joined #ocaml
tmaeda has joined #ocaml
seafood has quit [Ping timeout: 264 seconds]
nagnatron has joined #ocaml
Axsuul has quit [Ping timeout: 250 seconds]
ttamttam has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
munga has joined #ocaml
ftrvxmtrx has joined #ocaml
tmaeda has quit [Ping timeout: 265 seconds]
tmaeda has joined #ocaml
barismetin has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
barismetin has quit [Remote host closed the connection]
ikaros has joined #ocaml
seafood has joined #ocaml
tmaeda has quit [Ping timeout: 240 seconds]
avsm has joined #ocaml
tmaeda has joined #ocaml
schmrkc has quit [Ping timeout: 240 seconds]
schmrkc has joined #ocaml
schmrkc has quit [Changing host]
schmrkc has joined #ocaml
mjonsson has joined #ocaml
seafood has quit [Quit: seafood]
ikaros has quit [Quit: Leave the magic to Houdini]
mjonsson has quit [Ping timeout: 245 seconds]
nagnatro1 has joined #ocaml
init1 has joined #ocaml
avsm has quit [Quit: Leaving.]
nagnatron has quit [Ping timeout: 240 seconds]
nagnatro1 has quit [Read error: Connection reset by peer]
jakedouglas has joined #ocaml
ikaros has joined #ocaml
avsm has joined #ocaml
ztfw has joined #ocaml
ttamttam has left #ocaml []
avsm has quit [Quit: Leaving.]
LionMadeOfLions has quit [Ping timeout: 252 seconds]
avsm has joined #ocaml
boscop_ has joined #ocaml
patronus has quit [Quit: Lost terminal]
boscop has quit [Read error: Connection reset by peer]
patronus has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
avsm has quit [Quit: Leaving.]
LionMadeOfLions has joined #ocaml
lluvia has joined #ocaml
<lluvia> I am looking for info to understand how to use Arg.parse_argv, the explanation in the official doc page is very hard for me
<lluvia> I want to add a string to the end of the arguments given by command line
<lluvia> I dont understand which is the meaning of "set ~current" or how to do it
ftrvxmtrx has joined #ocaml
ikaros_ has joined #ocaml
<flux> hmm, you want to modify the command line arguments you get?
ikaros has quit [Ping timeout: 276 seconds]
<flux> lluvia, I think you just pass it an array with the desired element, like: Arg.parse_argv (Array.append Sys.argv [|"element"|]) ..
<lluvia> flux: yes, I want to append it
<lluvia> but it seems there is the ~current parameter between parse_argv and the array
<flux> lluvia, you want to append to it during the parsing or before parsing?
<flux> if the latter, you could just pass it the already modified array
<flux> ~current is an optional value that tells from which index to begin/continue processing arguments
<flux> so if you add more stuff to the end, you don't need to touch it
<lluvia> before parsing
Yoric has quit [Quit: Yoric]
ulfdoz has joined #ocaml
Edward_ has joined #ocaml
munga has quit [Ping timeout: 272 seconds]
Snark has joined #ocaml
avsm has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
boscop_ has left #ocaml []
Yoric has joined #ocaml
ygrek has joined #ocaml
init1 has quit [Quit: Quitte]
Snark has quit [Quit: Ex-Chat]
brendan has quit [Quit: leaving]
lpereira has quit [Quit: Leaving.]
<lluvia> is there an easy way of transform a string of differents valid options (as in command line) to a string array useful for parse?
<hcarty> lluvia: Pcre.asplit?
<hcarty> You could use that to split a string on against a regexp
<adrien> Str.split (Str.regexp "[ \\t]\\+") yourstring ?
* adrien wishes there were one true regular expression syntax
<lluvia> me too
<lluvia> I'd like to use the standard library only
<adrien> Str is good then
<adrien> it has some limitations but it should be ok here
brendan has joined #ocaml
<lluvia> but your function don't cover for example float argument, true?
<lluvia> that splits --float and 4.3
<adrien> my example splits according to whitespace
<adrien> maybe shouldn't even try to split according to \\t
<lluvia> and another question, which are the minimal packages that need someone to run a purely ocaml program using the standard library? maybe they only need some less weight than "ocaml"
Axsuul has joined #ocaml
<adrien> it's going to depend on your distribution
<adrien> I think ocaml with the stdlib is somewhere between 80 and 160MB unpacked, I *think*
<lluvia> yes, I think so
<lluvia> but I think somebo
<lluvia> sorry
<lluvia> but I think is too much for no ocaml users think it is ok
<adrien> 140MB
<adrien> well, it includes lots of tools
<hcarty> lluvia: Those extras aren't required for native code binaries, only if you want to compile OCaml code
<hcarty> OCaml compiled to bytecode may require a bit more (ocamlrun and ...?)
<lluvia> hcarty: do you know packages than can run binaries and don't contain compilers and other stuff?
<hcarty> lluvia: You don't need any packages, from what I know, unless the compiled binary uses external libraries
<adrien> well, if you compile to bytecode with -custom, you won't have to redistribute ocamlrun
<adrien> BUT
<adrien> do NOT strip such files
<hcarty> thelema: On a related note - is it possible to avoid the Batteries-based binaries dependency on Camomile's data files by avoiding certain Bat* modules?
<hcarty> adrien: Ah, right - thanks
<lluvia> I want to make a .deb of binaries and i have to decide which dependencies to select
<adrien> at runtime? chances are there are none
yezariaely has joined #ocaml
fraggle_ has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
lluvia has left #ocaml []
yezariaely has quit [Quit: Leaving.]
ulfdoz has quit [Quit: brb]
ulfdoz has joined #ocaml
ztfw has quit [Remote host closed the connection]
hto has quit [Quit: Lost terminal]
hto has joined #ocaml
_andre has quit [Quit: *puff*]
Yoric has quit [Quit: Yoric]
ygrek has quit [Ping timeout: 245 seconds]
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
Edward_ has quit []
jakedouglas has quit [Quit: Leaving.]
ulfdoz has quit [Quit: pennen]
valross has joined #ocaml
devinus has joined #ocaml
devinus has left #ocaml []
ikaros_ has quit [Quit: Leave the magic to Houdini]
Modius has quit [Quit: I'm big in Japan]
lpereira has joined #ocaml
despa has joined #ocaml
avsm has quit [Quit: Leaving.]
jakedouglas has joined #ocaml