adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
wtetzner has joined #ocaml
silver has quit [Ping timeout: 264 seconds]
wtetzner has quit [Remote host closed the connection]
orbifx has joined #ocaml
orbifx has quit [Ping timeout: 258 seconds]
ejam has joined #ocaml
mengu has quit [Quit: Leaving...]
kakadu_ has quit [Remote host closed the connection]
_whitelogger has joined #ocaml
ygrek_ has quit [Ping timeout: 258 seconds]
snhmib has quit [Ping timeout: 240 seconds]
cbot has quit [Ping timeout: 240 seconds]
copy` has quit [Quit: Connection closed for inactivity]
fraggle_ has quit [Ping timeout: 264 seconds]
fraggle_ has joined #ocaml
silver_ has quit [Quit: rakede]
_whitelogger has joined #ocaml
skunkwerks has quit [Ping timeout: 240 seconds]
mfp_ has quit [Ping timeout: 246 seconds]
ygrek_ has joined #ocaml
fraggle_ has quit [Ping timeout: 240 seconds]
tokenrov1 is now known as tokenrove
p_nathan has joined #ocaml
mali__ has joined #ocaml
chetshah has joined #ocaml
chetshah has quit [Ping timeout: 260 seconds]
chetshah has joined #ocaml
FreeBirdLjj has joined #ocaml
psnively has joined #ocaml
chetshah has quit [Ping timeout: 260 seconds]
sinsnare has joined #ocaml
<sinsnare> Hi, I am trying to run `opam switch 4.04.0+msvc64` and I am getting a failure. It seems that the command is looking for ` C:\\Users\\sinis\\.opam\\4.04.0+msvc64\\..."` and not ` C:\\Users\\sinis\\.opam\\compilers\\4.04.0+msvc64\\..."` Is there a way I can change that?
<sinsnare> Yeah, even trying to install mingw64 instead of msvc64 doesnt help. Still a similar error.
larhat has joined #ocaml
sinsnare has quit [Quit: Page closed]
kakadu__ has quit [Ping timeout: 240 seconds]
chetshah has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 268 seconds]
psnively has quit [Quit: Textual IRC Client: www.textualapp.com]
<chetshah> Hello all, Ocaml beginner here, was wondering if there is a well defined notion of equality(=) in Ocaml, e.g. value of same types are always comparable?
<chetshah> Or is there a rule to be followed by values in order to be comparable?
<chetshah> I'm talking about structural equality.
<S11001001> chetshah: (=) : 'a -> 'a -> bool, which will always do structural equality (not customizable), but throw on encountering a function or C data
<chetshah> S11001001: Thanks, got it. I did not know about the non-customizable part.
chetshah has quit [Quit: Page closed]
chetshah has joined #ocaml
chetshah has quit [Client Quit]
philtor has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
minn has joined #ocaml
slash^ has joined #ocaml
FreeBirdLjj has joined #ocaml
larhat has quit [Quit: Leaving.]
frug72 has quit [Ping timeout: 256 seconds]
frug72 has joined #ocaml
kakadu has joined #ocaml
MercurialAlchemi has joined #ocaml
cbot has joined #ocaml
freusque has joined #ocaml
gk_1wm_su has joined #ocaml
gk_1wm_su has left #ocaml [#ocaml]
gk_1wm_su has joined #ocaml
gk_1wm_su has quit [K-Lined]
nore has quit [Quit: WeeChat 1.4]
govg has quit [Ping timeout: 256 seconds]
zpe has joined #ocaml
after___ has joined #ocaml
_whitelogger has joined #ocaml
ygrek_ has quit [Ping timeout: 258 seconds]
AlexDenisov has joined #ocaml
averell has joined #ocaml
kakadu has quit [Remote host closed the connection]
after___ has quit [Quit: Textual IRC Client: www.textualapp.com]
d0nn1e has quit [Ping timeout: 240 seconds]
d0nn1e has joined #ocaml
nore has joined #ocaml
gk_1wm_su has joined #ocaml
gk_1wm_su has quit [K-Lined]
jnavila has joined #ocaml
cbot_ has joined #ocaml
cbot has quit [Ping timeout: 240 seconds]
jnavila has quit [Ping timeout: 240 seconds]
freusque has quit [Ping timeout: 260 seconds]
orbifx has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
after___ has joined #ocaml
mfp_ has joined #ocaml
mali__ has quit [Ping timeout: 260 seconds]
iZsh has quit [Quit: ZNC - http://znc.in]
iZsh has joined #ocaml
zpe has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
cbot_ has quit [Quit: Leaving]
larhat has joined #ocaml
silver has joined #ocaml
minn has quit [Ping timeout: 256 seconds]
minn has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
mali__ has joined #ocaml
cokanut has joined #ocaml
p_nathan has quit [Ping timeout: 260 seconds]
FreeBirdLjj has joined #ocaml
zpe has joined #ocaml
cokanut has quit [Quit: Lost terminal]
mali__ has quit [Remote host closed the connection]
AlexRussia has quit [Ping timeout: 264 seconds]
dch_ has joined #ocaml
orbifx has quit [Ping timeout: 260 seconds]
cdidd has quit [Quit: Leaving]
BitPuffin|osx has joined #ocaml
dch_ has quit [Remote host closed the connection]
tane has joined #ocaml
zpe has quit [Remote host closed the connection]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
jnavila has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
AlexDenisov has joined #ocaml
AlexDenisov has quit [Client Quit]
Soni has quit [Read error: Connection reset by peer]
Soni has joined #ocaml
g0d355__ has joined #ocaml
spew has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
<def`> gasche: I pushed a proof-of-concept of the driver I was talking about
<def`> ocaml-migrate-parsetree itself is for AST conversion
<def`> the driver is for making PPXs, so there are some extra functions added
<def`> and driver-main is the entrypoint to execute all registered rewriters (to be linked last)
FreeBirdLjj has joined #ocaml
zpe has joined #ocaml
minn has quit [Ping timeout: 240 seconds]
freusque has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
adrien_ is now known as adrien
jnavila has quit [Ping timeout: 240 seconds]
BitPuffin|osx has quit [Ping timeout: 256 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
BitPuffin|osx has joined #ocaml
AlexDenisov has joined #ocaml
FreeBirdLjj has joined #ocaml
Simn has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 268 seconds]
arj has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 260 seconds]
BitPuffin|osx has joined #ocaml
djellemah has quit [Ping timeout: 268 seconds]
djellemah has joined #ocaml
kolko has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
after___ has quit [Quit: Textual IRC Client: www.textualapp.com]
zpe has quit [Ping timeout: 246 seconds]
BitPuffin|osx has quit [Ping timeout: 256 seconds]
spew has quit [Ping timeout: 240 seconds]
BitPuffin|osx has joined #ocaml
spew has joined #ocaml
govg has joined #ocaml
<gasche> "jenga: New tool to generate cabal freeze file from a stack project [self.haskell]"
<gasche> (amusing coincidence or subtle trolling? :-)
shakalaka has quit [Quit: bye.]
shakalaka has joined #ocaml
arj has quit [Quit: Leaving.]
ygrek_ has joined #ocaml
Guest46216 has joined #ocaml
spew has quit [Ping timeout: 264 seconds]
Onemorenickname has joined #ocaml
<Onemorenickname> hello people
<Onemorenickname> every function in Array (https://caml.inria.fr/pub/docs/manual-ocaml/libref/Array.html) lists the result as a new fresh array, is there a way to have for instance a sub array without it being a fresh one ?
rand__ has joined #ocaml
<Onemorenickname> like, "array_pointer + n" in C ?
<companion_cube> not really, no, that would make the reprensetation of arrays more complicated
<companion_cube> you cna of course make a new type for that, but it's not that convenient
<companion_cube> (I mena, you need glue code for that, or some library that does it for you)
<Onemorenickname> (i was going for glue code)
<Onemorenickname> (but maybe you know a library that does that already ?)
<companion_cube> I have something in containers called CCArray_slice
<companion_cube> but what do you want this for?
<Onemorenickname> because functions on array don't have an additionnal parameters for "beginning" and "ending" slice
spew has joined #ocaml
<Onemorenickname> for instance, I want to fold_left only starting from the first item
<Onemorenickname> and i find it pityful to build a new array or list for that
<companion_cube> oh, I see
<companion_cube> (seems a bit unusual, but I get it)
<Onemorenickname> (i thought it was a classic need/want from people coming from imperative languages like C)
<companion_cube> well arrays are not that used
<companion_cube> for numeric computations, people use bigarray
<Onemorenickname> i see, i use it for the syntactic sugar, the 0(1) indexing and the mutability
<Onemorenickname> if there is an other module doing that with slices, that'd be good
<companion_cube> sure
<companion_cube> but right now most people don;t seem to need slices on Array
<companion_cube> (Bigarray provides slices, and as I said, (big)arrays are mostly used by people doing numerical stuff)
<Onemorenickname> (i'd use it, but my values are not integers or injectables to integers)
<companion_cube> well then you can copy CCArray_slice and start from there, I think
<Onemorenickname> oh, it's fro myou :D
jbrown has joined #ocaml
<companion_cube> (yes, that's why I know about it)
<companion_cube> (there might be sth similar in batteries)
jnavila has joined #ocaml
yomimono has joined #ocaml
<Onemorenickname> hm
<Onemorenickname> how can I enforce a type to be polymorphic ?
yomimono has quit [Ping timeout: 260 seconds]
<Onemorenickname> like, there should be an error if the type is not polymorphic
<Onemorenickname> when I type annotate "'a array" and the typecheck infers an "int array", i don't get an error
<companion_cube> val f : type a b. a array -> b array -> bool
<Onemorenickname> oh, i did not know the "forall"-syntax
<Onemorenickname> feels better for bigger types
<Onemorenickname> thanks :)
<Onemorenickname> i feel like i'm going to be very sad in the following minutes
<Onemorenickname> and i'm indeed very sad
<Onemorenickname> let's make a smaller sad example
ygrek_ has quit [Ping timeout: 240 seconds]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
hpd[m]1 has left #ocaml ["User left"]
<Onemorenickname> I can not have polymorphism when I write functional things ?
zpe has joined #ocaml
<gasche> also, hm, "point-free code" (composing functions without naming their parameters) and "functional things" are not the same thing
<gasche> (OCaml is not great at allowing convenient point-free code, but given that people write unreadable code when they use it in language that are great at it, it may be a blessing rather than a curse)
<Onemorenickname> (I prefer conventions/guidelines to language restrictions)
<Onemorenickname> (but I understand the choice)
g0d355__ has quit [Ping timeout: 240 seconds]
<Onemorenickname> gasche, i'm reading the wiki-entry, but indeed, point-free does not come with functionality
<Onemorenickname> i thought so
jerme_ has joined #ocaml
<gasche> I don't think there was actually a "choice" here, it is more of a consequence of other aspects of the design
<gasche> also I think that the idea of "convention over restrictions" is convincing in the abstract but does not take into account the difficulty of converging on conventions and maintaining them in a distributed community; or of the unplanned success of sub-communities with different conventions
<gasche> (Python gets proper indentation through restriction; Go gets proper indentation through tooling; many of the "convention" language actually spend a great deal more effort on keeping indentation in check)
<gasche> ("readable point-free code" seems even harder to control than indentation, given that we don't even know how to define "readable")
octachron has joined #ocaml
achauvin has joined #ocaml
<tautologico> pointfree is great in array languages (APL, J and the like)
<tautologico> and they're not even functional
<tautologico> and it's point-free + lots of operators
<companion_cube> I'd really be interested in a typed version of J
<companion_cube> for writing exploratory one liners and crunching data
MercurialAlchemi has joined #ocaml
<tautologico> from time to time I feel like learning J for real
orbifx has joined #ocaml
<tautologico> I never go through with it
<companion_cube> yeah
<gasche> companion_cube: I have a colleague working on a typed array language
yomimono has joined #ocaml
<gasche> see also Futhark: https://futhark-lang.org/
<companion_cube> nice
philtor has joined #ocaml
kakadu has joined #ocaml
<tautologico> I had heard about remora before
achauvin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yomimono has quit [Ping timeout: 240 seconds]
jbrown has quit [Remote host closed the connection]
slash^ has quit [Read error: Connection reset by peer]
spew has quit [Ping timeout: 246 seconds]
zpe has quit [Remote host closed the connection]
<companion_cube> futhark is quite interesting
yomimono has joined #ocaml
Simn has quit [Read error: Connection reset by peer]
yomimono has quit [Ping timeout: 264 seconds]
octachron has quit [Quit: Leaving]
newbie39 has joined #ocaml
newbie39 is now known as lolisa
ryanartecona has joined #ocaml
<Onemorenickname> i finally understood what the problem was with weak polymorphism
<Onemorenickname> (with impurity and closures and stuff)
yomimono has joined #ocaml
larhat has quit [Quit: Leaving.]
achauvin has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
yomimono has quit [Ping timeout: 256 seconds]
freusque has quit [Ping timeout: 264 seconds]
zpe has quit [Remote host closed the connection]
freusque has joined #ocaml
TheLemonMan has joined #ocaml
lolisa has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
mengu has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unbalancedparen has quit [Ping timeout: 256 seconds]
<mengu> good night
jnavila has quit [Quit: Konversation terminated!]
<companion_cube> yeah, good night mengu
<mengu> how are you companion_cube
<companion_cube> well
MercurialAlchemi has quit [Ping timeout: 240 seconds]
yomimono has joined #ocaml
zpe has joined #ocaml
yomimono has quit [Ping timeout: 268 seconds]
gasche has left #ocaml ["ERC (IRC client for Emacs 24.5.1)"]
sh0t has joined #ocaml
Onemorenickname has quit [Read error: Connection reset by peer]
ncthom91 has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
fre2 has joined #ocaml
shakalaka has quit [Quit: bye.]
shakalaka has joined #ocaml
shakalaka has quit [Remote host closed the connection]
rand__ has quit [Quit: leaving]
freusque has quit [Ping timeout: 240 seconds]
shakalaka has joined #ocaml
shakalaka has quit [Remote host closed the connection]
shakalaka has joined #ocaml
cbot has joined #ocaml
yomimono has joined #ocaml
tane has quit [Quit: Leaving]
d0nn1e has quit [Ping timeout: 246 seconds]
ygrek_ has joined #ocaml
d0nn1e has joined #ocaml
average is now known as fakename
fakename is now known as average
ygrek_ has quit [Ping timeout: 264 seconds]
yomimono has quit [Ping timeout: 258 seconds]
ygrek has joined #ocaml
orbifx has quit [Ping timeout: 264 seconds]
sh0t has quit [Remote host closed the connection]