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/
hendursaga has quit [Quit: hendursaga]
hendursaga has joined #ocaml
elf_fortrez has joined #ocaml
elf_fortrez has quit [Quit: Client closed]
favonia has joined #ocaml
shawn has quit [Remote host closed the connection]
shawnw has joined #ocaml
rgrinberg has quit [Read error: Connection reset by peer]
rgrinberg has joined #ocaml
adanwan has quit [Ping timeout: 276 seconds]
jonasbits has quit [Ping timeout: 240 seconds]
xd1le has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
adanwan has joined #ocaml
rgrinberg has joined #ocaml
[itchyjunk] has quit [Quit: Leaving]
mbuf has joined #ocaml
waleee has quit [Ping timeout: 260 seconds]
favonia has quit [Ping timeout: 265 seconds]
mbuf has quit [Quit: Leaving]
rgrinberg has quit [Ping timeout: 252 seconds]
zebrag has quit [Quit: Konversation terminated!]
gravicappa has joined #ocaml
jonasbits has joined #ocaml
wonko has joined #ocaml
Haudegen has joined #ocaml
mbuf has joined #ocaml
Serpent7776 has joined #ocaml
mro has joined #ocaml
rgrinberg has joined #ocaml
gravicappa has quit [Ping timeout: 260 seconds]
gravicappa has joined #ocaml
olle_ has joined #ocaml
olle_ has quit [Ping timeout: 252 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
mro has quit [Quit: Leaving...]
nore has joined #ocaml
daachi has quit [Ping timeout: 252 seconds]
daachi has joined #ocaml
hendursa1 has joined #ocaml
hendursaga has quit [Ping timeout: 276 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<d_bot> <actionshrimp> anyone know what's going on here? perhaps an ocamlopt bug? https://gist.github.com/actionshrimp/4074c03b3b8a88cb2fa065d42e69f742
favonia has joined #ocaml
<zozozo> @actionshrimp : that definitely looks like a bug in ocamlopt, you should probably open an issue on github
<d_bot> <actionshrimp> will do, thanks
adanwan has quit [Remote host closed the connection]
bartholin has joined #ocaml
kit_ty_kate has joined #ocaml
<kit_ty_kate> Soni: did you end-up sending something to caml-devel?
<Soni> kit_ty_kate: nah, not an ocaml issue
<Soni> still trying to convince the dev that it's an actual security issue tho :/
wwilly has quit [Quit: Leaving]
gravicappa has quit [Ping timeout: 252 seconds]
<kit_ty_kate> Soni: did you contact somebody specifically?
<Soni> yeah, the dev
Haudegen has quit [Quit: Bin weg.]
<kit_ty_kate> who? Somebody who's on the caml-devel list asked me if you sent something there because he couldn't see any new email
<kit_ty_kate> he was curious
<Soni> dmbaturin
Anarchos has joined #ocaml
[itchyjunk] has joined #ocaml
daachi has quit [Ping timeout: 252 seconds]
mro has joined #ocaml
wwilly has joined #ocaml
mro has quit [Remote host closed the connection]
xd1le has quit [Quit: xd1le]
Haudegen has joined #ocaml
romildo has joined #ocaml
mro has joined #ocaml
daachi has joined #ocaml
mro has quit [Ping timeout: 265 seconds]
romildo has quit [Quit: Leaving]
gravicappa has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
Anarchos has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
rond_ has joined #ocaml
kakadu has quit [Ping timeout: 256 seconds]
hendursa1 has quit [Quit: hendursa1]
hendursaga has joined #ocaml
favonia has quit [Ping timeout: 260 seconds]
zebrag has joined #ocaml
kakadu has joined #ocaml
favonia has joined #ocaml
waleee has joined #ocaml
favonia has quit [Ping timeout: 260 seconds]
[itchyjunk] has quit [Remote host closed the connection]
<companion_cube> Woah actionshrimp
<Anarchos> what could prevent a Unix.read to read from a local socket when the socket is full ?
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 265 seconds]
favonia has joined #ocaml
kit_ty_kate has left #ocaml [WeeChat 2.9]
adanwan has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
Anarchos has joined #ocaml
rond_ has quit [Quit: Client closed]
Haudegen has quit [Quit: Bin weg.]
vicfred has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
bartholin has quit [Quit: Leaving]
Haudegen has joined #ocaml
adanwan has quit [Ping timeout: 276 seconds]
mbuf has quit [Quit: Leaving]
vicfred has quit [Quit: Leaving]
kakadu_ has quit [Remote host closed the connection]
cemerick has quit [Read error: Connection reset by peer]
cemerick has joined #ocaml
rgrinberg has joined #ocaml
mro has joined #ocaml
mro has quit [Remote host closed the connection]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
daachi has quit [Ping timeout: 252 seconds]
mro has joined #ocaml
olle has joined #ocaml
rgrinberg has joined #ocaml
mro has quit [Ping timeout: 260 seconds]
wwilly has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vicfred has joined #ocaml
<cemerick> I'm getting a strange error trying to run `dune utop` with sources that use ppx_rapper; if anyone feels like it, would be interested to see if it's truly reproducible https://github.com/cemerick/rapper_utop
<cemerick> It is in my environments (incl. a clean ubuntu container), but who knows, maybe I'm falling prey to something sneaky
wwilly has joined #ocaml
<olle> Hm
favonia has quit [Remote host closed the connection]
<olle> Is there a set data structure with O(1) access time?
<olle> Except hash table
<olle> Maybe I want a hashtable with empty value, only the key
<sim642> The project I work on just uses unit-valued hashtables for that everywhere
<olle> Oh, good idea
<olle> sim642: "Everywhere"...?
<sim642> everywhere where such mutable set is required :)
<olle> Got it
<sim642> Not sure if there's any notable overhead to having the unit values everywhere though
<olle> Doesn't matter
<olle> ` Hashtbl.fold (fun k v -> "") regs ""
<olle> `
<olle> What's wrong here?
<olle> With a (string, unit) Hashtbl.t table
<olle> Expecting 'a -> 'a, and not string?
<sim642> Probably missing the accumulator argument of the fun, whatever order they are in there
<olle> A freakin example in the docs would be nice, not just 'a 'b 'c :|
<sim642> The polymorphic type is actually good for understanding what goes where
<sim642> The simplest examples are such that the accumulator has the same type as the element, which doesn't tell you how to use it in general
favonia has joined #ocaml
<olle> Could have both?
<olle> Same error with (fun k v acc -> "")
<olle> Bah
<olle> Nope, I'm an idio
<olle> t
<olle> Works now, thanks sim642 !
<d_bot> <pm> @cemerick I use a very similar library setup and I wanted to see what was going on. You cannot run utop on a library directly apparently. If I update your dune file to be (executable (name main) ...) then all is well. I referred to https://discuss.ocaml.org/t/dune-utop-limitations/6881 which reinforces that
<d_bot> <pm> I should be more clear : you cannot run dune utop on only a library
rgrinberg has joined #ocaml
<d_bot> <cemerick> oooooh, on _only_ a library is the key part
<d_bot> <cemerick> Thanks you, I'll add a dummy executable later
<d_bot> <cemerick> What a bizarre limitation tho
<d_bot> <pm> yeah i wonder if it's by design or not, my app has a bunch of executables for being able to cram test everything so i never ran into this issue before
Stumpfenstiel has joined #ocaml
bastienleonard has joined #ocaml
<d_bot> <rgrinberg> The linked thread explains why the limitation is there
bastienleonard has quit [Client Quit]
bastienleonard has joined #ocaml
vicfred has quit [Quit: Leaving]
bastienleonard has quit [Client Quit]
bastienleonard has joined #ocaml
gravicappa has quit [Ping timeout: 265 seconds]
favonia has quit [Ping timeout: 260 seconds]
<olle> WAIT
<olle> What's the order of concatenation in OCaml?
<olle> a () ^ b ()
<olle> b () runs before a ()?
<d_bot> <NULL> That's evaluation order (I don't think it would change if it were `@` instead), and I'm pretty sure it's undefined
<olle> Undefined?
<olle> I'm having weird results with my hashtable
<olle> Length 0 at the end and length 1 before anything should happen
<d_bot> <NULL> The compiler does it in a certain order, but it can do it in any order and you shouldn't rely on it
<d_bot> <NULL> If you want to make sure `a ()` is evaluated before `b ()`, assign them to variables beforehand
<olle> NULL, oooook
<olle> Good info ><
<d_bot> <NULL> Most languages have an undefined evaluation order BTW
rgrinberg has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<olle> Yes, works
<olle> They do?
<olle> I'm too used to PHP, I guess
<d_bot> <NULL> Looks like PHP also has an undefined order of evaluation. If you always use the same interpreter, you won't notice though
<olle> There is only one, afaik
<d_bot> <cemerick> Sure, just haven't looked at it yet, on mobile; just my immediate surprise
<olle> Or maybe the value semantics of the hash tables makes the problem disappear, idk
<olle> hash table = "array" in php (sadly)
<d_bot> <NULL> Evaluation order has nothing to do with hashtables
favonia has joined #ocaml
<olle> In my case it did, since a () and b () added values to it
<d_bot> <NULL> Ok, I should have written "is completely independent from"
<olle> Sure :)
jess is now known as j
rgrinberg has joined #ocaml
olle has quit [Ping timeout: 265 seconds]
Serpent7776 has quit [Quit: leaving]
favonia has quit [Ping timeout: 265 seconds]
wonko has quit [Ping timeout: 252 seconds]
vicfred has joined #ocaml
Tuplanolla has joined #ocaml
[itchyjunk] has joined #ocaml
favonia has joined #ocaml
shawnw has quit [Quit: Leaving]
shawnw has joined #ocaml
<d_bot> <cemerick> I read the thread that @pm linked; it does detail the limitation, but doesn't speak to why it exists, or why `dune utop`might fail entirely if no executable stanza is defined at all?