<fn2017>
It is a trivial example where I am tryng to read from a reader. The csv_reader function returns a deferred which wraps the async unix reader pipe.
maker has quit [Ping timeout: 248 seconds]
<fn2017>
However, I always get an empty result when I run the main function.
breitenj- has quit [Ping timeout: 255 seconds]
<fn2017>
I am trying to read from a csv file.
maker has joined #ocaml
silver has quit [Read error: Connection reset by peer]
breitenj has joined #ocaml
jimmyrcom_ has quit [Ping timeout: 268 seconds]
enterprisey has joined #ocaml
fn2017 has quit [Quit: Page closed]
zolk3ri has joined #ocaml
jimmyrcom has joined #ocaml
jimmyrcom has quit [Max SendQ exceeded]
jimmyrcom has joined #ocaml
zolk3ri has quit [Read error: Connection reset by peer]
zolk3ri has joined #ocaml
zolk3ri has quit [Quit: leaving]
axesd9 has joined #ocaml
jao has quit [Ping timeout: 240 seconds]
pierpa has quit [Quit: Page closed]
ygrek has quit [Ping timeout: 248 seconds]
cbot has joined #ocaml
breitenj has quit [Ping timeout: 240 seconds]
breitenj has joined #ocaml
breitenj has quit [Ping timeout: 255 seconds]
breitenj has joined #ocaml
BitPuffin|osx has joined #ocaml
breitenj has quit [Ping timeout: 272 seconds]
raphaelss has joined #ocaml
breitenj has joined #ocaml
iCharlie has joined #ocaml
jimmyrcom has quit [Ping timeout: 248 seconds]
axesd9 has quit [Ping timeout: 248 seconds]
axesd9 has joined #ocaml
mbuf has joined #ocaml
axesd9 has quit [Ping timeout: 264 seconds]
Denommus has joined #ocaml
axesd9 has joined #ocaml
kamog has joined #ocaml
axesd9 has quit [Ping timeout: 240 seconds]
ziyourenxiang has quit [Ping timeout: 240 seconds]
axesd9 has joined #ocaml
axesd9 has quit [Ping timeout: 260 seconds]
axesd9 has joined #ocaml
axesd9 has quit [Ping timeout: 268 seconds]
argent_smith has joined #ocaml
axesd9 has joined #ocaml
<rgrinberg>
when I do a && b, is there an evaluation order defined?
<_xvilka_>
hi! How to write a function e.g. "find_subgraph graph1 graph2" where the exact types of the nodes is not specified? E.g. I want to use some "G.nodes g1" where G can be different module. Is it possible somehow?
ziyourenxiang has joined #ocaml
TarVanimelde has joined #ocaml
axesd9 has quit [Ping timeout: 256 seconds]
spew has joined #ocaml
axesd9 has joined #ocaml
axesd9 has quit [Ping timeout: 248 seconds]
MercurialAlchemi has joined #ocaml
Denommus` has joined #ocaml
Denommus has quit [Ping timeout: 240 seconds]
axesd9 has joined #ocaml
spew has quit [Read error: Connection reset by peer]
freusque has joined #ocaml
<Fardale>
_xvilka_: you want that fins_subgraph use the function G.nodes to get the node avec g1 ?
<Fardale>
What is the type of G.nodes ?
<_xvilka_>
Fardale: it's list or a sequence
<_xvilka_>
but there are multiple modules which provide the same interface, so I want to write function only once for all of them
Denommus` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
enterprisey has quit [Remote host closed the connection]
kerrhau has quit [Ping timeout: 260 seconds]
TarVanimelde has quit [Quit: TarVanimelde]
<_xvilka_>
and one more question. E.g. if I use Core.Sequence type instead of a list, how I can perform pattern matching with empty sequence/head/tail then? Even "| (Seq.empty) -> Seq.empty" doesn't work
axesd9 has quit [Ping timeout: 264 seconds]
<_xvilka_>
I think it's impossible to use function reqults as a patterns, but is there any better way than using 'if's?
axesd9 has joined #ocaml
<Fardale>
I don't know for Core
<Fardale>
For your module maybe you have to look at functor
<_xvilka_>
Fardale: yeah, I did the functor, didn't checked how it worked in runtime, but compiles OK
Haudegen has joined #ocaml
maattdd has quit [Ping timeout: 264 seconds]
maattdd has joined #ocaml
malc_ has joined #ocaml
moei has quit [Read error: Connection reset by peer]
ziyourenxiang has quit [Ping timeout: 248 seconds]
<reynir>
ok interesting, [(1 = 2) && (1 / 0 = 1)] obviously works, but also [(&&) (1 = 2) (1 / 0 = 1)] works. However, [let a = (&&) in a (1 = 2) (1 / 0 = 1)] doesn't work (which I kinda expected)
<reynir>
heh and [((&&) (1 = 2)) (1 / 0 = 1)] doesn't work either
andreas_ has joined #ocaml
malina has joined #ocaml
axesd9 has quit [Ping timeout: 265 seconds]
KeyJoo has joined #ocaml
axesd9 has joined #ocaml
Soni has quit [Ping timeout: 248 seconds]
axesd9 has quit [Ping timeout: 268 seconds]
mfp has joined #ocaml
Soni has joined #ocaml
axesd9 has joined #ocaml
Soni has quit [Ping timeout: 272 seconds]
axesd9 has quit [Ping timeout: 255 seconds]
kakadu has joined #ocaml
axesd9 has joined #ocaml
axesd9 has quit [Ping timeout: 248 seconds]
Serpent7776 has joined #ocaml
axesd9 has joined #ocaml
cbot has quit [Quit: Leaving]
jao has joined #ocaml
wagle has quit [Read error: Connection reset by peer]
wagle has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
sh0t has joined #ocaml
Soni has joined #ocaml
axesd9 has quit [Ping timeout: 240 seconds]
jao has quit [Ping timeout: 260 seconds]
zolk3ri has joined #ocaml
Haudegen has quit [Remote host closed the connection]
axesd9 has joined #ocaml
KeyJoo has quit [Ping timeout: 264 seconds]
axesd9 has quit [Ping timeout: 256 seconds]
silver has joined #ocaml
shinnya has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
barcabuona has quit [Ping timeout: 264 seconds]
raphaelss has quit [Ping timeout: 265 seconds]
barcabuona has joined #ocaml
barcabuona has quit [Ping timeout: 256 seconds]
<octachron>
reynir, for more fun ` let (&&) = (&&) in false && raise Exit ` does not work either
<reynir>
hah
barcabuona has joined #ocaml
mbuf has quit [Quit: Leaving]
_y has joined #ocaml
<_y>
hi
<_y>
i tried installing ocaml+opam on Windows 10
<_y>
i followed the instructions for manual installation there https://fdopen.github.io/opam-repository-mingw/installation/ (since i already had cygwin installed), except that instead of using the archive provided on that page, i installed directly the cygwin package “opam” that i discovered with the cygwin installer
<_y>
then i ran the “opam init mingw” command provided, and everything happened to work fine
<_y>
(i picked the 64-bit version of everything)
<_y>
so i am the happy owner of ocaml 4.02.3 on Windows
<_y>
but even with the environment set up properly with [eval $(opam config env)], the ocaml toplevel fails on startup
<_y>
[ocaml -v] prints “unknown option '-v'”, whereas [ocamlc -v] prints the correct result: “The OCaml compiler, version 4.02.3 - Standard library directory: /home/Y/.opam/4.02.3+mingw64c/lib/ocaml”
<octachron>
_y, it might be a problem with path and ocaml picking up the wrong stdlib
<_y>
calling ocamlc on a dummy .ml file gives “Error: Unbound module Pervasives”
<octachron>
then this is clearly a path problem
<_y>
giving the option [-I "$OCAMLLIB"] does not help, although $OCAMLLIB is set correctly (to the value printed by [ocamlc -v] above)
<_y>
*but* [cd "$OCAMLLIB" ; ocaml] does work
<_y>
so i have no idea what the exact problem is
<_y>
my only guess would be the uppercase letter in my username, but well…
<_y>
octachron, indeed
<_y>
octachron, by the way i found IRC logs from here dating back to 2016, with someone describing a very similar problem, except [ocamlrun ocaml] did work for him
ziyourenxiang has joined #ocaml
Jesin has quit [Quit: Leaving]
raduom has joined #ocaml
spew has joined #ocaml
enterprisey has joined #ocaml
spew has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 272 seconds]
raphaelss has joined #ocaml
malc_ has joined #ocaml
demonimin has quit [Ping timeout: 276 seconds]
freusque has quit [Quit: WeeChat 1.9.1]
MercurialAlchemi has quit [Ping timeout: 264 seconds]
sz0 has joined #ocaml
Jesin has joined #ocaml
FreeBirdLjj has joined #ocaml
raduom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jao has joined #ocaml
demonimin has joined #ocaml
MercurialAlchemi has joined #ocaml
iCharlie has quit [Ping timeout: 255 seconds]
MercurialAlchemi has quit [Ping timeout: 272 seconds]
wagle has quit [Remote host closed the connection]
wagle has joined #ocaml
MercurialAlchemi has joined #ocaml
spew has joined #ocaml
raduom has joined #ocaml
ziyourenxiang has quit [Ping timeout: 264 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
sh0t has quit [Ping timeout: 272 seconds]
FreeBirdLjj has joined #ocaml
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ocaml
KeyJoo has quit [Remote host closed the connection]
FreeBird_ has quit [Ping timeout: 264 seconds]
FreeBirdLjj has joined #ocaml
Mercuria1Alchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
Serpent7776 has quit [Quit: Leaving]
MercurialAlchemi has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 256 seconds]
MercurialAlchemi has quit [Ping timeout: 248 seconds]
jnavila has joined #ocaml
MercurialAlchemi has joined #ocaml
malina has joined #ocaml
andreas_ has quit [Quit: Connection closed for inactivity]
_xvilka_ has quit [Ping timeout: 248 seconds]
Anarchos has joined #ocaml
_xvilka_ has joined #ocaml
axesd9 has joined #ocaml
andreas_ has joined #ocaml
cbot has joined #ocaml
axesd9 has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
kerrhau has joined #ocaml
kerrhau has quit [Changing host]
kerrhau has joined #ocaml
malina has quit [Ping timeout: 265 seconds]
kakadu_ has joined #ocaml
kassens has joined #ocaml
malina has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 248 seconds]
Anarchos has quit [Quit: Vision[0.10.2]: i've been blurred!]
jimmyrcom has joined #ocaml
cobreadmonster has joined #ocaml
cross has quit [Ping timeout: 256 seconds]
nullifidian_ has quit [Read error: Connection reset by peer]
nullifidian_ has joined #ocaml
solrize has quit [Ping timeout: 265 seconds]
ygrek has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 272 seconds]
FreeBirdLjj has quit [Ping timeout: 256 seconds]
pyx has joined #ocaml
FreeBirdLjj has joined #ocaml
pyx has quit [Client Quit]
solrize has joined #ocaml
solrize has quit [Changing host]
solrize has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
pierpa has joined #ocaml
FreeBirdLjj has joined #ocaml
malina has quit [Quit: Throwing apples of Montserrat]
jao has quit [Ping timeout: 250 seconds]
jimmyrcom has quit [Ping timeout: 272 seconds]
FreeBirdLjj has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #ocaml
Denommus has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
arecaceae has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
barcabuona has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
kamog has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
_andre has quit [Quit: leaving]
FreeBirdLjj has joined #ocaml
jnavila has quit [Remote host closed the connection]
Jesin has quit [Quit: Leaving]
Anarchos has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
argent_smith has quit [Quit: Leaving.]
FreeBirdLjj has joined #ocaml
enterprisey has quit [Remote host closed the connection]
navaja has joined #ocaml
kakadu_ has quit [Remote host closed the connection]
Denommus` has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
Denommus has quit [Ping timeout: 248 seconds]
andreas_ has quit [Quit: Connection closed for inactivity]