companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
average has quit [Quit: Connection closed for inactivity]
John_Ivan has quit [Ping timeout: 272 seconds]
chrisz has quit [Ping timeout: 245 seconds]
chrisz has joined #ocaml
chrisz has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
average has joined #ocaml
<discocaml> <buckwang> Hi, I wonder to know are there tutorials for how to config Ocaml in IntelliJ? I don't find the plugin for Ocaml in IntelliJ market
gahr has quit [Quit: leaving]
gahr has joined #ocaml
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
<discocaml> <JM> The Reasonml plugin supports OCaml files https://github.com/giraud/reasonml-idea-plugin.
<discocaml> <JM> But IMO it's not a great option at the moment, you'll have a better experience with VSCode, or (Neo)vim, and the OCaml platform since that's where the OCaml community is putting its effort https://marketplace.visualstudio.com/items?itemName=ocamllabs.ocaml-platform
<discocaml> <octachron> @zbaylin , that was an explicit decision to have more regular version numbers in OCaml 5.
average has quit [Quit: Connection closed for inactivity]
remexre has quit [Ping timeout: 252 seconds]
mro has joined #ocaml
remexre has joined #ocaml
bartholin has quit [Quit: Leaving]
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
humasect has joined #ocaml
humasect has quit [Remote host closed the connection]
azimut has quit [Ping timeout: 252 seconds]
daftaupe has left #ocaml [The Lounge - https://thelounge.chat]
reynir has quit [Quit: WeeChat 3.0]
azimut has joined #ocaml
dnh has joined #ocaml
wingsorc has quit [Ping timeout: 258 seconds]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
humasect has joined #ocaml
dnh has joined #ocaml
reynir has joined #ocaml
humasect has quit [Quit: Leaving...]
John_Ivan has joined #ocaml
reynir has quit [Ping timeout: 264 seconds]
reynir has joined #ocaml
mro has quit [Quit: Leaving]
mro has joined #ocaml
famubu has joined #ocaml
<famubu> Hi. My opam uses ocaml 4.11 upon doing a fresh installation of opam. Is there a way to get a later version instead from opam?
<famubu> opam version is 2.0.8
<discocaml> <._null._> It should use the version already installed for the default switch. You can create a new switch with the version of the compiler you want
<discocaml> <._null._> `opam switch create ocaml.5.1.0`
<discocaml> <._null._> Otherwise, if you're sure you won't use the defaut switch with the preinstalled ocaml, `opam install "ocaml>=5.1.0"`
<discocaml> <._null._> with `--update-invariant`
<famubu> Thanks! Let me try that. I wanted two switches. One for 4.x and the other for 5.x
alphacentauri has quit [Quit: WeeChat 4.1.0]
<famubu> It worked.
<famubu> :)
<discocaml> <spatial> I am trying to understand the syntax here. What does ```Color.``` mean in ``` Color.(((0.9 -. blend_factor) * (1.,1.,1.)) + (blend_factor * (0.6,0.7,1.9)))
<discocaml> <spatial> ``` ? Can anyone help ? I thought it is referring to an operators defined in the Color module ?
<discocaml> <spatial> I am trying to understand the syntax here. What does ```Color.``` mean in ``` Color.(((0.9 -. blend_factor) * (1.,1.,1.)) + (blend_factor * (0.6,0.7,1.9)))
<discocaml> <spatial> ``` ? Can anyone help ? I thought it is referring to an operator defined in the Color module ?
<discocaml> <regularspatula> Looks like local module open
<discocaml> <regularspatula> Gives access to functions in the module
<discocaml> <octachron> `Color.(...)` is the same as `let open Color in (...)` (that syntax works for any kind of brackets too: `Color.{..}` or `Color.[]`).
<discocaml> <spatial> Yes. But my Color module doesn't seem to match this. ```module Color = struct
<discocaml> <spatial>
<discocaml> <spatial>
<discocaml> <spatial>
<discocaml> <spatial> let to_pixel t =
<discocaml> <spatial> let factor = 255.99 in
<discocaml> <spatial> let r, g, b = factor * t in
<discocaml> <spatial> Pixel.create( int_of_float r, int_of_float g, int_of_float b)
<discocaml> <spatial> end
<discocaml> <spatial>
<discocaml> <spatial> ```
<discocaml> <octachron> Please don't copy paste code in #general, there is #beginner for code discussion.
<discocaml> <octachron> Please don't copy paste code in #general, there is #beginners for code discussion.
<discocaml> <spatial> Ok. I will ask there.
<discocaml> <octachron> And in your case the `*` operator on color triple seems to be defined earlier
<discocaml> <spatial> Yes. I have to include another module there.
azimut has quit [Ping timeout: 252 seconds]
mro has quit [Remote host closed the connection]
alphacentauri has joined #ocaml
<discocaml> <buckwang> Thank you
average has joined #ocaml
John_Ivan has quit [Ping timeout: 258 seconds]
John_Ivan has joined #ocaml
alphacentauri has quit [Quit: WeeChat 4.1.0]
alphacentauri has joined #ocaml
bartholin has joined #ocaml
average has quit [Quit: Connection closed for inactivity]
ec has quit [*.net *.split]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tuplanolla has joined #ocaml
myrkraverk__ has joined #ocaml
myrkraverk_ has quit [Read error: Connection reset by peer]
azimut has joined #ocaml
ec has joined #ocaml
dnh has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
Serpent7776 has quit [Ping timeout: 255 seconds]
wingsorc has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Exa has quit [Quit: see ya!]
troydm has quit [Ping timeout: 264 seconds]
<dh`> is ocaml 5.1 considered ready for general use?
Exa has joined #ocaml
bartholin has quit [Quit: Leaving]
waleee has joined #ocaml
waleee has quit [Ping timeout: 272 seconds]
waleee has joined #ocaml
<Ella> Ah, I figured out my module compilation error. I needed to put the file in the bin directory, not the lib directory.
waleee has quit [Ping timeout: 245 seconds]
waleee has joined #ocaml
troydm has joined #ocaml