adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.02.3 announced http://ocaml.org/releases/4.02.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
malina has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
<Algebr`> also why can't lambda have (fun ~foo ~bar)
<Algebr`> lambdas
<Algebr`> instead actually have to type them out, (fun ~foo:something ~bar:other)
Guest31154 is now known as kandu
tennix has quit [Ping timeout: 264 seconds]
misterme_ has quit [Remote host closed the connection]
Major_Biscuit has quit [Quit: WeeChat 1.4]
chzyhndx has quit [Ping timeout: 244 seconds]
hxegon has joined #ocaml
ygrek has quit [Ping timeout: 276 seconds]
chzyhndx has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
<copy`> (fun ~x -> x);;
<copy`> - : x:'a -> 'a = <fun>
<Algebr`> odd, trying this with open MoreLabels + hashtables and getting odd errors until I give the full labels
Jane-PC has joined #ocaml
johnelse_ is now known as johnelse
<Algebr`> No upsert in stdlib hashtable =/
ril has joined #ocaml
Ch0c0late has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon is now known as hxegon_AFK
NJBS has joined #ocaml
<NJBS> Anyone got any tips for getting opam on Windows?
hxegon_AFK is now known as hxegon
ygrek has joined #ocaml
mj12`_ has joined #ocaml
mj12` has quit [Ping timeout: 276 seconds]
Jane-PC has quit [Quit: Leaving]
<copy`> Algebr`: Coming in 4.03
<Algebr`> nice, finally
<copy`> Assuming you're looking for this: `val filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unit`
<copy`> Otherwise sorry for getting your hopes up :P
hcarty1 has joined #ocaml
shinnya has quit [Ping timeout: 276 seconds]
NJBS has quit [Quit: Catastrophic failure.]
darkf_ has joined #ocaml
darkf has quit [Ping timeout: 276 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
yegods has quit [Remote host closed the connection]
ril has joined #ocaml
ril has quit [Client Quit]
hxegon has quit [Quit: BRB]
teknozulu has joined #ocaml
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
darkf_ is now known as darkf
chzyhndx has quit [Quit: leaving]
hcarty1 has quit [Ping timeout: 276 seconds]
teknozulu_ has joined #ocaml
teknozulu has quit [Ping timeout: 264 seconds]
nicholasf has quit [Ping timeout: 244 seconds]
nicholasf has joined #ocaml
snhmib has quit [Ping timeout: 260 seconds]
tennix has joined #ocaml
Algebr has joined #ocaml
sh0t has joined #ocaml
tennix has quit [Ping timeout: 260 seconds]
johnelse has quit [Ping timeout: 260 seconds]
johnelse has joined #ocaml
hxegon has joined #ocaml
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 276 seconds]
sh0t has quit [Ping timeout: 260 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
pierpa has quit [Ping timeout: 276 seconds]
jgjl has joined #ocaml
johnelse has quit [Ping timeout: 276 seconds]
johnelse has joined #ocaml
avarsh has joined #ocaml
jgjl has quit [Ping timeout: 260 seconds]
malina has quit [Remote host closed the connection]
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
Algebr has left #ocaml ["ERC (IRC client for Emacs 25.1.50.1)"]
d0nn1e has quit [Ping timeout: 260 seconds]
mistermetaphor has joined #ocaml
d0nn1e has joined #ocaml
slash^ has joined #ocaml
Algebr has joined #ocaml
hxegon is now known as hxegon_AFK
hxegon_AFK is now known as hxegon
<Algebr> do I have to do external id : a -> a = "%identity" to be able to use %identity?
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
mistermetaphor has quit [Ping timeout: 276 seconds]
zpe has joined #ocaml
seangrove has joined #ocaml
zpe has quit [Ping timeout: 260 seconds]
seangrove has quit [Ping timeout: 244 seconds]
hxegon has quit [Quit: BRB]
FreeBirdLjj has joined #ocaml
Reshi has joined #ocaml
<Algebr> seems to be the case.
avarsh has quit [Quit: Leaving]
leyyin has joined #ocaml
MercurialAlchemi has joined #ocaml
mysiticity has joined #ocaml
d0nn1e has quit [Ping timeout: 264 seconds]
MercurialAlchemi has quit [Ping timeout: 264 seconds]
leyyin has quit [Ping timeout: 264 seconds]
Reshi has quit [Ping timeout: 264 seconds]
MercurialAlchemi has joined #ocaml
leyyin has joined #ocaml
d0nn1e has joined #ocaml
toolslive has quit [Ping timeout: 276 seconds]
Stalkr_ has joined #ocaml
A1977494 has joined #ocaml
ril has joined #ocaml
mysiticity has quit [Ping timeout: 276 seconds]
copy` has quit [Quit: Connection closed for inactivity]
Simn has joined #ocaml
silver has joined #ocaml
toolslive has joined #ocaml
mysiticity has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jgjl has joined #ocaml
jgjl has quit [Ping timeout: 260 seconds]
Algebr has quit [Ping timeout: 260 seconds]
Sorella has quit [Quit: Connection closed for inactivity]
FreeBirdLjj has quit [Read error: Connection reset by peer]
Reventlov has quit [Quit: Reconnecting]
Reventlov has joined #ocaml
FreeBirdLjj has joined #ocaml
Reventlov is now known as Guest61001
Algebr has joined #ocaml
tennix has joined #ocaml
tennix has quit [Client Quit]
Algebr has quit [Ping timeout: 276 seconds]
teknozulu_ has quit [Ping timeout: 260 seconds]
A1977494 has quit [Quit: Leaving.]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
ggole has joined #ocaml
jgjl has joined #ocaml
jgjl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlexRussia has joined #ocaml
zpe has joined #ocaml
zpe_ has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
Algebr has joined #ocaml
zpe_ has quit [Ping timeout: 264 seconds]
Algebr has quit [Ping timeout: 244 seconds]
Kakadu has joined #ocaml
kolko has quit [Ping timeout: 260 seconds]
kolko has joined #ocaml
dsheets has joined #ocaml
dsheets has quit [Remote host closed the connection]
dsheets has joined #ocaml
Guest61001 is now known as Reventlov
Reventlov has quit [Changing host]
Reventlov has joined #ocaml
Algebr has joined #ocaml
MercurialAlchemi has joined #ocaml
Algebr has quit [Ping timeout: 260 seconds]
yegods has joined #ocaml
tane has joined #ocaml
ggole has quit [Ping timeout: 244 seconds]
zpe has joined #ocaml
hunteriam has joined #ocaml
seangrove has joined #ocaml
ggole has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
chris2_ is now known as chris2
<Drup> Algebr`: "let f x = x"
<Drup> it's the same, really
octachron has joined #ocaml
FreeBirdLjj has joined #ocaml
Algebr has joined #ocaml
ygrek has quit [Ping timeout: 244 seconds]
Algebr has quit [Ping timeout: 260 seconds]
dsheets_ has joined #ocaml
orbifx has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
yegods_ has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 264 seconds]
yegods has quit [Ping timeout: 264 seconds]
MercurialAlchemi has joined #ocaml
yegods_ has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
mysiticity has quit [Ping timeout: 260 seconds]
yegods has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
tane has quit [Quit: Verlassend]
zpe has quit [Remote host closed the connection]
matason has joined #ocaml
matason has quit [Client Quit]
matason has joined #ocaml
jackweirdy has joined #ocaml
mysiticity has joined #ocaml
Jane-PC has joined #ocaml
Jane-PC has quit [Client Quit]
AlexRussia has quit [Quit: WeeChat 1.4-dev]
dsheets_ has quit [Remote host closed the connection]
nichola__ has joined #ocaml
nicholasf has quit [Read error: Connection reset by peer]
mysiticity has quit [Quit: WeeChat 1.4]
Reshi has joined #ocaml
nicholasf has joined #ocaml
nichola__ has quit [Read error: Connection reset by peer]
nicholasf has quit [Read error: Connection reset by peer]
nicholasf has joined #ocaml
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
Algebr has joined #ocaml
Algebr has quit [Ping timeout: 276 seconds]
seangrove has quit [Ping timeout: 244 seconds]
seangrove has joined #ocaml
shinnya has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
Reshi has quit [Ping timeout: 276 seconds]
Algebr has joined #ocaml
larhat has joined #ocaml
Algebr has quit [Remote host closed the connection]
larhat has quit [Read error: Connection reset by peer]
larhat has joined #ocaml
larhat has quit [Remote host closed the connection]
zpe has joined #ocaml
larhat has joined #ocaml
g4143 has joined #ocaml
AlexRussia has joined #ocaml
zpe has quit [Ping timeout: 244 seconds]
matason has quit [Ping timeout: 260 seconds]
dsheets has joined #ocaml
sh0t has joined #ocaml
g4143 has quit [Quit: Leaving]
g4143 has joined #ocaml
g4143 has quit [Client Quit]
sh0t has quit [Ping timeout: 260 seconds]
natimic has joined #ocaml
Reshi has joined #ocaml
darkf has quit [Quit: Leaving]
dhil has joined #ocaml
Reshi has quit [Ping timeout: 244 seconds]
seangrove has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jackweirdy has joined #ocaml
rgrinberg has joined #ocaml
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
rgrinberg has quit [Quit: WeeChat 1.4]
rgrinberg has joined #ocaml
sh0t has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
hxegon has joined #ocaml
larhat has quit [Quit: Leaving.]
orbifx has quit [Ping timeout: 244 seconds]
<leyyin> is there a way to forward declare functions?
<leyyin> so I have function A and B declared in this order and I want to call B from A
<Drup> short answer: no
larhat has joined #ocaml
<Drup> But you can put the order you which in the .mli
<flux> "you which"?
<leyyin> you want I think
<Drup> wish* :p
rgrinberg has quit [Ping timeout: 260 seconds]
<flux> in other words the declaration order in the mli does not affect the definition order in the ml
nicholasf has quit [Read error: Connection reset by peer]
<flux> (if you can call it a declaration order)
dsheets has quit [Remote host closed the connection]
dsheets has joined #ocaml
zpe has joined #ocaml
<leyyin> thanks
g4143 has joined #ocaml
zpe has quit [Ping timeout: 244 seconds]
hcarty1 has joined #ocaml
g4143 has quit [Quit: Ex-Chat]
lokien_ has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
hcarty1 has quit [Ping timeout: 260 seconds]
seangrove has joined #ocaml
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
hunteriam has quit [Quit: Connection closed for inactivity]
rgrinberg has joined #ocaml
madroach has joined #ocaml
Sim_n has joined #ocaml
Sorella has joined #ocaml
Anarchos has joined #ocaml
Simn has quit [Ping timeout: 264 seconds]
<Kakadu> Folks, I have a stupid error related to implicits. Probably stupid one. https://gist.github.com/Kakadu/fd8535e7fa3d4f2ef80352a552913c0d#file-show_pair-ml-L52
<Kakadu> should be obvious
<Kakadu> but I can't get it
<Kakadu> It seems that functor for Pair is not applied
shinnya has quit [Ping timeout: 276 seconds]
rgrinberg has quit [Read error: Connection reset by peer]
copy` has joined #ocaml
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
A1977494 has joined #ocaml
<octachron> Kakadu, if I am not mistaken, Show_list_impl.show has the wrong type: X.t list -> unit
rgrinberg has quit [Quit: WeeChat 1.4]
tane has joined #ocaml
<Kakadu> Oh, man
<Kakadu> you are great!
jgjl has joined #ocaml
jgjl has quit [Client Quit]
rgrinberg has joined #ocaml
slash_ has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
slash^ has quit [Ping timeout: 260 seconds]
ygrek has joined #ocaml
Kakadu has quit [Quit: Page closed]
jackweirdy has joined #ocaml
g4143 has joined #ocaml
g4143 has quit [Client Quit]
sh0t has quit [Ping timeout: 260 seconds]
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hxegon> Am I tripping or can I not use a ref as ~init with List.fold_left in Core? I come from dynamic typing land so just want to sanity check here.
<Drup> Why not ?
<Drup> It just means your function is going to manipulate a reference
<Drup> it's not very idiomatic
<hxegon> I'm getting a type error: 'expression has type 'a ref but an expression was expected of type 'b list', with this expression:
<dsheets> or deref it just before you pass it
<dsheets> ~init:!myref
orbifx has joined #ocaml
<hxegon> List.fold_left ~init:(ref hd) ~f:(fun low_ref nxt -> if !low_ref > nxt then low_ref := nxt; low_ref) tl;;
<hxegon> I know it's bad, I'm just learning the language and toying around
orbifx has quit [Client Quit]
<hxegon> hd and tl are defined earlier
noddy has joined #ocaml
<hxegon> It's a min function
zpe has joined #ocaml
jackweirdy has joined #ocaml
<adrien> has there been a change wrt the default -I in ocaml 4.03?
<ggole> That's a pretty strange way to use a reference.
<dsheets> hxegon: that works for me...
<adrien> like I now need to pass -I . to ocaml for it to find a file in a subdirectory for which I gave a valid relative path
dsheets has quit [Read error: Connection reset by peer]
<hxegon> ggole I know :P, I'm going through real world ocaml, the part explaining while loops, and wanted to know if this works
<hxegon> dsheets: Are you using Core?
zpe has quit [Ping timeout: 244 seconds]
dsheets has joined #ocaml
Algebr has joined #ocaml
dsheets has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
<hxegon> works in standard, hmm
hcarty1 has joined #ocaml
octachron has quit [Ping timeout: 260 seconds]
dsheets has joined #ocaml
dsheets has quit [Ping timeout: 260 seconds]
lokien_ has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
matason has joined #ocaml
pierpa has joined #ocaml
hxegon is now known as hxegon_AFK
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has quit [Ping timeout: 244 seconds]
noddy has quit [Ping timeout: 260 seconds]
slash_ has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
<Algebr> how do you do a local open in a class again? keep messing up the syntax: class foo = object let open Bar in end
<thizanne> class foo = let open Bar in object, i guess
<Algebr> tried that one too, nope
zpe has quit [Ping timeout: 244 seconds]
TheLemonMan has joined #ocaml
seangrove has joined #ocaml
bba has joined #ocaml
hxegon_AFK has quit [Quit: BRB]
ygrek has quit [Ping timeout: 244 seconds]
Ch0c0late has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
jackweirdy has joined #ocaml
<flux> really?-o
<flux> indeed
<flux> I wonder if that's an oversight
<flux> apparently different 'let' syntax applies in class definitions
<flux> indeed this doesn't list 'let open': http://caml.inria.fr/pub/docs/manual-ocaml/classes.html#sec162
<flux> (neither does class foo = Bar.(object .. end) work)
noddy has joined #ocaml
<flux> I think this is actually worth a mantis issue.. if there already isn't one.
<Algebr> Drup: Can jsoo take an arbitrary OCaml object and turn it into a JS object?
<Drup> No
<Algebr> darn
<Drup> the relation between ocaml objects and js objects stops at typing.
ggole has quit []
<Algebr> bah, I wanted to avoid having to make types
<Drup> You can use the object%js syntax
<Algebr> oh yea, forgot about that
d0nn1e has quit [Ping timeout: 260 seconds]
d0nn1e has joined #ocaml
Kakadu has joined #ocaml
zpe has joined #ocaml
A1977494 has quit [Remote host closed the connection]
nicholasf has joined #ocaml
hcarty1 has quit [Ping timeout: 276 seconds]
<Algebr> I have a record that I want end user to know the fields of but not to be able to make one on their own although I will make one and provide them one, I thought that the private keyword would be good here so tried type foo = private {} but then I couldn't make one of the foo records.
<Drup> you put "private" only in the .mli
<Algebr> oh forgot that detail
<Algebr> wish there was a ppx extension that took record and turned into js obj
Ch0c0late has quit [Remote host closed the connection]
rgrinberg has joined #ocaml
hxegon has joined #ocaml
_whitelogger has joined #ocaml
<hxegon> let min' (hd :: tl) = List.fold_left (fun a b -> if a > b then b; a) hd tl;; have the type unit list -> unit?
seangrove has quit [Ping timeout: 244 seconds]
<Algebr> probably because you put a ;
ygrek has quit [Ping timeout: 276 seconds]
dhil has quit [Ping timeout: 260 seconds]
sh0t has joined #ocaml
* hxegon facepalms
<hxegon> thanks Algebr
seangrove has joined #ocaml
rgrinberg has quit [Quit: WeeChat 1.4]
rgrinberg has joined #ocaml
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
yegods has quit [Remote host closed the connection]
yegods has joined #ocaml
lokien_ has joined #ocaml
jackweirdy has joined #ocaml
Stalkr_ has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
seangrove has joined #ocaml
seangrov` has joined #ocaml
dsheets has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
seangrov` has quit [Ping timeout: 244 seconds]
dsheets has quit [Ping timeout: 264 seconds]
bba has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Algebr> Drup: I'm having a hard time getting jsoo source maps to do anything useful
<Algebr> so I made it but then what am I supposed to do with this .map file?
<Drup> Can't help you, I never really tried
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
noddy has joined #ocaml
leyyin has quit [Quit: So Long, and Thanks for All the Fish]
matason has quit [Ping timeout: 264 seconds]
tane has quit [Quit: Verlassend]
Algebr has quit [Ping timeout: 244 seconds]
rgrinberg has quit [Ping timeout: 276 seconds]
Kakadu has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
darkhors1 has joined #ocaml
jtmcf has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Stalkr_ has joined #ocaml
Stalkr_ has quit [Ping timeout: 264 seconds]
rgrinberg has joined #ocaml
jackweirdy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seangrove has joined #ocaml
groovy2shoes has joined #ocaml
kamog has joined #ocaml
zpe has joined #ocaml
zpe has quit [Ping timeout: 244 seconds]
aantron_ has quit [Remote host closed the connection]
lokien_ has quit [Quit: Connection closed for inactivity]
aantron has joined #ocaml
Algebr has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
seangrove has quit [Ping timeout: 244 seconds]
Nahra has quit [Remote host closed the connection]
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
darkf has joined #ocaml
picolino_ has quit [Ping timeout: 260 seconds]
Algebr has quit [Remote host closed the connection]
Algebr has joined #ocaml
madroach has joined #ocaml
madroach has quit [Read error: Connection reset by peer]
madroach has joined #ocaml
TheVoid has joined #ocaml