ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
spew has joined #ocaml
sgronblo has joined #ocaml
handlex has quit [Quit: handlex]
ygrek has quit [Ping timeout: 240 seconds]
mfp__ has quit [Ping timeout: 268 seconds]
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 276 seconds]
pierpa has joined #ocaml
copy_ has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
<Khady>
<Leonidas> Khady: sorry, I broke slack-backup :( // by updating your lib?
sh0t has quit [Remote host closed the connection]
<Khady>
I need to update it to follow the new json format of slack anyway
spew has quit [Quit: foobar]
samrat has joined #ocaml
pierpa has quit [Quit: Page closed]
cranmax has quit [Quit: Connection closed for inactivity]
ryanartecona has joined #ocaml
bombastus has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
al-damiri has quit [Quit: Connection closed for inactivity]
iZsh has quit [Ping timeout: 255 seconds]
iZsh has joined #ocaml
jao has quit [Ping timeout: 248 seconds]
_whitelogger_ has joined #ocaml
_whitelogger has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
jnavila has joined #ocaml
cranmax has joined #ocaml
bombastus has quit [Ping timeout: 255 seconds]
olibjerd has joined #ocaml
nomicflux has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
MercurialAlchemi has joined #ocaml
kamog has quit [Remote host closed the connection]
Merv__ has joined #ocaml
gjaldon___ has joined #ocaml
drtop has joined #ocaml
Nephe_ has joined #ocaml
jyc__ has joined #ocaml
nomicflux has quit [Quit: nomicflux]
hrk_ has joined #ocaml
orbitz_ has joined #ocaml
jlam has joined #ocaml
olibjerd has left #ocaml [#ocaml]
Merv has quit [Ping timeout: 240 seconds]
gjaldon__ has quit [Ping timeout: 240 seconds]
\h has quit [Ping timeout: 240 seconds]
threshold has quit [Ping timeout: 240 seconds]
rom1504 has quit [Ping timeout: 240 seconds]
jyc_ has quit [Ping timeout: 240 seconds]
Nephe has quit [Quit: No Ping reply in 180 seconds.]
rfv has quit [Ping timeout: 240 seconds]
hrk has quit [Ping timeout: 240 seconds]
orbitz has quit [Ping timeout: 240 seconds]
jlam__ has quit [Read error: Connection reset by peer]
rbocquet has quit [Ping timeout: 240 seconds]
Merv__ is now known as Merv
gjaldon___ is now known as gjaldon__
jnavila has quit [Remote host closed the connection]
rfv has joined #ocaml
john51 has quit [Read error: Connection reset by peer]
john51 has joined #ocaml
malina has quit [Ping timeout: 268 seconds]
fre has joined #ocaml
\h has joined #ocaml
rom1504 has joined #ocaml
hnrgrgr has quit [Ping timeout: 240 seconds]
hnrgrgr has joined #ocaml
ygrek has joined #ocaml
rbocquet has joined #ocaml
johnelse has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
xa0 has quit [Ping timeout: 240 seconds]
xa0 has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 276 seconds]
fre has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
Simn has joined #ocaml
lukky513 has quit [Ping timeout: 260 seconds]
shakalaka_ has quit [Ping timeout: 260 seconds]
samrat has joined #ocaml
adrien has quit [Ping timeout: 260 seconds]
fraggle-boate has quit [Ping timeout: 260 seconds]
CcxWrk has quit [Ping timeout: 260 seconds]
adrien has joined #ocaml
freusque has joined #ocaml
jimmyrcom has quit [Ping timeout: 248 seconds]
CcxWrk has joined #ocaml
cranmax has quit [Quit: Connection closed for inactivity]
shakalaka has joined #ocaml
fraggle-boate has joined #ocaml
demonimin has quit [Ping timeout: 260 seconds]
demonimin has joined #ocaml
demonimin has joined #ocaml
<Leonidas>
Khady: yep.
lukky513 has joined #ocaml
enterprisey has quit [Quit: Leaving]
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MercurialAlchemi has quit [Ping timeout: 240 seconds]
<Khady>
One day I will dev outside of work and update my libs
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
zpe has joined #ocaml
<Leonidas>
:)
ygrek has quit [Ping timeout: 260 seconds]
moei has quit [Quit: Leaving...]
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Ping timeout: 240 seconds]
xvilka has joined #ocaml
xvilka has quit [Changing host]
shinnya has joined #ocaml
dakk has quit [Remote host closed the connection]
argent_smith has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
freusque has joined #ocaml
mfp__ has joined #ocaml
samrat has quit [Ping timeout: 268 seconds]
freusque has quit [Ping timeout: 255 seconds]
rossberg_ has quit [Ping timeout: 246 seconds]
samrat has joined #ocaml
dakk has joined #ocaml
Merv_ has quit [Remote host closed the connection]
kakadu has joined #ocaml
rossberg_ has joined #ocaml
AlexDenisov has joined #ocaml
TheLemonMan has joined #ocaml
freusque has joined #ocaml
<orbifx[m]>
Does the standard library provide a build in chaining function where if a function returns false or None or something, it stops the evaluation for the rest of the chain?
<kakadu>
AFAIK there is no bind-ish option-ish function like that
<orbifx[m]>
Ok, will write my own, should be a oneliner
rossberg_ has quit [Ping timeout: 255 seconds]
rossberg_ has joined #ocaml
jao has joined #ocaml
sgronblo has quit [Ping timeout: 240 seconds]
<zozozo>
orbifx[m]: sounds like a monad
<orbifx[m]>
Indeed. I won't make a module, I just wrong a single function to bind the operations
dhil has joined #ocaml
<orbifx[m]>
s/wrong/wrote
jao has quit [Ping timeout: 260 seconds]
Exagone313 has quit [Quit: see ya!]
_andre has joined #ocaml
Exagone313 has joined #ocaml
<orbifx[m]>
doh, lwt has it, and I use it :P
<orbifx[m]>
Actually it doesn't seem to provide such function, but still makes sense to use Lwt_result because of my scope.
* orbifx[m]
is thinking outloud
<companion_cube>
just use containers ;-)
<companion_cube>
(if it's outside lwt)
<orbifx[m]>
I would, but it's mangled with Lwt threads
<companion_cube>
ok, then lwt_result might be helpful indeed
Algebr has quit [Ping timeout: 240 seconds]
bombastus has joined #ocaml
Merv_ has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
nomicflux has joined #ocaml
freusque has joined #ocaml
cranmax has joined #ocaml
Merv_ has quit [Remote host closed the connection]
bombastus has quit [Remote host closed the connection]
Algebr has joined #ocaml
nomicflux has quit [Quit: nomicflux]
dhil has quit [Ping timeout: 246 seconds]
nomicflux has joined #ocaml
Merv_ has joined #ocaml
nomicflux has quit [Quit: nomicflux]
samrat has quit [Ping timeout: 260 seconds]
freusque has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 255 seconds]
sepp2k has joined #ocaml
freusque has joined #ocaml
sh0t has joined #ocaml
moei has joined #ocaml
jlam_ has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
jlam__ has quit [Ping timeout: 240 seconds]
jimmyrcom has joined #ocaml
al-damiri has joined #ocaml
sh0t has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
samrat has joined #ocaml
<cranmax>
Hi I'm configuring ocaml in visual studio code with hackawaly's extension. I have set the merlin path to my ocamlmerlin executable in opam's folder
<cranmax>
Whn I write open Core, it shows me [merlin] Unbound module Core
<cranmax>
Core is installed because I can open it in utop, what I think is merlin is not correctly installed
<cranmax>
When I run ocamlmerlin in terminal, it starts 'eating' cpu but nothing happens
<octachron>
cranmax, have you added a "PKG: core" line to your ".merlin" file?
<cranmax>
No, I have not .merlin file in my /home folder
<cranmax>
With opam user-setup install maybe it creates one
jlam_ has quit [Ping timeout: 248 seconds]
jlam__ has joined #ocaml
<Fardale>
cranmax: the .merlin file must be in your project directory
<octachron>
generally, .merlin files are more used on a by-project basis (some build systems generate them)
<cranmax>
Okay, so if I have one file called program.ml , I might create one .merlin file in the same folder?
dhil has joined #ocaml
<octachron>
yes, or in the root folder or your project
samrat has quit [Ping timeout: 246 seconds]
<cranmax>
Okay, I created it, it contains one line: PKG core
<cranmax>
And it works
<cranmax>
octachron and Fardale, thank you =)
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 255 seconds]
<theblatte>
cranmax: you may want to tell merlin where to find your sources and build artifacts too (e.g. S src/** and B _build/**)
<theblatte>
dunno if you're supposed to rely on the default or not
jlam__ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
<cranmax>
theblatte: okay I have add to .merlin the two lines, I suppose is to build the project, now I'm just configuring and don't know how to build. Anyway I'll need it so thank you
breitenj has quit [Ping timeout: 255 seconds]
breitenj has joined #ocaml
awal is now known as aw_l
aw_l is now known as awal
Algebr has quit [Ping timeout: 240 seconds]
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 260 seconds]
malina has joined #ocaml
Simn has quit [Ping timeout: 248 seconds]
samrat has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
TheLemonMan has joined #ocaml
<kakadu>
Hey, folks.
jlam__ has joined #ocaml
<kakadu>
When I do inherit in the virtual class A base class B... Can I pass a virtual method of class A as a parameter for the constructor call of B? For examle
jlam_ has quit [Ping timeout: 255 seconds]
<kakadu>
utop # class b func = object end;;
<kakadu>
class b : 'a -> object end
<kakadu>
utop # class virtual a = object(this) inherit b this#foo method virtual foo:int end;;
<kakadu>
Error: The instance variable this cannot be accessed from the definition of another instance variable
<def`>
kakadu: with a private method you could
<def`>
the point is that you cannot refer to "this" yet
<def`>
class virtual b = object method private virtual a_method : int end;;
<def`>
class virtual a = object(this) inherit b method private a_method = this#foo method virtual foo : int end;;
<def`>
Here, a and b agrees on the name, there is no need to reference "this" before it exists
FreeBirdLjj has joined #ocaml
Merv_ has quit [Remote host closed the connection]
ryanartecona has joined #ocaml
<kakadu>
I don't know yet does it suits my needs but thanks
<def`>
kakadu: there is another encoding...
<def`>
b juste takes an arbitrary function from self to int.
<def`>
the problem is self type is not yet known, so you parametrize b by its concrete type.
<def`>
class ['self] b = fun (f : 'self -> 'a) -> object end;;
<def`>
class virtual a = object (this : 'self) inherit['self] b (fun this -> this#foo) method virtual foo : int end;;
jao has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
mengu has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
Anarchos has joined #ocaml
jlam_ has joined #ocaml
copy_ has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
n4323 has quit [Quit: WeeChat 1.7]
jlam__ has quit [Ping timeout: 240 seconds]
ryanartecona has joined #ocaml
jlam has quit [Quit: Leaving]
dhil has quit [Ping timeout: 268 seconds]
<octachron>
necromantic PR of the day: ✔
<def`>
s/`/' in the PR code ?
<Drup>
Why do you have both a hashtbl (behind a ref) and a stringmap ? :|
<Drup>
stringset*
<def`>
PR message* sorry
<octachron>
def`, thanks and also s/::/;;
jlam_ has quit [Read error: Connection reset by peer]
jlam has joined #ocaml
<octachron>
Drup, good point, let's go for String_map rather than a hashtbl
<Drup>
My question was more about the fact that you have two data structure
<Drup>
and one of them seems useless
ryanartecona has quit [Quit: ryanartecona]
dhil has joined #ocaml
<octachron>
Drup, the set is for avoiding name collision when attributing new_names and the hashtbl for keeping the type_exp → name association
<octachron>
Am I that tired and missing a redundancy?
<Drup>
hum, hasing type_exp
<Drup>
hashing*
<Drup>
Are you really sure about that one ? :D
al-damiri has quit [Quit: Connection closed for inactivity]
<octachron>
Drup, reasonably? I believe in the manual that say that hash terminates even with cyclic structures ( and the type id should be unique? )
samrat has joined #ocaml
malina has quit [Ping timeout: 240 seconds]
kevinqiu has joined #ocaml
jnavila has joined #ocaml
<def`>
Btype.TypeHash
<def`>
(and TypeSet, TypeMap, etc)
<octachron>
def`, better indeed, thanks again
ryanartecona has joined #ocaml
malina has joined #ocaml
iitalics has joined #ocaml
iitalics has quit [Client Quit]
jlam_ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
jnavila has quit [Ping timeout: 240 seconds]
MercurialAlchemi has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
jlam_ has quit [Ping timeout: 255 seconds]
jlam has joined #ocaml
FreeBirdLjj has joined #ocaml
<Drup>
octachron: type_exp is mutable
<Drup>
(and mutated)
<Drup>
and yes, as def` said
ygrek has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 248 seconds]
FreeBirdLjj has quit [Ping timeout: 276 seconds]
<orbifx[m]>
def`: which modules are those
Merv_ has joined #ocaml
<octachron>
orbifx[m], there are Ocaml's compiler internal modules