adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
silver_ has quit [Quit: rakede]
ale64bit has joined #ocaml
mfp has quit [Ping timeout: 246 seconds]
Jeanne-Kamikaze has joined #ocaml
amiloradovsky has quit [Ping timeout: 246 seconds]
AtumT has quit [Quit: AtumT]
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 246 seconds]
Jeanne-Kamikaze has quit [Remote host closed the connection]
jao has quit [Remote host closed the connection]
jao has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xuib has quit [Quit: xuib]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 246 seconds]
kvda has joined #ocaml
jao has quit [Ping timeout: 250 seconds]
gravicappa has joined #ocaml
AnAverageHuman has joined #ocaml
ale64bit has quit [Ping timeout: 244 seconds]
keep_learning has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
ale64bit has joined #ocaml
keep_learning has quit [Remote host closed the connection]
keep_learning has joined #ocaml
Jeanne-Kamikaze has quit [Remote host closed the connection]
AnAverageHuman has quit [Ping timeout: 256 seconds]
ale64bit has quit [Ping timeout: 245 seconds]
pierpal has joined #ocaml
_whitelogger has joined #ocaml
ziyourenxiang__ has quit [Remote host closed the connection]
ziyourenxiang__ has joined #ocaml
sonologico has quit [Remote host closed the connection]
ksqsf has joined #ocaml
<ksqsf> Hi, how can I install an older version of core with opam?
<ksqsf> `opam install core.0.9.1` complains Package core has no version 0.9.1.
barockobamo has joined #ocaml
<vsiles> ksqsf: I think you have to `opam pin add core.0.9.1`
<vsiles> (not sure that's the exact syntax)
Haudegen has joined #ocaml
jaar has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nicooo has quit [Remote host closed the connection]
nicooo has joined #ocaml
johnelse has quit [Quit: leaving]
johnelse has joined #ocaml
ksqsf has quit [Read error: Connection reset by peer]
kvda has joined #ocaml
kalio has quit [Ping timeout: 245 seconds]
kalio has joined #ocaml
jnavila has joined #ocaml
<Fardale> opam install core.v0.9.1
<Fardale> the version number is v0.9.1 not 0.9.1
freyr69 has joined #ocaml
mfp has joined #ocaml
swa19 has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Bahman has joined #ocaml
notnotda1 has joined #ocaml
swa19 has quit [Ping timeout: 245 seconds]
kvda has joined #ocaml
Haudegen has quit [Remote host closed the connection]
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
infinity0 has quit [Ping timeout: 250 seconds]
infinity0 has joined #ocaml
johnelse has quit [Quit: leaving]
johnelse has joined #ocaml
Bahman has quit [Ping timeout: 250 seconds]
kvda has joined #ocaml
<cemerick> I'm seeing "The module Foo is a functor, it cannot have any components" when attempting to refer to types defined in a recursive module context. How can one work around this?
infinity0 has quit [Remote host closed the connection]
<cemerick> I tried establishing a separate module type, but kept getting yelled at for syntax violations. :-P
<Drup> Can you show an example of thing syou want that fails ?
infinity0 has joined #ocaml
<cemerick> yeah, I'll try to reconstruct it
jaar has quit [Ping timeout: 258 seconds]
<cemerick> Drup: for example (think of two implementations of the same sort of data structure where you'd like to have an efficient conversion operation between): https://gist.github.com/cemerick/713dbbbbafd237ac64360850c7546299
AtumT has joined #ocaml
<Drup> why use recursive modules, instead of one big functor that instanciate both data structures ?
avr has joined #ocaml
avr has left #ocaml [#ocaml]
<Drup> the problem is that, from Foo's point of view, there is no such thing as "Bar.t" (but "Bar(B).t" is defined), and there is certainly no such thing as one unique record with a field `bar`
<Drup> the right solution, if you want synchronized modules like that, is to bundle everything inside a functor
<Drup> and then everything is easy: https://bpaste.net/show/416e1d106731
<cemerick> Drup: Interesting, I'll have to try that next time. I didn't even think of the possibility of parameterizing at a higher level.
<Drup> (as a general rule, recursive module is rarely the right solution)
<cemerick> it certainly seemed like the natural approach to e.g. a thaw/freeze dual
<cemerick> but I take your point :-)
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jao has joined #ocaml
silver has joined #ocaml
jaar has joined #ocaml
johnelse has quit [Quit: leaving]
Haudegen has joined #ocaml
q9929t has joined #ocaml
kvda has joined #ocaml
johnelse has joined #ocaml
kvda has quit [Client Quit]
spew has joined #ocaml
q9929t has quit [Quit: q9929t]
tane has joined #ocaml
ggole has joined #ocaml
ygrek has joined #ocaml
dhil has joined #ocaml
xuib has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
<freyr69> Is there any way to build a rust library with dune as an OCaml library's dependency?
<freyr69> I could build .a/.so files using rule, but can't link them to my C stubs
<companion_cube> (also you need cargo-vendor to use that inside opam)
<companion_cube> I haven't tried writing the stubs in C, though, I use ocaml-rs to write them directly in rust
<freyr69> I see, the unfortunate part is that I could use either c_names or self_build_stubs_archive
<freyr69> so I have to write a separate library it seems
<companion_cube> I have no good solution for now :/
<companion_cube> (also, ocaml-rs is neat but doesn't seem to handle some corner cases well…)
<freyr69> Yeah, I would prefer to write C stubs directly.
<companion_cube> maybe I should do the same, tbh…
<companion_cube> export C functions from rust in a .a, then write C stubs
<freyr69> Yeah, but linking to it with dune is pita
<freyr69> =(
<companion_cube> if you open an issue in dune I'll chime in ;)
<companion_cube> ocaml+rust is very interesting
jnavila has quit [Ping timeout: 258 seconds]
<freyr69> companion_cube: I think this is it:
<companion_cube> nice
<freyr69> Seems like Chris00 just builds a fortran pseudo-stubs library and then links it to the main one
dhil has quit [Ping timeout: 268 seconds]
Serpent7776 has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
freyr69 has quit [Remote host closed the connection]
nopf has joined #ocaml
_whitelogger_ has joined #ocaml
barockobamo has quit [Remote host closed the connection]
_whitelogger has quit [Ping timeout: 240 seconds]
ggole has quit [Quit: Leaving]
ziyourenxiang__ has quit [Ping timeout: 268 seconds]
Haudegen has joined #ocaml
jnavila has joined #ocaml
unyu has quit [Ping timeout: 250 seconds]
ale64bit has joined #ocaml
okuu has joined #ocaml
jao has joined #ocaml
ale64bit has quit [Ping timeout: 268 seconds]
al-damiri has joined #ocaml
dhil has joined #ocaml
sonologico has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
Birdface has joined #ocaml
okuu is now known as unyu
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
jaar has quit [Ping timeout: 244 seconds]
gravicappa has quit [Ping timeout: 245 seconds]
AnAverageHuman has joined #ocaml
kakadu has joined #ocaml
gonz_ has left #ocaml [#ocaml]
dhil has quit [Ping timeout: 245 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
unyu has quit [Quit: ERC (IRC client for Emacs 26.2)]
<adrien> I was discussing with friends and go's runtime size came up (again)
<adrien> does anyone know how much space would be required to get something running with lwt (smallest possible: bytecode vs native code doesn't matter)?
tane has quit [Quit: Leaving]
Serpent7776 has quit [Quit: leaving]
<companion_cube> just write a basic hello world with lwt.unix?
silver has quit [Quit: rakede]
<dinosaure> adrien: you should on lto patch in OCaml which delete dead code
<dinosaure> and, if I remmember correctly, a hello-world MirageOS is 1Mb and needs 10Mb in memory
<dinosaure> (but I'm not sure)
<companion_cube> :-°
<companion_cube> 10MB, really??
ocabot has quit [Remote host closed the connection]
ocabot has joined #ocaml
<dinosaure> I'm really not sure, this is what I heard and did not check it
<companion_cube> hmm ok, ocabot does take more than 10MB :(
<dinosaure> :d
<companion_cube> (but very stable otherwise)
Haudegen has quit [Remote host closed the connection]
kvda has joined #ocaml
Haudegen has joined #ocaml
Birdface has quit [Ping timeout: 268 seconds]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jnavila has quit [Ping timeout: 258 seconds]
kvda has joined #ocaml
govg has quit [Ping timeout: 246 seconds]
govg has joined #ocaml
kakadu has quit [Remote host closed the connection]
unyu has joined #ocaml
ygrek has quit [Ping timeout: 255 seconds]
AnAverageHuman has quit [Ping timeout: 256 seconds]
Haudegen has quit [Remote host closed the connection]
unyu has quit [Ping timeout: 255 seconds]
AnAverageHuman has joined #ocaml
unyu has joined #ocaml