companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.14.0 released: https://ocaml.org/releases/4.14.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<dh`> that is definitely not true
<dh`> at least for the separate compilation and abstraction part of the story
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
raskol has quit [Ping timeout: 246 seconds]
<companion_cube> still entirely unrelated
<companion_cube> headers are copy pasta with macros
<companion_cube> .mli are actual module signatures
gentauro has quit [Read error: Connection reset by peer]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gentauro has joined #ocaml
<sleepydog> I would be so happy if C had a module system
waleee has quit [Ping timeout: 250 seconds]
chrisz has quit [Ping timeout: 258 seconds]
chrisz has joined #ocaml
raskol has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
<companion_cube> => zig
<companion_cube> (or any other language not stuck in 1970)
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #ocaml
motherfsck has quit [Ping timeout: 246 seconds]
bobo_ has quit [Ping timeout: 240 seconds]
bobo_ has joined #ocaml
motherfsck has joined #ocaml
raskol has quit [Ping timeout: 255 seconds]
azimut has quit [Ping timeout: 240 seconds]
raskol has joined #ocaml
mbuf has joined #ocaml
<dh`> a nonabusive subset of what's possible with header files is exactly module signatures
<companion_cube> and what use and misuse did we learn from the nonabusive subset?
<dh`> well, speaking of copypasta, that having to paste type definitions into both the module and interface files is unnecessary
<dh`> but also, that abstract types are widely useful in the field
TakinOver has joined #ocaml
gravicappa has joined #ocaml
raskol has quit [Ping timeout: 276 seconds]
motherfsck has quit [Ping timeout: 246 seconds]
motherfsck has joined #ocaml
Guest65 has joined #ocaml
Guest65 has quit [Quit: Guest65]
Haudegen has joined #ocaml
Tuplanolla has joined #ocaml
<d_bot> <.kodwx> there is a shortcut to generate .mli from .ml in vscode, I forgot it sadly...
<d_bot> <.kodwx> can anyone tell me?
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
<d_bot> <darrenldl> wonder if there will eventually be a fuzzing cluster for ocaml projects
<d_bot> <darrenldl> "The feature is called ‘Switch implementation/interface’. The naming is slightly misleading, it will generate a new file containing the interface for you if it doesn’t already exist."
gravicappa has quit [Ping timeout: 255 seconds]
<d_bot> <.kodwx> yes, but there was a shortcut as well...
<d_bot> <.kodwx> it worked even when the .mli already exists
<d_bot> <.kodwx> it just pasted the interface once again in the .mli without disturbing the existing interface and/or comments
<d_bot> <darrenldl> huh
Tuplanolla has quit [Ping timeout: 256 seconds]
Tuplanolla has joined #ocaml
xgqt has quit [Quit: WeeChat 3.4.1]
xgqt has joined #ocaml
bartholin has quit [Ping timeout: 246 seconds]
DNH has joined #ocaml
bartholin has joined #ocaml
omegatron has joined #ocaml
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #ocaml
gravicappa has joined #ocaml
bartholin has quit [Read error: Connection reset by peer]
aspe has joined #ocaml
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartholin has joined #ocaml
DNH has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
aspe has quit [Quit: aspe]
aspe has joined #ocaml
azimut has joined #ocaml
rgrinberg has joined #ocaml
bartholin has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
<d_bot> <RC> Be proud of you because you can be what we want to do.
<d_bot> <RC> @[LrnDev]Sliver @Albert @ahabhgk
<d_bot> <RC> Yesterday you said tomorrow.
bobo_ has quit [Ping timeout: 246 seconds]
spip has joined #ocaml
Sankalp- has joined #ocaml
Sankalp has quit [Ping timeout: 276 seconds]
Sankalp- is now known as Sankalp
DNH has quit [Read error: Connection reset by peer]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
gravicappa has quit [Ping timeout: 244 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waleee has joined #ocaml
<d_bot> <Butanium (@me on reply)> ?
zebrag has joined #ocaml
<d_bot> <Butanium (@me on reply)> Stdlib.List.map isn't tail recursive right ?
<d_bot> <Butanium (@me on reply)> | a::l -> let r = f a in r :: map f l
bartholin has quit [Ping timeout: 246 seconds]
<d_bot> <Butanium (@me on reply)> (maybe a repost for IRC but I deleted my older discord message)
<d_bot> <Butanium (@me on reply)> Why isn't stdlib.List.map tail recursive ? https://github.com/ocaml/ocaml/blob/0741d0c017da9bdfd8eb027f98f549589ec0d8ff/stdlib/list.ml#L90
bartholin has joined #ocaml
<d_bot> <octachron> Because naive tailrec map implementations are slower than the non-tailrec one. And there is also the issue that if you getting close to your stack limit, you probably don't want to use a list in term of efficiency. Even more so, in OCaml 5, where the default stack size would be decent for a functional language. Of course, the correct solution since 4.14 is to define a tmc version.
<d_bot> <Butanium (@me on reply)> OCaml 5 will have a bigger stack limit ?
<d_bot> <Nalin Ranjan> "tmc" ... what is that ?
<d_bot> <Butanium (@me on reply)> Also I noticed something weird : here brackets are missings
<d_bot> <Butanium (@me on reply)> ```ocaml
<d_bot> <Butanium (@me on reply)> val init : int -> (int -> 'a) -> 'a list
<d_bot> <Butanium (@me on reply)> (** [init len f] is [[f 0; f 1; ...; f (len-1)]], evaluated left to right.
<d_bot> <Butanium (@me on reply)> @raise Invalid_argument if [len < 0].
<d_bot> <Butanium (@me on reply)> @since 4.06.0
<d_bot> <Butanium (@me on reply)> *)
<d_bot> <Butanium (@me on reply)> ```
mbuf has quit [Quit: Leaving]
<d_bot> <Nalin Ranjan> Thank You.. !!!🙏
gravicappa has joined #ocaml
rgrinberg has joined #ocaml
bartholin has quit [Ping timeout: 260 seconds]
vicfred has joined #ocaml
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bartholin has joined #ocaml
perrierjouet has quit [Quit: WeeChat 3.5]
perrierjouet has joined #ocaml
adanwan has quit [Remote host closed the connection]
adanwan has joined #ocaml
gravicappa has quit [Ping timeout: 246 seconds]
<d_bot> <RC> I have issues with my brain
raskol has joined #ocaml
Serpent7776 has quit [Quit: leaving]
vicfred has quit [Quit: Leaving]
raskol has quit [Ping timeout: 258 seconds]
bartholin has quit [Quit: Leaving]
raskol has joined #ocaml
raskol has quit [Ping timeout: 256 seconds]
spip has quit [Ping timeout: 255 seconds]
bobo_ has joined #ocaml
jsoo_ has quit [Quit: ZNC 1.8.2 - https://znc.in]
jsoo has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
raskol has joined #ocaml
aspe has quit [Quit: aspe]