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
mxns has quit [Ping timeout: 265 seconds]
ania123 has quit [Quit: Connection closed]
mxns has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
|jbrown| has joined #ocaml
mxns has quit [Ping timeout: 268 seconds]
jbrown has quit [Ping timeout: 268 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
vicfred has joined #ocaml
mxns has quit [Ping timeout: 268 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
mxns has joined #ocaml
curtosis has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
mxns has quit [Ping timeout: 252 seconds]
curtosis has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
zebrag has quit [Quit: Konversation terminated!]
mxns has joined #ocaml
mxns has quit [Ping timeout: 268 seconds]
dinakajoy has joined #ocaml
mfp has quit [Ping timeout: 252 seconds]
elusive has joined #ocaml
Sonakshi has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
narimiran has joined #ocaml
<d_bot> <Mahak> While doing `make local` I'm getting this error
<d_bot> <Mahak> `cd script && \
<d_bot> <Mahak> ocamlfind ocamlopt -annot -g -safe-string -package cohttp-lwt-unix,netstring,syndic \
<d_bot> <Mahak> -thread -linkpkg utils.cmx http.ml rss2html.ml -o ../"script/rss2html"
<d_bot> <Mahak> File "http.ml", line 41, characters 4-23:
<d_bot> <Mahak> 41 | | `Permanent_redirect
<d_bot> <Mahak> ^^^^^^^^^^^^^^^^^^^
<d_bot> <Mahak> Error: This pattern matches values of type [? `Permanent_redirect ]
<d_bot> <Mahak> but a pattern was expected which matches values of type
<d_bot> <Mahak> Cohttp__.Code.status_code
<d_bot> <Mahak> The second variant type does not allow tag(s) `Permanent_redirect
<d_bot> <Mahak> `
<d_bot> <Mahak> Any help would be appreciated
elusive has quit [Quit: Leaving]
Vyom has joined #ocaml
Serpent7776 has joined #ocaml
Vyom has quit [Quit: Connection closed]
khushali has joined #ocaml
vicfred has quit [Quit: Leaving]
khushali has quit [Quit: Ping timeout (120 seconds)]
bjorkint0sh has joined #ocaml
bjorkintosh has quit [Ping timeout: 258 seconds]
<d_bot> <mseri> You have the new code of ocaml.org and the old cohttp. Try `opam update` and then `opam upgrade cohttp-lwt-unix`
<d_bot> <mseri> It should install version 4 and fix the issue
mxns has joined #ocaml
mxns has quit [Ping timeout: 250 seconds]
Sonakshi has quit [Ping timeout: 265 seconds]
Haudegen has joined #ocaml
<d_bot> <Mahak> Thanks @mseri
<d_bot> <Mahak> It worked 🙂
gopiandcode has quit [Quit: ERC (IRC client for Emacs 26.3)]
dldisha has joined #ocaml
dldisha has quit [Client Quit]
dldisha has joined #ocaml
mro_name has joined #ocaml
mro_name has quit [Remote host closed the connection]
mro_name has joined #ocaml
mro_name has quit [Remote host closed the connection]
mro_name has joined #ocaml
dldisha has quit [Ping timeout: 240 seconds]
mro_name has quit [Remote host closed the connection]
mro_name has joined #ocaml
Tuplanolla has joined #ocaml
gopiandcode has joined #ocaml
mro_name has quit [Remote host closed the connection]
mro_name has joined #ocaml
delysin has quit [Quit: WeeChat 3.1]
bartholin has joined #ocaml
mbuf has joined #ocaml
waleee-cl has joined #ocaml
olle_ has joined #ocaml
pitag has joined #ocaml
zebrag has joined #ocaml
mro_name_ has joined #ocaml
mro_name has quit [Read error: Connection reset by peer]
mxns has joined #ocaml
mxns has quit [Ping timeout: 258 seconds]
<d_bot> <froyo> yo are the limitations of ocamlrun in terms of platform support documented somewhere?
<d_bot> <froyo> host, target, ...
mro_name_ has quit [Remote host closed the connection]
<d_bot> <EduardoRFS> if you have a C compiler ocamlrun should work, of course some systems have weird runtime conditionals like iOS doesn't have `system`(this is a lie). So you may need to patch a header or so, but that should be it
<d_bot> <froyo> my idea is to install _just_ ocamlrun on target and compile to bytecode on source
<d_bot> <froyo> what about version mismatch, c stubs, and hmm
mfp has joined #ocaml
<d_bot> <froyo> like is bytecode backward/forward compatible
<d_bot> <froyo> or do i need to match my target's runtime version
narimiran has quit [Ping timeout: 252 seconds]
<d_bot> <EduardoRFS> you need to match it
<d_bot> <EduardoRFS> you don't need ocamlrun for this, OCaml includes the runtime needed to run bytecode by default IIRC
mxns has joined #ocaml
mxns has quit [Ping timeout: 240 seconds]
olle_ has quit [Ping timeout: 265 seconds]
<d_bot> <froyo> alright thanks!
aquijoule_ has quit [Ping timeout: 268 seconds]
Haudegen has quit [Quit: Bin weg.]
andreas303 has quit [Remote host closed the connection]
andreas303 has joined #ocaml
<d_bot> <joris> afaik it is not strictly compatible, but in practice mostly compatible. And this is how boostrap works in compiler i think ?
Prerna_Singh has joined #ocaml
mxns has joined #ocaml
Prerna_Singh has quit [Quit: Connection closed]
richbridger has joined #ocaml
mxns has quit [Ping timeout: 246 seconds]
Haudegen has joined #ocaml
curtosis has joined #ocaml
curtosis is now known as curtosis[away]
curtosis[away] is now known as curtosis
mro_name has joined #ocaml
mxns has joined #ocaml
mxns has quit [Ping timeout: 245 seconds]
mxns has joined #ocaml
dinakajoy has quit [Quit: Connection closed]
mro_name has quit [Remote host closed the connection]
mxns has quit [Ping timeout: 246 seconds]
Shreya has joined #ocaml
curtosis is now known as curtosis[away]
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Shreya has quit [Ping timeout: 258 seconds]
mxns has joined #ocaml
curtosis has joined #ocaml
curtosis is now known as curtosis[away]
MavneetK has joined #ocaml
Shreya has joined #ocaml
Jyoti_Balodhi has joined #ocaml
MavneetK has quit [Quit: Ping timeout (120 seconds)]
Jyoti_Balodhi has quit [Quit: Connection closed]
bartholin has quit [Quit: Leaving]
curtosis[away] has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
MavneetK has joined #ocaml
ani` has joined #ocaml
<ani`> Hello Ocaml community, I am Aniket. An outreachy participant. I am interested in Ocaml project. Looking forward to work with ocaml community.
vicfred has joined #ocaml
curtosis has joined #ocaml
pitag has quit [Quit: Connection closed]
mro_name has joined #ocaml
mro_name has quit [Remote host closed the connection]
mro_name has joined #ocaml
<Drup> ani`: hi! We have setup a channel on discord for outreachy participants, you'll find lot's of infos there. :)
mro_name has quit [Remote host closed the connection]
dieggsy has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
<dieggsy> So this is only like, the second function i've written in ocaml, but i'm getting an error that the second arg is expected to be int: https://paste.dieggsy.com/2021-04-02T13:03:12
<dieggsy> obviously, i've pretty much no idea what's going on :)
<dieggsy> whoops, there's another bug in that one, kprimes is supposed to be known_primes, but it's the same eror
Shreya has quit [Quit: Leaving]
<dieggsy> ah, i'm not constructing lists properly. sorry for the noise
<d_bot> <Butanium> 👍
MavneetK has quit [Quit: Connection closed]
Guest40940 is now known as mrd
mrd has quit [Changing host]
mrd has joined #ocaml
curtosis has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
zebrag has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
motherfsck has quit [Remote host closed the connection]
olle_ has joined #ocaml
Haudegen has joined #ocaml
infinit_0 has joined #ocaml
sagax has joined #ocaml
tane has joined #ocaml
mro_name has joined #ocaml
infinit_0 has quit [Ping timeout: 240 seconds]
mbuf has quit [Quit: Leaving]
raver has joined #ocaml
shawnw has joined #ocaml
mro_name has quit [Quit: Leaving...]
neiluj has joined #ocaml
neiluj has joined #ocaml
cantstanya has quit [Remote host closed the connection]
cantstanya has joined #ocaml
ArthurStrong has joined #ocaml
narimiran has joined #ocaml
zebrag has quit [Quit: Konversation terminated!]
narimiran has quit [Ping timeout: 240 seconds]
<olle_> You guys have any coding guidelines of what is considered a good/bad function?
incoh has joined #ocaml
<companion_cube> see, there's good functions and bad functions
<olle_> And when they love each other very much, then what?
<companion_cube> good functions, well, they're abstracting common behavior
ani` has quit [Ping timeout: 240 seconds]
<companion_cube> but bad functions, well, … they're abstracting, you see? common behavior
<olle_> same?
<olle_> or typo?
ArthurStrong has quit [Quit: leaving]
<olle_> At university they pushed this rule pretty hard on the first course: "The first line in the docblock can be one sentence describing the relation between function arguments and its output"
<olle_> Is that something you guys know about?
<companion_cube> :p it's a joke
<steenuil> good functions compose well, I guess
<steenuil> I think it's just something you gotta write lots of bad functions to get
<olle_> companion_cube: joke?
<olle_> steenuil: well, I ain't telling my team that :D
<steenuil> I know of this style guide but I don't know if it has anything about functions https://wiki.xenproject.org/wiki/OCaml_Best_Practices_for_Developers
* olle_ reading
<olle_> Pretty good stuff
<olle_> steenuil: tho nothing about pushing side-effects up in the stacktrace :d
<olle_> maybe not a problem in ocaml
<steenuil> that's just your usual functional core imperative shell advice innit
<olle_> yeah yeah
<olle_> good that you know it :)
<olle_> languages should forbid side-effects deeper in the stacktrace xD
Serpent7776 has quit [Quit: leaving]
tane has quit [Quit: Leaving]
<steenuil> effect system that tracks io and exn where
<olle_> steenuil: doesn't help. or it might, I dunno, it haven't been tested on enterprise scale, AFAIK. Well, maybe with Haskell?
<olle_> where "enterprise scale" = big project, big and hetergenous team
<olle_> but in principle, there's nothing stopping you from spamming IO monad everywhere in Haskell.
<olle_> same would be the case with typed effects
<olle_> but yeah, it's a step in the right direction. :)
<d_bot> <score> am I going mad or does `--exp-grouping=preserve` do nothing in ocamlformat
neiluj has quit [Quit: leaving]
<d_bot> <score> e.g. how it affects this example: let () = print_endline begin "" ^ "asdf" end
<d_bot> <score> hang on, I'm not on latest, I'll give the heads up if I'm still getting it on 0.17
Tuplanolla has quit [Quit: Leaving.]
<d_bot> <score> yeah, it's still on 0.17 too :/ I'm invoking for testing with `ocamlformat --exp-grouping=preserve --enable-outside-detected-project x.ml`
<olle_> Why is output to stdout considered a side-effect if it preseves referential transparency?