adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
Jesin has quit [Quit: Leaving]
bartholin has quit [Remote host closed the connection]
ziyourenxiang has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]
thomas_scrace has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
Jesin has joined #ocaml
zv has quit [Ping timeout: 252 seconds]
thomas_scrace has quit [Ping timeout: 268 seconds]
thomas_scrace has joined #ocaml
zv has joined #ocaml
ziyourenxiang has quit [Ping timeout: 244 seconds]
pierpal has quit [Ping timeout: 264 seconds]
mfp has quit [Ping timeout: 252 seconds]
silver has quit [Quit: rakede]
thomas_scrace has quit [Ping timeout: 272 seconds]
thomas_scrace has joined #ocaml
Guest78852 has quit [Ping timeout: 268 seconds]
pierpal has joined #ocaml
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 252 seconds]
thomas_scrace has quit [Ping timeout: 264 seconds]
thomas_scrace has joined #ocaml
letoh has joined #ocaml
Guest78852 has joined #ocaml
pierpa has quit [Quit: Page closed]
thomas_scrace has quit [Ping timeout: 268 seconds]
thomas_scrace has joined #ocaml
tormen has joined #ocaml
brettgilio has joined #ocaml
brettgilio has quit [Client Quit]
brettgilio has joined #ocaml
tormen_ has quit [Ping timeout: 252 seconds]
brettgilio has quit [Quit: Konversation terminated!]
brettgilio has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
|jbrown| has quit [Ping timeout: 272 seconds]
|jbrown| has joined #ocaml
nopf_ has quit [Remote host closed the connection]
<xvilka> Hi
<xvilka> How to make execution of the external programs safe? I use Core.Unix.open_process_in and Core.In_channel.input_all stdout. But if the external program stuck with some error or asking for some input, how to not make OCaml program hang on it? How to set a timeout or something?
caltelt has quit [Ping timeout: 268 seconds]
|jbrown| has quit [Ping timeout: 272 seconds]
Rosslaew has joined #ocaml
brettgilio has quit [Quit: Konversation terminated!]
brettgilio has joined #ocaml
lostman has joined #ocaml
brettgilio has quit [Client Quit]
thomas_scrace has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
<flux[m]> I believe it's a bit complicated :/
<flux[m]> so you probably need to implement the mechanism yourself using functions from Unix
<flux[m]> or alternatively you may be able to do it with similar functionality from Async or Lwt
<flux[m]> maybe you can use Core.create_process and then Core.exec
<flux[m]> and then have another thread that kills said process with your criteria
<flux[m]> that might even be the simplest option
dacid has joined #ocaml
gareppa has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
thomas_scrace has quit [Ping timeout: 252 seconds]
thomas_scrace has joined #ocaml
orbifx1 has joined #ocaml
gareppa has quit [Quit: Leaving]
AltGr has joined #ocaml
<xvilka> flux[m]: thanks, will try this approach
<sshine> is there something in ocaml that is equivalent to Haskell's Foldable type class?
<sshine> perhaps in one of the extensions to the standard library.
<sshine> I'm doing an exercise where I create my own set type, and a bunch of those operations can be defined in terms of one another, but a few would be real convenient if I had just made some basic iteration methods. now I think, if I can basically iterate them, I should put that in a functor. and I wonder if there's an existing pattern for that. like Haskell's Foldable. perhaps a convention sort of like how the st
<sshine> dlib Set has Set.S and Set.Make.
gareppa has joined #ocaml
gareppa has quit [Remote host closed the connection]
orbifx1 has quit [Ping timeout: 268 seconds]
freyr69 has joined #ocaml
AltGr has left #ocaml [#ocaml]
AltGr has joined #ocaml
bezirg has joined #ocaml
webshinra has quit [Remote host closed the connection]
Rosslaew_ has joined #ocaml
Haudegen has joined #ocaml
bezirg has quit [Remote host closed the connection]
Rosslaew has quit [Ping timeout: 276 seconds]
ozzymcduff has joined #ocaml
webshinra has joined #ocaml
thomas_scrace has quit [Ping timeout: 272 seconds]
lyxia has quit [Quit: WeeChat 2.2]
lyxia has joined #ocaml
bezirg has joined #ocaml
AltGr has left #ocaml [#ocaml]
AltGr has joined #ocaml
Guest78852 has quit [Ping timeout: 272 seconds]
Rosslaew_ has quit [Remote host closed the connection]
Rosslaew has joined #ocaml
rpcope has joined #ocaml
mfp has joined #ocaml
Guest24714 is now known as hnrgrgr
thomas_scrace has joined #ocaml
thomas_scrace has quit [Read error: Connection reset by peer]
thomas_scrace has joined #ocaml
<xvilka> btw, I noted there are some outdated links & information at https://github.com/rizo/awesome-ocaml
<xvilka> I fixed some that caught my eye
<xvilka> So please check it too, since it is in the first result of googling for "awesome ocaml"
bezirg has quit [Ping timeout: 272 seconds]
jao has joined #ocaml
Ulrar has joined #ocaml
<Ulrar> Hi, when I try to install rashell I get "configure: error: OCaml findlib package lwt.ppx not found.". Shouldn't lwt_ppx fix that ?
<sshine> https://gist.github.com/sshine/ed3dacf0bcfa39a9255dbe40ef1b0eb3 -- can someone explain this functor type error to me?
<sshine> if I change 'module Make (Ord : Ord) : S = struct' into 'module Make (Ord : Ord) = struct' (mimicking stdlib), I get another error.
<sshine> File "test.ml", line 29, characters 47-48: Error: This expression has type int but an expression was expected of type 'CSet.elt'
<sshine> ah. I just add 'type elt = int' in EXPECTED in test.ml. :)
<sshine> companion_cube, does QCheck come with a tutorial?
bezirg has joined #ocaml
<sshine> companion_cube, for example, I want to test my toy set functor by generating lists of integers, some of which have duplicates and some of which don't.
dacid has quit [Ping timeout: 268 seconds]
Haudegen has quit [Read error: Connection reset by peer]
bezirg has quit [Ping timeout: 252 seconds]
<Leonidas> Ulrar: yes, installing that should fix it
ozzymcduff has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozzymcduff has joined #ocaml
gareppa has joined #ocaml
jaar has joined #ocaml
<Ulrar> Leonidas: Doesn't seem to exist
<Leonidas> Ulrar: what does ocamlfind -list say?
<Ulrar> I think it might be the old name of lwt_ppx, and I guess rashell is dead
<Ulrar> Leonidas: lwt_ppx, not lwt.ppx
<Leonidas> Ulrar: you could try to install the old versions
<Ulrar> lwt.ppx seems to be the old name, before it got it's own package
<Ulrar> Doesn't exist
<Ulrar> It was included in lwt
<Ulrar> which doesn't include that anymore
<Leonidas> yes, install the old version of lwt
AltGr has left #ocaml [#ocaml]
<Ulrar> Well it won't be compatible with anything recent though
<Ulrar> no I guess I'll just use Lwt_unix myself, it's a lot less practical but at least it's maintained
<Leonidas> porting it to the new release is probably straightforward
gtrak has joined #ocaml
<Leonidas> rashell is using autoconf, omg
<Ulrar> Yeah I just want to exec a few commands, nothing fancy
<Ulrar> probably just lsblk and a few smartctl
<Ulrar> shouldn't be that hard with the regular lwt unix
thomas_scrace has quit [Ping timeout: 268 seconds]
dacid has joined #ocaml
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 244 seconds]
bezirg has joined #ocaml
Haudegen has joined #ocaml
thomas_scrace has joined #ocaml
silver has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
thomas_scrace has quit [Ping timeout: 244 seconds]
gtrak has quit [Ping timeout: 244 seconds]
gareppa has quit [Quit: Leaving]
ozzymcduff has quit [Quit: Textual IRC Client: www.textualapp.com]
_andre has joined #ocaml
bezirg has quit [Remote host closed the connection]
flux[m] is now known as flux[m][m]
trochdewei has joined #ocaml
thomas_scrace has joined #ocaml
|jbrown| has joined #ocaml
Rosslaew has quit [Ping timeout: 264 seconds]
gtrak has joined #ocaml
neatonk has joined #ocaml
flux[m][m] is now known as flux[m]
gtrak has quit [Ping timeout: 264 seconds]
spew has joined #ocaml
ziyourenxiang has joined #ocaml
gtrak has joined #ocaml
Bronsa has joined #ocaml
bezirg has joined #ocaml
r3s1stanc3 has quit [Quit: ZNC 1.7.1 - https://znc.in]
r3s1stanc3 has joined #ocaml
trochdewei has quit [Ping timeout: 244 seconds]
gtrak has quit [Quit: WeeChat 2.1]
bezirg has quit [Ping timeout: 276 seconds]
gtrak has joined #ocaml
picolino has joined #ocaml
FreeBirdLjj has joined #ocaml
gtrak has quit [Quit: WeeChat 2.1]
gtrak has joined #ocaml
KeyJoo has joined #ocaml
freyr69 has quit [Remote host closed the connection]
silver_ has joined #ocaml
silver has quit [Ping timeout: 244 seconds]
|jbrown| has quit [Quit: Leaving]
jbrown has joined #ocaml
al-damiri has joined #ocaml
srenatus[m] has quit [Ping timeout: 264 seconds]
srenatus[m] has joined #ocaml
coventry has joined #ocaml
dmiles has quit [Ping timeout: 268 seconds]
rwmjones has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rwmjones has joined #ocaml
<coventry> Is there a good emacs wrapper for merlin's "find occurrences" functionality? M-x merlin-occurrences only shows the usage in the current buffer.
<coventry> Also, is there a good way to switch from the signature in the mli file to the implementation in the ml file? M-x merlin-switch-to-mli offers me a menu of files to switch to, instead of just inferring from the current location.
<coventry> (This is with the spacemacs ocaml layer, btw.)
<theblatte> as far as i know there's no way to do a project-wide "merlin-occurrences" at the moment
<coventry> Thanks.
<theblatte> C-c C-a navigates from .ml to .mli and back
<theblatte> that might be tuareg-mode at work
<coventry> Thanks, C-c C-a works for me.
dacid has quit [Ping timeout: 276 seconds]
<coventry> For finding usages, ablation and rebuilding sort of works...
neatonk has quit [Ping timeout: 272 seconds]
* theblatte uses "git grep"
<rks`> savage.
jbrown has quit [Ping timeout: 244 seconds]
ziyourenxiang has quit [Ping timeout: 252 seconds]
jbrown has joined #ocaml
steck has joined #ocaml
Bronsa has quit [Ping timeout: 272 seconds]
steck has quit [Quit: Page closed]
psteckler has joined #ocaml
psteckler has quit [Client Quit]
jbrown has quit [Quit: Leaving]
psteckler has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
<psteckler> I have a type with [@@deriving yojson]. OCaml complains that I'm not using the derived code (warning 32). Is there a way to have OCaml ignore those particular unused values (and not simply disable the warning wholesale)
jbrown has joined #ocaml
<discord> <anuragsoni.13> I believe that has been fixed in ppx_deriving_yojson but it hasn't been published on opam yet
<discord> <anuragsoni.13> if you pin it to master i believe you won't see the warning
<discord> <anuragsoni.13> ah my bad. I was thinking of a different warning
orbifx1 has joined #ocaml
bezirg has joined #ocaml
FreeBirdLjj has joined #ocaml
dmiles has joined #ocaml
thomas_scrace has quit [Ping timeout: 268 seconds]
Haudegen has quit [Remote host closed the connection]
jaar has quit [Quit: Leaving]
dmiles has quit [Read error: Connection reset by peer]
neatonk has joined #ocaml
groovy2shoes has quit [Ping timeout: 265 seconds]
bezirg has quit [Ping timeout: 272 seconds]
orbifx1 has left #ocaml [#ocaml]
orbifx has joined #ocaml
caltelt has joined #ocaml
richi235 has joined #ocaml
dmiles has joined #ocaml
jnavila has joined #ocaml
orbifx has quit [Read error: Connection reset by peer]
orbifx has joined #ocaml
moei has quit [Quit: Leaving...]
jbrown has quit [Quit: Leaving]
jnavila has quit [Ping timeout: 252 seconds]
richi235 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
hnrgrgr has quit [Quit: leaving]
richi235 has joined #ocaml
jbrown has joined #ocaml
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
bezirg has joined #ocaml
bezirg has quit [Remote host closed the connection]
magicbit has joined #ocaml
cods has quit [*.net *.split]
jimt has quit [*.net *.split]
cods has joined #ocaml
jimt has joined #ocaml
<Leonidas> anuragsoni.13: are you thinking of the unused 'rec' flag warning?
<Leonidas> TIL, that's cool, so I can bump the version and remove all the dune overrides \o/
neatonk has quit [Remote host closed the connection]
neatonk has joined #ocaml
<coventry> theblatte: git grep is OK, but I was running into a lot of spurious collisions that way.
FreeBirdLjj has quit [Remote host closed the connection]
Orion3k has joined #ocaml
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
bartholin has joined #ocaml
loli has quit [Read error: Connection reset by peer]
loli has joined #ocaml
<psteckler> I found a way to avoid the yojson issue mentioned above
Guest78852 has joined #ocaml
<discord> <anuragsoni.13> Leonidas: Yes i was indeed thinking of the unused rec warning
jnavila has joined #ocaml
thomas_scrace has joined #ocaml
thomas_scrace has quit [Ping timeout: 244 seconds]
groovy2shoes has joined #ocaml
kamog has quit [Quit: ERC (IRC client for Emacs 26.1)]
moei has joined #ocaml
ctrlsbstr has joined #ocaml
spew has quit [Quit: all hope is lost]
coventry has quit [Ping timeout: 268 seconds]
brettgilio has joined #ocaml
dacid has joined #ocaml
ctrlsbstr has quit [Quit: Textual IRC Client: www.textualapp.com]
ctrlsbstr has joined #ocaml
jnavila has quit [Remote host closed the connection]
ctrlsbstr has quit [Quit: Textual IRC Client: www.textualapp.com]
bartholin has quit [Remote host closed the connection]
coventry has joined #ocaml
coventry has quit [Remote host closed the connection]
dacid has quit [Ping timeout: 240 seconds]
gtrak has quit [Ping timeout: 244 seconds]
<psteckler> for Jane Street inline tests, is there a way to run selected tests, rather than the whole lot of them
steenuil has quit [Remote host closed the connection]
steenuil has joined #ocaml
thomas_scrace has joined #ocaml
dedgrant has joined #ocaml
brettgilio has quit [Quit: Konversation terminated!]
thomas_scrace has quit [Ping timeout: 252 seconds]
psteckler has quit [Ping timeout: 252 seconds]
haesbaert has quit [Remote host closed the connection]
orbifx has quit [Quit: WeeChat 2.1]
silver_ is now known as silver
johnelse has quit [Read error: Connection reset by peer]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
johnelse has joined #ocaml
keep_learning has quit [Remote host closed the connection]
erkin has joined #ocaml
pierpal has quit [Ping timeout: 245 seconds]