adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
pierpal has joined #ocaml
ziyourenxiang has joined #ocaml
Haudegen has quit [Ping timeout: 245 seconds]
silver_ has quit [Read error: Connection reset by peer]
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
ale64bit has joined #ocaml
zmzm has joined #ocaml
ale64bit has quit [Ping timeout: 245 seconds]
mfp has quit [Ping timeout: 246 seconds]
zmzm has quit [Quit: zmzm]
AtumT has quit [Quit: AtumT]
zmzm has joined #ocaml
zmzm has quit [Client Quit]
zmzm has joined #ocaml
keep_learning has joined #ocaml
zmzm has quit [Quit: zmzm]
DomTorr__ has joined #ocaml
DomTorr_ has quit [Ping timeout: 258 seconds]
ale64bit has joined #ocaml
ale64bit has quit [Ping timeout: 255 seconds]
Guest17069 has quit [Ping timeout: 258 seconds]
gravicappa has joined #ocaml
gravicappa has quit [Ping timeout: 245 seconds]
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
syb has joined #ocaml
syb has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 245 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
ggole has joined #ocaml
FreeBirdLjj has joined #ocaml
_whitelogger has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
Towel has joined #ocaml
rdivyanshu_ is now known as rdivyanshu
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 258 seconds]
<oni-on-ion> there is no information anywhere with how to simply make a C struct with ctypes
<oni-on-ion> struct { unsigned char r,g,b,a; } color; <-- very simple. but i can get the values. the thing is i am trying to *set* the values. i see no way to do so? i've tried CArray
zolk3ri has joined #ocaml
ShalokShalom has joined #ocaml
Haudegen has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
<oni-on-ion> stuck
_whitelogger has joined #ocaml
Redfoxmoon has quit [Changing host]
Redfoxmoon has joined #ocaml
ShalokShalom has quit [Remote host closed the connection]
ShalokShalom has joined #ocaml
ravenousmoose has joined #ocaml
kakadu has joined #ocaml
_whitelogger has joined #ocaml
silver has joined #ocaml
sonologico has quit [Ping timeout: 245 seconds]
powerbit has joined #ocaml
sonologico has joined #ocaml
sonologico has quit [Read error: Connection reset by peer]
sonologico has joined #ocaml
sonologico has quit [Ping timeout: 258 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mfp has joined #ocaml
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
ravenousmoose has joined #ocaml
dhil has joined #ocaml
troydm has joined #ocaml
bartholin has quit [Remote host closed the connection]
nopf has joined #ocaml
bartholin has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 258 seconds]
ravenousmoose has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
_whitelogger has joined #ocaml
jnavila has joined #ocaml
jao has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
jnavila has joined #ocaml
dhil has quit [Ping timeout: 258 seconds]
ShalokShalom has quit [Remote host closed the connection]
gravicappa has joined #ocaml
dhil has joined #ocaml
ygrek has joined #ocaml
mal`` has quit [Quit: Leaving]
mal`` has joined #ocaml
AtumT has joined #ocaml
pierpal has quit [Ping timeout: 258 seconds]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ravenousmoose has joined #ocaml
ale64bit has joined #ocaml
niklasl has joined #ocaml
ale64bit has quit [Ping timeout: 246 seconds]
FreeBirdLjj has joined #ocaml
ale64bit has joined #ocaml
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weird_error has joined #ocaml
weird_error has quit [Quit: weird_error]
zolk3ri has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
ale64bit has quit [Ping timeout: 245 seconds]
ziyourenxiang has quit [Ping timeout: 258 seconds]
sonologico has joined #ocaml
sonologico has quit [Ping timeout: 255 seconds]
sonologico has joined #ocaml
AtumT has quit [Quit: AtumT]
ShalokShalom has joined #ocaml
pierpal has joined #ocaml
<cemerick> any ideas re: why I'm getting these interface/implementation mismatch errors? https://gist.github.com/cemerick/1e2bc636221f9bf12e071557fc87ddda
ShalokShalom has quit [Remote host closed the connection]
<ggole> Grid is a functor, but isn't given a functor type in the signature
<cemerick> ggole: after defining the Grid type, I have `module Grid : functor (G : Geometry) -> Grid`
<cemerick> But the errors are about containers' Map
FreeBirdLjj has quit [Remote host closed the connection]
ShalokShalom has joined #ocaml
FreeBirdLjj has joined #ocaml
<ggole> I see.
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 258 seconds]
<cemerick> swapping out Containers.Map for Stdlib.Map resolves things. Seems like a file-able issue companion_cube?
<octachron> cemerick, could you show the module type implementation in the ml file?
<cemerick> octachron: it's basically a copy-paste of what was generated from the actual implementation, except that I just refer to Map.S instead of including the full enumeration of its members: https://gist.github.com/cemerick/0b9901dc27e16823267d5d28e46b789b
<oni-on-ion> is there any way to create (ie. set the data) in a Ctypes struct ? been searching since last night all over the code and web
ravenousmoose has joined #ocaml
<octachron> cemerick, and the Map.S in the implementation file was a Stdlib.Map.S and not a container?
<cemerick> octachron: the implementation file has `open Containers` at the top, so `Map.S` there is not Stdlib. The .mli had `module IntMap : Containers.Map.S with type key = int`
<cemerick> nope, nope, nevermind, specifying Stdlib doesn't change anything. I fooled myself through a git revert + unsaved edits.
<octachron> Your error appear to be elsewhere. If you could link enough code to reproduce the error, it would be great.
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 258 seconds]
ShalokShalom has quit [Remote host closed the connection]
ShalokShalom has joined #ocaml
AtumT has joined #ocaml
<cemerick> octachron: whew, I had an `open Sequence` above the `IntMap` declaration within the module _implementation_, so `IntMap` was actually `Sequence.Map` 😅 😓
<cemerick> sorry for the noise
sonologico has quit [Remote host closed the connection]
<pgiarrusso> oni-on-ion: is setf from http://ocamllabs.io/ocaml-ctypes/Ctypes.html relevant?
<pgiarrusso> > val setf : ('b, 'c) structured -> ('a, ('b, 'c) structured) field -> 'a -> unit
<pgiarrusso> setf s f v overwrites the value of the field f in the structure or union s with v.
<pgiarrusso> (not an expert, I might be misunderstanding, but nobody else answered so I gave it a try)
<pgiarrusso> Comparing with the tutorial on https://github.com/ocamllabs/ocaml-ctypes/wiki/ctypes-tutorial, that looks promising: the tutorial mentions getf, and setf is the corresponding setter function
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
dhil has quit [Ping timeout: 246 seconds]
gravicappa has quit [Ping timeout: 258 seconds]
<oni-on-ion> pgiarrusso, ohh! like the compliment to getf ? i think you are right. going to give it a shot here (ty for the lead!)
<oni-on-ion> (ah oh, how i love tuareg prettying the 'a and 'b to greek alpha and beta =)
<oni-on-ion> it works perfectly !!
<oni-on-ion> thank you so much pgiarrusso =) =)
<oni-on-ion> (i've only came across unix library date and time examples over the web and that api is a bit archaic to me)
<oni-on-ion> (writing binding to http://www.raylib.com, might release publically; its a great lib)
TheLemonMan has joined #ocaml
TC01 has joined #ocaml
SpiceGuid has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Jeanne-Kamikaze has joined #ocaml
ale64bit has joined #ocaml
jao has quit [Remote host closed the connection]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ale64bit has quit [Ping timeout: 258 seconds]
ravenousmoose has joined #ocaml
jao has joined #ocaml
dtornabene has joined #ocaml
_whitelogger has joined #ocaml
jnavila has quit [Remote host closed the connection]
dtornabene has quit [Remote host closed the connection]
ggole has quit [Quit: Leaving]
ravenousmoose has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SpiceGuid_ has joined #ocaml
SpiceGuid has quit [Ping timeout: 268 seconds]
SpiceGuid_ has quit [Ping timeout: 258 seconds]
ale64bit has joined #ocaml
<companion_cube> cemerick: CCMap.Make(X).t = Map.Make(X).t
kakadu has quit [Remote host closed the connection]
<cemerick> companion_cube: yeah, it was all due to an `open Sequence`, which I didn't notice until far too late
<companion_cube> right
<companion_cube> (btw you should use Iter now :p)
_whitelogger has joined #ocaml
zolk3ri has quit [Quit: Lost terminal]
AtumT has quit [Quit: AtumT]