companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
adanwan_ has joined #ocaml
jpds1 has quit [Ping timeout: 258 seconds]
adanwan has quit [Ping timeout: 258 seconds]
adanwan_ has quit [Remote host closed the connection]
adanwan has joined #ocaml
jpds1 has joined #ocaml
sagax has quit [Ping timeout: 244 seconds]
geoffder has joined #ocaml
bartholin has quit [Ping timeout: 246 seconds]
genpaku has quit [Remote host closed the connection]
John_Ivan has quit [Read error: Connection reset by peer]
genpaku has joined #ocaml
John_Ivan has joined #ocaml
bartholin has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan_ has joined #ocaml
sagax has joined #ocaml
geoffder has quit [Quit: Client closed]
jpds1 has quit [Ping timeout: 258 seconds]
jpds1 has joined #ocaml
jpds1 has quit [Remote host closed the connection]
tomku has quit [Quit: Lost terminal]
jpds1 has joined #ocaml
tomku has joined #ocaml
tomku has quit [Quit: Lost terminal]
tomku has joined #ocaml
chrisz has quit [Ping timeout: 252 seconds]
chrisz has joined #ocaml
gopiandcode has quit [Ping timeout: 265 seconds]
<sleepydog> olle: maybe it's not hungry
gopiandcode has joined #ocaml
zebrag has quit [Remote host closed the connection]
waleee has quit [Ping timeout: 252 seconds]
gopiandcode has quit [Ping timeout: 265 seconds]
gopiandcode has joined #ocaml
chrisz has quit [Ping timeout: 268 seconds]
chrisz has joined #ocaml
tomku has quit [Quit: Lost terminal]
gopiandcode has quit [Ping timeout: 252 seconds]
gopiandcode has joined #ocaml
tomku has joined #ocaml
Haudegen has joined #ocaml
gopiandcode has quit [Ping timeout: 260 seconds]
gopiandcode has joined #ocaml
gopiandcode has quit [Ping timeout: 248 seconds]
gopiandcode has joined #ocaml
dnh has joined #ocaml
landonf has quit [Quit: ZNC - http://znc.sourceforge.net]
jao has quit [Ping timeout: 268 seconds]
bartholin has quit [Quit: Leaving]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
gopiandcode has quit [Ping timeout: 265 seconds]
gopiandcode has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbifx has joined #ocaml
olle has joined #ocaml
hsw__ has quit [Quit: Leaving]
hsw has joined #ocaml
dnh has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 265 seconds]
gopiandcode has quit [Ping timeout: 260 seconds]
gopiandcode has joined #ocaml
mro has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Serpent7776 has joined #ocaml
waleee has joined #ocaml
wonko has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
wonko has quit [Ping timeout: 246 seconds]
wonko has joined #ocaml
cizra has joined #ocaml
<cizra> Hi! Using an older version of OCaml, how do I generate a list/sequence of ints from A to B? In F# I'd write [A..B]. Why older version - codewars.com is using OCaml 4.07 for which the Seq.ints + take + drop is not available.
wonko has quit [Changing host]
wonko has joined #ocaml
<mclovin> something like `List.init (b - a) (fun x -> x + a)`
emacs_pprentice_ has quit [Ping timeout: 246 seconds]
dnh has joined #ocaml
wonko has quit [Ping timeout: 248 seconds]
wonko has joined #ocaml
waleee has quit [Quit: WeeChat 3.6]
waleee has joined #ocaml
waleee has quit [Ping timeout: 252 seconds]
bobo_ has joined #ocaml
spip has quit [Ping timeout: 265 seconds]
<cizra> mclovin: Thanks!
gopiandcode has quit [Ping timeout: 268 seconds]
gopiandcode has joined #ocaml
bobo_ has quit [Ping timeout: 244 seconds]
wonko has quit [Ping timeout: 264 seconds]
bobo_ has joined #ocaml
mro has quit [Remote host closed the connection]
waleee has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
CalimeroTeknik has quit [Read error: Connection reset by peer]
midgard has quit [Quit: Bye]
Haudegen has quit [Quit: Bin weg.]
faultline has joined #ocaml
faultline has quit [Remote host closed the connection]
<ski> give or take a `1'
<cizra> Yeah, I had to "give" :). By the way, I really find OCaml's syntax errors very confusing :( https://paste.ee/p/SHGrr - line 30, characters 0-0: Error: Syntax error <- never mind that there are only 29 lines in it...
<octachron> the last "let" definition is still running at the end of the file, so the error really is at the end of the file.
<octachron> A good solution for beginner is to use a code-formatter
<octachron> this would give you a consistent indentation which is a very useful to check that the parsed code structure matches the one you had in mind.
wonko has joined #ocaml
<cizra> octachron: Aaaah yeah! Thanks, the main function itself wasn't finished. I have nvim with no plugins for OCaml, it's not producing good results. I should get some plugins or something.
<octachron> there was a neovim setup for OCaml post on reddit recently: https://nyinyithan.com/nvim-setup-ocaml
jpds1 has quit [Ping timeout: 258 seconds]
wonko has quit [Ping timeout: 268 seconds]
jpds1 has joined #ocaml
spip has joined #ocaml
bobo_ has quit [Ping timeout: 248 seconds]
<cizra> Gotta check, thanks.
orbifx has quit [Ping timeout: 250 seconds]
Haudegen has joined #ocaml
<vsiles> merlin saves lives
CalimeroTeknik has joined #ocaml
CalimeroTeknik has quit [Changing host]
CalimeroTeknik has joined #ocaml
midgard has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 244 seconds]
<reynir> Dimonax: I believe installing opam-depext is not necessary if you're running opam >= 2.1
zebrag has joined #ocaml
orbifx has joined #ocaml
<ski> cizra : strictly speaking, your last two examples in `expression_matter' correspond to `c + a * b' and `c * (a + b)', not to `a * b + c' and `(a + b) * c' .. oops, the first one of those is actually `c + a + b' -- is that what you wanted ?
<ski> cizra : also, is there a reason your `expr' sum/variant type (and your `calc' function) is not actually recursive ?
<ski> (`calc' is declared with `let rec' so it looks like the intention was to make it recursive, at least initially ..)
<OCamlPro[m]> <Raja Boujbel> Dimonax: If you use opam 2.1 or later, no need to install opam-depext plugin (it is integrated). If you use opam.2.0.x, you can just run `opam depext [...]`, opam will install itself the plugin if needed
jpds1 has quit [Ping timeout: 258 seconds]
jpds1 has joined #ocaml
jao has joined #ocaml
waleee has quit [Ping timeout: 265 seconds]
jao has quit [Ping timeout: 264 seconds]
Haudegen has quit [Quit: Bin weg.]
mro has joined #ocaml
mro has quit [Ping timeout: 268 seconds]
Everything has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
Serpent7776 has quit [Ping timeout: 250 seconds]
orbifx has quit [Ping timeout: 252 seconds]
Haudegen has joined #ocaml
jao has joined #ocaml
jpds1 has quit [Read error: Connection reset by peer]
jpds1 has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
Serpent7776 has joined #ocaml
jpds1 has quit [Ping timeout: 258 seconds]
jpds1 has joined #ocaml
mro has quit [Remote host closed the connection]
bartholin has joined #ocaml
jpds1 has quit [Remote host closed the connection]
jpds1 has joined #ocaml
mro has joined #ocaml
mro has quit [Read error: Connection reset by peer]
mro has joined #ocaml
<Dimonax> OCamlPro: Trying to get frama-c installed on FreeBSD 13.1
<Dimonax> [ERROR] The compilation of alt-ergo.1.01 failed at "gmake".
<Dimonax> FreeBSD has an old version of alt-ergo in it's ports tree.
<Dimonax> I'm gonna have to update each package individually.
<Dimonax> Here's the main culprit...ERROR] The compilation of ocaml-secondary-compiler.4.08.1-1 failed at "gmake -j7 world.opt".
orbifx has joined #ocaml
<Dimonax> Switching to 4.13.1, hopefully that'll fix it.
Anarchos has joined #ocaml
spip has quit [Ping timeout: 252 seconds]
bobo_ has joined #ocaml
<ski> i believe you meant to respond to Raja Boujbel
bartholin has quit [Quit: Leaving]
<Dimonax> ski: Yup.
<Dimonax> Sorry.
orbifx has quit [Ping timeout: 244 seconds]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
<ski> nw
mro has quit [Remote host closed the connection]
<Dimonax> ski: I would take over the port for freebsd, if I actually had the time.
<Dimonax> But I actually have a day job. lol
mro has joined #ocaml
<Dimonax> Got it installed.
<Dimonax> Yeah, freebsd currently has an outdated version in it's ports tree.
qwr has quit [Ping timeout: 246 seconds]
qwr has joined #ocaml
zebrag has quit [Ping timeout: 244 seconds]
emacs_pprentice_ has joined #ocaml
mro has quit [Quit: Leaving...]
emacs_pprentice_ has quit [Quit: Leaving]
wingsorc has joined #ocaml
Serpent7776 has quit [Ping timeout: 250 seconds]
olle has quit [Ping timeout: 268 seconds]
zebrag has joined #ocaml
Tuplanolla has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]