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
mgarciaisaia has quit [Ping timeout: 240 seconds]
dfockler has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
sailorswift has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 252 seconds]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sailorswift has joined #crystal-lang
mgarciaisaia1 has quit [Remote host closed the connection]
strcmp2 has joined #crystal-lang
havenwood has joined #crystal-lang
strcmp1 has quit [Ping timeout: 244 seconds]
<dzv> maybe a puppet, chef or other recipe would be helpful for installing dependencies
shama has quit [Remote host closed the connection]
havenwood has quit [Read error: Connection reset by peer]
<vifino> Huh. Spawn doesn't spawn multiple threads it seems.
<vifino> At least it doesn't run them all at once..
nahtnam has joined #crystal-lang
<vifino> I see. `spawn` spawns green threads.
<vifino> Oh well. I hope this gets fixed soon..
havenwood has joined #crystal-lang
sergey-kucher_ has joined #crystal-lang
shama has joined #crystal-lang
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 244 seconds]
shama has quit [Remote host closed the connection]
adam12 has joined #crystal-lang
sergey-kucher_ has quit [Ping timeout: 246 seconds]
nahtnam has quit [Quit: Connection closed for inactivity]
havenwood has joined #crystal-lang
shama has joined #crystal-lang
shama has quit [Ping timeout: 244 seconds]
shama has joined #crystal-lang
BlaXpirit has joined #crystal-lang
<jhass> vifino: spawn spawns coroutines. And yeah, the plan is that they're automatically distributed to a thread pool, similar to Go
dbackeus has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
<vifino> jhass: Sounds awesome. ETA? ;)
<jhass> nope
<vifino> Aww.
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
havenwood has quit [Ping timeout: 255 seconds]
sandelius has joined #crystal-lang
Ven has joined #crystal-lang
<dbackeus> I have an implementation of something very much like this: http://play.crystal-lang.org/#/r/7zr
<dbackeus> where typeof would return Test? instead of Test
<dbackeus> but I can't see how it could possibly be nil
<dbackeus> can I force the compiler to not treat it as nilable or is there a good way of tracking down how the compiler believes it to be?
<jhass> you can call .not_nil! which raises at runtime if it is in fact nil
<jhass> but in your example it can't, right
<jhass> so it's hard to judge from it where the possible nil in your real code comes from
<dbackeus> thanks
salvor has quit [Changing host]
salvor has joined #crystal-lang
<salvor> if you know the type of a variable and know if can't be nil at this point, you can also "var = var as MyType" to help the compiler a little
<salvor> benefit = it can be used for other type problems as well
<dbackeus> in ruby you can do [[1,2]].each { |x,y| ... } to "splat" a multidimensional array, is somethings similar possible in Crystal?
Ven has quit [Ping timeout: 246 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #crystal-lang
Ven has joined #crystal-lang
<dbackeus> is there any way of dynamically constantizing a string in runtime (like active supports "Module::Class".constantize)?
zipR4ND has joined #crystal-lang
<zipR4ND> hello, still fiddling with inheritance problems and class macros + constants. can you tell me how to solve this issue: http://carc.in/#/r/806
dbackeus has quit [Remote host closed the connection]
<jhass> zipR4ND: maybe we can find a solution to your actual goal?
dbackeus has joined #crystal-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<salvor> dbackeus: maybe you can reimplement Array#flatten? something like this: http://play.crystal-lang.org/#/r/80c
<salvor> (you lose type information doing that tho, maybe you should refine that to your specific use case)
<dbackeus> salvor: thanks for the hint, though I ended up working around the problem instead
<salvor> ok ! was fun to try that anyway ;)
<zipR4ND> jhass: my goal is to get this working: http://carc.in/#/r/80d the problem seems to be that the CHILDREN_NAMES and other constants are not uniqe for each class, so the definition of ASecondThing changes the children of AThing ... I want the class macros to work properly the way they are used in the example ...
<jhass> ah, still trying to match a Ruby API 100% :/
<zipR4ND> jhass: http://carc.in/#/r/80g more slim
<zipR4ND> jhass: yes, i am striving for the concise api, they way the classes are defined ..
<zipR4ND> i'am ok if everything is evaluated at compile time ..
ponga has quit []
zipR4ND has quit [Ping timeout: 255 seconds]
<dbackeus> is it possible to overload is_a?
<dbackeus> specifically could a program be convinced to understand the StringWrapper as a String: https://github.com/manastech/crystal/blob/42efdbf797349d70c1e2e4c0ece607c6ed419077/src/object.cr#L534-L539
willl has joined #crystal-lang
<BlaXpirit> dbackeus, i would bet no
<BlaXpirit> i mean, u can just try
<dbackeus> yeah regular overloading doesn't do anything
<dbackeus> it just ignores it
<dbackeus> it seemed like
havenwood has joined #crystal-lang
<dbackeus> is creating regex via interpolation possible like in ruby? (puts typeof(/#{"\s"}/) => String)
<jhass> is_a? is special cased in the compiler to affect type interference, so no you can't modify its behavior
<jhass> >> "foo".match(/f#{"o"}o/)
<DeBot> jhass: Syntax error in eval:7: unknown token: 'n' - http://carc.in/#/r/80k
<jhass> mmh
<jhass> >> "foo".match(Regex.new %(f#{"o"}o))
<DeBot> jhass: Syntax error in eval:7: unknown token: 'n' - http://carc.in/#/r/80l
<jhass> wat
<jhass> >> "f#{"o"}o"
<DeBot> jhass: # => "foo" - http://carc.in/#/r/80m
<jhass> idk, in theory it should be possible I'd say
<dbackeus> so would this be worth mentioning in a github issue? http://play.crystal-lang.org/#/r/80u
<asterite> dbackeus: No, it's this bug: https://github.com/manastech/crystal/issues/1011
<asterite> it's supposedly fixed in head
<dbackeus> would be nice if play.crystal-lang.org had a "HEAD" or "nightly" version option for these cases
waj has joined #crystal-lang
zipR4ND has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
jtarchie has quit []
jtarchie has joined #crystal-lang
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 252 seconds]
strcmp2 has quit [Quit: Leaving]
Ven has quit [Quit: Textual IRC Client: www.textualapp.com]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
dfockler has joined #crystal-lang
waj has quit [Quit: waj]
<dzv> how would i call c macros? or get sizeof(opaque structs) that vary between systems and versions? i could create c functions that wrap the macros and sizeof but i don't see a way to get that in to the build process
waj has joined #crystal-lang
zipR4ND has quit [Ping timeout: 246 seconds]
waj has quit [Ping timeout: 260 seconds]
waj has joined #crystal-lang
NeverDie has joined #crystal-lang
endou___________ has quit []
endou___________ has joined #crystal-lang
sergey-kucher_ has joined #crystal-lang
dfockler has left #crystal-lang [#crystal-lang]
n1ftyn8_ has quit []
n1ftyn8_ has joined #crystal-lang
shama has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
sailorswift has joined #crystal-lang
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
sergey-kucher_ has quit [Ping timeout: 246 seconds]
kulelu88 has joined #crystal-lang
havenwood has joined #crystal-lang
havenwood has quit [Ping timeout: 272 seconds]
sandelius has joined #crystal-lang
DeBot has quit [Read error: Connection reset by peer]
willl has quit [Quit: Connection closed for inactivity]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has joined #crystal-lang
<asterite> We just launched a fundraising campaign in bountysource: https://www.bountysource.com/teams/crystal-lang/fundraisers/702-crystal-language
<asterite> jhass: maybe we can mention that in the channel's topic?
<jhass> cool
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
<jhass> like this?
waj has quit [Ping timeout: 252 seconds]
<asterite> jhass: Thanks!
<jhass> yw
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<asterite> jhass: and THANKS! <3
sailorswift has joined #crystal-lang
<jhass> can't give much, but yw
<jhass> guess it's time to make a HN account so I can upvote :D
<jhass> did you post to HN yet?
<havenwood> the HN post got flagged and killed
<jhass> wat, why that? :(
<havenwood> i don't know who flagged it, but it seems inline with HN guidelines to me so i think it was misflagged
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> there's no unflag - I don't HN enough to know backchannels
nahtnam has joined #crystal-lang
<jhass> well, asterite make sure to link any other SN posts you do so we can push them at least a bit ;)
BlaXpirit has quit [Quit: Konversation]
mgarciaisaia has quit [Quit: Leaving.]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vYnRA
<crystal-gh> crystal/master dc65ecf Ary Borenszweig: Added Bountysource badge
<jhass> mmh, would posting to rubyflow be too shameless? :P
<asterite> havenwood: thanks! (and thanks for suggesting bountysource, seems to be a nice platform)
<havenwood> asterite: you're welcome! thank you!!
<travis-ci> manastech/crystal#dc65ecf (master - Added Bountysource badge): The build passed. https://travis-ci.org/manastech/crystal/builds/72370539
dwahl has joined #crystal-lang
<havenwood> upvoted :)
<asterite> upvoted too! :)
DeBot has joined #crystal-lang
<kulelu88> I thought Crystal Reports and threw up in my mouth a little bit. :D :D :D
blue_deref has joined #crystal-lang
havenwood has quit [Ping timeout: 246 seconds]
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has joined #crystal-lang
guilleiguaran__ has quit []
guilleiguaran__ has joined #crystal-lang
kulelu88 has left #crystal-lang ["Leaving"]
waj has joined #crystal-lang