adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.06.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.06/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
kvda has joined #ocaml
rom1504 has quit [Quit: WeeChat 1.0.1]
loli has quit [Read error: Connection reset by peer]
jao has quit [Ping timeout: 268 seconds]
loli has joined #ocaml
lostman has joined #ocaml
rom1504 has joined #ocaml
rom1504_ has joined #ocaml
rom1504_ has quit [Client Quit]
pierpal has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
Fare has joined #ocaml
pierpal has quit [Ping timeout: 240 seconds]
rom1504 has quit [Quit: WeeChat 1.6]
rom1504 has joined #ocaml
pierpal has joined #ocaml
cbot has joined #ocaml
mfp has quit [Ping timeout: 240 seconds]
pierpa has quit [Quit: Page closed]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cobreadmonster has joined #ocaml
tormen has joined #ocaml
tormen_ has quit [Ping timeout: 260 seconds]
tezos_noob has quit [Ping timeout: 260 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
tezos_noob has joined #ocaml
kvda has joined #ocaml
Fare has quit [Ping timeout: 260 seconds]
Fare has joined #ocaml
jgkamat has joined #ocaml
cobreadmonster has quit [Quit: Connection closed for inactivity]
tezos_noob has quit [Ping timeout: 265 seconds]
cbot has quit [Quit: Leaving]
tezos_noob has joined #ocaml
mbuf has joined #ocaml
<jgkamat> hi, I think I found a bug in the ocaml "time" module which manifests itself on my system, where would be a good place to report that?
raduom has quit [Quit: Textual IRC Client: www.textualapp.com]
<Enjolras> jgkamat: what is "time" module ? From wich library ?
<jgkamat> Enjolras: it's from Core, Ie: Core.Time
raduom has joined #ocaml
<jgkamat> would that be this repo? https://github.com/janestreet/core
<Enjolras> jgkamat: yes it is, probably there then
<jgkamat> ok, thanks. I'm actually going to try to submit a patch if I can figure out how to rebuild core, if not, I'll submit an issue
<Enjolras> generally, you can do "opam show package" and a lot of package have a field bug-reports: with an url to report bug too
tezos_noob has quit [Ping timeout: 276 seconds]
<Enjolras> if it's not filled and dev-repo: is github or gitlab you probably can assume tracker is used on github/gitlab
<jgkamat> ah, that's really useful :D
<jgkamat> I'm very new to ocaml and it's tooling, sorry for that...
<Enjolras> np :)
rixed has quit [Quit: "moving house"]
rixed has joined #ocaml
webshinra has quit [Remote host closed the connection]
shinnya has joined #ocaml
<xvilka> hi
<reynir> hi
<xvilka> If I have a long list of functions like this: https://pastebin.com/erW29YLX - how I can "fold" the code? So the function body will be written only once, but will use different modules (see Module1 and Module2)?
webshinra has joined #ocaml
<octachron> xvilka, option 1: pass the "of_bigarray" and "extract_files" functions as arguments (as a a record for instance), option 2: first-class modules
lostman has quit [Quit: Connection closed for inactivity]
Fare has quit [Ping timeout: 264 seconds]
<xvilka> octachron: thanks! seems 2nd solution is better
Guest34158 has joined #ocaml
dinosaure has joined #ocaml
freyr69 has joined #ocaml
tarptaeya has joined #ocaml
mali__ has quit [Ping timeout: 260 seconds]
argent_smith has joined #ocaml
tarptaeya has quit [Ping timeout: 256 seconds]
tarptaeya has joined #ocaml
mfp has joined #ocaml
ColeW_Picaro has joined #ocaml
ColeW_Picaro has quit [Quit: Leaving]
Guest34158 has quit [Remote host closed the connection]
ColeW_Picaro has joined #ocaml
jao has joined #ocaml
dakk has joined #ocaml
ColeW_Picaro has quit [Quit: Leaving]
ColeW_Picaro has joined #ocaml
zolk3ri has joined #ocaml
ColeW_Picaro has quit [Quit: Leaving]
tarptaeya has quit [Ping timeout: 260 seconds]
tarptaeya has joined #ocaml
tarptaeya has quit [Ping timeout: 268 seconds]
tarptaeya has joined #ocaml
tarptaeya_ has joined #ocaml
tarptaeya has quit [Ping timeout: 268 seconds]
tarptaeya_ has quit [Ping timeout: 240 seconds]
jaar has joined #ocaml
tarptaeya_ has joined #ocaml
troydm has quit [Ping timeout: 240 seconds]
tarptaeya_ has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 244 seconds]
kakadu has joined #ocaml
tarptaeya_ has joined #ocaml
ziyourenxiang has joined #ocaml
tarptaeya has joined #ocaml
tarptaeya_ has quit [Ping timeout: 268 seconds]
tarptaeya_ has joined #ocaml
tarptaeya_ has quit [Read error: Connection reset by peer]
tarptaeya_ has joined #ocaml
tarptaeya has quit [Ping timeout: 240 seconds]
tarptaeya_ has quit [Ping timeout: 240 seconds]
TheLemonMan has joined #ocaml
mlh has joined #ocaml
gtrak has joined #ocaml
<mlh> in particular, it recommends ocaml_installer.sh from non-existant URL instead of the correct `install.sh` from https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh
<reynir> the latter install script will install opam 2 rc3
<reynir> and I believe the Install.md page on the master branch is for opam 2 as well
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
mlh has quit [Ping timeout: 256 seconds]
BitPuffin has joined #ocaml
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlh has joined #ocaml
mlh has quit [Ping timeout: 244 seconds]
TheLemonMan has joined #ocaml
Haudegen has joined #ocaml
mahem1 has joined #ocaml
mlh_ has joined #ocaml
mbuf has quit [Quit: Leaving]
Fare has joined #ocaml
spew has joined #ocaml
jbrown has joined #ocaml
mlh_ has quit [Ping timeout: 256 seconds]
_andre has joined #ocaml
shinnya has joined #ocaml
steenuil_ has joined #ocaml
jbrown has quit [Ping timeout: 260 seconds]
steenuil has quit [Ping timeout: 260 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
steenuil_ has quit [Ping timeout: 256 seconds]
mali__ has joined #ocaml
JSharp has quit [Ping timeout: 256 seconds]
JSharp has joined #ocaml
mali__ has quit [Ping timeout: 256 seconds]
aciniglio has joined #ocaml
steenuil has joined #ocaml
jbrown has joined #ocaml
argent_smith1 has joined #ocaml
mk9 has joined #ocaml
argent_smith2 has joined #ocaml
argent_smith1 has quit [Read error: Connection reset by peer]
argent_smith has quit [Ping timeout: 240 seconds]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
shinnya has quit [Ping timeout: 256 seconds]
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
Haudegen has quit [Remote host closed the connection]
Haudegen has joined #ocaml
FreeBirdLjj has joined #ocaml
mk9 has quit [Quit: mk9]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
jaar_ has joined #ocaml
breitenj has joined #ocaml
cbarrett has quit [Ping timeout: 256 seconds]
ilovezfs_ has quit [Ping timeout: 256 seconds]
sveit_ has quit [Ping timeout: 256 seconds]
l1x has quit [Ping timeout: 256 seconds]
rfv has quit [Ping timeout: 256 seconds]
ELLIOTTCABLE has quit [Ping timeout: 256 seconds]
freyr69 has quit [Remote host closed the connection]
shw has quit [Ping timeout: 256 seconds]
Duns_Scrotus has quit [Ping timeout: 256 seconds]
mrallen1 has quit [Ping timeout: 256 seconds]
monad_cat has quit [Ping timeout: 256 seconds]
vinoski has quit [Ping timeout: 256 seconds]
Asmadeus has quit [Ping timeout: 256 seconds]
cojy has quit [Ping timeout: 256 seconds]
<Leonidas> for me the url of `ocaml_installer.sh` exists just fine
jaar has quit [Ping timeout: 256 seconds]
chelfi has quit [Ping timeout: 256 seconds]
breitenj- has quit [Ping timeout: 256 seconds]
cbarrett has joined #ocaml
rfv has joined #ocaml
shw has joined #ocaml
cbarrett has joined #ocaml
cbarrett has quit [Changing host]
Asmadeus has joined #ocaml
monad_cat has joined #ocaml
ilovezfs_ has joined #ocaml
ELLIOTTCABLE has joined #ocaml
chelfi has joined #ocaml
l1x has joined #ocaml
cojy has joined #ocaml
Duns_Scrotus has joined #ocaml
mrallen1 has joined #ocaml
Asmadeus has quit [Changing host]
Asmadeus has joined #ocaml
cojy has quit [Changing host]
cojy has joined #ocaml
cojy has joined #ocaml
sveit has joined #ocaml
vinoski has joined #ocaml
al-damiri has joined #ocaml
neatonk has quit [Ping timeout: 244 seconds]
ziyourenxiang has quit [Ping timeout: 240 seconds]
<reynir> me too, although I get a 301 redirect
LPeter1997 has joined #ocaml
jbrown has quit [Ping timeout: 256 seconds]
neatonk has joined #ocaml
<LPeter1997> How can you have mutually recursive types?
<LPeter1997> Is it the 'and' keyword?
<dmbaturin> Yes.
<dmbaturin> There's also "and" for mutually recursive functions.
gtrak has quit [Ping timeout: 256 seconds]
gtrak has joined #ocaml
jaar_ has quit [Ping timeout: 245 seconds]
gtrak has quit [Ping timeout: 248 seconds]
gtrak has joined #ocaml
troydm has joined #ocaml
Fare has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
steenuil has quit [Ping timeout: 265 seconds]
steenuil has joined #ocaml
rom1504 has quit [Quit: WeeChat 1.6]
rom1504 has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
Fare has joined #ocaml
cjd has joined #ocaml
eni has quit [Ping timeout: 240 seconds]
zolk3ri has quit [Remote host closed the connection]
dtornabene has joined #ocaml
eni has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
raduom has quit [Quit: Textual IRC Client: www.textualapp.com]
FreeBirdLjj has joined #ocaml
mali__ has joined #ocaml
ColeW_Picaro has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
<discord> <cjd> .
<cjd> @antron yo
<discord> <antron> heya
<cjd> anyway, easier to chat here b/c I don't need to keep monitoring a tab that's lost in my browser
mali__ has quit [Ping timeout: 248 seconds]
<cjd> did you consider dynamically linking to libuv in order to be able to compile to a node native module ?
<discord> <antron> i use discord desktop app with notifications
<discord> <antron> no, but i suppose there is no reason not to. except plumbing/maintenance
<cjd> I think one of the big use cases will be for making fast nodejs modules
<cjd> I have 2 use cases: 1. making embeddable self-contained binaries which code something like nodejs and 2. making fast modules which run in nodejs
<cjd> 3. being able to load that code on the client side is kind of just icing on the cake
<cjd> but I'm not everyone, these are use cases which are specific to how I use nodejs
FreeBirdLjj has quit [Remote host closed the connection]
argent_smith2 has quit [Quit: Leaving.]
<discord> <antron> it should all be possible. the only difficulty i foresee right now is supporting different versions of nodejs and therefore libuv
<discord> <antron> right now i sidestep that by vendoring libuv, but we can solve that in some other way as well
<cjd> fair point
mahem1 has quit [Quit: Page closed]
<cjd> could just breakout into js land for a second and then jump back in
<cjd> it should still be reasonably quick
<cjd> quicker than writing the entire app in js
<cjd> and if you can make something that a person can just `npm install` and it will auto-build, then you have made magic
<discord> <antron> i'll add a note about this stuff to the roadmap in the readme for now. it would be a ways off i think, as we still have the api to cover, and a bunch of other work to do with it. but if you want to work on whatever build plumbing is needed earlier, contributions are of course very welcome 😃
<discord> <antron> needed for node native modules that is
<cjd> +1
<cjd> I'm really really young at ocaml, I basically started looking at it yesterday
<cjd> I *might* be of some little bit of usefulness
<cjd> But actually, what I need in the immediate term in order to test porting my scripts over is udp and timers
<cjd> but I can just run ahead w/ Uwt and then come back when luv has udp
<discord> <antron> well luv has timers, but not udp yet (only tcp). so yeah uwt is probably good
<cjd> luv is going to be nice, this >>= is a cognitive load
<discord> <antron> hope so 😃
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
dakk has quit [Remote host closed the connection]
<spew> is there a way to tell the ocaml compiler not to immediately fail after the first error but to attempt to continue compiling so I can get more errors all at once?
<Drup> Hmm, I doubt >>= will disapear
kakadu has joined #ocaml
<LPeter1997> You all were right. Starting with a lexer and parser is a huge pain in the functional world. Especially when you have an imperative mindset.
<LPeter1997> There is a special thing when you write 'function' after a let binding, which means that it's a pattern match on the last parameter. Does it have a name? I've noticed that for example 'parse' is a similar construct.
eni has quit [Ping timeout: 256 seconds]
silver has joined #ocaml
spew has quit [Quit: goinghome]
Denommus has joined #ocaml
<steenuil> it's a shorthand for let f x = match x with ...
<steenuil> instead you can write let f = function ...
<Armael> also note that 'parse' is not valid ocaml and only works in .mll files
<steenuil> dunno if it has a name
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
LPeter1997 has quit [Quit: Page closed]
<discord> <struktured> @rgrinberg does this pr add support for generation of json schemas, or could it be used for such a feature eventually? https://github.com/mjambon/atd/pull/44
tane has joined #ocaml
nullifidian_ has joined #ocaml
tane has quit [Quit: Leaving]
<thizanne> Armael: 'parse' used to be a keyword simiar to 'function' with the stream ubiquitous camlp4 extension, old examples may still use it
<thizanne> or 'parser' it was ?
Haudegen has quit [Read error: Connection reset by peer]
<Armael> ah yes
<Armael> but this is a thing of the past now
nullifidian has quit [Ping timeout: 248 seconds]
jbrown has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
Fare has quit [Ping timeout: 256 seconds]
Fare has joined #ocaml
ColeW_Picaro has quit [Quit: Leaving]
pierpa has joined #ocaml
dtornabene has quit [Remote host closed the connection]
aciniglio has quit [Ping timeout: 248 seconds]
_andre has quit [Quit: leaving]
argent_smith has joined #ocaml
Fare has quit [Ping timeout: 248 seconds]
kvda has joined #ocaml
mlh_ has joined #ocaml
Denommus has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
mali__ has joined #ocaml
mlh_ has quit [Ping timeout: 240 seconds]
pierpal has quit [Ping timeout: 256 seconds]
kakadu has quit [Remote host closed the connection]
cbot has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
kvda has quit [Read error: Connection reset by peer]
argent_smith has quit [Quit: Leaving.]
shinnya has joined #ocaml
Haudegen has quit [Remote host closed the connection]