companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
reynir has quit [Ping timeout: 240 seconds]
reynir has joined #ocaml
hannes_ has joined #ocaml
hannes has quit [Read error: Connection reset by peer]
nicoo has quit [Ping timeout: 240 seconds]
nicoo has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
steenuil has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 256 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 264 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 260 seconds]
ygrek has quit [Remote host closed the connection]
mxns has joined #ocaml
mxns has quit [Ping timeout: 272 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
reynir has quit [Remote host closed the connection]
reynir has joined #ocaml
mcc has quit [Quit: Connection closed for inactivity]
shawnw has joined #ocaml
narimiran has joined #ocaml
Serpent7776 has joined #ocaml
<vsiles> hmm strange thing happening with opam: I'm trying to update js_of_ocaml to 3.8, and I get the error:
<vsiles> js_of_ocaml → ppxlib >= 0.15.0 → ocaml-migrate-parsetree >= 2.0.0
Haudegen has joined #ocaml
<vsiles> however when I `opam show ppxlib.0.15.0` I see "ocaml-migrate-parsetree" {>= "1.5.0" & < "2.0.0"}
<vsiles> in the depends list...
<vsiles> I'm confused
<oni-on-ion> hmmm
<oni-on-ion> i just opam'd 4.11.1 yesterday, then js_of_ocaml, no problems
<vsiles> we're stuck to 4.07.1 atm, so I'm carefull in the update. The plan is to migrate slowly to a more recent version
<vsiles> and I'm trying to update all the libs I can, then update the compiler (to 4.09.1 first, most probably)
<vsiles> I'll try to add explicit ppxlib.0.15.0 in our list of required packages, see if that leads to a better error
<vsiles> ok, the info was quite wrong, but there was an dependency issue. Fixing this
<oni-on-ion> ah, hmm
<vsiles> it should have reported ppx_hash rather than ocaml-migrate-parsetree
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
borne has joined #ocaml
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
vicfred has quit [Quit: Leaving]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
steenuil has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
reynir has quit [Ping timeout: 240 seconds]
bartholin has joined #ocaml
reynir has joined #ocaml
narimiran has quit [Ping timeout: 240 seconds]
ggole has joined #ocaml
hannes_ is now known as hanne
hanne is now known as hannes
mfp has joined #ocaml
reynir has quit [Remote host closed the connection]
reynir has joined #ocaml
waleee-cl has joined #ocaml
<d_bot> <Criss> lets say i have a list of lists of numbers, basically like a matrix.
<d_bot> <Criss> how do i write a function to check whether all the inner lists are of the same length.
<d_bot> <Criss> I am confused 😦
<Fardale> What are you confused about?
shawnw has quit [Quit: Leaving]
shawnw has joined #ocaml
<vsiles> @Criss one way would be to first compute the length of all inner lists, and then check they are all equal (to the first one for example). What is blocking you ?
<vsiles> (obviously you can do both in one pass, just unsure what you're problem is)
jbrown has quit [Ping timeout: 272 seconds]
<gahr> how I would do it
<gahr> let all_same = function | [] -> true | x :: xs -> List.(for_all (fun e -> length x = length e) xs)
<gahr> hopefully the compiler will evaluate length x once only?
<Armael> I think you need to let-bind `length x` outside of the List.for_all for that
<gahr> shame :(
<gahr> let all_same = function | [] -> true | x :: xs -> List.(let l1 = length x in for_all (fun e -> l1 = length e) xs)
<gahr> good enough
jbrown has joined #ocaml
FreeBirdLjj has joined #ocaml
<octachron> you can also use List.compare_length_with for maximal premature optimization.
<Armael> TIL about this function
<gahr> nice wasn't aware of it
Haudegen has quit [Quit: Bin weg.]
<d_bot> <Kate> vsilies: are you using opam 2.1 by any chance?
<d_bot> <Kate> vsiles*
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
<vsiles> let me check that
<vsiles> 2.0.1
Anarchos has joined #ocaml
ygrek has joined #ocaml
DanC has quit [Remote host closed the connection]
DanC has joined #ocaml
amiloradovsky has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
<reynir> Does Sys (or Unix) not offer unsetenv?
tvn948 has joined #ocaml
borne has quit [Ping timeout: 260 seconds]
tvn948 has quit [Client Quit]
tvn948 has joined #ocaml
tvn948 has quit [Client Quit]
Tuplanolla has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
shawnw has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Ping timeout: 265 seconds]
Haudegen has quit [Quit: Bin weg.]
narimiran has joined #ocaml
hnOsmium0001 has joined #ocaml
ggole has quit [Quit: Leaving]
bartholin has quit [Quit: Leaving]
Haudegen has joined #ocaml
amiloradovsky has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
motherfsck has quit [Remote host closed the connection]
motherfsck has joined #ocaml
vicfred has joined #ocaml
decentpenguin has quit [Ping timeout: 260 seconds]
decentpenguin has joined #ocaml
tane has joined #ocaml
berberman has joined #ocaml
berberman_ has quit [Ping timeout: 260 seconds]
<ygrek> @reynir, extunix offers
Anarchos has joined #ocaml
borne has joined #ocaml
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
octachron has quit [Quit: ZNC 1.7.5 - https://znc.in]
octachron has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
Anarchos has quit [Quit: Vision[0.10.3]: i've been blurred!]
delysin has quit [Quit: WeeChat 3.0]
delysin has joined #ocaml
narimiran has quit [Ping timeout: 240 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
borne has quit [Ping timeout: 272 seconds]
borne has joined #ocaml
f[x] has joined #ocaml
ygrek has quit [Ping timeout: 240 seconds]
<inkbottle> `opam install incr_dom` fails with `File "src/start_app.ml", line 185, characters 69-82` `Error: Unbound value Attr.get_name`.
<inkbottle> There is a function of that name with the correct signature in `https://github.com/janestreet/virtual_dom/blob/master/src/attr.ml#L68`.
_whitelogger has joined #ocaml
<inkbottle> The `get_name` function doesn't seem to be in the opam packaged version, which is v0.14 https://opam.ocaml.org/packages/virtual_dom/
Coueek[m] has joined #ocaml
BitPuffin has joined #ocaml
Serpent7776 has quit [Quit: leaving]
<inkbottle> Is it possible to put in opam file that github development version should be used: https://github.com/janestreet/incr_dom/blob/master/incr_dom.opam#L21
<d_bot> <craigfe> inkbottle: this is typically achieved by adding a `pin-depends` field for some high (and unreleased) version – normally `dev` – then constraining to use that version
<d_bot> <craigfe> A package can't be released to opam in that state though
<inkbottle> `opam pin add virtual_dom --dev-repo --debug` failed
<inkbottle> With reason `conflict`
<inkbottle> I've naively git cloned the master version from incr_dom, because the sources seemed required (penultimate line) https://github.com/janestreet/incr_dom/blob/master/example/README.org
<inkbottle> Then I pined that version before doing the install
<inkbottle> Maybe I should have cloned the v0.14 version
<inkbottle> Too bad that didn't work: `opam pin add virtual_dom https://github.com/janestreet/virtual_dom.git`.
vicfred has quit [Quit: Leaving]
_tjr_ has quit [Remote host closed the connection]
octachron has quit [Ping timeout: 240 seconds]
vicfred has joined #ocaml
Madars has quit [Ping timeout: 240 seconds]
Drup has quit [Ping timeout: 240 seconds]
vicfred has quit [Max SendQ exceeded]
vicfred has joined #ocaml
_tjr_ has joined #ocaml
tane has quit [Quit: Leaving]
Drup has joined #ocaml
mrvn has quit [Ping timeout: 240 seconds]
Madars has joined #ocaml
octachron has joined #ocaml
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
Haudegen has quit [Ping timeout: 260 seconds]
<oni-on-ion> whoa, incr_dom sure has a lot of deps.