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
fraggle_ has quit [Ping timeout: 240 seconds]
fraggle_ has joined #ocaml
kakadu has quit [Remote host closed the connection]
malina has joined #ocaml
malina has quit [Remote host closed the connection]
zv has quit [Quit: WeeChat 1.9]
malina has joined #ocaml
enterprisey has joined #ocaml
malina has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 264 seconds]
mfp has joined #ocaml
emilian has quit [Remote host closed the connection]
cbot has joined #ocaml
Guest26846 has quit [Remote host closed the connection]
zolk3ri has quit [Remote host closed the connection]
richi235 has quit [Remote host closed the connection]
richi235 has joined #ocaml
wtetzner has quit [Ping timeout: 240 seconds]
AlexRussia has joined #ocaml
<pacak> Is there an existing datatype that can have either of two predefined values (similar to haskell's Either)?
<lyxia> Bool
<jpdeplaix> pacak: yes, Pervasives.result
BitPuffin|osx has quit [Ping timeout: 240 seconds]
<pacak> jpdeplaix: Yea, this looks a bit more useful than bool. Thanks!
sh0t has quit [Remote host closed the connection]
samrat has joined #ocaml
mfp has quit [Ping timeout: 268 seconds]
ome has joined #ocaml
<ome> Anyone knows how to work around the current broken state of jane street core?
TarVanimelde has quit [Quit: TarVanimelde]
pierpa has quit [Quit: Page closed]
kerrhau has quit [Quit: bye!]
enterprisey has quit [Ping timeout: 248 seconds]
Algebr has joined #ocaml
Bahman has joined #ocaml
lostman has joined #ocaml
govg has joined #ocaml
Algebr` has joined #ocaml
Algebr has quit [Ping timeout: 240 seconds]
Algebr` has quit [Remote host closed the connection]
Soni has quit [Ping timeout: 260 seconds]
<Bahman> Hi all.
Soni has joined #ocaml
Soni has quit [Changing host]
Soni has joined #ocaml
jbrown has quit [Ping timeout: 248 seconds]
enterprisey has joined #ocaml
infinity0_ has joined #ocaml
infinity0_ has quit [Changing host]
infinity0_ has joined #ocaml
infinity0 has quit [Killed (cherryh.freenode.net (Nickname regained by services))]
infinity0_ is now known as infinity0
cbot has quit [Quit: Leaving]
averell has quit [Ping timeout: 240 seconds]
averell has joined #ocaml
lostman has quit [Quit: Connection closed for inactivity]
zmt00 has quit [Quit: Leaving]
averell has quit [Ping timeout: 250 seconds]
averell has joined #ocaml
bruce_r has joined #ocaml
<bruce_r> I'm trying to make counted lists with phantom types using GADTs. It's really easy in Haskell but I can't make it work in Ocaml: http://lpaste.net/360034 . The compiler doesn't understand that I want the type parameter to be polymorphic.
<bruce_r> Do I need to add something to help the typer?
averell has quit [Ping timeout: 240 seconds]
averell has joined #ocaml
mbuf has joined #ocaml
TarVanimelde has joined #ocaml
kolko has quit [Quit: ZNC - http://znc.in]
kolko has joined #ocaml
<bruce_r> oh my, looks like I had to add the keyword "type" in my type annotation
MercurialAlchemi has joined #ocaml
<Bahman> bruce_r: Could you share the updated version?
<bruce_r> sure
<bruce_r> I updated the lpaste
<Bahman> Thanks. Interesting.
<Bahman> Hmm...I'm trying to figure out why you needed `type` in there.
<def`> Bahman: it is to deal with unification...
<def`> In the two branches of the function, the type "a" will be a different type.
<def`> (first "zero", then "succ a1" for some a1)
<def`> The syntax (type a) is OCaml syntax for introducing that kind of special type variable.
<bruce_r> why can you tell the compiler that zero and succ a1 are actually unifiable, but not int and string?
<bruce_r> why/how
<def`> they are not unifiable
<bruce_r> so what happens for the compiler to accept them both as the input of the function?
<def`> it doesn't?
<def`> unifiable means the type is both "zero" and "succ _"
<def`> here it says it is always valid, but not at the same time (in one branch it will be zero, in another succ _, but not both)
<bruce_r> ok, and the reason why it needs us to actually write it down is? it's not decidable?
<def`> yes
<Bahman> Thanks def`.
<bruce_r> great, thanks for the explanation man
sapristi has joined #ocaml
Lightsep1i has quit [Quit: leaving]
sgnb has joined #ocaml
argent_smith has joined #ocaml
mk9 has joined #ocaml
TheLemonMan has joined #ocaml
mk9 has quit [Ping timeout: 248 seconds]
bruce_r has quit [Ping timeout: 258 seconds]
TarVanimelde has quit [Quit: TarVanimelde]
mk9 has joined #ocaml
mk9 has quit [Client Quit]
mk9 has joined #ocaml
mk9 has quit [Ping timeout: 248 seconds]
ShalokShalom_ has joined #ocaml
ShalokShalom has quit [Ping timeout: 240 seconds]
mfp has joined #ocaml
_andre has joined #ocaml
samrat has quit [Ping timeout: 248 seconds]
sz0 has joined #ocaml
Bahman has quit [Quit: ave atque vale...]
AltGr has joined #ocaml
ziyourenxiang has joined #ocaml
zolk3ri has joined #ocaml
MercurialAlchemi has quit [Remote host closed the connection]
samrat_ has joined #ocaml
MercurialAlchemi has joined #ocaml
dhil has joined #ocaml
samrat_ has quit [Ping timeout: 240 seconds]
andreas__ has joined #ocaml
jerith_ is now known as jerith
shinnya has joined #ocaml
Denommus has joined #ocaml
ygrek has joined #ocaml
samrat_ has joined #ocaml
sh0t has joined #ocaml
jbrown has joined #ocaml
mbuf has quit [Remote host closed the connection]
mbuf has joined #ocaml
dhil has quit [Ping timeout: 258 seconds]
shinnya has quit [Ping timeout: 268 seconds]
Jesin has quit [Quit: Leaving]
sz0 has quit [Quit: Connection closed for inactivity]
Jesin has joined #ocaml
dhil has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 268 seconds]
sz0 has joined #ocaml
FreeBirdLjj has joined #ocaml
mbuf has quit [Quit: Leaving]
enterprisey has quit [Ping timeout: 268 seconds]
sapristi has quit [Remote host closed the connection]
Soni has quit [Excess Flood]
Jesin has quit [Quit: Leaving]
Soni has joined #ocaml
Jesin has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
ygrek has quit [Ping timeout: 240 seconds]
ziyourenxiang has quit [Ping timeout: 248 seconds]
FreeBirdLjj has joined #ocaml
donryudragoni has joined #ocaml
fraggle_ has quit [Read error: Connection reset by peer]
enterprisey has joined #ocaml
mbuf has joined #ocaml
AltGr has left #ocaml [#ocaml]
sapristi has joined #ocaml
moei has quit [Quit: Leaving...]
bruce_r has joined #ocaml
tane has joined #ocaml
enterprisey has quit [Remote host closed the connection]
sz0 has quit [Quit: Connection closed for inactivity]
fraggle_ has joined #ocaml
fraggle_ has quit [Remote host closed the connection]
fraggle_ has joined #ocaml
malc_ has joined #ocaml
ShalokShalom_ has quit [Ping timeout: 240 seconds]
kakadu has joined #ocaml
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 248 seconds]
samrat_ has quit [Ping timeout: 240 seconds]
p1n34ppl3 has joined #ocaml
<p1n34ppl3> hi ocamlers
FreeBirdLjj has joined #ocaml
dhil has quit [Ping timeout: 250 seconds]
Bahman has joined #ocaml
FreeBird_ has quit [Ping timeout: 240 seconds]
<zozozo> Hi
Bahman_ has joined #ocaml
Bahman has quit [Disconnected by services]
Bahman_ is now known as Bahman
<reynir> hi
Bahman_ has joined #ocaml
<Bahman> Hi.
<p1n34ppl3> hello sir
dedgrant has joined #ocaml
<p1n34ppl3> anyone working on ocaml stuff atm?
mbuf has quit [Quit: Leaving]
Jesin has quit [Quit: Leaving]
<p1n34ppl3> what src code should i read to learn neat ocaml tricks or design? reading the stdlib atm
FreeBirdLjj has quit [Ping timeout: 248 seconds]
dhil has joined #ocaml
<p1n34ppl3> i am stuck with imperative thinking
<donryudragoni> When I started learning functional with Haskell, 99 Problems was a nice exercise. Pretty sure you can find them in the OCaml website.
<p1n34ppl3> yes i remember it, i will get to it
<p1n34ppl3> it definitely exists
andreas__ has quit [Quit: Connection closed for inactivity]
<donryudragoni> Beyound that, try to build something yourself. My go-to projects are an image generator of the Mandelbrot set and a maze generator. A bit complex, but not too overwelming.
<donryudragoni> Both of which you can find on Daniel Shiffman's youtube channel. He uses Javascript (and p5), though.
<p1n34ppl3> i could make a gui app to generate the maze where a ball spawns randomly, might even implement dijkstra somehow, not sure if i can do it recursively etc
<Bahman> p1n34ppl3: This is how I learn new platforms/languages: https://github.com/bahmanm/stockman-ml
<p1n34ppl3> its relatively easy in C but dunno where to start using functional design
<p1n34ppl3> thanks ill check it out :D
Bahman_ has quit [Read error: Connection reset by peer]
Bahman_ has joined #ocaml
Bahman__ has joined #ocaml
Bahman has quit [Read error: Connection reset by peer]
<Bahman__> p1n34ppl3: Not sure if you received my msg...got disconnected...
Bahman_ has quit [Disconnected by services]
Bahman__ is now known as Bahman
Bahman_ has joined #ocaml
enterprisey has joined #ocaml
<reynir> Bahman: the channel has public logs :-) http://irclog.whitequark.org/ocaml
Bahman_ has quit [Disconnected by services]
<Bahman> :-)
Bahman_ has joined #ocaml
<Bahman> p1n34ppl3: There are 8 "work packages". BTW, obviously, I just started learning OCaml too :-)
Bahman_ has quit [Disconnected by services]
Bahman_ has joined #ocaml
slash^ has joined #ocaml
<p1n34ppl3> bahman, yes i got it, will check it out in a bit :) thanka
zmt00 has joined #ocaml
bruce_r has quit [Ping timeout: 250 seconds]
jlongster has joined #ocaml
soupault has joined #ocaml
jnavila has joined #ocaml
enterprisey has quit [Ping timeout: 248 seconds]
mk9 has joined #ocaml
enterprisey has joined #ocaml
soupault has quit [Remote host closed the connection]
donryudragoni has quit [Quit: WeeChat 1.9.1]
Denommus has quit [Quit: going home]
mk9 has quit [Quit: mk9]
jnavila has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Quit: WeeChat 1.9.1]
dhil has quit [Ping timeout: 248 seconds]
jnavila has joined #ocaml
malina has joined #ocaml
Bahman has quit [Ping timeout: 248 seconds]
Bahman_ has quit [Ping timeout: 260 seconds]
argent_smith has quit [Quit: Leaving.]
aziem has quit [Ping timeout: 250 seconds]
jnavila has quit [Ping timeout: 264 seconds]
aziem has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
Jesin has joined #ocaml
jnavila has joined #ocaml
shinnya has joined #ocaml
p1n34ppl3 has quit [Quit: Lost terminal]
kerrhau has joined #ocaml
jlongster has quit [Quit: Textual IRC Client: www.textualapp.com]
malina has quit [Remote host closed the connection]
malina has joined #ocaml
kerrhau has quit [Ping timeout: 255 seconds]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
wtetzner has joined #ocaml
wtetzner has quit [Remote host closed the connection]
<Leonidas> Someone should update the topic :)
DrWhax_ has joined #ocaml
DrWhax has quit [Ping timeout: 250 seconds]
SpiceGuid has joined #ocaml
fredcy has quit [Ping timeout: 240 seconds]
fredcy has joined #ocaml
seliopou_ has quit [Ping timeout: 260 seconds]
aziem has quit [Ping timeout: 240 seconds]
mk9 has joined #ocaml
Jesin has quit [Quit: Leaving]
bruce_r has joined #ocaml
seliopou has joined #ocaml
Jesin has joined #ocaml
SpiceGuid has quit [Ping timeout: 248 seconds]
SpiceGuid has joined #ocaml
mk9 has quit [Remote host closed the connection]
enterprisey has quit [Ping timeout: 255 seconds]
jnavila has quit [Remote host closed the connection]
aziem has joined #ocaml
SpiceGuid_ has joined #ocaml
SpiceGuid has quit [Ping timeout: 248 seconds]
SpiceGuid_ is now known as SpiceGuid
mk9 has joined #ocaml
mk9_ has joined #ocaml
mk9 has quit [Ping timeout: 268 seconds]
SpiceGuid has quit [Ping timeout: 250 seconds]
enterprisey has joined #ocaml
tane has quit [Quit: Leaving]
orbifx has joined #ocaml
<orbifx> where can I find the documentation for Re_str?
<orbifx> Ok, so no compiled odoc?
kakadu has quit [Remote host closed the connection]
mk9_ has quit [Ping timeout: 260 seconds]
zolk3ri has quit [Quit: Lost terminal]
<orbifx> not there is anything wrong with an mli
<copy`> You can use `odig odoc && odig doc` to build and view docs locally
pierpa has joined #ocaml
kerrhau has joined #ocaml
kerrhau has joined #ocaml
kolko has quit [Ping timeout: 240 seconds]
<orbifx> thanks copy`
<orbifx> Maybe a list specific package?
<orbifx> On a different topic, any libraries that provide List.take and List.drop, other than Batteries?
<octachron> containers does
kolko has joined #ocaml
Soni has quit [Excess Flood]
<orbifx> octachron: had a feeling. I'll check it out
Soni has joined #ocaml
<orbifx> do containers run on ARM octachron ?
<octachron> I see no reason why not?
FreeBirdLjj has joined #ocaml
<orbifx> k, will try to install it now, will let you know
<orbifx> Also, I know these are random questions but just in case you know, is Containers smaller in footprint than Batteries?
<octachron> I have no idea.
<orbifx> Thanks anyway :)