jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.5 | Fund Crystals development: http://to.ly/TtGw | 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
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<crystal-gh> [crystal] jessedoyle opened pull request #1094: Implement interpolations within heredocs. (master...heredoc-interpolate) http://git.io/vOWtO
sfcgeorg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
grindhold has quit [Quit: No Ping reply in 180 seconds.]
grindhold has joined #crystal-lang
NeverDie has joined #crystal-lang
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flaviu has joined #crystal-lang
havenwood has quit [Ping timeout: 256 seconds]
blue_deref has quit [Quit: bbn]
havenwood has joined #crystal-lang
BlaXpirit has joined #crystal-lang
kulelu88 has quit [Quit: Leaving]
elia has joined #crystal-lang
elia has quit [Client Quit]
sailorswift has joined #crystal-lang
sailorsw_ has joined #crystal-lang
sailorswift has quit [Ping timeout: 256 seconds]
elia has joined #crystal-lang
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
elia has quit [Client Quit]
elia has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
dbackeus has quit []
<vegai> does the $1K bountysource thing include a permanent Sponsor logo on the crystal webpage?
<vegai> or will you guys remove it after becoming superfamous and getting real sponsors? :P
strcmp1 has quit [Ping timeout: 272 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
asterite has joined #crystal-lang
leafybasil has quit [Ping timeout: 272 seconds]
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #1098: Fixed to run a inherited hook after class def (master...fix/run-inherited-hook-after-class-def) http://git.io/vOldK
elia_ has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
grindhold_ has joined #crystal-lang
grindhold has quit [Ping timeout: 240 seconds]
sailorsw_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sfcgeorge has joined #crystal-lang
wuehlmaus has joined #crystal-lang
luislavena has joined #crystal-lang
blue_deref has joined #crystal-lang
dwahl has joined #crystal-lang
strcmp1 has joined #crystal-lang
<BlaXpirit> >> def f(x: Int32.class); 1; end; def f(x: Array(Int32).class); 2; end; f(Int32); f(Array(Int32))
<DeBot_> BlaXpirit: Error in line 4: no overload matches 'f' with types Array(Int32):Class - http://carc.in/#/r/9mk
<BlaXpirit> is there any chance that this will work in the future?
<dwahl> my general feeling has been that the type system is still kinda buggy
<dwahl> also what does begin; __expr__ = begin do there?
<willl> dwahl: the bot adds that to catch and print exceptions if there are any
<dwahl> ahh
<willl> >> nil.not_nil!
<DeBot_> willl: Exception: Nil assertion failed - more at http://carc.in/#/r/9mn
<thor77> >> "".not_nil!
<DeBot_> thor77: # => "" - http://carc.in/#/r/9mo
<thor77> >> "".not_nil
<DeBot_> thor77: Error in line 4: undefined method 'not_nil' for String (did you mean 'not_nil!'?) - http://carc.in/#/r/9mp
<willl> undefined method would be printed anyway, since that's at compile time. this is just for runtime errors
<thor77> >> def f(x: Int32:Class); 1; end; f(Int32);
<DeBot_> thor77: Syntax error in eval:4: unexpected token: Class (expected ',' or ')') - http://carc.in/#/r/9mq
<dwahl> gotcha
<dwahl> i'm really confused by assigning __expr__ = begin
wonderbreadz has quit [Ping timeout: 252 seconds]
<willl> whatever is the last statement in the begin...end block will be assigned to the variable __expr__ , then that is what is printed to stdout and then returned to by the bot
<willl> >> "one"; "two"
<DeBot_> willl: # => "two" - http://carc.in/#/r/9mv
<willl> so "two" was the last thing in there, and that's what got printed
wonderbreadz has joined #crystal-lang
dwahl has quit [Ping timeout: 250 seconds]
wonderbreadz has quit [Ping timeout: 260 seconds]
mgarciaisaia has joined #crystal-lang
NeverDie has joined #crystal-lang
wonderbreadz has joined #crystal-lang
dwahl has joined #crystal-lang
kulelu88 has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
shama has joined #crystal-lang
dwahl has quit [Ping timeout: 265 seconds]
waj has joined #crystal-lang
sardaukar_ has joined #crystal-lang
sardaukar_ has left #crystal-lang [#crystal-lang]
strcmp1 has quit [Ping timeout: 272 seconds]
strcmp1 has joined #crystal-lang
dwahl has joined #crystal-lang
flaviu has quit [Ping timeout: 244 seconds]
dwahl has quit [Quit: Leaving]
elia_ has quit [Quit: Computer has gone to sleep.]
waj has quit [Ping timeout: 244 seconds]
waj has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
daphee has joined #crystal-lang
<daphee> Hi! Are there Threads currently implemented?
<willl> kind of. IO seems to be broken inside threads. There are channels and coroutines today, which give you concurrency. They are currently limited to a single OS thread, so no parallelism yet, but the plan is to automatically distribute the coroutines on os threads.
luislavena has quit [Remote host closed the connection]
luislavena has joined #crystal-lang
leafybasil has joined #crystal-lang
luislavena has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
luislavena has joined #crystal-lang
elia has joined #crystal-lang
sdogruyol has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
Raimondi has quit [Ping timeout: 250 seconds]
luislavena has quit [Remote host closed the connection]
blue_deref has quit [Quit: bbn]
<travis-ci> jalyna/crystal#9808af5 (master - Fixed #1092: `foo.@x` didn't compile if `foo` was a c struct): The build passed. https://travis-ci.org/jalyna/crystal/builds/73934602
elia has quit [Quit: Computer has gone to sleep.]
nahtnam has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] waj pushed 2 new commits to master: http://git.io/vOROR
<crystal-gh> crystal/master 191b11f Erik Michaels-Ober: Add code of conduct...
<crystal-gh> crystal/master 1cfc787 Juan Wajnerman: Merge pull request #1081 from sferik/code-of-conduct...
benner_ has joined #crystal-lang
blue_deref has joined #crystal-lang
<thor77> how does Array.sort work?
<thor77> can't find any useful information
<BlaXpirit> thor77, Array.quicksort!(@buffer, @length)
<BlaXpirit> isn't quicksort like too oldschool?
<BlaXpirit> thor77, very useful technique i just realized
<BlaXpirit> i went to https://github.com/manastech/crystal , pressed T, typed array, chose array.cr, searched on page for sort
<BlaXpirit> and found this quickly
<BlaXpirit> normal github search is subpar
Raimondi has joined #crystal-lang
Raimondi has quit [Client Quit]
Raimondi has joined #crystal-lang
<sardaukar> does anyone know how to get a single character from the keyboard?
<sardaukar> and not with pressing enter (like gets) ?
<BlaXpirit> sardaukar, is there some kind of stdin stream?
<sardaukar> I don't know - is there?
<BlaXpirit> i'm browsing examples for python
<BlaXpirit> they turn on raw mode for the tty, then just read 1 char from stdin
<sardaukar> well, Crystal's gets does reading with a "delimiter"
<sardaukar> oooh
<sardaukar> cool, thanks!
<BlaXpirit> yeah, line 38 exactly what u need
<BlaXpirit> if u want just a text character, these complicated 2-character manipulations are not needed
<sardaukar> those might be needed for F-keys
<sardaukar> they're long escape sequences
<sardaukar> or shift-keypresses
<BlaXpirit> sardaukar, what are u doing?
<sardaukar> a curses replacement
<sardaukar> :D
<BlaXpirit> well that's a lot of fun
<sardaukar> not sure if sarcasm
<sardaukar> :D
<BlaXpirit> yesterday i had even more fun trying to make dbus bindings
<sardaukar> that really sounds like fun
<sardaukar> remote control apps, right?
<BlaXpirit> but my fight with crystal's metaprogramming was unsuccessful
<sardaukar> the longer the fight, the sweeter the reward
<BlaXpirit> it's not really "remote" control
<BlaXpirit> just local message sending between apps
<BlaXpirit> but yeah, it can be used to control some music player app, just nothing "remote" about it
<sardaukar> that's what I meant, yeah
<crystal-gh> [crystal] jalyna opened pull request #1100: Add in_groups_of for enumerable (master...add-in_groups_of) http://git.io/vORV3
luislavena has joined #crystal-lang
<crystal-gh> [crystal] jalyna closed pull request #1084: Add flat method for arrays (master...array-flat) http://git.io/vOZHq
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vOR6T
<crystal-gh> crystal/master f5631ce Juan Wajnerman: Remove double socket close in HTTP server (fixes #1077)
trapped_ has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
zamith has joined #crystal-lang
zamith has quit [Client Quit]
<travis-ci> manastech/crystal#f5631ce (master - Remove double socket close in HTTP server (fixes #1077)): The build passed. https://travis-ci.org/manastech/crystal/builds/73949081
willl has quit [Quit: Connection closed for inactivity]
sdogruyol has quit [Remote host closed the connection]
<asterite> sardaukar: in the 2048 sample there's some code that reads single chars. It uses that raw mode BlaXpirit was talking about, but I don't know much about it (code was contributed by jhass ^_^)
<BlaXpirit> asterite, well yes, i linked to that examplle
<asterite> Oh... my problem of never finishing reading the entire conversation :-(
blue_deref has quit [Quit: bbn]
zamith has joined #crystal-lang
Ven has joined #crystal-lang
elia has joined #crystal-lang
Ven has quit [Max SendQ exceeded]
Ven has joined #crystal-lang
NeverDie has joined #crystal-lang
luislavena has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/vO00d
<crystal-gh> crystal/master de2e47f Jesse Doyle: Implement interpolations within heredocs. #1066
<crystal-gh> crystal/master 23e1b2d Jesse Doyle: Fix indentation.
<crystal-gh> crystal/master afcc8d9 Jesse Doyle: More readable iteration.
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vO00p
<crystal-gh> crystal/master e021719 Jalyna: Add in_groups_of for enumerable
<crystal-gh> crystal/master 555cd9f Ary Borenszweig: Merge pull request #1100 from jalyna/add-in_groups_of...
sfcgeorg_ has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden opened pull request #1102: Added: File.link, .symlink and .symlink? (master...std-file-links) http://git.io/vO0z4
sfcgeorge has quit [Ping timeout: 260 seconds]
elia has joined #crystal-lang
leafybasil has quit []
leafybasil has joined #crystal-lang
<travis-ci> manastech/crystal#e42a52f (master - Merge pull request #1094 from jessedoyle/heredoc-interpolate): The build passed. https://travis-ci.org/manastech/crystal/builds/73968004
<travis-ci> manastech/crystal#555cd9f (master - Merge pull request #1100 from jalyna/add-in_groups_of): The build passed. https://travis-ci.org/manastech/crystal/builds/73968063
waj has quit [Quit: waj]
BlaXpirit has quit [Quit: Konversation]
zamith has quit [Quit: Be back later ...]
elia has quit [Quit: Computer has gone to sleep.]
<sardaukar> hey
<sardaukar> how can I combine two UInt8's to form one UInt16?
<sardaukar> one being the lower and the other the higher byte?
mgarciaisaia has quit [Quit: Leaving.]
sfcgeorg_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mgarciaisaia has joined #crystal-lang
daphee has quit [Quit: Leaving.]