c74d3a4e has quit [Remote host closed the connection]
sivoais_ has joined #ocaml
tmtwd has quit [Remote host closed the connection]
sivoais has quit [Ping timeout: 268 seconds]
tmtwd has joined #ocaml
tmtwd has quit [Remote host closed the connection]
tmtwd has joined #ocaml
mort___ has quit [Quit: Leaving.]
c74d is now known as Guest58751
kandu has joined #ocaml
cojy has quit []
hcarty1 has joined #ocaml
keen__ has joined #ocaml
keen_ has quit [Ping timeout: 250 seconds]
hcarty1 has quit [Ping timeout: 240 seconds]
tokik_ is now known as tokik
AltGr has joined #ocaml
__uu__ has joined #ocaml
troydm has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
stephe has quit [Ping timeout: 250 seconds]
tianon has quit [Ping timeout: 256 seconds]
cojy_ has joined #ocaml
madroach has joined #ocaml
sivoais_ is now known as sivoais
sivoais has joined #ocaml
sivoais has quit [Changing host]
tianon has joined #ocaml
larhat2 has joined #ocaml
tmtwd has quit [Ping timeout: 240 seconds]
stephe has joined #ocaml
psy has quit [Ping timeout: 264 seconds]
psy has joined #ocaml
echo-area has joined #ocaml
swgillespie has joined #ocaml
swgillespie has quit [Max SendQ exceeded]
swgillespie has joined #ocaml
psy has quit [Ping timeout: 246 seconds]
higgs has joined #ocaml
__uu__ has quit [Remote host closed the connection]
__uu__ has joined #ocaml
cdidd_ has quit [Ping timeout: 240 seconds]
cdidd has joined #ocaml
cojy_ is now known as cojy
nullcatxxx_ has joined #ocaml
__uu___ has joined #ocaml
__uu__ has quit [Read error: Connection reset by peer]
skeuomorf has quit [Ping timeout: 240 seconds]
__uu__ has joined #ocaml
rgrinberg has joined #ocaml
__uu___ has quit [Ping timeout: 264 seconds]
swgillespie is now known as swgillespie[GT]
jfntn has joined #ocaml
AltGr has left #ocaml [#ocaml]
mac10688_ has quit [Ping timeout: 264 seconds]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
darkf has joined #ocaml
darkf has joined #ocaml
darkf has quit [Changing host]
jfntn has quit [Remote host closed the connection]
hcarty1 has joined #ocaml
nullcatxxx_ has joined #ocaml
hcarty1 has quit [Ping timeout: 250 seconds]
<echo-area>
What is the difference of a series of `type`s and `type ... and ... and ...`?
gperetin has quit [Ping timeout: 246 seconds]
neferty has quit [Read error: Connection reset by peer]
mehdi_ has quit [Ping timeout: 246 seconds]
averell has quit [Ping timeout: 246 seconds]
mehdi_ has joined #ocaml
gperetin has joined #ocaml
Algebr has joined #ocaml
neferty has joined #ocaml
Guest58751 has quit [Remote host closed the connection]
AltGr has joined #ocaml
vgrbr has quit [Ping timeout: 240 seconds]
Guest58751 has joined #ocaml
toomuchtvrotsurb has quit [Remote host closed the connection]
<Algebr>
Drup: what would be the appropriate class type definition for this js code? http://pastebin.com/vL2F8csK ,specifically the Function foo object.
kushal has joined #ocaml
zpe has joined #ocaml
SomeDamnBody has joined #ocaml
vishesh has joined #ocaml
zpe has quit [Ping timeout: 265 seconds]
zpe has joined #ocaml
MercurialAlchemi has joined #ocaml
__uu___ has joined #ocaml
__uu__ has quit [Ping timeout: 255 seconds]
__uu___ has quit [Ping timeout: 250 seconds]
higgs has quit [Quit: Leaving]
<Algebr>
Drup: Also how can I write the signature of something that is a Js.readonly_prop but one that can return different things, say a string sometimes and an array some other times. I don't know how the syntax _ overloading could help here since its a property, not a method.
skeuomorf has joined #ocaml
<Algebr>
Why can't an object refer to its own type within a method signature?
MercurialAlchemi has quit [Ping timeout: 260 seconds]
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
psy_ has joined #ocaml
<flux>
algebr, you can use this: class bar = object (self : 'self) method foo (a : 'self) : 'self = a end
<Algebr>
What is the explanation of this need
<def`>
Algebr: you need to name the type
<def`>
it is useful to have names to refer to things
<Enjolras>
Algebr: you have to bind the current instance of the object to a name explicitly to use it in ocaml. so 'self is just naming the type of the binding to the current instance.
<flux>
well, for one it allows redefining the type and using the previous type while doing it.
<flux>
..I suppose that's a bit far-fetched
<Enjolras>
since you explicitly need to bind self, it's expected you have to explicitly name the type of self too
<flux>
what algebr is asking why not simply bring the name xxx from class xxx into the scope and use that
<flux>
well, for one I suppose there might not even be 'class xxx' around.
<flux>
..sounds like a reasonable reason
__uu__ has joined #ocaml
<flux>
or if algebr is asking why isn't there a type called 'self' automatically around, well then that's much easier to answer: in case of objects being defined in each other, you want to have the option to call it something else
<def`>
class and types are different things
<Algebr>
I initially tried class type foo = object method bar : bar -> unit
<def`>
although yes, it is very subtle. OOP is too complicatee :)
<Algebr>
err, rather method bar : foo -> unit
<flux>
I rather like the way ocaml solves the 'self' naming problem
<flux>
you can name the value and the type as you like
<flux>
and works great in anonymous objects as well
low-prof1 has joined #ocaml
toomuchtvrotsurb has joined #ocaml
kushal has quit [Quit: Leaving]
MercurialAlchemi has joined #ocaml
<echo-area>
With `type f 'a 'b = 'a -> 'b`, I tried to do `let f1 (f: 'a 'b f) x = f x` but got the error "invalid type" on `'b`, how do I write it correctly?
<Drup>
Algebr: the overloading things works for prop too, iirc
SomeDamnBody has quit [Ping timeout: 255 seconds]
<flux>
echo-area, type f 'a 'b itself is a syntax errror in normal ocaml, does camlp4 acept that?
<flux>
echo-area, type ('a, 'b) f = .., I guess the how to use that type follows normally
<echo-area>
flux: `type f 'a 'b = 'a -> 'b` works in utop with camlp4 loaded
<echo-area>
flux: Oh I realized the parentheses just now
<echo-area>
flux: Thank you
<flux>
I guess campl4 has some concessions for revised ocaml syntax
<flux>
echo-area, no problem. happy typing :)
moei has quit [Read error: Connection reset by peer]
<Algebr>
Drup: Oh great, I'm trying to use these overloading tricks but they aren't working, crapping out. Example method createServer : Js.Unsafe.any Js.t -> server Js.t Js.meth is not working also as method createServer_with_callback : (incoming_message Js.t -> server_response Js.t -> unit) Js.callback -> server Js.t Js.meth
moei has joined #ocaml
<Algebr>
oh I think its cause of the second _, will try removing that
<Algebr>
Yep it was that.
__uu__ has quit [Remote host closed the connection]
SomeDamnBody has joined #ocaml
psy_ has quit [Ping timeout: 246 seconds]
<Algebr>
Drup: Since I have to do Js.wrap_callback basically all the time, why isn't that then a syntax extension as well
<Drup>
Algebr: because you are not passing callbacks to javascript most of the time
<Drup>
(apparently *you* are, but that's not that common)
<Drup>
ppx_js_gen helps on that point
<Drup>
also, if you are passing objects around, you should use the immediate object syntax
swgillespie[GT] has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<companion_cube>
those node.js bindings must use callbacks a lot though
<Algebr>
endless
<Algebr>
debugging this crap for regular node developers must be a nightmare.
<companion_cube>
:)
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
toomuchtvrotsurb has quit [Ping timeout: 264 seconds]
Bluddy has quit [Quit: Connection closed for inactivity]
<MercurialAlchemi>
you have different promises library, but outside of that it's callback hell
kushal has joined #ocaml
<MercurialAlchemi>
I wonder how many errors slip unseen and uncaught in a typical nodejs codebase
<MercurialAlchemi>
(hell even in "regular" JS with Ajax there is nothing easier than forgetting to handle errors)
__uu__ has joined #ocaml
nullcatxxx_ has joined #ocaml
<flux>
simply forgetting 'return' makes code just magically stop :)
__uu__ has quit [Read error: Connection reset by peer]
__uu__ has joined #ocaml
<Algebr>
right or wrong, there's a lot of cool and useful stuff in JS world
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<MercurialAlchemi>
Algebr: yeah, but I still know where the most unreliable part of my stack lives :)
Simn has joined #ocaml
yomimono has joined #ocaml
ollehar has joined #ocaml
Haudegen has joined #ocaml
Ravana has joined #ocaml
sh0t has joined #ocaml
AltGr has left #ocaml [#ocaml]
AltGr has joined #ocaml
obadz has quit [Ping timeout: 240 seconds]
obadz has joined #ocaml
sh0t has quit [Ping timeout: 246 seconds]
freehck has joined #ocaml
obadz has quit [Ping timeout: 250 seconds]
obadz has joined #ocaml
ygrek has joined #ocaml
jonludlam has joined #ocaml
tibor_ has joined #ocaml
<tibor_>
Hi, How can I avoid circular build errors if I have cross dependencies?(in ocaml)
<tibor_>
Do we have a macro mechanism like in c with #ifdef ...?
<Enjolras>
can check ccpo
<Enjolras>
cppo*
<freehck>
tibor_: How about making a logical tree of functions?
<freehck>
Cross dependencies in projects are bad. Really.
<tibor_>
It is not posible to build a logica tree because the project is up to 400k lines É)
<tibor_>
:(
<freehck>
Some languages provide with abilities of importing a part of interfaces, but it turns such projects into a crap in the end.
<freehck>
tibor_: I understand. I have the same problem with ocaml projects adopted by me.
<freehck>
I think it's more an architectural problem.
<zozozo>
tibor_: you could break cross dependencies using functors
__uu__ has quit []
__uu__ has joined #ocaml
<tibor_>
And how you solved the problem? (if there are structures in different places and you need a certain library to solve a functionally new module)
psy_ has joined #ocaml
kalzz has quit [Quit: exit]
kalzz has joined #ocaml
rgrinberg has quit [Ping timeout: 264 seconds]
kushal has quit [Ping timeout: 256 seconds]
<freehck>
tibor_: I've moved louds of functions, and replaced modules for each <Module>.fun I've found. sed if a good thing for this purpose.
<freehck>
tibor_: another interesting solution could be separating types and interfaces into different modules.
<freehck>
tibor_: So u can use them without require their interfaces.
<freehck>
tibor_: but I don't like this way.
larhat2 has quit [Quit: Leaving.]
AlexRussia has quit [Ping timeout: 240 seconds]
kdas_ has joined #ocaml
yomimono has quit [Ping timeout: 256 seconds]
ofzyh__ has quit [Quit: Konversation terminated!]
mort___1 has joined #ocaml
lobo__ has joined #ocaml
zpe has quit [Ping timeout: 246 seconds]
adrien_ is now known as adrien
mort___ has joined #ocaml
zpe has joined #ocaml
octachron has joined #ocaml
mort___ has quit [Client Quit]
mort___ has joined #ocaml
mort___1 has quit [Ping timeout: 252 seconds]
mort___ has quit [Client Quit]
mort___ has joined #ocaml
ely-se has quit [Quit: leaving]
ely-se has joined #ocaml
kdas_ has quit [Quit: Leaving]
kdas_ has joined #ocaml
ely-se has quit [Quit: leaving]
ygrek has quit [Ping timeout: 268 seconds]
AltGr has left #ocaml [#ocaml]
Kakadu has joined #ocaml
zpe has quit [Remote host closed the connection]
tmtwd has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
dsheets has joined #ocaml
dsheets has quit [Client Quit]
dsheets has joined #ocaml
infinity0_ has quit [Remote host closed the connection]
infinity0 has joined #ocaml
infinity0 has quit [Remote host closed the connection]
ely-se has joined #ocaml
Maelan_ is now known as Maelan
infinity0 has joined #ocaml
antkong_ has joined #ocaml
ggole has joined #ocaml
_andre has joined #ocaml
echo-area has quit [Remote host closed the connection]
antkong_ has quit [Quit: antkong_]
Haudegen has quit [Ping timeout: 246 seconds]
damason has quit [Quit: No Ping reply in 180 seconds.]
damason has joined #ocaml
mort___ has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
dsheets has quit [Ping timeout: 252 seconds]
BitPuffin has joined #ocaml
psy_ has quit [Ping timeout: 260 seconds]
tianon has quit [Ping timeout: 250 seconds]
tianon has joined #ocaml
__uu__ has quit [Ping timeout: 252 seconds]
mort___ has joined #ocaml
mort___ has quit [Read error: Connection reset by peer]
mort___1 has joined #ocaml
xet7 has joined #ocaml
ely-se has quit [Quit: leaving]
dsheets has joined #ocaml
ely-se has joined #ocaml
mort___1 has quit [Ping timeout: 250 seconds]
vgrbr has joined #ocaml
SomeDamnBody has quit [Ping timeout: 255 seconds]
ceryo has joined #ocaml
infinity0 has quit [Ping timeout: 265 seconds]
infinity0 has joined #ocaml
ely-se has quit [Quit: leaving]
rgrinberg has joined #ocaml
BitPuffin has quit [Ping timeout: 272 seconds]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
ely-se has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
ely-se has quit [Quit: leaving]
SomeDamnBody has joined #ocaml
ely-se has joined #ocaml
ceryo has quit [Ping timeout: 246 seconds]
ceryo_ has joined #ocaml
sternens1emann is now known as sternenseemann
AlexRussia has joined #ocaml
ceryo has joined #ocaml
ceryo_ has quit [Ping timeout: 250 seconds]
Haudegen has quit [Remote host closed the connection]
sepp2k has joined #ocaml
hcarty1 has joined #ocaml
tane has joined #ocaml
BitPuffin has joined #ocaml
obadz has quit [Ping timeout: 265 seconds]
mort___ has joined #ocaml
ely-se has quit [Quit: leaving]
obadz has joined #ocaml
mort___ has left #ocaml [#ocaml]
Haudegen has joined #ocaml
lobo__ has quit [Quit: WeeChat 1.0.1]
<hcarty1>
Any suggestions for diagnosing an issue using cmdliner where the code stops/hangs after collecting command line arguments but before starting the "main" program?
<hcarty1>
I'm trying to reduce it to a simple example but haven't been able to yet
<hcarty1>
And as soon as I wrote that I found the issue... sorry for the noise
<companion_cube>
:)
<companion_cube>
it's not too noisy here, don't worry
<hcarty1>
To greet the CC way: o/
<companion_cube>
\o
<companion_cube>
apparently the mirage people are talking about the ultimate logging tool
<hcarty1>
That sounds nice
<zozozo>
and it would be ?...
<companion_cube>
it would be a logging lib by Bünzli apparently
<companion_cube>
;)
<hcarty1>
I had assumed it woudl be a microkernel tracking logs and their changes through time with irmin
<zozozo>
any release date expected ?
<companion_cube>
hcarty1: :D
<companion_cube>
they probably will do something that crazy at some point
raphaelss has joined #ocaml
cball has quit [Quit: Leaving]
dsheets has quit [Ping timeout: 240 seconds]
cball has joined #ocaml
toomuchtvrotsurb has joined #ocaml
hcarty1 has quit [Quit: WeeChat 1.3]
ely-se has joined #ocaml
<freehck>
Hey, programmers. How about a little challenge? Help me to decrypt this: "pl, eybkj! q honvr n vha rgkwgrtbwb zmwlbw. qy qu xhz qvxkie. omwg eoht huqqk, gkg nb! dout"
<freehck>
Frequency analysis hasn't helped. it seems not to be ROT13 or chaesar cipher.
<companion_cube>
I'd guess "pl," is "hi,"
<freehck>
So I dunno what it is. :)
<freehck>
i tried this.
<freehck>
btw, 2 names could exist in this message. Alice and Bob.
<freehck>
companion_cube: the most complicated thing is "qy" and "qu". I can't even guess what the prepositions could it be.
<freehck>
*it could be
Haudegen has quit [Ping timeout: 250 seconds]
aftershave has joined #ocaml
<ggole>
Do you know that each character maps to another character consistently within the ciphertext?
<freehck>
ggole: what is ciphertext?
<freehck>
is it an utility?
jabesed has joined #ocaml
<freehck>
In the case you're asking wether some map exists, the answer is "i don't know".
<ggole>
The thing you are trying to decipher
<fds>
"qy qu" could be "at an"
<freehck>
fds: ah! I forgot about articles. :)
<fds>
Maybe. I haven't checked the distances.
<fds>
Or, not distances, if you say it's not a rotation.
jeffmo has joined #ocaml
<Cypi>
Seeing that there is a 'q' all alone, and then a word with 'qq' inside, it's likely it's not just a mono-alphabetical substitution.
<thizanne>
I don't know if that's cheating, but I found http://ideone.com/sqi5NA with a google search
<thizanne>
(which doesnt do anything interesting anyway)
<freehck>
thizanne: have already seen. :)
zoetus has joined #ocaml
<zoetus>
has anyone seen this warning message 'ld: warning: directory not found for option '-Llib'' on os x?
<zoetus>
that appears to be coming from ocamlfind
picachu has joined #ocaml
<zoetus>
i cannot figure out how to get rid of this obnoxious warning, although my code builds and runs fine
tane has quit [Quit: Verlassend]
marsam has joined #ocaml
Haudegen has joined #ocaml
<freehck>
zoetus: do u have <lib> substring in your _tags file?
tibor_ has quit [Quit: Page closed]
<zoetus>
hmm, i don't think i even have a _tags file
<zoetus>
i'm using oasis, if that helps any
Mercuria1Alchemi has joined #ocaml
<freehck>
zoetus: but maybe do you call ocamlbuild with -I option?
<freehck>
sorry, I don'y know what oasis is.
<zoetus>
well anyway, i fixed it by adding a 'lib' directory at the root of my project
<zoetus>
why this is happening, who knows
<zoetus>
nothing is placed in that directory by the build