<ggole>
You may need to include a directory so that the toplevel can find the bits.
<ggole>
With -I or #directory
musha68k has joined #ocaml
<raphaelss>
I think I understood the problem now
<raphaelss>
I was giving the full path to #load
malc_ has joined #ocaml
<raphaelss>
like #load "path/to/cmo";;
<raphaelss>
so it was finding the thing (the command completed without errors)
<raphaelss>
but I wasn't able to use what was defined in the file
<ggole>
Ah, that's annoying
<raphaelss>
adding the directory and just doing #load "cmo";; solved it
zpe has quit [Remote host closed the connection]
<raphaelss>
this behaviour feels like a bug
FreeBirdLjj has joined #ocaml
<raphaelss>
anyway, thank you
FreeBird_ has quit [Ping timeout: 256 seconds]
<ggole>
Yeah, the toplevel is easy to misuse
<ggole>
I did a fair amount of beating my head against it until I figured out how it all worked
FreeBirdLjj has quit [Ping timeout: 276 seconds]
NhanH has quit [Quit: Connection closed for inactivity]
raphaelss has quit [Ping timeout: 240 seconds]
aantron has joined #ocaml
silver has quit [Quit: rakede]
aantron has quit [Ping timeout: 256 seconds]
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
govg has joined #ocaml
raphaelss has joined #ocaml
cthuluh has quit [Ping timeout: 250 seconds]
thesnowdog3 has quit [Read error: Connection reset by peer]
thesnowdog3 has joined #ocaml
struk|desk|away is now known as struk|desk
Nahra``` has joined #ocaml
hnagamin has joined #ocaml
cthuluh has joined #ocaml
mort___ has joined #ocaml
Nahra``` has quit [Ping timeout: 265 seconds]
mac10688 has joined #ocaml
BitPuffin is now known as niffuPtiB
niffuPtiB is now known as avsshCgvO
silver has joined #ocaml
avsshCgvO is now known as BitPuffin
govg has quit [Remote host closed the connection]
Mirry has joined #ocaml
govg has joined #ocaml
mort___ has quit [Quit: Leaving.]
Mirry has quit [Quit: leaving]
groovy2shoes has quit [Quit: Leaving]
lokien_ has joined #ocaml
aantron has joined #ocaml
aantron has quit [Ping timeout: 256 seconds]
relrod_ is now known as relrod
groovy2shoes has joined #ocaml
dhil has joined #ocaml
MercurialAlchemi has joined #ocaml
mau has quit [Remote host closed the connection]
psy_ has joined #ocaml
ontologiae has quit [Ping timeout: 256 seconds]
slash^ has joined #ocaml
Fleurety has quit [Remote host closed the connection]
BitPuffin has quit [Ping timeout: 256 seconds]
ygrek has joined #ocaml
govg has quit [Ping timeout: 240 seconds]
govg has joined #ocaml
aantron has joined #ocaml
AltGr has joined #ocaml
Fleurety has joined #ocaml
mac10688 has quit [Ping timeout: 245 seconds]
sh0t has joined #ocaml
hcarty has joined #ocaml
AltGr has left #ocaml [#ocaml]
sh0t has quit [Ping timeout: 260 seconds]
mort___ has joined #ocaml
malc_ has quit [Quit: leaving]
mort___1 has joined #ocaml
lobo__ has quit [Quit: WeeChat 1.3]
JacobEdelman has joined #ocaml
BitPuffin has joined #ocaml
mort___ has quit [Ping timeout: 245 seconds]
_andre has quit [Quit: leaving]
Haudegen has quit [Ping timeout: 260 seconds]
Nahra has joined #ocaml
yegods has joined #ocaml
octachron has quit [Ping timeout: 272 seconds]
mort___1 has quit [Quit: Leaving.]
AlexRussia has quit [Quit: WeeChat 1.4-dev]
AlexRussia has joined #ocaml
lokien_ has quit [Quit: Connection closed for inactivity]
ril has joined #ocaml
govg has quit [Ping timeout: 245 seconds]
mort___ has joined #ocaml
mort___1 has joined #ocaml
Haudegen has joined #ocaml
ril is now known as ril[away]
ril[away] is now known as ril
mort___ has quit [Ping timeout: 276 seconds]
govg has joined #ocaml
govg has quit [Ping timeout: 264 seconds]
mort___1 has quit [Quit: Leaving.]
ygrek has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
shinnya has quit [Ping timeout: 265 seconds]
kakadu has quit [Quit: Page closed]
mort___ has joined #ocaml
raphaelss has quit [Ping timeout: 264 seconds]
yegods has quit [Remote host closed the connection]
raphaelss has joined #ocaml
mort___1 has joined #ocaml
ygrek has joined #ocaml
mort___1 has left #ocaml [#ocaml]
mort___ has quit [Ping timeout: 250 seconds]
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sbrouf has joined #ocaml
mort___ has joined #ocaml
BitPuffin has quit [Ping timeout: 250 seconds]
darkf has quit [Quit: Leaving]
foolishmonkey has quit [Quit: Leaving]
NhanH has joined #ocaml
Haudegen has quit [Ping timeout: 272 seconds]
kakadu has joined #ocaml
ril has joined #ocaml
palomer has quit [Quit: palomer]
zaquest has quit [Quit: Leaving]
Haudegen has joined #ocaml
octachron has joined #ocaml
sfri has quit [Remote host closed the connection]
chris2 has quit [Ping timeout: 250 seconds]
sfri has joined #ocaml
ril has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thesnowdog3 has quit [Read error: Connection reset by peer]
mort___ has quit [Quit: Leaving.]
thesnowdog3 has joined #ocaml
mort___ has joined #ocaml
xaimus has quit [Ping timeout: 276 seconds]
mort___ has quit [Client Quit]
Denommus has joined #ocaml
octachron has quit [Quit: Leaving]
zpe has joined #ocaml
xaimus has joined #ocaml
raphaelss has quit [Ping timeout: 240 seconds]
ggole has quit []
struk|desk is now known as struk|desk|away
slash^ has quit [Read error: Connection reset by peer]
xyh has joined #ocaml
dhil has quit [Quit: Leaving]
ril has joined #ocaml
xyh has left #ocaml [#ocaml]
lobo has joined #ocaml
codefo has joined #ocaml
yegods has joined #ocaml
yegods has quit [Remote host closed the connection]
yegods has joined #ocaml
_JusSx_ has joined #ocaml
Haudegen has quit [Ping timeout: 256 seconds]
lokien_ has joined #ocaml
yegods has quit [Remote host closed the connection]
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yegods has joined #ocaml
yomimono has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 256 seconds]
codefo has joined #ocaml
yegods has quit [Remote host closed the connection]
Haudegen has joined #ocaml
chris2 has joined #ocaml
sbrouf has quit [Quit: Quitte]
codefo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
larhat1 has joined #ocaml
egogiraffe has quit [Quit: wir müssen wissen -- wir werden wissen!]
_JusSx_ has quit [Quit: leaving]
yegods has joined #ocaml
yegods has quit [Remote host closed the connection]
mort___ has joined #ocaml
prepor has joined #ocaml
sepp2k has quit [Quit: Leaving.]
<prepor>
Hello! I have problem with some common pattern in Lwt uses `choose` and `map` with shared thread. https://github.com/ocsigen/lwt/issues/211. I don't have any problems with such patterns in Async (example also in ticket). Can anyone point me in the right direction? Thank you
Denommus has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<smondet>
prepor: how do you tell there is a memory leak?
<hnrgrgr>
prepor: what if you replace `wait` by `task`, and `choose` by `pick` ?
<prepor>
hnagamin: i tried pick, nothing changed
<prepor>
smondet: it just eat 1gb for a few seconds
<hnrgrgr>
My guess is that "Lwt.map (fun _ -> `Stop) stopper;" bind many waiters that are never collected.
<prepor>
hnrgrgr: yes
<hnrgrgr>
prepor: did you tried `pick` together with `task` ?
<prepor>
hnrgrgr: there are not any "deregister" code in `choose`
<prepor>
hnrgrgr: 1 second
palomer has joined #ocaml
<prepor>
hnrgrgr: with `task` and `pick` i get Lwt.Canceled exception. It's nice, but not what I really want to :)
<hnrgrgr>
Yes, IIRC it is the only way to "unregister" things in Lwt.choose/pick. That is "kill" the others threads.
<smondet>
prepor: it's not "really" a memory leak; if I add `Gc.full_major ();` before `tick ()` the memory doesn't grow
<smondet>
the problem should be that the GC does not get the occasion to run (?)
<edwin>
could you use Lwt.protected and Lwt.cancel instead of Lwt.choose/pick?
<prepor>
smondet: I've just added Gc.full_major and heap is still growing (but much slower)
<hnrgrgr>
prepor: with task/choose, if you allocate a 'task' inside `tick`, everything is fine. No memory leak, no exception.
<smondet>
prepor: I have it running for a while now, it seems to be stable after a little while
<hnrgrgr>
ignore my last message, this is already the case in conduit.
zpe has quit [Remote host closed the connection]
<prepor>
hnrgrgr: yes, I thought about it, but looked for may be more convenient solution
<prepor>
hnrgrgr: async's solution looks like more thoughtful for me :)
<prepor>
hnrgrgr: thank you!
<hnrgrgr>
what is inconvenient here ?
groovy2shoes has joined #ocaml
<hnrgrgr>
there is far less "administrative burden". No need to register/unregister waiters for 'stop' at every tick.
yegods has joined #ocaml
<_berke_>
I'm trying to use gadts to define a function that can return bigarrays of different types. could anyone lend a hand? see here http://pastebin.com/0ppwRutW
<_berke_>
I have trouble with the cube_type_of_sexp. don't know if this even makes sense with gadts
<smondet>
_berke_: doesn't look possible, the type parameter cannot be "set" at runtime (you should look at https://github.com/rleonid/bau, leo has been thinking a lot about bigarrays lately)