<d_bot>
<darrenldl> oooo i did want to write a multiplayer sandbox game at some point
<d_bot>
<darrenldl> thought FP is well suited to entity component system
zebrag has quit [Quit: Konversation terminated!]
gravicappa has joined #ocaml
<kevinsjoberg>
Anyone using ocp-indent with Emacs? I just started using Emacs for OCaml development but it looks like ocp-indent does nothing? If I call ocp-indent-line it does what I expect, but I get no auto-indentation by default.
<d_bot>
<ggole> @KevinSjoberg did you add the usual stanza to your .emacs? (I think opam suggests it when you install ocp-indent.)
<kevinsjoberg>
d_bot: I installed the ocp-indent package and tuareg. ocp-indent seem to have hooks in place for calling `ocp-setup-indent` whenever Tuareg is enabled.
<kevinsjoberg>
Here's an excerpt from my `init.el`.
<kevinsjoberg>
oh, I ping the Discord bot, lol. I meant @ggole.
<d_bot>
<ggole> Hmm. Did you install ocp-indent and tuareg through the emacs package system?
<kevinsjoberg>
@ggole, yes. Both of them. Tuareg works as advertiseed, although the indentation was off, so I was recommended to try ocp-indent. I installed it via opam first (`opam install ocp-indent`) and then the Emacs bindings via `package-install`.
<d_bot>
<ggole> That might be the problem; opam sets up a `site-lisp` directory which you are supposed to add to the `load-path`
<d_bot>
<ggole> I have no idea how `package-install` interacts with that.
<kevinsjoberg>
By the looks of it, it just uses whatever Emacs bindings ship with ocp-indent.
<kevinsjoberg>
It works when I call the functions manually, it's just that nothing happens upon pressing <RET>.
<d_bot>
<ggole> Do you get indentation when you press TAB?
<kevinsjoberg>
Pressing TAB give me some kind of indent, but it's not working correctly to my knowledge.
<kevinsjoberg>
Let me demonstrate.
<d_bot>
<ggole> I ask because AFAIK, ocp-indent will arrange to set indent-line-function and indent-region-function, and doesn't touch key bindings at all
<neiluj>
Hi! Trying to test a library with QCheck. Is it possible to test functions in the lib that are not exposed?
<neiluj>
I have a test/ folder with (libraries my_lib)
mro has joined #ocaml
nerdypepper has joined #ocaml
<nerdypepper>
evening o/
<nerdypepper>
is there a way i can use dune as a library?
<nerdypepper>
i am looking to find the dune project root of a given file or directory
<neiluj>
nevermind, adding __ as a suffix to the libary gives access to the hidden functions :)
<neiluj>
hellow!
<nerdypepper>
hiya neiluj, was your previous message for me? im not sure i understand, a little new to the whole ecosystem
neiluj_ has joined #ocaml
neiluj_ has quit [Client Quit]
neiluj_ has joined #ocaml
neiluj has quit [Ping timeout: 268 seconds]
elf_fortrez has quit [Ping timeout: 246 seconds]
mro has quit [Remote host closed the connection]
mbuf has joined #ocaml
neiluj has joined #ocaml
neiluj_ has quit [Ping timeout: 258 seconds]
neiluj has quit [Ping timeout: 268 seconds]
cross has joined #ocaml
mattil has quit [Read error: Connection reset by peer]
mattil has joined #ocaml
mattil has quit [Remote host closed the connection]
mattil has joined #ocaml
mattil has quit [Remote host closed the connection]
mattil has joined #ocaml
mattil has quit [Remote host closed the connection]
mattil has joined #ocaml
mattil has quit [Remote host closed the connection]
mattil has joined #ocaml
mattil has quit [Remote host closed the connection]
mattil has joined #ocaml
mattil has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
darxun has quit [Ping timeout: 258 seconds]
darxun has joined #ocaml
cedric has joined #ocaml
scriptdevil has joined #ocaml
<scriptdevil>
Is there a dune equivalent of `cargo check` as in something that only checks for compiler errors but doesn't need to link?
<scriptdevil>
I am on a low-RAM laptop presently and was depending on non-exhaustive pattern errors to guide me through adding a variant
<scriptdevil>
Incidentally, I hit a weird build issue where I added a new tag to a variant, but incremental compilation didn't really catch missing patterns and I hit a runtime error (probably because some of the object files were already built with the old variant)
wonko has quit [Ping timeout: 268 seconds]
wonko has joined #ocaml
wonko has quit [Ping timeout: 258 seconds]
<companion_cube>
dune build @check
<companion_cube>
that really shouldn't happen, exhaustive pattern checking works extremely well
vicfred has quit [Ping timeout: 248 seconds]
<scriptdevil>
Thank you!
wonko has joined #ocaml
wonko has quit [Ping timeout: 248 seconds]
<scriptdevil>
@companion_cube: Thanks a tonne once again. dune build @check helped me get my job done!
<companion_cube>
✔
<companion_cube>
now you can try `dune build @check -w` if your battery permits :p
<companion_cube>
-w is super nice
<scriptdevil>
Nice! check + watch is neat. I am plugged into a wall socket - so power shouldn't be a problem.
vicfred has joined #ocaml
scriptdevil has quit [Remote host closed the connection]
<d_bot>
<froyo> darrenldl: in my experience, leaving them out produced better inlining and better perf haha
<d_bot>
<froyo> also another one: how do you get processor count? Is a function for such defined anywhere in Sys or Unix?
conjunctive has quit [Ping timeout: 258 seconds]
cbarrett has quit [Ping timeout: 252 seconds]
cbarrett has joined #ocaml
conjunctive has joined #ocaml
kevinsjoberg has quit [Ping timeout: 256 seconds]
cemerick has joined #ocaml
kevinsjoberg has joined #ocaml
v0idpwn has joined #ocaml
JSharp has joined #ocaml
caasih has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
olle has joined #ocaml
<d_bot>
<froyo> seems like there isn't
<d_bot>
<froyo> in multicore even
wonko has joined #ocaml
olle has quit [Ping timeout: 272 seconds]
spip has quit [Quit: Konversation terminated!]
spip has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Read error: Connection reset by peer]