gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.1 http://bit.ly/nNVIVH
pilki has joined #ocaml
pilki has quit [Quit: This computer has gone to sleep]
agarwal1975 has quit [Quit: agarwal1975]
Tobu has quit [Ping timeout: 248 seconds]
twittard has quit [Quit: twittard]
metasyntax has quit [Quit: WeeChat [quit]]
Tobu has joined #ocaml
iago has quit [Quit: Leaving]
twittard has joined #ocaml
Tobu has quit [Ping timeout: 252 seconds]
ousado has quit [Remote host closed the connection]
milosn has joined #ocaml
milosn_ has quit [Ping timeout: 276 seconds]
Tobu has joined #ocaml
munga has joined #ocaml
munga has quit [Ping timeout: 240 seconds]
malouin has quit [Ping timeout: 252 seconds]
lamawithonel has quit [Ping timeout: 240 seconds]
Tobu has quit [Ping timeout: 252 seconds]
sebz has joined #ocaml
emmanuelux has quit [Ping timeout: 240 seconds]
munga has joined #ocaml
pilki has joined #ocaml
Tobu has joined #ocaml
gnech has joined #ocaml
<gnech> hello
<pilki> world
<gnech> im just learning ocaml, what awesome things should I do
<pilki> forget what you knew before and start with a fresh look :)
<gnech> ha ok
<gnech> what do people do most with ocaml?
<gnech> what line of work typically
<_habnabit> phylogenetic inference via bayesian statistics
Tobu has quit [Ping timeout: 272 seconds]
twittard has quit [Quit: twittard]
ulfdoz has joined #ocaml
<gnech> what else
munga has quit [Ping timeout: 240 seconds]
Tobu has joined #ocaml
sgnb has joined #ocaml
ulfdoz has quit [Ping timeout: 240 seconds]
pilki has quit [Quit: This computer has gone to sleep]
malouin has joined #ocaml
Tobu has quit [Ping timeout: 248 seconds]
munga has joined #ocaml
edwin has joined #ocaml
Tobu has joined #ocaml
munga has quit [Ping timeout: 272 seconds]
pango is now known as pangoafk
sebz has quit [Quit: Computer has gone to sleep.]
edwin has quit [Quit: Leaving.]
sebz has joined #ocaml
milosn has quit [Ping timeout: 255 seconds]
ftrvxmtrx_ has quit [Quit: Leaving]
philtor has joined #ocaml
Tobu has quit [Read error: Operation timed out]
philtor has quit [Ping timeout: 240 seconds]
sebz has quit [Quit: Computer has gone to sleep.]
Kakadu has joined #ocaml
ftrvxmtrx has joined #ocaml
Tobu has joined #ocaml
cago has joined #ocaml
ankit9 has joined #ocaml
jazz_ has joined #ocaml
milosn has joined #ocaml
jazz_ has quit [Quit: Page closed]
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
jazz264 has joined #ocaml
<jazz264> !HELP What is the best resource to learn about list iterators in OCaml ?
<jazz264> !HELP What is the best resource to learn about list iterators, I/O in OCaml ?
<flux> jazz264, maybe this is a good starting point: http://mirror.ocamlcore.org/ocaml-tutorial.org/
Cyanure has joined #ocaml
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
<jazz264> !HELP How to type cast a bin_tree to a list? Any core features available?
avsm has quit [Quit: Leaving.]
<flux> I don't know what a bin_tree is, it's not an OCaml standard data type. in OCaml you don't really do casting, maybe you are looking for a function with signature xxx bin_tree -> xxx list.
<Ptival> if this is you bin_tree, then just a few lines under there is a list_of_tree function
<Ptival> which, as flux mentioned, is a function whose type is 'a bin_tree -> 'a list
dsheets has quit [Ping timeout: 255 seconds]
_andre has joined #ocaml
avsm has joined #ocaml
gnech has quit [Ping timeout: 244 seconds]
jazz264 has quit [Quit: Page closed]
mnabil has joined #ocaml
oriba has joined #ocaml
rby has joined #ocaml
Submarine has quit [Ping timeout: 276 seconds]
Xizor has joined #ocaml
ulfdoz has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
munga has joined #ocaml
emmanuelux has joined #ocaml
ikaros has joined #ocaml
munga has quit [Ping timeout: 252 seconds]
emmanuelux has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
letrec has joined #ocaml
munga has joined #ocaml
Tobu has joined #ocaml
munga has quit [Ping timeout: 260 seconds]
emmanuelux has quit [Remote host closed the connection]
ikaros has quit [Quit: Ex-Chat]
raichoo has joined #ocaml
ousado has joined #ocaml
ousado has quit [Changing host]
ousado has joined #ocaml
antegallya has joined #ocaml
antegallya has left #ocaml []
Tobu has quit [Ping timeout: 248 seconds]
emmanuelux has joined #ocaml
ocp has joined #ocaml
Tobu has joined #ocaml
pilki has joined #ocaml
ttamttam has joined #ocaml
Julien_T has joined #ocaml
lamawithonel has joined #ocaml
f[x] has quit [Ping timeout: 255 seconds]
f[x] has joined #ocaml
pilki has quit [Quit: This computer has gone to sleep]
Drakken has joined #ocaml
Snark has joined #ocaml
Julien_T has quit [Ping timeout: 272 seconds]
avsm has quit [Quit: Leaving.]
avsm has joined #ocaml
avsm has quit [Client Quit]
avsm has joined #ocaml
hcarty has joined #ocaml
scrappy_doo_ has joined #ocaml
Drakken has quit [Ping timeout: 240 seconds]
Julien_T has joined #ocaml
Kakadu has quit [Quit: Page closed]
Cyanure has quit [Ping timeout: 252 seconds]
gnech has joined #ocaml
mcclurmc has quit [Excess Flood]
mcclurmc has joined #ocaml
scrappy_doo_ is now known as Drakken
<Drakken> This line in my _tags file doesn't seem to be working: </home/dan/ocaml/foo>: include
<Drakken> The _tags file is in /home/dan/bar
<thelema> you're including something outside your source tree?
Drup has joined #ocaml
<thelema> I've never seen ocamlbuild used that way
<Drakken> right. is there a way to do that with _tags?
<adrien> it's a big no for ocamlbuild
<thelema> I don't think it would work.
<thelema> use a symlink to get it in your tree
<adrien> what you "include" is copied into the _build/ folder
<adrien> (or install with ocamlfind)
<Drakken> thelema I tried that. No luck yet, but I'll see if I can find any mistakes I made.
<thelema> maybe you'll have to copy it into your source tree.
<adrien> iirc ocamlbuild won't follow the symlinks
<thelema> adrien: ah
<Drakken> or package my code for findlib?
<thelema> that would be agood way to do it.
<Drakken> adrien that sounds right
<thelema> It's pretty easy; just build a .cm[x]a file with all your modules and make a META file that says to use that cm[x]a, and ocamlfind install META foo.cma foo.cmxa *.cmi
<adrien> you've skipped the package name ;-)
<thelema> adrien: oops
<thelema> something like that.
<adrien> and if you're using oasis, ocaml setup.ml -install
<thelema> adrien: I think you need the plugin META
<thelema> well, maybe not, if you write teh meta yourself
<adrien> true
philtor has joined #ocaml
raichoo has quit [Quit: leaving]
ftrvxmtrx has quit [Quit: Leaving]
scrappy_doo_ has joined #ocaml
<adrien> just got this error: is the wording new? Their 7th fields have different names, request and request_page.
<adrien> when dealing with records
<adrien> (and a module and its signature)
<thelema> interesting; I don't think I've gotten that message before
avsm has quit [Quit: Leaving.]
Drakken has quit [Ping timeout: 240 seconds]
<adrien> I guess it requires fields to be ordered the same way and it might be only used when there are more thana a few fields
ttamttam has left #ocaml []
philtor has quit [Ping timeout: 255 seconds]
ankit9 has quit [Quit: Leaving]
<adrien> anyone know where is the doc for operators in ocaml? I think I'm going to define one for ignore (I'm doing gtk stuff and my code overflows with calls to ignore)
<thelema> operators? you mean %foo?
<thelema> adrien: yes, fields must have a consistent ordering. I think even for small records
<adrien> right: Their first fields have different names, b and a.
<adrien> Their first fields have different names, b and a.
<adrien> bah
<thelema> {a:int; b:int} is not the same as {b:int; a:int}
<adrien> and, operators like @
<thelema> the section "prefix and infix symbols"
<adrien> thanks =)
<thelema> n/p
<thelema> the associativity and precedence are on a different page: http://caml.inria.fr/pub/docs/manual-ocaml/expr.html
oriba has quit [Quit: oriba]
avsm has joined #ocaml
cago has quit [Quit: Leaving.]
scrappy_doo_ has left #ocaml []
<adrien> finding the right operator is not a lot of fun ;p
g0dmoney- has quit [Ping timeout: 252 seconds]
ocp has quit [Read error: Operation timed out]
Drakken has joined #ocaml
ulfdoz has quit [Ping timeout: 240 seconds]
Tobu has quit [Quit: No Ping reply in 180 seconds.]
ulfdoz has joined #ocaml
Tobu has joined #ocaml
<thelema> adrien: quite.
<hcarty> adrien: !! ignore_me;
<hcarty> Or !%?&* ignore_me - then it looks like your code it covered in censoring swearing.
<thelema> hcarty: too high priority?
<hcarty> thelema: If you want a prefix operator I don't think that there is much choice. ! and ? are it, aren't they?
<hcarty> Unless you go with pa-do
<thelema> ~
<hcarty> thelema: That too
<thelema> it looks like all prefix operators have highest priority
<thelema> so they'll bind tighter than function application, and you'll just ignore your function name
<hcarty> Yes, a prefix operator without pa-do won't get rid of the need for ( )
<adrien> I would have liked something with low priority to avoid some parens (basically, ignore everything that is after the operator)
<thelema> yes, want prio just above ;
<adrien> so far, I have "let i = ignore"; works alright
<hcarty> adrien: I don't think you can do much better than that without camlp4
<thelema> I often do |> ignore;
<adrien> has odb.ml been tested on openbsd? and can it fetch from git? (for lablgtk)
<hcarty> adrien: It works on OSX, so it may work on openbsd
<thelema> not to my knowledge, but I'd expect it to work.
<adrien> I could put the ignore at the end of the line, right
<thelema> you can get co it from github
<adrien> get co?
<thelema> git://github.com/thelema/odb.git
<adrien> I mean: can it build lablgtk from a specific git branch?
<thelema> oh... hmmm
<thelema> not right now, as git can't index a particular branch
<thelema> but it's pretty trivial to add
<thelema> (or can a git repo URL directly point to one branch?)
<adrien> well, I'd need it right now so don't worry for now (will see again in a few days)
<adrien> git clone has a --branch argument
<thelema> ok, I'll use that. plan on `lablgtk2 git=URI branch=foo` in your packages file making this happen
<thelema> implemented. untested, but it should work
g0dmoney- has joined #ocaml
<adrien> heh, that was fast; I'll give it a try soon
<adrien> thanks
<thelema> odb is dumb simple - simple to modify too.
<adrien> :-)
letrec has quit [Ping timeout: 240 seconds]
mnabil has quit [Ping timeout: 248 seconds]
g0dmoney- has quit [Ping timeout: 255 seconds]
g0dmoney- has joined #ocaml
g0dmoney- has quit [Read error: Connection reset by peer]
gnech has quit [Ping timeout: 240 seconds]
g0dmoney- has joined #ocaml
Kakadu has joined #ocaml
g0dmoney- has quit [Ping timeout: 252 seconds]
lopex has quit [Remote host closed the connection]
bobry has quit [Remote host closed the connection]
joewilliams has quit [Remote host closed the connection]
g0dmoney- has joined #ocaml
Tobu has quit [Ping timeout: 248 seconds]
Kakadu has quit [Quit: Konversation terminated!]
Kakadu has joined #ocaml
bobry has joined #ocaml
avsm has quit [Quit: Leaving.]
Tobu has joined #ocaml
ski has quit [Ping timeout: 255 seconds]
lopex has joined #ocaml
ikaros has joined #ocaml
raichoo has joined #ocaml
BiDOrD_ has joined #ocaml
BiDOrD has quit [Ping timeout: 252 seconds]
dsheets has joined #ocaml
gnech has joined #ocaml
<adrien> has anyone ever tried to access and use a first-class module from C?
gnech has quit [Ping timeout: 252 seconds]
raichoo has quit [Ping timeout: 248 seconds]
raichoo has joined #ocaml
sebz has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
Tobu has joined #ocaml
raichoo has quit [Ping timeout: 248 seconds]
raichoo has joined #ocaml
ftrvxmtrx has joined #ocaml
<Drakken> Are there patterns for objects?
<Ptival> maybe this?
<thelema> Drakken: like design patterns?
<Ptival> ∣ { field = pattern { ; field = pattern } }
<thelema> ok, pattern matching...
<Ptival> thelema: not sure either :)
<Drakken> yes, for matching
<Ptival> ok
<Drakken> Ptival that looks like a record
<Ptival> indeed
<Ptival> it is for records
<Drakken> I mee OOP objects
<Drakken> meeN
<Ptival> what would you want as a pattern? :)
Julien_T has quit [Ping timeout: 240 seconds]
<Ptival> mean* actually
<Drakken> wow. and I wrote "speach" a few weeks ago :/
Snark has quit [Quit: Quitte]
_andre has quit [Quit: leaving]
<Ptival> Drakken: so, what do you expect to match against what?
<Drakken> Ptival I would match objects against collections of slot bindings.
<thelema> I don't see objects available as patterns
<thelema> I think you're stuck doing if/then sequences
<thelema> or match foo#x1, foo#x2, ... with matching against an explicit tuple of field values
<Ptival> I don't know much about objects anyway...
<Ptival> do you want to match to have reflection? to bind some methods?
<thelema> Ptival: it's possible to use objects as extendable records - in this case, pattern matching becomes reasonable
<Ptival> I see
<hcarty> adrien: I have not, but I remember reading that they are records internally, or they are structured similar to records.
<hcarty> adrien: So that may help a bit...
ocp has joined #ocaml
ski has joined #ocaml
sebz has quit [Quit: Computer has gone to sleep.]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
sebz has quit [Client Quit]
sebz has joined #ocaml
sebz has quit [Client Quit]
ocp has left #ocaml []
ccasin has quit [Remote host closed the connection]
ftrvxmtrx has quit [Ping timeout: 240 seconds]
ikaros has quit [Quit: Ex-Chat]
Tobu has quit [Read error: Operation timed out]
ikaros has joined #ocaml
Tobu has joined #ocaml
ftrvxmtrx has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 240 seconds]
iago has joined #ocaml
munga has joined #ocaml
ftrvxmtrx has joined #ocaml
ulfdoz has quit [Ping timeout: 248 seconds]
Kakadu has quit [Read error: Operation timed out]
munga has quit [Ping timeout: 276 seconds]
Tobu has quit [Ping timeout: 248 seconds]
Tobu has joined #ocaml
joewilliams has joined #ocaml
mcclurmc has quit [Excess Flood]
mcclurmc has joined #ocaml
<adrien> hcarty: thanks; thought so; anyway, I'm probably not going to start that today so I can fill a bug report for the documentation =)
raichoo has quit [Quit: leaving]
Drup has quit [Quit: Leaving.]
ski has quit [Ping timeout: 255 seconds]
Julien_T has joined #ocaml
ikaros has quit [Quit: Ex-Chat]
ski has joined #ocaml
Julien_T has quit [Read error: Operation timed out]
<bitbckt> %revapply made it in? :)
munga has joined #ocaml
Nass has joined #ocaml
gnech has joined #ocaml
Tobu has quit [Ping timeout: 252 seconds]
munga has quit [Ping timeout: 240 seconds]
Transformer has joined #ocaml
Transformer has quit [Excess Flood]
Tobu has joined #ocaml
letrec has joined #ocaml
Drakken has left #ocaml []
munga has joined #ocaml
gnech has quit [Ping timeout: 252 seconds]
Tobu has quit [Ping timeout: 252 seconds]
munga has quit [Ping timeout: 240 seconds]
letrec has quit [Ping timeout: 248 seconds]
<thelema> bitbckt: I thought it was already in - I saw a commit a while ago
<bitbckt> thelema: now or then, glad to see it.
milosn has quit [Ping timeout: 260 seconds]
<thelema> I wish for a better inliner - revapply doesn't work for |-, -|, <|, or a million other simple variants
Tobu has joined #ocaml
Xizor has quit []
sebz has joined #ocaml
Tobu has quit [Read error: Operation timed out]
munga has joined #ocaml
tautologico has joined #ocaml