00:06
<
dh` >
that is definitely not true
00:06
<
dh` >
at least for the separate compilation and abstraction part of the story
00:21
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
00:38
rgrinberg has joined #ocaml
01:01
raskol has quit [Ping timeout: 246 seconds]
01:06
<
companion_cube >
still entirely unrelated
01:06
<
companion_cube >
headers are copy pasta with macros
01:06
<
companion_cube >
.mli are actual module signatures
01:21
gentauro has quit [Read error: Connection reset by peer]
01:22
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
01:26
gentauro has joined #ocaml
01:27
<
sleepydog >
I would be so happy if C had a module system
01:35
waleee has quit [Ping timeout: 250 seconds]
01:46
chrisz has quit [Ping timeout: 258 seconds]
01:48
chrisz has joined #ocaml
02:01
raskol has joined #ocaml
02:05
zebrag has quit [Quit: Konversation terminated!]
02:05
<
companion_cube >
=> zig
02:05
<
companion_cube >
(or any other language not stuck in 1970)
02:49
terrorjack has joined #ocaml
03:25
motherfsck has quit [Ping timeout: 246 seconds]
03:31
bobo_ has quit [Ping timeout: 240 seconds]
03:31
bobo_ has joined #ocaml
03:37
motherfsck has joined #ocaml
03:40
raskol has quit [Ping timeout: 255 seconds]
03:55
azimut has quit [Ping timeout: 240 seconds]
04:25
raskol has joined #ocaml
04:36
mbuf has joined #ocaml
04:51
<
dh` >
a nonabusive subset of what's possible with header files is exactly module signatures
04:55
<
companion_cube >
and what use and misuse did we learn from the nonabusive subset?
04:57
<
dh` >
well, speaking of copypasta, that having to paste type definitions into both the module and interface files is unnecessary
05:03
<
dh` >
but also, that abstract types are widely useful in the field
05:08
TakinOver has joined #ocaml
05:52
gravicappa has joined #ocaml
05:55
raskol has quit [Ping timeout: 276 seconds]
06:35
motherfsck has quit [Ping timeout: 246 seconds]
06:51
motherfsck has joined #ocaml
07:14
Guest65 has joined #ocaml
07:44
Guest65 has quit [Quit: Guest65]
08:08
Haudegen has joined #ocaml
08:37
Tuplanolla has joined #ocaml
08:44
<
d_bot >
<.kodwx> there is a shortcut to generate .mli from .ml in vscode, I forgot it sadly...
08:44
<
d_bot >
<.kodwx> can anyone tell me?
08:48
Serpent7776 has joined #ocaml
09:20
bartholin has joined #ocaml
09:42
<
d_bot >
<darrenldl> wonder if there will eventually be a fuzzing cluster for ocaml projects
09:45
<
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."
10:00
gravicappa has quit [Ping timeout: 255 seconds]
10:08
<
d_bot >
<.kodwx> yes, but there was a shortcut as well...
10:09
<
d_bot >
<.kodwx> it worked even when the .mli already exists
10:10
<
d_bot >
<.kodwx> it just pasted the interface once again in the .mli without disturbing the existing interface and/or comments
10:12
<
d_bot >
<darrenldl> huh
10:12
Tuplanolla has quit [Ping timeout: 256 seconds]
10:25
Tuplanolla has joined #ocaml
10:31
xgqt has quit [Quit: WeeChat 3.4.1]
10:31
xgqt has joined #ocaml
10:52
bartholin has quit [Ping timeout: 246 seconds]
10:55
DNH has joined #ocaml
11:05
bartholin has joined #ocaml
11:09
omegatron has joined #ocaml
11:20
Sankalp has quit [Ping timeout: 240 seconds]
11:22
Sankalp has joined #ocaml
11:38
gravicappa has joined #ocaml
12:51
bartholin has quit [Read error: Connection reset by peer]
13:00
aspe has joined #ocaml
13:04
DNH has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:05
bartholin has joined #ocaml
13:11
DNH has joined #ocaml
13:21
adanwan has quit [Remote host closed the connection]
13:22
adanwan has joined #ocaml
13:41
aspe has quit [Quit: aspe]
13:41
aspe has joined #ocaml
13:53
azimut has joined #ocaml
14:38
rgrinberg has joined #ocaml
14:52
bartholin has quit [Ping timeout: 240 seconds]
15:06
bartholin has joined #ocaml
15:08
<
d_bot >
<RC> Be proud of you because you can be what we want to do.
15:10
<
d_bot >
<RC> @[LrnDev]Sliver @Albert @ahabhgk
15:10
<
d_bot >
<RC> Yesterday you said tomorrow.
15:28
bobo_ has quit [Ping timeout: 246 seconds]
15:28
spip has joined #ocaml
15:37
Sankalp- has joined #ocaml
15:37
Sankalp has quit [Ping timeout: 276 seconds]
15:37
Sankalp- is now known as Sankalp
15:43
DNH has quit [Read error: Connection reset by peer]
15:51
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:53
rgrinberg has joined #ocaml
15:57
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:58
rgrinberg has joined #ocaml
16:00
rgrinberg has quit [Client Quit]
16:03
rgrinberg has joined #ocaml
16:09
gravicappa has quit [Ping timeout: 244 seconds]
16:16
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:24
waleee has joined #ocaml
16:26
<
d_bot >
<Butanium (@me on reply)> ?
16:47
zebrag has joined #ocaml
16:52
<
d_bot >
<Butanium (@me on reply)> Stdlib.List.map isn't tail recursive right ?
16:52
<
d_bot >
<Butanium (@me on reply)> | a::l -> let r = f a in r :: map f l
16:52
bartholin has quit [Ping timeout: 246 seconds]
16:54
<
d_bot >
<Butanium (@me on reply)> (maybe a repost for IRC but I deleted my older discord message)
17:05
bartholin has joined #ocaml
17:10
<
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.
17:11
<
d_bot >
<Butanium (@me on reply)> OCaml 5 will have a bigger stack limit ?
17:12
<
d_bot >
<Nalin Ranjan> "tmc" ... what is that ?
17:12
<
d_bot >
<Butanium (@me on reply)> Also I noticed something weird : here brackets are missings
17:13
<
d_bot >
<Butanium (@me on reply)> ```ocaml
17:13
<
d_bot >
<Butanium (@me on reply)> val init : int -> (int -> 'a) -> 'a list
17:13
<
d_bot >
<Butanium (@me on reply)> (** [init len f] is [[f 0; f 1; ...; f (len-1)]], evaluated left to right.
17:13
<
d_bot >
<Butanium (@me on reply)> @raise Invalid_argument if [len < 0].
17:13
<
d_bot >
<Butanium (@me on reply)> @since 4.06.0
17:13
<
d_bot >
<Butanium (@me on reply)> *)
17:13
<
d_bot >
<Butanium (@me on reply)> ```
17:31
mbuf has quit [Quit: Leaving]
17:34
<
d_bot >
<Nalin Ranjan> Thank You.. !!!🙏
17:45
gravicappa has joined #ocaml
18:03
rgrinberg has joined #ocaml
18:23
bartholin has quit [Ping timeout: 260 seconds]
18:44
vicfred has joined #ocaml
18:46
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:53
bartholin has joined #ocaml
19:21
perrierjouet has quit [Quit: WeeChat 3.5]
19:22
perrierjouet has joined #ocaml
19:27
adanwan has quit [Remote host closed the connection]
19:28
adanwan has joined #ocaml
19:29
gravicappa has quit [Ping timeout: 246 seconds]
20:07
<
d_bot >
<RC> I have issues with my brain
20:18
raskol has joined #ocaml
20:43
Serpent7776 has quit [Quit: leaving]
20:57
vicfred has quit [Quit: Leaving]
21:37
raskol has quit [Ping timeout: 258 seconds]
21:47
bartholin has quit [Quit: Leaving]
22:01
raskol has joined #ocaml
22:18
raskol has quit [Ping timeout: 256 seconds]
22:29
spip has quit [Ping timeout: 255 seconds]
22:29
bobo_ has joined #ocaml
22:31
jsoo has joined #ocaml
23:11
Tuplanolla has quit [Quit: Leaving.]
23:33
raskol has joined #ocaml
23:57
aspe has quit [Quit: aspe]