<msalzberg_>
and to use it, all I should have to do is Option.get (some var)?
_unK has quit [Remote host closed the connection]
<orbitz>
msalzberg_: I don't think there is any good reason ot assume it is the stdlib
<msalzberg_>
oh alright, bummer
valross has quit [Ping timeout: 276 seconds]
valross has joined #ocaml
ulfdoz has joined #ocaml
yakischloba has quit [Quit: Leaving.]
enthymeme has joined #ocaml
<EricFisher>
What does @@ mean in OCaml?
<julm>
I guess nothing unless you have it defined somewhere
<EricFisher>
Ah, so does this mean that in OCaml, such as "@@" or "+++" can be a legal function name?
<julm>
yep
<julm>
let (@@) = fun a b -> ...
<EricFisher>
interesting.
valross has quit [Read error: Connection reset by peer]
msalzberg_ has quit [Quit: msalzberg_]
enthymeme has quit [Quit: *thud*]
valross has joined #ocaml
<EricFisher>
Hi, what does s' and s'' mean?
ulfdoz has quit [Ping timeout: 252 seconds]
<olegfink>
' doesn't have special meaning in identifiers when not in the first position. usually it is used to denote values derived in some way from the base, as it is in maths.
<Camarade_Tux>
it could be nice for the toplevel :-)
mikeX has quit [Ping timeout: 258 seconds]
mikeX has joined #ocaml
Yoric has joined #ocaml
pimmhogeling has joined #ocaml
<flux>
anything would be nice for the toplevel :). however, given the availability of libeditline, I'd rather pick that..
ikaros has joined #ocaml
zhijie has quit [Read error: Connection reset by peer]
zhijie has joined #ocaml
hyperboreean has joined #ocaml
zhijie has quit [Client Quit]
<Camarade_Tux>
yeah, it'd be definitely nicer to have libeditline but I'd be happy with linenoise too
<Camarade_Tux>
libeditline has more features, linenoise is much smaller and may be easier to integrate into the toplevel (easier API for instance)
valross has quit [Quit: Ex-Chat]
<olegfink>
actually it's not like people is still using 70s-style terminals, so it might finally be okay to have a graphical program for interactive editing?
<Camarade_Tux>
olegfink: hmmmm http://omploader.org/vMzlydg :P (that was spaghetti code I wasn't happy with: save your eyes, don't read ;-) )
<olegfink>
(full keyboard/mouse editing, including previous lines, copy/paste etc.)
<Camarade_Tux>
heh :P
<Camarade_Tux>
what is it?
<Camarade_Tux>
(I mean, details)
<olegfink>
it's stock 9term, though something about it could be changed
<Camarade_Tux>
I guess not many people have it installed however =/
<olegfink>
yes, and unfortunately no widely used version of unix comes with a tool like this (which is strange)
<Camarade_Tux>
well, I had never heard about it before (although I knew plan9)
<olegfink>
9term doesn't really exist on plan9, for it is a port of a core aspect of the plan9 interface to unix
EricFisher has left #ocaml []
<olegfink>
(and as such it's pretty heavy, i.e. it uses a more or less portable graphics implementation (at least with x11 and cocoa backends) instead of being written e.g. just with xlib)
orphee has joined #ocaml
<olegfink>
Camarade_Tux: by the way, ocaml comes with ocamlbrowser that includes something of the sort, though not that usable
<Camarade_Tux>
ah, right, I had forgotten about that editor in ocamlbrowser
<Camarade_Tux>
quite nice actually
<Camarade_Tux>
and going to be late again, bbl =)
avsm has joined #ocaml
rprichard has quit [Ping timeout: 252 seconds]
spearalot has quit [Quit: Computer has gone to sleep]
ttamttam has quit [Quit: Leaving.]
ttamttam has joined #ocaml
tmaeda is now known as tmaedaZ
spearalot has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
derdon has joined #ocaml
<flux>
hmph, using **> and |> in the same function gives a slight perlish feeling of timtowtdi :)
<mrvn>
<!-- -->
_andre has joined #ocaml
<flux>
hmm, how would one find the list of nodes (and edges) reachable in a directed graph from a given nice with OcamlGraph?
<flux>
by making use of the existing functions, instead of writing the (shortish) algorithm, of course :)
<flux>
in other words, is something this simple just missing from it, or am I just not finding it..
orphee has quit [Quit: rcirc on GNU Emacs 22.1.1]
<flux>
ah, it was me all along, Prune_unreachable ;)
<flux>
gah, but it's apparently a recent addition, as my ocamlgraph doesn't know about it
<flux>
or not. I had bumped into the documentation or some other ocaml library dealing with graphs :)
barismetin has quit [Ping timeout: 240 seconds]
orphee has joined #ocaml
spearalot has quit [Quit: Computer has gone to sleep]
derdon has quit [Quit: derdon]
pimmhogeling has quit [Read error: Connection reset by peer]
<orbitz>
eldragon: i know, and it says citation needed...
<eldragon>
orbitz, if you need a citation, go to funeral and request the citation.
<orbitz>
eldragon: Do you undertand that wikipedia is not necessiarly an accurate place for information?
pimmhogeling has quit [Ping timeout: 265 seconds]
svenl has joined #ocaml
bzzbzz has joined #ocaml
<avsm>
It is unfortunately true
<avsm>
From his son and daughter, via Andrew Pitts: "We are sorry to announce that Robin Milner died on Saturday 20th March, in Cambridge, just three days after the funeral of his wife, Lucy."
<mrvn>
avsm: no more than other sources, no less too unfortunately. On the whole.
sgnb` has joined #ocaml
<orbitz>
avsm: Ohad posted on LtU too
Ori_B_ has joined #ocaml
<orbitz>
malcolm from #haskell put citation from the LtU post on wiki
_zack has joined #ocaml
<mrvn>
Someone needs to start an alternative to wikipedia so they can site each other.
<thelema>
well, I'm not committed to ocamldoc for documentation for batteries, but there is a bunch of existing documentation that'd have to be migrated somehow.
<derdon>
yes, is it a problem for you?
<derdon>
the work is worth doing it
<thelema>
to do the migration myself? Doesn't sound that appealing.
<thelema>
as nice as ReST is...
<derdon>
ReST is awesome!
<thelema>
can I ask people to install sphinx to compile the documentation? I'm guessing not - I'll have to include prebuilt docs into the release tarballs
<thelema>
which makes the release process more complicated
<thelema>
I'm kinda looking forward to an awesome version of ocamlbuild so I can drop the wierd dependency on omake (as nice as it is)
<derdon>
thelema: a documentation is not compiled?!
<thelema>
derdon: ? batteries' documentation is not prebuilt.
<derdon>
thelema: in sphinx, it is written in rst files and then converted to html files
<thelema>
ok
<derdon>
thelema: do you call this process 'compiling'?
ttamttam has quit [Quit: Leaving.]
<thelema>
no, building the documentation is just building.
<thelema>
I don't think about compiling the documentation.
<thelema>
it's 'generated'
<derdon>
right, so do I
<thelema>
oh, I did say "compile the documentation"... huh
_zack has quit [Ping timeout: 252 seconds]
f[x] has quit [Ping timeout: 276 seconds]
Yoric has quit [Quit: Yoric]
f[x] has joined #ocaml
Associat0r has joined #ocaml
avsm has joined #ocaml
ikaros has joined #ocaml
enthymeme has joined #ocaml
_zack has joined #ocaml
Associat0r has quit [Quit: Associat0r]
krankkatze has quit [Ping timeout: 245 seconds]
Submarine has joined #ocaml
_zack has quit [Ping timeout: 258 seconds]
f[x] has quit [Ping timeout: 268 seconds]
f[x] has joined #ocaml
_zack has joined #ocaml
_zack has quit [Client Quit]
f[x] has quit [Ping timeout: 240 seconds]
f[x] has joined #ocaml
Demitar has joined #ocaml
drk-sd has quit [Quit: g2g]
boscop_ has joined #ocaml
boscop has quit [Ping timeout: 260 seconds]
boscop_ has left #ocaml []
boscop has joined #ocaml
ulfdoz has joined #ocaml
ttamttam has joined #ocaml
<boscop>
this site (http://xahlee.org/ocaml/pattern_matching.html) says, when I want to transform a 3-tuple like (x,y,z) into (x,z) when x equals y, this doesn't work: let d = (3, 3, 4) in match d with ( a, a, c ) -> (a, c);;
<boscop>
how would I have to write it instead?
<ulfdoz>
I prefer bouml for uml.
<ulfdoz>
ewin
<mfp>
boscop: | (a,b,c) when a = b -> (a, c) | ...
<boscop>
ah, thanks
f[x] has quit [Ping timeout: 276 seconds]
f[x] has joined #ocaml
<orbitz>
oh god, xahlee!
<Alpounet>
haha
<orbitz>
boscop: print it out and burn it
f[x] has quit [Ping timeout: 268 seconds]
f[x] has joined #ocaml
jeddhaberstro has joined #ocaml
f[x] has quit [Ping timeout: 268 seconds]
f[x] has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 246 seconds]
krankkatze has joined #ocaml
_andre has quit [Quit: *puff*]
<derdon>
I love streams :)
<derdon>
are they comparable to Python's generators?
<thelema>
I use enum, which is more similar, and a bit more general.
<thelema>
Yes, they're comparable
<thelema>
they don't get created in the same way - there's no yield in ocaml