companion_cube changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.11 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.11/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
h14u has quit [Quit: Leaving]
inkbottle has joined #ocaml
zebrag has quit [Ping timeout: 260 seconds]
webshinra has quit [Remote host closed the connection]
vicfred has quit [Remote host closed the connection]
vicfred has joined #ocaml
Manis[m] has quit [Ping timeout: 260 seconds]
jun has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ocaml
_whitelogger has joined #ocaml
ransom has joined #ocaml
ransom has quit [Client Quit]
webshinra has quit [Remote host closed the connection]
webshinra has joined #ocaml
rig0rmortis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mfp has quit [Ping timeout: 256 seconds]
_whitelogger has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
mmohammadi9812 has joined #ocaml
ansiwen has quit [Quit: ZNC 1.7.1 - https://znc.in]
narimiran has joined #ocaml
ansiwen has joined #ocaml
vicfred has quit [Quit: Leaving]
osa1 has joined #ocaml
sonologico has quit [Remote host closed the connection]
gjaldon_ has joined #ocaml
Haudegen has joined #ocaml
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #ocaml
ggole has joined #ocaml
jbrown has joined #ocaml
Serpent7776 has joined #ocaml
vicfred has joined #ocaml
<d_bot> <ostera> @Mando what are you looking for?
mmohammadi9812 has quit [Ping timeout: 246 seconds]
narimiran has quit [Ping timeout: 272 seconds]
olle has joined #ocaml
mmohammadi9812 has joined #ocaml
dhil has joined #ocaml
narimiran has joined #ocaml
<d_bot> <EduardoRFS> @ostera just think of lambda as the lambda calculus with blocks, is good enough for things
<d_bot> <EduardoRFS> but interesting thought you was doing bytecode -> erlang
<d_bot> <ostera> yeah, i am now
berke has joined #ocaml
mfp has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
mbuf has joined #ocaml
MasterBen has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
farn__ has quit [Ping timeout: 244 seconds]
lisq has quit [Ping timeout: 244 seconds]
lobo has quit [Ping timeout: 256 seconds]
lisq has joined #ocaml
dhil has joined #ocaml
farn__ has joined #ocaml
lobo has joined #ocaml
mmohammadi9812 has joined #ocaml
laokz has joined #ocaml
tane has joined #ocaml
osa1 has quit [Ping timeout: 260 seconds]
waleee-cl has joined #ocaml
mmohammadi98126 has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 258 seconds]
mmohammadi98126 is now known as mmohammadi9812
mmohammadi9812 has quit [Ping timeout: 246 seconds]
mbuf has quit [Quit: Leaving]
mmohammadi9812 has joined #ocaml
nkly has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
mmohammadi9812 has quit [Ping timeout: 240 seconds]
Haudegen has quit [Quit: Bin weg.]
mmohammadi9812 has joined #ocaml
osa1 has joined #ocaml
h14u has joined #ocaml
<d_bot> <darrenldl> is there any particularly terrible problems that might occur if say i allow negative unix timestamp in a library?
<d_bot> <darrenldl>
<d_bot> <darrenldl> (mostly in the case of ocaml world, but also curious about allow negative unix timestamp in general)
<d_bot> <darrenldl> (by unix timestamp i meant seconds since 00:00:00 UTC on 1 January 1970)
rig0rmortis has joined #ocaml
<olle> yes
<olle> database engines will not support this, I think.
<olle> what's your use-case?
<Putonlalla> I was surprised the extra underscore in `function | _ :: [] _ -> true | _ -> false` is not an error. What's actually going on there?
<Drup> can you show the code ?
<Putonlalla> Me? That's the whole thing.
<d_bot> <craigfe> ```
<d_bot> <craigfe> 1 | let f = function _ :: [] _ -> true | _ -> false
<d_bot> <craigfe> ^
<d_bot> <craigfe> Warning 28: wildcard pattern given as argument to a constant constructor
<d_bot> <craigfe> ```
<octachron> It is read as ([] _) which is indeed
<octachron> valid
<d_bot> <craigfe> (seems like it should be an error by default to me)
<Putonlalla> How is it valid, octachron?
<octachron> By the definition of patterns? `[]` is a consructor and `Constructor _` is a valid pattern
<d_bot> <ggole> `_` ranges over any number of arguments, including zero
<Putonlalla> Oh.
<octachron> let f (true _) (false _) ((::) _) ([] _) (() _) = ()
<Putonlalla> So it's more like `{}` in Haskell.
<octachron> is both horrendous and syntactically correct
<Putonlalla> Indeed, you can write `let {f :: Bool -> Bool -> [a] -> [b] -> () -> (); f (True {}) (False {}) ((:) {}) ([] {}) (() {}) = ()}`.
nicoo has quit [Remote host closed the connection]
rig0rmortis has quit [Quit: Textual IRC Client: www.textualapp.com]
<Drup> I know and understand why they did that, but ugh.
nicoo has joined #ocaml
<d_bot> <darrenldl> > database engines will not support this, I think.
<d_bot> <darrenldl> @olle#0000 oh, right, database, oop
<d_bot> <darrenldl> > what's your use-case?
<d_bot> <darrenldl> it's largely for logic that's internal to the library, but if the user asks things about time before 1970, and asks it to return in unix timestamp, it'll gladly return negatives as well
Haudegen has joined #ocaml
mmohammadi98120 has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 272 seconds]
mmohammadi98120 is now known as mmohammadi9812
MasterBen has quit [Remote host closed the connection]
<olle> what's wrong with ISO dates?
<d_bot> <Et7f3> IRC users please use `` around short snippet
<d_bot> <Et7f3> because _ is underline on discord
<d_bot> <Et7f3> ~~underline~~ italic
<d_bot> <darrenldl> re olle: internally, it requires doing computation over collections of intervals, i.e. `(int * int64) Seq.t`. externally, nothing wrong with ISO dates actually... i'll update the doc to suggest using ISO date as storage, thanks!
mmohammadi9812 has quit [Ping timeout: 258 seconds]
mmohammadi9812 has joined #ocaml
<d_bot> <wtetzner> What does `type t = ..` mean?
<theblatte> it's an extensible variant with no variants declared initially
<d_bot> <wtetzner> So it works kinda like exceptions?
<def> yep, exn is (internally) defined as type exn = ..
<theblatte> except you still get exhaustiveness checks for extensible variants?
<theblatte> (a bit rusty)
toppler has quit [Remote host closed the connection]
<def> no
<theblatte> ah you're forced to handle a default "_" case when matching
<companion_cube> it literally cannot be exhaustive :)
<d_bot> <octachron> This is also the case of exceptions: `fun Not_found -> ()` raises a warning
<theblatte> well you could decide to close the world at some point :)
<d_bot> <ostera> so you wouldn't consider `_` being exhaustive, even tho it matches on everything?
<companion_cube> it matches everything, it's just not what one would call an exhaustive matching
<theblatte> _ is a special case of exhustive
<theblatte> +a
<companion_cube> it's exhaustive and fragile, if I believe the compiler warnings
rig0rmortis has joined #ocaml
<d_bot> <wtetzner> The match is technically exhaustive, but you wouldn't be benefitting from exhaustiveness checking.
laokz has quit [Quit: Leaving]
rig0rmortis has quit [Ping timeout: 272 seconds]
Tuplanolla has joined #ocaml
mmohammadi9812 has quit [Ping timeout: 265 seconds]
spew has joined #ocaml
mmohammadi9812 has joined #ocaml
berke has quit [Ping timeout: 258 seconds]
Haudegen has quit [Quit: Bin weg.]
mmohammadi9812 has quit [Ping timeout: 260 seconds]
mmohammadi9812 has joined #ocaml
ggole has quit [Quit: Leaving]
olle has quit [Ping timeout: 258 seconds]
nkly has joined #ocaml
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
nkly has quit [Ping timeout: 272 seconds]
mmohammadi9812 has joined #ocaml
nkly has joined #ocaml
rig0rmortis has joined #ocaml
rig0rmortis has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
vicfred has quit [Remote host closed the connection]
vicfred has joined #ocaml
nkly has quit [Quit: ZNC 1.6.6+deb1ubuntu0.2 - http://znc.in]
nkly has joined #ocaml
kanishka has joined #ocaml
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
gjaldon_ has quit [Quit: Connection closed for inactivity]
reynir has quit [Ping timeout: 260 seconds]
reynir has joined #ocaml
jnavila has joined #ocaml
dhil has quit [Quit: Leaving]
kanishka has quit [Ping timeout: 245 seconds]
dhil has joined #ocaml
narimiran has quit [Ping timeout: 258 seconds]
amiloradovsky has joined #ocaml
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
jnavila has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
inkbottle has quit [Ping timeout: 240 seconds]
ransom has joined #ocaml
osa1 has quit [Ping timeout: 265 seconds]
amiloradovsky has quit [Ping timeout: 240 seconds]
amiloradovsky has joined #ocaml
mmohammadi9812 has joined #ocaml
mmohammadi9812 has quit [Quit: I quit (╯°□°)╯︵ ┻━┻]
robmyers has quit [Ping timeout: 244 seconds]
cemerick has quit [Ping timeout: 240 seconds]
alehander92 has quit [Ping timeout: 244 seconds]
mjvoge02 has quit [Ping timeout: 244 seconds]
bytesighs has quit [Ping timeout: 260 seconds]
higherorder has quit [Ping timeout: 260 seconds]
Duns_Scrotus has quit [Ping timeout: 272 seconds]
caasih has quit [Ping timeout: 244 seconds]
JSharp has quit [Ping timeout: 244 seconds]
bitonic has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 244 seconds]
l1x has quit [Ping timeout: 246 seconds]
jmct has quit [Ping timeout: 240 seconds]
cbarrett has quit [Ping timeout: 260 seconds]
SrPx has quit [Ping timeout: 260 seconds]
waleee-cl has quit [Ping timeout: 260 seconds]
stephe has quit [Ping timeout: 260 seconds]
angerman has quit [Ping timeout: 260 seconds]
mjvoge02 has joined #ocaml
Duns_Scrotus has joined #ocaml
cemerick has joined #ocaml
sspi__ has quit [Ping timeout: 260 seconds]
mgsk has quit [Ping timeout: 260 seconds]
bytesighs has joined #ocaml
caasih has joined #ocaml
cbarrett has joined #ocaml
SrPx has joined #ocaml
ec has joined #ocaml
JSharp has joined #ocaml
sspi__ has joined #ocaml
waleee-cl has joined #ocaml
jmct has joined #ocaml
angerman has joined #ocaml
mgsk has joined #ocaml
stephe has joined #ocaml
robmyers has joined #ocaml
alehander92 has joined #ocaml
bitonic has joined #ocaml
higherorder has joined #ocaml
l1x has joined #ocaml
amiloradovsky has quit [Ping timeout: 240 seconds]
Serpent7776 has quit [Quit: leaving]
amiloradovsky has joined #ocaml
reynir has quit [Ping timeout: 260 seconds]
reynir has joined #ocaml
nullcone has joined #ocaml
tane has quit [Quit: Leaving]
bronsen has quit [Quit: WeeChat 2.9]
bronsen has joined #ocaml
robmyers has quit [Ping timeout: 260 seconds]
robmyers has joined #ocaml
lisq has quit [Quit: lisq]
lisq has joined #ocaml
reynir has quit [Ping timeout: 240 seconds]
reynir has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
Tuplanolla has quit [Quit: Leaving.]
adi_________ has quit [Read error: Connection reset by peer]
jmct has quit [Read error: Connection reset by peer]
mrallen1 has quit [Read error: Connection reset by peer]
alehander92 has quit [Ping timeout: 240 seconds]
pgiarrusso has quit [Ping timeout: 244 seconds]
cqc has quit [Read error: Connection reset by peer]
bytesighs has quit [Read error: Connection reset by peer]
waleee-cl has quit [Ping timeout: 240 seconds]
strmpnk has quit [Read error: Connection reset by peer]
metadave has quit [Ping timeout: 260 seconds]
sspi__ has quit [Read error: Connection reset by peer]
SrPx has quit [Ping timeout: 240 seconds]
stylewarning has quit [Ping timeout: 240 seconds]
rdivyanshu has quit [Ping timeout: 240 seconds]
Boarders has quit [Ping timeout: 240 seconds]
angerman has quit [Ping timeout: 260 seconds]
nullcone has quit [Ping timeout: 260 seconds]
caasih has quit [Ping timeout: 260 seconds]
ec has quit [Ping timeout: 260 seconds]
cemerick has quit [Ping timeout: 260 seconds]
adi_________ has joined #ocaml
jmct has joined #ocaml
bitonic has quit [Ping timeout: 272 seconds]
mrallen1 has joined #ocaml
wildsebastian has quit [Ping timeout: 260 seconds]
kristjansson has quit [Ping timeout: 260 seconds]
bytesighs has joined #ocaml
cbarrett has quit [Ping timeout: 272 seconds]
spew has quit [Ping timeout: 272 seconds]
cemerick has joined #ocaml
spew has joined #ocaml
metadave has joined #ocaml
kristjansson has joined #ocaml
bitonic has joined #ocaml
JSharp has quit [Ping timeout: 240 seconds]
angerman has joined #ocaml
Duns_Scrotus has quit [Ping timeout: 260 seconds]
cqc has joined #ocaml
strmpnk has joined #ocaml
alehander92 has joined #ocaml
pgiarrusso has joined #ocaml
sspi__ has joined #ocaml
wildsebastian has joined #ocaml
rdivyanshu has joined #ocaml
ec has joined #ocaml
waleee-cl has joined #ocaml
<brettgilio> Hey all, I am working on an implementation of an IRC server in OCaml. I am working through the networking logic right now, and am curious about opinions on handling IO concurrency in a situation like this. With Multicore domains not being out yet, I am given two primary options, Lwt's monadic promise style system or the Unix/Thread module with native mutex threads. Im curious how you all would proceed here.,
cbarrett has joined #ocaml
stylewarning has joined #ocaml
SrPx has joined #ocaml
<companion_cube> that's probably a place where Lwt shines
caasih has joined #ocaml
nullcone has joined #ocaml
adrianbrink has quit [Ping timeout: 260 seconds]
adrianbrink has joined #ocaml
Duns_Scrotus has joined #ocaml
JSharp has joined #ocaml
jmct has quit [Ping timeout: 246 seconds]
Boarders has joined #ocaml
cemerick has quit [Ping timeout: 256 seconds]
spew has quit [Ping timeout: 256 seconds]
pgiarrusso has quit [Ping timeout: 258 seconds]
<brettgilio> companion_cube: Yeah, I think so as well. I tried to find similar benchmarks for say a few thousand connections comparing the two, but there isnt much.
jmct has joined #ocaml
<companion_cube> I think threads would work well, but you might have to configure your kernel
<companion_cube> so, lwt is probably simpler
<brettgilio> Hmm. I hadn't considered that aspect of it.
spew has joined #ocaml
cemerick has joined #ocaml
<brettgilio> That is enough to convince me right there.
<brettgilio> I'll just go with Lwt for now
Haudegen has quit [Ping timeout: 264 seconds]
pgiarrusso has joined #ocaml
<brettgilio> Thanks
<brettgilio> companion_cube:
ec is now known as ELLIOTTCABLE
ELLIOTTCABLE is now known as ec
amiloradovsky has quit [Remote host closed the connection]
amiloradovsky has joined #ocaml
minwuek has joined #ocaml