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]
<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
<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_>
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"