companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.0 released(!!1!): https://ocaml.org/releases/5.0.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
theblatte has quit [Ping timeout: 256 seconds]
theblatte has joined #ocaml
Tuplanolla has quit [Ping timeout: 255 seconds]
Guest97 has quit [Quit: Client closed]
edr has quit [Quit: Leaving]
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
euouae has joined #ocaml
<euouae> Hello all
<euouae> What are the .t directories under example in the dune project? <https://github.com/ocaml/dune/tree/main/example>
<euouae> (Why are they named like that?)
<euouae> ah, they're related to cram tests
szkl has quit [Quit: Connection closed for inactivity]
<euouae> How do I build or run this example?
<euouae> The documentation says `dune build @hello_world` for example, ran under dune/ rot
<euouae> root*. That builds everything including dune, but I can't find the hello_world executable
<companion_cube> it'll be in _build/default/
<euouae> Hm... nevermind. I need to figure this out. I don't understand why there's 7000 build targets when I build hello_world
<companion_cube> do you have dependencies?
<euouae> It's just the dune project itself. I don't know
<euouae> Also there's no executable related to hello_world.t under _build
<companion_cube> ah wait, you're trying to build dune itself
<euouae> What I want is only to build the examples
<companion_cube> dune build @examples/build or sth like that?
<euouae> dune build @hello_world is what I did
<euouae> "To run Cram Tests, you can use the alias that is created for the test. The name of the alias corresponds to the name of the test without the .t extension. For directory tests, this is the name of the directory without the .t extension. Assuming a cram-test.t or cram-test.t/run.t file exists, it can be run with:"
<companion_cube> at least it explains why you'd build dune itself :D
<euouae> companion_cube: I'm trying to contribute some examples to Dune, but I need to understand what is going on under example/ first
<companion_cube> can't help you :)
<euouae> ~:(
<euouae> life is hard
<euouae> It's ok. I thought maybe it's obvious.
<euouae> Well, I still have more questions. It appears this README explains how to use it: <https://github.com/ocaml/dune/tree/f26279c826c31fe9dc5e782afaf120dd52c90a46/example/hello_world.t>
<euouae> You `cd example/hello_world.t` then `dune build @install` and `dune runtest`
<euouae> However, that does nothing on my end, I do not get Hello World to appear
<euouae> I checked that the main.ml source is supposed to print this message.
<companion_cube> `dune exec bin/main.exe`
<euouae> where is that run? root or under hello_world.t?
<euouae> under the latter I get an error that ./bin/main.exe is not found
<companion_cube> in the subdirectory
<euouae> these commands are not working
<euouae> I'm wondering if the docs are outdated
<companion_cube> from hello_world.t, `dune exec ./bin/main.exe` doesn't work?? hu
<euouae> does it work for you?
<companion_cube> I don't have a local clone of the repo, so, haven't tried
<euouae> I'll complain
<companion_cube> how does it fail?
<euouae> the instructions on README.md succeed but do nothing, the ones in run.t give me an error that `./bin/main.exe is not found`
<companion_cube> very weird, looking at the dune files it looks like it'd work
<euouae> companion_cube: imagine that you want to run a mile but every step makes your legs cramp
<euouae> that's my experience doing anything with computers
<companion_cube> heh, yeah
tomku has quit [Ping timeout: 260 seconds]
mima has joined #ocaml
bartholin has joined #ocaml
szkl has joined #ocaml
tomku has joined #ocaml
mima has quit [Ping timeout: 260 seconds]
Serpent7776 has joined #ocaml
dhil has joined #ocaml
dnh has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
bartholin has quit [Quit: Leaving]
szkl has joined #ocaml
Guest97 has joined #ocaml
Guest97 has left #ocaml [#ocaml]
vnogueira has left #ocaml [WeeChat 4.1.1]
conjunctive has quit [Ping timeout: 268 seconds]
cbarrett has quit [Ping timeout: 252 seconds]
cbarrett has joined #ocaml
conjunctive has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mima has joined #ocaml
dnh has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
euouae has quit [Ping timeout: 252 seconds]
noonien85 has joined #ocaml
euouae has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
edr has joined #ocaml
Anarchos has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Anarchos has joined #ocaml
Anarchos has quit [Client Quit]
Anarchos has joined #ocaml
euouae has quit []
waleee has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
szkl has joined #ocaml
waleee has quit [Ping timeout: 255 seconds]
mima has quit [Quit: Lost terminal]
mima has joined #ocaml
bartholin has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<remexre> I'm trying to generate closed terms with Crowbar, but Crowbar.fix doesn't seem to make it too easy to pass context "down" (the set of bound variables); anyone have a recipe / trick for this? (or is it something obvious and i'm looking at it wrong?)
mima has quit [Ping timeout: 255 seconds]
ania123 has joined #ocaml
waleee has joined #ocaml
dnh has joined #ocaml
hannes has joined #ocaml
ania123 has quit [Quit: Client closed]
dhil has quit [Ping timeout: 268 seconds]
Tuplanolla has joined #ocaml
_whitelogger_ has joined #ocaml
rom1504 has quit [Ping timeout: 268 seconds]
_whitelogger has quit [Remote host closed the connection]
rom1504 has joined #ocaml
bartholin has quit [Quit: Leaving]
Serpent7776 has quit [Quit: leaving]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnh has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mima has joined #ocaml
dnh has joined #ocaml