adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mmatt has quit [Remote host closed the connection]
dedgrant_ has quit [Ping timeout: 248 seconds]
pierpal has quit [Ping timeout: 256 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
jpx has joined #ocaml
<jpx> What do all of these [m] things mean
zmzm has joined #ocaml
<lyxia> They're matrix.org users
shinnya has quit [Ping timeout: 265 seconds]
sh0t has quit [Remote host closed the connection]
silver has quit [Read error: Connection reset by peer]
zmzm has quit [Quit: zmzm]
sh0t has joined #ocaml
<discord5> <mars0i> @apache2 Not sure if this is relevant, but you know you can convert between layouts with Genarray.change_layout, right? My understanding is that this is fast--it doesn't copy the data.
mfp has quit [Ping timeout: 260 seconds]
shinnya has joined #ocaml
dariusf has joined #ocaml
lbianc_ has joined #ocaml
neatonk has quit [Remote host closed the connection]
tormen has joined #ocaml
greenbagels has quit [Read error: Connection reset by peer]
greenbagels_ has joined #ocaml
neatonk1 has joined #ocaml
weird_error has quit [Ping timeout: 256 seconds]
weird_er_ has joined #ocaml
lbianc has quit [Ping timeout: 256 seconds]
lbianc_ is now known as lbianc
dariusf has quit []
neatonk1 is now known as neatonk
dariusf has joined #ocaml
dariusf has quit [Client Quit]
tormen_ has quit [Ping timeout: 260 seconds]
ygrek has quit [Ping timeout: 245 seconds]
pierpal has joined #ocaml
hdon has quit [Ping timeout: 268 seconds]
pierpal has quit [Ping timeout: 265 seconds]
pierpal has joined #ocaml
hdon has joined #ocaml
zmzm has joined #ocaml
JimmyRcom_ has joined #ocaml
hdon has quit [Ping timeout: 245 seconds]
Autolycus has joined #ocaml
hdon has joined #ocaml
pierpa has quit [Quit: Page closed]
dtornabene has quit [Remote host closed the connection]
gpietro has joined #ocaml
sh0t has quit [Ping timeout: 248 seconds]
pierpal has quit [Ping timeout: 240 seconds]
pierpal has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
gpietro has quit [Remote host closed the connection]
<apache2> mars0i sorry, missed the highlight due to the @-prefix. I have seen change_layout, but I am not sure how it will help me. It appears to turn my C_layout view into a Fortran_layout view, but there is still no API that lets me fix "rightmost" coordinates.
<apache2> @mars0i I can fix the leftmost coordinates using slice_left for C_layout and slice_right for Fortran_layout. it's my impression those two functions are identical, still only allowing fixing the leftmost coordinate?
cbot has joined #ocaml
tizoc has quit [Quit: Coyote finally caught me]
tizoc has joined #ocaml
JimmyRcom_ has quit [Ping timeout: 265 seconds]
weird_er_ has quit [Ping timeout: 260 seconds]
hdon has quit [Ping timeout: 245 seconds]
mbuf has joined #ocaml
Autolycus has quit [Quit: Connection closed for inactivity]
gtrak has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
weird_error has joined #ocaml
MercurialAlchemi has joined #ocaml
cbot has quit [Quit: Leaving]
zmzm has quit [Remote host closed the connection]
Guest27176 has joined #ocaml
hdon has joined #ocaml
bartholin has quit [Quit: Leaving]
mk9 has joined #ocaml
mk9 has quit [Quit: mk9]
tarptaeya has joined #ocaml
dhil has joined #ocaml
Guest27176 is now known as Haudegen
tarptaeya has quit [Ping timeout: 260 seconds]
steenuil_ has joined #ocaml
steenuil has quit [Ping timeout: 276 seconds]
jaar has joined #ocaml
steenuil_ has quit [Ping timeout: 245 seconds]
hdon has quit [Ping timeout: 264 seconds]
argent_smith has joined #ocaml
tarptaeya has joined #ocaml
<xvilka_> hi!
<xvilka_> Is anyone using Vim for writing OCaml code? I wonder if I can modify syntax highlighting rules/regexps to have a separate colors also for function definitions?
<xvilka_> I mean not just "let <func_name> arg1 arg2 =" but also all the calls of it (or partial applications, doesn't matter)
nullifidian has quit [Ping timeout: 240 seconds]
<discord5> <Christophe> I have never tweaked vim highlighting but I think it sounds possible, highlighting possibilities seem very flexible
<discord5> <Christophe> (though I must confess I do not understand the second part of your question 😊)
nullifidian has joined #ocaml
zolk3ri has joined #ocaml
<apache2> does someone have an example of c stubs returning `result` values handy?
dhil has quit [Ping timeout: 240 seconds]
kakadu has joined #ocaml
dhil has joined #ocaml
steenuil has joined #ocaml
hdon has joined #ocaml
mfp has joined #ocaml
hdon has quit [Ping timeout: 256 seconds]
shinnya has quit [Ping timeout: 240 seconds]
ziyourenxiang has joined #ocaml
gtrak has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
dhil has quit [Ping timeout: 245 seconds]
nicoo has quit [Ping timeout: 250 seconds]
<discord5> <mars0i> @apache2 I see--I didn't realize that each slice function only worked on one layout.
nicoo has joined #ocaml
dakk has joined #ocaml
<discord5> <mars0i> If you're doing this sort of thing a lot, it's possible that it could be useful to use Owl. Owl NDarray is actually a c_layout Bigaaray, and it has some flexible slicing functions. http://ocaml.xyz/chapter/slicing.html
<apache2> mars0i: does OWL operate on memory buffers like Bigarray? ie can I use the values from C code?
<apache2> fuck me I hate jbuilder :(
Haudegen has quit [Read error: Connection reset by peer]
<apache2> I always end up with PATH="override/:$PATH" where override/ contains gcc,cc,ld etc to be able to filter out arguments that jbuilder thinks is a good idea to add
<apache2> fortunately it doesn't really filter special chars, so often you can get away with injection '#' or '--'
shw has quit [Quit: shw]
silver has joined #ocaml
rambocoder has joined #ocaml
shinnya has joined #ocaml
sh0t has joined #ocaml
<discord5> <mars0i> @apache2 I'm pretty sure the answer is yes--Owl does a lot of stuff in C libs and Owl's own custom code--but I am not sure whether you could get in trouble if you don't know what Owl's code is doing behind the scenes. I don't know much about that aspect of Owl. If you don't mind, I'll mention your question into the Owl discord channel, and maybe someone who knows more can answer on IRC.
spew has joined #ocaml
_andre has joined #ocaml
<apache2> I'll check the code and see if I can use that instead :)
Haudegen has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 268 seconds]
<discord5> <Bluddy> xvilka_: Not sure exactly what you mean, but I think you mean create a color for a specific function and then for its application so you can easily see where a particular function is applied. The closest thing I can think of is 'rainbow parentheses' -- you can look that plugin up. You're going to need some language to do the highlighting there -- the regexp syntax highlighting isn't going to be powerful enough.
sh0t has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
mbuf has quit [Quit: Leaving]
steenuil has quit [Remote host closed the connection]
steenuil has joined #ocaml
hdon has joined #ocaml
hdon has quit [Ping timeout: 265 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 264 seconds]
sh0t has joined #ocaml
shinnya has quit [Ping timeout: 260 seconds]
aciniglio has joined #ocaml
<Leonidas> is there something like BatEnum in Core?
<Leonidas> The only similar thing I found is Async Pipe, but I don't actually want this to be concurrent, just lazy.
<companion_cube> there's Core.Sequence
<Leonidas> companion_cube: Thanks!
<companion_cube> that module still makes me sad
<companion_cube> fragmentation that will never mend
<companion_cube> (unless core/base becomes the absolute standard)
<Leonidas> We standardized on @@ and |> already!
<Leonidas> and a result type
<Leonidas> and looks like a build system
<companion_cube> there's a new iterator type in the stdlib in 4.07
<companion_cube> but I doubt janestreet will care, given the long discussions on the iterator's PR's thread
gtrak has quit [Ping timeout: 240 seconds]
gtrak has joined #ocaml
<Leonidas> *sigh*
<companion_cube> it's an interesting read though :-)
<Drup> not really
<Drup> It's mostly people disagreeing on what iterators are for to begin with, and each looking at their own corners
jaar has quit [Remote host closed the connection]
johnelse_ has quit [Read error: Connection reset by peer]
jaar has joined #ocaml
johnelse_ has joined #ocaml
bairui has quit [Read error: Connection reset by peer]
bairui has joined #ocaml
<discord5> <n4323> @companion_cube I recently discovered your oseq library. could you briefly elaborate how that relates to sequence and gen and the new stdlib type?
<Leonidas> the opam Docker images are now so out of date, security.debian.org removed the necessary packages :(
<companion_cube> n423: oseq is designed to be compatile with the stdlib's type
<companion_cube> Drup: well JST agrees with me on the usage part, I think
<companion_cube> it's more that they haven't even stabilized internally on the perfect representation, and feel no need to follow any external standard
FreeBirdLjj has joined #ocaml
steenuil has quit [Ping timeout: 240 seconds]
steenuil has joined #ocaml
steenuil has quit [Quit: Leaving]
steenuil has joined #ocaml
steenuil has quit [Remote host closed the connection]
steenuil has joined #ocaml
steenuil_ has joined #ocaml
steenuil has quit [Ping timeout: 240 seconds]
steenuil_ has quit [Read error: Connection reset by peer]
steenuil has joined #ocaml
steenuil has quit [Client Quit]
jaar has quit [Remote host closed the connection]
jaar has joined #ocaml
tarptaeya has quit [Ping timeout: 276 seconds]
<Leonidas> Converting a BatEnum into a Core.Sequence proved to be quite easy to do although Core.Sequence.Generator is sort of strange because it does not provide the usual Let_syntax module.
hdon has joined #ocaml
hdon has quit [Ping timeout: 260 seconds]
ziyourenxiang has quit [Ping timeout: 268 seconds]
tarptaeya has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
jaar has quit [Quit: Leaving]
dedgrant_ has joined #ocaml
mnemem has joined #ocaml
on_ion has quit [Read error: Connection reset by peer]
on_ion has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
tarptaeya has quit [Quit: Konversation terminated!]
Haudegen has quit [Remote host closed the connection]
dakk has quit [Remote host closed the connection]
bartholin has joined #ocaml
gtrak has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
mnemem has quit [Ping timeout: 256 seconds]
hdon has joined #ocaml
steenuil has joined #ocaml
on_ion has quit [Quit: WeeChat 1.9.1]
kakadu has quit [Quit: Konversation terminated!]
jack5638 has quit [Ping timeout: 256 seconds]
laurus has joined #ocaml
<laurus> Is Ocaml 4.0.6 planned to be included in Debian Unstable (Sid)?
jack5638 has joined #ocaml
laurus has left #ocaml ["Part"]
laurus has joined #ocaml
laurus has left #ocaml ["Part"]
kakadu has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
jack5638 has quit [Ping timeout: 256 seconds]
jack5638 has joined #ocaml
zolk3ri has quit [Ping timeout: 265 seconds]
zolk3ri has joined #ocaml
Cypi_ is now known as Cypi
lokydor has quit [Ping timeout: 248 seconds]
lokydor has joined #ocaml
steenuil has quit [Ping timeout: 245 seconds]
steenuil has joined #ocaml
malina has joined #ocaml
Guest31035 has quit []
steenuil has quit [Remote host closed the connection]
lynn has joined #ocaml
steenuil has joined #ocaml
lynn is now known as Guest36240
Soni has quit [Ping timeout: 245 seconds]
Guest36240 has quit [Changing host]
Guest36240 has joined #ocaml
Guest36240 has joined #ocaml
Guest36240 is now known as lynn
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
Soni has joined #ocaml
mk9 has joined #ocaml
<deba5e12> hey, is there a way to set the default printing base for numbers in utop to hex?
<deba5e12> and to force utop to always print the value of the last evaluated expression? it seems to be the default behaviour, but including certain ppx packages seem to disable it
<octachron> deba5e12, for printing integer in hexadecimal: 'let print_hex ppf = Format.fprintf "%#X";; #install_printer print_hex` should do the trick
<deba5e12> thanks!
<octachron> (you can also try '%X'/'%x'/'%#x' depending on the exact format that you want)
<octachron> Format.fprintf ppf "%#X" *
<deba5e12> gotcha. thanks for that.
<deba5e12> any idea why passing something like `-ppx ppx-bap` to utop suppresses printing of unbound values?
<deba5e12> not sure if it's bap-specific or not.
<deba5e12> but with that flag passed, entering, say, `2+2;;` at the prompt won't display a value, unless i put `let x = 2+2;;`
<deba5e12> it's a tiny thing, but has gotten a little bit irritating
<octachron> deba5e12, does the expression get evaluated, e.g. does 'print_newline "test";;' work as expected?
<deba5e12> nope.
<deba5e12> not unless i bind the return value to something
<octachron> In this case it might be that ppx-bap itself is discarding toplevel expression
<deba5e12> ok, i suppose in that case there's not much i can do about it.
<deba5e12> (without delving into ppx-bap, which i think i'll go do now)
weird_error has quit [Quit: weird_error]
malina has quit [Ping timeout: 265 seconds]
hdon has quit [Changing host]
hdon has joined #ocaml
mk9 has quit [Quit: mk9]
pierpa has joined #ocaml
neatonk has quit [Ping timeout: 260 seconds]
argent_smith has quit [Quit: Leaving.]
rambocoder has quit [Quit: Connection closed for inactivity]
aciniglio has quit [Ping timeout: 256 seconds]
kakadu has quit [Remote host closed the connection]
mk9 has joined #ocaml
shinnya has joined #ocaml
mk9 has quit [Quit: mk9]
jao has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Quit: mk9]
spew has quit [Quit: Connection closed for inactivity]
cbot has joined #ocaml
sh0t has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
_andre has quit [Quit: leaving]
exarkun has quit [Read error: Connection reset by peer]
exarkun has joined #ocaml
JimmyRcom_ has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
sh0t has joined #ocaml
Bronsa has quit [Ping timeout: 240 seconds]
shw has joined #ocaml
mk9 has joined #ocaml
mk9 has quit [Ping timeout: 240 seconds]
moei has joined #ocaml