jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.4 | 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
blue_deref has joined #crystal-lang
<asterite> Another place where we need to normalize names: http://play.crystal-lang.org/#/r/8cf
ozra has quit [Ping timeout: 246 seconds]
<crystal-gh> [crystal] yui-knk opened pull request #1037: [ci skip] Fix Docs of `superclass` (master...fix/docs) http://git.io/vYVue
havenwood has joined #crystal-lang
blue_deref has quit [Quit: bbn]
<crystal-gh> [crystal] yui-knk opened pull request #1038: [ci skip] Fix mardown format and code example (master...doc/fix_md) http://git.io/vYwJ9
<crystal-gh> [crystal] yui-knk opened pull request #1039: [ci skip] Add macro id examples (master...doc/macro_id) http://git.io/vYwJp
BlaXpirit has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
hangyas has joined #crystal-lang
<hangyas> http://carc.in/#/r/8cr shouldn't this work?
<hangyas> I know it doesn't make sense in ruby, but works in java, and would be cool anyway
hosiawak has joined #crystal-lang
<crystal-gh> [crystal] porras opened pull request #1041: Array(T)#* (master...array-multiplication) http://git.io/vYwQZ
yie_ has joined #crystal-lang
<willl> hangyas: open an issue on github maybe. Without thinking too much about it, I agree that should work
<hangyas> kk
havenwood has quit [Ping timeout: 240 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybas_ has joined #crystal-lang
leafybasil has quit [Ping timeout: 244 seconds]
BlaXpirit has quit [Quit: Konversation]
hangyas has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
_whitelogger___ has joined #crystal-lang
_whitelogger__ has quit [Ping timeout: 240 seconds]
aemadrid has quit [Ping timeout: 240 seconds]
emmanueloga has quit [Ping timeout: 240 seconds]
DeBot has quit [Ping timeout: 240 seconds]
flaviu has quit [Ping timeout: 240 seconds]
aemadrid_ is now known as aemadrid
emmanueloga_ is now known as emmanueloga
flaviu has joined #crystal-lang
_whitelogger___ has joined #crystal-lang
zipR4ND has quit [Ping timeout: 272 seconds]
strcmp1 has joined #crystal-lang
luislavena has joined #crystal-lang
DeBot has joined #crystal-lang
unshadow has joined #crystal-lang
havenwood has joined #crystal-lang
<unshadow> jhass: do we have .send in crystal too ?
<jhass> no
<jhass> how would you imagine the compiler to figure out the return type?
<jhass> or the arity?
<unshadow> jhass: It couldn't ... makes sense ^^
unshadow has quit [Quit: leaving]
dwahl has joined #crystal-lang
<crystal-gh> [crystal] yui-knk opened pull request #1044: [ci skip] Add docs for class_name macro method (master...docs/class_name) http://git.io/vYKeG
zipR4ND has joined #crystal-lang
waj has joined #crystal-lang
salvor has quit [Ping timeout: 250 seconds]
mgarciaisaia has joined #crystal-lang
salvor has joined #crystal-lang
dwahl has quit [Ping timeout: 255 seconds]
dwahl has joined #crystal-lang
hosiawak` has joined #crystal-lang
hosiawak has quit [Ping timeout: 255 seconds]
BlaXpirit has joined #crystal-lang
BlaXpirit has joined #crystal-lang
blue_deref has joined #crystal-lang
trgk has joined #crystal-lang
<crystal-gh> [crystal] yui-knk opened pull request #1045: Add tests for `String#*` (arg is negative) (master...test/string_multi) http://git.io/vYKgZ
<crystal-gh> [crystal] yui-knk closed pull request #1045: Add tests for `String#*` (arg is negative) (master...test/string_multi) http://git.io/vYKgZ
<crystal-gh> [crystal] yui-knk opened pull request #1046: Remove pending of `"\0\0".length` (master...test/string_length) http://git.io/vYK2u
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vYK9o
<crystal-gh> crystal/master d010235 Ary Borenszweig: Fixed CSV parsing regarding `\r`
<crystal-gh> crystal/master 6d12d48 Ary Borenszweig: Raise ArgumentError on negative argument in `String#*`
<crystal-gh> crystal/master c64b23e Ary Borenszweig: Make Array.new raise ArgumentError on negative size
shama has joined #crystal-lang
dwahl has quit [Ping timeout: 244 seconds]
lokulin has quit [Ping timeout: 256 seconds]
<travis-ci> manastech/crystal#6d12d48 (master - Raise ArgumentError on negative argument in `String#*`): The build passed. https://travis-ci.org/manastech/crystal/builds/72852383
waj has quit [Ping timeout: 240 seconds]
dwahl has joined #crystal-lang
lokulin has joined #crystal-lang
blue_deref has quit [Quit: bbn]
dwahl has quit [Ping timeout: 264 seconds]
trgk has quit [Ping timeout: 246 seconds]
hosiawak` has quit [Ping timeout: 246 seconds]
mgarciaisaia has quit [Ping timeout: 244 seconds]
mgarciaisaia has joined #crystal-lang
dwahl has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Read error: Connection reset by peer]
fkchang has joined #crystal-lang
<fkchang> is there an example on how to setup websockets w/Http::Server? Looking at the code and specs didn't make it apparent to me. BTW, great job w/crystal, I really like what I've experienced
zipR4ND has quit [Ping timeout: 246 seconds]
<dwahl> fkchang: i've been fooling around with crystal and have some very bad code that does some stuff around unix sockets. it might set you on the right path. it might also set you on a very wrong path
NeverDie has joined #crystal-lang
<jhass> never used that interface, but reading the code receiving should be something like http://carc.in/#/r/8er
<jhass> sending seems to be missing
<jhass> well, the delegates on the session do, something like session.@ws.send(...) would probably work
<jhass> (yes, that's breaking encapsulation and is not the proper interface)
<jhass> fkchang: ^
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 250 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<fkchang> dwahl: jhass: thanks, I'll check it out. If I figure it out and document it, is there a place I should put it and make a PR?
<jhass> fkchang: just as doc comments about the handler would be great I'd say
<jhass> *above
<fkchang> jhass: ok, got it, thx
<thor77> it would be rly great to have some more method-explanations at /api
<thor77> at least one sentence for every method would be very helpful
<thor77> yeah, will do that as soon as i can figure out something ;D
<thor77> >> ":" == ':'
<DeBot> thor77: # => false - http://carc.in/#/r/8ex
<jhass> >> ':' == ":"
<DeBot> jhass: # => false - http://carc.in/#/r/8ey
<jhass> mmh, debatable
<thor77> '' => char "" => string?
<jhass> yeah
<jhass> >> ":" === ':'
<DeBot> jhass: # => false - http://carc.in/#/r/8ez
<jhass> ^ would make sense I guess
<jhass> since === is the looser variant
<jhass> (used in case statements for example)
<thor77> wut. where can i read some more about ===?
<thor77> >> typeof(':'); typeof(":")
<DeBot> thor77: # => String - http://carc.in/#/r/8f0
<thor77> >> typeof(':')
<DeBot> thor77: # => Char - http://carc.in/#/r/8f1
<jhass> uh, at the API docs? :P
<thor77> ... :(
<jhass> >> {typeof(":"), typeof(':')} # Tuples are great ;)
<DeBot> jhass: # => {String, Char} - http://carc.in/#/r/8f2
<dwahl> >> ':' == ":" as Char
<DeBot> dwahl: Error in line 4: can't cast String to Char - http://carc.in/#/r/8f3
<dwahl> >> ':' as String == ":"
<thor77> someone with a lot of time and good english-skills should contribute to doc + api :/
<DeBot> dwahl: Error in line 4: can't cast Char to String - http://carc.in/#/r/8f4
* thor77 doesn't have that good english skills
<dwahl> if you cant cast between them I think loose equality doesn't make sense
<crystal-gh> [crystal] bcardiff pushed 5 new commits to master: http://git.io/vY69i
<crystal-gh> crystal/master 71f49ff Anton Davydov: Update HTML::Builder library...
<crystal-gh> crystal/master 7b44332 Brian J. Cardiff: Avoid creation of intermediate hashes and strings
<crystal-gh> crystal/master 3e15c31 Brian J. Cardiff: Rephrase docs. Show tagname in caps.
<jhass> dwahl: well, you can convert losslessly (for those particular instances)
<jhass> in Ruby === even calls procs :P
<dwahl> hahaha i did not know that
<jhass> >> ":".chars.first == ':'
<DeBot> jhass: # => true - http://carc.in/#/r/8f5
<dwahl> ruby is a little bit horrifying sometimes, though.
luislavena has quit [Remote host closed the connection]
<dwahl> jhass: haha, wow.
<wmoxam> amazing
NeverDie has joined #crystal-lang
fkchang has quit [Ping timeout: 260 seconds]
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
kulelu88 has joined #crystal-lang
orliesaurus is now known as thibaultcha
thibaultcha is now known as orliesaurus
fkchang has joined #crystal-lang
luislavena has joined #crystal-lang
luislavena has quit [Ping timeout: 246 seconds]
blue_deref has joined #crystal-lang
luislavena has joined #crystal-lang
<crystal-gh> [crystal] kumpelblase2 opened pull request #1048: [WIP] Allow for sending masked data from websocket. (master...patch-1) http://git.io/vYi7c
<crystal-gh> [crystal] elia opened pull request #1049: SVG badges to please the eyes
<crystal-gh> [crystal] asterite closed pull request #1049: SVG badges to please the eyes
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
<thor77> >> 1 in [1, 2, 3]
<DeBot> thor77: Syntax error in eval:4: unexpected token: in - http://carc.in/#/r/8g3
<thor77> >> [1, 2, 3].contains 1
<DeBot> thor77: Error in line 4: undefined method 'contains' for Array(Int32) - http://carc.in/#/r/8g4
<thor77> >> [1, 2, 3].to_a
<DeBot> thor77: # => [1, 2, 3] - http://carc.in/#/r/8g5
<thor77> is there no "x contains y" thing?
<jhass> >> [1, 2, 3].includes? 1
<DeBot> jhass: # => true - http://carc.in/#/r/8g6
<thor77> can't find that at api => Array o.O
Dreamer3 has joined #crystal-lang
<travis-ci> manastech/crystal#e8de5e7 (master - Merge pull request #1049 from elia/patch-1): The build passed. https://travis-ci.org/manastech/crystal/builds/72901076
<thor77> >> {"abc" => 1, "def" => 2}.includes? "abc"
<DeBot> thor77: Error in line 4: undefined method 'includes?' for Hash(String, Int32) - http://carc.in/#/r/8g7
<dwahl> thor77, it's in the enumerable module
<thor77> >> {"abc" => 1, "def" => 2}.has_key? "abc"
<DeBot> thor77: # => true - http://carc.in/#/r/8g8
<thor77> \o/
<jhass> thor77: includes? is on Enumerable apparently
nahtnam has joined #crystal-lang
leafybasil has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
dwahl has quit [Ping timeout: 246 seconds]
Raimondi has joined #crystal-lang
dbackeus has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vYPlu
<crystal-gh> crystal/master 86a0c94 Ary Borenszweig: Fixed #1040: crash when using `return` in macro def
<crystal-gh> crystal/master a5ff385 Ary Borenszweig: Better error message when compiler crashes when a node has no type
<crystal-gh> crystal/master 5c9a4ad Ary Borenszweig: Fixed #1042: overload match problem with splat arg
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #crystal-lang
<kulelu88> Does Crystal have a parser file? Would it be possible to write my own transpiler and piggyback off crystal/
NeverDie has quit [Client Quit]
<jhass> kulelu88: https://github.com/manastech/crystal_ruby/blob/master/src/processor.cr should give some inspiration
<kulelu88> wow, short and sweet
<jhass> it's a bit incomplete I guess ;)
<kulelu88> jhass: I found this. I don't know how applicable this language is to the world: https://wiki.gnome.org/Projects/Genie . Opinions??
<jhass> I'm not sure what you're asking tbh
<kulelu88> general opinion?
<kulelu88> can't be too specific with such a strange language :D
<jhass> it's another language, nothing too exciting about, probably more appealing to the pythonista
<travis-ci> manastech/crystal#5c9a4ad (master - Fixed #1042: overload match problem with splat arg): The build passed. https://travis-ci.org/manastech/crystal/builds/72908674
<kulelu88> it comes from the stable Vala set, so would it be viable to try building compiled languages from it?
<jhass> it = vala?
<thor77> https://github.com/Thor77/crystal-irc just finished some basic functionality for my irc-libary \o/
<jhass> nice
<thor77> hope my event-subscription-things aren't too bad
<kulelu88> Genie = transpiler written to use Vala compiler (or whatever Vala uses)
<jhass> thor77: mmmh, so far most loosely follow http://guides.rubygems.org/name-your-gem/
<thor77> uh, okey. will create a new repo
<jhass> you can rename repos
<thor77> oh, right
<kulelu88> what did you change the name to? its still the same
mgarciaisaia1 has quit [Quit: Leaving.]
<jhass> kulelu88: s/-/_/
<thor77> ^
luislavena has quit []
dbackeus has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
Dreamer3 has quit [Read error: Connection reset by peer]
Dreamer3 has joined #crystal-lang
fkchang has quit [Remote host closed the connection]
fkchang has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<crystal-gh> [crystal] yui-knk opened pull request #1050: [ci skip] Fix returned type of `Def#body` (master...doc/fix_body) http://git.io/vYXIH
bcardiff has joined #crystal-lang