adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
spew has quit [Quit: Connection closed for inactivity]
Nahra has quit [Quit: leaving]
smazga has quit [Quit: leaving]
monoxmpp has joined #ocaml
monoxmpp has left #ocaml [#ocaml]
rople has joined #ocaml
mononote has left #ocaml ["Leaving"]
monoxmpp has joined #ocaml
monoxmpp is now known as mononote
unyu has quit [Quit: ERC (IRC client for Emacs 26.3)]
okuu has joined #ocaml
dborisog has joined #ocaml
okuu has quit [Quit: ERC (IRC client for Emacs 26.3)]
unyu has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
oni-on-ion has joined #ocaml
rople has quit [Ping timeout: 268 seconds]
mononote has left #ocaml ["Disconnected: Received SIGTERM"]
dborisog has quit [Ping timeout: 250 seconds]
mononote has joined #ocaml
rople has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
mononote has quit [Quit: ZNC 1.7.2+deb2ubuntu0.1 - https://znc.in]
andrewlitteken has joined #ocaml
andrewlitteken has quit [Client Quit]
<rgrinberg> Yeah. This will be relaxed once opam will be able to install dune in any switch by building it with a separate version of OCaml
<oni-on-ion> ah i've only 1.11.4 -- dune2 is still beta ?
ygrek__ has joined #ocaml
mfp has quit [Ping timeout: 276 seconds]
<rgrinberg> oni-on-ion no, 2.0 has been released very recently
<oni-on-ion> oohh =) i just got 4.09 set up so i will wait until dune2 supports current.
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 240 seconds]
brettgilio has joined #ocaml
gravicappa has joined #ocaml
<rgrinberg> oni-on-ion dune 2 supports 4.09
<companion_cube> funny how all my `dune-project` files use `lang dune 1.1` :D
FreeBirdLjj has joined #ocaml
bitwinery has joined #ocaml
bitwinery has quit [Max SendQ exceeded]
bitwinery has joined #ocaml
rople has quit [Ping timeout: 268 seconds]
rople has joined #ocaml
mbuf has joined #ocaml
sagax has joined #ocaml
mbuf has quit [Remote host closed the connection]
mbuf has joined #ocaml
mbuf has quit [Client Quit]
mbuf has joined #ocaml
oni-on-ion has quit [Ping timeout: 252 seconds]
narimiran has joined #ocaml
wagle_ has quit [Ping timeout: 265 seconds]
keep_learning has joined #ocaml
zmt00 has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
wagle has joined #ocaml
zmt00 has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
dborisog has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 246 seconds]
flx_ has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
FreeBirdLjj has joined #ocaml
Serpent7776 has joined #ocaml
Vikfret has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
bitwinery has quit [Quit: Leaving]
ggole has joined #ocaml
Vikfret has quit [Remote host closed the connection]
Vikfret has joined #ocaml
<Leonidas> vintage dune, a connoiseur!
Vikfret has quit [Remote host closed the connection]
<Nikkel> If I have an algebraic datatype like t = A | B of int , is it possible to do a superficial comparison of a value?
<Nikkel> I want to do let is_B = ((=) B _) , but of course that's not the right way
<Fardale> let is_B = function B _ -> true | _ -> false
<Nikkel> yeah I figured as much. Thank you :)
<mbuf> In https://pastebin.com/1812JunX, when we call mkprimes (lseq 2), what is the value of h and x in mkprimes?
ggole has quit [Quit: Leaving]
<mbuf> lseq 2 = Cons (2, Cons (3, Cons (4, unit))), so, I guess h initially gets the value of 2, and then 3, and then 4 and so on, but, I where does the value of 'x' come from?
<mbuf> I think when h is 2, x is tf () and hence Cons (3, Cons (4, Cons (5, unit))).
<mbuf> Similarly, when h is 3, x is Cons (4, Cons (5, unit)) etc.
ygrek__ has quit [Ping timeout: 246 seconds]
rople has quit [Ping timeout: 268 seconds]
rople has joined #ocaml
bartholin has quit [Remote host closed the connection]
mbuf has quit [Ping timeout: 276 seconds]
mbuf has joined #ocaml
<Leonidas> TIL merlin has neomake integration <3
oni-on-ion has joined #ocaml
barockobamo has joined #ocaml
mfp has joined #ocaml
rople has quit [Quit: rople]
dhil has joined #ocaml
sagax has quit [Ping timeout: 240 seconds]
ggole has joined #ocaml
mbuf has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 240 seconds]
sagax has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
tg has quit [Ping timeout: 264 seconds]
tg has joined #ocaml
barockobamo has quit [Remote host closed the connection]
jao has joined #ocaml
dhil has quit [Ping timeout: 268 seconds]
delysin_ is now known as delysin
Haudegen has joined #ocaml
jao has quit [Remote host closed the connection]
jao has joined #ocaml
Serpent7776 has joined #ocaml
<companion_cube> Leonidas: vintage dune is Old Spice
spew has joined #ocaml
rosterok has joined #ocaml
<theblatte> companion_cube: omg.
<spew> what did I miss?
dhil has joined #ocaml
jao has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Guest87157 has joined #ocaml
Guest87157 has quit [Remote host closed the connection]
jao- has joined #ocaml
jao- is now known as jao
barockobamo has joined #ocaml
<haesbaert> what's the preferred way to represent something I'd represent as a bitmap in C ? say for instance I have 20 capabilities, in C I'd just use a 32bit word and each bit would be one capability.
<haesbaert> I can to it with a list of things in ocaml, but then testing becomes linear
<Armael> you can use a bool array if you don't care too much about the memory overhead
<theblatte> you can give up on packing everything into one int and have a record, or do the bit masking by hand and hide it with getters and setters?
<Armael> but you can also use an int
<haesbaert> I guess giving up on packing is good enough, in the end they are in a record anyway
<companion_cube> haesbaert: an int
<companion_cube> + bitshifts
<haesbaert> but then I need to create a clutter of a name->bitposition thing
<Leonidas> ppx!
* Leonidas *ducks to avoid the object thrown by companion_cube*
<Drup> haesbaert: there is the bitv library too
Serpent7776 has quit [Quit: Leaving]
jao has quit [Remote host closed the connection]
<ggole> There's a ppx for enum tags, so you could use that
<haesbaert> I'm going for unpacking, I've no idea why I didn't consider that
<ggole> You could do efficient small enum sets and arrays (safely) indexed by enums as a ppx... hmm
<ggole> Sort of a crappy version of Pascal's enum sets
dhil has quit [Quit: Quit]
<companion_cube> haesbaert: well I use that when it's important to not spend 20 words for 20 bits of info
<companion_cube> otherwise, fields are ok, I guess
q9929t has joined #ocaml
webshinra has joined #ocaml
smazga has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
jao has joined #ocaml
ziyourenxiang has quit [Ping timeout: 276 seconds]
FreeBirdLjj has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 245 seconds]
KeyJoo has joined #ocaml
brettgilio has quit [Ping timeout: 250 seconds]
<oni-on-ion> how do i read this https://github.com/OCamlPro/ocaml-cheat-sheets
ggole has quit [Quit: Leaving]
sagax has quit [Ping timeout: 240 seconds]
<Drup> haesbaert: use bitv, it's exactly the same API as an array, but packed
towel has quit [Ping timeout: 250 seconds]
dmiles has quit [Ping timeout: 240 seconds]
<companion_cube> it does allocate though
jnavila has joined #ocaml
KeyJoo has quit [Remote host closed the connection]
Haudegen has joined #ocaml
<Drup> huh, yes, like an array ? :x
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
<Drup> if you use it as a static set, it allocates one *shrug*
dborisog has quit [Ping timeout: 250 seconds]
bartholin has joined #ocaml
<Leonidas> has anyone here used yallop's higher library? how practically usable is it?
barockobamo has quit [Remote host closed the connection]
q9929t has quit [Quit: q9929t]
amiloradovsky has joined #ocaml
<companion_cube> Drup: ah, it's static? I thought it'd be one per object
<companion_cube> (in which case it can help to use an int instead)
reynir has quit [Quit: rebooting, baii]
reynir has joined #ocaml
amiloradovsky has quit [Ping timeout: 268 seconds]
<reynir> After an upgrade the opam shell hook takes a few seconds at every command... Any tips how I could fix this or what the cause could be?
<oni-on-ion> narimiran, oh yes , thanks =)
jnavila has quit [Ping timeout: 246 seconds]
<reynir> Okay, it was opam env that was slow, but it stopped being slow suddenly..
<hannes> reynir: did you press the turbo button by any chance? ;)
<reynir> Haha :D
<reynir> I'm quite puzzled why it was slow and why it suddenly wasn't
<companion_cube> rgrinberg: what's the workflow if one wants to maintain compatibility with dune 1, but have something that works also on dune 2?
<companion_cube> (if one uses configurator)
jnavila has joined #ocaml
brettgilio has joined #ocaml
kakadu_ has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
kakadu_ has quit [Read error: Connection reset by peer]
kakadu_ has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
jco has joined #ocaml
dmiles has joined #ocaml
brettgilio has quit [Ping timeout: 245 seconds]
Haudegen has joined #ocaml
narimiran has quit [Quit: leaving]
kakadu_ has quit [Ping timeout: 276 seconds]
<Drup> companion_cube: no, I mean if the set is fixed for the whole execution, it'll allocate once (the set) and never again.
jave has quit [Ping timeout: 250 seconds]
jave has joined #ocaml
<companion_cube> yeah it all depends on whether you need only one bitset, or a ton of them
jnavila has quit [Remote host closed the connection]
oni-on-ion has quit [Ping timeout: 245 seconds]
oni-on-ion has joined #ocaml
monoxmpp has joined #ocaml
monoxmpp is now known as mononote
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
mononote is now known as monoxmpp
monoxmpp is now known as mononote
mononote is now known as monoxmpp
monoxmpp is now known as mononote
mononote has quit [Remote host closed the connection]
mononote has joined #ocaml
jco has quit [Quit: WeeChat 2.6]
mononote has left #ocaml [#ocaml]
mononote has joined #ocaml
mononote is now known as monoxmpp
monoxmpp is now known as mononote
Jesin has quit [Quit: Leaving]
oni-on-ion has quit [Quit: Quit]
mononote is now known as monoxmpp
monoxmpp is now known as mononote
rosterok has quit [Quit: Connection closed for inactivity]
bitwinery has joined #ocaml
bitwinery has quit [Remote host closed the connection]
bitwinery has joined #ocaml
ziyourenxiang has joined #ocaml
Haudegen has quit [Ping timeout: 268 seconds]
mononote has left #ocaml ["Disconnected: Replaced by new connection"]
mononote has joined #ocaml
Jesin has joined #ocaml