<d_bot>
<mimoo> is there a way to use ocamlformat to format all the files/folders in a path?
<dh`>
don't undersatnd the question
zebrag has joined #ocaml
<d_bot>
<mimoo> I had to do `fd '\.ml[i]?$' | xargs -n1 ocamlformat -i`
<d_bot>
<mimoo> there doesn't seem to be a command to do it
<d_bot>
<mimoo> a built-in command*
zebrag has quit [Remote host closed the connection]
richbridger has quit [Ping timeout: 245 seconds]
zebrag has joined #ocaml
Corbin has joined #ocaml
<Corbin>
Hi! I am compiling a concatenative esoteric language to a flavor of the Categorical Abstract Machine. I hear that OCaml's bytecode is unstable and not a good compiler target. Is this true? It would be awfully convenient if I could target an existing machine.
<companion_cube>
it's theoretically unstable, but in practice it changes very rarely
<companion_cube>
afaik
<companion_cube>
not sure if it's still the "categorical abstract machine" though
<companion_cube>
you could use an old version, or event caml light
<d_bot>
<Anurag> You can use dune to drive ocamlformat: `dune build @fmt --auto-promote`.
mbuf has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zodeishi has quit [Ping timeout: 245 seconds]
<hackinghorn>
sorry, I may have asked this, if I'm in a function I need to keep ending "let .. " with "in" ?
<dh`>
yes
<dh`>
mimoo: if that's a unix shell question then find is the normal way of extracting lists of filenames
vicfred has joined #ocaml
tizoc has quit [Remote host closed the connection]
tizoc has joined #ocaml
<hackinghorn>
sometimes I see statements without let, but sometimes they start with let () =, is the "let ()=" redundant?
shawnw has quit [Ping timeout: 252 seconds]
<dmbaturin>
hackinghorn: I always use `let () = ...` for expressions that are supposed to evaluate to unit, because that way they will fail to typecheck if they don't.
<hackinghorn>
ahh, thanks. Maybe thats why
<dmbaturin>
Consider `let _ = List.iter print_endline (* forgotten list argument *)`. It will typecheck even though it's wrong. Using `let () = ...` would prevent that error.
<hackinghorn>
thats right
<hackinghorn>
is let () = Fprintf.printf necessary?
<dmbaturin>
It's an expression sequence there: `Printf.fprintf oc "%s\n" message; close_out oc`. It's covered by the outermost `let () = ..`.
<dmbaturin>
I.e. it's effectively `let () = foo; bar; baz`
<hackinghorn>
ahh, thankss
<hackinghorn>
is it required that everything in between ";" of type unit
<hackinghorn>
ah it seems so
<hackinghorn>
the ; is a binary operator that works like unit -> unit -> unit
<dmbaturin>
Yes. You can force anything to unit with `ignore x` (which is really just `let ignore _ = ()`).
<hackinghorn>
ohh nice, thankss
vicfred has quit [Read error: Connection reset by peer]
favonia has quit [Ping timeout: 244 seconds]
<d_bot>
<tcoopman> is anyone here using `ppx_expect` with config for `lwt`. Configuring it like on the readme with `Expect_test_config.S` gives me `Unbound module type Expect_test_config.S`
Haudegen has joined #ocaml
salkin-mada has joined #ocaml
favonia has joined #ocaml
dhil has joined #ocaml
mro has joined #ocaml
wonko has joined #ocaml
wonko has quit [Changing host]
wonko has joined #ocaml
dhil has quit [Ping timeout: 250 seconds]
favonia has quit [Ping timeout: 244 seconds]
favonia has joined #ocaml
<d_bot>
<joris> Hi, if i have a lib inside a big workspace where only the lib uses -rectypes internally, is there a way to make ocamllsp/merlin work ?
favonia has quit [Ping timeout: 244 seconds]
favonia has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
favonia has quit [Ping timeout: 272 seconds]
favonia has joined #ocaml
wonko has quit [Remote host closed the connection]
bartholin has joined #ocaml
wonko has joined #ocaml
favonia has quit [Ping timeout: 244 seconds]
favonia has joined #ocaml
favonia has quit [Ping timeout: 272 seconds]
Guest94 has joined #ocaml
unyu has quit [Quit: WeeChat 3.1]
Guest94 has quit [Quit: Ping timeout (120 seconds)]
kakadu has joined #ocaml
kakadu has quit [Ping timeout: 252 seconds]
kakadu has joined #ocaml
kakadu has quit [Ping timeout: 252 seconds]
noisy-bot has joined #ocaml
olle_ has joined #ocaml
salkin-mada has quit [Quit: salkin-mada]
Haudegen has quit [Quit: Bin weg.]
waleee has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
mro has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
Haudegen has joined #ocaml
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
dhil has joined #ocaml
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Ping timeout: 250 seconds]
waleee has quit [Ping timeout: 244 seconds]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
waleee has joined #ocaml
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
wonko has quit [Quit: See You Space Cowboy..]
zodeishi has joined #ocaml
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
favonia has joined #ocaml
noisy-bot has joined #ocaml
Enjolras has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
mro has joined #ocaml
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
dhil has quit [Ping timeout: 252 seconds]
mro has quit [Remote host closed the connection]
zebrag has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 244 seconds]
mro has joined #ocaml
mbuf has quit [Quit: Leaving]
waleee has quit [Ping timeout: 272 seconds]
waleee has joined #ocaml
mro has quit [Ping timeout: 252 seconds]
Sumera[m] has quit [Read error: Connection reset by peer]
smondet[m] has quit [Read error: Connection reset by peer]
labor[m] has quit [Read error: Connection reset by peer]
radiopotin[m] has quit [Read error: Connection reset by peer]
fluxm has quit [Read error: Connection reset by peer]
krnkktz has quit [Read error: Connection reset by peer]
labor[m] has joined #ocaml
krnkktz has joined #ocaml
fluxm has joined #ocaml
smondet[m] has joined #ocaml
Sumera[m] has joined #ocaml
radiopotin[m] has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
olle_ has quit [Ping timeout: 258 seconds]
olle has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
noisy-bot has joined #ocaml
noisy-bot has quit [Remote host closed the connection]
noisy-bot has joined #ocaml
noisy-bot has quit [Ping timeout: 250 seconds]
olle has quit [Ping timeout: 250 seconds]
mro has quit [Quit: Leaving...]
Tuplanolla has joined #ocaml
TheLemonMan has joined #ocaml
mosterdt has quit [*.net *.split]
welterde has quit [*.net *.split]
habnabit_ has quit [*.net *.split]
cemerick has quit [*.net *.split]
reynir has quit [*.net *.split]
Leonidas has quit [*.net *.split]
bacam has quit [*.net *.split]
adrien has quit [*.net *.split]
dstolfa has quit [*.net *.split]
Leonidas_ has joined #ocaml
bacam has joined #ocaml
cemerick has joined #ocaml
mosterdt has joined #ocaml
mosterdt has quit [Signing in (mosterdt)]
mosterdt has joined #ocaml
reynir has joined #ocaml
habnabit_ has joined #ocaml
habnabit_ has joined #ocaml
habnabit_ has quit [Changing host]
welterde has joined #ocaml
bartholin has quit [Quit: Leaving]
<d_bot>
<mimoo> is there a difference between eval $(opam env) and eval $(opam config env) ? And is there a reason why I have to run it often otherwise things don't work (especially in CI). I don't remember ever having that issue with other programming language : o
<companion_cube>
no difference
<companion_cube>
`opam env` is just a shortcut that was added, afaik