adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 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
mfp has quit [Ping timeout: 264 seconds]
The_Mad_Pirate has joined #ocaml
mfp has joined #ocaml
env__ has joined #ocaml
xuanrui has joined #ocaml
emily has joined #ocaml
coventry has joined #ocaml
Jeanne-Kamikaze has joined #ocaml
keep_learning has joined #ocaml
silver has quit [Read error: Connection reset by peer]
MadcapJake has joined #ocaml
JimmyRcom has joined #ocaml
coventry has quit [Ping timeout: 240 seconds]
env__ has quit [Ping timeout: 264 seconds]
JimmyRcom has quit [Ping timeout: 252 seconds]
env__ has joined #ocaml
tormen_ has joined #ocaml
efm has joined #ocaml
zmt00 has quit [Quit: Leaving]
tormen has quit [Ping timeout: 245 seconds]
mfp has quit [Ping timeout: 244 seconds]
clownpriest has quit [Quit: clownpriest]
kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
env__ has quit [Ping timeout: 244 seconds]
pierpa has quit [Quit: Page closed]
env__ has joined #ocaml
Nicd- has left #ocaml [#ocaml]
erkin has quit [Remote host closed the connection]
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
kvda has joined #ocaml
kvda has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 264 seconds]
sagotch has joined #ocaml
pierpal has joined #ocaml
rdivyanshu has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
pierpal has quit [Ping timeout: 240 seconds]
pierpal has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
Jeanne-Kamikaze has quit [Remote host closed the connection]
env__ has joined #ocaml
sagotch has quit [Read error: Connection timed out]
sagotch has joined #ocaml
sagotch has quit [Quit: Leaving.]
<mildtaste> I am writing a cli in ocaml, trying to do http requests with cohttp_async, I am trying to fire the request in a repl environment (using ocaml not utop), I can describe the request but the async scheduler won't run the action.
<mildtaste> I have came across this discussion, https://discuss.ocaml.org/t/how-to-run-a-deferred-t/294 which basically makes the request start if I run it into a Thread_safe.block_on_async_exn.
<mildtaste> Do I always need to start a thread to run a Deferred? if I start the scheduler manually, it will also run the scheduled requests then it stalls, blocking the toplevel.
<mildtaste> My goal is to run the request asynchronously but still keep the toplevel working.
ygrek has joined #ocaml
sagotch has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
marble_visions has quit [Quit: bye]
marble_visions has joined #ocaml
marble_visions has quit [Quit: bye]
<Leonidas> mildtaste: Thread-starter of sait thread: I always use Command to launch and derminate Deferred.t
marble_visions has joined #ocaml
<Leonidas> In theory utop should be running deferreds just as well as lwt threads without having to launch the scheduler, but for some reason it stalls.
<Leonidas> I think reporting it to utop might be the best course of action here.
ygrek has quit [Ping timeout: 264 seconds]
marble_visions has quit [Client Quit]
rdivyanshu has quit [Ping timeout: 272 seconds]
marble_visions_ has joined #ocaml
rdivyanshu has joined #ocaml
orbifx1 has joined #ocaml
jaar has joined #ocaml
jaar has quit [Remote host closed the connection]
<mildtaste> Leonidas: thanks, I will, the Command version works as expected :)
marble_visions_ has quit [Quit: bye]
marble_visions has joined #ocaml
orbifx1 has quit [Ping timeout: 246 seconds]
pierpal has quit [Read error: Connection reset by peer]
marble_visions has quit [Client Quit]
marble_visions has joined #ocaml
marble_visions has quit [Remote host closed the connection]
bartholin has joined #ocaml
marble_visions has joined #ocaml
marble_visions has left #ocaml [#ocaml]
The_Mad_Pirate is now known as TMP|Away
env__ has quit [Ping timeout: 264 seconds]
env__ has joined #ocaml
ggole has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
aydio has joined #ocaml
ygrek has joined #ocaml
rdivyanshu has quit []
carlosdagos has quit [Quit: Connection closed for inactivity]
env__ has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
marble_visions has joined #ocaml
rotsix has joined #ocaml
rotsix has quit [Remote host closed the connection]
sagax_ has joined #ocaml
rotsix has joined #ocaml
nullifidian has quit [Quit: Leaving]
nullifidian has joined #ocaml
nullifidian has quit [Client Quit]
nullifidian has joined #ocaml
nullifidian has quit [Remote host closed the connection]
env__ has joined #ocaml
bartholin has quit [Remote host closed the connection]
env__ has quit [Ping timeout: 244 seconds]
env__ has joined #ocaml
nullifidian has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
mfp has joined #ocaml
env__ has joined #ocaml
env__ has quit [Ping timeout: 264 seconds]
env__ has joined #ocaml
freyr69 has joined #ocaml
env__ has quit [Ping timeout: 264 seconds]
sagotch has quit [Quit: Leaving.]
silver has joined #ocaml
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
thizanne has joined #ocaml
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
ygrek has quit [Remote host closed the connection]
pierpal has joined #ocaml
Haudegen has quit [Remote host closed the connection]
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
<freyr69> Why `String.to_seq "test"` hangs for me in utop?
<freyr69> *String.to_seq "/\"
<freyr69> Ah, it seems \" mirrors, nevermind
env__ has quit [Ping timeout: 244 seconds]
env__ has joined #ocaml
jaar has joined #ocaml
env__ has quit [Ping timeout: 245 seconds]
_andre has joined #ocaml
env__ has joined #ocaml
env__ has quit [Ping timeout: 260 seconds]
pierpal has quit [Ping timeout: 244 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
nullifidian_ has joined #ocaml
env__ has joined #ocaml
rotsix has quit [Read error: Connection reset by peer]
nullifidian has quit [Ping timeout: 240 seconds]
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 245 seconds]
sagotch has joined #ocaml
jao has joined #ocaml
env__ has joined #ocaml
spew has joined #ocaml
env__ has quit [Ping timeout: 268 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 276 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
Guest81176 has joined #ocaml
coventry has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
Guest81176 has quit [Remote host closed the connection]
JimmyRcom has joined #ocaml
Haudegen has joined #ocaml
ygrek has joined #ocaml
coventry has quit [Ping timeout: 252 seconds]
env__ has joined #ocaml
<RalfJ> I noticed that a 2.0.1 tag has been cretaed in the opam repo, and it has binaries attached to it, but there was no announcement of the website yet. can I already use these binaries or might they still change before the final release?
env__ has quit [Ping timeout: 272 seconds]
<Drup> RalfJ: patience!
coventry has joined #ocaml
env__ has joined #ocaml
<RalfJ> Drup: not my best virtue^^ doesn't answer my question about whether the binaries might still change though ;)
env__ has quit [Ping timeout: 240 seconds]
<RalfJ> being patient would be easier if there was a way to get notified when the release actually happens, but unfortunately the RSS feed is broken... so I subscribed to the one on GitHub, but of course that one already has the release...
mseri has joined #ocaml
<Drup> oh, it is indeed broken
<Drup> Have you reported that ?
env__ has joined #ocaml
mseri has left #ocaml [#ocaml]
_mseri_ has joined #ocaml
env__ has quit [Ping timeout: 250 seconds]
<_mseri_> No, how can I report it?
<_mseri_> @RalfJ I have just merged the opam 2.0.1 release on opam-repository. Now the binaries should not change
ygrek has quit [Remote host closed the connection]
<RalfJ> Drup: yeah, reported at https://github.com/ocaml/opam/issues/3619
<RalfJ> _mseri_: awesome, thanks :)
<Drup> ah, duplicate then
<_mseri_> It's getting harder to figure out what is the right place to report issues
<Drup> yeah, in practice the important part is that the right people know about it, it doesn't really matter which repository you report to
env__ has joined #ocaml
env__ has quit [Ping timeout: 246 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 264 seconds]
_mseri_ has quit [Quit: Page closed]
env__ has joined #ocaml
bartholin has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
TMP|Away has quit [Ping timeout: 240 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 260 seconds]
TMP|Away has joined #ocaml
JimmyRcom has quit [Ping timeout: 252 seconds]
env__ has joined #ocaml
coventry_ has joined #ocaml
env__ has quit [Ping timeout: 264 seconds]
coventry has quit [Ping timeout: 272 seconds]
efm has quit [Quit: Konversation terminated!]
aydio has quit [Ping timeout: 252 seconds]
pierpal has joined #ocaml
al-damiri has joined #ocaml
coventry_ has quit [Ping timeout: 252 seconds]
sagax_ has quit [Remote host closed the connection]
sz0_ has quit []
sz0 has joined #ocaml
sz0 has quit [Client Quit]
sz0 has joined #ocaml
pierpal has quit [Ping timeout: 245 seconds]
sagotch has quit [Quit: Leaving.]
xuanrui has quit [Remote host closed the connection]
env__ has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
ggole has quit [Quit: ggole]
pierpal has joined #ocaml
jaar has quit [Quit: Leaving]
TMP|Away has quit [Quit: Konversation terminated!]
env__ has quit [Ping timeout: 244 seconds]
TMP|Away has joined #ocaml
TMP|Away has left #ocaml [#ocaml]
rdivyanshu has joined #ocaml
The_Mad_Pirate has joined #ocaml
apostolis has joined #ocaml
freyr69 has quit [Remote host closed the connection]
labdog has joined #ocaml
labdog has quit [Quit: Mutter: www.mutterirc.com]
env__ has joined #ocaml
fraxamo has joined #ocaml
<bartholin> Is there an exception for catching stack overflows?
<bartholin> I don't even think it is feasible.
<thizanne> val g : int = 3
<thizanne> woops paste failed
<thizanne> # let g = try let f () = 1 + f () in f () with _ -> 3;;
<thizanne> val g : int = 3
<Armael> Stack_overflow;;
<Armael> - : exn = Stack_overflow
<Armael> I'm not sure it works with native code though
<Armael> looks like it does work
pierpal has quit [Quit: Poof]
Haudegen has joined #ocaml
pierpal has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
Haudegen has quit [Remote host closed the connection]
<bartholin> ok
xuanrui has joined #ocaml
<Drup> it is not garantee to work all the time :)
<Armael> I guess it can fail if you're overflowing the stack while running C code?
jnavila has joined #ocaml
env__ has quit [Ping timeout: 245 seconds]
pmetzger has joined #ocaml
<pmetzger> I wrote this on discord and then realized it might not have gotten through....
<pmetzger> I believe that Unix sends a signal to the process if it's experiencing a stack overflow, and Unix signals can be asked to execute on the sigaltstack when a signal arrives.
<pmetzger> see the sigaction man page
<pmetzger> That means that the fact that the main stack is blown won't stop you from executing a small amount of handler code. Emphasis small.
labdog has joined #ocaml
<pmetzger> So detecting stack overflow is quite practical. But doing anything about it beyond printing an interesting message is quite difficult.
labdog has quit [Client Quit]
labdog has joined #ocaml
labdog has quit [Client Quit]
<pmetzger> Ah, and I checked, the signal you should get is a segmentation fault.
jnavila has quit [Ping timeout: 246 seconds]
jnavila has joined #ocaml
labdog has joined #ocaml
labdog has quit [Client Quit]
env__ has joined #ocaml
pmetzger has quit []
pmetzger has joined #ocaml
pmetzger has quit [Client Quit]
jnavila has quit [Ping timeout: 252 seconds]
rdivyanshu has quit []
env___ has joined #ocaml
iZsh_ has joined #ocaml
jao has quit [Disconnected by services]
jao has joined #ocaml
chindy_ has joined #ocaml
companion_square has joined #ocaml
sammie1 has joined #ocaml
companion_cube has quit [Disconnected by services]
benizac_ has joined #ocaml
eagleflo_ has joined #ocaml
companion_square is now known as companion_cube
chindy_ has quit [Client Quit]
chindy_ has joined #ocaml
chindy_ has quit [Client Quit]
chindy_ has joined #ocaml
chindy_ has quit [Client Quit]
xorpse_ has joined #ocaml
env__ has quit [*.net *.split]
pierpal has quit [*.net *.split]
nullifidian_ has quit [*.net *.split]
mfp has quit [*.net *.split]
chindy has quit [*.net *.split]
troydm has quit [*.net *.split]
iZsh has quit [*.net *.split]
sammie has quit [*.net *.split]
so has quit [*.net *.split]
benizac has quit [*.net *.split]
eagleflo has quit [*.net *.split]
xorpse has quit [*.net *.split]
chindy has joined #ocaml
so has joined #ocaml
troydm has joined #ocaml
nullifidian has joined #ocaml
pierpal has joined #ocaml
mfp has joined #ocaml
xuanrui has quit [Ping timeout: 245 seconds]
env___ has quit [Ping timeout: 246 seconds]
env__ has joined #ocaml
pierpal has quit [Read error: Connection reset by peer]
pierpal has joined #ocaml
benizac_ has left #ocaml [#ocaml]
benizac has joined #ocaml
oni-on-ion has joined #ocaml
kakadu_ has joined #ocaml
jnavila has joined #ocaml
aydio has joined #ocaml
The_Mad_Pirate has quit [Ping timeout: 264 seconds]
<apostolis> Can "opam init" build a specific ocaml? So not having to build an initial ocaml version?
jnavila has quit [Ping timeout: 246 seconds]
maufred has joined #ocaml
maufred has quit [Client Quit]
maufred has joined #ocaml
fraxamo has quit [Quit: Leaving]
jbrown has quit [Ping timeout: 260 seconds]
env__ has quit [Ping timeout: 268 seconds]
jnavila has joined #ocaml
jbrown has joined #ocaml
env__ has joined #ocaml
bartholin has quit [Remote host closed the connection]
<jgkamat> apostolis: maybe opam init --bare
<oni-on-ion> /j/
tokomak has joined #ocaml
xuanrui has joined #ocaml
Guest3649 has joined #ocaml
Guest3649 has quit [Read error: Connection reset by peer]
Haudegen has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 240 seconds]
jnavila has quit [Ping timeout: 260 seconds]
<apostolis> jgkamat : I will try it.
env__ has joined #ocaml
tokomak has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
silver_ has joined #ocaml
silver has quit [Ping timeout: 240 seconds]
env__ has quit [Ping timeout: 245 seconds]
jao has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
apostolis has quit [Quit: WeeChat 1.6]
env__ has joined #ocaml
Haudegen has quit [Remote host closed the connection]
pierpal has quit [Quit: Poof]
pierpal has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
xuanrui has quit [Ping timeout: 276 seconds]
carlosdagos has joined #ocaml
jao has quit [Ping timeout: 246 seconds]
jao has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
env__ has quit [Ping timeout: 252 seconds]
env__ has joined #ocaml
env__ has quit [Ping timeout: 252 seconds]