<dh`>
masterbuilder: that's coming from a very specialized corner of things
<dh`>
oops
Tuplanolla has quit [Quit: Leaving.]
waleee has quit [Ping timeout: 272 seconds]
mmohammadi9812 has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 272 seconds]
motherfsck has quit [Ping timeout: 268 seconds]
ocra8 has quit [Quit: WeeChat 4.2.2]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mbuf has joined #ocaml
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ocaml
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
motherfsck has joined #ocaml
motherfsck has quit [Ping timeout: 268 seconds]
motherfsck has joined #ocaml
Tuplanolla has joined #ocaml
bartholin has joined #ocaml
dnh has joined #ocaml
mima has joined #ocaml
Serpent7776 has joined #ocaml
rgrinberg has joined #ocaml
mima has quit [Ping timeout: 268 seconds]
mima has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
mima has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
bartholin has quit [Quit: Leaving]
bartholin has joined #ocaml
ocra8 has joined #ocaml
waleee has joined #ocaml
gzar has joined #ocaml
<gzar>
Hey there, I was wondering if anyone here knows about a good way to mix ocaml and java. Besides OcamlJava because its kind of not beeing developed much and is still at version 4.01.0
<discocaml>
<lukstafi> What's the easiest way to open a file and get its `FILE*` -- C file pointer?
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Ping timeout: 268 seconds]
<companion_cube>
You can't
mima has joined #ocaml
rgrinberg has joined #ocaml
waleee has quit [Ping timeout: 256 seconds]
waleee has joined #ocaml
Serpent7776 has joined #ocaml
ocra8 has quit [Quit: WeeChat 4.2.2]
<gzar>
Whats the correct way to use a 3rd party library? I've install tgls, but when I try to do 'open Tgl3' like the doc states, it just cant find the module.
<gzar>
its installed in ~/.opam/5.1.1/lib/tgls
<gzar>
Do I have to setup a dune project to be able to reference this module?
<discocaml>
<yawaramin> your best option is to use dune, it will take care of the details of compilation and is the currently supported build tool of the OCaml Platform
mbuf has quit [Read error: Connection reset by peer]
mbuf has joined #ocaml
<gzar>
alright, I just thought that just referencing the module would work in like an ocaml top-level or a lone .ml file
ocra8 has joined #ocaml
mbuf has quit [Quit: Leaving]
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<companion_cube>
Use dune or `#require` in utop
<gzar>
thanks
mima has quit [Ping timeout: 245 seconds]
dnh has joined #ocaml
<discocaml>
<yawaramin> utop is a REPL so slightly different use cases
<companion_cube>
Tbh I mostly use `dune utop`, rarely utop alone
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
mima has joined #ocaml
rgrinberg has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<rustyne>
gzar: OCaml compilers don’t know much about packages, they must be told explicitly where to look for modules, etc. with `-I`
<gzar>
rustyne: even if its in a standard location like .opam/default/lib ?
<rustyne>
dune or ocamlfind are there to feed them that info (among many other goals, for dune)
<rustyne>
yes, OCaml doesn’t know about OPAM :-)
<gzar>
ooh right
<gzar>
they come installed together, so I kind of assumed there is some level of shared code or something
rgrinberg has joined #ocaml
<gzar>
thats actually pretty good, using # ocaml -I `ocamlfind query tgls.tgl3` I can now do what I expected.
<discocaml>
<yawaramin> it's a layer system. OCaml distribution is the innermost layer and it doesn't know about anything else. opam is the layer outside that which knows where packages are installed. dune is the layer outside that which knows how to build the project. this way everything can be swapped out in the future if need be.
<rustyne>
I often use `dune build --verbose` to see how the compiler is actually invoked to build, by the way
<companion_cube>
or look at _build/log
jabuxas has joined #ocaml
dnh has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]