Banana changed the topic of #ocaml to: OCaml 3.08 "Bastille Day" Release available ! -- Archive of Caml Weekly News: http://pauillac.inria.fr/~aschmitt/cwn , A tutorial: http://merjis.com/richj/computers/ocaml/tutorial/ , A free book: http://cristal.inria.fr/~remy/cours/appsem, Mailing List (best ml ever for any computer language): http://caml.inria.fr/bin/wilma/caml-list
mrsolo has joined #ocaml
cjohnson has quit [Read error: 54 (Connection reset by peer)]
cjohnson has joined #ocaml
kinners has quit [Read error: 110 (Connection timed out)]
det has joined #ocaml
cjohnson has quit [Connection reset by peer]
cjohnson has joined #ocaml
bitwiseshiftleft has joined #ocaml
vezenchio has quit ["I thought what I'd do was, I'd pretend I was one of those deaf-mutes ^_^"]
<bitwiseshiftleft> can someone help me with a bit of camlp4?
<Riastradh> No, camlp4 has no help.
<Riastradh> Use a language with a sane syntax if you want sane syntactic extensions.
<mattam> :)
<bitwiseshiftleft> hm.
<bitwiseshiftleft> well, that's wonderful
<mattam> what's your quest(ion) ?
<bitwiseshiftleft> i'm trying to write a value into a class
<bitwiseshiftleft> in a syntax extension
<bitwiseshiftleft> by something like this
<bitwiseshiftleft> <:class_str_item< value $false$ $lid:onName l$ = Stack.apply (fun $params -> $e$) >>
* Riastradh flees from the syntactic hideousy.
<bitwiseshiftleft> and it complains that it wants [cvalue_binding] after [label]
<mattam> Riastradh: that's not so far from scheme hygienic macros is it ?
<bitwiseshiftleft> yeah, well, it was supposed to be a quick hack to give a project i'm working on saner syntax
<Riastradh> mattam, uh, Scheme macros are a _little_ different from that.
<mattam> if it's just a little...
<Riastradh> That was known as 'sarcasm,' mattam.
<bitwiseshiftleft> well, i'd sort of rather write this in a language with type inference
<Riastradh> There exist type inferrers for Scheme.
<mattam> Riastradh: what i said ? yes!
<Riastradh> mattam, ah, but, see, your sarcasm was not apparent -- there were no obvious hints --, and it would seem typical for someone to attempt to deride me thus.
<bitwiseshiftleft> ...
<mattam> i know, people don't understand my kind of irony usually
<bitwiseshiftleft> so does anyone know how to create a value 'val {onName l} = Stack.apply (fun {some param list} -> {some expression})' ?
<Riastradh> It would have been apparent if you had said: 'see, now, that's close to, uh...Scheme's hygienic macros!'
<Riastradh> See the difference?
* Riastradh gives mattam a lecture about proper sarcasm.
<mattam> yes, that would have been more apparent
<mattam> thanks for the tip, but i don't think i'll reform myself now, it's been years i act this way :)
* bitwiseshiftleft sighs
<mattam> bitwiseshiftleft: i don't know much camlp4, but i will go through the docs to try to find an answer :)
<bitwiseshiftleft> thanks, i've been staring at said docs for a couple hours, but no progress since I don't know any camlp4 :-)
<mattam> it seems you don't have to add $false$
<bitwiseshiftleft> ok.
<bitwiseshiftleft> it's automatically immutable?
<mattam> yes
<mattam> it should be at least, that's the original semantics
<bitwiseshiftleft> you seem to be right: removing it doesn't change the error
<mattam> onName is a function ?
<bitwiseshiftleft> yes
<bitwiseshiftleft> let onName n = "on_" ^ n
<bitwiseshiftleft> boring :-)
<mattam> have you tried a let ident = onName l in <:...>> ?
<bitwiseshiftleft> hm...
<bitwiseshiftleft> no diff
<bitwiseshiftleft> onName works in other places
<bitwiseshiftleft> the problem seems to be what comes immediately after
<mattam> that is ?
<bitwiseshiftleft> well, the = Stack.apply ....
<bitwiseshiftleft> i've tried bottling that up into a function too, without success
<mattam> what's inside it ?
<bitwiseshiftleft> Stack.apply (fun $params$ -> $e$)
<bitwiseshiftleft> where $params$ is a parameter list
<bitwiseshiftleft> and $e$ is a function
<bitwiseshiftleft> err
<bitwiseshiftleft> expression
_fab has quit [niven.freenode.net irc.freenode.net]
_fab has joined #ocaml
<mattam> well, i have no idea, try finding example code :)
<bitwiseshiftleft> have done
<bitwiseshiftleft> only results on google
jourdechance has quit [niven.freenode.net irc.freenode.net]
mrsolo has quit [niven.freenode.net irc.freenode.net]
ndara has quit [niven.freenode.net irc.freenode.net]
skylan has quit [niven.freenode.net irc.freenode.net]
Lemmih has quit [niven.freenode.net irc.freenode.net]
mflux has quit [niven.freenode.net irc.freenode.net]
j_n has quit [niven.freenode.net irc.freenode.net]
kuz has quit [niven.freenode.net irc.freenode.net]
TheDracle has quit [niven.freenode.net irc.freenode.net]
bk_ has quit [niven.freenode.net irc.freenode.net]
Hadaka has quit [niven.freenode.net irc.freenode.net]
pnou has quit [niven.freenode.net irc.freenode.net]
avn has quit [niven.freenode.net irc.freenode.net]
Hipo has quit [niven.freenode.net irc.freenode.net]
det has quit [niven.freenode.net irc.freenode.net]
cjohnson has quit [niven.freenode.net irc.freenode.net]
Riastradh has quit [niven.freenode.net irc.freenode.net]
Bols has quit [niven.freenode.net irc.freenode.net]
rj-cole has quit [niven.freenode.net irc.freenode.net]
slashvar[lri] has quit [niven.freenode.net irc.freenode.net]
whee has quit [niven.freenode.net irc.freenode.net]
mellum has quit [niven.freenode.net irc.freenode.net]
ronwalf has quit [niven.freenode.net irc.freenode.net]
<bitwiseshiftleft> is the source for camlp4
<mattam> mldonkey has some camlp4
cjohnson has joined #ocaml
det has joined #ocaml
mrsolo has joined #ocaml
jourdechance has joined #ocaml
bk_ has joined #ocaml
whee has joined #ocaml
ndara has joined #ocaml
skylan has joined #ocaml
Hadaka has joined #ocaml
Lemmih has joined #ocaml
Riastradh has joined #ocaml
Bols has joined #ocaml
mellum has joined #ocaml
ronwalf has joined #ocaml
rj-cole has joined #ocaml
slashvar[lri] has joined #ocaml
kuz has joined #ocaml
pnou has joined #ocaml
j_n has joined #ocaml
mflux has joined #ocaml
TheDracle has joined #ocaml
Hipo has joined #ocaml
avn has joined #ocaml
<bitwiseshiftleft> well, i'll look at it a bit more, and if i can't figure it out, i'll send it to the list
<bitwiseshiftleft> gnight everyone, and thanks for your time
bitwiseshiftleft has quit ["sleepytime"]
rj-cole has left #ocaml []
cjohnson has quit ["Leaving"]
Lemmih has quit ["Leaving"]
bk_ has quit ["Leaving IRC - dircproxy 1.1.0"]
smimou has joined #ocaml
ita has joined #ocaml
<ita> hi
<ita> this weekend i've lost my password for losetup (my backups!) - with the few parts of the password i remembered i managed to make a brute-force cracker and i recovered it
lam has joined #ocaml
joel_ has joined #ocaml
jrosdahl has quit [Read error: 110 (Connection timed out)]
whee has quit [niven.freenode.net irc.freenode.net]
mellum has quit [niven.freenode.net irc.freenode.net]
ronwalf has quit [niven.freenode.net irc.freenode.net]
whee has joined #ocaml
ronwalf has joined #ocaml
mellum has joined #ocaml
clog has joined #ocaml
mattam_ is now known as mattam
cjohnson has joined #ocaml
Lemmih has joined #ocaml
<mflux> hmm.. is it possible to use functions that use in_channel with data that's already in the memory?
<Riastradh> What do you mean by 'already in the memory?'
vezenchio has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
monochrom has joined #ocaml
ita is now known as ita|home
maihem has joined #ocaml
joel_ is now known as jrosdahl
<mflux> riastradh, ie. as a string
<mflux> but I already parsed the data myself. but still, I'm interested in hearing suggestions ;)
monochrom has quit ["Don't talk to those who talk to themselves."]
cjohnson has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
menace has joined #ocaml
cjohnson has quit [Read error: 54 (Connection reset by peer)]
bk_ has joined #ocaml
cjohnson has joined #ocaml
CosmicRay has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
menace has quit ["Leaving"]
mrsolo has quit [Read error: 113 (No route to host)]
jourdechance has quit [Remote closed the connection]
maihem has quit [Remote closed the connection]
jourdechance has joined #ocaml
cjohnson has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
clog has joined #ocaml
smimou has quit ["?"]
urz has joined #ocaml
<urz> hello
<urz> I have a program using Unix.select to handle a network input as well as stdin
<urz> i run it in screen
<urz> when i detach, Unix.select throws an exception
<urz> why?
<urz> (or perhaps its when i reatach)
<urz> hm, its not repeatible, i think its about resizing the window causing the exception more so than detach/reatach
<urz> Fatal error: exception Unix.Unix_error(11, "select", "")
cjohnson has joined #ocaml
<Nutssh> Check which signal number that is. Might be EINTR because of SIGWINCH.
CosmicRay has quit ["Client exiting"]
<urz> thnks
cjohnson has quit [Read error: 104 (Connection reset by peer)]
cjohnson has joined #ocaml
<urz> it is "Interrupted system call"