mfp changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released | Inscription for OCaml Meeting 2010 is opened http://wiki.cocan.org/events/europe/ocamlmeetingparis2010
pimmhogeling has quit [Ping timeout: 245 seconds]
avsm1 has quit [Quit: Leaving.]
tmaeda is now known as tmaedaZ
jonafan_ has joined #ocaml
jonafan has quit [Ping timeout: 240 seconds]
thrasibule_ has joined #ocaml
Amorphous has quit [Ping timeout: 240 seconds]
thrasibule has quit [Read error: Connection reset by peer]
Amorphous has joined #ocaml
tmaedaZ is now known as tmaeda
tmaeda is now known as tmaedaZ
gwynddyllyd has joined #ocaml
boscop has quit [Quit: Gxis revido!]
mfp has quit [Ping timeout: 256 seconds]
mjonsson has joined #ocaml
rhar has joined #ocaml
mfp has joined #ocaml
valross has joined #ocaml
mutew has joined #ocaml
maskd has quit [Quit: leaving]
slash_ has quit [Quit: Lost terminal]
ski_ has joined #ocaml
threeve has joined #ocaml
tmaedaZ is now known as tmaeda
mutew has quit [Quit: leaving]
rhar has quit [Ping timeout: 246 seconds]
joewilliams_away is now known as joewilliams
gwynddyllyd has quit [Quit: back soon]
CcSsNET has quit [Remote host closed the connection]
CcSsNET has joined #ocaml
M| has quit [Ping timeout: 256 seconds]
M| has joined #ocaml
Amorphous has quit [Ping timeout: 272 seconds]
CcSsNET has quit [Ping timeout: 272 seconds]
gmh33 has joined #ocaml
<gmh33> how do you convert int -> string?
CcSsNET has joined #ocaml
<julm> gmh33: string_of_int
Amorphous has joined #ocaml
<gmh33> julm: thanks :)
<julm> yw :)
<gmh33> julm: I'm writing a compiler w/ ocaml for a class (I chose the language), but finding some of the function names is a bit tough :(
<julm> I agree
<flux> thelema, so does the abstraction of files say that data is immediately available and there are never errors?
CcSsNET has quit [Read error: Connection reset by peer]
det_ has left #ocaml []
det has joined #ocaml
<det> Is there such thing as a camlp4 extension for parser combinators?
ulfdoz has joined #ocaml
thrasibule_ has quit [Ping timeout: 272 seconds]
rhar has joined #ocaml
<det> For example, it could expand the first into the second here: http://pastebin.com/m11291a78
joewilliams is now known as joewilliams_away
valross has quit [Quit: Ex-Chat]
pad has quit [Remote host closed the connection]
_unK has quit [Remote host closed the connection]
ttamttam has joined #ocaml
gmh33 has quit [Quit: Leaving]
yakischloba has quit [Quit: Leaving.]
ttamttam has quit [Quit: Leaving.]
jcaose has joined #ocaml
rhar has quit [Quit: This computer has gone to sleep]
<det> Which syntax would you prefer ?
zhijie has quit [Quit: Leaving.]
Alpounet has quit [Ping timeout: 245 seconds]
ulfdoz has quit [Ping timeout: 240 seconds]
yangsx has left #ocaml []
_zack has joined #ocaml
avsm has joined #ocaml
avsm has quit [Client Quit]
ttamttam has joined #ocaml
Yoric has joined #ocaml
Yoric has quit [Quit: Yoric]
f[x] has joined #ocaml
boscop has joined #ocaml
ikaros has joined #ocaml
tmaeda is now known as tmaedaZ
Modius_ has joined #ocaml
Modius has quit [Ping timeout: 265 seconds]
Alpounet has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
Yoric has joined #ocaml
ikaros has joined #ocaml
Modius_ has quit [Quit: I'm big in Japan]
Submarine has joined #ocaml
maskd has joined #ocaml
Submarine has quit [Read error: Connection reset by peer]
Submarine has joined #ocaml
pimmhogeling has joined #ocaml
ikaros has quit [Remote host closed the connection]
pimmhogeling has quit [Read error: Connection reset by peer]
pimmhogeling has joined #ocaml
avsm has joined #ocaml
<Alpounet> thelema, haha, somebody is willing to submit a patch
<Alpounet> here we go, a contributor !
<mfp> oops just remembered something... thelema: did you get the base64 patch?
<mfp> got a pull req from g2p http://github.com/g2p/batteries-included/commits/master (2 last commits)
slash_ has joined #ocaml
ski_ has quit [Quit: Lost terminal]
_andre has joined #ocaml
f[x] has quit [Ping timeout: 260 seconds]
f[x] has joined #ocaml
f[x] has quit [Ping timeout: 260 seconds]
f[x] has joined #ocaml
thrasibule has joined #ocaml
pimmhogeling has quit [Ping timeout: 256 seconds]
mutew has joined #ocaml
mutew has quit [Quit: leaving]
tmaedaZ is now known as tmaeda
f[x] has quit [Ping timeout: 260 seconds]
<thelema> mfp: yup, it should be merged.
<mfp> thelema: what's the best way to do it? cherry pick (using github's intf) or merge?
<thelema> umm, it should already be merged...
<mfp> ah ok
* mfp fetches
<thelema> What I did was merge, and it was already just a fast-forward merge.
<mfp> "Un-nest Str module" > doesn't this break source compatibility? (thus needing bump to 2.0)
<thelema> no, I classify the old behavior as a bug.
<mfp> heh
<thelema> I should probably document this properly. There's a special case in the semver definition for this.
<thelema> I think that before this change, the function Str.search was only available as Batteries.Str.Str.search
mutew has joined #ocaml
gim has joined #ocaml
<thelema> two new patches pushed
<thelema> gildor: what's the ssh key fingerprint for forge.ocamlcore.org?
rwmjones has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
rwmjones has joined #ocaml
f[x] has joined #ocaml
_zack has quit [Quit: Leaving.]
Modius has joined #ocaml
derdon has joined #ocaml
_zack has joined #ocaml
rhar has joined #ocaml
rhar has quit [Quit: This computer has gone to sleep]
Smerdyakov has joined #ocaml
f[x] has quit [Ping timeout: 248 seconds]
vpalle has joined #ocaml
rhar has joined #ocaml
avsm1 has joined #ocaml
rhar has quit [Ping timeout: 264 seconds]
avsm has quit [Ping timeout: 245 seconds]
_andre has quit [Quit: Lost terminal]
gildor has left #ocaml []
gildor has joined #ocaml
_unK has joined #ocaml
avsm1 has quit [Quit: Leaving.]
itewsh has joined #ocaml
yakischloba has joined #ocaml
vpalle has quit [Ping timeout: 252 seconds]
mutew has quit [Ping timeout: 246 seconds]
tmaeda is now known as tmaedaZ
vpalle has joined #ocaml
tmaedaZ is now known as tmaeda
ttamttam has quit [Quit: Leaving.]
Yoric has quit [Quit: Yoric]
tmaeda is now known as tmaedaZ
Mr_Awesome has quit [Ping timeout: 276 seconds]
pad has joined #ocaml
_zack has quit [Quit: Leaving.]
<Smerdyakov> Anyone want to help me test a platform for hosting web applications written in my ML-like language Ur/Web? If so, join #ur.
mbana has joined #ocaml
<mbana> is it true i can compile ocaml programs on f# unmodified ?
<Smerdyakov> mbana, some of them.
<thelema> mbana: there's a subset of both that's cross-compatible
joewilliams_away is now known as joewilliams
thelema_ has joined #ocaml
itewsh has quit [Quit: There are only 10 kinds of people: those who understand binary and those who don't]
joewilliams is now known as joewilliams_away
joewilliams_away is now known as joewilliams
Submarine has quit [Quit: Leaving]
thelema has quit [Ping timeout: 264 seconds]
ido has joined #ocaml
mutew has joined #ocaml
Submarine has joined #ocaml
mutew has quit [Client Quit]
CcSsNET has joined #ocaml
Submarine has quit [Quit: Leaving]
jcaose has quit [Quit: Leaving]
vpalle has quit [Ping timeout: 252 seconds]
joewilliams is now known as joewilliams_away
ulfdoz has joined #ocaml
smimou has quit [Ping timeout: 246 seconds]
smimou has joined #ocaml
ttamttam has joined #ocaml
rhar has joined #ocaml
vpalle has joined #ocaml
vpalle_ has joined #ocaml
vpalle has quit [Ping timeout: 252 seconds]
ttamttam has quit [Quit: Leaving.]
cataska has quit [Ping timeout: 248 seconds]
cataska has joined #ocaml
Submarine has joined #ocaml
mutew has joined #ocaml
rhar has quit [Quit: This computer has gone to sleep]
BigJ has quit [Read error: Connection reset by peer]
jonafan_ is now known as jonafan
mutew has quit [Quit: leaving]
travisbrady has joined #ocaml
orbitz has quit [Quit: moving machine to new house]
Anarchos has joined #ocaml
thelema_ has left #ocaml []
thelema has joined #ocaml
<thelema> travisbrady: you found the calendar package, right?
<travisbrady> thelema: ahh, i didn't actually, i was grepping for 'date' and 'time'
<travisbrady> thank you
mutew has joined #ocaml
<thelema> you're welcome
<mutew> I am having this weird issue involving types in ocaml.
<mutew> I currently have a nullable type (type 'a nullable = null | notnull of 'a;;)
<Smerdyakov> Why not use [option]?
<thelema> mutew: which is identical to 'a option
<mutew> and I am trying to extend this to create a tree type
<Smerdyakov> Also, the type definition you gave doesn't parse.
<Smerdyakov> Constructor names must be capitalized.
<thelema> mutew: type 'a tree = Empty | Tree of 'a * 'a tree * 'a tree
<mutew> thelema: That's what I have been doing for binary trees..
<thelema> mutew: type 'a list_tree = 'a list_tree list
<mutew> I just figured that it'd be interesting if I could incorporate my nullable type into the tree.
<Smerdyakov> mutew, you should stop using your nullable type and use [option] instead.
<thelema> type 'a nullable_tree = 'a nullable tree
<mutew> thelema: Current nullable looks something like : type 'a nullable = Null | NotNull of 'a;;
<Smerdyakov> mutew, please be aware that many of us here are going to stop helping you unless you at least acknowledge that your [nullable] type is a confusing duplication of standard functionality.
<mutew> thelema: My tree type was : type 'a node = Null | Node of 'a * 'a node * 'a node;;
<thelema> mutew: or did you want something where the empty tree = a null type?
<thelema> type 'a tree = ('a * 'a tree * 'a tree) nullable ??
<mutew> Smerdyakov: I started learning ocaml 2 hours ago, I am not even sure what you mean by the [nullable] type.
<Smerdyakov> mutew, I'm just using brackets to quote code.
<Smerdyakov> mutew, I'm talking about the type you started out telling us about.
<Smerdyakov> mutew, i.e., the one named "nullable".
<thelema> mutew: ocaml has defined a type [option] which is the same as your "nullable" type, just different names.
<mutew> Smerdyakov: ahh, my bad. I was going through a tutorial and they were showing how to declare new types.
<mutew> Smerdyakov: and they started with the [nullable] example.
tmaedaZ is now known as tmaeda
<Smerdyakov> So, since there might be different people around since I last asked, does anyone want to help me test something I'm working on with my ML-like web application language? If so, join #ur!
<Smerdyakov> mutew, OK. In "real" code, you wouldn't define that yourself, since it's in the standard library by different names.
<mutew> Smerdyakov: Right..
<Smerdyakov> As for your original question, I have to confess that I still don't understand what you're trying to do.
<mutew> So would something like : type 'a tree = Tree of ('a * 'a tree * 'a tree) nullable;; work?
<Smerdyakov> That looks like it would be accepted by the type-checker.
<mutew> Smerdyakov: Ok, here's the scene - the nullable type was used as an example for user-created types.
<Smerdyakov> I don't know what you're trying to accomplish, but I wouldn't be surprised if this does it. :)
<mutew> Smerdyakov: and then this was extended to trees since it would require null/notnull for child nodes.
<Smerdyakov> Well, you still haven't said what you're trying to do, but I think you came up with your own answer.
valross has joined #ocaml
<mutew> Smerdyakov: So the final type I want is a binary tree, catch is integrating the nullable type into my type definition.
<Smerdyakov> And it looks like you did that above.
<mutew> Trouble is my match no longer works..
<Smerdyakov> Which shouldn't be surprising at all, if you understand how datatypes work in OCaml]
<mutew> I mean I match Null and NotNull, but not Node.
<thelema> correct - you'll have to match Null -> ... | Not_null (v,l,r) -> ...
<Smerdyakov> thelema, not quote, given his definition.
<Smerdyakov> s/quote/quite
<thelema> correct - you'll have to match Tree Null -> ... | Tree (Not_null (v,l,r)) -> ...
<derdon> I've just started with OOP in ocaml
<mutew> thelema: Then using this definition would this be a valid tree - Node(1,NotNull(Node(2, Null, Null), NotNull(3, Null, Null)));;
<mutew> thelema: oops, NotNull(Node(3,Null,Null));;
<derdon> do I see it right that I must use getters ans setters like in Java if I want to access instance variables?
tmaeda is now known as tmaedaZ
mutew has quit [Ping timeout: 265 seconds]
Associat0r has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-090423]: i've been blurred!]
vpalle__ has joined #ocaml
<gildor> test
vpalle_ has quit [Ping timeout: 240 seconds]
orbitz has joined #ocaml
vpalle__ has quit [Ping timeout: 252 seconds]
Submarine has quit [Read error: Operation timed out]
<derdon> gildor: passed
<gildor> I see
derdon has quit [Quit: derdon]
ulfdoz has quit [Ping timeout: 248 seconds]
tmaedaZ is now known as tmaeda
m3ga has joined #ocaml
slash_ has quit [Quit: Lost terminal]
poet has joined #ocaml
<poet> lets say I have a list of tuples and I dont know what is going to be in the tuples. Can anyone suggest a way to find all strings within the list of tuples at any depth?
travisbrady has quit [Quit: travisbrady]
<Smerdyakov> I'm not quite sure what you mean, but it's probably not possible.
poet has quit [Quit: poet]