gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.11.2 released | Batteries 1.2.0 released http://batteries.forge.ocamlcore.org
joewilliams is now known as joewilliams_away
rjsimmon has joined #ocaml
valross has quit [Ping timeout: 252 seconds]
middayc has quit [Quit: ChatZilla 0.9.86 [Firefox 3.6.3/20100401080539]]
_JFT_ has joined #ocaml
<palomer> hrmph
<palomer> keys.ml in ocaml-curses has backspace as 0o407
<palomer> which is 263
<palomer> which is clearly wrong
<palomer> I'm very confused
<palomer> and the left key is 0o404
<palomer> where does it get these cooky numbers
<palomer> curses is crazy.
peddie has joined #ocaml
peddie has quit [Client Quit]
valross has joined #ocaml
jeddhaberstro has quit [Quit: jeddhaberstro]
walrus__ has joined #ocaml
_JFT_ has quit [Quit: _JFT_]
valross has quit [Ping timeout: 240 seconds]
travisbrady has quit [Quit: travisbrady]
Edward_ has quit []
travisbrady has joined #ocaml
pad has quit [Remote host closed the connection]
emmanuelux has quit [Remote host closed the connection]
thrasibule has quit [Ping timeout: 258 seconds]
rjsimmon has quit [Quit: Leaving.]
ulfdoz has joined #ocaml
rjsimmon has joined #ocaml
travisbrady has quit [Quit: travisbrady]
rjsimmon has quit [Ping timeout: 265 seconds]
<flux> ..which would be the more proper numbers?
rjsimmon has joined #ocaml
rjsimmon has left #ocaml []
ygrek has joined #ocaml
Amorphous has quit [Ping timeout: 248 seconds]
Yoric has joined #ocaml
<thelema> Yoric: you were in SF just recently?
<Yoric> Hi
<Yoric> No, not me.
<Yoric> Henri Binsztok, our founder.
<Yoric> But I'll be in Stockholm next week :)
<thelema> ah. too bad. I'm in the SF Bay ares for the next while
<thelema> I won't be anywhere Stockholm next week
ttamttam has joined #ocaml
Amorphous has joined #ocaml
ftrvxmtrx has quit [Ping timeout: 260 seconds]
<flux> so when are you guys going to visit Finland?
<flux> <crickets>
<Yoric> :)
<Yoric> gottago
Yoric has quit [Quit: Yoric]
ygrek has quit [Ping timeout: 245 seconds]
ftrvxmtrx has joined #ocaml
hyperboreean has joined #ocaml
hyperboreean has quit [Client Quit]
hyperboreean has joined #ocaml
hyperboreean has quit [Changing host]
hyperboreean has joined #ocaml
hyperboreean has quit [Client Quit]
hyperboreean has joined #ocaml
ygrek has joined #ocaml
walrus__ has quit [Quit: Ex-Chat]
oriba has joined #ocaml
sepp2k has joined #ocaml
ygrek has quit [Ping timeout: 245 seconds]
barismetin has joined #ocaml
_unK has joined #ocaml
filp has joined #ocaml
oriba has quit [Quit: Verlassend]
ikaros has joined #ocaml
sepp2k has quit [Quit: Leaving.]
thomasga has quit [Quit: Leaving.]
Yoric has joined #ocaml
_unK has quit [Remote host closed the connection]
derdon has joined #ocaml
_andre has joined #ocaml
ygrek has joined #ocaml
fschwidom has joined #ocaml
thrasibule has joined #ocaml
Pepe__ has joined #ocaml
Pepe__ has quit [Remote host closed the connection]
thrasibule has quit [Ping timeout: 264 seconds]
ygrek has quit [Ping timeout: 245 seconds]
Edward__ has joined #ocaml
metasyntax has quit [Ping timeout: 265 seconds]
fraggle_ has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
fraggle_ has joined #ocaml
<mfp> can anybody update the topic to add the OCaml 3.12.0+beta1 ANN?
Bazarov has joined #ocaml
metasyntax has joined #ocaml
metasyntax has quit [Client Quit]
Bazarov has quit [Ping timeout: 245 seconds]
ccasin has joined #ocaml
fraggle_laptop has quit [Quit: Quitte]
gildor changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | OCaml 3.12.0+beta1 http://permalink.gmane.org/gmane.comp.lang.caml.inria/49168
<palomer> 3.12 is looking HOT
fraggle_laptop has joined #ocaml
<flux> - Map: implement functions from Set that make sense for Map.
<flux> I wonder if batteries helped make the case?-)
<palomer> PR#5008: on AMD64/MSVC port, rare float corruption during GC. <--this one is scary
_unK has joined #ocaml
<gildor> palomer: all bugs are scary
Yoric has quit [Quit: Yoric]
<palomer> - PR#4683: labltk script uses fixed path on windows <-- less scary
ttamttam has quit [Read error: Connection reset by peer]
joewilliams_away is now known as joewilliams
<flux> gildor, no. corruption bugs are more scary, silent corruption bugs the most scary (?)
fraggle_laptop has quit [Remote host closed the connection]
<flux> unless you convince me otherwise :)
<flux> do you mean to say that that's not a scary bug?
<gildor> flux: people live with bugs -- at every level, the whole point is that it is important to correct them
<flux> I'm pretty sure Intel felt pretty scared at the time
<flux> fortunately they could patch it up
<flux> or work around it
<gildor> indeed, and we have spotted it in OCaml and provide a patch now
fraggle_laptop has joined #ocaml
<gildor> the bug that are really scary are the one still undiscovered or sitting still in the OCaml BTS
<flux> the scariness of such depends on the overall robustness of the product
<flux> ocaml I guess has a pretty decent track record, so I'm not that scared about unknown bugs
<flux> if such bugs were uncovered on weekly basis, I'd be much more scared about them
<flux> (about the uncovered bugs)
<mfp> hmmm I can't see this in the changelog, anybody remembers something like module type of <module expression> ?
<mfp> don't remember where I saw that
ttamttam has joined #ocaml
<f[x]> mfp, on mailing list I believe
<mfp> "3. Will the "module type of..." feature of 3.12 help with this? I can imagine e.g.: module type EdgeX = (module type of (ConvenientEdge (SmallX)))"
<orbitz> The first thign i thought of with first lcass modules is explicit typeclasses. Is that the primary use case?
munga has joined #ocaml
mbishop__ has joined #ocaml
mbishop_ has quit [Ping timeout: 276 seconds]
Yoric has joined #ocaml
robthebob has quit [Ping timeout: 248 seconds]
mbishop_ has joined #ocaml
mbishop__ has quit [Ping timeout: 248 seconds]
filp has quit [Quit: Bye]
ttamttam has quit [Quit: Leaving.]
oriba has joined #ocaml
travisbrady has joined #ocaml
munga has quit [Quit: Ex-Chat]
ftrvxmtrx has quit [Quit: Leaving]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Read error: Operation timed out]
pad has joined #ocaml
Edward__ has quit [Ping timeout: 276 seconds]
ygrek has joined #ocaml
avsm has joined #ocaml
ftrvxmtrx has joined #ocaml
barismetin has quit [Quit: Leaving...]
gabriel_1 has joined #ocaml
gabriel_1 has quit [Client Quit]
hto has joined #ocaml
derdon has quit [Quit: Lost terminal]
mbishop__ has joined #ocaml
mbishop_ has quit [Ping timeout: 245 seconds]
mbishop_ has joined #ocaml
mbishop__ has quit [Ping timeout: 245 seconds]
fabjan has quit [Read error: Connection reset by peer]
_unK has quit [Remote host closed the connection]
ttamttam has joined #ocaml
Edward__ has joined #ocaml
boscop_ has left #ocaml []
boscop has joined #ocaml
mbishop__ has joined #ocaml
mbishop_ has quit [Ping timeout: 276 seconds]
hto has quit [Quit: leaving]
Yoric has quit [Ping timeout: 264 seconds]
sepp2k has joined #ocaml
avsm has quit [Quit: Leaving.]
ttamttam has quit [Quit: Leaving.]
Yoric has joined #ocaml
murph has joined #ocaml
<murph> if i have two pairs of ints, and i want to add them directly, what's the easiest way (pref w/o library functions). Somethin like (1,2) + (4,5) = (5,7)
Yoric has quit [Ping timeout: 260 seconds]
<sgnb> murph: let f (a,b) (c,d) = (a+c,b+d)
<sgnb> there is no simpler way AFAIK
coucou747 has quit [Read error: Connection reset by peer]
<murph> mmkay. thanks :)
<murph> that's what i'd come up with, but i wasn't sure if there was some form of implicit syntax i could use
Paczesiowa has joined #ocaml
<theDroggl> <- ocaml newb, is there operator overloading in ocaml?
<theDroggl> i.e. could one define an operator for that task?
<theDroggl> ie something like (1,2) <+> (4,5)
<Paczesiowa> I don't think so, otherwise there wouldn't be (+.) operator
<Paczesiowa> I'm trying to install batteries and I get this: "ocamldep: unknown option `-package', I have ocaml 3.11.2 on gentoo, any ideas how to fix it?
<murph> no there isn't any overloading
<orbitz> your question si soemwhat confusing theDroggl
<murph> actually
<murph> i think you can define *new* operators
<orbitz> theDroggl: Ocaml allows you to use symbols as functions
<theDroggl> oh nice
<orbitz> operators and functisona re much closer in Ocaml than in C++/Java
<orbitz> # let (<+>) x1 x2 = x1 + x2;;
<orbitz> val ( <+> ) : int -> int -> int = <fun>
<orbitz> # 1 <+> 2;;
<orbitz> - : int = 3
<theDroggl> but there is no overloading as there are no polymorphic function calls, right?
<orbitz> there are parametric polymorphic functions
<orbitz> polymorphism is not teh same as overloading
<murph> If i write a function that I think is tail recursive, is there a way to get the interpreter to tell me if it is, indeeed, tail-recursive for sure?
<gildor> # let ( <+> ) (a1,b1) (a2,b2) = (a1 + a2, b1 + b2);;
<gildor> val ( <+> ) : int * int -> int * int -> int * int = <fun>
<gildor> # (1,1) <+> (2,3);;
<gildor> - : int * int = (3, 4)
<orbitz> murph: How would you not know if it is tail recursive?
coucou747 has joined #ocaml
<gildor> theDroggl: ^^^^^
<theDroggl> thats nice, I always found that differenciation arbitrary (some languages allow multiple dispatch on operators but not on functions for example, which is just not logical)
<murph> orbitz, since i'm a bit of a newb, perhaps i have some order-of-operations mistake that requires calculation after the recusive call
<orbitz> murph: then it is not tail recursive
<murph> orbitz, right. But the whole point is i'm not sure >.>
<orbitz> murph: tail reccursive == ther ecursive call is teh *last* call in teh functino
<orbitz> murph: it's a fairly simple test
<murph> orbitz, right. and i think i'm correct. i just was wondering if there was some way to be positive. double check myself.
ygrek has quit [Ping timeout: 245 seconds]
<orbitz> murph: have mor confidence in yourself
<murph> i'm new to functional programming. the confidence would be misplaced. perhaps in a week after i've written a number of tail recursive functions and convinced myself that they were correct.
coucou747 has quit [Read error: Connection reset by peer]
<murph> i guess it's not a big deal.
<orbitz> murph: def foo(x): foo(x + 1); return x + 2
<orbitz> murph: is that tail recursive?
<murph> no
<orbitz> (tail recursion is not limited to functional programming. gcc an do TCO in C/C++ programs)
<gildor> orbitz: concerning tail recursive, I think the right definition is that at any point of the recursion you don't need data from the previous level
<orbitz> gildor: fair enough
<travisbrady> Paczesiowa: -package is an ocamlfind option, do you have findlib installed?
<gildor> i.e. you can convert your function to a loop without a stack
coucou747 has joined #ocaml
_andre has quit [Quit: leaving]
<Paczesiowa> travisbrady: ocamlfind ocamldep -package num fails this way
<orbitz> thelema: at some point we should discuss specifics on this labels utility we talked about last month so I can get crackin at it
_unK has joined #ocaml
ccasin has quit [Quit: Leaving]
coucou747 has quit [Read error: Operation timed out]
coucou747 has joined #ocaml
<travisbrady> Paczesiowa: do you have findlib installed?
<Paczesiowa> travisbrady: yes
<Paczesiowa> travisbrady: otherwise, ocamlfind binary wouldn't work
ulfdoz_ has quit [Quit: Reconnecting]
ulfdoz has joined #ocaml
ulfdoz has quit [Ping timeout: 265 seconds]
gl has joined #ocaml
mal`` has quit [Quit: Coyote finally caught me]
mal`` has joined #ocaml
sepp2k has quit [Quit: Leaving.]
robthebob has joined #ocaml
<robthebob> hey, anyone used the calendar package? having some trouble getting started with it
Yoric has joined #ocaml
<robthebob> if i compile using -package calendar, i still get Error: Unbound module Calendar on the open statement
emias has quit [Ping timeout: 276 seconds]
<robthebob> riiight, it's called CalendarLib
<robthebob> ocaml has serious documentation issues
<robthebob> camlp4 is just the tip of the iceberg
avsm has joined #ocaml
<murph> i'm bad with the anonymous 'fun' notation. I want a function that takes a function and an argument, and applies them. I tried (fun f arg -> f arg) - is that close/right?
<palomer> yeah,
<murph> oh, i had a different mistake. thanks.
oriba has quit [Quit: Verlassend]
Yoric has quit [Quit: Yoric]
Paczesiowa has quit [Read error: Connection reset by peer]
<palomer> np
valross has joined #ocaml
<mfp> robthebob: the .mli files are usually helpful, and you can know which modules are exported by the lib by looking for the .cmi files
sshc has quit [Quit: leaving]
<mfp> robthebob: e.g. ls -l /usr/lib/ocaml/calendar/*.cmi -> /usr/lib/ocaml/calendar/calendarLib.cmi
<mfp> once you know the toplevel modules, you can explore in the hmm ocaml toplevel, or take a look at the .mli files
avsm has quit [Quit: Leaving.]
<robthebob> mfp, thanks for the suggestions - i'll remember for next time
robthebob has quit [Remote host closed the connection]
Edward__ has quit []
avsm has joined #ocaml
ikaros has quit [Quit: Leave the magic to Houdini]
bacam has quit [Ping timeout: 276 seconds]
seanmcl has joined #ocaml
boscop has quit [Ping timeout: 264 seconds]
mbishop__ has quit [Ping timeout: 240 seconds]
boscop has joined #ocaml
iratsu has quit [Ping timeout: 260 seconds]
iratsu has joined #ocaml
bacam has joined #ocaml
mbishop__ has joined #ocaml
Edward__ has joined #ocaml
avsm has quit [Quit: Leaving.]
_JFT_ has joined #ocaml
Associat0r has joined #ocaml