<Algebr>
I want to get the client IP address for someone that connected to my cohttp server. Where can I find this information? I tried Cohttp.Connection.to_string and via Conduit's TCP flow record, but that gave me the server's ip.
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
samrat has quit [Ping timeout: 246 seconds]
MercurialAlchemi has joined #ocaml
samrat has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
cdidd has quit [Remote host closed the connection]
sailorswift has joined #ocaml
AlexRussia has joined #ocaml
Algebr has quit [Ping timeout: 265 seconds]
samrat has quit [Ping timeout: 246 seconds]
<AltGr>
Algebr: I'd like that answer too
ggole has joined #ocaml
cdidd has joined #ocaml
xificurC has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 245 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olibjerd has joined #ocaml
olibjerd has left #ocaml [#ocaml]
ryanartecona has joined #ocaml
sailorswift has joined #ocaml
ivali has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
blandflakes has joined #ocaml
blandflakes has quit [Client Quit]
ivali has quit [Ping timeout: 256 seconds]
mcc has quit [Quit: This computer has gone to sleep]
tane has joined #ocaml
ohama has quit [Read error: Connection reset by peer]
ohama has joined #ocaml
pyon has quit [Ping timeout: 246 seconds]
pyon has joined #ocaml
psy_ has quit [Quit: Leaving]
octachron has joined #ocaml
govg has quit [Ping timeout: 272 seconds]
zpe has joined #ocaml
sh0t has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
slicefd has joined #ocaml
<Drup>
mfp: you should really work on the cohttp branch :/
ohama has quit [Read error: Connection reset by peer]
<flux>
altgr, well, algebr is gone, but you could try searching for calls to getsockname and find out where (if) the informations ends up at..
<flux>
failing that, get the socket descriptor directly (I don't know how) and use getsockname on it
<AltGr>
Thanks; don't really need it now, it's just that I remembered hitting the same issue when trying to print debug logs a while ago. Since it was just for debug I didn't dig too far :)
<AltGr>
If you feel like it, any improvement in that direction is very welcome :)
matason has joined #ocaml
darkf_ has joined #ocaml
darkf has quit [Ping timeout: 244 seconds]
<Drup>
but that's about the cmdliner interface, I just want more things in the OCaml API
Haudegen has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
kakadu has joined #ocaml
Haudegen has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
mrm has quit [Ping timeout: 244 seconds]
dsheets has joined #ocaml
yomimono has joined #ocaml
AltGr has left #ocaml [#ocaml]
ely-se has joined #ocaml
ely-se has quit [Client Quit]
ely-se has joined #ocaml
cdidd has quit [Remote host closed the connection]
tennix has quit [Read error: No route to host]
ollehar has joined #ocaml
cdidd has joined #ocaml
antkong has joined #ocaml
ely-se has quit [Quit: leaving]
antkong has quit [Ping timeout: 272 seconds]
yomimono_ has joined #ocaml
yomimono has quit [Read error: Connection reset by peer]
grouzen has quit [Ping timeout: 244 seconds]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohama has joined #ocaml
<mfp>
Drup: will get to it... the plan was to get the latest and greatest release in the 2.x series out the door (because who knows when 3.0 will be out) and serve as a baseline for cohttp(_rebased) performance
<Drup>
ok, fair enough
<Drup>
I'm just afraid you are doing work that is not useful for the next version
<mfp>
Drup: so far, I see the following slowdows vs stock 2.6 (before this weekend's work) -> 404 50% trivial page (~ 40 byte) 25%
<mfp>
*slowdowns
<Drup>
mfp: well, there are several perf bugs in cohttp too, but you'll have to see that with them :)
<mfp>
higher slowdowns for smaller responses => high connection overhead, and probably large buffer allocation (as addressed in my latest PRs)
BitPuffin|osx has quit [Ping timeout: 260 seconds]
_andre has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
antkong has quit [Ping timeout: 244 seconds]
ollehar has joined #ocaml
octachron has quit [Quit: Leaving]
ely-se has joined #ocaml
antkong has joined #ocaml
grouzen has joined #ocaml
yomimono_ has quit [Ping timeout: 250 seconds]
antkong has quit [Ping timeout: 240 seconds]
ryanartecona has joined #ocaml
darkf_ is now known as darkf
Haudegen has quit [Ping timeout: 246 seconds]
ryanartecona has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
tmtwd has joined #ocaml
matason has quit []
ely-se has quit [Quit: leaving]
rand000 has joined #ocaml
sepp2k has joined #ocaml
matason has joined #ocaml
tmtwd has quit [Ping timeout: 244 seconds]
ivali has joined #ocaml
Simn has joined #ocaml
demonimin has joined #ocaml
<ivali>
Hello, any way to write inline assembly with ocaml (to call cpu instructions like clz/ctz) ?
<Leonidas>
ivali: you could do that from a C module?
<ivali>
oh, yes.
<ivali>
ty
lordkryss has joined #ocaml
ryanartecona has joined #ocaml
ely-se has joined #ocaml
ely-se has quit [Quit: leaving]
domsj has joined #ocaml
<domsj>
Hi, any ctypes specialists in the room?
<dsheets>
better to just ask your question
ely-se has joined #ocaml
<domsj>
Ok. I can bind to functions in other libraries, but not to a c function defined in a .c 'stubs' file which is directly compiled into the same executable ... is that expected?
lordkryss has quit []
<domsj>
I get this error: Fatal error: exception Dl.DL_error("/home/jan/dev/alba/alba: undefined symbol: _crc32c_generic")
jrslepak has quit [Ping timeout: 240 seconds]
<domsj>
when using objdump -d on the executable I can see the symbol being there though
kdas_ has joined #ocaml
jrslepak has joined #ocaml
kdas_ has quit [Read error: Connection reset by peer]
kdas_ has joined #ocaml
<dsheets>
domsj, either use stub generation and then you don't require dynamic linking
kdas_ is now known as kushal
kushal has quit [Changing host]
kushal has joined #ocaml
<dsheets>
or... (there is another way, one moment I need to find the flag)
<dsheets>
domsj, pass -E to the linker
izaak has joined #ocaml
ely-se has quit [Quit: leaving]
tane has quit [Ping timeout: 244 seconds]
<ivali>
i am a newbie. i am trying to implement the ctz (count trailing zeroes function). program fails at line 6 with syntax error http://pastebin.com/LbhAPcEQ
<ivali>
can anyone point me the bug?
<MasseR>
ivali: you forgot 'in'
tane has joined #ocaml
<flux>
ivali, the let-syntax for top-level definitons is: let a = expr and the let-in-syntax for expressions is: let a = expr1 in expr2
k1000 has joined #ocaml
pyon has quit [Quit: Can't you stop what's happening?]
tmtwd has joined #ocaml
<ivali>
got it, thanks!
BitPuffin has joined #ocaml
ryanartecona has quit [Ping timeout: 265 seconds]
ely-se has joined #ocaml
izaak has quit [Quit: izaak]
darkf has quit [Read error: Connection reset by peer]
darkf has joined #ocaml
ivali- has joined #ocaml
ivali has quit [Ping timeout: 246 seconds]
igoroliveira has joined #ocaml
Guest63296 has joined #ocaml
shinnya has joined #ocaml
Guest63296 has joined #ocaml
Guest63296 has quit [Changing host]
Guest63296 is now known as pyon-
pyon- is now known as pyon
pyon has quit [Quit: fix config (hopefully)]
jao has joined #ocaml
MercurialAlchemi has joined #ocaml
yomimono_ has joined #ocaml
yomimono_ has quit [Ping timeout: 252 seconds]
ivali has joined #ocaml
ivali- has quit [Ping timeout: 244 seconds]
ollehar has quit [Ping timeout: 246 seconds]
samrat has joined #ocaml
slash^ has joined #ocaml
sailorswift has joined #ocaml
darkf has quit [Quit: Leaving]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
psy_ has joined #ocaml
tane has quit [Ping timeout: 265 seconds]
yomimono has joined #ocaml
cross has quit [Quit: leaving]
cross has joined #ocaml
ely-se has quit [Quit: leaving]
Guest38 has joined #ocaml
tane has joined #ocaml
ygrek has joined #ocaml
fantasticsid has joined #ocaml
grouzen has quit [Ping timeout: 256 seconds]
fantasticsid has quit [Remote host closed the connection]
yomimono has quit [Read error: Connection reset by peer]
fantasticsid has joined #ocaml
yomimono has joined #ocaml
fantasticsid has quit [Remote host closed the connection]
fantasticsid has joined #ocaml
ensalada has joined #ocaml
AlexRussia has quit [Ping timeout: 255 seconds]
tane has quit [Ping timeout: 244 seconds]
zpe has quit [Remote host closed the connection]
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has joined #ocaml
nullcatxxx_ has joined #ocaml
fantasticsid has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
domsj has quit [Ping timeout: 256 seconds]
fantasticsid has joined #ocaml
jeffmo has joined #ocaml
Guest38 has joined #ocaml
fantasticsid has quit [Remote host closed the connection]
Guest38 has quit [Client Quit]
Guest38 has joined #ocaml
Guest38 has quit [Ping timeout: 256 seconds]
j0sh__ is now known as j0sh
MrScout has joined #ocaml
MrScout_ has joined #ocaml
MrScout has quit [Remote host closed the connection]
slicefd has quit [Quit: Leaving]
AlexRussia_ has joined #ocaml
AlexRussia has quit [Ping timeout: 265 seconds]
jwatzman|work has joined #ocaml
ygrek has quit [Ping timeout: 255 seconds]
yomimono has quit [Read error: Connection reset by peer]
matason has quit []
yomimono has joined #ocaml
ivali has quit [Ping timeout: 246 seconds]
yomimono has quit [Ping timeout: 250 seconds]
dongcarl has joined #ocaml
Guest38 has joined #ocaml
tmtwd has quit [Ping timeout: 244 seconds]
samrat has quit [Ping timeout: 256 seconds]
ygrek has joined #ocaml
systmkor has quit [Ping timeout: 272 seconds]
tmtwd has joined #ocaml
ggole has quit []
tmtwd has quit [Ping timeout: 240 seconds]
systmkor has joined #ocaml
jao has quit [Ping timeout: 246 seconds]
ivali has joined #ocaml
dsheets has quit [Ping timeout: 240 seconds]
dongcarl has quit [Quit: Leaving...]
srcerer has quit [Quit: ChatZilla 0.9.92 [Firefox 39.0.3/20150806001005]]
c74d has quit [Read error: Connection reset by peer]
Algebr has joined #ocaml
zpe has joined #ocaml
c74d has joined #ocaml
srcerer has joined #ocaml
aftershave has joined #ocaml
aftershave has quit [Client Quit]
samrat has joined #ocaml
dsheets has joined #ocaml
kakadu has quit [Quit: Page closed]
malc_ has joined #ocaml
tane has joined #ocaml
kushal has quit [Quit: Leaving]
BitPuffin has quit [Ping timeout: 272 seconds]
samrat has quit [Ping timeout: 250 seconds]
zpe has quit [Remote host closed the connection]
samrat has joined #ocaml
sh0t has joined #ocaml
tmtwd has joined #ocaml
kakadu has joined #ocaml
sh0t has quit [Ping timeout: 255 seconds]
slash^ has quit [Read error: Connection reset by peer]
MercurialAlchemi has quit [Ping timeout: 256 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
GeorgeHahn has joined #ocaml
kushal has joined #ocaml
MercurialAlchemi has joined #ocaml
ollehar has joined #ocaml
tmtwd has joined #ocaml
psy_ has quit [Ping timeout: 250 seconds]
nullcatxxx_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
t4nk248 has joined #ocaml
samrat has quit [Ping timeout: 244 seconds]
Lis has joined #ocaml
<Algebr>
assert is actually being executed at run time right? Just like the when guard?
<smondet>
Algebr: yes, you can also disable all the assert calls with a compiler flag
Simn has quit [Quit: Leaving]
jwatzman|work has quit [Quit: jwatzman|work]
tmtwd has quit [Ping timeout: 272 seconds]
zpe has joined #ocaml
GeorgeHahn has quit [Read error: Connection reset by peer]
nullcatxxx_ has joined #ocaml
tmtwd has joined #ocaml
BitPuffin|osx has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 255 seconds]
tmtwd has quit [Ping timeout: 265 seconds]
ollehar has quit [Ping timeout: 246 seconds]
tmtwd has joined #ocaml
ensalada has quit [Read error: Connection reset by peer]
ensalada has joined #ocaml
AlexRussia_ has quit [Ping timeout: 256 seconds]
_andre has quit [Quit: leaving]
zpe has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 245 seconds]
jwatzman|work has joined #ocaml
grouzen has joined #ocaml
tmtwd has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
Maelan has quit [Ping timeout: 250 seconds]
Maelan has joined #ocaml
jao has joined #ocaml
tmtwd has quit [Ping timeout: 250 seconds]
xificurC has quit [Ping timeout: 256 seconds]
ollehar has joined #ocaml
tane has quit [Quit: Verlassend]
tmtwd has joined #ocaml
<t4nk248>
quit
t4nk248 has quit []
mcc has joined #ocaml
mcc has quit [Client Quit]
ollehar has quit [Quit: ollehar]
jwatzman|work has quit [Quit: jwatzman|work]
MrScout_ has quit [Remote host closed the connection]
m4b has joined #ocaml
<m4b>
i'm having trouble with opam dependencies, and i can't seem to get opam to install this: http://github.com/m4b/elf2json; it fails with unbound Jsonm module (yes it's installed); i've tried everything i could think of, and i'm not sure what's wrong, any help would be much appreciated.
rand000 has quit [Quit: leaving]
ivali has quit [Ping timeout: 265 seconds]
ygrek has joined #ocaml
kushal has quit [Ping timeout: 240 seconds]
sepp2k has quit [Quit: Leaving.]
<Drup>
m4b: the rdr package is broken, it doesn't install anything
<m4b>
@drup: yes, sorry; the elf2json will depend on the latest version (2.0.1) i just pushed, and which is awaiting approval; but the error I get is that Jsonm is not found.
<m4b>
i've tested on my local machine where rdr is pinned and has all the proper libs installed
<m4b>
furthermore: if i do `ocaml setup.ml -build && ocaml setup.ml -install` it installs fine (modulo permission errors).
Denommus has joined #ocaml
<Drup>
can you push a decent opam file to your repo so that I can pin ?
<Drup>
ah, you have one in a subrepo
<m4b>
Drup: for rdr or elf2json
<Drup>
subdir*
<m4b>
ya; i was experimenting with oasis2opam because i thought it'd save me
<Drup>
ok, it builds for me now.
<m4b>
... what did you do?
<m4b>
even when totally gut the rdr deps, i still get a Jsonm unbound module error;
<Drup>
hum, It builds by itself but not in opam
<m4b>
yea, exactly; it's totally crazy
<m4b>
i'm not an opam foo master tho so i probably did something stupid on my part
nullcatx_ has joined #ocaml
nullcatxxx_ has quit [Ping timeout: 252 seconds]
mcc has joined #ocaml
<Drup>
I can reproduce locally with "./configure --prefix `opam config var prefix"
mcc has quit [Client Quit]
<Drup>
+`
tmtwd has quit [Ping timeout: 265 seconds]
<Drup>
it looks like an interesting oasis bug, but I don't understand why you are hiting it
nullcatxxx_ has joined #ocaml
jwatzman|work has joined #ocaml
<m4b>
Drup: so the local reproduction steps is for elf2json, yes? I don't understand either, since the opam file is extremely simple. If you remove the rdr deps from the project, and just call Jsonm or B64 (base64), I still get the unbound module error
<Drup>
yes
<Drup>
it's not opam related
<Drup>
it's oasis
<Drup>
you can trigger it by giving a --prefix option to the configure
<m4b>
ok, one sec, let me try on a different machine
nullcatx_ has quit [Ping timeout: 260 seconds]
<Drup>
wait, wait
<Drup>
why myocamlbuild.ml is not in the repository ?
<m4b>
..
<Drup>
you are using the static setup, you must include it
<Drup>
and the META file too
<m4b>
i pushed the myocamlbuild.ml file; the META should already be in /lib; i've messed with this repo trying to figure out stuff i could have busted the oasis so i need to tinker for a bit, but i think you may have figured it out;
<m4b>
i also hearted you in the commit :P
mcc has joined #ocaml
mcc has quit [Client Quit]
gpietro has quit [Ping timeout: 264 seconds]
<Algebr>
There is no way to use multiple opam switches at the same time, correct?
jeffmo has quit [Quit: jeffmo]
kakadu has quit [Remote host closed the connection]
paradoja has joined #ocaml
paradoja has left #ocaml [#ocaml]
<smondet>
Algebr: I think to some extent with the `--switch`
<smondet>
option
gpietro has joined #ocaml
destrius has quit [Remote host closed the connection]
<Drup>
Algebr: sure you can
Muzer has quit [Ping timeout: 250 seconds]
<Drup>
just use do: eval `opam config env --switch FOO` and it will switch locally in the terminal
<Drup>
You can then use different switches in different terminals
Muzer has joined #ocaml
Guest38 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Algebr>
excellent, I didn't know about that, that's what I want, different switches in different termainsl