pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
wickedshell has quit [Ping timeout: 276 seconds]
alfiee has joined #ocaml
xenu has quit [Remote host closed the connection]
alfiee has quit [Ping timeout: 252 seconds]
<discocaml>
<gunpowderguy> Can ocaml infer types across modules? Eg: can implicitly typed function in module 1 be used by another whoose type depends on, on module 2?
<discocaml>
<gunpowderguy> Can OCaml infer types across modules? Specifically, can an implicitly typed function in Module 1 be used by a function in Module 2, whose type depends on the function from Module 1, without explicit type annotations?
<discocaml>
<yawaramin> yes
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has joined #ocaml
<dh`>
technically the inference part doesn't span modules, but the answer's still yes
alfiee has quit [Ping timeout: 265 seconds]
Tuplanolla has quit [Quit: Leaving.]
Inline has quit [Quit: Leaving]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
wickedshell has joined #ocaml
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
<discocaml>
<gunpowderguy> No, but yes?
<discocaml>
<yawaramin> maybe
<discocaml>
<yawaramin> but also, these questions are really easy to answer by just trying it out
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
fmira has quit [Ping timeout: 264 seconds]
burley has joined #ocaml
alfiee has joined #ocaml
Haudegen has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
<discocaml>
<wayneyam> Is there a way to download the documentations on ocaml.org to read them offline?
<discocaml>
<wayneyam> hmm it seems like the documentation is generated from the mli files
<discocaml>
<wayneyam> It's so clicky I don't wanna click 😢
<discocaml>
<wayneyam> Oh wait it's actually cool
<discocaml>
<wayneyam> now I just need to figure out how to read it inside terminal
burley has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 276 seconds]
euphores has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
euphores has joined #ocaml
pi3ce has quit [Read error: Connection reset by peer]
pi3ce has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
xenu has joined #ocaml
igemnace has quit [Quit: ZNC 1.9.0+deb2build3 - https://znc.in]
igemnace has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
<discocaml>
<wayneyam> going to try and generate vimdoc from odoc
alfiee has joined #ocaml
<discocaml>
<gooby_diatonic> I think not using Base would help
alfiee has quit [Ping timeout: 265 seconds]
<discocaml>
<wayneyam> vimdoc is a lot easier to navigate than html or pdf for me so it's probably worth
bartholin has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 246 seconds]
Serpent7776 has joined #ocaml
Serpent7776 has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
JuanDaugherty has joined #ocaml
<discocaml>
<lukstafi> @yawaramin why do you say yes? Isn't the obvious answer to the first question is "no"? I'm not sure if all modules encapsulate type inference, but certainly separate-compilation-units do. Originally OCaml's type system had the principal types property, so it didn't matter: even in practice, theory and practice were the same; now, "theory and practice ain't the same" but close enough for it to not matter for the type of examples given, the ans
JuanDaugherty is now known as ColinRobinson
Tuplanolla has joined #ocaml
<discocaml>
<drupyog> Pretty sure it would be easy to emmit TEF using the memprof API.
<discocaml>
<drupyog> Pretty sure it would be easy to emit TEF using the memprof API.
alfiee has joined #ocaml
ColinRobinson has quit [Quit: praxis.meansofproduction.biz (juan@acm.org)]
alfiee has quit [Ping timeout: 252 seconds]
oriba has joined #ocaml
rgrinberg has joined #ocaml
alfiee has joined #ocaml
Serpent7776 has joined #ocaml
<discocaml>
<octachron> @lukstafi , my point of the view is that the answer is closer to "yes", because module types are inferred in the absence of explicit signatures. But then technically, all type schemes are known at the module level so the question is slightly confusing.
alfiee has quit [Ping timeout: 272 seconds]
<discocaml>
<lukstafi> Yes, what I wanted to convey is that it's a good opportunity to gently introduce the notion of principal types when someone starts asking these questions.
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Anarchos has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
rgrinberg has joined #ocaml
<companion_cube>
@drupyog cool, I need to look into that. TEF has decent visualizers already, no need to reinvent the wheel
patrick_ is now known as patrick
<discocaml>
<drupyog> the information reported by memprof might need to be massaged a bit though. You will not immediately get spans or things like that.
<companion_cube>
A counter of how much memory was allocated... Maybe per function? It gets displayed as a curve
<companion_cube>
I mean a plot
<discocaml>
<yawaramin> i said 'yes' because if you actually try this out with the compiler, there's no other way to interpret the result than 'yes'
<discocaml>
<deepspacejohn> Yeah, if the question was rephrased as “can module 2 use a function in module 1 if module 1 doesn’t have type annotations” then the answer is clearly yes.
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 265 seconds]
patrick_ is now known as patrick
patrick has quit [Changing host]
patrick_ has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
wbooze has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
<discocaml>
<lukstafi> Alright, I haven't read the question too carefully.
alfiee has quit [Ping timeout: 246 seconds]
patrick_ is now known as patrick
patrick has quit [Changing host]
patrick_ has joined #ocaml
wbooze has joined #ocaml
alfiee has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
alfiee has quit [Ping timeout: 276 seconds]
patrick_ is now known as patrick
patrick has quit [Changing host]
wbooze has quit [Quit: Leaving]
patrick_ has joined #ocaml
patrick_ is now known as patrick
patrick is now known as Guest990
Guest990 has quit [Killed (calcium.libera.chat (Nickname regained by services))]
patrick_ has joined #ocaml
wbooze has joined #ocaml
Anarchos has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
sixfourtwelve has joined #ocaml
sixfourtwelve has quit [Quit: leaving]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Read error: Connection reset by peer]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
xenu has quit [Ping timeout: 252 seconds]
xenu has joined #ocaml
wbooze has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
myrkraverk_ has joined #ocaml
myrkraverk has quit [Ping timeout: 246 seconds]
alfiee has joined #ocaml
ygrek has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alfiee has quit [Ping timeout: 245 seconds]
burley has joined #ocaml
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 260 seconds]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Anarchos has quit [Quit: Vision[]: i've been blurred!]
xenu has quit [Ping timeout: 252 seconds]
xenu has joined #ocaml
rgrinberg has joined #ocaml
wbooze has joined #ocaml
burley has quit [Ping timeout: 252 seconds]
alfiee has joined #ocaml
alfiee has quit [Ping timeout: 245 seconds]
ygrek has quit [Remote host closed the connection]
myrkraverk has joined #ocaml
myrkraverk_ has quit [Ping timeout: 260 seconds]
bartholin has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 272 seconds]
alfiee has joined #ocaml
ygrek has joined #ocaml
YuGiOhJCJ has joined #ocaml
alfiee has quit [Ping timeout: 268 seconds]
dylanj has quit [Ping timeout: 252 seconds]
dylanj has joined #ocaml
ygrek has quit [Remote host closed the connection]