hausdorff has quit [Remote host closed the connection]
johnnydiabetic has joined #ocaml
braman has joined #ocaml
<braman>
hi, how do I update to core.111.17.00 ? mine is currently core.109.47.00.
ustunozgur has quit [Remote host closed the connection]
<Drup>
"opam update && opam upgrade"
<braman>
opam upgrade - tells me "Already up-to-date". Brand new newbie here.
<braman>
Thanks Drup - works great. Thank soo much.
<Drup>
no problem :)
gallais has joined #ocaml
thomasga has quit [Quit: Leaving.]
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
Eyyub has joined #ocaml
<gallais>
I'm quite puzzled by the behaviour of Batteries' BatIMap.modify_opt: http://lpaste.net/106826
<gallais>
any hindsight?
racycle has quit [Quit: ZZZzzz…]
braman has quit [Ping timeout: 255 seconds]
SethTisue has quit [Quit: SethTisue]
ustunozg_ has joined #ocaml
squiggnet has joined #ocaml
ustunozg_ has quit [Ping timeout: 244 seconds]
f[x] has joined #ocaml
fold has joined #ocaml
johnnydiabetic has quit [Quit: Leaving]
rand000 has quit [Quit: leaving]
seanmcl has joined #ocaml
seanmcl has quit [Client Quit]
martinsk has quit [Quit: This computer has gone to sleep]
troydm has quit [Ping timeout: 252 seconds]
hhugo has quit [Quit: Leaving.]
f[x] has quit [Ping timeout: 260 seconds]
philtor has joined #ocaml
ustunozgur has joined #ocaml
claudiuc has quit [Remote host closed the connection]
hausdorff has joined #ocaml
fantasticsid has joined #ocaml
alpounet has joined #ocaml
ustunozgur has quit [Ping timeout: 255 seconds]
vfoley has joined #ocaml
alpounet has quit [Ping timeout: 255 seconds]
philtor has quit [Ping timeout: 252 seconds]
q66 has quit [Quit: Leaving]
ygrek has joined #ocaml
hausdorff has quit [Remote host closed the connection]
fantasti` has joined #ocaml
fantasticsid has quit [Ping timeout: 248 seconds]
divyanshu has joined #ocaml
divyanshu has quit [Client Quit]
alexst has quit [Ping timeout: 244 seconds]
manizzle has quit [Ping timeout: 272 seconds]
ygrek_ has joined #ocaml
fantasti` has quit [Remote host closed the connection]
fantasticsid has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
fold has quit [Ping timeout: 244 seconds]
penglingbo has joined #ocaml
waneck has quit [Read error: Connection reset by peer]
fantasticsid has quit [Remote host closed the connection]
alexst has joined #ocaml
alexst has quit [Ping timeout: 244 seconds]
manizzle has joined #ocaml
fold has joined #ocaml
ivan\ has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hausdorff has joined #ocaml
WraithM has quit [Ping timeout: 248 seconds]
ustunozgur has joined #ocaml
ustunozgur has quit [Ping timeout: 240 seconds]
alexst has joined #ocaml
alexst has quit [Ping timeout: 248 seconds]
racycle has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
vpm has quit [Ping timeout: 252 seconds]
axiles has joined #ocaml
yacks has quit [Ping timeout: 248 seconds]
ygrek has joined #ocaml
ygrek_ has quit [Ping timeout: 252 seconds]
ivan\ has joined #ocaml
racycle has quit [Quit: ZZZzzz…]
ustunozgur has joined #ocaml
ustunozgur has quit [Read error: No route to host]
martinsk has joined #ocaml
divyanshu has joined #ocaml
divyanshu has quit [Client Quit]
Eyyub has quit [Ping timeout: 260 seconds]
philtor_ has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
divyanshu has joined #ocaml
hausdorff has quit [Remote host closed the connection]
vpm has joined #ocaml
philtor_ has quit [Ping timeout: 252 seconds]
Derander has quit [Ping timeout: 245 seconds]
martinsk has quit [Quit: This computer has gone to sleep]
Derander has joined #ocaml
yacks has joined #ocaml
eikke__ has joined #ocaml
penglingbo has quit [Ping timeout: 272 seconds]
arjunguha has joined #ocaml
ygrek has joined #ocaml
penglingbo has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ustunozgur has joined #ocaml
arjunguha has joined #ocaml
parcs_ has quit [Ping timeout: 248 seconds]
ustunozgur has quit [Ping timeout: 255 seconds]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
parcs_ has joined #ocaml
jsvgoncalves has joined #ocaml
alpounet has joined #ocaml
eikke__ has quit [Ping timeout: 255 seconds]
yacks has quit [Quit: Leaving]
yacks has joined #ocaml
cago has joined #ocaml
AltGr has joined #ocaml
maattdd has joined #ocaml
jsvgoncalves has quit [Ping timeout: 260 seconds]
ddosia has quit [Quit: Leaving.]
libertas has joined #ocaml
jsvgoncalves has joined #ocaml
arjunguha has joined #ocaml
Kakadu has joined #ocaml
eikke__ has joined #ocaml
arjunguha has quit [Client Quit]
tautologico has quit [Quit: Connection closed for inactivity]
Derander has quit [Ping timeout: 252 seconds]
algoriddle has quit [Quit: WeeChat 0.4.3]
maattdd has quit [Quit: WeeChat 0.4.3]
Derander has joined #ocaml
algoriddle has joined #ocaml
maattdd has joined #ocaml
hhugo has joined #ocaml
eikke__ has quit [Ping timeout: 264 seconds]
<companion_cube>
orbitz: do you think the stuff your learned about property testing could apply to validating data structures?
<companion_cube>
like, using several functions of a container API, and then check that some properties hold?
Derander has quit [Ping timeout: 264 seconds]
Derander has joined #ocaml
robink has quit [Ping timeout: 240 seconds]
arjunguha has joined #ocaml
Simn has joined #ocaml
robink has joined #ocaml
troydm has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dsheets has quit [Ping timeout: 252 seconds]
eikke__ has joined #ocaml
mort___ has joined #ocaml
<alpounet>
companion_cube: you could randomly generate operations to run and values to insert / lookup & what not, and check your properties whenever you want along the way
<companion_cube>
yes, that's kind of the idea
<companion_cube>
maybe we don't exploit random testing enough yet
arjunguha has joined #ocaml
<orbitz>
companion_cube: yes, the state stuff I want to do can accomplish that
<orbitz>
companion_cube: I'm just not sure how to implement it yet :)
dsheets has joined #ocaml
<companion_cube>
I guess you need some kind of GADT to describe the (monadic) sequence of actions
<orbitz>
The hard part i think is how the erlang quick chcek threads generated values trhough
<companion_cube>
type ('a,'b) action = | Init : 'a -> ('a,'a) action | Do : ('a -> 'b action) * 'a action * ('a -> 'b generator) -> 'b action ?
<orbitz>
maybe just generated a new value on each action is sufficent
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
seanmcl has joined #ocaml
arjunguha has joined #ocaml
<orbitz>
companion_cube: maybe I'll try to do a really dirty implementaion and someone smarter than me can make it pretty
<companion_cube>
do you intend to use Async in it ? :s
<orbitz>
I'm working on a project where I really want state machine testing so next week or so I think I'll have enough written to start testing
<orbitz>
companion_cube: well, for my initial version it will, I think the next iteation will remove it and then probably functorize over monadic operators
<orbitz>
or maybe I can do it first iteration
* companion_cube
hopes so :p
<orbitz>
do you mind if I use yoru qcheck as root name? so we could have qcheck_statem, qcheck_statem_async, qcheck_statem_lwt packages
arjunguha has quit [Client Quit]
<companion_cube>
sure, you can even use a subpackage
arjunguha has joined #ocaml
ygrek has quit [Remote host closed the connection]
arjunguha has quit [Client Quit]
ktoss is now known as ktos
alpounet has quit [Remote host closed the connection]
alpounet has joined #ocaml
thomasga has joined #ocaml
jsvgoncalves has quit [Ping timeout: 255 seconds]
arjunguha has joined #ocaml
ustunozgur has joined #ocaml
lordkryss has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
q66 has joined #ocaml
adrien_o1w is now known as adrien_oww
demonimin has quit [Ping timeout: 240 seconds]
jludlam has joined #ocaml
arjunguha has joined #ocaml
arjunguha has quit [Client Quit]
demonimin has joined #ocaml
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasga has quit [Quit: Leaving.]
ustunozgur has quit [Remote host closed the connection]
thomasga has joined #ocaml
ustunozgur has joined #ocaml
jludlam has quit [Ping timeout: 252 seconds]
hhugo has quit [Quit: Leaving.]
thomasga has quit [Quit: Leaving.]
hhugo has joined #ocaml
jludlam has joined #ocaml
fantasticsid has joined #ocaml
mk270 has quit [Ping timeout: 260 seconds]
mk270 has joined #ocaml
def` has quit [Ping timeout: 245 seconds]
def` has joined #ocaml
Averell has quit [Ping timeout: 245 seconds]
Averell has joined #ocaml
_andre has joined #ocaml
sagotch has joined #ocaml
ggole has joined #ocaml
arjunguha has joined #ocaml
parcs_ has quit [Remote host closed the connection]
thomasga has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sgnb has joined #ocaml
jsvgoncalves has joined #ocaml
fantasti` has joined #ocaml
fantasti` has quit [Remote host closed the connection]
fantasticsid has quit [Ping timeout: 244 seconds]
yacks has quit [Quit: Leaving]
rmb has joined #ocaml
<whitequark>
is there some facility for adding rules to ocamlbuild inside packages?
<jpdeplaix>
what do you mean by « inside packages » ?
<rmb>
Hi, all - With Str.regexp, will "[ ]*" match 0 or more space characters (chr(32))?
<adrien_oww>
why not " *"?
<rmb>
Even better. Thank you
<rmb>
One more question: If I'd like to match a sequence of any non-space characters (allowing newlines), e.g., (all_chars - " "), where all_chars included newlines, is there a straight-forward way to do this? I was imagining something like "\\(\\(.\\|\\n\\)SET_DIF[ ]\\)*, where SET_DIF is a `set difference' operator, but I'm not sure how to express this
<adrien_oww>
^
<adrien_oww>
hmm
<adrien_oww>
no, thought there was one in Str but I'm not so sure anymore
<rmb>
thank you - me neither, hmm
<adrien_oww>
oh
<adrien_oww>
you want everything but space?
<rmb>
exactly
<rmb>
(and I believe "." should match everything except newline)
<adrien_oww>
[^ ]
alexst has joined #ocaml
<rmb>
Oh beautiful :-) perfect
<rmb>
thank you!
ebzzry has quit [Remote host closed the connection]
shinnya has joined #ocaml
rand000 has joined #ocaml
penglingbo has quit [Ping timeout: 252 seconds]
alexst has quit [Ping timeout: 244 seconds]
alexst has joined #ocaml
divyanshu has quit [Quit: Computer has gone to sleep.]
<rmb>
Last n00b Str.regexp question: To match *any* (possibly non-empty) sequence of characters, is this the correct way? "\\(.\\|\\n\\)*"
<rmb>
Or can I `complement the empty set' via [^] ?
<rmb>
Hmm, looks like [^] isn't allowed.
teiresias has quit [Quit: leaving]
teiresias has joined #ocaml
manizzle has quit [Ping timeout: 272 seconds]
def` has quit [Ping timeout: 245 seconds]
def` has joined #ocaml
dsheets has quit [Read error: Connection reset by peer]
dsheets_ has joined #ocaml
ddosia has joined #ocaml
<rmb>
Is it possible to enable "multiline mode" for Str.regexp?
<rmb>
So that, e.g., "." matches any character (including newline)?
ustunozg_ has joined #ocaml
<adrien_oww>
don't think so
<adrien_oww>
but to be honest I'm not sure you should be using regexpes at all
ustunozgur has quit [Ping timeout: 260 seconds]
<adrien_oww>
I haven't managed to understand what you were trying to do and it looks like it would be better with Unix.read directly
axiles has quit [Ping timeout: 260 seconds]
divyanshu has joined #ocaml
axiles has joined #ocaml
<rmb>
Thank you, adrien
<flux>
you could just try on the toplevel if Str matches "\n" with "."
<adrien>
doc says it doesn't :)
tobiasBora has joined #ocaml
<tobiasBora>
Hello,
<tobiasBora>
I have some questions about compilation
<tobiasBora>
For the moment if I have two modules A.ml and B.ml, and if B use A, to compile I do something like :
<tobiasBora>
ocamlc -o a.out A.ml B.ml
alexst has quit [Ping timeout: 244 seconds]
<tobiasBora>
but the problem is that after A.ml is available in the library with B.ml
<tobiasBora>
How could I "hide" the module A in order to see only B in the new library ?
thomasga has quit [Quit: Leaving.]
<adrien_oww>
what if B has val foo : A.t -> unit
<adrien_oww>
you would still need access to A
thomasga has joined #ocaml
<tobiasBora>
adrien_oww: But if A only perform on standart types ? To be clearer I would like to know how I could separate a project in lot's of subfiles (so modules) but hidding these modules to have only one "accessible" module. It would be usefull for example to avoid a collision between an other library which already has a the same module name.
<tobiasBora>
For example if A use B, and X use a library already named B.ml, If I install A and X I will have two modules named "B"
<tobiasBora>
Can't I just say "please don't attribute the B module" ?
<tobiasBora>
(at least in top level)
yacks has joined #ocaml
<adrien_oww>
that would make no sense
<adrien_oww>
sounds like you want "pack"
yacks has quit [Ping timeout: 248 seconds]
divyanshu has quit [Quit: Computer has gone to sleep.]
darkf has quit [Quit: Leaving]
<tobiasBora>
adrien_oww: Maybe... But that means that in big libraries all the code is in one file ???
<adrien_oww>
yes
<adrien_oww>
Core uses it iirc
penglingbo has joined #ocaml
<whitequark>
jpdeplaix: I want to add -package to ocamlbuild invocation and have some rules added.
<tobiasBora>
adrien: You mean that Core uses pack ? I tried to use it but I can't manage to make it work (I'm working with eliomc), but I'll try again, thank you
<whitequark>
suppose I want to move these rules to ctypes itself
<Drup>
you can do a plugin and use it with plugin-tag
<jpdeplaix>
is that what you want ? ^
<whitequark>
I think
<whitequark>
can I avoid having a myocamlbuild.ml file completely with a plugin-tag?
<Drup>
perhaps
<jpdeplaix>
not really
<Drup>
it depends if you can fit your rules at the base level or if you have to squeeze them in After_rules
<Drup>
that depends on how your rule interact with other rules, and since ocamlbuild is crap on priority, there is only one way to know if it works : try it.
<jpdeplaix>
you need a myocamlbuild.ml anyway at least for "load" the plugin
<Drup>
jpdeplaix: not really
<jpdeplaix>
s/for/to/
<jpdeplaix>
Drup: why ? You always need a myocamlbuild.ml if you use plugin-tag
<Drup>
maybe, but you may not have to modify it in anyway
rand000 has quit [Quit: leaving]
<jpdeplaix>
no, you'll need to call the dispatcher
<Drup>
not if you put your rule directly
<Drup>
(yes, it works)
shinnya has quit [Ping timeout: 272 seconds]
Eyyub has joined #ocaml
<jpdeplaix>
I know but it's the right way to do it
<jpdeplaix>
not*
<Drup>
:p
SethTisue has joined #ocaml
arjunguha has joined #ocaml
mcsquiggedy has joined #ocaml
johnelse has quit [Ping timeout: 255 seconds]
paddymahoney has quit [Remote host closed the connection]
jludlam has quit [Ping timeout: 272 seconds]
johnelse has joined #ocaml
johnelse is now known as Guest32682
jludlam has joined #ocaml
Guest32682 is now known as johnelse
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagotch has quit [Remote host closed the connection]
arjunguha has joined #ocaml
siddharthv has joined #ocaml
divyanshu has joined #ocaml
huza has joined #ocaml
<mcsquiggedy>
Anyone happen to know what steps need to be taken to get the syntax extensions for sedlex up and running through Opam? I've got ocaml 4.01.0 and opam 1.1.1, and ocamlbuild is throwing a package not found for sedlex.ppx
maattdd has quit [Ping timeout: 264 seconds]
dsheets_ has quit [Ping timeout: 260 seconds]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
divyanshu has quit [Quit: Computer has gone to sleep.]
ygrek has joined #ocaml
arjunguha has joined #ocaml
<mcsquiggedy>
or, more generally, opam errors similar in form to: [ERROR] "ppx_tools" is not available for your compiler or your OS.
arjunguha has quit [Client Quit]
slash^ has joined #ocaml
<Drup>
mcsquiggedy: those are only for ocaml 4.02
ygrek has quit [Ping timeout: 252 seconds]
<Drup>
(which is not yet out)
huza has quit [Quit: WeeChat 0.3.8]
<mcsquiggedy>
Do attempting to use, say, sedlex would be premature?
<mcsquiggedy>
I initially tried ulex, but ran into similar preprocessor trouble with camlp4.
<Drup>
similar ?
<Drup>
unless you want to use the next version of ocaml in beta, yes, using sedlex is premature
<mcsquiggedy>
Well, similar in that it didn't work. Opam refuses to install ulex on the grounds that it can't find camlp4orf
<mcsquiggedy>
Which is apparently not provided by opam's camlp4 package. Which is a dummy, I'm led to believe?
<Drup>
the camlp4 package is a void package until next release, camlp4 is included in ocaml for <= 4.01
<Drup>
except for some silly distrib, like debian >_>
ygrek has joined #ocaml
<mcsquiggedy>
Ooookay. I'm in Ubuntu, so. Debian.
<Drup>
you have two way to solve the issue
arjunguha has joined #ocaml
<Drup>
1) keep using the system switch and install the relevant ubuntu package
<mcsquiggedy>
Like, the actual overarching question is, can I lex a unicode buffer in a manner compatible with menhir, with Ubuntu 12.04 and preferably opam.
<Drup>
2) use a non system switch
<mcsquiggedy>
It's looking increasingly like I have no unicode-lexing options.
<Drup>
you do, just pick one of the solution I just mentionned
Hannibal_Smith has joined #ocaml
arjunguha has quit [Client Quit]
groovy2shoes has joined #ocaml
cago has left #ocaml [#ocaml]
dsheets_ has joined #ocaml
philtor_ has joined #ocaml
divyanshu has joined #ocaml
arjunguha has joined #ocaml
arjunguha has quit [Client Quit]
arjunguha has joined #ocaml
vfoley has quit [Ping timeout: 252 seconds]
tulloch has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arjunguha has joined #ocaml
ustunozgur has joined #ocaml
philtor has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eikke__ has quit [Ping timeout: 244 seconds]
jsvgoncalves has quit [Remote host closed the connection]
eikke__ has joined #ocaml
martinsk has joined #ocaml
racycle has joined #ocaml
seanmcl has joined #ocaml
penglingbo has quit [Ping timeout: 272 seconds]
ustunozgur has quit [Remote host closed the connection]
AltGr has left #ocaml [#ocaml]
ustunozgur has joined #ocaml
eikke__ has quit [Ping timeout: 260 seconds]
<tobiasBora>
I've just a little question not really linked to Ocaml : what is a '|' character supposed to do in a make rule ?
<tobiasBora>
I saw something like :
<tobiasBora>
rule_name: .... | ...
<tobiasBora>
....
ustunozgur has quit [Ping timeout: 264 seconds]
<thomasga>
order-only dependency
<thomasga>
(ie. the rule is not fired again if the prereqs on the right of the | changes)
<thomasga>
(but it needs to be fired at least one before the rule can run)
<tobiasBora>
I'm not sure to understand... you mean that in :
<tobiasBora>
rule_name: a | b
<tobiasBora>
if b change the rule rule_name isn't run ?
<tobiasBora>
if it's the case what is the use of b ?
jwatzman|work has joined #ocaml
tane has joined #ocaml
philtor_ has quit [Ping timeout: 244 seconds]
thomasga has quit [Quit: Leaving.]
<tobiasBora>
Ok I understand, thank you !
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arjunguha has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
groovy2shoes has quit [Ping timeout: 244 seconds]
jludlam has quit [Ping timeout: 272 seconds]
mort___ has quit [Ping timeout: 252 seconds]
ygrek has quit [Ping timeout: 255 seconds]
alexst has joined #ocaml
vfoley has joined #ocaml
vfoley has quit [Changing host]
vfoley has joined #ocaml
avsm has joined #ocaml
hhugo has quit [Quit: Leaving.]
avsm has quit [Quit: Leaving.]
ustunozgur has joined #ocaml
ustunozg_ has joined #ocaml
dsheets_ has quit [Ping timeout: 255 seconds]
ustunozgur has quit [Ping timeout: 244 seconds]
ustunozg_ has quit [Remote host closed the connection]
hhugo has joined #ocaml
SethTisue has quit [Quit: SethTisue]
claudiuc has joined #ocaml
Kakadu has quit [Ping timeout: 246 seconds]
claudiuc has quit [Remote host closed the connection]
claudiuc has joined #ocaml
manizzle has joined #ocaml
arjunguha has joined #ocaml
tulloch has quit [Ping timeout: 240 seconds]
tulloch has joined #ocaml
Eyyub has quit [Ping timeout: 272 seconds]
alpounet has quit [Remote host closed the connection]
eikke__ has joined #ocaml
manizzle has quit [Ping timeout: 252 seconds]
alpounet has joined #ocaml
Kakadu has joined #ocaml
maattdd has joined #ocaml
dsheets_ has joined #ocaml
NoNNaN has joined #ocaml
tane has quit [Quit: Verlassend]
maattdd has quit [Ping timeout: 248 seconds]
groovy2shoes has joined #ocaml
maattdd has joined #ocaml
manizzle has joined #ocaml
rmb has quit [Ping timeout: 246 seconds]
maattdd has quit [Ping timeout: 260 seconds]
pgomes has joined #ocaml
tulloch has quit [Ping timeout: 264 seconds]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alpounet has quit [Remote host closed the connection]
alpounet has joined #ocaml
arjunguha has joined #ocaml
alpounet has quit [Remote host closed the connection]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hyperboreean has quit [Ping timeout: 255 seconds]
alpounet_ has joined #ocaml
hyperboreean has joined #ocaml
cago has quit [Quit: cago]
arjunguha has joined #ocaml
hyperboreean has quit [Ping timeout: 255 seconds]
hyperboreean has joined #ocaml
hyperboreean has joined #ocaml
hyperboreean has quit [Changing host]
jprakash has joined #ocaml
arjunguha has quit [Client Quit]
avsm has joined #ocaml
hyperboreean has quit [Ping timeout: 255 seconds]
jludlam has quit [Remote host closed the connection]
hyperboreean has joined #ocaml
dsheets_ has quit [Ping timeout: 272 seconds]
vfoley has quit [Ping timeout: 255 seconds]
vfoley has joined #ocaml
vfoley has quit [Changing host]
vfoley has joined #ocaml
arjunguha has joined #ocaml
hyperboreean has quit [Ping timeout: 255 seconds]
hyperboreean has joined #ocaml
Eyyub has joined #ocaml
manizzle has quit [Remote host closed the connection]
hyperboreean has quit [Ping timeout: 255 seconds]
alpounet_ has quit [Remote host closed the connection]
hyperboreean has joined #ocaml
manizzle has joined #ocaml
hhugo has quit [Quit: Leaving.]
maattdd has quit [Ping timeout: 255 seconds]
slash^ has joined #ocaml
axiles has quit [Remote host closed the connection]
groovy2shoes has quit [Ping timeout: 244 seconds]
maattdd has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lordkryss has quit [Ping timeout: 252 seconds]
arjunguha has joined #ocaml
shinnya has quit [Ping timeout: 244 seconds]
distantunclebob has joined #ocaml
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
slash^ has quit [Read error: Connection reset by peer]
arjunguha has joined #ocaml
acieroid has joined #ocaml
nicoo has quit [Ping timeout: 255 seconds]
BitPuffin has quit [Ping timeout: 255 seconds]
nicoo has joined #ocaml
nicoo has joined #ocaml
acieroid` has quit [Ping timeout: 255 seconds]
shinnya has joined #ocaml
Puffin has joined #ocaml
arjunguha has quit [Client Quit]
pgomes has quit [Quit: Leaving]
philtor has quit [Ping timeout: 244 seconds]
pgomes has joined #ocaml
arjunguha has joined #ocaml
pgomes has quit [Remote host closed the connection]
nicoo has quit [Ping timeout: 255 seconds]
Puffin has quit [Quit: See you on the dark side of the moon!]
BitPuffin has joined #ocaml
nicoo has joined #ocaml
nicoo has joined #ocaml
nicoo has quit [Changing host]
nicoo has quit [Ping timeout: 255 seconds]
shinnya has quit [Ping timeout: 255 seconds]
ggole has quit []
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicoo has joined #ocaml
shinnya has joined #ocaml
lordkryss has joined #ocaml
arjunguha has joined #ocaml
hhugo has joined #ocaml
arjunguha has quit [Client Quit]
arjunguha has joined #ocaml
eikke__ has quit [Ping timeout: 260 seconds]
arjunguha has quit [Client Quit]
philtor_ has joined #ocaml
Kakadu has quit [Quit: Konversation terminated!]
jludlam has joined #ocaml
philtor has joined #ocaml
arjunguha has joined #ocaml
ebzzry has joined #ocaml
tulloch has quit [Ping timeout: 260 seconds]
tobiasBora has quit [Quit: Konversation terminated!]
avsm has quit [Quit: Leaving.]
Sim_n has joined #ocaml
Sim_n has quit [Client Quit]
Simn has quit [Ping timeout: 240 seconds]
arjunguha has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
philtor has quit [Ping timeout: 255 seconds]
jprakash has quit [Quit: leaving]
eikke__ has joined #ocaml
tulloch has joined #ocaml
arjunguha has joined #ocaml
tulloch has quit [Ping timeout: 264 seconds]
eikke__ has quit [Ping timeout: 260 seconds]
alexst_ has joined #ocaml
eikke__ has joined #ocaml
WraithM has joined #ocaml
alexst has quit [Ping timeout: 248 seconds]
maattdd has quit [Ping timeout: 264 seconds]
<philtor_>
Anybody up for some Async questions?
* companion_cube
doesn't know Async, sorry
Hannibal_Smith has quit [Quit: Sto andando via]
thomasga has joined #ocaml
<Drup>
philtor_: don't ask to ask :)
ontologiae has joined #ocaml
distantunclebob has quit [Quit: Leaving.]
<philtor_>
Drup: I figured before I type a long question in I'd see if anyone would be able to answer it instead of typing into the void.
<Drup>
asynchronous communication, my dear
<Drup>
someone can answer it, and will answer it at some point
<Drup>
(maybe not instantly, but hey)
<philtor_>
I think I need something like tee. I'm looking at Pipe and see Pipe.transfer going from a reader to a writer.
<philtor_>
Drup: Im afraid that Deferred.t is often not answered ;)
<Drup>
(I don't know anything about Async, so can't help you myself)
<Drup>
you would be wrong :p
<philtor_>
ah, ok, see actually seems I was right.
<philtor_>
Maybe I should ask, is there anyone here who knows Async?
<rks`>
yes, but i'm going to sleep
<rks`>
:)
jludlam has quit [Read error: Connection reset by peer]
ivan\ has quit [Ping timeout: 248 seconds]
<philtor_>
Ok, I'll just put this out here: I've got a Tcp (socket) connection with Tcp.connect
<philtor_>
It returns a reader & writer to that socket.
<philtor_>
I'd like to set up an asynchronous function that reads from the reader side of the socket, checks for some aspect of the data stream and passes selected bytes from the stream to another function... actually a bit more complicated than that, it should pass every byte to some other selected function to be processed there.
<philtor_>
I'm thinking I need something like Pipe.filter..
<philtor_>
But let's just keep it simple for now, let's say I want to send everything that comes back from the socket (on the reader side) to stdout.
darkf has joined #ocaml
<whitequark>
philtor_: generally it is a bit foolish to expect people to answer at european night in a predominantly european channel (#ocaml)
<whitequark>
(though it is certainly not obvious from start.)
<philtor_>
Hoping there would be some folks in the Western hemisphere doing OCaml.
<whitequark>
you mean american :) and what I mean, they don't seem to frequent this channel. just saying what was my experience.
* whitequark
looks at the clock at 03:30
<Drup>
yeah, not a lot of jst people hanging here
<whitequark>
jst?
<whitequark>
oh
ivan\ has joined #ocaml
distantunclebob1 has joined #ocaml
<philtor_>
jst?
<Drup>
janestreet
madroach has quit [Ping timeout: 252 seconds]
<philtor_>
ah, ok. They probably have their own IRC
eikke__ has quit [Ping timeout: 260 seconds]
madroach has joined #ocaml
<philtor_>
Is Lwt more popular for this kind of thing? (outside of Janestreet)
<companion_cube>
apparently yes, it's the second most downloaded package on opam
<whitequark>
personally I think Lwt is better designed and I've seen it around more
<whitequark>
companion_cube: hm, I bet most of that is due to utop
<whitequark>
Drup: so I'm randomly wondering
<whitequark>
what's the idiomatic ppx equivalent for e.g. pa_ounit?