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
wagle has quit [Remote host closed the connection]
ulfdoz_ has joined #ocaml
ulfdoz has quit [Ping timeout: 245 seconds]
ulfdoz_ is now known as ulfdoz
oriba_ has joined #ocaml
oriba has quit [Ping timeout: 272 seconds]
wagle has joined #ocaml
oriba_ is now known as oriba
iago has quit [Quit: Leaving]
tbrady_ has quit [Quit: tbrady_]
rgrinberg has quit [Read error: Connection timed out]
rgrinberg has joined #ocaml
oriba has quit [Quit: oriba]
wagle has quit [Remote host closed the connection]
wagle has joined #ocaml
Sablier has quit [Read error: Connection reset by peer]
richinseattle has joined #ocaml
<richinseattle> what is considered to be the most functional IDE for ocaml? ocaide, cameleon2, camilia, ?
<_habnabit> emacs
tbrady has joined #ocaml
<gildor_> thelema, hcarty: oasis-db 0.1.0~alpha3 is out
<gildor_> and live
tac-tics[home] has joined #ocaml
struktured has quit [Ping timeout: 240 seconds]
ftrvxmtrx has quit [Ping timeout: 272 seconds]
destrius has joined #ocaml
struktured has joined #ocaml
<rgrinberg> anybody uses vim marker folds to edit ocaml? how do you make it so that vim uses the correct comment marker when you create a fold? for example: /*{{{*/ should be (*{{{*)?
jknick has quit [Ping timeout: 240 seconds]
jknick has joined #ocaml
richinseattle has left #ocaml []
tbrady has quit [Quit: tbrady]
sepp2k has joined #ocaml
ftrvxmtrx has joined #ocaml
Tobu has quit [Read error: Connection reset by peer]
Tobu has joined #ocaml
Tobu has quit [Quit: No Ping reply in 180 seconds.]
Tobu has joined #ocaml
Tobu has quit [Ping timeout: 248 seconds]
Progster has joined #ocaml
Tobu has joined #ocaml
pango is now known as pangoafk
Xizor has joined #ocaml
ankit9 has joined #ocaml
milosn has quit [Ping timeout: 264 seconds]
<rgrinberg> is it possible to run an ocaml repl ignoring ~/..ocamlinit?
djcoin has joined #ocaml
<rgrinberg> nvm found a way
Xizor has quit [Ping timeout: 260 seconds]
Sablier has joined #ocaml
edwin has joined #ocaml
edwin1 has joined #ocaml
edwin1 has quit [Client Quit]
carm has joined #ocaml
ousado_ has joined #ocaml
struktured has quit [Write error: Broken pipe]
ousado has quit [Write error: Broken pipe]
ousado_ is now known as ousado
ousado has quit [Changing host]
ousado has joined #ocaml
cago has joined #ocaml
mika1 has joined #ocaml
nimred_ has joined #ocaml
maufred_ has joined #ocaml
orbitz_ has joined #ocaml
Asmadeus_ has joined #ocaml
testcoco` has joined #ocaml
mika1 has quit [*.net *.split]
nimred has quit [*.net *.split]
bobry has quit [*.net *.split]
Drakken has quit [*.net *.split]
testcocoon has quit [*.net *.split]
rwmjones has quit [*.net *.split]
Asmadeus has quit [*.net *.split]
maufred has quit [*.net *.split]
orbitz has quit [*.net *.split]
orbitz_ has quit [Quit: Reconnecting]
orbitz has joined #ocaml
tmaedaZ has quit [Ping timeout: 248 seconds]
tmaedaZ has joined #ocaml
silver has joined #ocaml
Yoric has joined #ocaml
avsm has joined #ocaml
milosn has joined #ocaml
thomasga has joined #ocaml
Progster has quit [Ping timeout: 272 seconds]
Drakken has joined #ocaml
rwmjones has joined #ocaml
bobry has joined #ocaml
mika1 has joined #ocaml
\rs has left #ocaml []
beckerb has joined #ocaml
ski has quit [Ping timeout: 272 seconds]
ski has joined #ocaml
Kakadu has joined #ocaml
pr has quit [Ping timeout: 245 seconds]
pr has joined #ocaml
thomasga1 has joined #ocaml
thomasga1 has quit [Read error: Connection reset by peer]
ski has quit [Ping timeout: 245 seconds]
thomasga has quit [Remote host closed the connection]
thomasga has joined #ocaml
avsm has quit [Quit: Leaving.]
ski has joined #ocaml
ski has quit [Ping timeout: 264 seconds]
ski has joined #ocaml
emmanuelux has joined #ocaml
maufred_ has quit [Ping timeout: 240 seconds]
maufred__ has quit [Ping timeout: 245 seconds]
maufred has joined #ocaml
maufred_ has joined #ocaml
Hussaind has joined #ocaml
Hussaind has left #ocaml []
maufred__ has joined #ocaml
maufred_1 has joined #ocaml
ski has quit [Read error: Operation timed out]
maufred_ has quit [Ping timeout: 265 seconds]
maufred has quit [Ping timeout: 248 seconds]
tac-tics[home] has quit [Read error: Connection reset by peer]
destrius has quit [Quit: Leaving.]
ski has joined #ocaml
avsm has joined #ocaml
avsm1 has joined #ocaml
avsm has quit [Ping timeout: 240 seconds]
Hussaind has joined #ocaml
Hussaind has left #ocaml []
Ptival has quit [Quit: leaving]
Ptival has joined #ocaml
beckerb has quit [Remote host closed the connection]
beckerb has joined #ocaml
Asmadeus_ is now known as Asmadeus
ski has quit [Read error: Operation timed out]
ski has joined #ocaml
Progster has joined #ocaml
ankit9 has quit [Ping timeout: 260 seconds]
<gildor_> thelema: what is the status of the print-depends stuff ?
Snark has joined #ocaml
ankit9 has joined #ocaml
ousado has quit [Read error: Operation timed out]
ankit9 has quit [Ping timeout: 272 seconds]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
ousado has joined #ocaml
ousado has quit [Changing host]
ousado has joined #ocaml
<thelema> gildor_: ? print depends in what?
edwin has left #ocaml []
<thelema> oh, in odb. just one package at a time, no recursive
<thelema> odb --info foo
emmanuelux has quit [Quit: @+]
ousado has quit [Read error: Operation timed out]
oriba has joined #ocaml
lewis1711 has joined #ocaml
lewis1711 has quit [Ping timeout: 250 seconds]
ousado has joined #ocaml
smondet has joined #ocaml
oriba has quit [Quit: oriba]
tbrady has joined #ocaml
tbrady has quit [Client Quit]
ousado has quit [Changing host]
ousado has joined #ocaml
avsm1 has quit [Quit: Leaving.]
xlq has joined #ocaml
<xlq> I don't know whether I'm just looking in the wrong place, but I can't find the environment variable the OCaml compiler uses to search for libraries.
<adrien> well, first, it doesn't use any env var
<adrien> but if you want env vars, see the bottom of the manpage for ocamlrun
<gasche> xlq, more precisely, the path to the stdlib is hardcoded in the compiler executables (it is decide at the ./configure step when you compile the compiler), and the rest is provided through the -I option
<gasche> hm
<gasche> correct: OCAMLLIB and CAMLLIB are used in priority to the hardcoded place, if they exists
<gasche> *correction
<gasche> (as the man page pointed by adrien says; but it's not just for ocamlrun)
<xlq> OK, thanks.
<adrien> but generally speaking, you should use and rely on ocamlfind/findlib to handlle libraries
<gasche> indeed
Progster has quit [Ping timeout: 265 seconds]
xlq has quit [Quit: leaving]
thomasga has quit [Ping timeout: 244 seconds]
tac-tics has joined #ocaml
<Kakadu> http://paste.in.ua/4441/raw/ I send something to server by it doesn't receives it. What command I've forgotten?
ftrvxmtrx has quit [Quit: Leaving]
thomasga has joined #ocaml
thomasga1 has joined #ocaml
thomasga has quit [Read error: Connection reset by peer]
<gasche> Kakadu, how do you know the server did not receive it?
<smondet> Kakadu: Yes 'what' is the server?
<Kakadu> gasche: I have sample C++ client and server has sources too. I can test what server should write for this input
<adrien> wireshark and strace!
<adrien> brute-force, it works :P
<Kakadu> server says that client is connected but didn't parse any data. https://github.com/bakwc/SeaCraft/blob/master/server/MainServer.cpp#L152
<thelema> Kakadu: flush?
Submarine has quit [Ping timeout: 272 seconds]
<gasche> ah
<Kakadu> thelema: as you see flush doesn't help
<gasche> there may be a confusion between Pervasives flush and Printf formatting
avsm has joined #ocaml
<gasche> hm
<gasche> no, it's Format that has distinct buffering, iirc.
<adrien> strace, wireshark!
<gasche> indeed; my guess would be that it is sent, but your server doesn't process it
<gasche> and I would rather use fprintf "foo\n%!" (newline and flush), without the later flush
milosn has quit [Read error: Operation timed out]
Submarine has joined #ocaml
tbrady has joined #ocaml
<smondet> Kakadu: Doesn't your server expect "mbclient" instead of "mbserver"?
<smondet> (the regex L184)
<gasche> reading C++ server sources, that's dedication
<Kakadu> smondet: It have helped but I don't understand why C++ client sends mserver and it's OK
milosn has joined #ocaml
Sablier has quit [Quit: Kat]
<smondet> BTW "In_channel.input_all sin |> print_endline" if the server does not close the connection, I think this won't print anything (blocking call)
cago has quit [Quit: Leaving.]
<Kakadu> smondet: Yep, I expect this behavior
mika1 has quit [Quit: Leaving.]
<Kakadu> And if I want to read some data from channel I should use something like
<Kakadu> val input : Core.In_channel.t -> buf:string -> pos:int -> len:int -> int
<Kakadu> ?
dwmw2_gone has quit [Ping timeout: 248 seconds]
<orbitz> If that function does what you want it to do, then yes, I would say so
<Kakadu> the problem is that this function doesn't has doc And I can't find implementation
dwmw2_gone has joined #ocaml
<orbitz> what is doc?
<Kakadu> orbitz: documentation in ocamlbrowser
<smondet> In_channel.input is Pervasives.input: http://caml.inria.fr/pub/docs/manual-ocaml/libref/Pervasives.html
dwmw2_gone has quit [Ping timeout: 240 seconds]
<orbitz> Any good HTTP clients for Ocaml? SSL support and all that jazz?
slash^ has joined #ocaml
Submarine has quit [Ping timeout: 246 seconds]
milosn has quit [Ping timeout: 265 seconds]
dwmw2_gone has joined #ocaml
silver has quit [Read error: Connection reset by peer]
<adrien> orbitz: ocamlnet
<orbitz> Swell
<adrien> I think there's also some "ocaml(-)ssl"
<orbitz> sounnd scarry
thomasga1 has quit [Quit: Leaving.]
dwmw2_gone has quit [Ping timeout: 248 seconds]
dwmw2_gone has joined #ocaml
Yoric has quit [Ping timeout: 255 seconds]
<smondet> orbitz: There is also one in ocsigenserver's lib: http://ocsigen.org/ocsigenserver/api/Ocsigen_http_client (it depends on ocamlnet too, but has a pretty API…)
<orbitz> Nice, maybe I'll rip it off
<orbitz> Thanks
<orbitz> Going to try to implement in Async
Submarine has joined #ocaml
Submarine has quit [Read error: Connection reset by peer]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
hongboz` has joined #ocaml
<avsm> orbitz: avsml/ocaml-cohttp has a client module that does ssl using Lwt. see https://github.com/avsm/ocaml-github for an example
Submarine has quit [Ping timeout: 252 seconds]
pangoafk is now known as pango
milosn has joined #ocaml
Snark has quit [Quit: Quitte]
<orbitz> Cool thank you
djcoin has quit [Quit: WeeChat 0.3.2]
thomasga has joined #ocaml
Sablier has joined #ocaml
beckerb has quit [Quit: Konversation terminated!]
malc_ has joined #ocaml
Xizor has joined #ocaml
malc_ has quit [Quit: leaving]
avsm has quit [Quit: Leaving.]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
Yoric has joined #ocaml
Yoric has quit [Ping timeout: 265 seconds]
Yoric has joined #ocaml
sepp2k has quit [Ping timeout: 260 seconds]
Yoric has quit [Ping timeout: 265 seconds]
Hussaind has joined #ocaml
Hussaind has quit [Client Quit]
tbrady is now known as chad
Kakadu has quit [Read error: Connection reset by peer]
BiDOrD_ has joined #ocaml
Kakadu has joined #ocaml
BiDOrD has quit [Ping timeout: 248 seconds]
tufisi has quit [Ping timeout: 265 seconds]
tufisi has joined #ocaml
tufisi has quit [Changing host]
tufisi has joined #ocaml
carm has quit [Ping timeout: 264 seconds]
Progster has joined #ocaml
Yoric has joined #ocaml
rgrinberg has quit [Ping timeout: 246 seconds]
<orbitz> does an inner module have access to unexported things from its parent module?
<adrien> "exported", through .mli filrs?
<adrien> files?
<adrien> quite obviously, yes
<adrien> as for the signature, afaiu, it happens at a later stage
Yoric has quit [Ping timeout: 264 seconds]
<zorun> "as far as I'm you"?
<adrien> as far as I understand
<zorun> ah, right
<adrien> left
thomasga has quit [Quit: Leaving.]
Kakadu has left #ocaml []
Yoric has joined #ocaml
netrino has joined #ocaml
Yoric has quit [Remote host closed the connection]
Yoric has joined #ocaml
Xizor has quit [Ping timeout: 260 seconds]
Yoric has quit [Ping timeout: 272 seconds]
Cyanure has joined #ocaml
Yoric has joined #ocaml
Yoric has quit [Ping timeout: 272 seconds]
osa1 has joined #ocaml
hongboz has quit [Remote host closed the connection]
<dsheets> Is it possible to use a type parameter in a polymorphic variant? Like "type 'a glom = [ 'a | `Glom of (string * 'a glom) list ] ?
<dsheets> I get an error right now with this syntax. Is something similar achievable? Or should I use some other part of the type system?
<orbitz> sure
<orbitz> dsheets: the 'a is wrong clealry
<dsheets> orbitz: i want 'a glom to be a generic type constructor that extends the 'a with a new variant case
<dsheets> like type foo = [ #subtype | #subtype2 | `Foo ]
<orbitz> that won't be possible
<orbitz> AFAIK
<dsheets> :-( so the [ a | b | c | `D ] polyvar syntax only accepts concrete type refs and constructor decls?
<orbitz> I would think so
<gildor_> thelema: someone has the project to add a print-depends to setup.ml/oasis for odb
<gildor_> thelema: don't remember his nickname
<gildor_> thelema: something starting with w...
slash^ has quit [Quit: Lost terminal]
hongboz` has quit [Remote host closed the connection]
Yoric has joined #ocaml
Cyanure has quit [Quit: Quitte]
<dsheets> recursive type constructor invocation + polyvar union works: type tree = [ tree branch | leaf ]
Qrntz__ has joined #ocaml
Qrntz has quit [Ping timeout: 246 seconds]
Qrntz__ is now known as Qrntz
Sablier has quit [Quit: Kat]
Submarine has quit [Quit: Leaving]
smondet has quit [Quit: tiuQ]
Yoric has quit [Ping timeout: 265 seconds]
alex-hu has quit [Read error: Connection reset by peer]
chris_st has joined #ocaml
<chris_st> Hello -- Curious what books people recommend for someone wanting to learn OCaml.
<rwmjones> chris_st: http://mirror.ocamlcore.org/ocaml-tutorial.org/ or the jason hickey book
<chris_st> rwmjones: Thanks! I have the Hickey book, but it seems out of date in some areas.
<chad> chris_st: if I might, I wouldn't bother learning objects right away. Lots of OOP people think they need them at first, but I don't think you do, at least not immediately.
<chris_st> chad: thanks for the tip.
<chad> But I'd certainly defer to rwmjones on that and anything else ocaml related.
<thelema> I concur on the OOP comment
<chad> has anyone given Felix (http://www.felix-lang.org/) a look? Obvious ocaml influence but incorporates some Haskell-ness and other stuff as well.
<Qrntz> chad, I did. it seems like a very interesting project indeed, but, unfortunately, pretty dead.
tac-tics is now known as tic-tacs
<bitbckt> Qrntz: that isn't entirely true. the github project sees commit activity fairly regularly.
emmanuelux has joined #ocaml
gildor_ has left #ocaml []
gildor has joined #ocaml
chris_st has quit [Quit: chris_st]
fayden has left #ocaml []
avsm has joined #ocaml
avsm has quit [Ping timeout: 248 seconds]