ChanServ changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.02.1 announcement at http://ocaml.org/releases/4.02.html | Public channel logs at http://irclog.whitequark.org/ocaml
kdef has quit [Quit: Leaving]
larhat has joined #ocaml
ollehar has quit [Read error: Connection reset by peer]
jleroux has joined #ocaml
larhat has quit [Ping timeout: 258 seconds]
freling has joined #ocaml
ollehar has joined #ocaml
nullcat_ has joined #ocaml
freling has quit [Ping timeout: 272 seconds]
systmkor has quit [Quit: Leaving]
AltGr has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
keen___________5 has joined #ocaml
keen___________4 has quit [Ping timeout: 256 seconds]
wraithm has quit [Quit: leaving]
tautologico has joined #ocaml
yomimono has joined #ocaml
mcclurmc_ has joined #ocaml
mcclurmc has quit [Ping timeout: 244 seconds]
tinhead_ has joined #ocaml
tinhead has quit [Ping timeout: 265 seconds]
tinhead_ is now known as tinhead
dsheets has quit [Ping timeout: 256 seconds]
dsheets has joined #ocaml
tinhead_ has joined #ocaml
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tinhead has quit [Ping timeout: 244 seconds]
tinhead_ is now known as tinhead
jleroux has quit [Ping timeout: 272 seconds]
jleroux has joined #ocaml
nullcat has joined #ocaml
shinnya has quit [Ping timeout: 255 seconds]
tinhead has quit [Ping timeout: 250 seconds]
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
struktured has joined #ocaml
sh0t has quit [Quit: Leaving]
struktured has quit [Ping timeout: 256 seconds]
yomimono has quit [Quit: Leaving]
everyonemines has quit [Quit: everyonemines]
sh0t has joined #ocaml
jeffmo has quit [Quit: jeffmo]
inf-gropeoid is now known as pyon
sepp2k has quit [Quit: Leaving.]
nullcat_ has joined #ocaml
badkins has joined #ocaml
bernardofpc has quit [Ping timeout: 272 seconds]
bernardofpc has joined #ocaml
larhat has joined #ocaml
jleroux has quit [Ping timeout: 240 seconds]
larhat has quit [Ping timeout: 272 seconds]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Algebr has joined #ocaml
ncthom91 has joined #ocaml
ncthom91 has quit [Client Quit]
dtscode is now known as charmander
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Algebr has quit [Ping timeout: 252 seconds]
systmkor has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
idegen has quit [Quit: Leaving.]
nullcat_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sh0t has joined #ocaml
kido1412 has joined #ocaml
BitPuffin|osx has quit [Ping timeout: 265 seconds]
<kido1412> Can we use `==` to compare two algebraic datatypes? As I found in https://github.com/ocaml/ocaml/blob/trunk/stdlib/set.ml#L120
<def`> == is for physical equality
<def`> it applies to all types, and really mean are these two objects the same
<dmbaturin> kido1412: If you want to make sure it's the same object in memory, then yes. If you want to check if it's constructed the same way, then no, use =
<dmbaturin> (Some 0) == (Some 0) ;;
ygrek has quit [Ping timeout: 240 seconds]
<def`> sh0t: what was your problem earlier?
<sh0t> hey def` thanks but i solved
<sh0t> i'll have other problems for sure otmorrow :D
<def`> ok :)
<dmbaturin> sh0t: What kind of a language are you writing an interpreter for?
<sh0t> it's supposed to be a very restricted version of R.
<dmbaturin> R the statistics package?
<sh0t> yeah but...i mean very restricted version of it...
<sh0t> cause i want to prove some properties on some language written on R by symbolic execution...
<sh0t> *some program
nullcat has joined #ocaml
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
darkf has joined #ocaml
<dmbaturin> sh0t: You may want to look into coq or twelf at some point.
<sh0t> yeah dmbaturin i am reading software foundations..
<dmbaturin> There's also CPDT (http://adam.chlipala.net/cpdt/).
gabemc has joined #ocaml
<sh0t> yeah i think that's a bit more advanced
<sh0t> i am gonna read it after foundations
<dmbaturin> I wish someone (e.g. software foundations people) made a coq MOOC with exercises and automated code testing.
<sh0t> yeah that would be nice...these things are hard to learn by your own. At least that's why i'd like one course like that
natrium1970 has joined #ocaml
<natrium1970> I’m having problems with opam. I get [WARNING] A conflict was detected …. First it said that no package matches utop, but utop was installed. But I uninstalled it just to placate opam. Now it is saying the same thing about lwt.
psy_ has quit [Remote host closed the connection]
<natrium1970> After removing lwt, I went ahead and reinstalled utop, which wanted to install lwt, so let it do that. Now I can’t upgrade other things about of complaints about wanting to upgrade or downgrade lwt.2.4.8
<dmbaturin> Odd. Maybe check if it works in a clean opam setup to rule out that your opam setup somehow got into an inconsistent state?
<natrium1970> It looks like lwt 2.4.8 conflicts with a lot of other packages.
<natrium1970> I guess it’s not important since I’m not having any particular problems. I just wanted to update my system.
A1977494 has joined #ocaml
gabemc has quit [Ping timeout: 272 seconds]
mlamari has quit [Read error: Connection reset by peer]
mlamari has joined #ocaml
larhat has joined #ocaml
badkins has quit []
A1977494 has left #ocaml [#ocaml]
natrium1970 has quit [Ping timeout: 255 seconds]
larhat has quit [Ping timeout: 252 seconds]
sh0t has quit [Remote host closed the connection]
swgillespie has joined #ocaml
agarwal1975 has quit [Quit: Connection closed for inactivity]
ilia has joined #ocaml
ygrek has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ilia> I have a problem with ocamlfind/opam
<ilia> ocamlfind query core
<ilia> ocamlfind: Package `core' not found
<ilia> opam install core
<ilia> [NOTE] Package core is already installed (current version is 112.24.01).
<ilia> what needs to be fixed?
MercurialAlchemi has joined #ocaml
<dmbaturin> ilia: What does 'ocamlfind query core_kernel' say?
<ilia> $ ocamlfind query core
<ilia> ocamlfind: Package `core' not found
<ilia> but it is installed
<dmbaturin> Note the "core_kernel".
<dmbaturin> I'm wondering if it can find its subpackages.
moei has quit [Read error: Connection reset by peer]
<ilia> it is the same
<ilia> not found
<dmbaturin> Hhm, odd.
<ilia> ocamlfind: Package `core_kernel' not found
moei has joined #ocaml
<ilia> i reinstalled ocamlfind, it did not help
<dmbaturin> The ocaml compiler and findlib are also from opam?
<ilia> well, i run $ opam reinstall findlib,
<ilia> but ocaml compiler I installed from sources
<dmbaturin> I.e. compiled manually from the tarball?
<ilia> yes, from tarball
<dmbaturin> Do libs other than core work?
<ilia> I see the files under .opam/system/lib
<ilia> let me check
<ilia> it cannot find "re" now
<ilia> it used find it earlier
<ilia> it is quite a popular problem according to google
<ilia> not to be able to "ocamlfind" a package
<dmbaturin> I believe there was a way to specify the library dir path manually, but I don't remember details.
<dmbaturin> You may also try editing the findlib.conf (check in ocamlfind printconf where it is).
<ilia> thanks a lot!!
pyon has quit [Ping timeout: 272 seconds]
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ilia> findlib.conf exists and does not have anything wrong
<ilia> is it possible to re-initialize opam?
SomeDamnBody has joined #ocaml
swgillespie has joined #ocaml
swgillespie has quit [Client Quit]
psy_ has joined #ocaml
Simn has joined #ocaml
<dmbaturin> ilia: You can export the list of installed packages (opam switch export) and reinstall it, then opam switch import to install the packages you had before. Not sure if it can be done more gracefully.
<dmbaturin> Also, why did you have to build the compiler from tarball rather than installing it from opam?
slash^ has joined #ocaml
larhat has joined #ocaml
<ilia> I always install from tarball
<ilia> unless it is really difficult and long task
<dmbaturin> Why? opam can install compilers and keep multiple versions of the same compiler (and switch between them).
badon has quit [Disconnected by services]
badon_ has joined #ocaml
<ilia> I do not know, I just do it this way. I try to install 'core' and it complains now about pa_pipebang
<dmbaturin> s/same//. Not that this feature is available for compilers other than ocaml. :)
badon_ is now known as badon
<ilia> Cannot find findlib package pa_pipebang
<ilia> and then when I try to install pa_pipebang it tells me "no package named pa_pipebang found"
larhat has quit [Ping timeout: 258 seconds]
<ilia> i see, the name is pipebang
<ilia> it is able to find "re" now
<SomeDamnBody> Hey, so I'm using oasis and ocamlbuild
<SomeDamnBody> and i'm getting some strange warnings...
<SomeDamnBody> in particular, it prints them repeatedly...
<SomeDamnBody> W: Cannot get variable ext_obj
<SomeDamnBody> W: Cannot get variable ext_lib
<SomeDamnBody> W: Cannot get variable ext_dll
<SomeDamnBody> W: Cannot get variable ocamlfind
psy_ has quit [Ping timeout: 276 seconds]
ilia has quit [Quit: Leaving]
matason has joined #ocaml
Gama11 has joined #ocaml
<charmander> Hey guys... I'm reading real world ocaml, and it says to use utop, but my system doesn't have a utop. Is just using `ocaml` fine?
<flux> charmander, yes, it's fine. though the standard ocaml doesn't have such fancy-pants features such as command line editing..
<flux> you can install 'rlwrap' or 'ledit' to get those to standard ocaml toplevel (or any line-based program in fact)
<charmander> Ah, thats ok. I don't really need it
<flux> utop has built-in line editor among other things
charmander is now known as dtscode
<dtscode> Jeezus ocaml and friends is weird :D
dtscode is now known as squirtle
kido1412 has quit [Quit: Page closed]
swgillespie has joined #ocaml
thomasga has joined #ocaml
Cyanure has joined #ocaml
nullcat has joined #ocaml
rgrinberg has quit [Ping timeout: 252 seconds]
ollehar has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
swgillespie has joined #ocaml
ollehar has joined #ocaml
thomasga has quit [Quit: Leaving.]
ollehar has quit [Remote host closed the connection]
ollehar has joined #ocaml
AlexRussia has joined #ocaml
freling has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kushal has joined #ocaml
zpe has joined #ocaml
swgillespie has joined #ocaml
squirtle is now known as bulbasaur
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ollehar> dtscode: ?
<bulbasaur> Ok... new question: I followed this page https://ocaml.org/docs/install.html and it worked fine, but now when I type `ocaml` and input "open Core.Std;;" it says "Error: Unbound module Core". Any help? I'm on Ubuntu
<bulbasaur> ollehar: Just a lot different than what I'm used to
<ollehar> #use "topfind" ?
<ollehar> do you have ocamlfind installed?
<bulbasaur> yes
<ollehar> print #use "topfind"
<ollehar> then #list, I think...
<ollehar> then, #require "Core" possibly
kayceesrk has joined #ocaml
ggole has joined #ocaml
<bulbasaur> Nothing happens after I type # use "topfind"
<ollehar> oh, `#use "topfind";;`
<ollehar> forgot ;;
<bulbasaur> oh of course
<ollehar> wait, #use is wrong command ><
<ollehar> gah
<ollehar> or did it work?
<bulbasaur> Oh well. I'll have to fix it in the morning
<bulbasaur> Nah
<bulbasaur> Thanks for the help though
oscar_toro has quit [Ping timeout: 256 seconds]
<ollehar> mm
<ollehar> but it's morning now... :D
<bulbasaur> Yeah but I'm tired :c
<ollehar> ok, sleep tight
<bulbasaur> Thanks
kayceesrk has quit [Quit: kayceesrk]
<ggole> #use "topfind";; should be ok
thomasga has joined #ocaml
thomasga has quit [Client Quit]
kayceesrk has joined #ocaml
octachron has joined #ocaml
Gama11 has quit [Read error: Connection reset by peer]
kayceesrk has quit [Client Quit]
Gama11 has joined #ocaml
oscar_toro has joined #ocaml
kayceesrk has joined #ocaml
c74d has quit [Remote host closed the connection]
Gama11 has quit [Read error: Connection reset by peer]
Gama11 has joined #ocaml
Gama11 has quit [Read error: Connection reset by peer]
Gama11 has joined #ocaml
Gama11 has quit [Read error: Connection reset by peer]
Gama11 has joined #ocaml
larhat has joined #ocaml
c74d has joined #ocaml
ingsoc has joined #ocaml
Haudegen has quit [Ping timeout: 252 seconds]
Gama11 has quit [Read error: Connection reset by peer]
Gama11 has joined #ocaml
elfring has joined #ocaml
tane has joined #ocaml
rgrinberg has joined #ocaml
AlexRussia has quit [Ping timeout: 244 seconds]
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thomasga has joined #ocaml
<haesbaert> I need a hand passing a flag to ocamlbuild to link against an object file (generated from a C source)
rgrinberg has quit [Ping timeout: 256 seconds]
<haesbaert> is there any official documentation ?
thomasga has quit [Client Quit]
<catapulpe> ah, I didn't see your first line
<haesbaert> I'll try that, but there isn't much info on how to do the linking dance
<haesbaert> a project that does that as an example would be great
<haesbaert> but without oasis, since I'm not using it
<catapulpe> :')
<catapulpe> best of luck.
jonludlam has joined #ocaml
MrScout has joined #ocaml
<adrien_znc> -lflags foo.o
<haesbaert> adrien_znc: I was trying that, but no luck:
kushal has quit [Ping timeout: 246 seconds]
Kakadu has joined #ocaml
Haudegen has joined #ocaml
amnn has joined #ocaml
MrScout has quit [Read error: Connection reset by peer]
Hetu has joined #ocaml
MrScout has joined #ocaml
<haesbaert> uhhh what ? the _caml_test symbol should not be U in stubs.o, the function is defined in stubs.c
kayceesrk has quit [Quit: kayceesrk]
dsheets has quit [Ping timeout: 256 seconds]
<adrien_znc> haesbaert: and same for caml_recvif ?
<haesbaert> same, those are both the function I've created, caml_recvif and caml_test
larhat1 has joined #ocaml
larhat has quit [Ping timeout: 255 seconds]
ggole has quit [Read error: Connection reset by peer]
<adrien_znc> hmmmmmmm
<adrien_znc> how was it built?
<haesbaert> hmm I think ocamlbuild just picked up the dependency, let me get the _log file
kushal has joined #ocaml
AltGr has left #ocaml [#ocaml]
<haesbaert> ah sorry, stupid me, it was an hygiene issue from previous attempts
<haesbaert> I've cleaned up _build and now it is not building the stubs.o
<haesbaert> + ocamlfind ocamlopt unix.cmxa -I /Users/haesbaert/.opam/4.02.1/lib/ocaml/ocamlbuild /Users/haesbaert/.opam/4.02.1/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa stubs.o -linkpkg myocamlbuild.ml /Users/haesbaert/.opam/4.02.1/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
<haesbaert> clang: error: no such file or directory: 'stubs.o'
<haesbaert> File "caml_startup", line 1:
<haesbaert> Error: Error during linking
<haesbaert> Command exited with code 2.
<haesbaert> which makes sense imho, how should I tell ocamlbuild to build stubs.o from stubs.c ?
A1977494 has joined #ocaml
A1977494 has left #ocaml [#ocaml]
thomasga has joined #ocaml
<haesbaert> tried a ocamlbuild -ocamlfind stubs.o, it builds but then I get back to my previous issue
<haesbaert> ocamlbuild -use-ocamlfind stubs.o
<haesbaert> ocamlbuild -use-ocamlfind -lflag stubs.o all.otarget $@
dsheets has joined #ocaml
MrScout has quit [Ping timeout: 256 seconds]
ggole has joined #ocaml
<haesbaert> so I made a very simplified example, with all the files included in
<adrien_znc> haesbaert: pipe ocamlbuild's output to cat or add -classic-display
<adrien_znc> do you have several C compilers installed?
<haesbaert> not really
<haesbaert> well I do have gcc and clang
<haesbaert> and cc -> clang
<haesbaert> 1s
<haesbaert> the output with classic-display https://pbot.rmdir.de/_oKdTtVNkbz4m0t015cKhg
elfring has quit [Quit: Konversation terminated!]
<haesbaert> uhhh wait, disregard that, 1s
<haesbaert> stupid me
larhat has joined #ocaml
larhat1 has quit [Ping timeout: 255 seconds]
larhat1 has joined #ocaml
<haesbaert> if it helps: http://haesbaert.org/toto.tar.gz
larhat has quit [Ping timeout: 246 seconds]
larhat has joined #ocaml
larhat1 has quit [Ping timeout: 272 seconds]
thomasga has quit [Quit: Leaving.]
larhat has quit [Ping timeout: 245 seconds]
larhat has joined #ocaml
thomasga has joined #ocaml
keen___________5 has quit [Read error: Connection reset by peer]
larhat1 has joined #ocaml
ygrek has quit [Ping timeout: 265 seconds]
keen___________5 has joined #ocaml
larhat has quit [Ping timeout: 245 seconds]
TheLemonMan has joined #ocaml
AlexRussia has joined #ocaml
larhat1 has quit [Quit: Leaving.]
larhat has joined #ocaml
larhat has quit [Ping timeout: 264 seconds]
larhat has joined #ocaml
<haesbaert> barf, still no luck :/
rgrinberg has joined #ocaml
thomasga has quit [Quit: Leaving.]
rgrinberg has quit [Ping timeout: 245 seconds]
freling has quit [Quit: Leaving.]
Hetu has quit [Quit: Verlassend]
thomasga has joined #ocaml
thomasga has quit [Client Quit]
Hannibal_Smith has joined #ocaml
sdothum has joined #ocaml
sdothum has quit [Client Quit]
sdothum has joined #ocaml
_andre has joined #ocaml
<vbmithr_> hi
tane has quit [Quit: Verlassend]
<companion_cube> o/
<vbmithr_> Did someone already bound async to a C library… with the need to make external fd interact with the async scheduler ?
Submarine has joined #ocaml
Submarine has joined #ocaml
<companion_cube> bernardofpc: let compare (i:int) j = Pervasives.compare i j
obadz- has joined #ocaml
obadz has quit [Ping timeout: 255 seconds]
troydm has quit [Ping timeout: 264 seconds]
milosn_ has joined #ocaml
milosn has quit [Ping timeout: 256 seconds]
milosn_ is now known as milosn
seanmcl has joined #ocaml
freling has joined #ocaml
oscar_toro has quit [Ping timeout: 250 seconds]
<vbmithr_> "bug in async scheduler"
<vbmithr_> Interesting, the async scheduler tells me it has a bug in itself
<companion_cube> "please help me" -- the async scheduler
<vbmithr_> So I don't even know what I'm supposed to do
<catapulpe> show us the code.
<vbmithr_> yep
<vbmithr_> so
<vbmithr_> Code here
<vbmithr_> (binding to nanomsg)
<vbmithr_> the error happens on suite_async.ml
<companion_cube> I'm curious, what does alcotest do better than ounit ?
<vbmithr_> on tre strace trace, one cas see that a fd is closed
<vbmithr_> companion_cube: nothing, just wanted to test
<vbmithr_> companion_cube: but it's not suitable to lwt/async code anyway
<companion_cube> ok
<vbmithr_> so the bug happens because a fd is closed before is it removed from an epoll set
<vbmithr_> so it's almost more a system programming issue than an ocaml one, but anyway
<vbmithr_> I have a question too about testing async programs with an ounit like framework
<vbmithr_> in lwt, one can test functions by using Lwt_main.run f
<vbmithr_> run the lwt scheduler per function
<vbmithr_> but in async, I don't know how to do that, or if it is possible to do it
<vbmithr_> how do you test your monadic code (if any?)
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
Gama11 has quit [Read error: Connection reset by peer]
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
<vbmithr_> companion_cube: about alcotest: it is better at displaying colors and the name is funnier
<vbmithr_> companion_cube: that are the main advantages
<companion_cube> :D
<companion_cube> I don't judge you.
<vbmithr_> I think it only does sequential tests, too, while ounit2 runs things in //
freling has quit [Quit: Leaving.]
<companion_cube> hmm, I tend to use OUnit (the old api)
AlexRussia has quit [Ping timeout: 256 seconds]
rgrinberg has joined #ocaml
<dmbaturin> companion_cube: Is it much different from the ounit2 API?
rgrinberg has quit [Ping timeout: 272 seconds]
<companion_cube> I don't know
jleroux has joined #ocaml
thomasga has joined #ocaml
Gama11 has joined #ocaml
thomasga has quit [Client Quit]
troydm has joined #ocaml
AlexRussia has joined #ocaml
Gama11_ has joined #ocaml
Gama11 has quit [Ping timeout: 250 seconds]
freling has joined #ocaml
sh0t has joined #ocaml
Gama11_ has quit [Ping timeout: 272 seconds]
kushal has quit [Ping timeout: 272 seconds]
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thomasga has joined #ocaml
Gama11 has joined #ocaml
elfring has joined #ocaml
oscar_toro has joined #ocaml
sh0t has quit [Ping timeout: 272 seconds]
thomasga has quit [Quit: Leaving.]
idegen has joined #ocaml
rgrinberg has joined #ocaml
thomasga has joined #ocaml
Algebr has joined #ocaml
<Algebr> Is extlib still getting new features?
<adrien_znc> bonne no
thomasga has quit [Quit: Leaving.]
<Algebr> I wonder why I haven't seen any ocaml projects use cmake
jleroux has quit [Ping timeout: 258 seconds]
<MercurialAlchemi> Algebr: CMake? what for?
<adrien_znc> cmake is crap
sh0t has joined #ocaml
sh0t has quit [Client Quit]
sh0t has joined #ocaml
<MercurialAlchemi> well, it sucks less than autotools, but that's not saying much
thomasga has joined #ocaml
thomasga has quit [Client Quit]
<Algebr> for writing the makefiles. Doesn't cmake abstract away platform issues?
<adrien_znc> no, it sucks much more than autotools
<adrien_znc> it's complete crap
<adrien_znc> it handles less things and doesn't solve anything more
<Algebr> why do you say that? Do you have a particular example?
<adrien_znc> cmake does *NOT* abstract any platform issue
<adrien_znc> you need a large C++ executable to build
<companion_cube> cmake is useful when you have conditional includes everywhere, isn't it?
<adrien_znc> its macro language is awful
<adrien_znc> m4 is awesome compared to it
<adrien_znc> its documentation has been poor so far
<companion_cube> let's rejoice we have ocamlbuild! :>
<adrien_znc> and on windows it follows the MSVC way, which means the way to install libraries is to copy them in each project that needs them
struktured has joined #ocaml
noze has joined #ocaml
<noze> here's an opam question: is it possible to show "important news" when
<noze> upgrading a package? like printing the chunk of the change log that has been
<noze> added since the version you're upgrading from?
octachron has quit [Ping timeout: 264 seconds]
rgrinberg has quit [Ping timeout: 240 seconds]
<haesbaert> ok so I've got my stubs to work :D
<haesbaert> now I just need to remove this warning
<haesbaert> Warning: the tag "linkdep(stubs.o)" is not used in any flag declaration, so it will have no effect; it may be a typo. Otherwise use `mark_tag_used` in your myocamlbuild.ml to disable this warning.
<def`> Algebr: did you had a problem with merlin and subtyping?
<haesbaert> can someone explain me that ? because I'm using it, my _tags has:
<haesbaert> <*.native>: linkdep(stubs.o)
<haesbaert> and myocamlbuild: <*.native>: linkdep(stubs.o)
<haesbaert> arghh:
<haesbaert> pdep ["link"] "linkdep" (fun param -> [param])
<companion_cube> noze: there is a 'message' section in opam files
<companion_cube> post-messages: [ "foo bar" ]
<Algebr> def`: yea, taken from the manual, here's an example. Say you have type 'a vlist = [`Nil | `Cons of 'a * 'a vlist] type 'a wlist = [`Nil | `Cons of 'a * 'a wlist | `Snoc of 'a wlist * 'a]
<Algebr>
<Algebr> then if you have this, let wlist_of_vlist l = (l : 'a wlist :> 'a vlist) merlin doesn't complain that there's an error
<noze> companion_cube: for the purpose of shipping a development package tracking
<noze> git it would be much more convenient to not have to change the opam file
rgrinberg has joined #ocaml
<companion_cube> well, opam has to know the message somehow
<noze> if the previous installed version was available during upgrade it'd be easy
<noze> enough to generate the message
<companion_cube> oh,you'd like a function to run when opam installs a package?
<companion_cube> so that the function prints the diff between the two versions of the changelog ?
struktured has quit [Ping timeout: 265 seconds]
<noze> yep
<companion_cube> sounds hard :p
<noze> not really
<noze> unless upgrade is defined as remove && install
<companion_cube> opam files do not contain code…
<noze> they don't have to
<companion_cube> but you should ask an opam maintainer
slash^ has quit [Read error: Connection reset by peer]
<noze> I could have a make target that reads an environment variable
<noze> $previous_version and then generates the diff
Hannibal_Smith has quit [Quit: Leaving]
Haudegen has quit [Ping timeout: 264 seconds]
<noze> companion_cube: yea i was hoping to find some of them hanging around here.
<noze> (#ocaml-fr is pretty much a strict subset of #ocaml)
<companion_cube> you can also write to some of the opam mailing lists
<def`> Algebr: ok
<def`> weird behavior of error reporting, the error is detected and dropped
<def`> I have a fix, I run some test then push it
<Drup> noze: you can find one, but not on this timezone
ollehar has quit [Quit: ollehar]
<noze> pas mal
wraithm has joined #ocaml
<Algebr> def`: wow, quick turnaround
<def`> pushed
badkins has joined #ocaml
<def`> that's what sh... nevermind
<Algebr> lol
<cml> is it possible to suppress a warning such as "unused variable" in a function?
<flux> probably yes with some attribute, but maybe you could rename your variable to _variable
<ggole> cml: prefix it with _
<ggole> Or just use _, unless that makes the code less clear
<cml> right. what if the variable is the argument of the function itslef?
octachron has joined #ocaml
<flux> that's ok
obadz- has quit [Quit: leaving]
<flux> or is it a named argument?
<cml> and also when the argument is a named arg?
<cml> ah, yes
<flux> maybe let foo ~bar:_ = ..
<cml> awesome, will try
<flux> (or: _bar)
<flux> I don't think it complains about unused arguments, though.. or does it with some switch?
<cml> using _bar worked fine
<cml> and for named: ~bar:_
shinnya has joined #ocaml
gabemc has joined #ocaml
waneck has joined #ocaml
ernst_ is now known as ernst
BitPuffin has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
struk|work has joined #ocaml
OnkV has joined #ocaml
Kakadu has quit [Quit: Page closed]
Simn has quit [Quit: Critical system error - self-destruction initialized]
Simn has joined #ocaml
Hetu has joined #ocaml
rgrinberg1 has joined #ocaml
seanmcl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrinberg has quit [Ping timeout: 265 seconds]
jonludlam has quit [Ping timeout: 265 seconds]
octachron has quit [Quit: Leaving]
freling has quit [Ping timeout: 272 seconds]
theblatt1 has joined #ocaml
freling has joined #ocaml
slash^ has joined #ocaml
kdef has joined #ocaml
theblatte has quit [Ping timeout: 276 seconds]
<Algebr> Are there any docs for extlib? tutorials
<Drup> since most of extlib is integrated in batteries, there is a documentation ... :]
darkf has quit [Quit: Leaving]
catapulpe is now known as fantasmanur
A1977494 has joined #ocaml
badkins has quit [Read error: Connection reset by peer]
A1977494 has left #ocaml [#ocaml]
shinnya has quit [Ping timeout: 256 seconds]
<vbmithr_> Anybody knows how, using Core/Async, to register functions at exit ?
<vbmithr_> at_exit does not execute functions at exit… when I SIGINT the program.
<adrien_znc> man 7 signal
<adrien_znc> :P
afrisch has joined #ocaml
amnn has joined #ocaml
freling has quit [Quit: Leaving.]
BitPuffin has quit [Ping timeout: 245 seconds]
MrScout has joined #ocaml
inf-gropeoid has joined #ocaml
rossberg has quit [Ping timeout: 265 seconds]
freling has joined #ocaml
sh0t has quit [Quit: Leaving]
gpietro_ has joined #ocaml
gpietro_ has quit [Client Quit]
sh0t has joined #ocaml
zpe has quit [Remote host closed the connection]
Algebr has quit [Ping timeout: 258 seconds]
rossberg has joined #ocaml
ygrek has joined #ocaml
inf-gropeoid is now known as pyon
badkins has joined #ocaml
MrScout has quit [Ping timeout: 265 seconds]
shinnya has joined #ocaml
SomeDamnBody has quit [Ping timeout: 264 seconds]
freling has quit [Quit: Leaving.]
s1n4 has quit [Quit: leaving]
wwilly has joined #ocaml
freling has joined #ocaml
jwatzman|work has joined #ocaml
pyon has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
inf-gropeoid has joined #ocaml
SomeDamnBody has joined #ocaml
rgrinberg1 has quit [Ping timeout: 272 seconds]
ncthom91 has joined #ocaml
inf-gropeoid has quit [Client Quit]
Hetu has quit [Ping timeout: 265 seconds]
inf-gropeoid has joined #ocaml
Hetu has joined #ocaml
SomeDamnBody has quit [Ping timeout: 252 seconds]
robink has quit [Ping timeout: 248 seconds]
kdef has quit [Quit: Leaving]
MrScout has joined #ocaml
kdef has joined #ocaml
freling has quit [Quit: Leaving.]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robink_ has joined #ocaml
thomasga has joined #ocaml
Snark has quit [Ping timeout: 246 seconds]
SomeDamnBody has joined #ocaml
sepp2k has joined #ocaml
Hannibal_Smith has joined #ocaml
ygrek has quit [Ping timeout: 264 seconds]
ncthom91 has joined #ocaml
Hannibal_Smith has quit [Client Quit]
psy_ has joined #ocaml
robink_ has quit [Ping timeout: 244 seconds]
robink_ has joined #ocaml
afrisch has quit [Quit: ChatZilla 0.9.91.1 [Firefox 38.0.5/20150525141253]]
noze has quit [Ping timeout: 265 seconds]
gabemc has quit [Ping timeout: 265 seconds]
inf-gropeoid is now known as pyon
sepp2k has quit [Quit: Leaving.]
rgrinberg1 has joined #ocaml
BitPuffin has joined #ocaml
MercurialAlchemi has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
rgrinberg1 has quit [Ping timeout: 256 seconds]
Hetu has quit [Quit: Verlassend]
nullcat has joined #ocaml
sepp2k has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kdef has quit [Quit: Leaving]
ncthom91 has joined #ocaml
rgrinberg1 has joined #ocaml
thomasga has quit [Quit: Leaving.]
tinhead has joined #ocaml
Algebr has joined #ocaml
Snark has joined #ocaml
ggole has quit []
dsheets has quit [Ping timeout: 276 seconds]
Hannibal_Smith has joined #ocaml
robink_ is now known as robink
AlexRussia has quit [Ping timeout: 246 seconds]
Hannibal_Smith has quit [Client Quit]
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tmtwd has joined #ocaml
ericbmerritt has quit [Remote host closed the connection]
tautologico has quit [Remote host closed the connection]
NhanH has quit [Remote host closed the connection]
n1ftyn8 has quit [Remote host closed the connection]
lambdahands has quit [Remote host closed the connection]
cojy_ has quit [Remote host closed the connection]
AlexRussia has joined #ocaml
rfv has quit [Remote host closed the connection]
msch has quit [Remote host closed the connection]
Sorella has quit [Remote host closed the connection]
Hannibal_Smith has joined #ocaml
<bulbasaur> Hey guys... I asked in here last night but I wasn't able to finish with whoever was helping me. Would someone mind explaining to me why after following this page: https://ocaml.org/docs/install.html I still get an "Error: Unbound Module Core" after typing open Core.Std;;?
cthuluh has quit [Ping timeout: 272 seconds]
tinhead has quit [Quit: tinhead]
cthuluh has joined #ocaml
cml has quit [Ping timeout: 246 seconds]
<jrslepak> looks like the page doesn't really explain how to link in extra libraries... what command are you using to compile your code?
ygrek has joined #ocaml
<bulbasaur> I'm just running `ocaml` right now, so the REPL
<vbmithr_> install utop with opam :)
<bulbasaur> ok
<vbmithr_> and then #require "core";; open Core.Std;;
<bulbasaur> Well I tried #require "core";; and it said No core module found or something like that
ygrek has quit [Ping timeout: 246 seconds]
<bulbasaur> Actually, now that I think about it I might tried "Core";; so I'll try "core" after utop installs
<vbmithr_> If you use the ocaml repl, but you should use utop anyway
<vbmithr_> you have to start with #use "topfind";;
<bulbasaur> ok
<vbmithr_> but spare you the pain of the ocaml toplevel and go for utop directly
<bulbasaur> Oh damn forgot I was on my VPS. Gotta download it on my local machine now :3
bulbasaur is now known as dtscode
slash^ has quit [Read error: Connection reset by peer]
ygrek has joined #ocaml
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ncthom91 has joined #ocaml
govg has joined #ocaml
tane has joined #ocaml
<Algebr> If Stream is deprecated, why doesn't it say so and what should be used instead
SomeDamnBody has quit [Ping timeout: 264 seconds]
<smondet> Algebr: where is Stream deprecated?
<companion_cube> it's not, but maybe it should :)
Kakadu has joined #ocaml
matason has quit []
tinhead has joined #ocaml
nullcat has joined #ocaml
rgrinberg1 has quit [Ping timeout: 256 seconds]
rgrinberg1 has joined #ocaml
matason has joined #ocaml
hongbo has quit [Remote host closed the connection]
yminsky has quit [Remote host closed the connection]
lopex has quit [Remote host closed the connection]
emmanueloga has quit [Remote host closed the connection]
<Drup> Algebr: what made you think that ?
systmkor has quit [Quit: Leaving]
mcclurmc has joined #ocaml
Algebr has quit [Ping timeout: 265 seconds]
hay207 has joined #ocaml
mcclurmc_ has quit [Ping timeout: 256 seconds]
<dtscode> Ok vbmithr_ I installed utop and it still gives me that Unbound module error
systmkor has joined #ocaml
ygrek has quit [Ping timeout: 246 seconds]
ncthom91 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SomeDamnBody has joined #ocaml
dsheets has joined #ocaml
<dtscode> nmd fixed it
_andre has quit [Quit: leaving]
hay207 has quit [Quit: Leaving]
BitPuffin has quit [Ping timeout: 276 seconds]
lopex has joined #ocaml
NhanH has joined #ocaml
cojy_ has joined #ocaml
SomeDamnBody has quit [Ping timeout: 244 seconds]
n1ftyn8 has joined #ocaml
emmanueloga has joined #ocaml
tautologico has joined #ocaml
Algebr has joined #ocaml
msch has joined #ocaml
elfring has quit [Quit: Konversation terminated!]
rfv has joined #ocaml
wwilly has left #ocaml ["Leaving"]
struk|work has quit [Ping timeout: 246 seconds]
Sorella has joined #ocaml
<Drup> nullcat: what are the limitations of the twitter APIs exactly ?
lambdahands has joined #ocaml
badkins has quit []
ericbmerritt has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 264 seconds]
tmtwd has quit [Ping timeout: 256 seconds]
nullcat has quit [Read error: Connection reset by peer]
tinhead has quit [Quit: tinhead]
nullcat has joined #ocaml
tane has quit [Quit: Verlassend]
noze has joined #ocaml
<nullcat> Drup: just saw your msg
<nullcat> by limitation, do you mean rate limit?
<nullcat> Drup: here is the rate limit chart: https://dev.twitter.com/rest/public/rate-limits
<Drup> 1 list of followers by minute ? that's ridiculous
<nullcat> 1?
<nullcat> oh i see
<nullcat> yeah that is not good...
<Drup> 15 by 15 minutes, so yeah 1/minutes
<nullcat> but
jonludlam has joined #ocaml
<nullcat> here is the leaked consumer key and secret pair, you can use it to get access token
<nullcat> official key has much lower rate limit
<Drup> how much ?
<nullcat> 180 per 15 mins
<nullcat> if i remember correctly
<Drup> that's still not even worth bothering
<nullcat> you have to store consumer key in app, so someone can hack and get the key
<Drup> (from a graph analysis point of view)
<nullcat> yeah...
<nullcat> i don't know if you can apply for better key if you are doing research
<nullcat> yeah i agree
<nullcat> the thing is that
<Drup> does the facebook API has a similar rate limit ?
<nullcat> i maintain 10 unofficial apis, and 5 official apis
<nullcat> so it's fast...
<nullcat> i don't use facebook, so i cannot say
Simn has quit [Quit: Leaving]
OnkV has quit [Ping timeout: 264 seconds]
tmtwd has joined #ocaml
yminsky has joined #ocaml
lobo has joined #ocaml
Gama11 has quit [Remote host closed the connection]
<nullcat> consider getting follower, you can get up to 5000 follower with one API call. on smartphone app, you can get 900000 followers in 15 minutes. but no one will be able to do this kind of thing... so 180 is far from enough for user. 15/15 mins is indeed slow. some third-party app does complain the problem,(though twitter will raise the bar if your app gets popular). However, from researcher's point of view, maybe 1800/15 mins is not enough lol
<nullcat> oh, for facebook, it's 100M API calls per day
<nullcat> ridiculous....
ingsoc has quit [Ping timeout: 264 seconds]
Algebr has quit [Remote host closed the connection]
<Drup> that's a bit more usable :3
hongbo has joined #ocaml
<nullcat> "If you exceed 5M MAU, 100M API calls per day, or 50M impressions per day, you may be subject to additional terms." https://developers.facebook.com/policy/
<nullcat> yeah facebook does not say about rate limit very clearly. there is no good chart like twitter
jonludlam has quit [Ping timeout: 246 seconds]
matason has quit []
nullcat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tinhead has joined #ocaml
Haudegen has joined #ocaml
LnL has quit [Ping timeout: 264 seconds]
ingsoc has joined #ocaml
Hannibal_Smith has quit [Quit: Leaving]
shinnya has quit [Ping timeout: 264 seconds]
MrScout has quit [Read error: Connection reset by peer]
milosn has quit [Ping timeout: 240 seconds]
MrScout has joined #ocaml
jonludlam has joined #ocaml
badon has quit [Quit: Leaving]
ygrek has joined #ocaml
Muzer has quit [Excess Flood]
Muzer has joined #ocaml
amnn has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cyanure has quit [Remote host closed the connection]
swgillespie has joined #ocaml
jonludlam has quit [Ping timeout: 256 seconds]
walter|r has joined #ocaml
lobo has quit [Quit: leaving]
madroach has quit [Ping timeout: 264 seconds]
sh0t has quit [Remote host closed the connection]
madroach has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
Kakadu has quit [Remote host closed the connection]
badon has joined #ocaml
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gabemc has joined #ocaml