companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.05.0 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.05/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
peterpp has joined #ocaml
peterpp has quit [Ping timeout: 260 seconds]
sam____ has quit [Ping timeout: 248 seconds]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 248 seconds]
cbot has quit [Ping timeout: 240 seconds]
mfp__ has quit [Ping timeout: 240 seconds]
jimmyrcom_ has joined #ocaml
infinity0 has quit [Remote host closed the connection]
sam___ has joined #ocaml
infinity0 has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
kalio has quit [Quit: WeeChat 1.9]
KeyJoo has quit [Ping timeout: 240 seconds]
cbot has joined #ocaml
sh0t has quit [Remote host closed the connection]
khodzha has joined #ocaml
khodzha has quit [Client Quit]
sam___ has joined #ocaml
KeyJoo has joined #ocaml
sam___ has quit [Ping timeout: 248 seconds]
al-damiri has joined #ocaml
mengu has quit [Remote host closed the connection]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
teknozulu has joined #ocaml
<teknozulu> Hey. I'm about to build a program that involves a graph computation of a kind / computing "nodes" that depend on the results of other nodes. Defining the nodes will involve declaring which nodes they depend on. All of this information will be available at compile time, so I was wondering if there is a way to leverage the type system so that the compiler can produce an error if I declare a node that requires the
<teknozulu> I think I can narrow the context down to this: I'm looking for a type of a Map implementation which is able to tell at compile time whether a key exists, given that all insertions into the Map are done at the top level / with certainty
SomeDamnBody has joined #ocaml
<SomeDamnBody> I can't install camlp4 because topdirs.cmi doesn't exist. Also, I'm trying to pin a particular package to master, but that package installs a bunch of submodules beneath it. How do I pin a package to master
<SomeDamnBody> Actually, I think I know how to pin to master, which I may have gotten wrong.
MercurialAlchemi has joined #ocaml
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
teknozulu has quit [Ping timeout: 276 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
<keep_learning> Hi Everyone
<keep_learning> What is the latest version of Opam
<keep_learning> u5935541@newport:~/Mukesh/Code/Coq/formalized-voting/paper-code-with-ballot$ opam --version
<keep_learning> 1.2.2
<keep_learning> Mine is 1.2.2 and when I using opam switch --all
<keep_learning> Mine is 1.2.2
<keep_learning> I can see the latest OCaml version -- -- 4.04.0+trunk latest trunk snapshot
<keep_learning> I am wondering why it is not showing ocaml-4.05 ?
<Armael> did you run `opam update` ?
<keep_learning> Armael: opam update will update installed package or itself ?
<Armael> opam update will fetch the latest list of packages and compilers
<keep_learning> Armael: Thank you.
<Armael> it's not the opam program itself that you want to update in this case, just the list of which packages/compilers are available
al-damiri has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has joined #ocaml
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
jlam_ has joined #ocaml
jlam__ has quit [Ping timeout: 240 seconds]
cbot has quit [Quit: Leaving]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
mbuf has joined #ocaml
ziyourenxiang has joined #ocaml
rbocquet has joined #ocaml
Soni has quit [Excess Flood]
Soni has joined #ocaml
g0d355__ has joined #ocaml
jlam has quit [Read error: Connection reset by peer]
jlam__ has joined #ocaml
mbuf has quit [Ping timeout: 240 seconds]
cross has quit [Quit: Lost terminal]
<orbifx[m]> peterpp: did you figure it out?
andreas__ has joined #ocaml
mbuf has joined #ocaml
jlam__ has quit [Ping timeout: 255 seconds]
Ragora is now known as Ragora|Away
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
ziyourenxiang has quit [Ping timeout: 255 seconds]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 260 seconds]
reanguiano has quit [Ping timeout: 240 seconds]
jimmyrcom_ has quit [Ping timeout: 248 seconds]
mfp__ has joined #ocaml
TheLemonMan has joined #ocaml
ziyourenxiang has joined #ocaml
freusque has joined #ocaml
malina has quit [Remote host closed the connection]
sam___ has joined #ocaml
sam___ has quit [Ping timeout: 276 seconds]
ziyourenxiang has quit [Read error: Connection reset by peer]
freusque has quit [Ping timeout: 255 seconds]
sepp2k has joined #ocaml
kakadu has joined #ocaml
sam____ has joined #ocaml
al-damiri has joined #ocaml
sam____ has quit [Ping timeout: 248 seconds]
johnelse has quit [Ping timeout: 276 seconds]
johnelse has joined #ocaml
dhil has joined #ocaml
copy_ has joined #ocaml
_whitelogger has joined #ocaml
johnelse_ has joined #ocaml
johnelse has quit [Ping timeout: 240 seconds]
ziyourenxiang has joined #ocaml
<Leonidas> keep_learning: to answer your question, I believe it is 2.0.0~beta3, at least that's what I'm running
cymen has quit [Ping timeout: 246 seconds]
sam___ has joined #ocaml
cymen has joined #ocaml
freusque has joined #ocaml
_andre has joined #ocaml
BitPuffin|osx has joined #ocaml
<sam___> all right! so cool, shrinking of my sql query trees seems to work!
<sam___> companion_cube: I still had trouble making the fail_report function work as expected after pinning qcheck to dev_repo.
govg has quit [Ping timeout: 258 seconds]
govg has joined #ocaml
<SomeDamnBody> I can't install camlp4 on a machine with 12 gigs of memory because it keeps running out.
<SomeDamnBody> Oh ok.
<SomeDamnBody> Thanks
mbuf has quit [Quit: Leaving]
sh0t has joined #ocaml
malc_ has joined #ocaml
sz0 has joined #ocaml
Saroupille has joined #ocaml
johnelse_ has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
<Saroupille> Hi everyone, I have a question: I do not fully understand the difference between a mlpack file and a mllib file with Ocamlbuild. In particular, in which case it is better to use a mlpack than a library? Thanks !
tautologico has joined #ocaml
<sam___> companion_cube: any idea what could be wrong?
MercurialAlchemi has quit [Ping timeout: 260 seconds]
hnrgrgr_ is now known as hnrgrgr
tg has quit [Ping timeout: 255 seconds]
hrk_ has quit [Ping timeout: 240 seconds]
sam___ has quit [Ping timeout: 260 seconds]
jlam_ has quit [Ping timeout: 240 seconds]
jlam has joined #ocaml
jlam_ has joined #ocaml
mengu has joined #ocaml
jlam has quit [Ping timeout: 276 seconds]
mengu has quit [Ping timeout: 260 seconds]
tg has joined #ocaml
mks11 has joined #ocaml
<mks11> Hi guys, all I want to do is "Time.now" on command prompt. But I get "Error: Unbound module Time "
dhil has quit [Ping timeout: 276 seconds]
sam___ has joined #ocaml
MercurialAlchemi has joined #ocaml
<sam___> I appended to the issue here: https://github.com/c-cube/qcheck/issues/46
<sam___> would be really great to have this finally piece of the qcheck puzzle working
<mks11> *beginner question* how do I use Time module in ocaml REPL
freusque has quit [Ping timeout: 240 seconds]
sgnb has quit [Remote host closed the connection]
<malc_> mks11: `# #load "time.cma"' or whatever the library name is
<mks11> @malc_ "Cannot find file time.cma. " :(
<malc_> mks11: oh.. then you would need to instruct the toplevel where to find the libraries -I ...
<mks11> I see..
<mks11> @malc_ thank you.. I'd have to figure that out as well
<malc_> mks11: if you just need time in seconds since epoch:
<malc_> OCaml version 4.05.0
<malc_> # #load "unix.cma";;
<malc_>
<malc_> # Unix.gettimeofday ();;
<malc_> - : float = 1502377899.50472498
<malc_>
jlam has joined #ocaml
<mks11> @malc_ actually I have a string date from a CSV file that I want to be read as a date so I could do some comparisons to other dates
<mks11> @malc_ also thank you, I'll look at the UNIX module.
cross has joined #ocaml
<Armael> mks11: you can do #require "core";; to load core in the toplevel
<mks11> @Armael "No such package: core "
FreeBirdLjj has joined #ocaml
<Armael> is core installed? unfortunately I cannot test on my machine right now
<mks11> @Armael Thanks for looking into it. It should have been, I followed the standard procedure to install OCAML
<mks11> @Armael is there a way to check it externally
<Armael> you can do `opam info core` and look at the "installed-version:" line
<mks11> @Armael "installed-version" is empty
<Armael> then core is not installed
<Armael> try `opam install core`
<mks11> @Armael Thank you sooo much!!
demonimin has quit [Remote host closed the connection]
teknozulu has joined #ocaml
<mks11> @Armael now I am getting this weird error "Error: Reference to undefined global `Condition' "
<def`> you should use utop rather than ocaml toplevel
<def`> (opam install utop)
<mks11> @Armael please don't worry about it though i'll lookup online
<mks11> @def` oh ok thank you
<def`> mks11: before that, enabling multi thread support can fix the condition problem:
<def`> #thread;;
<def`> (before #require "core";;)
sgnb has joined #ocaml
<def`> even though that should fix the issue, utop is more friendly (and come with these steps preconfigured)
<mks11> @def` thank you it did fix it
<mks11> @def` got it!
<mks11> @def` thank you so much!
dhil has joined #ocaml
demonimin has joined #ocaml
zv has quit [Ping timeout: 255 seconds]
mks11 has quit [Quit: Page closed]
sam___ has quit [Ping timeout: 260 seconds]
MercurialAlchemi has quit [Ping timeout: 248 seconds]
slash^ has joined #ocaml
sam___ has joined #ocaml
iitalics has joined #ocaml
MercurialAlchemi has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
iitalics has quit [Quit: /thread]
sam___ has quit [Ping timeout: 260 seconds]
copy_ has quit [Quit: Connection closed for inactivity]
MercurialAlchemi has joined #ocaml
tg has quit [Quit: Leaving]
malina has joined #ocaml
sz0 has quit [Quit: Connection closed for inactivity]
Saroupille has quit [Quit: Page closed]
dhil has quit [Ping timeout: 255 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
SomeDamnBody has quit [Remote host closed the connection]
nahra has quit [Remote host closed the connection]
jnavila has joined #ocaml
sam___ has joined #ocaml
zv has joined #ocaml
ygrek has joined #ocaml
sam___ has quit [Ping timeout: 240 seconds]
jnavila has quit [Read error: No route to host]
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 258 seconds]
seangrove has joined #ocaml
dhil has joined #ocaml
teknozulu has quit [Ping timeout: 255 seconds]
BitPuffin|osx has quit [Remote host closed the connection]
cool88 has joined #ocaml
<cool88> *beginner here* How do I convert this string "2017-08-08 17:52:27" into a date object?
<cool88> or this one "2017-08-08T17:52:36.813Z"
dhil has quit [Ping timeout: 248 seconds]
rostero has joined #ocaml
sepp2k has quit [Quit: Leaving.]
sam___ has joined #ocaml
<cool88> hi, need help.. I want to convert "2017-08-08 17:52:27" or "2017-08-08T17:52:36.813Z" into a date object. How can I go about doing it?
sam___ has quit [Ping timeout: 255 seconds]
<lyxia> what's a date object
<cool88> @lyxia something that I can do some operations on
<cool88> @lyxia like use any of these methods https://ocaml.janestreet.com/ocaml-core/109.31.00/doc/core/Time.html
FreeBirdLjj has quit [Remote host closed the connection]
<cool88> @lyxia thanks for looking into it.
<lyxia> have you tried Time.of_string
<cool88> @lyxia thanks it works
<cool88> @lyxia but in the docs it said to_string_deprecated, so I didn't try it
<lyxia> but it's not of_string
<cool88> @lyxia OHHH got it
sepp2k has joined #ocaml
<cool88> @lyxia thank you! I need to get my eye sight checked :/
<lyxia> heh
S11001001 has left #ocaml [#ocaml]
nahra has joined #ocaml
sh0t has quit [Ping timeout: 248 seconds]
sh0t has joined #ocaml
kakadu has quit [Quit: Konversation terminated!]
pzp has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
vicfred has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
vicfred has quit [Quit: Leaving]
cool88 has quit [Quit: Page closed]
mbrock has left #ocaml [#ocaml]
aciniglio has joined #ocaml
sam____ has joined #ocaml
zv has quit [Ping timeout: 255 seconds]
sam____ has quit [Ping timeout: 260 seconds]
kakadu has joined #ocaml
MercurialAlchemi has joined #ocaml
sepp2k has quit [Quit: Leaving.]
jimmyrcom_ has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
sz0 has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 248 seconds]
mengu has joined #ocaml
jlam__ has joined #ocaml
sam____ has joined #ocaml
jlam_ has quit [Ping timeout: 260 seconds]
mengu has quit [Ping timeout: 260 seconds]
sam____ has quit [Ping timeout: 260 seconds]
jlam_ has joined #ocaml
zv has joined #ocaml
jlam__ has quit [Ping timeout: 240 seconds]
raphaelss has joined #ocaml
teknozulu has joined #ocaml
peterpp has joined #ocaml
_andre has quit [Quit: leaving]
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
dejanr has joined #ocaml
dejanr has quit [Client Quit]
tg has joined #ocaml
dejanr has joined #ocaml
tg has quit [Client Quit]
tokomak has joined #ocaml
tg has joined #ocaml
seangrove has quit [Ping timeout: 255 seconds]
mccajm has joined #ocaml
mccajm has quit [Changing host]
mccajm has joined #ocaml
jimmyrcom_ has quit [Remote host closed the connection]
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0 is now known as Guest48809
infinity0 has joined #ocaml
Guest48809 has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
sam____ has joined #ocaml
sam____ has quit [Ping timeout: 260 seconds]
mengu has joined #ocaml
mccajm has quit [Quit: Page closed]
aciniglio has quit [Ping timeout: 240 seconds]
seangrove has joined #ocaml
rostero has quit [Quit: Connection closed for inactivity]
seangrove has quit [Remote host closed the connection]
pzp has quit [Quit: Connection closed for inactivity]
zv has quit [Ping timeout: 240 seconds]
sam____ has joined #ocaml
cbot has joined #ocaml
sam____ has quit [Ping timeout: 260 seconds]
jlam__ has joined #ocaml
peterpp has quit [Ping timeout: 260 seconds]
jlam_ has quit [Ping timeout: 240 seconds]
teknozulu has quit [Ping timeout: 258 seconds]
malina has joined #ocaml
xuanrui has joined #ocaml
teknozulu has joined #ocaml
mengu has quit [Quit: Leaving...]
sh0t has quit [Remote host closed the connection]
kakadu has quit [Remote host closed the connection]
andreas__ has quit [Quit: Connection closed for inactivity]
teknozulu has quit [Ping timeout: 260 seconds]
ziyourenxiang has quit [Ping timeout: 258 seconds]
ygrek has quit [Ping timeout: 260 seconds]
sam____ has joined #ocaml
sam____ has quit [Ping timeout: 255 seconds]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
xuanrui has quit [Quit: Ex-Chat]