jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.5 | Fund Crystals development: http://is.gd/X7PRtI | 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 [Ping timeout: 260 seconds]
NeverDie has joined #crystal-lang
kyrylo has quit [Ping timeout: 240 seconds]
zamith has quit [Quit: Be back later ...]
kulelu88 has left #crystal-lang ["Leaving"]
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
sailorswift has joined #crystal-lang
sailorswift has quit [Client Quit]
sailorswift has joined #crystal-lang
NeverDie has joined #crystal-lang
havenwood has quit [Ping timeout: 246 seconds]
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Max SendQ exceeded]
sailorswift has joined #crystal-lang
NeverDie has joined #crystal-lang
elbow_jason has quit [Quit: Leaving]
strcmp1 is now known as thenameiselvis
blue_deref has joined #crystal-lang
icezimm has quit [Quit: Leaving.]
blue_deref has quit [Quit: bbn]
havenwood has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
havenn has joined #crystal-lang
havenwood has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
havenn is now known as havenwood
NeverDie has joined #crystal-lang
nahtnam has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
<Guest63985> >> "\u{3}"
<DeBot> Guest63985: # => "\u{3}" - http://carc.in/#/r/b0e
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Guest63985 is now known as adam12
dbackeus has joined #crystal-lang
<vegai> hmm, so the new bountysource backers' program is now monthly based?
<vegai> so the reward also lasts for a month and no longer?
<vegai> I understand your motivations for that, but I'm also a bit saddened to have just missed the window of getting permanent rewards for a mere $1K :P
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thenameiselvis has quit [Quit: Leaving]
leafybas_ has quit [Remote host closed the connection]
BlaXpirit has joined #crystal-lang
kyrylo has joined #crystal-lang
strcmp1 has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
sleeper_ is now known as sleeper
strcmp1 has quit [Client Quit]
trapped has joined #crystal-lang
leafybasil has joined #crystal-lang
strcmp1 has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 250 seconds]
BlaXpirit has quit [Quit: Konversation]
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
flou has joined #crystal-lang
dbackeus has quit [Ping timeout: 240 seconds]
<nopc0de> Can instance variables not be nillable?
<flou> hello everyone, there's something that I don’t really understand when working with XML in crystal
<flou> https://gist.github.com/flou/cdeceab05a5280012763 : in this code `puts heading` returns `<heading>Reminder</heading>` and I'd like to access the content of this node but I can't seem to figure out how
<flou> and any method I call on `heading` returns `undefined method`
dbackeus has joined #crystal-lang
<nopc0de> fml, just realized crystal is licensed under apache 2
<nopc0de> why :(
<nopc0de> Does the license have any effect on my work using crystal?
<strcmp1> licenses normally dont transcend onto code written in the language
<strcmp1> e.g license applies to compiler code
<strcmp1> i dont know much about apache
oal has quit [Remote host closed the connection]
oal has joined #crystal-lang
<jhass> strcmp1: nopc0de Apache is similar to MIT/BSD but includes usage grant any patents
<jhass> *of any
<jhass> nopc0de: yes, but setting them in all initializers to a non-nil value and never assigning nil afterwards
<jhass> flou: .xpath can return any of the types listed in the error message
<jhass> ?json_union
<jhass> flou: ^ this is a similar problem, though we don't have xml_mapping (yet), so you have to go the cast or is_a? route
<flou> ah ok thank you
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/v3uch
<crystal-gh> crystal/master fc69532 Ary Borenszweig: Fixed #1155: remove some duplication in Iterator logic by introduing IteratorWrapper
<crystal-gh> crystal/master 907d620 Ary Borenszweig: Added `StringLiteral#to_i` in macros
<travis-ci> manastech/crystal#fc69532 (master - Fixed #1155: remove some duplication in Iterator logic by introduing IteratorWrapper): The build passed. https://travis-ci.org/manastech/crystal/builds/75263686
flou has quit [Quit: Textual IRC Client: www.textualapp.com]
BlaXpirit has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/v3uaa
<crystal-gh> crystal/master 5011bf1 Ary Borenszweig: Fixed #1126: Pretty Printing a channel causes a Segmentation Fault
<travis-ci> manastech/crystal#5011bf1 (master - Fixed #1126: Pretty Printing a channel causes a Segmentation Fault): The build passed. https://travis-ci.org/manastech/crystal/builds/75267419
sleeper is now known as sleeper_
havenwood has joined #crystal-lang
blue_deref has joined #crystal-lang
blue_deref has quit [Client Quit]
vaedd has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
waj has joined #crystal-lang
ylluminate has quit [Ping timeout: 250 seconds]
ylluminate has joined #crystal-lang
thor77 has quit [Quit: This shouldn't happen...]
sardaukar has quit [Quit: ZNC - http://znc.in]
sardaukar has joined #crystal-lang
thor77 has joined #crystal-lang
NeverDie has joined #crystal-lang
waj has quit [Quit: waj]
thor77 has quit [Ping timeout: 256 seconds]
thor77 has joined #crystal-lang
waj has joined #crystal-lang
NeverDie has quit [Ping timeout: 272 seconds]
thor77 has quit [Ping timeout: 244 seconds]
thor77 has joined #crystal-lang
NeverDie has joined #crystal-lang
tonyfabeen has quit [Quit: Page closed]
blue_deref has joined #crystal-lang
dbackeus has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 7 new commits to master: http://git.io/v3gY2
<crystal-gh> crystal/master 1158f90 Andre: Added Crypto::Bcrypt + Crypto:Subtle
<crystal-gh> crystal/master 8c3e3a2 André Kaufmann: use default cost const as default value
<crystal-gh> crystal/master c6071ac André Kaufmann: same naming for password
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/v3gOk
<crystal-gh> crystal/master a1bdc1b Ary Borenszweig: Documented `record` and `pp` macros
<crystal-gh> crystal/master c2d97fb Ary Borenszweig: Correctly attach doc to fun that has an attribute
<crystal-gh> crystal/master 3ec11e6 Ary Borenszweig: Added some docs
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
kyrylo has quit [Ping timeout: 250 seconds]
leafybasil has quit [Ping timeout: 255 seconds]
leafybasil has joined #crystal-lang
<travis-ci> manastech/crystal#b0c1a11 (master - Merge pull request #440 from akaufmann/crypto_bcrypt): The build passed. https://travis-ci.org/manastech/crystal/builds/75304493
<travis-ci> manastech/crystal#94fd875 (master - Some fixes in bcrypt): The build passed. https://travis-ci.org/manastech/crystal/builds/75305049
leafybasil has quit [Remote host closed the connection]
kyrylo has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #445: Added specific Errno exceptions (Errno::ENOENT, ...) (master...std-errno-classes) http://git.io/A6Vq
<crystal-gh> [crystal] will opened pull request #1158: BitArray (master...bitarray) http://git.io/v3g2M
<crystal-gh> [crystal] asterite closed pull request #582: version of llvm should not be hardcoded (master...master) http://git.io/vfypJ
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
leafybasil has joined #crystal-lang
vaedd has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] asterite closed pull request #642: Implement Time.from_ms and Time#to_ms (master...time-ms) http://git.io/vUIBy
<crystal-gh> [crystal] PragTob opened pull request #1159: Implement Iterator#take_while (master...iterator-take-while) http://git.io/v3g9F
nahtnam has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] asterite closed pull request #692: Time Format: %W for week number of year (master...feature/time-format-week-of-year) http://git.io/vTQdC
NeverDie has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #712: Thread.alive? (master...master) http://git.io/vk2Yd
<crystal-gh> [crystal] waj pushed 3 new commits to master: http://git.io/v3gdm
<crystal-gh> crystal/master b8452f4 grindhold: more correct regex for github repo validation...
<crystal-gh> crystal/master 8c9f271 Juan Wajnerman: Merge pull request #779 from grindhold/master...
<crystal-gh> crystal/master 0009cef grindhold: github regex: more correct whitespace and limiters...
<travis-ci> manastech/crystal#58d56a8 (master - Renamed `Time.at` to `Time.epoch`. Added `Time.epoch_ms`. Renamed `Time#to_i` to `Time#epoch`. Added `Time#epoch_ms` and `Time#epoch_f`. Fixes #642): The build passed. https://travis-ci.org/manastech/crystal/builds/75318951
<crystal-gh> [crystal] asterite closed pull request #789: Add root option to json_mapping fields (master...json_mapping_root) http://git.io/vIytt
blue_deref has quit [Quit: bbn]
nahtnam has joined #crystal-lang
<travis-ci> manastech/crystal#8c9f271 (master - Merge pull request #779 from grindhold/master): The build passed. https://travis-ci.org/manastech/crystal/builds/75320838
<crystal-gh> [crystal] PragTob opened pull request #1160: Implement Iterator#skip_while (master...iterator-skip-while) http://git.io/v32fJ
waj_ has joined #crystal-lang
waj has quit [Ping timeout: 246 seconds]
waj_ is now known as waj
dbackeus has quit [Remote host closed the connection]
<crystal-gh> [crystal] PragTob opened pull request #1161: Add regression specs for improved regex in #779 (master...specs-for-more-correct-gh-repo-regex) http://git.io/v32kg
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/v32LE
<crystal-gh> crystal/master 85ed483 Ary Borenszweig: Merge pull request #1159 from PragTob/iterator-take-while...
<crystal-gh> crystal/master d3f43a2 Tobias Pfeiffer: Implement Iterator#take_while
dbackeus has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/v323Q
<crystal-gh> crystal/master c66d996 Ary Borenszweig: Merge pull request #1160 from PragTob/iterator-skip-while...
<crystal-gh> crystal/master f0d9d5f Tobias Pfeiffer: Implement Iterator#skip_while
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/v323x
<crystal-gh> crystal/master 1c3c4f9 Tobias Pfeiffer: Add regression specs for improved regex in #779...
<crystal-gh> crystal/master d7ea717 Ary Borenszweig: Merge pull request #1161 from PragTob/specs-for-more-correct-gh-repo-regex...
<travis-ci> manastech/crystal#85ed483 (master - Merge pull request #1159 from PragTob/iterator-take-while): The build passed. https://travis-ci.org/manastech/crystal/builds/75326371
<travis-ci> manastech/crystal#d7ea717 (master - Merge pull request #1161 from PragTob/specs-for-more-correct-gh-repo-regex): The build passed. https://travis-ci.org/manastech/crystal/builds/75328129
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
<sardaukar> has anyone tried to use Crystal's readline autocompletes?
<sardaukar> I don't get how they work
<jhass> never tried
<jhass> I guess something like Readline.autocomplete do |input| compute_possible_completions(input) end ?
waj_ has joined #crystal-lang
<sardaukar> and compute_.... would return CompletionProcs ?
<jhass> no, an Array(String)
<sardaukar> ah ok
waj has quit [Ping timeout: 246 seconds]
waj_ is now known as waj
<jhass> lias CompletionProc = String -> Array(String)?
<jhass> or nil
<sardaukar> yay, got it! thanks
<sardaukar> jhass: how was it immediately obvious to you from "def autocomplete(&@@completion_proc : CompletionProc)" ?
<jhass> &foo captures a block as a Proc into foo, : bar type restricts the signature of that Proc/block, CompletionProc is an alias defined a couple lines above
<jhass> and def foo(@bar, @@baz) is a shortcut to def foo(bar, baz); @bar = bar; @@baz = baz; end
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
dbackeus has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/v32PR
<crystal-gh> crystal/master cafead6 Will Leinweber: Document BitArray
<crystal-gh> crystal/master cafe43b Will Leinweber: Add BitArray#toggle
<crystal-gh> crystal/master cafecba Will Leinweber: Add BitArray#invert
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/v32PM
<crystal-gh> crystal/master 8198b37 Ary Borenszweig: Small working fix
<sardaukar> weird... why is there no to_sym on String?
<sardaukar> am I missing something?
<BlaXpirit> sardaukar, you're forgetting something
<BlaXpirit> this is a compiled language
<BlaXpirit> and the whole point of symbols is that they're turned to integer constants at compile time
<sardaukar> I see
<sardaukar> I just have this hash with Symbol keys (less typing) and wanted to match at runtime
<jhass> to_sym is a code smell in Ruby too
<sardaukar> sigh... these habits will be hard to shake
<jhass> even with the Symbol GC in 2.2
<sardaukar> jhass: why?
<jhass> normalize to strings, in both languages
<sardaukar> I thought it was a perf booster, since there's only one copy of a given Symbol
<jhass> the strong point prior 2.2 was that they weren't garbage collected, strings are easily user input so that was an easy DoS vector
<sardaukar> instead of strings being duplicated even when equal content
BlaXpirit has quit [Quit: Konversation]
<asterite> I even think now that having symbols in the language might not be good. Or at least maybe remove the {foo: 1} hash syntax, maybe it's not that needed in crystal in comparison to ruby
<sardaukar> I'll miss typing less
<sardaukar> but I get it
<waj> If symbols didn’t exist in Crystal, then {foo: 1} could be the same as {“foo”: 1}
<sardaukar> THAT is cool :D
<jhass> I'd still really like symbol to enum conversion in calls though
<jhass> it would feel weird for strings though and could clash for constants
<sardaukar> jhass: still on readline, why is it we can return a string array but only one match is ever returned?
<jhass> no idea
<sardaukar> I don't understand what the Pointer manipulation code at the end of readline.cr does
<travis-ci> manastech/crystal#8198b37 (master - Small working fix): The build passed. https://travis-ci.org/manastech/crystal/builds/75337677
<sardaukar> maybe it's not completed
<sardaukar> asterite: do you know something about it?
<jhass> sardaukar: that's just transforming the Array(String) into a UInt8** (C String array, char**)
<sardaukar> er...ok
<sardaukar> :D
<sardaukar> so, it's only one result
<sardaukar> the array is an affordance for the C interop to work?
<jhass> huh? no, it's copying all results into the C array
blue_deref has joined #crystal-lang
<sardaukar> I mean, the completionProc is in effect String -> String
<sardaukar> String -> Array(String) is just an affordance for the interop code to work
<sardaukar> do I make sense?
<jhass> I understood what you mean, it's not right
<sardaukar> how so?
<jhass> the code hands the C API all items in the array
<jhass> a string in C is char* (UInt8* as the crystal type) an array of strings is char** (UInt8**)
<sardaukar> then why does the completion only match the first one in the array?
<jhass> that I don't know
<sardaukar> oh ok then
<jhass> never worked with readline
<sardaukar> should I open an issue?
<sardaukar> do you think it is relevant?
<jhass> again, never worked with readline, I can't judge
blue_deref has quit [Quit: bbn]
jhass is now known as shevy
shevy is now known as jhass
kyrylo has quit [Remote host closed the connection]
NeverDie has joined #crystal-lang
kyrylo has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
strcmp1 has quit [Quit: Leaving]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
nahtnam has quit [Quit: Connection closed for inactivity]
kyrylo has quit [Ping timeout: 240 seconds]
kyrylo has joined #crystal-lang
kyrylo_ has joined #crystal-lang
kyrylo has quit [Read error: No route to host]
kyrylo_ has quit [Remote host closed the connection]
NeverDie has joined #crystal-lang
kyrylo has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
kyrylo has quit [Remote host closed the connection]
NeverDie has joined #crystal-lang
blue_deref has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/v3a09
<crystal-gh> crystal/master 4285f8f Ary Borenszweig: Fixed 1162: fixes readline autocomplete to show more than one completion
waj has quit [Quit: waj]
NeverDie has joined #crystal-lang
havenwood is now known as havenn
<maxdeviant> Is there a way to get the index when using Array.each?
<maxdeviant> I tried `[].each do |value, index|`, but index appears to be blank
<jhass> maxdeviant: there's each_with_index
<maxdeviant> jhass: Ah, nice! Not listed on the API docs (at least not with each and each_index)
<jhass> maxdeviant: it's on Enumerable which Array includes
<maxdeviant> I see
havenn is now known as havenwood