adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.02.2 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
jwatzman|work has quit [Quit: jwatzman|work]
igitoor has quit [Ping timeout: 252 seconds]
igitoor has joined #ocaml
rgrinberg has joined #ocaml
BitPuffin|osx has joined #ocaml
igitoor has joined #ocaml
igitoor has quit [Changing host]
nowjs7 has joined #ocaml
MrScout has quit [Remote host closed the connection]
nowjs7 is now known as toto
rgrinberg has quit [Ping timeout: 265 seconds]
MrScout has joined #ocaml
tmtwd has quit [Ping timeout: 265 seconds]
thomasga1 has quit [Quit: Leaving.]
empyrean has joined #ocaml
MrScout has quit [Remote host closed the connection]
pyon is now known as magical-imouto
bjorkintosh has quit [Remote host closed the connection]
struktured has joined #ocaml
MrScout has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
struk|work has quit [Ping timeout: 246 seconds]
toto has quit [Ping timeout: 246 seconds]
MrScout has quit [Remote host closed the connection]
lewis1711 has joined #ocaml
MrScout has joined #ocaml
oscar_toro has quit [Ping timeout: 246 seconds]
oscar_toro has joined #ocaml
iorivur has joined #ocaml
MrScout has quit [Remote host closed the connection]
manizzle has quit [Ping timeout: 264 seconds]
iZsh has quit [Ping timeout: 248 seconds]
manizzle has joined #ocaml
iZsh has joined #ocaml
tmtwd has joined #ocaml
relrod has quit [Ping timeout: 256 seconds]
pyx has joined #ocaml
pyx has quit [Client Quit]
darkf has joined #ocaml
ygrek has quit [Ping timeout: 256 seconds]
bjorkintosh has joined #ocaml
lewis1711 has left #ocaml ["Ex-Chat"]
mcclurmc_ has joined #ocaml
mcclurmc has quit [Ping timeout: 265 seconds]
tmtwd has quit [Read error: Connection reset by peer]
<struktured> arg noooo
<struktured> I used ~doc rather than ~man with like 60 lines of text when invoking Cmdliner.Term.eval
malc_ has joined #ocaml
m4b has quit [Ping timeout: 244 seconds]
iZsh has quit [Quit: ZNC - http://znc.in]
iZsh has joined #ocaml
ollehar has joined #ocaml
MrScout has joined #ocaml
lolisa has joined #ocaml
ggole has joined #ocaml
MrScout has quit [Remote host closed the connection]
slash^ has joined #ocaml
MercurialAlchemi has joined #ocaml
sh0t has joined #ocaml
tnguyen has joined #ocaml
iorivur has quit [Read error: Connection reset by peer]
Simn has joined #ocaml
monod has joined #ocaml
flux has quit [Ping timeout: 246 seconds]
flx has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
flux has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 264 seconds]
flxx has joined #ocaml
pgomes has joined #ocaml
ygrek has quit [Ping timeout: 256 seconds]
psy_ has quit [Quit: Leaving]
iorivur has joined #ocaml
relrod_ has joined #ocaml
relrod_ has joined #ocaml
relrod_ is now known as relrod
lolisa has quit [Quit: meow]
arquebus has joined #ocaml
arquebus has quit [Quit: konversation disconnects]
creichert has quit [Ping timeout: 248 seconds]
iorivur has quit [Ping timeout: 240 seconds]
pgomes has quit [Quit: Leaving]
iorivur has joined #ocaml
Haudegen has quit [Ping timeout: 256 seconds]
malc_ has quit [Ping timeout: 250 seconds]
Haudegen has joined #ocaml
malc_ has joined #ocaml
thomasga has joined #ocaml
iorivur has quit [Ping timeout: 256 seconds]
<flux> so now that we need to change code from { foo [@key "bar"] : string } to { foo : string [@key "bar"] }, is this backwards compatible to 4.01?
<flux> hmm, I mean 4.02.1
<flux> at first stab it seems that no, this second syntax does not work with that
<flux> well, syntax does but the ppx extension for json doesn't
psy_ has joined #ocaml
Hannibal_Smith has joined #ocaml
rand000 has joined #ocaml
malc_ has quit [Ping timeout: 248 seconds]
<Drup> flux: no it's not, just assume 4.02.1 doesn't exist ...
malc_ has joined #ocaml
<def`> Drup: but why this change ?
<def`> It seems to me that attribute apply to type expression there, not to label anymore
<Drup> requested by whitequark, for ease of use of deriving, mostly
<Drup> there is thread on mantis, you can read that, there are rather good reasons
<def`> ok
<tobiasBo1> Hello !
<tobiasBo1> I have a pretty strange "bug" with Lwt and IO
<tobiasBo1> I am trying to speak to a SMTP server with sockets (I use Conduit_lwt_unix_ssl to do the SSL connection)
<tobiasBo1> When I talk to it with something like :
<tobiasBo1> Lwt_main.run (Lwt_io.read_line ic >|= pr "%s\n");
<tobiasBo1> Lwt_main.run (Lwt_io.write_line oc "EHLO localhost");
<tobiasBo1> Everything works fine
<tobiasBo1> But when I use the ">>=" function, I have the error "451 4.5.0 SMTP protocol violation, see RFC 2821 ck18sm17581206wjb.47 - gsmtp
<tobiasBo1> "
<tobiasBo1> Just after the AUTH PLAIN XXXXX
<tobiasBo1> http://paste.ubuntu.com/11860432 (for the full output)
<tobiasBo1> And when I use instead the Lwt_main.run function, I have the output http://paste.ubuntu.com/11860438
<tobiasBo1> Here is the working code : http://paste.ubuntu.com/11860450
rand000 has quit [Quit: leaving]
iorivur has joined #ocaml
iorivur has quit [Ping timeout: 252 seconds]
iorivur has joined #ocaml
<tobiasBo1> I wrote an example that shows the error more precisely :
<tobiasBo1> If I write :
<tobiasBo1> (Lwt_io.write_line oc (sp "AUTH PLAIN %s" b64_pass)) >>= fun () ->
<tobiasBo1> It fails with the protocol violation error
<tobiasBo1> But if I write instead :
<tobiasBo1> Lwt_main.run (Lwt_io.write_line oc (sp "AUTH PLAIN %s" b64_pass));
<tobiasBo1> Everything works find !
<tobiasBo1> If you could explain me that thing I would be happy to hear it...
<tobiasBo1> (Here sp is only Printf.sprintf, and pr is Printf.printf)
ollehar has quit [Ping timeout: 240 seconds]
sh0t has quit [Quit: Leaving]
sh0t has joined #ocaml
<tobiasBo1> Hum...
<tobiasBo1> Do I need to read every input to be able to send back an answer ?
<tobiasBo1> I don't know if it can explain my bug, but when I read all the lines it works.
<tobiasBo1> Does anyone knows a way to read all lines in the Lwt_io input channel ?
<tobiasBo1> Because if I try to read a line when no line left it just wait for a very long time, but I don't know when I have to stop listening. I could put a timeout, but it's quite dirty...
martintrojer has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ollehar has joined #ocaml
lordkryss has joined #ocaml
<tobiasBo1> Hum
Submarine has quit [Quit: Leaving]
sh0t has quit [Quit: Leaving]
malc_ has quit [Quit: leaving]
ananas_ has joined #ocaml
<ananas_> Hello, what's the proper way to handle the Bytes module in a project ? I would like it to work for both ocaml 4.02 and 4.01. I am currently using oasis.
monod has quit [Quit: Sto andando via]
<dsheets> ananas_, use Bytes.t and depend on findlib base-bytes package
<ananas_> Thanks, it works. Just one thing : the opam package is called "base-bytes" but the findlib package is called "bytes".
jun has joined #ocaml
<dsheets> oops, you're right, sorry i forgot
mcclurmc has joined #ocaml
keep_learning has joined #ocaml
<keep_learning> Hello everyone.
struktured has quit [Ping timeout: 248 seconds]
<keep_learning> Could some one please tell how to install ocamlbrowser with 4.02.1
mcclurmc_ has quit [Ping timeout: 256 seconds]
<ollehar> ocamlbrowser? never heard of that. :)
<ollehar> you could post your error message here and wait for someone to reply.
<def`> install labltk?
tmtwd has joined #ocaml
<keep_learning> I am under the impression that it comes with ocaml distribution but it's not installed on my system.
<keep_learning> Only
<ggole> There's a qocamlbrowser in opam
<keep_learning> these programs are installed
<keep_learning> ocaml ocamlc ocamldep ocamldumpobj ocamlmerlin ocamlopt ocamlrun ocamlbuild ocamlc.opt ocamldep.opt ocamlfind ocamlmklib ocamlopt.opt ocamlrund ocamlbuild.byte ocamlcp ocamldoc ocamllex ocamlmktop ocamloptp ocamltags ocamlbuild.native ocamldebug
<ggole> It describes itself as a 'clone', so I would say that the original is not there.
<keep_learning> BTW I am wondering , why it's not installed with 4.02.1 or I missed something. First I installed opam, opam update and used opam switch 4.02.1
<flux> drup, see, 4.02.1 does exist ;)
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
struktured has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
<zozozo> is there a significative difference between the times returned by Sys.time and Unix.times ? (other than Sys returning only one float, which I assume should be the sum of the times returned by Unix.times)
<Drup> flux: transient failure :p
tmtwd has quit [Remote host closed the connection]
<def`> try installing labltk as I said
tmtwd has joined #ocaml
mlamari_ has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
pii4 has quit [Quit: [-.-]...]
dongcarl has joined #ocaml
ananas_ has quit [Remote host closed the connection]
<keep_learning> def`: Thank you
jao has joined #ocaml
keep_learning has quit [Ping timeout: 246 seconds]
BitPuffin|osx has joined #ocaml
cic has quit [Ping timeout: 256 seconds]
cic has joined #ocaml
mcclurmc has joined #ocaml
mcclurmc has quit [Ping timeout: 250 seconds]
struktured has quit [Ping timeout: 248 seconds]
slash^ has quit [Read error: Connection reset by peer]
slash^ has joined #ocaml
Denommus has joined #ocaml
struktured has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
struktured has quit [Ping timeout: 248 seconds]
MrScout has joined #ocaml
MrScout has quit [Read error: Connection reset by peer]
MrScout has joined #ocaml
ygrek has joined #ocaml
iorivur has quit [Quit: No Ping reply in 180 seconds.]
iorivur has joined #ocaml
iorivur has quit [Quit: No Ping reply in 180 seconds.]
iorivur has joined #ocaml
iorivur has quit [Excess Flood]
darkf has quit [Quit: Leaving]
iorivur has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
gpeterson has joined #ocaml
<gpeterson> Is there any way to pattern match on somthing then get that thing?
<gpeterson> like: match x with
<gpeterson> | x = ("asdf" | "asdf2") -> printf "%s" x
mcclurmc has joined #ocaml
<ggole> match expr with ("asdf" | "asdf2") as x -> x
<gpeterson> Perfect :) thank you
<ggole> Careful of the precedence, it can be surprising/annoying. Sometimes you might need a few more parens.
iorivur has quit [Quit: No Ping reply in 180 seconds.]
iorivur has joined #ocaml
gpeterson has quit [Ping timeout: 252 seconds]
gpeterson has joined #ocaml
iorivur has quit [Ping timeout: 252 seconds]
iorivur has joined #ocaml
iorivur has quit [Client Quit]
tmtwd has quit [Ping timeout: 264 seconds]
ollehar has joined #ocaml
obadz has quit [Ping timeout: 244 seconds]
obadz has joined #ocaml
<gpeterson> ggole: Good to know
<gpeterson> Another question Is there a way (using Core) to turn Float.from_str from an exception to a Option?
contempt has quit [Ping timeout: 252 seconds]
contempt has joined #ocaml
MooseAndCaml has quit [Ping timeout: 246 seconds]
<ggole> You can write your own wrapper
<gpeterson> yeah makes sense
lordkryss has quit [Quit: Connection closed for inactivity]
creichert has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
tmtwd has joined #ocaml
empyrean has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
billof has quit [Ping timeout: 255 seconds]
<yminsky> I also think you can use Option.try_with: (fun x -> Float.of_string "abc" x)
<yminsky> (or Or_error.try_with, if you want to capture the exception as an Error.t)
thomasga has quit [Quit: Leaving.]
<gpeterson> Thanks yminsky, I used the first. I loved you talk, "Caml Trading", It's what got me into OCaml :).
<yminsky> Glad to hear it.
obadz has quit [Ping timeout: 264 seconds]
obadz has joined #ocaml
Nahra has quit [Remote host closed the connection]
Nahra has joined #ocaml
<gpeterson> The only thing makes me sad about OCaml is the lack of a really solid web framework. (If I'm wrong I would love to be pointed to the proper place)
mcclurmc has joined #ocaml
thomasga has joined #ocaml
Nahra has quit [Remote host closed the connection]
mcclurmc has quit [Remote host closed the connection]
Haudegen has quit [Ping timeout: 256 seconds]
mcclurmc has joined #ocaml
orbitz has quit [Ping timeout: 244 seconds]
orbitz has joined #ocaml
monod has joined #ocaml
monod has quit [Read error: Connection reset by peer]
obadz- has joined #ocaml
Haudegen has joined #ocaml
obadz has quit [Ping timeout: 246 seconds]
gpeterson has quit [Ping timeout: 246 seconds]
Kakadu has joined #ocaml
Kakadu has quit [Client Quit]
MrScout has quit [Ping timeout: 256 seconds]
BitPuffin|osx has quit [Ping timeout: 255 seconds]
Haudegen has quit [Ping timeout: 244 seconds]
tmtwd has quit [Remote host closed the connection]
Haudegen has joined #ocaml
ggole has quit []
<Drup> :)
gpeterson has joined #ocaml
Submarine has joined #ocaml
Submarine has joined #ocaml
tmtwd has joined #ocaml
Denommus has quit [Quit: going home]
gpeterson has quit [Ping timeout: 246 seconds]
gpeterson has joined #ocaml
dalastboss has joined #ocaml
Submarine has quit [Quit: Leaving]
<def`> Drup: le principal interessé de ton dernier message était déconnecté
<def`> au moment où tu l'as envoyé
<Drup> apparently
<ollehar> oui oui oui, le baguette
<def`> too bad, you should send it again if you really want to answer is question
<def`> non non non, le cul
<rks`> petit journal
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
<ollehar> ah yeah, he's online now
<ollehar> I'll do it
<ollehar> gpeterson: ocsigen
<def`> :)))))
slash^ has quit [Read error: Connection reset by peer]
dalastboss has quit [Quit: Page closed]
mcclurmc has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
gpeterson has quit [Ping timeout: 252 seconds]
MercurialAlchemi has quit [Ping timeout: 246 seconds]
mcclurmc has quit [Remote host closed the connection]
gpeterson has joined #ocaml
<gpeterson> ollehar: I've seen ocsigen before, however it seemed like it wasn't too actively maintained and the docs seemed rather bad. I didn't seem like there
<gpeterson> was any great tutorials
<gpeterson> but I would love to be wrong :)
<Drup> It's maintaned, there are tutorials.
mlrutherford has joined #ocaml
mlrutherford has left #ocaml ["Leaving"]
<gpeterson> Hm... IDK how I didn't see that before
<gpeterson> thanks Drup :).
<gpeterson> I think where I got that idea from eliom's homepage saying the last time it was updated was 2014.
ygrek has quit [Ping timeout: 250 seconds]
mcclurmc has joined #ocaml
jprakash has joined #ocaml
walter|r has joined #ocaml
mcclurmc has quit [Ping timeout: 246 seconds]
ygrek has joined #ocaml
mcclurmc has joined #ocaml
BitPuffin|osx has joined #ocaml
17SAC1X6L has joined #ocaml
nullcat_ has joined #ocaml
17SAC1X6L has quit [Ping timeout: 244 seconds]
gpeterson has quit [Ping timeout: 246 seconds]
yomimono has joined #ocaml
swgillespie has joined #ocaml
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ocaml
swgillespie has quit [Client Quit]
jprakash has quit [Ping timeout: 244 seconds]
obadz- has quit [Ping timeout: 256 seconds]
jao` has joined #ocaml
jao has quit [Disconnected by services]
jao` is now known as jao
jao` has joined #ocaml
jao has quit [Client Quit]
jao` is now known as jao
obadz has joined #ocaml
Simn has quit [Quit: Leaving]
pii4 has joined #ocaml
walter|r has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 250 seconds]
gpeterson has joined #ocaml
Haudegen has quit [Ping timeout: 246 seconds]
larhat1 has joined #ocaml
Haudegen has joined #ocaml
larhat has quit [Ping timeout: 246 seconds]
gpeterson has quit [Ping timeout: 256 seconds]
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
empyrean has joined #ocaml
mcc has joined #ocaml
empyrean has quit [Remote host closed the connection]
nullcat__ has joined #ocaml
nullcat_ has quit [Ping timeout: 256 seconds]