al-damiri has quit [Quit: Connection closed for inactivity]
mcc has joined #ocaml
orbifx-m2 has joined #ocaml
orbifx-m2 has quit [Client Quit]
orbifx-m has quit [Ping timeout: 272 seconds]
sh0t has quit [Remote host closed the connection]
tennix has joined #ocaml
Ravana has quit [Quit: Goodbye for now!]
Ravana has joined #ocaml
groovy2shoes has quit [Ping timeout: 250 seconds]
benwbooth has quit [Read error: Connection reset by peer]
benwbooth has joined #ocaml
<struk|desk>
Algebr: you host the ocaml meetups in sf right?
Unb3kannt has quit [Ping timeout: 240 seconds]
rand__ has quit [Quit: leaving]
michbad has joined #ocaml
johnelse has quit [Ping timeout: 250 seconds]
johnelse has joined #ocaml
johnelse has quit [Ping timeout: 240 seconds]
johnelse has joined #ocaml
darkf has joined #ocaml
pyooooooooooooon has quit [Ping timeout: 276 seconds]
pierpa has quit [Ping timeout: 272 seconds]
rgrinberg has quit [Ping timeout: 276 seconds]
FreeBirdLjj has joined #ocaml
<copy`>
I want to #use a file without manually using #use_mod to load its dependencies (by dependency I mean .ml files in the same directory). So I'm using `utop -I _build`. Now utop completes my dependencies (and I can even use their types), but when I tried to use them it says `Error: Reference to undefined global Bar` (like a linker error)
A1977494 has joined #ocaml
Algebr` has joined #ocaml
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
slash^ has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 240 seconds]
AlexDenisov has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
<copy`>
Okay, the solution was to build my whole projects as a bytecode library (.cma) and then use #load and everything is there
jonasen has joined #ocaml
<struk|desk>
companion_cube: you around? want to make an addition and/or change to ring buffer
<companion_cube>
around, but not for long, have to catch a train
<struk|desk>
companion_cube: the short is, I want to (1) to create a buffer from an array with copying, sometimes, and (2) be able to read the entire array without copying, if the buffer is full (eg. when I don't care about order for some particular algorithm)
<companion_cube>
(1) is already possible, isn't it?
<struk|desk>
*without
<struk|desk>
sorry
<struk|desk>
lol
<companion_cube>
ah
<companion_cube>
you'd mean replace the internal buffer array, then?
<companion_cube>
I'm not sure how you can avoid copying
<struk|desk>
well not replace as much as initalize it that way
<struk|desk>
but I don't care about that one so much
<struk|desk>
the bigger deal is the latter
<struk|desk>
also, even something like array_map would be nice
<struk|desk>
eg. val array_map : t -> ('a -> 'b) Array.t where 'a is the element type of the buffer
<struk|desk>
oops, t -> ('a -> 'b) -> 'b Array.t I mean
<struk|desk>
but I rather just have the buffer directly, we still be faster in my case
<struk|desk>
on further thought, maybe I can use something like iter. let me dwell it. catch your train, chat later
<companion_cube>
a init function could be doable indeed
MercurialAlchemi has joined #ocaml
<struk|desk>
if you are refering to creating an array from an array without a copy, yeah that could work.