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
Edward_ has quit []
sepp2k has joined #ocaml
mfp has quit [Ping timeout: 245 seconds]
mjonsson has quit [Remote host closed the connection]
mjonsson has joined #ocaml
Smerdyakov has quit [Quit: Leaving]
_unK has quit [Remote host closed the connection]
CoryDambach has joined #ocaml
gregwire has quit [Remote host closed the connection]
valross has joined #ocaml
jakedouglas has quit [Quit: Leaving.]
ulfdoz has joined #ocaml
joewilliams is now known as joewilliams_away
ulfdoz has quit [Ping timeout: 255 seconds]
Yoric has joined #ocaml
ygrek has joined #ocaml
Snark has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
hcarty has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
Yoric has quit [Quit: Yoric]
Amorphous has quit [Ping timeout: 272 seconds]
Amorphous has joined #ocaml
ikaros has joined #ocaml
ftrvxmtrx has joined #ocaml
aj2009 has joined #ocaml
aj2009 has quit [Remote host closed the connection]
Yoric has joined #ocaml
Yoric_ has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
Yoric_ is now known as Yoric
Yoric has quit [Quit: Yoric]
Yoric has joined #ocaml
ygrek has joined #ocaml
mfp has joined #ocaml
barismetin has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
bitbckt has quit [Ping timeout: 245 seconds]
bitbckt has joined #ocaml
ttamttam has joined #ocaml
valross has quit [Quit: Ex-Chat]
_unK has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
_unK has quit [Remote host closed the connection]
_unK has joined #ocaml
oriba has joined #ocaml
mlh has left #ocaml []
Yoric has quit [Read error: Connection reset by peer]
Yoric has joined #ocaml
Yoric has quit [Read error: Connection reset by peer]
oriba_ has joined #ocaml
oriba has quit [Ping timeout: 265 seconds]
oriba_ has quit [Client Quit]
oriba_ has joined #ocaml
oriba_ has left #ocaml []
metasyntax has quit [Quit: ♫ In our sky there is no limits, and masters we have none; heavy metal is the only one! ♫]
Yoric has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ikaros has joined #ocaml
_andre has joined #ocaml
_unK has quit [Remote host closed the connection]
jakedouglas has joined #ocaml
ygrek has joined #ocaml
_unK has joined #ocaml
mjonsson has quit [Ping timeout: 272 seconds]
jakedouglas has quit [Quit: Leaving.]
jakedouglas has joined #ocaml
BiDOrD has joined #ocaml
<BiDOrD> Hi
<BiDOrD> If I have a 2 files "a.ml" and "b.ml" is there way that a.ml can use B.ident AND b.ml can use A.ident ?
<Yoric> Not really
<BiDOrD> "Not really" ? or "not at all" ?
<flux> no. however, there are several ways to work around the issue. for example, A can have a mutable field ident that is mutated by B to match the one it means.
<BiDOrD> okay
<BiDOrD> thanks a lot
<flux> another way is to use the module system and tie the knot in a third module
<flux> I've used objects with relative success, although my interfaces were still defined in one module
<BiDOrD> ok
ygrek has quit [Ping timeout: 245 seconds]
joewilliams_away is now known as joewilliams
hcarty has joined #ocaml
<thomasga> is there any regular expression library written in pure ocaml (ie. not PCRE and Str ?)
<gildor> thomasga: I remember a piece of code doing that
Yoric has quit [Quit: Yoric]
<thomasga> cool, thx !
ttamttam has left #ocaml []
<kaustuv> thomasga: If you don't need the full power of regexps, there's also http://www.lri.fr/~filliatr/ftp/ocaml/kmp/
<thomasga> I just need something vaguelly compatible with PERL regexps (but not as powerfull)
<thomasga> (I mean compatible with the syntax of PERL regexps)
<thomasga> but the gildor's link looks perfect to me
<gildor> thomasga: I only have tested it once, more than 3 years ago, didn't even remember if it works or not
<gildor> thomasga: tell us if you are able to compile/use it
ccasin has joined #ocaml
boscop has joined #ocaml
boscop_ has quit [Ping timeout: 240 seconds]
_unK has quit [Remote host closed the connection]
Edward has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
barismetin has quit [Remote host closed the connection]
_unK has joined #ocaml
asmanur_ has joined #ocaml
asmanur has quit [Ping timeout: 276 seconds]
sepp2k has quit [Quit: sepp2k]
init1 has joined #ocaml
<flux> so. I have a frest godi setup installed. I want to install stuff, but I don't want to install conf-x11. how do I find out what I cannot install if I won't install conf-x11?
<hcarty> flux: I've run in to that before - the solution I came up with was trial and error :-)
<hcarty> I was only interested in a small number of packages at that point, so it didn't take long
<flux> well, that is the case for me as well, so I just walked through the deps of all packages.. seems like a suboptimal solution, though ;)
ftrvxmtrx has joined #ocaml
<hcarty> flux: "godi_console dep -help" may be a start, but it's not obvious to me how/if this would help.
ulfdoz has joined #ocaml
<adrien> I grep each file in the godi prefix
<adrien> the dependencies are written somewhere in clear (or inside an archive that gets extracted when it is tried (and failed))
ozzloy has quit [Read error: Connection reset by peer]
Edward has quit []
Snark has quit [Quit: Ex-Chat]
ozzloy has joined #ocaml
ozzloy has left #ocaml []
init1 has quit [Quit: Quitte]
init1 has joined #ocaml
init1 has quit [Quit: Quitte]
_unK has quit [Remote host closed the connection]
yezariaely has joined #ocaml
<yezariaely> I have a strange Unbound constructor error. perhaps someone can give me a hint how to solve this.
<yezariaely> http://pastebin.com/yVPYcrx2 The highlight line gives the error however it is defined above?!
<yezariaely> -ed
<hcarty> adrien: That's probably the best approach using existing tools - I think all of the dependency information is in the GODI Makefile
<adrien> yezariaely: which one? :P
<yezariaely> adrien: sorry?
<adrien> hcarty: it's brute force but it works ;-)
<adrien> yezariaely: which one is unbound?
<yezariaely> ah yeah :D should have mentioned that Error: Unbound constructor Rsignedshift_assign
<hcarty> adrien: It doesn't catch packages further down the chain, unfortunately.
<hcarty> yezariaely: It works here, replacing the first "and" with "type" and the second "and" with "let"
<adrien> hcarty: still doable by hand but I'd really like to have this in godi: I spent quite a lot of time trying to figure out how I ended up requiring lablgl once
<hcarty> lablgl seems to get pulled in by everything...
<hcarty> adrien: I agree
<adrien> not by many things, but there is a pretty long chain that ends up with lablgl
<yezariaely> hcarty: hmm it is only an excerpt of the whole AST. I use the following command to compile it. maybe that is the problem?!
<yezariaely> ocamlfind ocamlc -c -package ulex -syntax camlp4o AST.ml
<adrien> like up to 7 steps to get to lablgl
ikaros has quit [Quit: Leave the magic to Houdini]
<yezariaely> camlp4o seems to be the problem. but it is not clear for me what this does ?!
ikaros has joined #ocaml
<adrien> might be something with ulex but it's really hard to tell
<adrien> like, I found out that you couldn't use a variable named "file" if you used xstrp4
<yezariaely> adrien: hehe ok, so then lets try renaming it
<adrien> s/_assign/Assign/ ?
<yezariaely> adrien: yes something like that, however the other constructors include _ as well
<yezariaely> still the same error
<adrien> and withotu the constructor at all, goes on?
<yezariaely> adrien: no, then the next constructor / line produces similar error
<adrien> can find a pattern for fields that produce that error? (I have absolutely 0 idea of what is causing the problem :-) )
<yezariaely> no I could not find any pattern :( you are interested in the whole file?
<adrien> unfortunately not much time for it but maybe someone else will have an idea
<yezariaely> I have a file with a strange Unbound constructor error, see the error on top of the file http://pastebin.com/GJFeuQN2
<yezariaely> compilation command is: ocamlfind ocamlc -c -package ulex -syntax camlp4o AST.ml
<yezariaely> anyone can help me with that?
<adrien> but why link against ulex? doesn't look like you're using it
<adrien> and why camlp4o?
<adrien> also, String.concat (including the construction of a list) is probably faster than using (^) several times
<yezariaely> adrien: the thing is, I am really new to Ocaml and have to work with it. I know ulex, however I have no clue what camlp4o is for. The build command is automatically generated by a makefile, and other files do use ulex and probably (?) camlp4o
<yezariaely> (and I did not code that)
<adrien> yezariaely: camlp4o is a (powerful) preprocessor, doesn't look like you're using it (but it's quite hard to say)
<adrien> ok
<yezariaely> so maybe I remove the camlp4o and try it again?
<yezariaely> -?
<adrien> oh
<adrien> I put your definition in the toplevel:
<adrien> | Lshift_assign (* <<= *)
<adrien> | Rsignedshift_assign (* >>= *)
<adrien> | Runsignedshift_assign (* >>>= *)
<adrien> ocaml returned me:
<adrien> | Lshift_assign
<adrien> | Runsignedshift_assign
<adrien> I actually had thought about that but thought it couldn't be: try withou the <<= and >>= comments
<adrien> or "break" them: it looks like <<= is making troubles...
<adrien> for a fun effect, you can put Lshit_assign _after_ both R*signedshift_assign
<yezariaely> adrien: cool. I already like ocaml ;)
<yezariaely> many thanks for your help!
<adrien> =)
<adrien> now, where is the bug from... ?
<yezariaely> good question, I tried a few things... and if I remove the camlp4o then it does compile
<yezariaely> but one file. which needs the campl4o
<hcarty> yezariaely: << and >> have special meanings with camlp4 IIRC. I didn't think they would cause problems in comments.
<yezariaely> ok now I removed every << and >> in the sources and everything compiles fine =)
<yezariaely> thx alot, hcarty and adrien
yezariaely has left #ocaml []
uho has joined #ocaml
<uho> im getting a type mismatch where its expecting an int instead of an int option, any idea why?
ccasin has quit [Quit: Leaving]
Edward has joined #ocaml
uho has quit [Ping timeout: 240 seconds]
_unK has joined #ocaml
uho has joined #ocaml
uho is now known as Guest76911
hcarty has quit [Read error: Operation timed out]
<adrien> Guest76911: not there yet but two things: when defining a rec function inside of another one, the outter one doesn't have to be rec too
hcarty has joined #ocaml
<adrien> and: use more newlines, especially for pattern matchings ;p
<adrien> Guest76911: as for your original question, I'd use '0' as the default accumulator: not 'None'
<adrien> if you use an 'int option', when returning it, you'd have to match it against Some/None (and when adding something to it)
Guest76911 has quit [Ping timeout: 265 seconds]
oriba has joined #ocaml
oriba has quit [Quit: Verlassend]
Guest76911 has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
ulfdoz has quit [Ping timeout: 255 seconds]
_andre has quit [Quit: leaving]
Edward has quit []
Guest76911 has quit [Ping timeout: 276 seconds]
Guest76911 has joined #ocaml
Leonidas has quit [Ping timeout: 265 seconds]
Leonidas has joined #ocaml
Guest76911 has quit [Ping timeout: 240 seconds]
nick_nsa_ has joined #ocaml
gildor has quit [Ping timeout: 255 seconds]
gildor has joined #ocaml
nick_nsa has quit [Read error: Connection reset by peer]
aj2009 has joined #ocaml
aj2009 has quit [Client Quit]