companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 5.2.0 released: https://ocaml.org/releases/5.2.0 | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
<dh`> is it? it's a separate package in my world, and a separate source distfile
<twobitsprite> dh`: every other SDL language binding I've used included IMG. Are you here to be helpful, or are you just here to get dopamine hits by being a snarky know-it-all?
TCZ has quit []
<dh`> huh?
<dh`> well excuse me, just trying to suggest reasons why it might not be there
<dh`> sheesh
dh` has left #ocaml [#ocaml]
waleee has quit [Read error: Connection reset by peer]
gentauro has quit [Ping timeout: 252 seconds]
reynir has quit [Ping timeout: 276 seconds]
reynir has joined #ocaml
gentauro has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
ygrek has quit [Remote host closed the connection]
<discocaml> <.armael.> it should be in opam as well
dawids has joined #ocaml
bartholin has joined #ocaml
dawids_ has joined #ocaml
dawids has quit [Ping timeout: 252 seconds]
bhoot has joined #ocaml
dawids_ has quit [Quit: Leaving]
Serpent7776 has joined #ocaml
mbuf has joined #ocaml
toastal has quit [Ping timeout: 264 seconds]
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
toastal has joined #ocaml
olle has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
bhoot has joined #ocaml
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
TCZ has joined #ocaml
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
bhoot has quit [Ping timeout: 244 seconds]
<discocaml> <gooby_clown> Do we have to fill in dune-project with all the dependencies scattered throughout the dune files manually, or is there a way for dune to fill them in on its own
<discocaml> <gooby_clown> Would be great if it was like npm where installing also adds it to the project dependencies
bhoot has joined #ocaml
<discocaml> <deepspacejohn> If I export a type that uses types from a functor, is there a simpler way to specify them in the interface than `type foo = { bar : int Map.Make(String).t }`?
<discocaml> <deepspacejohn> In other words, is there a way to "alias" the result of `Map.Make(String)` and reuse it in the interface, without actually having to export that module?
<discocaml> <deepspacejohn> @Gooby I don't think so. Technically, you don't need to specify them in dune-project at all. Dune is pretty agnostic as to how you manage your dependencies. I think putting them in dune-project is just for if you use Dune to generate opam files.
<discocaml> <deepspacejohn> @gooby_clown I don't think so. Technically, you don't need to specify them in dune-project at all. Dune is pretty agnostic as to how you manage your dependencies. I think putting them in dune-project is just for if you use Dune to generate opam files.
<discocaml> <gooby_clown> I do use it to generate the opam file, but what I actually want to do is to be able to, after cloning my own project, be able to run a single command to install the dependencies in the current switch. Opam has `opam install --deps-only` but for that the deps need to be in the opam file, and with generated opam files that means them being in the dune-project, so I was thinking how it would be nice if dune could populate that by itself by ju
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bhoot has joined #ocaml
<discocaml> <deepspacejohn> Yeah, I don’t think there’s a way to completely automate it. Maybe whenever Dune releases its own packaging management feature it might be easier.
<discocaml> <ada2k> library names are different from opam packages anyway
bhoot has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<discocaml> <leviroth> Good point
bhoot has joined #ocaml
<discocaml> <ada2k> i don’t find it that much of a hassle anyway, if i have lots and lots of dependencies it’s normally broke up into a couple of packages that depend on each other
bhoot has quit [Client Quit]
<discocaml> <ada2k> having dune say discern from (libraries logs.fmt) that you want to depend on logs and fmt would need a mini solver
bhoot has joined #ocaml
bhoot has quit [Client Quit]
TCZ has quit []
<discocaml> <deepspacejohn> Yeah, I don’t really mind it much either. Theoretically it would be nicer to automate things more but also OCaml projects don’t have a gazillion dependencies like npm projects do
ygrek has joined #ocaml
<discocaml> <gooby_clown> Fair fair, I see
patrick_ is now known as patrick
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #ocaml
patrick is now known as Guest8124
Guest8124 has quit [Killed (zinc.libera.chat (Nickname regained by services))]
patrick_ has joined #ocaml
<discocaml> <leviroth> Is it not the case that you can unambiguously map findlib names to file paths, and file paths to opam packages?
bhoot has joined #ocaml
bhoot has quit [Client Quit]
myrkraverk__ is now known as myrkraverk
olle has quit [Ping timeout: 260 seconds]
<discocaml> <ada2k> i'm sure you can, it would just be a PITA.
myrkraverk has quit [Read error: Connection reset by peer]
myrkraverk has joined #ocaml
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #ocaml
patrick_ is now known as patrick
patrick is now known as Guest1045
Guest1045 has quit [Killed (molybdenum.libera.chat (Nickname regained by services))]
patrick_ has joined #ocaml
<discocaml> <davesnx> did anyone implemented an async JSON parsing lib?
<discocaml> <deepspacejohn> jsonm works with streaming data, if that fits what you want
<discocaml> <davesnx> thanks, that's what I was looking for
<companion_cube> Can you work around that by using jsonl or sth reasonable of that sort?
gareppa has joined #ocaml
bhoot has joined #ocaml
bhoot has quit [Client Quit]
<discocaml> <davesnx> I didn't know jsonl !!!!
<discocaml> <davesnx> but in this case I need json 😦
<discocaml> <getzapped.> are jane street's rust-style ownership extensions available to use or are they more like propositions yet to be implemented?
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
<companion_cube> @davesnx sorry for your situation :p
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
sailorCat has quit [Client Quit]
sailorCat has joined #ocaml
dreadedfrog has quit [Ping timeout: 244 seconds]
dreadedfrog has joined #ocaml
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
<discocaml> <davesnx> hahaha
gareppa has quit [Quit: WeeChat 4.1.1]
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
mbuf has quit [Quit: Leaving]
Serpent7776 has quit [Ping timeout: 260 seconds]
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
Anarchos has joined #ocaml
sailorCat has joined #ocaml
tomku has quit [Ping timeout: 248 seconds]
tomku has joined #ocaml
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
sailorCat has quit [Client Quit]
sailorCat has joined #ocaml
twobitsp1ite has quit [Read error: Connection reset by peer]
twobitsprite has quit [Read error: Connection reset by peer]
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
twobitsprite has joined #ocaml
<twobitsprite> I just tried to run "opam install tsdl-image" in my linux vbox VM, and it just hang, maxing out all 4 of my system's CPU cores......
<twobitsprite> I had to kill the VM and reboot it
<twobitsprite> running it again, it seems to be happy now, idk what happened
sailorCat has quit [Quit: ZNC 1.8.2 - https://znc.in]
sailorCat has joined #ocaml
<twobitsprite> anyway..... I got tsld_image installed, added it to my (depeneds ...) stanza in my dune-project file, and in the (libraries ...) stanza in my lib/dune file, but I'm getting: Error: Library "tsdl_image" not found.
<discocaml> <Kali> did you install it
<discocaml> <Kali> dune build; opam install . --deps-only
<discocaml> <Kali> dune doesn't install anything, it just generates the file to install from
<discocaml> <Kali> wait, nevermind
<twobitsprite> kali: yes, I did "opam install tsdl_image"
<discocaml> <Kali> i didn't read the first part of the sentence 😅
<twobitsprite> :P
<twobitsprite> I just pushed what I have to github, if you want to look it over: https://github.com/memotype/olarn
<discocaml> <Kali> well first off tsdl and tsdl-image are separate packages but you only have tsdl in (depends ...) it seems
<twobitsprite> (depends ocaml dune tsdl tsdl_image)
<discocaml> <Kali> it doesn't show that for me
<twobitsprite> ohhh, sec
<twobitsprite> test branch, sorry
<discocaml> <Kali> also it's tsdl-image (hyphen) not tsdl_image (underscore)
<twobitsprite> even in the lib/dune file?
<twobitsprite> ahh, that fixed it, thanks
<discocaml> <Kali> try changing that and see if it fixes it
<discocaml> <Kali> yeah
<discocaml> <Kali> hyphens and underscores aren't interchangeable
<twobitsprite> it's a bit confusing that in ocaml-land, it's _, but in opam- and dune-land it's - ...
<discocaml> <Kali> yeah
<discocaml> <Kali> then you've got some that mix both
<twobitsprite> anyway, good to know, thanks
<discocaml> <Kali> js_of_ocaml-ppx
<twobitsprite> even though it can be frustrating sometimes, it is super satisfying getting that zero output from "dune build" :D
Inline has joined #ocaml
toastal has quit [Quit: Gateway shutdown]
toastal has joined #ocaml
dh` has joined #ocaml
Anarchos has quit [Quit: Vision[]: i've been blurred!]
Inline has quit [Quit: Leaving]
<discocaml> <ada2k> twobitsprite: it’ll become second nature. wait until you have a project with 10 pin depends
TCZ has joined #ocaml
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
<discocaml> <ada2k> how involved is the process for submitting an opam package? can dune just do it now
bartholin has quit [Quit: Leaving]
Tuplanolla has joined #ocaml
<companion_cube> Use dune release