ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.5 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
soveran has quit [Ping timeout: 255 seconds]
<crystal-gh> [crystal] asterite opened pull request #3960: Compiler: emit simpler debug info for code generated by macros (master...feature/fix_macro_debug_info) https://git.io/vDIMr
<DeBot> https://github.com/crystal-lang/crystal/pull/3960 (Compiler: emit simpler debug info for code generated by macros)
<jeromegn> any good way to track down a memory leak? I tried the Instruments.app that comes with xcode and I saw that *Dirty* memory was growing quite a bit over time. However, that's not nearly enough information to plug the leak.
<jeromegn> It also seems like not using SSL reduces the leak quite a bit
<crystal-gh> [crystal] asterite fast-forwarded master from 4c15dec to 03e69b7: https://git.io/vDIyY
soveran has joined #crystal-lang
<jeromegn> going to give valgrind a shot
soveran has quit [Remote host closed the connection]
<FromGitter> <maiha_twitter> Hi! I used `0.20.5` for the first time now, the compile becomes slower. And it seems that no caches are used. Is this a known issue?
<FromGitter> <maiha_twitter> The compile time for my app. ⏎ `0.20.4`: 11.4s(1st time) -> 3.0s(2nd time) ⏎ `0.20.5`: 16.5s(1st time) -> 15.0s(2nd time)
voldz1tic3n has joined #crystal-lang
<voldz1tic3n> Hi I'm José. Is there anyone here willing to answer my simple question?
<voldz1tic3n> Sorry about that, on second thought it isn't such a simple question -- in fact it is debatable (after googling it myself).
Kug3lis has joined #crystal-lang
Kug3lis is now known as Kug3lis_off
<FromGitter> <asterite> maiha I found that too today, check the last PR I submitted. I guess it deserves a new release after the fix
<FromGitter> <maiha_twitter> @asterite Nice! I'll try with master branch. Thanks :smile:
voldz1tic3n has quit [Read error: Connection reset by peer]
<FromGitter> <martinium> what is the proper Crystal naming convention for a module?
<FromGitter> <martinium> Same as a class aka Capital letter at the beginning?
<FromGitter> <martinium> nevermind Documentation confirmed it
<FromGitter> <martinium> :D
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
unshadow has quit [Ping timeout: 245 seconds]
Kug3lis_off is now known as Kug3lis
Kug3lis is now known as Kug3lis_off
soveran has joined #crystal-lang
unshadow has joined #crystal-lang
mark_66 has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #3961: Fix `Enum#to_s` to wrap flag enums with parens (master...fix/enum/to_s_wrap_multiple_flags) https://git.io/vDLsz
<DeBot> https://github.com/crystal-lang/crystal/pull/3961 (Fix `Enum#to_s` to wrap flag enums with parens)
gloscombe has joined #crystal-lang
<crystal-gh> [crystal] mjago opened pull request #3962: Make links of hyperlinks (documentation) (master...master) https://git.io/vDLCf
<DeBot> https://github.com/crystal-lang/crystal/pull/3962 (Make links of hyperlinks (documentation))
unshadow has quit [Ping timeout: 240 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 260 seconds]
Raimondii is now known as Raimondi
akwiatkowski has joined #crystal-lang
Kug3lis_off is now known as Kug3lis
bjz has joined #crystal-lang
<akwiatkowski> Hello. Week ago I've started commandline organizer https://github.com/akwiatkowski/ocranizer Now it has updated readme, and core features are ready. Do you know is it possible to test commands using OptionParser ?
Kug3lis is now known as Kug3lis_off
<RX14> akwiatkowski, you could create the option parser using .new and pass in ARGV when running, or pass in a custom array when running specs
soveran has quit [Remote host closed the connection]
<FromGitter> <mosop> hi. anyone knows where is a prebuilt Crystal binary for alpine linux?
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<RX14> @mosop there isn't an official one at least
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 245 seconds]
mosop has joined #crystal-lang
mosop has quit [Ping timeout: 260 seconds]
<FromGitter> <mosop> thanks RX. i'll try it myself.
unshadow has joined #crystal-lang
danielpclark has quit [Remote host closed the connection]
bjz_ has quit [Ping timeout: 255 seconds]
bjz has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #3960: Compiler: emit simpler debug info for code generated by macros (master...feature/fix_macro_debug_info) https://git.io/vDIMr
<DeBot> https://github.com/crystal-lang/crystal/pull/3960 (Compiler: emit simpler debug info for code generated by macros)
<travis-ci> crystal-lang/crystal#f69e37e (master - Compiler: emit simpler debug info for code generated by macros): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/196930170
<travis-ci> crystal-lang/crystal#f69e37e (master - Compiler: emit simpler debug info for code generated by macros): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/196930170
bungoman_ has joined #crystal-lang
bungoman has quit [Ping timeout: 255 seconds]
<akwiatkowski> RX14: thank you!
soveran has quit [Remote host closed the connection]
<FromGitter> <crisward> anyone know how to use `JSON::PullParser` with `read_array`?
daekano has quit [Ping timeout: 256 seconds]
daekano has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
<FromGitter> <crisward> think I've worked it out...
<akwiatkowski> Where are samples of using `before_each` in Spec?
mgarciaisaia has quit [Client Quit]
mgarciaisaia has joined #crystal-lang
marciogm has quit [Changing host]
marciogm has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 255 seconds]
mikedev has joined #crystal-lang
<akwiatkowski> RX14: sorry for interrupting, do you have any samples how to use `before_each` in Spec?
unshadow has quit [Quit: leaving]
<FromGitter> <crisward> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5890ad0c4c04e9a44e52b9f5]
<FromGitter> <crisward> something like that
<akwiatkowski> Thank you!
<akwiatkowski> crisward: is possible to setup variables within `before_each` ?
mikedev has quit [Quit: Page closed]
<FromGitter> <crisward> Not sure... is it not working?
<Yxhuvud> http://blog.redpanthers.co/behind-scenes-hash-table-performance-ruby-2-4/ was pretty interesting. They get a lot better performance by going away from a hash based on linked list to one based on only two arrays. (relevant as crystal use basically the same strategy as Ruby used before the change)
<akwiatkowski> crisward it looks like it's not working, not possible to setup variable or instance variable `@var`
nlf has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
mark_66 has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
_whitelogger has joined #crystal-lang
gloscombe has quit [Quit: Lost terminal]
akwiatkowski has quit [Ping timeout: 245 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 245 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<FromGitter> <drosehn> That article on hash-table tactics does look interesting.
<FromGitter> <Chyzwar> probly supper simple but how you will call superclass initialize?
<FromGitter> <Chyzwar> super.new
<FromGitter> <Chyzwar> ?
soveran has quit [Remote host closed the connection]
<FromGitter> <Sija> @Chyzwar `super` refers to superclass’ method, in this case `initialize`
pduncan has quit [Ping timeout: 255 seconds]
<FromGitter> <Chyzwar> I see thanks, this worked, compiler exploded for different reason.
<FromGitter> <Chyzwar> :)
akwiatkowski has joined #crystal-lang
<manveru> anyone know of a PEG implementation in crystal?
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
DeBot has quit [Quit: Crystal IRC]
DeBot has joined #crystal-lang
DeBot has quit [Client Quit]
DeBot has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
matp has quit [Quit: ZZzzzZz...]
matp has joined #crystal-lang
Kug3lis_off is now known as Kug3lis
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
soveran has quit [Remote host closed the connection]
bjz has joined #crystal-lang
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #crystal-lang
p0p0pr37 has joined #crystal-lang
<Yxhuvud> AFAIK, none exist.
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FromGitter has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Bye]
FromGitter has joined #crystal-lang
BlaXpirit has joined #crystal-lang
<manveru> hmm, why is `1 / 1` a syntax error, but `(1 / 1)` isn't?
<manveru> minimal example is: case 1; when 1; 1 / 2; end
<FromGitter> <Sija> @manevru `crystal eval "pp 1 / 1”` => `1 / 1 # => 1`
<Papierkorb> Sija, try the case snippet manveru posted, it fails with `Syntax error in eval:1: unexpected token: DELIMITER_START` for me
<manveru> sorry, i wasn't clear, not sure if it's only happening in a case, but it was a bit... unexpected :)
<FromGitter> <Sija> @Papierkorb indeed, although `1 / 1` alone doesn’t exhibit this behaviour
<Papierkorb> `if 1/2; end` works fine though
<manveru> all other operators work, i guess it's trying to parse a regex or something
<Papierkorb> Was my guess too, so I tried `case 1; when 1; 1 / 2/; end` but got the same error. I expected a different error. (or maybe my test case was just stupid, it's getting late :) )
<FromGitter> <Sija> looks like a candidate for bug report :)
<manveru> ok, was just making sure it's not a mistake on my part :)
soveran has joined #crystal-lang
danielpclark has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
mgarciaisaia has quit [Quit: Leaving.]