Leonidas changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.13.0 released: https://ocaml.org/releases/4.13.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
Haudegen has quit [Ping timeout: 260 seconds]
<d_bot> <Président daren le pétrolier> is there any way to dynamically load a module compiled in bytecode with `Dynlink` and include it in a sub-module and not in the global space ?
gopiandcode has joined #ocaml
waleee has quit [Quit: WeeChat 3.3]
waleee has joined #ocaml
mbuf has joined #ocaml
waleee has quit [Ping timeout: 245 seconds]
hyphen has quit [Ping timeout: 244 seconds]
hyphen has joined #ocaml
zebrag has joined #ocaml
mbuf has quit [Ping timeout: 260 seconds]
bobo has joined #ocaml
spip has quit [Ping timeout: 260 seconds]
mbuf has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
shawnw has quit [Ping timeout: 265 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
herrschreinerei has quit [Ping timeout: 260 seconds]
wonko has joined #ocaml
hendursa1 has joined #ocaml
hendursaga has quit [Ping timeout: 276 seconds]
olle has joined #ocaml
bartholin has joined #ocaml
mro has joined #ocaml
spip has joined #ocaml
bobo has quit [Ping timeout: 260 seconds]
hendursa1 has quit [Remote host closed the connection]
hendursa1 has joined #ocaml
gopiandcode has quit [Quit: WeeChat 3.0]
kakadu has joined #ocaml
olle has quit [Ping timeout: 260 seconds]
rond_ has joined #ocaml
wonko has quit [Quit: See You Space Cowboy..]
wonko has joined #ocaml
wonko has quit [Ping timeout: 260 seconds]
wonko has joined #ocaml
bobo has joined #ocaml
spip has quit [Read error: Connection reset by peer]
bobo has quit [Quit: Konversation terminated!]
wonko has quit [Quit: See You Space Cowboy..]
spip has joined #ocaml
mro has quit [Remote host closed the connection]
wonko has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mbuf has quit [Quit: Leaving]
olle has joined #ocaml
mro has joined #ocaml
Haudegen has joined #ocaml
mro has quit [Remote host closed the connection]
rond_ has quit [Quit: Client closed]
bartholin_ has joined #ocaml
bartholin has quit [Ping timeout: 245 seconds]
wonko has quit [Quit: See You Space Cowboy..]
mro has joined #ocaml
wonko has joined #ocaml
average has joined #ocaml
gdd has joined #ocaml
wonko has quit [Quit: See You Space Cowboy..]
waleee has joined #ocaml
<d_bot> <VPhantom> Hi! I'm not sure which channel this would be best in, so I'm here. I used to use switch `4.11.1+musl+flambda` and I'm trying to upgrade to the latest, 4.13.1, and I notice that those options are no longer available since 4.12.0. The closest I got to installing the equivalent is similar to the release notes for opam 2.1, although not exactly. Below is without flambda to reduce variables.
<d_bot> <VPhantom>
<d_bot> <VPhantom> OCaml release notes:
<d_bot> <VPhantom> ```text
<d_bot> <VPhantom> opam switch create 4.13.1+flambda -ocaml-variants.4.13.1+options ocaml-option-flambda
<d_bot> <VPhantom> ```
<d_bot> <VPhantom> This makes opam crash with `opam: unkonwn option '-o'`. What almost works is removing the `-`:
<d_bot> <VPhantom> ```text
<d_bot> <VPhantom> opam switch create 4.13.1+musl ocaml-variants.4.13.1+options ocaml-option-musl
<d_bot> <VPhantom> ```
<d_bot> <VPhantom> This fails however, despite my having installed `musl`, `musl-dev` and `musl-tools` as was necessary for using `4.11.1+musl`:
<d_bot> <VPhantom> ```text
<d_bot> <VPhantom> ### output ###
<d_bot> <VPhantom> # [...]
<d_bot> <VPhantom> # /usr/bin/ld: domain.bpic.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
<d_bot> <VPhantom> ...
<d_bot> <VPhantom> # Makefile:295: recipe for target 'libcamlrun_shared.so' failed
<d_bot> <VPhantom> ```
<d_bot> <VPhantom> In the <4.12 releases musl "just worked" so I'm not sure how to resolve this. Has anyone used `ocaml-option-musl` since 4.12 successfully? Also, should I open a bug report about the extra `-` in the release notes?
<reynir> @VPhantom this channel is probably fine, but please note that it's bridged to IRC, and code blocks tend to be rather noisy on the irc end. We see the source markdown with each line as a separate message.
<d_bot> <VPhantom> Ouch, sorry about that!
<reynir> No worries :)
Yehowshua has joined #ocaml
mro has quit [Remote host closed the connection]
<d_bot> <octachron> Hm, `opam switch create 4.13.1+musl ocaml-variants.4.13.1+options ocaml-option-musl` works for me on Unbuntu 21.10.
herrschreinerei has joined #ocaml
<d_bot> <VPhantom> And you have musl musl-dev musl-tools installed?
<d_bot> <octachron> Yes (version 1.2.2-1)
<d_bot> <VPhantom> Hm, apparently the host I'm trying this on is on Debian Stretch. Maybe its GCC is too old.
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #ocaml
<d_bot> <VPhantom> Nope, exact same error on Debian Buster. 🤔
<d_bot> <VPhantom> Argh wrong terminal window, that was Stretch again. Compiling on my Buster host now…
<d_bot> <VPhantom> Ah ha! It's successful on Debian Buster so yeah, GCC 8.3.0 is fine but 6.3.0 must be too old for this. Given that Stretch is in Long Term Support and will retire in a few months (June 2022), I probably shouldn't investigate that further.
<d_bot> <VPhantom>
<d_bot> <VPhantom> Should I notify someone over at OCaml about that incorrect '-' in the 4.13.x release notes though?
bartholin_ has quit [Quit: Leaving]
<d_bot> <octachron> Well, I am already notified. You could also send a PR to ocaml.org, or wait for me to find the time to send the fix.
<d_bot> <VPhantom> I see that big pencil on the upper right corner so I'll give it a shot. 😉
mro has joined #ocaml
<d_bot> <octachron> @VPhantom thanks a lot for the PR!
Yehowshua has quit [Ping timeout: 256 seconds]
kakadu has quit [Quit: Konversation terminated!]
Haudegen has quit [Ping timeout: 245 seconds]
vicfred has joined #ocaml
gravicappa has joined #ocaml
hyphen has quit [Ping timeout: 260 seconds]
hyphen has joined #ocaml
mro has quit [Remote host closed the connection]
gravicappa has quit [Ping timeout: 260 seconds]
olle has quit [Ping timeout: 265 seconds]
mro has joined #ocaml
rgrinberg has joined #ocaml
gravicappa has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
gdd has quit [Remote host closed the connection]
gdd has joined #ocaml
mro has joined #ocaml
Yehowshua has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
gravicappa has quit [Ping timeout: 260 seconds]
Tuplanolla has joined #ocaml
<d_bot> <nath> Hello every one can somebody help me about an exercice in camel ? I have to draw a cross with matrice and I don’t understand how 😕
<d_bot> <octachron> What is the context? "Drawing with matrice" is quite unclear. Do you mean that you have a function that draws a matrix (aka a two-dimensional array) and you don't know how to create a matrix representing a cross?
mro has joined #ocaml
Yehowshua has quit [Ping timeout: 256 seconds]
mro has quit [Ping timeout: 260 seconds]
<d_bot> <RegularSpatula> I assume it is something like this: https://discord.com/channels/436568060288172042/585511202759770135/895404338896310314
Yehowshua has joined #ocaml
olle has joined #ocaml
mro has joined #ocaml
mro has quit [Ping timeout: 258 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yehowshua has quit [Ping timeout: 256 seconds]
<d_bot> <monk> what is the general approach to pretty printing? is it all ppx?
<d_bot> <monk> one of those things i wish ocaml was a bit less difficult about up front
<companion_cube> personally it's manual printers, although recently I've been using ppx_deriving.show more and more
<d_bot> <monk> ppx_deriving is tempting because that's basically what rust gives you for free, haha
<d_bot> <monk> "free"
<companion_cube> yeah…
<companion_cube> I wish it shipped with the compiler
<d_bot> <monk> if it were possible to provide a simpler API to `Format` for naive pretty printers, that would work to
<d_bot> <monk> i can understand why pretty printing is complicated
mro has joined #ocaml
<d_bot> <monk> but if it were possible to find a reduced surface for just basic things and make that its own function/sub-module, that would be an improvement imo
<d_bot> <monk> was overwhelming seeing all the `@` formatting codes and the various sub-arguments you can provide to each, the notion of cutting, open/closing a box, etc
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<d_bot> <monk> then again, maybe that's why `ppx_deriving.show` became a thing to start with...
<companion_cube> you cn use the `fmt` library
<companion_cube> or CCFormat :p
<d_bot> <monk> haha
<companion_cube> but yeah, it's good to know about boxes
mro has quit [Remote host closed the connection]
<d_bot> <mimoo> is there a nicer looking alternative to odoc for html docs?
dinosaure1 is now known as dinosaure
<d_bot> <octachron> odoc with customized css?
mro has joined #ocaml
<d_bot> <monk> cs3110 text touches on pretty printing a bit in §5.4.3 but it closes on a weak note by stating:
<d_bot> <monk> > For more information, see the toplevel manual (search for #install_printer), the Format module, and this OCaml Github issue. The latter seems to be the only place that documents the use of extra arguments, as in pp_val above, to print values of polymorphic types.
<d_bot> <monk> the aforementioned issue: https://github.com/ocaml/ocaml/issues/5958
eremitah has joined #ocaml
<d_bot> <monk> this has to do with utop of course, but still
Yehowshua has joined #ocaml
eremitah has quit [Client Quit]
Haudegen has joined #ocaml
<d_bot> <monk> ooh, interesting
<d_bot> <monk> thanks for the link
<d_bot> <monk> the blag is a good title, haha
Yehowshua has quit [Ping timeout: 256 seconds]
<companion_cube> meanwhile seems like my syntax highlighting on the blog is fucked
waleee has quit [Quit: WeeChat 3.3]
Yehowshua has joined #ocaml
<d_bot> <monk> just looks like the syntax theme is too light, yeah?
waleee has joined #ocaml
<d_bot> <andreypopp> I’ve found pprint to be much more approachable. For debug purposes (dumping internals) I’m using ppx_sexp_conv
<d_bot> <andreypopp> pprint over fmt, I meant
hyphen has quit [Ping timeout: 265 seconds]
hyphen has joined #ocaml
<reynir> self blag
<companion_cube> but pprint seems super verbose
<companion_cube> fixed the theme, ugh
<companion_cube> I thought Zola would be stable, but no, they also break shit for no reason
Yehowshua has quit [Ping timeout: 256 seconds]
olle has quit [Ping timeout: 265 seconds]
<d_bot> <monk> haha, as someone maintaining a somewhat popular zola theme i am very thankful to the PR's that have kept it functioning with each new version
<d_bot> <monk> the breaking changes haven't been too bad but they do exist and boy do i not care to keep up on it lol
shawnw has joined #ocaml
<d_bot> <Alistair> Is there an OCaml library that provides a vector (dynamic array)?
Yehowshua has joined #ocaml
<d_bot> <andreypopp> CCVector, vec, pvec
<d_bot> <Bluddy> (but it should really be in the standard library)
waleee has quit [Ping timeout: 245 seconds]
waleee has joined #ocaml
mro has quit [Ping timeout: 258 seconds]
<companion_cube> @monk which theme?
<companion_cube> Yeah +1 @bluddy
<companion_cube> I had to move the syntax highlighting stuff to a new "markdown" section...
olle has joined #ocaml
Yehowshua has quit [Quit: Client closed]
olle has quit [Ping timeout: 260 seconds]
bobo has joined #ocaml
spip has quit [Ping timeout: 260 seconds]
Tuplanolla has quit [Quit: Leaving.]
theblatte has quit [Ping timeout: 264 seconds]
theblatte has joined #ocaml