flux changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml MOOC http://1149.fr/ocaml-mooc | OCaml 4.03.0 announced http://ocaml.org/releases/4.03.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
orbifx-m has joined #ocaml
orbifx-m2 has quit [Ping timeout: 272 seconds]
sepp2k has quit [Quit: Leaving.]
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.
<struk|desk> companion_cube: I need to have something like this so I can pass the array directly when possible to lacaml wrapped types (eg. Lacaml_D.Vec.t) : https://gist.github.com/struktured/25c58f35baf0317538a37b681a8bbfcf
<struk|desk> not sure what to call it though: to_unordered_array, to_array_unordered, to_array_fast?
<struk|desk> it is also sort of a "view" too though
<struk|desk> companion_cube: added a 2nd version of it. https://gist.github.com/struktured/25c58f35baf0317538a37b681a8bbfcf
michbad has quit [Remote host closed the connection]
mcc has quit [Quit: Connection closed for inactivity]
Algebr` has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tane has joined #ocaml
ggole has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
tmtwd has joined #ocaml
silver has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
slash^ has quit [Read error: Connection reset by peer]
Simn has joined #ocaml
tane has quit [Ping timeout: 276 seconds]
TheLemonMan has joined #ocaml
silver has quit [Read error: Connection reset by peer]
tane has joined #ocaml
fluter has quit [Ping timeout: 258 seconds]
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has quit [Ping timeout: 276 seconds]
fluter has joined #ocaml
octachron has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
AlexDenisov has joined #ocaml
tane has quit [Quit: Leaving]
tennix has quit [Ping timeout: 276 seconds]
sdothum has joined #ocaml
TheLemonMan has joined #ocaml
BitPuffin|osx has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thizanne has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
nojb_ has joined #ocaml
dhil has joined #ocaml
fluter has quit [Ping timeout: 258 seconds]
fluter has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 240 seconds]
pyon has joined #ocaml
Unb3kannt has joined #ocaml
jonasen has joined #ocaml
thizanne has quit [Ping timeout: 264 seconds]
Unb3kannt has quit [Quit: Lost terminal]
TheLemonMan has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonasen has joined #ocaml
jhaberku has joined #ocaml
copy` has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malc_ has joined #ocaml
Enjolras is now known as Enjolras_
Enjolras_ is now known as Enjolr
Enjolr is now known as Enjolras
slash^ has joined #ocaml
nojb_ has quit [Ping timeout: 276 seconds]
Algebr` has joined #ocaml
tennix has joined #ocaml
Algebr` has quit [Ping timeout: 250 seconds]
jonasen has joined #ocaml
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
Algebr` has joined #ocaml
rgrinberg has joined #ocaml
pyon is now known as pyooooooooooooon
Sorella has joined #ocaml
thizanne has joined #ocaml
pierpa has joined #ocaml
thizanne has quit [Ping timeout: 250 seconds]
MercurialAlchemi has quit [Remote host closed the connection]
octachron has quit [Quit: Leaving]
fluter is now known as f-
pyooooooooooooon is now known as pyon
tennix has quit [Ping timeout: 250 seconds]
rgrinberg has quit [Ping timeout: 272 seconds]
AlexDenisov has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
hcarty1 has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
TheLemonMan has quit [Ping timeout: 246 seconds]
TheLemonMan has joined #ocaml
thizanne has joined #ocaml
Algebr` has quit [Read error: Connection reset by peer]
Algebr` has joined #ocaml
Algebr` has quit [Read error: Connection reset by peer]
Algebr` has joined #ocaml
Algebr` has quit [Read error: Connection reset by peer]
Algebr` has joined #ocaml
malc_ has quit [Remote host closed the connection]
hcarty1 has quit [Ping timeout: 244 seconds]
darkf has quit [Quit: Leaving]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 264 seconds]
slash^ has quit [Read error: Connection reset by peer]
gasche` has joined #ocaml
nnuuaa has joined #ocaml
nnuuaa has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
tane has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
basis has joined #ocaml
ggole has quit []
basis has quit [Quit: basis]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sfri has quit [Quit: No Ping reply in 180 seconds.]
shinnya has joined #ocaml
sfri has joined #ocaml
Kakadu has joined #ocaml
copy` has joined #ocaml
rgrinberg has joined #ocaml
sh0t has joined #ocaml
<Algebr`> was there any way in oasis to do basically foo := $(shell 'echo foo')
<mrvn> don't you want that in myocamlbuild?
<Algebr`> yea, I will end up doing that, was hoping could just do it in oasis
tane has quit [Quit: Leaving]
<struk|desk> Algebr`: if you ever find out a trick for that be sure to blog it somewhere
<Algebr`> I do, its just by the myocamlbuild, just wnated it in oasis itself
<struk|desk> that's what I mean
<mrvn> you could probably write a plugin that sets a tag or something
jmiven has joined #ocaml
<struk|desk> yeah I should study that plugin architecture at some point
A1977494 has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 276 seconds]
madroach has quit [Ping timeout: 244 seconds]
madroach has joined #ocaml
<Algebr`> in myocamlbuild, what does ocamlbuild provide for just calling the shell and getting the result
<Algebr`> I dont' want to deal with this Sh thing, just $(shell )
gasche` has left #ocaml ["ERC (IRC client for Emacs 24.5.1)"]
gasche has quit [Remote host closed the connection]
michbad has joined #ocaml
<Algebr`> nvm, just implement it myself
gasche has joined #ocaml
<gasche> Algebr` you can call any OCaml code from myocamlbuild.ml
<gasche> but it provides a "run_and_read : string -> string" function that may be what you are looking for
<gasche> you should not hesitate to read signatures.mli, that is where the plugin API is described
<Algebr`> yes, run and read
<Algebr`> also, what other strings can flag take?
<Algebr`> besides "c" and "compile"
<Algebr`> I'm getting linking errors with C code, so presumably "l" "link"?