<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]
<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.
<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]
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]
<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