companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
infinity0_ has joined #ocaml
infinity0 is now known as Guest63370
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
Guest63370 has quit [Killed (weber.freenode.net (Nickname regained by services))]
infinity0_ is now known as infinity0
sepp2k has quit [Quit: Leaving.]
copy_ has quit [Quit: Connection closed for inactivity]
spew has joined #ocaml
sgronblo has joined #ocaml
orbitz_ has quit [Quit: Reconnecting]
orbitz has joined #ocaml
jlam has joined #ocaml
mfp__ has quit [Ping timeout: 240 seconds]
spew has quit [Quit: foobar]
nomicflux has joined #ocaml
ryanartecona has joined #ocaml
keep_learning has joined #ocaml
nomicflux has quit [Quit: nomicflux]
sh0t has quit [Remote host closed the connection]
cranmax has quit [Quit: Connection closed for inactivity]
tormen has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
cranmax has joined #ocaml
_whitelogger has joined #ocaml
Merv_ has quit [Remote host closed the connection]
iitalics has joined #ocaml
samrat has joined #ocaml
ygrek has quit [Ping timeout: 248 seconds]
enterprisey has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
shinnya has joined #ocaml
iitalics has quit [Remote host closed the connection]
iitalics has joined #ocaml
shinnya has quit [Ping timeout: 248 seconds]
enterprisey has quit [Remote host closed the connection]
Drup has quit [Ping timeout: 246 seconds]
abeaumont has quit [Ping timeout: 276 seconds]
thegameg_ has quit [Ping timeout: 240 seconds]
thegameg has joined #ocaml
Drup has joined #ocaml
johnelse has quit [Read error: Connection reset by peer]
johnelse has joined #ocaml
MercurialAlchemi has joined #ocaml
minn has quit [Ping timeout: 255 seconds]
profan has quit [Ping timeout: 240 seconds]
profan has joined #ocaml
j0sh has quit [Ping timeout: 240 seconds]
j0sh has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
ygrek has joined #ocaml
minn has joined #ocaml
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dakk has joined #ocaml
Merv_ has joined #ocaml
Merv_ has quit [Remote host closed the connection]
Merv_ has joined #ocaml
wapxmas has joined #ocaml
wapxmas has quit [Client Quit]
cranmax has quit [Quit: Connection closed for inactivity]
iitalics has quit [Quit: /thread]
ygrek has quit [Ping timeout: 246 seconds]
AlexDenisov has joined #ocaml
soupault has joined #ocaml
<soupault> hello chat!
<soupault> I was wondering is there is a way to perform `opam switch` to a newer version of OCaml while tranfering (i.e. installing) all of the previously installed pacakges
<soupault> couldn't find anything on the topic in the web...
moei has quit [Read error: Connection reset by peer]
minn has quit [Ping timeout: 246 seconds]
samrat has quit [Ping timeout: 260 seconds]
moei has joined #ocaml
abeaumont has joined #ocaml
dhil has joined #ocaml
freusque has joined #ocaml
<orbifx[m]> good question
argent_smith has joined #ocaml
TheLemonMan has joined #ocaml
<rgrinberg> soupault: if you don't mind reinstall, you can try using https://github.com/rgrinberg/opam-lock with the --all flag
<soupault> rgrinberg: that looks good, thanks!
<xa0> can anybody help me with this error https://gist.github.com/bqv/646ecb0be166555faddaed46ef57fe93
<xa0> i understand what i'm doing isn't exactly standard, but i'd like to do it anyway
<xa0> is it possible?
<xa0> i feel like i just need to add an explicit type sig somewhere
<xa0> but nowhere i try worked
samrat has joined #ocaml
tormen has joined #ocaml
<Leonidas> soupault: I always do opam switch export and opam switch import
mfp__ has joined #ocaml
kakadu has joined #ocaml
johnelse has quit [Quit: leaving]
<soupault> Leonidas: even better! :) but isn't documented well enough... thanks a lot!
<xa0> nevermind, got it to work by adding a typesig to bot in weather.ml :)
johnelse has joined #ocaml
<orbifx[m]> Is it permissible for an optional argument to default to the value of previous argument?
<def`> yes
<orbifx[m]> `let f x ?(y=x) () = ...` ?
<Leonidas> opam 2 updates the opam repository but then forgets to remove the "stamp" field
<def`> orbifx[m]: you can also test with the toplevel :)
<Leonidas> oh no, opam 2 adds stamp and then complains about its presence
<orbifx[m]> This channel is betters than the toplevel :)
<orbifx[m]> A far better toplevel basically :P
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<Leonidas> yeah, you hardly ever need to write ;; at the end of the line here.
<orbifx[m]> Indeed
<orbifx[m]> :P
<orbifx[m]> There isn't a Cstruct function to make a deep copy is there? Got to with multiple functions right?
<hannes> orbifx[m]: yes, there is no `copy`. you can use e.g. Cstruct.(of_string (to_string cs))
<orbifx[m]> I've used create and blit
<orbifx[m]> hopefully that is faster?
<hannes> *shrug* maybe... you'll have to measure it yourself... I just noticed to of_string unneccessarily calls `create` (which does a memset) -- where you could as well directly call `unsafe_create` since you're filling it afterwards appropriately
samrat has quit [Ping timeout: 248 seconds]
<Drup> Wait, why do you need a *deep* copy ? There is Cstruct.copy
<haesbaert> but that gives a string
<haesbaert> he wants a cstruct I guess
<Drup> Oh, I didn't pay attention. That name is very misleading
<haesbaert> yeah, I only remembered cause I made the mistake yesterday
<pitastrudl> well i can say i have finally passed my programming subject that used OCaml
<haesbaert> whaaaa.... what happened to making students miserable by forcing java
<Drup> I'm surprised there is no copy method for bigarrays
spew has joined #ocaml
<hannes> Drup: yeah, i was curious that I couldn't find any as well
<orbifx[m]> I need a copy: Cstruct.t -> Cstruct.t
<Drup> Well, if you don't care about speed, a for loop does the job ...
<haesbaert> just create and blit come on :D
<Drup> or that, yes :p
<hannes> orbifx[m]: yes, and Cstruct.t uses a BigArray structure -- so if there was a BigArray.copy, we could use that :)
<haesbaert> the only waste is like hannes said, it does a superfluous memset
<hannes> haesbaert: and I just went and cleaned up other people's code https://github.com/mirage/ocaml-cstruct/pull/158
<pitastrudl> haesbaert: we did have java in the first semester, just to get a feel of programming :D
<orbifx[m]> haesbaert: I did create and blig
<orbifx[m]> blit*
<haesbaert> oh there is a create_unsafe exported
<pitastrudl> second semester the subject was called "concepts of programming languages"
<pitastrudl> so with the theory we also did stuff in ocaml
<pitastrudl> functional, imperative and object programming
<haesbaert> hannes: how did you notice the regression ?
<hannes> haesbaert: by reading code
<haesbaert> oh I thought you had seen numbers going down or something
<haesbaert> yeah that's important, especially since we abuse cstruct often
<hannes> haesbaert: I could also write a benchmark pretty fast ;)
<haesbaert> yes yes
<haesbaert> :d
sgronblo has quit [Ping timeout: 240 seconds]
<octachron> adding a copy function to Bigarray sounds like a very reasonable PR/mantis ticket (and there are already changes for Bigarray in 4.06)
<dxtr> Hmm, what postgresql library do you guys recmomend?
<dxtr> recommend even
<dxtr> postgresql-ocaml or pgocaml?
silver has joined #ocaml
shinnya has joined #ocaml
<orbifx[m]> haven't used neither. Unless someone has experience to tell you, I would look at their maturity and stability. Also which are used the most by other projects on Opam
<dxtr> How do I check that last part?
<Drup> dxtr: pgocaml
<Drup> it's an OCaml lib, not C bindings to the postgres C client. The API is good and it has Lwt capabilities
<dxtr> Ah, cool
<Drup> (and it has some fancy query checking things, if desired)
_aux_ has joined #ocaml
<_aux_> Hi Folks
<_aux_> ocaml n00b here
<_aux_> Is there a online playground for ocaml?
<_aux_> Something like https://play.golang.org/ for golang.
<dxtr> [uses jbuilder]
<dxtr> err
<_aux_> thanks, let me try it out.
<lobo> a while a go someone posted a link to a newer version on reddit. but it seems to be still under construction https://try.ocamlpro.com/learn-ocaml-demo/
<lobo> there is also a demo of the web-based editor from the ocaml mooc online https://try.ocamlpro.com/fun-demo/tryocaml_index.html
mengu has joined #ocaml
<_aux_> Checked them out. I was actually looking for a way to implement a example program and then collaborate on it with someone else on a online playground.
<_aux_> These are closer to utop
<_aux_> Thanks for the suggestions.
dhil has quit [Ping timeout: 240 seconds]
AlexDenisov has quit [Read error: Connection reset by peer]
AlexDenisov has joined #ocaml
<orbifx[m]> any comments on returning exception types in Error?
<orbifx[m]> or should I say returning exception values in Error?
jlam has joined #ocaml
<flux> you could do that, or you could create your own open sum type for that with "type some_error = .."
nomicflux has joined #ocaml
<flux> if you want to have some limitations instead of just putting any kind of exception in
nicootje has quit [Read error: Connection reset by peer]
<flux> btw, open sum type can also have type parameters and they can have GADT constructor, so that can be a benefit
nicootje has joined #ocaml
<octachron> flux, exception can also have GADT constructors: "exception Any:'a -> exn"
<flux> well yes, but it can be a bit more useful when you can also have type 'a myexn = Int : int -> int myexn
<orbifx[m]> thanks flux & octachron
_andre has joined #ocaml
_aux_ has quit [Ping timeout: 255 seconds]
nomicflux has quit [Quit: nomicflux]
<xa0> L
<xa0> Ocaml is quite a shock to the system from haskell
_aux_ has joined #ocaml
nomicflux has joined #ocaml
_aux_ is now known as Guest20785
nomicflux has quit [Client Quit]
<Guest20785> exit
Guest20785 has left #ocaml [#ocaml]
Guest20785 has joined #ocaml
Guest20785 has left #ocaml [#ocaml]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
soupault has quit [Remote host closed the connection]
<dxtr> hmm
jlam has joined #ocaml
<dxtr> After installing 'utop core batteries pgocaml lwt ocp-index ocp-indent merlin' I can't install tuareg
<dxtr> Seems to be some dependency conflict maybe? aspcud says it is "UNSATISFIABLE"
jlam__ has quit [Ping timeout: 240 seconds]
<Drup> distro ?
<theblatte> install aspcud? :/
<dxtr> Drup: Arch
* Drup sight
<dxtr> theblatte: I have aspcud.
<dxtr> Ooh
<dxtr> I was watching the issue tracker for tuareg and stuff :p
minn has joined #ocaml
sh0t has joined #ocaml
dhil has joined #ocaml
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
jlam has joined #ocaml
jlam__ has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 255 seconds]
minn has quit [Ping timeout: 248 seconds]
malina has joined #ocaml
ngWalrus has quit [Quit: Lost terminal]
<dxtr> Yeah that solved it
<dxtr> Thanks, Drup
bombastus has joined #ocaml
kevinqiu has joined #ocaml
jlam1 has joined #ocaml
jlam__ has quit [Ping timeout: 246 seconds]
minn has joined #ocaml
saml has joined #ocaml
maattdd has joined #ocaml
jlam__ has joined #ocaml
samrat has joined #ocaml
jlam1 has quit [Ping timeout: 240 seconds]
minn has quit [Ping timeout: 240 seconds]
bombastus has quit [Ping timeout: 246 seconds]
dhil has quit [Ping timeout: 246 seconds]
<saml> what are you building?
samrat has quit [Ping timeout: 240 seconds]
cranmax has joined #ocaml
samrat has joined #ocaml
dhil has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
jao has joined #ocaml
ryanartecona has joined #ocaml
ziyourenxiang has joined #ocaml
mengu has quit [Remote host closed the connection]
mengu has joined #ocaml
noddy has joined #ocaml
mengu has quit [Ping timeout: 258 seconds]
enterprisey has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
shinnya has quit [Ping timeout: 248 seconds]
nicootje has quit [Remote host closed the connection]
nicootje has joined #ocaml
freusque has quit [Quit: WeeChat 1.7.1]
malina has joined #ocaml
ryanartecona has quit [Quit: ryanartecona]
bombastus has joined #ocaml
ryanartecona has joined #ocaml
jlam has joined #ocaml
jlam__ has quit [Ping timeout: 260 seconds]
<Leonidas> opam 2.0beta3 happily installs packages which conflict
AlexDenisov has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinity0> has anyone had any luck getting ppx_sexp_conv to work with ppx_deriving@HEAD and 4.05?
copy_ has joined #ocaml
maattdd has quit [Ping timeout: 260 seconds]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
cranmax has quit [Quit: Connection closed for inactivity]
ryanartecona has joined #ocaml
<dxtr> Hmm
<dxtr> So pgocaml doesn't have ipv6 support?
Merv_ has quit [Remote host closed the connection]
mengu has joined #ocaml
<dxtr> Nevermind me
mengu has quit [Ping timeout: 276 seconds]
shinnya has joined #ocaml
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
samrat has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
jlam has joined #ocaml
bombastus has quit [Ping timeout: 246 seconds]
jlam__ has quit [Ping timeout: 255 seconds]
ziyourenxiang has quit [Ping timeout: 255 seconds]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 255 seconds]
tane has joined #ocaml
jlam__ has quit [Ping timeout: 248 seconds]
jlam has joined #ocaml
sepp2k has joined #ocaml
bit_lySLH2uSZHed has joined #ocaml
noddy has quit [Quit: WeeChat 1.9]
bit_lySLH2uSZHed has left #ocaml [#ocaml]
<Leonidas> http://ocsigen.org/js_of_ocaml/dev/manual/rev-bindings hmm, this fails for me as it can't figure out %js. Any idea why?
<Leonidas> I installed jsoo-ppx
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
ryanartecona has quit [Quit: ryanartecona]
malina has quit [Ping timeout: 246 seconds]
aphprentice has quit [Quit: Connection closed for inactivity]
TheLemonMan has joined #ocaml
bit_lySLH2uSZHed has joined #ocaml
bit_lySLH2uSZHed has quit [K-Lined]
ygrek has joined #ocaml
samrat has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
jlam has quit [Ping timeout: 276 seconds]
dhil has quit [Ping timeout: 255 seconds]
jlam has joined #ocaml
maarhart has joined #ocaml
jlam__ has quit [Ping timeout: 268 seconds]
maarhart has quit [Client Quit]
bit_lySLH2uSZHed has joined #ocaml
bit_lySLH2uSZHed has left #ocaml [#ocaml]
dhil has joined #ocaml
AlexDenisov has joined #ocaml
FreeBirdLjj has joined #ocaml
AlexDenisov has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 248 seconds]
Merv_ has joined #ocaml
al-damiri has joined #ocaml
kevinqiu has quit [Ping timeout: 255 seconds]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
jlam__ has joined #ocaml
nicoo has joined #ocaml
nicootje has quit [Ping timeout: 248 seconds]
kakadu has quit [Quit: Konversation terminated!]
jlam_ has quit [Ping timeout: 260 seconds]
dhil has quit [Ping timeout: 248 seconds]
Ragora has joined #ocaml
<dxtr> I'm not quite sure I understand the type inference stuff
<dxtr> http://lpaste.net/7205947652209377280 <- Apparently init is 'int -> int -> int -> brain'
<lyxia> I would have guessed the first argument to be unit t
<dxtr> That would've been my guess
<dxtr> I guess I'm doing something wrong
<dxtr> Or.. Is it tuareg (merlin?) that's not updating as it should?
_andre has quit [Quit: leaving]
jnavila has joined #ocaml
enterprisey has quit [Remote host closed the connection]
kakadu has joined #ocaml
tane has quit [Quit: Leaving]
pierpa has joined #ocaml
jnavila has quit [Remote host closed the connection]
tobiasBora has quit [Ping timeout: 240 seconds]
Fardale has quit [Ping timeout: 255 seconds]
_y has quit [Ping timeout: 248 seconds]
_y has joined #ocaml
tobiasBora has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
Fardale has joined #ocaml
spew has quit [Ping timeout: 255 seconds]
fraggle_ has quit [Read error: Connection reset by peer]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
fraggle_ has joined #ocaml
shinnya has joined #ocaml
Merv__ has joined #ocaml
spew has joined #ocaml
sh0t has quit [Remote host closed the connection]
Merv_ has quit [Ping timeout: 260 seconds]
ryanartecona has joined #ocaml
argent_smith has quit [Quit: Leaving.]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
sh0t has joined #ocaml
ryanartecona_ has joined #ocaml
saml has quit [Remote host closed the connection]
ryanartecona has quit [Ping timeout: 260 seconds]
ryanartecona_ is now known as ryanartecona
jlam_ has joined #ocaml
sepp2k has quit [Ping timeout: 240 seconds]
jlam has quit [Ping timeout: 246 seconds]
<Leonidas> heh, jsoo processed js functions can be both partially applied as well as completely applied. neat.
kakadu has quit [Remote host closed the connection]
spew has quit [Quit: foobar]
<Drup> Only wrapped functions. Method calls can not
Fardale has quit [Ping timeout: 248 seconds]
_y has quit [Ping timeout: 246 seconds]
tobiasBora has quit [Ping timeout: 255 seconds]
_y has joined #ocaml
Fardale has joined #ocaml
tobiasBora has joined #ocaml
andreas_ has quit [Quit: Connection closed for inactivity]
malina has joined #ocaml
iitalics has joined #ocaml
FreeBirdLjj has joined #ocaml
ryanartecona has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Ping timeout: 255 seconds]
ryanartecona has joined #ocaml
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
jlam has joined #ocaml
jlam_ has quit [Ping timeout: 276 seconds]
ryanartecona has quit [Ping timeout: 260 seconds]