divyansr has quit [Remote host closed the connection]
divyansr has joined #ocaml
ollehar has joined #ocaml
cago has joined #ocaml
ygrek has quit [Ping timeout: 272 seconds]
avsm has quit [Quit: Leaving.]
divyansr has quit [Remote host closed the connection]
cago has left #ocaml []
mika1 has quit [Quit: Leaving.]
dant3 has quit [Remote host closed the connection]
Thooms has quit [Quit: WeeChat 0.3.8]
avsm has joined #ocaml
ulfdoz has quit [Ping timeout: 265 seconds]
pacemkr has joined #ocaml
jbrown has quit [Remote host closed the connection]
<pacemkr>
camlcity.org has been down for a few days it seems
<nlucaroni>
still down? wow. trying to install ocamlfind?
<pacemkr>
yea =(
<nlucaroni>
could you modify the opam url file and find a mirror somewhere?
<pacemkr>
to be more precise, trying to run "opam doc" (just to see how it works) and it insists on fetching ocamlfind for some reason
<pacemkr>
thats what im trying now yea
<nlucaroni>
ahh, well, ocaml doc creates a new local opam repo of the packages you select to generate the docs.
<nlucaroni>
You might be able to copy stuff over and modify the installed file ??
<nlucaroni>
brb, irssi is running through tmux and refreshing the terminal odd.
nlucaroni has quit [Quit: leaving]
<pacemkr>
yea, ive been looking at the source, i was playing around with an idea of a new docs site for ocaml, and noticed that the opam folks have something in progress, decided to take a look
nlucaroni has joined #ocaml
<pacemkr>
sent this message right after you quit, not sure if you can see it: "yea, ive been looking at the source, i was playing around with an idea of a new docs site for ocaml, and noticed that the opam folks have something in progress, decided to take a look"
<flux>
I've never used signaling nans, but if it can raise a Unix signal, then I imagine it could be supported with some ease, as signal handling works..
<flux>
according to my google-fo, it's quite a rare thing :)
<bernardofpc>
well, I've made a stupid mistake on mantis
kyrylo has quit [Quit: Hi, Rob!]
<bernardofpc>
but I'd like to report to the inria people that "hyperbolic cosine. angles in radians" is quite strange, because it is never used with any "angle" meaning
mcclurmc has quit [Read error: Connection reset by peer]
mcclurmc has joined #ocaml
<adrien>
I think the signaling stuff was mentioned not long ago on the caml-list
<bernardofpc>
(or, as far as I know, no other unit besides "real numbers" are used as arguments to the hyperbolic functions, whereas the trig functions always remain ambiguous as to radians vs degrees)
<adrien>
thread "[Caml-list] Turning floating point errors into exceptions"
dant3_ has quit [Remote host closed the connection]
dant3 has joined #ocaml
zpe has joined #ocaml
<bernardofpc>
thansk adrien
<bernardofpc>
I've spent a lot of time searching on the wrong box
<bernardofpc>
and then another time realizing there were 9 pages for december
<bernardofpc>
and then I found the right box, searching, realizing it was just one-monthfull of history
<bernardofpc>
so I've found in August
<adrien>
I was actually expecting you to look up the subject directly in a search engine :P
<Drup>
bernardofpc: yes, sympa's search engine is complete crap
<bernardofpc>
adrien: I used the search engine not to look over 9 pages/month
<bernardofpc>
but I only realized what the screen meant after I was in October
<bernardofpc>
and then I say the "page 9 / 9"
mreca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adrien>
ah, ok :)
<pippijn>
val page : int -> int
<bernardofpc>
oh, thanks: *saw*
<bernardofpc>
(and my brazilian google in safari in MacOS did not find any hit on a ML for the subject with \"\", and nothing interesting without those :/)
<adrien>
strange
<adrien>
although there are policies around which might prevent google from browsing the ML archives
ocp has joined #ocaml
manizzle has quit [Remote host closed the connection]
manizzle has joined #ocaml
amirmc has quit [Quit: Leaving.]
mreca has joined #ocaml
mort___ has joined #ocaml
<adrien>
which native ocaml libraries around can do simple http downloads?
angerman has joined #ocaml
<bitbckt>
cohttp?
<def-lkb>
ocamlnet, ocsigen_client
<adrien>
hmmm, depends on lwt; might be an issue
Eyyub has joined #ocaml
<adrien>
well, I think it does
<bitbckt>
or async, yeah.
<adrien>
pcre, netstring, lwt.unix
<adrien>
=/
<adrien>
julm: haven't you written an http client btw?
seliopou has joined #ocaml
avsm has joined #ocaml
Kakadu has quit []
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lostcuaz has joined #ocaml
<seliopou>
any async developers around?
<seliopou>
I have kindof a specific question about typed_tcp.ml:66
<companion_cube>
adrien: why not ocamlnet then?
Eyyub has quit [Ping timeout: 252 seconds]
<adrien>
mostly size
<seliopou>
the question being, why typed_tcp not send the read result to the pipe?
<seliopou>
why does it not*
<adrien>
this will be for yypkg and the needs are simple so I hope to find a small-ish library
Eyyub has joined #ocaml
<adrien>
actually s/mostly //
<bitbckt>
good luck. :-/
<companion_cube>
adrien: maybe ocurl?
<adrien>
it's bindings and curl itself is fairly large
lostcuaz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeArtMon has joined #ocaml
ollehar has joined #ocaml
FreeArtMan has quit [Read error: Connection reset by peer]
<def-lkb>
adrien: extracting code from ocsigen_client is probably easier than from the other libs (from what I remember…)
<adrien>
that will still depend on lwt though, right?
angerman has quit [Quit: Bye]
<companion_cube>
is it really so bad to depend on lwt ?
Eyyub has quit [Quit: Lost terminal]
<adrien>
companion_cube: remember I'm cross-compiling to windows
<adrien>
I'm not too worried about it but if there's a working lib which uses lwt and one which doesn't...
nikki93 has quit [Remote host closed the connection]
<avsm>
seliopou: i dont quite understand the question. Typed_tcp is testing the [stop] deferred to see if it should …stop.
nikki93 has joined #ocaml
<avsm>
seliopou: if the [stop] deferred isnt determined, it will continue and send the result on
<avsm>
or do you mean something else?
<seliopou>
avsm: yes, but it has also received a message from the client, which it drops if the connection is closed
<seliopou>
which seems weird
<avsm>
well, i guess the [stop] deferred takes precedence
<Drup>
huh, I disagree, extracting code from ocsigen_client is probably going to be a nightmare
<Drup>
I wouldn't go this way if I were you, adrien
<avsm>
it's probably weirder if my application determines [stop] and then gets a message
<avsm>
(analogous to a close on a tcp socket discarding the receive buffer — or does it do that? a sudden doubt strikes me)
mcanini has joined #ocaml
milosn has quit [Ping timeout: 245 seconds]
rand000 has quit [Ping timeout: 272 seconds]
<seliopou>
avsm: i do believe that that in this situation, typed_tcp received the complete message before the connection was closed, and that those events can reported to user in that order as well
<mcanini>
avsm: Hi! Marco Canini here
<seliopou>
haha, well, it _had_ to have received a complete message before the connection was closed
milosn has joined #ocaml
malo has quit [Quit: Leaving]
<seliopou>
avsm: me and mcanini are debugging an fd leak for frenetic right now
<seliopou>
which is why this came up
FreeArtMon has quit [Ping timeout: 260 seconds]
<avsm>
hey marco!
<avsm>
are you determining the stop manually?
<seliopou>
nope that's completely hidden from the user i believe
<seliopou>
but we're seeing a bunch of CLOSE_WAIT fds and are trying to figure out why typed_tcp isn't closing them
<mcanini>
avsm: would you have a chance to help out. i'd be happy to take you for dinner first time I'm in cambrdige ;-)
<avsm>
i could help, but you'd be much better off mailing ocaml-core, as the JS folk would see it. sweeks is 10x me :-)
<seliopou>
yeah we should do that marco
<avsm>
I've never actually used Typed_tcp actually; always Tcp.Server directly.
<seliopou>
is sweeks in nyc by any chance?
<avsm>
yep
<seliopou>
wait who is sweeks?
<avsm>
stephen weeks
<companion_cube>
adrien: time to reinvent the wheel
<seliopou>
i wonder if JS actually uses typed_tcp or they just put it in there to troll us :P
<companion_cube>
:]
<adrien>
actually, on windows, maybe I should use the windows APIs
<adrien>
I already have stubs for windows in yypkg
rand000 has joined #ocaml
<smondet>
adrien: Cohttp is a functor, you could implement the signature IO with standard IO/Threads
<adrien>
oh, that's nice
oriba has joined #ocaml
<avsm>
i think djs55 did that already
<smondet>
PGOCaml does that, the non-lwt version has type 'a t = 'a and rocks with "normal" threading
<avsm>
dunno where - if you create an issue on the cohttp tracker i'll ask him tomorrow
<Ptival>
my second complaint is that I installed typerex using opam
<Ptival>
and now I can't find the thing to put in my .emacs to trigger it
<Ptival>
and the website does not help because it just says to cat from emacs.append :(
mreca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Ptival>
so now I'm downloading the archive just to get those stupid lines :p
<Ptival>
or I'll browse the github repo
bennyg has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
Sim_n has joined #ocaml
Simn has quit [Ping timeout: 252 seconds]
zpe has quit [Ping timeout: 276 seconds]
Sim_n is now known as Simn
ocp has quit [Read error: Operation timed out]
mreca has joined #ocaml
bennyg has left #ocaml []
seliopou has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saml has quit [Quit: Leaving]
S11001001 has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
darkf has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
jwatzman|work has joined #ocaml
sillyotter has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
jwatzman|work has quit [Client Quit]
mort___ has quit [Quit: Leaving.]
jwatzman|work has joined #ocaml
avsm has quit [Quit: Leaving.]
sillyotter has quit [Quit: Leaving]
lostcuaz has joined #ocaml
andymw has joined #ocaml
andymw has quit [Client Quit]
deavidsedice has joined #ocaml
bholst_ has joined #ocaml
avsm has joined #ocaml
esden_ has joined #ocaml
tristan_1 has joined #ocaml
darkf_ has joined #ocaml
robink_ has joined #ocaml
def-lkb_ has joined #ocaml
leifw_ has joined #ocaml
rom1504_ has joined #ocaml
zpe has joined #ocaml
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
mika1 has joined #ocaml
stomp has quit [Ping timeout: 245 seconds]
dsheets has quit [Ping timeout: 245 seconds]
esden has quit [Ping timeout: 245 seconds]
deavid has quit [Ping timeout: 245 seconds]
bholst has quit [Ping timeout: 245 seconds]
robink has quit [Ping timeout: 245 seconds]
stomp has joined #ocaml
tristan__ has quit [Ping timeout: 245 seconds]
manizzle has quit [Ping timeout: 245 seconds]
leifw has quit [Ping timeout: 245 seconds]
PM has quit [Ping timeout: 245 seconds]
def-lkb has quit [Ping timeout: 245 seconds]
rom1504 has quit [Ping timeout: 245 seconds]
smondet has quit [Ping timeout: 245 seconds]
esden_ is now known as esden
smondet_ has joined #ocaml
jlouis has quit [Ping timeout: 245 seconds]
manizzle has joined #ocaml
jlouis has joined #ocaml
mika1 has quit [Client Quit]
stomp has quit [Ping timeout: 245 seconds]
stomp has joined #ocaml
ktt3ja has joined #ocaml
leifw_ is now known as leifw
PM has joined #ocaml
dsheets has joined #ocaml
<ktt3ja>
I'm trying to define a function that read lines from stdin and put them into a list but got a syntax error: http://pastebin.com/vM2RVthM
<ktt3ja>
how do I fix it?
<companion_cube>
let lines = ref [] in
zpe has quit [Ping timeout: 252 seconds]
<ktt3ja>
companion_cube: now I get "File "rosetta.ml", line 8, characters 2-7: Error: This expression has type string list ref but an expression was expected of type unit"
<ktt3ja>
companion_cube: "File "rosetta.ml", line 3, characters 2-109: Error: This expression is not a function; it cannot be applied"
<companion_cube>
aww, I forgot a ";" after the "end"
<companion_cube>
sorry, got to sleep
oriba has quit [Quit: oriba]
<ktt3ja>
companion_cube: thanks
Simn has quit [Quit: Leaving]
mlh has quit [Ping timeout: 256 seconds]
mlh has joined #ocaml
WraithM has quit [Read error: Operation timed out]
kyrylo has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
zRecursive has joined #ocaml
thomasga has quit [Ping timeout: 272 seconds]
jbrown has joined #ocaml
dant3 has quit [Remote host closed the connection]
avsm has quit [Quit: Leaving.]
watermind has joined #ocaml
<zRecursive>
`echo "fac 21 ;;" | ocaml -noprompt -init ~/util.ml;` repports "Error: Reference to undefined global `Str'". The util.ml uses Str module. how can i make it find Str without using ~/.ocamlinit ?
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
asmanur has quit [Quit: quit]
jbrown has quit [Ping timeout: 252 seconds]
zpe has joined #ocaml
zpe has quit [Ping timeout: 252 seconds]
thomasga has joined #ocaml
madroach has quit [Ping timeout: 252 seconds]
<def-lkb_>
zRecursive: add str.cma to the commandline (to link to the library)
jwatzman|work has joined #ocaml
<zRecursive>
def-lkb_: thx
madroach has joined #ocaml
NoNNaN has quit [Remote host closed the connection]
NoNNaN has joined #ocaml
jbrown has joined #ocaml
watermind has quit [Read error: Connection reset by peer]
watermind has joined #ocaml
watermind has quit [Client Quit]
watermind has joined #ocaml
<zRecursive>
Can i suppress "Objective Caml version 3.12.1" running `echo "fac 21 ;;" | ocaml -noprompt -init ~/util.ml str.cma unix.cma` ?
wolfnn has quit [Ping timeout: 246 seconds]
jbrown has quit [Remote host closed the connection]