<tamouse__>
i typed "ocaml repl" and got the following:
<tamouse__>
$ ocaml repl
<tamouse__>
Cannot find file repl.
<tamouse__>
so, um, what am i missing?
<Lor>
If you want an interpreter prompt, just "ocaml" is enough.
<tamouse__>
google doesn't seem to be helpful
<tamouse__>
ah, ok
<Lor>
Or "rlwrap ocaml" for convenience.
<tamouse__>
what does the repl do?
<Lor>
Do you know what a repl is?
<tamouse__>
nope
<Lor>
Then why did you type "ocaml repl" in the first place?
<tamouse__>
because someone told me to earlier
<tamouse__>
$ ocaml repl
<tamouse__>
[20120401|1309.32] < thelema_> tamouse__: for a quick intro, try going through chapter 1 of the manual with the toplevel (ocaml repl)
<Lor>
That wasn't a sample command-line.
<tamouse__>
*sigh*
<Lor>
It was just a parenthetical remark that "toplevel" is a name for ocaml's repl.
<tamouse__>
are people who say they are completely brand new to something supposed to be able to things like that?
<tamouse__>
i still have no idea what a repl is
<Lor>
It's a read-eval-print loop, ancient lisp term.
<Lor>
Basically any interpreter prompt, like the one you'd get when running python.
<tamouse__>
ok
<tamouse__>
is there something special about the term "toplevel"?
<Lor>
It reads an expression (or statement, or declaration, or whatever), evaluates it, and prints the result, and keeps on doing this in a loop.
<tamouse__>
i wonder why it worked on os/x
<Lor>
It's just what the interpreter prompt (or repl) is often called in ocaml.
<tamouse__>
ok
<Lor>
It presents you with the "top-level namespace".
avsm has quit [Quit: Leaving.]
fantasticsid has joined #ocaml
lamawithonel__ has quit []
datkin has quit [Ping timeout: 252 seconds]
zorun has joined #ocaml
jonathandav has quit [Read error: Connection reset by peer]
mcclurmc_ has quit [Read error: Connection reset by peer]
jonathandav has joined #ocaml
jimmyrcom has quit [Ping timeout: 245 seconds]
tufisi has joined #ocaml
Cyanure has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
andreypo_ has quit [Quit: Quit]
Tobu has quit [Ping timeout: 260 seconds]
Tobu has joined #ocaml
ASau has quit [Ping timeout: 248 seconds]
ASau has joined #ocaml
ASau has quit [Remote host closed the connection]
albacker has joined #ocaml
albacker has quit [Changing host]
albacker has joined #ocaml
ASau has joined #ocaml
albacker has quit [Client Quit]
sivoais has quit [Ping timeout: 260 seconds]
<adrien>
morning
Cyanure has quit [Ping timeout: 245 seconds]
ftrvxmtrx has joined #ocaml
sivoais has joined #ocaml
Cyanure has joined #ocaml
djcoin has joined #ocaml
ftrvxmtrx has quit [Remote host closed the connection]
ftrvxmtrx has joined #ocaml
Tobu has quit [Ping timeout: 260 seconds]
Tobu has joined #ocaml
mrvn has quit [Read error: Connection reset by peer]
silver has joined #ocaml
fantasticsid has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
cago has joined #ocaml
TaXules has quit [Ping timeout: 252 seconds]
TaXules has joined #ocaml
avsm has joined #ocaml
ASau has quit [Remote host closed the connection]
ASau has joined #ocaml
Tobu has quit [Ping timeout: 260 seconds]
rixed_ has joined #ocaml
thomasga has joined #ocaml
cdidd has quit [Remote host closed the connection]
Tobu has joined #ocaml
ocp has joined #ocaml
Kakadu has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
iago has joined #ocaml
tamouse__ has left #ocaml []
Tobu has quit [Ping timeout: 272 seconds]
avsm has quit [Quit: Leaving.]
Snark has joined #ocaml
ulfdoz has joined #ocaml
emmanuelux has joined #ocaml
ulfdoz_ has joined #ocaml
Fullma has quit [Ping timeout: 246 seconds]
Tobu has joined #ocaml
ulfdoz has quit [Ping timeout: 276 seconds]
ulfdoz_ is now known as ulfdoz
datkin has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
ftrvxmtrx has joined #ocaml
emmanuelux has quit [Remote host closed the connection]
_andre has joined #ocaml
emmanuelux has joined #ocaml
datkin has quit [Ping timeout: 260 seconds]
datkin has joined #ocaml
mart has joined #ocaml
iago has quit [Quit: Leaving]
rixed_ has quit [Quit: leaving]
NaCl has quit [Ping timeout: 246 seconds]
Submarine has joined #ocaml
Submarine has quit [Changing host]
Submarine has joined #ocaml
benozol has joined #ocaml
Submarine has quit [Quit: Leaving]
emmanuelux has quit [Remote host closed the connection]
emmanuelux has joined #ocaml
Tobu has quit [Ping timeout: 272 seconds]
avsm has joined #ocaml
bzzbzz has joined #ocaml
benozol has quit [Ping timeout: 246 seconds]
iago has joined #ocaml
NaCl has joined #ocaml
NaCl has quit [Changing host]
NaCl has joined #ocaml
Tobu has joined #ocaml
iago has quit [Ping timeout: 260 seconds]
thomasga1 has joined #ocaml
thomasga has quit [Read error: Connection reset by peer]
thomasga has joined #ocaml
thomasga1 has quit [Read error: Connection reset by peer]
thomasga has quit [Read error: Connection reset by peer]
thomasga1 has joined #ocaml
snearch has joined #ocaml
Fullma has joined #ocaml
jimmyrcom has joined #ocaml
datkin has quit [Ping timeout: 244 seconds]
Fullma has quit [Ping timeout: 252 seconds]
Tobu has quit [Remote host closed the connection]
Tobu has joined #ocaml
thomasga1 is now known as thomasga
benozol has joined #ocaml
cdidd has joined #ocaml
mika1 has joined #ocaml
benozol has quit [Ping timeout: 245 seconds]
jamii has joined #ocaml
benozol has joined #ocaml
mcclurmc_ has joined #ocaml
iago has joined #ocaml
ftrvxmtrx has quit [Quit: Leaving]
smondet has joined #ocaml
benozol has quit [Read error: Connection reset by peer]
benozol has joined #ocaml
asdfhjkl has joined #ocaml
JuzorBNC is now known as Juzor
snearch has quit [Quit: Verlassend]
oriba has joined #ocaml
snearch has joined #ocaml
jamii has quit [Ping timeout: 240 seconds]
thomasga has quit [Read error: Connection reset by peer]
thomasga has joined #ocaml
jamii has joined #ocaml
thomasga1 has joined #ocaml
thomasga has quit [Read error: Connection reset by peer]
Kakadu has quit [Quit: Page closed]
jamii has quit [Read error: Operation timed out]
djcoin has quit [Quit: WeeChat 0.3.2]
<hcarty>
If anyone familiar with integrating Lwt with other libraries is available, I would appreciate comments on a small Lwt/0MQ interface : https://gist.github.com/2279558
<hcarty>
avsm: Thank you for the Lwt-for-managing-processes-and-other-Unix-things tip. It's been fun learning the library.
<smondet>
hcarty: I don't know exactly what ZMQ.Socket.events does, but if it tries to read more than one byte with non-Lwt Unix.recv, then I guess Lwt_unix.wait_read is not enough
<hcarty>
smondet: Thanks. As I understand, ZMQ.Socket.events tells you if a complete ZMQ message can be read/written on the given socket without blocking.
<hcarty>
ZMQ.Socket.events itself should not block according to the documentation
<hcarty>
It compiles and the types work out, but I'm still new to the world of Lwt.
cago has quit [Quit: Leaving.]
<diml>
hcarty: looks fine to me
jamii has joined #ocaml
<hcarty>
diml and others: Thank you for your help.
<hcarty>
I'll leave it as a paste for now, but if I develop it any further or if anyone else wants to make any additions I will setup a proper project for it.
mika1 has quit [Ping timeout: 246 seconds]
Cyanure has quit [Remote host closed the connection]
greg__ has joined #ocaml
greg__ has quit [Client Quit]
hnrgrgr has joined #ocaml
andreypopp has quit [Quit: Computer has gone to sleep.]
mcclurmc_ is now known as mcclurmc
Tobu has quit [Ping timeout: 260 seconds]
rks has quit [Quit: {'EXIT', rks, "bye"}]
mcclurmc has quit [Ping timeout: 276 seconds]
Tobu has joined #ocaml
avsm has quit [Quit: Leaving.]
snearch has quit [Quit: Verlassend]
diego_diego has quit [Quit: diego_diego]
thomasga1 has quit [Quit: Leaving.]
ggherdov has joined #ocaml
ocp has quit [Ping timeout: 240 seconds]
silver has quit [Remote host closed the connection]
mcclurmc has joined #ocaml
diego_diego has joined #ocaml
iago has quit [Ping timeout: 244 seconds]
ggherdov has quit [Remote host closed the connection]
eikke has quit [Ping timeout: 265 seconds]
iago has joined #ocaml
hefner has joined #ocaml
Tobu has quit [Ping timeout: 260 seconds]
<_habnabit>
is there a way to make ocamlbuild put an option or flag at the _end_ of some ocamlfind ocamlopt invocation? running into problems with the braindead GNU linker, and reordering arguments is the only solution I've found
<_habnabit>
I haven't seen anything in the docs; it seems like ocamlbuild groups the arguments but doesn't let you otherwise specify the order
ftrvxmtrx has quit [Quit: Leaving]
Tobu has joined #ocaml
diego_diego has quit [Quit: diego_diego]
<hcarty>
_habnabit: There was some discussion on the bug tracker about this. I don't remember the bug # or if there was a work-around.
<_habnabit>
well, I was hoping it would be something I could put in a plugin. I guess not.
<_habnabit>
man this is an annoying thing. apple's ld is just fine with the argument order.
albacker has joined #ocaml
<thelema_>
from what I've been able to tell, everyone was just being lazy with argument order, and it's finally checked in the gnu linker
<_habnabit>
not sure what you mean
<thelema_>
the recent change is to only accept link orders that are correct, and not to change the link order from what's given on the command line (to make linking succeed)
<thelema_>
actually, I take that back - I think it might just be to allow the linker to prune code more easily...