companion_cube changed the topic of #ocaml to: Discussion about the OCaml programming language | http://www.ocaml.org | OCaml 4.12 released: https://ocaml.org/releases/4.12.0.html | Try OCaml in your browser: https://try.ocamlpro.com | Public channel logs at https://libera.irclog.whitequark.org/ocaml/
henistein has quit [Quit: Client closed]
<v0idpwn> What's the usual way to achieve something similar to the Rust's debug trait?
Wilfred has quit [Quit: Connection closed for inactivity]
<companion_cube> ppx_deriving.show I guess?
berberman has joined #ocaml
berberman_ has quit [Ping timeout: 272 seconds]
dy` has joined #ocaml
dy has quit [Ping timeout: 272 seconds]
dy` has quit [Client Quit]
dy has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
OrangesApp has joined #ocaml
<OrangesApp> No operators?
<OrangesApp> I applied to Jane Street, FB, or BBG but I have no clue how to get a job there given that jobs in my locale have such a weird aversion to things they consider a barrier to hire. It’s bizarre to me.
Wilfred has joined #ocaml
<drakonis> there are ops in here though, they're just not wearing the flag all the time
waleee-cl has quit [Ping timeout: 272 seconds]
wingsorc has quit [Quit: Leaving]
wingsorc has joined #ocaml
<dmbaturin> OrangesApp: It's a tradition from back the Freenode days. Unlike in many other networks, having a +o all the time is considered something of an unnecessary display of power.
<dmbaturin> Well, most chanserv implementations don't have on-demand +o either, so in many other networks the question is moot.
<OrangesApp> Absolutely. I’ve done that before, actually. Thanks :)
mbuf has joined #ocaml
yoctocell has joined #ocaml
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
jyc has joined #ocaml
shawnw has quit [Ping timeout: 244 seconds]
gareppa has joined #ocaml
dy has quit [Quit: ZNC 1.9.x-git-124-15e2351d - https://znc.in]
dy has joined #ocaml
olle has joined #ocaml
yoctocell has quit [Remote host closed the connection]
OrangesApp has quit [Quit: Connection closed for inactivity]
TheLemonMan has joined #ocaml
Haudegen has joined #ocaml
Guest20 has joined #ocaml
mikess has quit [Ping timeout: 244 seconds]
mro has joined #ocaml
shawnw has joined #ocaml
mikess has joined #ocaml
Guest20 has quit [Quit: Client closed]
Guest20 has joined #ocaml
vizard has joined #ocaml
Guest20 is now known as impostor
impostor is now known as yiro
Wilfred has quit [Quit: Connection closed for inactivity]
jyc has quit [Quit: Connection closed for inactivity]
neiluj has joined #ocaml
unyu has quit [Ping timeout: 268 seconds]
asm has joined #ocaml
unyu has joined #ocaml
wonko has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Quit: Leaving...]
mro has joined #ocaml
bartholin has joined #ocaml
shawnw has quit [Ping timeout: 272 seconds]
mro has quit [Remote host closed the connection]
gareppa has quit [Quit: Leaving]
mro has joined #ocaml
<d_bot> <Cyclomatic Complexity> while installing `opam` on ubuntu following https://opam.ocaml.org/doc/Install.html#Ubuntu : `E: The repository 'http://ppa.launchpad.net/avsm/ppa/ubuntu focal Release' does not have a Release file.`
dreadedfrog has joined #ocaml
mro has quit [Ping timeout: 244 seconds]
gahr has quit [Quit: leaving]
gahr has joined #ocaml
dreadedfrog has quit [Quit: Client closed]
mro has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
gareppa has joined #ocaml
neiluj has quit [Quit: Leaving]
Haudegen has quit [Quit: Bin weg.]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
gareppa has quit [Quit: Leaving]
gareppa has joined #ocaml
mro has quit [Remote host closed the connection]
mro has joined #ocaml
mro has quit [Ping timeout: 244 seconds]
mro has joined #ocaml
yiro has quit [Ping timeout: 250 seconds]
mbuf has quit [Quit: Leaving]
Haudegen has joined #ocaml
mro has quit [Read error: Connection reset by peer]
mro has joined #ocaml
neiluj has joined #ocaml
<neiluj> Hello! Trying to convert a hash type to an S-expression, wondering how to proceed, usually standard types come with an sexp_of_t function
kvik has joined #ocaml
waleee has joined #ocaml
Guest20 has joined #ocaml
<neiluj> all right, found a way, i just converted the hash to its string representation in the S-expression.
kvik has quit [Ping timeout: 272 seconds]
mro has quit [Remote host closed the connection]
zebrag has joined #ocaml
zebrag has quit [Client Quit]
kvik has joined #ocaml
Guest20 has quit [Quit: Client closed]
swarm has joined #ocaml
zebrag has joined #ocaml
gareppa has quit [Quit: Leaving]
berberman has quit [Ping timeout: 244 seconds]
berberman_ has joined #ocaml
wonko has quit [Remote host closed the connection]
<d_bot> <Cyclomatic Complexity> I don't understand what the semantics of `(Sys_js.read_file ~name:f)` in JSOO are for the browser, most notably, it works in https://github.com/ocsigen/js_of_ocaml/blob/master/examples/webgl/webgldemo.ml#L227 but not when i try to do it locally
swarm has quit [Quit: Client closed]
<dmbaturin> octachron: Regarding string escape discussion we had yesterday: https://github.com/ocaml/ocaml/pull/10457
<octachron> dmbaturin, thanks for taking the time to write the pull request
gareppa has joined #ocaml
<dmbaturin> I'm not sure if `let format_from_string s = sscanf_format ("\"" ^ String.escaped s ^ "\"") fmt (fun x -> x)` would be safe to switch to the less aggressive escaping, and whether it would benefit from that. I also didn't add a Changes entry yet, but I will when we agree on the details.
<dmbaturin> Damn, I shot myself in the foot and accidentally removed all my doc updates using tools/sync_stdlib_docs... let me fix it.
berberman has joined #ocaml
berberman_ has quit [Ping timeout: 265 seconds]
waleee has quit [Ping timeout: 265 seconds]
zebrag has quit [Ping timeout: 265 seconds]
gareppa has quit [Ping timeout: 265 seconds]
waleee has joined #ocaml
<octachron> Your changes should still be in the reflogs, but yes the source is the labeled version.
zebrag has joined #ocaml
<dmbaturin> octachron: Pardon my ignorance, I've never added a new function to the stdlib before. Why tools/sync_stdlib_docs wants to _revert_ my changes to the .mli ?
gareppa has joined #ocaml
<octachron> It is safe to replace `String.escaped` with `String.escape` in `Scanf`: the escape is here for '"', '\\', '\n', and '\r' .
<octachron> dmbaturin, the documentation sources are the labeled modules. Once you have updated the labeled modules, you can propagate the changes to the non-labelled modules with tools/sync_stdlib_docs.
<dmbaturin> Oh, I see. Thanks, fixed!
waleee has quit [Ping timeout: 240 seconds]
Tuplanolla has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mikess has quit [Ping timeout: 272 seconds]
mikess has joined #ocaml
vicfred has joined #ocaml
TheLemonMan has joined #ocaml
neiluj has quit [Quit: Leaving]
mro has joined #ocaml
waleee has joined #ocaml
mro has quit [Remote host closed the connection]
bartholin has quit [Quit: Leaving]
<adrien_> re. operators: yes, +o is more likely to exacerbate tensions
<adrien_> and ops are absolutely not linked to any control of anything outside of the channel :P
gareppa has quit [Quit: Leaving]
<Corbin> I'm reading about Bigarrays. If I wanted to have a ragged multi-dimensional array (say, an upper-diagonal matrix/tensor) then would I have a single-dimensional Bigarray and an indexing helper?
<d_bot> <stab> does anybody know how to get the output of qcheck tests run through ounit2 if they dont terminate?
wingsorc has quit [Quit: Leaving]
wingsorc has joined #ocaml
<d_bot> <stab> like i have a qcheck generated value that is causing an infinite loop and im having trouble getting the input printed so that i can go debug it
<companion_cube> @stab are you running this via dune?
<d_bot> <stab> yeah
<companion_cube> (dune runtest has buffering)
<companion_cube> `dune runtest --no-buffer -f`
<d_bot> <stab> thanks!
<d_bot> <stab> that took care of it
adanwan_ has joined #ocaml
<companion_cube> 👍
Haudegen has joined #ocaml
olle has quit [Ping timeout: 244 seconds]
labor[m] has quit [Quit: Client limit exceeded: 10000]
hornhack has quit [Quit: Leaving]
sunset_NOVA has joined #ocaml
sunset_NOVA has quit [Client Quit]
<d_bot> <stab> qcheck has been absolutely massive throughout this project btw so thanks!!
labor[m] has joined #ocaml
mro has joined #ocaml
<companion_cube> I'm glad to hear that! :D
mro has quit [Ping timeout: 268 seconds]
leah2 has quit [Quit: trotz alledem!]
leah2 has joined #ocaml
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
oriba has joined #ocaml
wingsorc__ has joined #ocaml
wingsorc has quit [Remote host closed the connection]
wingsorc__ has quit [Remote host closed the connection]
wingsorc has joined #ocaml
Hrundi_V_Bakshi has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
vicfred has quit [Quit: Leaving]
<d_bot> <hhugo> Jsoo emulate an in memory filesystem
<d_bot> <hhugo> You can embed arbitrary files in your final JS. See how it's done in the corresponding dune file https://github.com/ocsigen/js_of_ocaml/blob/34ae55df899b3dfc53cbe6c16552441b75f982c9/examples/webgl/dune#L12
shawnw has joined #ocaml
<d_bot> <Cyclomatic Complexity> @hhugo Does it work well with `mode js`?
<d_bot> <hhugo> There might be an issue with sandboxing, you'll need to declare the extra deps somehow
Techcable_ is now known as Techcable
<d_bot> <Cyclomatic Complexity> i see
<d_bot> <Cyclomatic Complexity> is there a way to redefine `(::)` and `.(` in OCaml? https://caml.inria.fr/pub/docs/manual-caml-light/node4.9.html doesn't state so, I am getting syntax errors on `let ( .[[ )`, and it is impossible to google for symbols
<d_bot> <octachron> The caml-light manual is not exactly up to date with modern OCaml.
<companion_cube> !manual
<d_bot> <Cyclomatic Complexity> Haha. Right, just one of the links that I got on Google
<d_bot> <Cyclomatic Complexity> yessss
<d_bot> <Cyclomatic Complexity> thanks
<d_bot> <octachron> And `(::)` and `[]` are "normal" constructors that can be redefined.
<d_bot> <Cyclomatic Complexity> ooh, they are constructors, not vars
<octachron> companion_cube, would it be possible to switch ocabot to ocaml.org?
<ocabot> Success
Submarine has joined #ocaml
<d_bot> <undu> !manual
<Armael> ocabot is not smart enough to understand that it should interpret commands coming from discord through d_bot
waleee has quit [Quit: WeeChat 3.1]
waleee has joined #ocaml
Submarine has quit [Quit: Ex-Chat]
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
selimcan has joined #ocaml
selimcan has quit [Client Quit]
Serpent7776 has quit [Quit: leaving]
haesbaer1 has quit [Quit: leaving]
haesbaert has joined #ocaml
dhil has joined #ocaml
orbifx has joined #ocaml
<companion_cube> ah shoot indeed
<orbifx> I just got here, don't want to draw already companion_cube :P
<orbifx> Hi all
<companion_cube> :p
<orbifx> Was wondering, is there a consensus or a serious reason to favour dashes or underscores in opam names?
<companion_cube> ugh
<companion_cube> directly with the tricky questions
<orbifx> gotta start a real brawl first :P
<orbifx> so any takes? I got a package I need to decide about and can't seem to find anything written about it. The existing packages have both _ and -
<companion_cube> I tend to use -
<Armael> one advantage in favor of _ is that the name of the opam package can exactly match the name of the dune/findlib library
<Armael> and then the name of the main module (modulo capitalization)
<orbifx> Armael: any disadvantages?
<Armael> slightly less pretty
<orbifx> oof, that's a serious one :P
<Armael> I know right
<orbifx> ill got with underscore for now, it's also what I started with
<orbifx> unless we have any other takes?
<orbifx> I'll ask the list too. I haven't posted there in a while and all that goes there is symposia and calls for papers
<orbifx> thanks companion_cube, Armael, time to take off
Hrundi_V_Bakshi has quit [Ping timeout: 268 seconds]
orbifx has quit [Ping timeout: 240 seconds]
Haudegen has quit [Ping timeout: 272 seconds]
gzj has joined #ocaml
vizard has quit [Ping timeout: 272 seconds]
Tuplanolla has quit [Quit: Leaving.]
dhil has quit [Ping timeout: 272 seconds]