adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
g0d_shatter has joined #ocaml
Hrundi_V_Bakshi has quit [Ping timeout: 265 seconds]
Haudegen has quit [Ping timeout: 258 seconds]
kleisli has quit [Ping timeout: 268 seconds]
ArthurStrong has quit [Quit: leaving]
kleisli has joined #ocaml
picolino_ has quit [Ping timeout: 260 seconds]
picolino has joined #ocaml
olle has quit [Ping timeout: 258 seconds]
olle has joined #ocaml
porchetta has quit [Ping timeout: 260 seconds]
porchetta has joined #ocaml
pzp has joined #ocaml
fantasticsid has quit [Ping timeout: 260 seconds]
g0d_shatt3r has joined #ocaml
g0d_shatter has quit [Ping timeout: 268 seconds]
g0d_shatt3r has quit [Quit: Leaving]
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 260 seconds]
kamog has quit [Read error: Connection reset by peer]
mfp has quit [Ping timeout: 258 seconds]
mbuf has joined #ocaml
gravicappa has joined #ocaml
picolino has quit [Ping timeout: 265 seconds]
sailor177354 has joined #ocaml
picolino has joined #ocaml
sailor177355 has joined #ocaml
sailor177354 has quit [Ping timeout: 265 seconds]
sailor177356 has joined #ocaml
sailor177355 has quit [Ping timeout: 268 seconds]
vicfred has quit [Quit: Leaving]
narimiran has joined #ocaml
dborisog has joined #ocaml
bartholin has quit [Quit: Leaving]
dportin has joined #ocaml
FreeBirdLjj has joined #ocaml
dportin has quit [Remote host closed the connection]
Haudegen has joined #ocaml
sailor177355 has joined #ocaml
sailor177356 has quit [Ping timeout: 240 seconds]
lix has quit [Ping timeout: 250 seconds]
lix has joined #ocaml
pc9801[m] has quit [*.net *.split]
aspiwack[m] has quit [*.net *.split]
maker has quit [*.net *.split]
pippijn has quit [*.net *.split]
companion_cube has quit [*.net *.split]
aubian has quit [*.net *.split]
jun has quit [*.net *.split]
heredoc has quit [*.net *.split]
seb_ has quit [*.net *.split]
mehdib has quit [*.net *.split]
tiksin[m] has quit [*.net *.split]
rwmjones has quit [*.net *.split]
keep-learning[m] has quit [*.net *.split]
peddie has quit [*.net *.split]
zwindl[m] has quit [*.net *.split]
simpson has quit [*.net *.split]
thizanne has quit [*.net *.split]
eagleflo_ has quit [*.net *.split]
stylewarning has quit [Ping timeout: 240 seconds]
karan has quit [Ping timeout: 260 seconds]
zapashcanon[m] has quit [Ping timeout: 246 seconds]
jimt[m] has quit [Ping timeout: 246 seconds]
cgenie[m] has quit [Ping timeout: 264 seconds]
prsafont[m] has quit [Ping timeout: 250 seconds]
flux1 has quit [Ping timeout: 250 seconds]
copy` has quit [Ping timeout: 250 seconds]
sepp2k has quit [Ping timeout: 245 seconds]
bglm[m] has quit [Ping timeout: 252 seconds]
stylewarning has joined #ocaml
smondet[m] has quit [Ping timeout: 264 seconds]
dl3br[m] has quit [Ping timeout: 264 seconds]
Haudegen[m] has quit [Ping timeout: 264 seconds]
mehdib has joined #ocaml
rwmjones has joined #ocaml
simpson has joined #ocaml
thizanne has joined #ocaml
eagleflo_ has joined #ocaml
ygrek_ has joined #ocaml
tsani has quit [Ping timeout: 240 seconds]
seliopou has quit [Ping timeout: 268 seconds]
tsani has joined #ocaml
seliopou has joined #ocaml
Serpent7776 has joined #ocaml
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 272 seconds]
nicolaus has joined #ocaml
keep_learning has joined #ocaml
sailor177355 has quit [Quit: Leaving]
maker has joined #ocaml
pippijn has joined #ocaml
companion_cube has joined #ocaml
jun has joined #ocaml
seb_ has joined #ocaml
aubian has joined #ocaml
heredoc has joined #ocaml
khodzha has quit [Ping timeout: 260 seconds]
khodzha has joined #ocaml
kleisli has quit [Ping timeout: 268 seconds]
jnavila has joined #ocaml
_whitelogger has joined #ocaml
Serpent7776 has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
<sarna> hi, is there a library in ocaml similar to python's 'requests'?
andreas303 has quit [Quit: andreas303]
andreas303 has joined #ocaml
Serpent7776 has quit [Ping timeout: 246 seconds]
andreas303 has quit [Remote host closed the connection]
<Leonidas> sarna: you mean a library that is a convenience wrapper on top of urllib/urllib2?
<sarna> Leonidas: a convenient library for making http requests
<sarna> I searched for a bit, but none of the proposed libraries seemed convenient
<sarna> hm, maybe I'll just bite the bullet and use cohttp
<madroach> sarna: Ocamlnet Netclients ?
<sarna> madroach: the Convenience module looks interesting, thanks!
<Leonidas> ocamlnet is the worst :(
<Leonidas> I've been cleaning out all our remaining use of ocamlnet for years
<sarna> :^(
<sarna> Leonidas: what would you use instead then?
<Leonidas> cohttp
<Leonidas> maybe http/af, if it works, I haven't tried.
<sarna> I'll go with cohttp, their docs look better than ocamlnet's
<Leonidas> cohttp has docs?
<gravicappa> There is also 'ocurl' if I understood 'making http requests' correctly.
<madroach> Leonidas: Cohttp is not mature regarding keep-alive and pipelining, whereas cohttp just works.
<Armael> mmmmm
<madroach> err, Ocamlnet just works.
<madroach> Cohttp might work if you use only idempotent requests, but you'll soon get problems when connections time out on cohttp and you try to do non-idempotent requests.
Serpent7776 has joined #ocaml
<sarna> hmm..
kleisli has joined #ocaml
mfp has joined #ocaml
andreypopp has quit [Quit: Connection closed for inactivity]
andreas303 has joined #ocaml
ggole has joined #ocaml
prsafont[m] has joined #ocaml
mbuf has quit [Quit: Leaving]
flux has joined #ocaml
Haudegen[m] has joined #ocaml
zwindl[m] has joined #ocaml
copy` has joined #ocaml
peddie has joined #ocaml
aspiwack[m] has joined #ocaml
jimt[m] has joined #ocaml
keep-learning[m] has joined #ocaml
aecepoglu[m] has joined #ocaml
zapashcanon[m] has joined #ocaml
bglm[m] has joined #ocaml
pc9801[m] has joined #ocaml
dash has joined #ocaml
karan has joined #ocaml
cgenie[m] has joined #ocaml
sepp2k has joined #ocaml
tiksin[m] has joined #ocaml
dl3br[m] has joined #ocaml
troydm has quit [Ping timeout: 240 seconds]
dhil has joined #ocaml
troydm has joined #ocaml
_Serpent7776_ has joined #ocaml
Serpent7776 has quit [Remote host closed the connection]
_Serpent7776_ is now known as Serpent7776
Serpent7776 has quit [Client Quit]
Serpent7776 has joined #ocaml
<Nikkel> Eliom: How can I use a div inside a td or a th? th only takes a list of th_content, but I should be able to circumvent that
jnavila has quit [Ping timeout: 256 seconds]
andreas303 has quit [Remote host closed the connection]
<thizanne> Nikkel: that seems to be a bug of tyxml, it should be allowed
andreas303 has joined #ocaml
nullifidian has quit [Read error: Connection reset by peer]
nullifidian has joined #ocaml
<thizanne> Nikkel: it works in td though
<dborisog> Nikkel: th does not have `Div as allowed type, see "type phrasing" in https://ocsigen.org/tyxml/4.3.0/api/Html_types , while td does take `Div (see "type flow5")
<sarna> I have some trouble using the Unix module from containers.. why isn't Unix available when I open Containers?
<sarna> oh, the library's called containers.unix..
<dborisog> TH is for column heads, I'm not sure about standards, but div feels 'ideologically' wrong tag to have in TH.
<thizanne> I don't know about ideology, but technically it is allowed indeed
<dborisog> )
<Nikkel> thizanne, dborisog: thanks :) I learned about Unsafe.coerce_elt afterwards
<cranix> how i can take list of vertices in persistent graph in ocamlgraph?
<cranix> i see take_edge and take_vertex
<cranix> but they return just first edge/vertex
<dborisog> Well, I'm looking at the standard ( https://html.spec.whatwg.org/multipage/tables.html#the-th-element ) and ( https://html.spec.whatwg.org/multipage/grouping-content.html#the-div-element ), div is for content storage, th is for labeling the structured content.
<thizanne> cranix: use fold_vertex
andreas303 has quit [Ping timeout: 240 seconds]
<thizanne> Your_graph_module.fold_vertex List.cons your_graph [] would to the job
<thizanne> (although you probably want to do something with the vertices rather than just getting the list, so don't build it if you don't need it)
<dborisog> https://hostingcanada.org/html-cheat-sheet/ > Often used as a container in HTML documents, the <div> tag is used to create a section, a division on a document that renders as a self-contained unit. > <th> tag is the header to the standard cell. Just like <td>, this header cell must be nested inside <tr>. <th> holds the header information, while the <td> element is used to hold the body of the data. Its main purpose is for styling a specific cell as a
<dborisog> header cell instead of an ordinary cell.
<dborisog> It seems to me div is out of scope of TH tag, so I don't think it is a bug.
<cranix> thizanne: thanks
<thizanne> yes but what "seems" to you matters little
<cranix> i see that eges can be labeled but add_edge take only vertices
<cranix> and i get default label
<cranix> and labeling both edges and vercies would be very usefull for me
<thizanne> Content model:
<thizanne> Flow content, but with no header, footer, sectioning content, or heading content descendants.
<thizanne> div is in flow content, and neither in sectioning or heading content
<dborisog> Just found an old stackoverwlow comment, that refering to W3C's validation, stating it is fine to have div inside th
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 268 seconds]
<thizanne> cranix: use add_edge_e
<thizanne> (creating the edge before with its label)
<cranix> thizanne: thank you
<thizanne> cranix: once you've learnt how not to get lost in these functors, the API is quite clear and well documented
nicolaus has quit [Quit: Lost terminal]
<cranix> right
<cranix> is it possible to do some kind of pattern matching on graphs?
<cranix> i'm starting to write custom parser for graph grammars
<thizanne> not really
<thizanne> but you have a lot of functions available to traverse them
<thizanne> (or build them)
<cranix> ok
<cranix> i'm slowly getting familiar with API
<cranix> btw. is there something non obvious that can hurt performance?
<cranix> (i have bad exprecience with common lisp performance due to non obvious memory allocations...)
<thizanne> when it comes to that you'll have tests to measure and evaluate it
<cranix> ok
<thizanne> until then you should not do some obviously algorithmically wrong computations, but there is no low-level catch that you should be aware of
<cranix> thats good
FreeBird_ has quit [Ping timeout: 258 seconds]
Haudegen has quit [Quit: Bin weg.]
FreeBirdLjj has joined #ocaml
<cranix> also it is very nice that in many places documentation also contains information about time complexity of given fucntion
<cranix> *function
spew has joined #ocaml
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 272 seconds]
andreas303 has joined #ocaml
haesbaert has joined #ocaml
tmhoang has quit [Quit: Alpine Linux, the security-oriented, lightweight Linux distribution]
ziyourenxiang has joined #ocaml
<Leonidas> anyone knows why opam tries to pick kafka < 0.2? https://travis-ci.org/Leonidas-from-XIV/ocaml-kafka/jobs/640918950
<Leonidas> the dependency is ` "kafka" {= version}
<Leonidas> and I am confused why it choses to pin one to ~dev and the other to 0.4
<sarna> Leonidas: long shot, but maybe you're in a wrong switch? it happened to me with a library today. it pulled a 0.2 of it (current is 0.8) because my ocaml version was too high
<Leonidas> sarna: both kafka and kafka_lwt are in the same repository since this is the ci system. I am confused why it gets pinned to different versions
bartholin has joined #ocaml
_whitelogger has joined #ocaml
sailor177354 has joined #ocaml
sailor177355 has joined #ocaml
sailor177354 has quit [Ping timeout: 268 seconds]
sailor177356 has joined #ocaml
Haudegen has joined #ocaml
sailor177355 has quit [Ping timeout: 260 seconds]
khodzha has quit [Quit: Leaving.]
mbuf has joined #ocaml
dhil has quit [Ping timeout: 248 seconds]
mbuf has left #ocaml ["Leaving"]
mbuf has joined #ocaml
<mbuf> What can cause a "ocaml/testsuite/_ocamltest/tests/lib-marshal/intext/ocamlopt.byte/intext.opt without any argument: command" test failure?
pzp has quit [Quit: Connection closed for inactivity]
Serpent7776 has quit [Quit: Leaving]
smazga has joined #ocaml
gravicappa has joined #ocaml
<flux> here's an interesting* comparison, if you are in the process of thinking whether to pick OCaml or Ceph: https://stackshare.io/stackups/ceph-vs-ocaml
<flux> (I was looking for Ceph libraries for OCaml, doesn't seem to exist)
sarna has quit [Quit: bye]
sarna has joined #ocaml
dhil has joined #ocaml
jnavila has joined #ocaml
zolk3ri has joined #ocaml
mbuf has quit [Quit: Leaving]
zolk3ri has quit [Client Quit]
zolk3ri has joined #ocaml
sailor177355 has joined #ocaml
sailor177356 has quit [Ping timeout: 240 seconds]
vicfred has joined #ocaml
FreeBird_ has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]
<Armael> does anyone which version of dune the "stable" documentation correspond to?
<Armael> (incidentally, is it different from "latest")
Serpent7776 has joined #ocaml
TheLemonMan has joined #ocaml
kakadu has joined #ocaml
cartwright has quit [Ping timeout: 240 seconds]
cartwright has joined #ocaml
<cranix> i have installed and working ocamlgraph
<cranix> utop loads it
<cranix> jupyter notebook with ocaml kernel used to it too
<cranix> but after reboot it suddenly can not find ocamlgraph
<cranix> #use "topfind"
<cranix> it's fine
<cranix> #require "ocamlgraph"
<cranix> can not find
<cranix> wtf?
ggole has quit [Quit: Leaving]
<companion_cube> eval `opam env`?
<cranix> unbound value eval
<companion_cube> in your shell I mean
<cranix> OPAM_SWITCH_PREFIX='/home/user/.opam/default'; export OPAM_SWITCH_PREFIX;
<cranix> CAML_LD_LIBRARY_PATH='/home/user/.opam/default/lib/stublibs:/usr/lib64/ocaml/stublibs:/usr/lib64/ocaml'; export CAML_LD_LIBRARY_PATH;
<cranix> OCAML_TOPLEVEL_PATH='/home/user/.opam/default/lib/toplevel'; export OCAML_TOPLEVEL_PATH;
<cranix> MANPATH=':/home/user/.opam/default/man'; export MANPATH;
<cranix> PATH='/home/user/.opam/default/bin:/home/user/.local/bin:/home/user/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/ghdl/bin'; export PATH;
<companion_cube> please use a pastebin for that tho :/
<cranix> sorry
<cranix> i will use it nexttime
<companion_cube> does `ocamlfind query ocamlgraph` return anything?
<cranix> /home/user/.opam/default/lib/ocamlgraph
<Armael> did you actually run the full command line
<Armael> "eval $(opam env)" with the eval
<cranix> Armael: no, i wrongly understood it
<cranix> nothing returned
<cranix> bash$ eval $(opam env)
<Armael> yeah, that's normal
<Armael> now try again to #require "ocamlgraph"
<cranix> tried in jupyter
<cranix> no luck
<cranix> ran eval $(opam env) in normal shell on this same machine
<companion_cube> so it's there
<companion_cube> in jupyter it might be more complicated, depending on whether the jupyter kernel has the proper opam env
<companion_cube> try in utop/ocaml first
<cranix> in utop it works
<cranix> in jupyter it was working yesterday
narimiran has quit [Ping timeout: 260 seconds]
narimiran has joined #ocaml
<companion_cube> yeah so, you need to start jupyter in an environment where `eval $(opam env)` was run
<cranix> ok
<cranix> it explains this problem
<cranix> i'll try it in the minute
<cranix> thanks :)
<companion_cube> typically people put the `eval $(opam env)` in their bashrc or equivalent
sailor177356 has joined #ocaml
jnavila has quit [Ping timeout: 272 seconds]
sailor177355 has quit [Ping timeout: 260 seconds]
sailor177355 has joined #ocaml
dhil has quit [Ping timeout: 245 seconds]
andreas303 has quit [Remote host closed the connection]
sailor177356 has quit [Ping timeout: 265 seconds]
sagax has quit [Read error: Connection reset by peer]
oni-on-ion has joined #ocaml
sagax has joined #ocaml
andreas303 has joined #ocaml
sailor177355 has quit [Quit: Leaving]
narimiran has quit [Ping timeout: 268 seconds]
wingsorc has joined #ocaml
thegameg has joined #ocaml
nullifidian has quit [Read error: Connection reset by peer]
nullifidian has joined #ocaml
smazga has quit [*.net *.split]
Cypi has quit [*.net *.split]
infinity0 has quit [*.net *.split]
t0b0 has quit [*.net *.split]
zekt83 has quit [*.net *.split]
profmaad has quit [*.net *.split]
Haudegen has quit [*.net *.split]
haskell_enthusia has quit [*.net *.split]
reynir has quit [*.net *.split]
abc_ has quit [*.net *.split]
jave has quit [*.net *.split]
bacam has quit [*.net *.split]
thegameg_ has quit [*.net *.split]
mahmudov has joined #ocaml
bitonic has quit [Ping timeout: 240 seconds]
swistak35 has quit [Ping timeout: 268 seconds]
bitonic has joined #ocaml
swistak35 has joined #ocaml
dborisog has quit [Ping timeout: 260 seconds]
Cypi has joined #ocaml
haskell_enthusia has joined #ocaml
smazga has joined #ocaml
profmaad has joined #ocaml
bacam has joined #ocaml
infinity0 has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
t0b0 has joined #ocaml
reynir has joined #ocaml
zekt83 has joined #ocaml
Haudegen has joined #ocaml
jave has joined #ocaml
abc_ has joined #ocaml
thegameg has quit [Ping timeout: 240 seconds]
thegameg has joined #ocaml
Serpent7776 has quit [Quit: leaving]
kakadu has quit [Remote host closed the connection]
tg has quit [Ping timeout: 252 seconds]
tg has joined #ocaml
vicfred has quit [Quit: Leaving]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
ygrek_ has quit [Ping timeout: 260 seconds]
GreyFaceNoSpace has joined #ocaml