<dibblego>
I can't read/learn as effectively from a computer screen - I prefer books
yondalf has quit [Connection timed out]
dark_light has joined #ocaml
slipstream has quit [Read error: 104 (Connection reset by peer)]
slipstream has joined #ocaml
dibblego has quit [Remote closed the connection]
malc_ has joined #ocaml
pango has quit [Excess Flood]
pango has joined #ocaml
sponge45 has quit ["zzzzzzzzzz"]
malc_ has quit ["leaving"]
smimou has joined #ocaml
swater has joined #ocaml
ikaros_ has joined #ocaml
ikaros has quit [Read error: 104 (Connection reset by peer)]
ikaros_ has quit ["Leaving"]
ikaros has joined #ocaml
Skal has joined #ocaml
ikaros has quit ["Leaving"]
Skal has quit [Read error: 104 (Connection reset by peer)]
descender has joined #ocaml
ikaros has joined #ocaml
chessguy has joined #ocaml
<flux__>
the reviews do seem to be very bad for the book
<flux__>
atleast the first review was written by someone who's written dozens of them
<flux__>
the second one is the sole review
<flux__>
although all the other reviews except for one get 5 stars, and the one gets 4 stars :)
<flux__>
maybe the guy's a review-for-hire guy ;)
Sweetsha1k has joined #ocaml
<flux__>
although most of the reviews are on the topic (computer science, signal processing)
Sweetshark has quit [Read error: 60 (Operation timed out)]
Smerdyakov has joined #ocaml
<Leonidas>
flux__: yeah, I haven't read the book (wanted to learn the language from it) but this seems to be quite bad. I'm hoping for more reviews on that topic.
datrus has quit ["leaving"]
<flux__>
leonidas, what kind of background do you have?
<Leonidas>
flux__: background in the field of imperative programming languages like Pascal, Visual Basic, Ruby and most notably Python.
<Leonidas>
flux__: I thought about expanding my horizons by learning another useful language which has some other approach.
<Leonidas>
flux__: that's why I was interessated in that "Practical" part of the book. I heard the Practical Common Lisp book was good and hoped the ocaml book would be also good
<pango>
So from what I understand, and for what it's worth, Richard W.M. Jones (of Merjis/ocaml-tutorial.org/ocaml beginners ml/... fame) was technical reviewer on this book
setog3 has quit [Read error: 113 (No route to host)]
beschmi has joined #ocaml
<flux__>
I'm not sure how much that means
<flux__>
maybe he did fact checking, it doesn't mean the book is any good :)
<pango>
yet if the reviews say the book doesn't even get some facts right, that's strange... Not impossible, of course
<stesch>
A bad book is better than no book at all. I like to combine different sources when learning a languages.
<Smerdyakov>
stesch, a bad enough book is worse than no book!
<stesch>
And there's not much choice when you want to have a book about OCaml and your French isn't good enough. :-)
<Smerdyakov>
OCaml will be superceded by Coq soon, anyway, and the Coq'Art book is pretty good. ;)
<stesch>
I'm programming for 22 years now. I can deal with a bad book.
<Smerdyakov>
It surprises me to realize that I've been programming for only a little less than that. :)
fred_ has joined #ocaml
<fred_>
hello, Do you have a clue on how I can do a *non-blocking* lexer ?
<Smerdyakov>
fred_, what would the advantage of that be?
<fred_>
I tried with ocamllex and write a function who raise and exception when the fd is empty
<fred_>
that is to write a server
<fred_>
I prefer not using threads
<Smerdyakov>
You might want to go for camlp4.
<fred_>
to write the lexer ? with genlex ?
<flux__>
fred_, I used the the approach of reading one line and passing that to the parser.. might not be always the solution, though
<Smerdyakov>
I don't really know.
<fred_>
ok
<fred_>
flux__: that can be an quick solution for me
<fred_>
thank you :)
<flux__>
otherwise, without threads, it can be difficult
<flux__>
but one other option would be to run your server in the 'get more input'-function
<fred_>
you mean the refill function of Lexing ?
<flux__>
yes
<fred_>
ha
<fred_>
not possible, I have several lexers
<fred_>
or, maybe there is a simple way to do IPC/RPC, in fact I just want to pass messages...
<flux__>
I mean, you could provide your own lexbuf-structure
<fred_>
but a simple text protocol sound nice
<fred_>
hu...
<fred_>
the problem is in the C part (c_engine) of the lexer,
<fred_>
when I continue after a EAGAIN (means no data in the fd, try again),
<fred_>
previous part of the regex is missing...
<fred_>
Ithink I will do it line by line
<fred_>
I would like to use Genlex, but it seams to match comments delimiters (* and *)