jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.4 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
Cidan is now known as zz_Cidan
_whitelogger has joined #crystal-lang
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Cidan is now known as zz_Cidan
havenwood has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
ozra has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zz_Cidan is now known as Cidan
havenwood has quit [Ping timeout: 246 seconds]
Cidan is now known as zz_Cidan
havenwood has joined #crystal-lang
zz_Cidan is now known as Cidan
shama has quit [Remote host closed the connection]
Cidan is now known as zz_Cidan
shama has joined #crystal-lang
zz_Cidan is now known as Cidan
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
strcmp1 has quit [Ping timeout: 256 seconds]
Cidan is now known as zz_Cidan
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
zz_Cidan is now known as Cidan
n1ftyn8 has quit [Ping timeout: 250 seconds]
drizz has quit [Ping timeout: 250 seconds]
n1ftyn8_ has joined #crystal-lang
drizz has joined #crystal-lang
n1ftyn8_ has quit [Changing host]
n1ftyn8_ has joined #crystal-lang
Cidan is now known as zz_Cidan
BlaXpirit has joined #crystal-lang
sandelius has joined #crystal-lang
unshadow_ has joined #crystal-lang
unshadow has quit [Ping timeout: 256 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
Angelion has joined #crystal-lang
<Angelion> is crystal concurrent?
BlaXpirit has joined #crystal-lang
_whitelogger has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
unshadow has joined #crystal-lang
unshadow_ has quit [Ping timeout: 265 seconds]
BlaXpirit has joined #crystal-lang
tliff has quit [Ping timeout: 256 seconds]
tliff has joined #crystal-lang
jiriki- has quit [Excess Flood]
jiriki has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
ozra has joined #crystal-lang
unshadow_ has joined #crystal-lang
unshadow has quit [Ping timeout: 265 seconds]
NeverDie has joined #crystal-lang
_whitelogger has joined #crystal-lang
strcmp1 has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
unshadow_ has quit [Quit: leaving]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
havenwood has joined #crystal-lang
<jhass> mmh, I'd really like this Ruby pattern to work in Crystal http://carc.in/#/r/6bf
n1ftyn8_ has quit []
n1ftyn8_ has joined #crystal-lang
endou___________ has quit []
endou___________ has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
NeverDie has joined #crystal-lang
zodiak has quit [Quit: Leaving]
zz_Cidan is now known as Cidan
_whitelogger has quit [Ping timeout: 252 seconds]
_whitelogger has joined #crystal-lang
Cidan is now known as zz_Cidan
DeBot has quit [Quit: Crystal IRC]
DeBot has joined #crystal-lang
DeBot has quit [Client Quit]
DeBot has joined #crystal-lang
shama has joined #crystal-lang
<ozra> jhass: Though, one of them is a function the other a object bound method... Different types
<jhass> but same interface
<jhass> duck typing, you know
<ozra> No, there's a hidden argument - the method type is really (Size, String -> Int32)
<ozra> So, statically typed, they definitely difer
<jhass> I disagree, the caller interface is 100% compatible, the difference is the implementation side, where the implicit self argument isn't received
<jhass> >> -> (str : String) { str.size }.class
<DeBot> jhass: # => (String -> Int32) - http://carc.in/#/r/6dm
<jhass> >> -> (str : String) { str.size }.class.class
<DeBot> jhass: # => (String -> Int32):Class - http://carc.in/#/r/6dn
<jhass> >> -> (str : String) { str.size }.is_a? Proc
<DeBot> jhass: # => true - http://carc.in/#/r/6do
<jhass> the caller side interface is 100% OO
<jhass> Proc is more an object representing a function than the actual function
<ozra> Procs have an implicit class instance? That doesn't rhyme well with performant code. In the "real world", they do differ, and since Crystal compiles to "real world code", the signature are mismatches - if procs don't have implicit empty objects associated of course (which would be strange)
<ozra> Ofcourse crystal could make it a union type and support is invisibly, so that your way indeed is right, in crystal syntax..
<jhass> right, I'm talking conceptually here, not implementation wise
<ozra> Yes, there are two sides, and since Crystal is static.. That's why I brought that up. Otherwise, the way you put is much more elegant (and logical)
zodiak has joined #crystal-lang
<ozra> Hmm, jhass, is it possible to define functor operator? So that the object becomes a callable?
<jhass> not that I'm aware of
<jhass> and I'm still not sure I'd like that
<ozra> Why?
zodiak has quit [Client Quit]
zodiak has joined #crystal-lang
<jhass> I'm not sure, it doesn't feel OO to me and Crystal so far feels highly OO to me like Ruby does. But perhaps it's because usually ambiguity between method calls and local variables is resolved through the call syntax, and making locals able to receive the call syntax feels like loosing clarity
zodiak has quit [Client Quit]
<jhass> foo bar # I can be sure foo is a method call, that would no longer hold true
<jhass> (that is a method call of a method defined on self)
zodiak has joined #crystal-lang
<ozra> Fair enuogh. Empirically though, the pattern is used in both JS/LS and C++ extensively without problems. (there are other problems with those languages though ;-). So that fear can be layed aside :)
sfcgeorge has joined #crystal-lang
<ozra> Let's say I want to mmap 100 files in to mem. If I do this from coroutines, it will all be sequential any way, each waiting on the prior? So I need to use C OS threads to get around the initial IO block of the mapping?
<jhass> atm, yeah
havenwood has quit [Ping timeout: 265 seconds]
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
sfcgeorge has quit [Quit: Textual IRC Client: www.textualapp.com]
Cidan is now known as zz_Cidan
_whitelogger has joined #crystal-lang
havenwood has joined #crystal-lang
DeBot has quit [Remote host closed the connection]
jhass has quit [Quit: Bye]
DeBot has joined #crystal-lang
jhass has joined #crystal-lang
ozra has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vqL1d
<crystal-gh> crystal/master 8ac88e5 Ary Borenszweig: Fixed #923: Compiler crash on proc assigned to instance variable initialize in a class that is never instantiated
<crystal-gh> crystal/master 3ce859c Ary Borenszweig: Spec: small fix in expect_raises
<crystal-gh> crystal/master da52d00 Ary Borenszweig: Fixed #917: disallow declaring a variable multiple times with different types
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vqLDn
<crystal-gh> crystal/master e6e36c6 yui-knk: [ci skip] Add comment for Enumerable#inject with initial value
<crystal-gh> crystal/master 1605c11 Ary Borenszweig: Merge pull request #906 from yui-knk/comment/enum_inject...
<crystal-gh> [crystal] asterite closed pull request #912: Allow Set#| to accept union type (master...fix/set_or) http://git.io/vtdNl
<crystal-gh> [crystal] asterite closed pull request #913: additional free variable examples (gh-pages...doc-freevar) http://git.io/vtFRJ
<crystal-gh> [crystal] asterite closed pull request #907: Implement Enumerable#none? without block (master...feature/enum_none) http://git.io/vt1PC
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vqLDQ
<crystal-gh> crystal/master c328d69 yui-knk: Add test for Enumerable#all?
<crystal-gh> [crystal] asterite closed pull request #905: Add test for Enumerable#all? (master...test/enum_all) http://git.io/vt10C
<travis-ci> manastech/crystal#da52d00 (master - Fixed #917: disallow declaring a variable multiple times with different types): The build passed. https://travis-ci.org/manastech/crystal/builds/69495611
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vqLyc
<crystal-gh> crystal/master 6048681 Ary Borenszweig: Enumerable#drop: check negative count
<travis-ci> manastech/crystal#654a843 (master - Merge pull request #897 from PragTob/enumerable_drop
<travis-ci> manastech/crystal#dfe1601 (master - Merge pull request #871 from will/templates
BlaXpirit has quit [Quit: Quit Konversation]
<travis-ci> manastech/crystal#14665e7 (master - Merge pull request #903 from yui-knk/fix/test_array
<travis-ci> manastech/crystal#f5de1e7 (master - Merge pull request #904 from yui-knk/fix/ecr_spec
<travis-ci> manastech/crystal#23b3487 (master - Merge pull request #912 from yui-knk/fix/set_or
havenwood has quit [Ping timeout: 244 seconds]
<travis-ci> manastech/crystal#ec18cc4 (master - Merge pull request #907 from yui-knk/feature/enum_none
<travis-ci> manastech/crystal#c328d69 (master - Add test for Enumerable#all?): The build passed. https://travis-ci.org/manastech/crystal/builds/69496684
<travis-ci> manastech/crystal#4c2b0de (master - Merge pull request #915 from yui-knk/feature/set_subset
<travis-ci> manastech/crystal#6048681 (master - Enumerable#drop: check negative count): The build passed. https://travis-ci.org/manastech/crystal/builds/69497122