spew has quit [Quit: Connection closed for inactivity]
Desetude has quit [Ping timeout: 240 seconds]
Desetude has joined #ocaml
Hrundi_V_Bakshi has quit [Ping timeout: 276 seconds]
Haudegen has quit [Ping timeout: 245 seconds]
Desetude has quit [Ping timeout: 250 seconds]
Desetude has joined #ocaml
Desetude has quit [Client Quit]
dborisog has joined #ocaml
mfp has quit [Ping timeout: 265 seconds]
vicfred has quit [Quit: Leaving]
jao has quit [Ping timeout: 252 seconds]
vicfred has joined #ocaml
jao has joined #ocaml
FreeBirdLjj has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
FreeBirdLjj has quit [Ping timeout: 250 seconds]
jao has joined #ocaml
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
ggole has joined #ocaml
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 265 seconds]
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
gravicappa has joined #ocaml
gravicappa has quit [Ping timeout: 240 seconds]
vicfred has quit [Quit: Leaving]
dborisog has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
dborisog has joined #ocaml
vicfred has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
ygrek__ has joined #ocaml
ygrek__ has quit [Remote host closed the connection]
_whitelogger has joined #ocaml
Haudegen has joined #ocaml
_whitelogger has joined #ocaml
kotrcka has quit [Remote host closed the connection]
Nikkel has quit [Quit: WeeChat 2.4]
mfp has joined #ocaml
FreeBirdLjj has joined #ocaml
barockobamo has joined #ocaml
zwindl[m] has quit [Quit: killed]
otini has quit [Quit: killed]
Haudegen[m] has quit [Quit: killed]
rgr[m] has quit [Quit: killed]
stan[m] has quit [Quit: killed]
peddie has quit [Quit: killed]
sepp2k has quit [Quit: killed]
aspiwack[m] has quit [Quit: killed]
regnat[m] has quit [Quit: killed]
Virgile[m] has quit [Quit: killed]
cgenie[m] has quit [Quit: killed]
prsafont[m] has quit [Quit: killed]
hdurer[m] has quit [Quit: killed]
keep-learning[m] has quit [Quit: killed]
aecepoglu[m] has quit [Quit: killed]
FreeBirdLjj has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
Haudegen[m] has joined #ocaml
copy` has joined #ocaml
smondet[m] has joined #ocaml
flux1 has joined #ocaml
keep-learning[m] has joined #ocaml
otini has joined #ocaml
peddie has joined #ocaml
zapashcanon[m] has joined #ocaml
aspiwack[m] has joined #ocaml
hdurer[m] has joined #ocaml
bglm[m] has joined #ocaml
jimt[m] has joined #ocaml
zwindl[m] has joined #ocaml
stan[m] has joined #ocaml
Virgile[m] has joined #ocaml
dl3br[m] has joined #ocaml
rgr[m] has joined #ocaml
regnat[m] has joined #ocaml
isaachodes[m] has joined #ocaml
aecepoglu[m] has joined #ocaml
sepp2k has joined #ocaml
cgenie[m] has joined #ocaml
pc9801[m] has joined #ocaml
prsafont[m] has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
amiloradovsky has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
<rzmt>
I see OCaml doesn't have function composition operator built in, like haskell has the dot. Does idiomatic OCaml code have lot's of "let ... = .. in" constructs in the code? I'm not sure if i should avoid repeated patterns like that or not.
jao has joined #ocaml
FreeBirdLjj has joined #ocaml
<Armael>
yea
<Armael>
idiomatic ocaml code is generally more in the style of successive let-ins rather than using pointfree operators
FreeBirdLjj has quit [Remote host closed the connection]
jco has joined #ocaml
FreeBirdLjj has joined #ocaml
barockobamo has quit [Quit: Leaving]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 276 seconds]
jnavila has joined #ocaml
tane has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
<Leonidas>
composition is also a bit tedious if you get hit by the value restriction
FreeBirdLjj has joined #ocaml
oni-on-ion has quit [Read error: Connection reset by peer]
oni-on-ion has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
oni-on-ion has quit [Ping timeout: 250 seconds]
Hrundi_V_Bakshi has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
FreeBirdLjj has quit [Ping timeout: 245 seconds]
keep-learning[m] has quit [Quit: User has been idle for 30+ days.]
oni-on-ion has joined #ocaml
sagax has quit [Read error: Connection reset by peer]
sagax has joined #ocaml
keep_learning has quit [Quit: Ping timeout (120 seconds)]
<oni-on-ion>
what! ocaml < 4.09 required for merlin
<oni-on-ion>
i've got exact 4.09 as current switch.
FreeBirdLjj has joined #ocaml
<Armael>
opam update maybe? the last version of merlin (3.3.3) does support 4.09
<oni-on-ion>
hmm, just dune (1.11.4 -> 2.0.0)
<Armael>
what does "opam info merlin.3.3.3" say
<oni-on-ion>
going to check what version of merlin is here, after dune upgrades =)
<oni-on-ion>
i think i did a full upgrade of everything at most a week ago
<oni-on-ion>
hmm it says "all-installed-versions 3.3.0 "
FreeBirdLjj has quit [Ping timeout: 246 seconds]
<oni-on-ion>
oh.... okay i am not paying attention. my 4.09 switch needs some packages, it seems. sorry for wasting your time but thanks very much for the help!
* oni-on-ion
installs
<Armael>
yea 3.3.0 is probably from another switch
<oni-on-ion>
ty for shining the light. did not realise a switch is whole set of packs as well. side question: how to clean out (rm *) old unused switches ?
<Armael>
if "S" is a switch name (as listed by `opam switch`), then "opam switch remove S"
<oni-on-ion>
ah nice~
<oni-on-ion>
thank you. got to refresh merlin now "eldoc error: (error merlin: /home/####/.opam/default/lib/ocaml/stdlib.cmi seems to be compiled with a version of OCaml that is not supported by Merlin.)"
ziyourenxiang has quit [Ping timeout: 276 seconds]
mouseghost has joined #ocaml
<mouseghost>
anyone does ocaml on windows?
dborisog has quit [Ping timeout: 250 seconds]
<oni-on-ion>
i have it going in windows8.1 (arm)
<oni-on-ion>
oops sorry intel atom
<mouseghost>
oni-on-ion, natively?
unyu has quit [Quit: brb]
<mouseghost>
oh yeah i guess it works natively
unyu has joined #ocaml
<oni-on-ion>
yeah
<oni-on-ion>
in windows 10 64bit i would use WSL
<mouseghost>
meh idk what to think about wsl in the end
<oni-on-ion>
its definately better than having to use cygwin or mingw , to me =)
FreeBirdLjj has joined #ocaml
<mouseghost>
well, hmm
gravicappa has joined #ocaml
<Armael>
I don't know much about ocaml development on windows, but there was a related thread on discuss recently
<oni-on-ion>
you'll only miss out on the Unix module, afaik
<Armael>
it seems most people use cygwin to get a development environment, but then use the mingw native port to get native binaries that do not rely on cygwin?
<Armael>
oni-on-ion: the Unix module does run on windows, it's a unix compatibility layer
<mouseghost>
hm i wonder if docker works on wsl2..
<oni-on-ion>
Armael, cygwin provides the unix/posix parts which Unix module depends, as far as i understand
<Armael>
uhh I think unix has windows specific code
<Armael>
so you get a windows-specific implementation for most functions
<Armael>
without cygwin
<mouseghost>
thats ncie
<mouseghost>
nice
<Armael>
(there is some exceptions though apparently)
<Armael>
if I were to do some ocaml development on windows I'd probably follow the advice of keleshev from the discuss thread (as someone mostly used to unix at least)
<oni-on-ion>
ohh =) i was looking at brilliant.org
<Jenz>
Armael: Result.map (fun _ -> a) r, is reasonable?
<Armael>
yeah given what you've said
<Jenz>
Alright, thanks, I guess I'll just have to live with the uglyness of fun _ -> a, then
<Armael>
well, otherwise you could just explicitly match on r
<Armael>
"match r with Ok _ -> Ok a | Error e -> Error e"
<Armael>
but arguably the Result.map version is slightly shorter and easier to understand
<Armael>
I wouldn't say that (fun _ -> a) is ugly; it carries one crucial information, that is, that you're discarding the value in the "Ok" case and replacing it with a
<Jenz>
Hmm, alright, though frankly both seem quite unintuitive to me, haha, but I'm still wholly new to functional programming; so, thanks the input! I really appreciate it
kakadu has joined #ocaml
Jenz has quit [Quit: leaving]
jco has quit [Quit: WeeChat 2.6]
bartholin has quit [Remote host closed the connection]
bartholin has joined #ocaml
infinity0 has quit [Ping timeout: 276 seconds]
oni-on-ion has quit [Quit: Quit]
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
jnavila has quit [Remote host closed the connection]
mfp has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
kakadu has joined #ocaml
infinity0 has joined #ocaml
kakadu has quit [Remote host closed the connection]