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
mengu has quit [Quit: Leaving...]
infinity0 has quit [Ping timeout: 252 seconds]
infinity0 has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
sh0t has quit [Remote host closed the connection]
cobreadmonster has joined #ocaml
zolk3ri has quit [Quit: leaving]
jimmyrcom has joined #ocaml
KeyJoo has quit [Ping timeout: 264 seconds]
ygrek has joined #ocaml
mfp has quit [Ping timeout: 256 seconds]
jao has quit [Ping timeout: 268 seconds]
pierpa has quit [Quit: Page closed]
VermillionAzure has quit [Ping timeout: 256 seconds]
ygrek has quit [Ping timeout: 248 seconds]
jao has joined #ocaml
arecacea1 has quit [Remote host closed the connection]
arecacea1 has joined #ocaml
KeyJoo has joined #ocaml
mbuf has joined #ocaml
jao has quit [Ping timeout: 268 seconds]
nahra` has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
nahra has joined #ocaml
nightblues has quit [Ping timeout: 240 seconds]
nightblues has joined #ocaml
TarVanimelde has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
TarVanimelde has quit [Read error: Connection reset by peer]
TarVanimelde has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
TarVanimelde has quit [Client Quit]
raphaelss has quit [Remote host closed the connection]
raduom has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 256 seconds]
FreeBirdLjj has joined #ocaml
raduom has quit [Ping timeout: 265 seconds]
<_xvilka_> hi!
<_xvilka_> I have an application which performs different kind of queries to PostgreSQL, and have functions like http://paste.debian.net/plainh/55346185
<_xvilka_> to prevent repetitive code, the only changing things are 1) sql query 2) processing of the tuple inside 3) returning the results
<_xvilka_> question is - how I can effectively extract the repetitive part and just change those things
<_xvilka_> it should return different types - sometimes it's a list, sometimes it's a tuple, sometimes is a variant or even more complex custom type
<_xvilka_> so basically something like 1) string for sql query 2) function for converting tuples into something 3) not sure how to return those results from 2nd step
petercommand has quit [Ping timeout: 260 seconds]
petercommand has joined #ocaml
<_xvilka_> I'll be afk, but will check the answer tomorrow, if there will be one. Thank you
cobreadmonster has quit [Quit: Connection closed for inactivity]
jnavila has joined #ocaml
mfp has joined #ocaml
<Drup> _xvilka_: it's difficult to answer you without code examples
bbc- is now known as bbc
raphaelss has joined #ocaml
mbuf has quit [Quit: Leaving]
ziyourenxiang has joined #ocaml
Serpent7776 has joined #ocaml
kakadu has joined #ocaml
zolk3ri has joined #ocaml
Guest84067 has joined #ocaml
Guest84067 has quit [Remote host closed the connection]
silver has joined #ocaml
raduom has joined #ocaml
KeyJoo has quit [Ping timeout: 256 seconds]
sh0t has joined #ocaml
arecacea1 has quit [Remote host closed the connection]
arecacea1 has joined #ocaml
raduom has quit [Ping timeout: 265 seconds]
KeyJoo has joined #ocaml
jimmyrcom has quit [Ping timeout: 265 seconds]
jao has joined #ocaml
shinnya has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
andreas__ has joined #ocaml
andreas__ has quit [Client Quit]
andreas_ has joined #ocaml
jao has joined #ocaml
tg has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 256 seconds]
demonimin has quit [Quit: No Ping reply in 180 seconds.]
demonimin has joined #ocaml
demonimin has joined #ocaml
tg has joined #ocaml
mbuf has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
h4un has joined #ocaml
mbuf has quit [Quit: Leaving]
snowcrshd has joined #ocaml
snowcrshd is now known as ltt
kakadu has quit [Remote host closed the connection]
raphaelss has quit [Remote host closed the connection]
kakadu has joined #ocaml
h4un has quit [Ping timeout: 260 seconds]
Jesin has joined #ocaml
ltt has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 240 seconds]
ziyourenxiang has quit [Ping timeout: 252 seconds]
ltt has joined #ocaml
Serpent7776 has quit [Quit: Leaving]
sh0t has quit [Read error: Connection reset by peer]
sh0t has joined #ocaml
Exagone313 has quit [Read error: Connection reset by peer]
raphaelss has joined #ocaml
ltt_ has joined #ocaml
ltt has quit [Ping timeout: 252 seconds]
Exagone313 has joined #ocaml
ygrek has joined #ocaml
sh0t has quit [Remote host closed the connection]
kakadu has quit [Quit: Konversation terminated!]
rgrinberg has quit [Ping timeout: 252 seconds]
andreypopp has quit [Ping timeout: 252 seconds]
vinoski has quit [Ping timeout: 252 seconds]
jmct has quit [Ping timeout: 255 seconds]
chenglou has quit [Ping timeout: 250 seconds]
cbarrett has quit [Ping timeout: 250 seconds]
ggherdov has quit [Ping timeout: 250 seconds]
IbnFirnas has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 240 seconds]
mrallen1 has quit [Read error: Connection reset by peer]
monad_cat has quit [Ping timeout: 252 seconds]
lopex has quit [Ping timeout: 255 seconds]
ilovezfs_ has quit [Read error: Connection reset by peer]
dch has quit [Ping timeout: 240 seconds]
oh_lawd has quit [Ping timeout: 264 seconds]
jeroud has quit [Ping timeout: 255 seconds]
JSharp has quit [Read error: Connection reset by peer]
caw__ has quit [Read error: Connection reset by peer]
bigs has quit [Read error: Connection reset by peer]
ianconnolly has quit [Ping timeout: 250 seconds]
rjungemann has quit [Read error: Connection reset by peer]
jeffmo has quit [Ping timeout: 250 seconds]
lynn has quit [Read error: Connection reset by peer]
andreas_ has quit [Ping timeout: 272 seconds]
mankyKitty has quit [Ping timeout: 240 seconds]
jyc has quit [Ping timeout: 255 seconds]
l1x has quit [Ping timeout: 252 seconds]
banjiewen has quit [Ping timeout: 250 seconds]
strmpnk has quit [Ping timeout: 250 seconds]
grandy____ has quit [Ping timeout: 255 seconds]
terrorjack has quit [Ping timeout: 250 seconds]
rostero has quit [Ping timeout: 240 seconds]
adi_____ has quit [Ping timeout: 252 seconds]
cojy has quit [Ping timeout: 240 seconds]
stephe has quit [Ping timeout: 250 seconds]
ec has quit [Ping timeout: 272 seconds]
mattg has quit [Ping timeout: 264 seconds]
sspi has quit [Ping timeout: 276 seconds]
Exagone313 has quit [Ping timeout: 272 seconds]
butterthebuddha has quit [Ping timeout: 260 seconds]
butterthebuddha has joined #ocaml
Exagone313 has joined #ocaml
ltt_ has quit [Remote host closed the connection]
chenglou has joined #ocaml
jeroud has joined #ocaml
_andre has quit [Quit: leaving]
mrallen1 has joined #ocaml
kakadu has joined #ocaml
grandy____ has joined #ocaml
lopex has joined #ocaml
JSharp has joined #ocaml
caw__ has joined #ocaml
lynn has joined #ocaml
rostero has joined #ocaml
dch has joined #ocaml
mattg has joined #ocaml
monad_cat has joined #ocaml
andreypopp has joined #ocaml
andreypopp is now known as Guest32984
l1x has joined #ocaml
jmct has joined #ocaml
andreas_ has joined #ocaml
ilovezfs_ has joined #ocaml
ec has joined #ocaml
strmpnk has joined #ocaml
stephe has joined #ocaml
rjungemann has joined #ocaml
cojy has joined #ocaml
jyc has joined #ocaml
Muzer has joined #ocaml
bigs has joined #ocaml
rfv has joined #ocaml
ianconnolly has joined #ocaml
terrorjack has joined #ocaml
vinoski has joined #ocaml
ltt has joined #ocaml
banjiewen has joined #ocaml
ltt has quit [Ping timeout: 272 seconds]
ltt has joined #ocaml
<argent_smith> aantron: does Lwt.join exit when one of the threads fails?
okeuday_bak has quit [Quit: Leaving.]
VermillionAzure has joined #ocaml
VermillionAzure has quit [Ping timeout: 272 seconds]
<argent_smith> for instance here: https://pastebin.com/qBDr5Egi the program doesn't exit
ltt_ has joined #ocaml
ltt has quit [Ping timeout: 252 seconds]
<argent_smith> looks lije join never fails
<argent_smith> *like
<argent_smith> hmm… it works on Linux
okeuday_bak has joined #ocaml
<argent_smith> ant doesn't — on mac
<argent_smith> *and
<argent_smith> can we file an issue somewhere?
IbnFirnas has joined #ocaml
jeffmo has joined #ocaml
mankyKitty has joined #ocaml
adi_____ has joined #ocaml
cbarrett has joined #ocaml
rgrinberg has joined #ocaml
sspi has joined #ocaml
jimmyrcom has joined #ocaml
ggherdov has joined #ocaml
jnavila has joined #ocaml
solrize has quit [Ping timeout: 265 seconds]
mengu has joined #ocaml
solrize has joined #ocaml
ltt_ has quit []
<aantron> yep, Lwt issues are here https://github.com/ocsigen/lwt/issues, make a new one :)
<aantron> if one of the promises given to join is rejected, it should wait for all promises to resolve, then join rejects
<aantron> argent_smith: ^
<aantron> so the pasted programs should run forever, i believe
<aantron> btw the main Lwt module has some reference docs here https://ocsigen.github.io/lwt/manual-draft/Lwt.html#VALjoin
<aantron> but i just fixed a typo in the docs of join and clarified them a bit, https://github.com/ocsigen/lwt/commit/5c199368249481c5f67d838622ef5a7f75e18c10
<argent_smith> ah-ha, very interesting
<argent_smith> but when I compile the same code on Linux, it does fail immediately
<argent_smith> however…
pierpa has joined #ocaml
<argent_smith> I will make a test and file an issue then
<argent_smith> i've never done tests in OCaml yet ;)
<argent_smith> good manual btw, thank you
<argent_smith> aantron: ^
VermillionAzure has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
jlam has joined #ocaml
jnavila has quit [Remote host closed the connection]
VermillionAzure has quit [Ping timeout: 248 seconds]
VermillionAzure has joined #ocaml
<aantron> okay, that sounds good. let me know how it goes/open that issue. in irc, please mention my name, otherwise i might miss a message :)
VermillionAzure has quit [Ping timeout: 240 seconds]
rlr has joined #ocaml
Jesin has quit [Quit: Leaving]
gentauro has quit [Ping timeout: 240 seconds]
gentauro has joined #ocaml
mengu has quit [Remote host closed the connection]
rlr has quit []
kakadu has quit [Remote host closed the connection]
argent_smith has quit [Quit: Leaving.]