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]
<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]
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]