RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.0 | Fund Crystals 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
Raimondi has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
mati_urunda has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 248 seconds]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 4 new commits to master: https://git.io/v1I37
<crystal-gh> crystal/master acb1909 Ary Borenszweig: Fixed formatter bug related to else followed by colon inside case
<crystal-gh> crystal/master e8e74c7 Ary Borenszweig: Spec: consider line equality also when end line is missing
<crystal-gh> crystal/master f670945 Ary Borenszweig: Fixed #3578: abstract struct as argument breaks when building in debug mode
<travis-ci> crystal-lang/crystal#6117bed (master - Reformat file after formatter fix): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/179316345
<crystal-gh> [crystal] MakeNowJust opened pull request #3599: Correct (l|r)strip example (master...fix/lr-strip-doc) https://git.io/v1IGu
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
x0f has joined #crystal-lang
x0f_ has quit [Ping timeout: 258 seconds]
vikaton has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 256 seconds]
bjz has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden pushed 1 new commit to master: https://git.io/v1I0g
<crystal-gh> crystal/master eff31e5 TSUYUSATO Kitsune: Correct (l|r)strip example [ci skip] (#3599)
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Nik736 has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
vasilakisfil has joined #crystal-lang
vasilakisfil has quit [Client Quit]
vasilakisfil has joined #crystal-lang
akwiatkowski has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 256 seconds]
gloscombe has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #3601: Correct IO#read_fully example (master...fix/io-read-fully-example) https://git.io/v1I1q
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has quit [Remote host closed the connection]
gloscombe has quit [Ping timeout: 248 seconds]
gloscombe has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 268 seconds]
soveran has joined #crystal-lang
A124 has joined #crystal-lang
hako_ has joined #crystal-lang
hako has quit [Ping timeout: 258 seconds]
soveran_ has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
gloscombe has quit [Remote host closed the connection]
gloscombe has joined #crystal-lang
<FromGitter> <agibralter> Does anyone have a suggestion on a mocking library to use?
AckZ has quit []
<BlaXpirit> none if at all possible
Philpax has quit [Ping timeout: 260 seconds]
<FromGitter> <agibralter> So basically depend on dependency injection and pass in fakes?
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
<FromGitter> <agibralter> Also, what would be a good way for me to handle executing a system command that tails logs (e.g. `\`tail -f some/log.log\``) such that I can handle an interrupt from the user (ctrl-C) and not have crystal error out?
shawn42 has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran_ has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
soveran has joined #crystal-lang
<FromGitter> <yxhuvud> You can trap the signal. Dunno where to find documentation on that though
hako_ has quit [Ping timeout: 260 seconds]
vivus-ignis has joined #crystal-lang
<FromGitter> <firejox> Is there a way to expand the argument of macro like c macro ?
pduncan has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <cjgajard> maybe you can try with macro escaping `\{% ` or `\{{`. what do you need it for?
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
x0f has quit [*.net *.split]
FromGitter has quit [*.net *.split]
foca has quit [*.net *.split]
_jungh4ns has quit [*.net *.split]
foca has joined #crystal-lang
FromGitter has joined #crystal-lang
x0f has joined #crystal-lang
krsh has joined #crystal-lang
soveran has quit [Remote host closed the connection]
krsh has quit [Client Quit]
<FromGitter> <firejox> something like this. I want the inner macro would be expanded. ⏎ https://gist.github.com/firejox/04dee41a4d71e9334ff157b5f4a30b75
<FromGitter> <agibralter> Ah, I saw that signal trapping: https://github.com/crystal-lang/crystal/issues/1968#issuecomment-167014345. Any idea how to then send a signal to the process I fired up?
_jungh4ns has joined #crystal-lang
vivus-ignis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
krsh has joined #crystal-lang
krsh has quit [Client Quit]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1Lz9
<crystal-gh> crystal/master 0f2933a Sijawusz Pur Rahnama: Ditch code scheduled for removal after 0.19
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <paulcsmith> Is there a macro hook for injecting code at the *bottom* instead of the top? I'm trying to make it so that if I forgot to check for authorization it fails to compile. Here is a simplified example of what I'm attempting to do: https://gist.github.com/paulcsmith/226ef9a8265875a5d933d7386a029934
soveran has joined #crystal-lang
<FromGitter> <fridgerator> came across this article on Hacker News that mentions Crystal FYI : http://patshaughnessy.net/2016/11/26/learning-to-read-x86-assembly-language
<FromGitter> <sdogruyol> Pat is a great writer
<travis-ci> crystal-lang/crystal#0f2933a (master - Ditch code scheduled for removal after 0.19): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/179491330
vivus-ignis has joined #crystal-lang
x0f_ has joined #crystal-lang
x0f has quit [Ping timeout: 258 seconds]
gloscombe has quit [Quit: Lost terminal]
rolha has joined #crystal-lang
<rolha> hi everyone
<rolha> this might sound thick ... but where is the power method in 'Math'? I've tried looking in https://crystal-lang.org/api/0.19.4/Math.html, but I couldn't find it...
<RX14> rolha, you can use x ** y
<rolha> duh ... thanks :)
<rolha> does it support Floats, etc?
<RX14> yes
<rolha> brilliant, thanks!
vikaton has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
rolha has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
akwiatkowski has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
mati_urunda has joined #crystal-lang
<FromGitter> <jwoertink> I'm taking a look at the examples for using `String#match` on here https://crystal-lang.org/api/0.20.0/Regex/MatchData.html, but I'm getting `'String#match' is not expected to be invoked with a block` error
<FromGitter> <jwoertink> Getting this on 0.20.0 as well (even though playground shows 0.19.4)
<FromGitter> <jwoertink> it looks like none of these methods in the docs work..... or I'm doing something wrong here?
<FromGitter> <jwoertink> hmm yeah, looks like no block is defined https://github.com/crystal-lang/crystal/blob/master/src/string.cr#L2933
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
A124 has quit [Ping timeout: 268 seconds]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
akwiatkowski has joined #crystal-lang
bjz has quit [Ping timeout: 246 seconds]
<FromGitter> <spalladino> > **<mussela>** I mean being able to eval code at runtime ⏎ ⏎ ⏎ @mussela just read this. There's someone building a dynamic language interpreter on top of crystal: https://github.com/KCreate/charly-lang. Though it's marked as not prod-ready, it might be useful for you if you need some sort of scripting language that can run from Crystal. As another option, there are at least 3 implementations of LISP interpreters in
<FromGitter> <crisward> Does anyone know if it's possible to get a list of files and loop over their names in a macro?
<FromGitter> <cjgajard> @crisward get a list of files.. from?
<FromGitter> <spalladino> @crisward you can always call an external program via the `run` macro. You can loop over files in that program, and return whatever you need to be inserted as a macro. https://crystal-lang.org/api/0.20.0/Crystal/Macros.html#run%28filename%2C%2Aargs%29%3AMacroId-instance-method
<FromGitter> <crisward> @spalladino Thanks - think that's what they're doing here - https://github.com/ysbaddaden/artanis/blob/master/src/render.cr#L20
<FromGitter> <spalladino> If a system command does the trick for you, then yeah, you can always use https://crystal-lang.org/api/0.20.0/Crystal/Macros.html#%60%28command%29%3AMacroId-instance-method
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
muelleme has joined #crystal-lang
vivus-ignis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
matp has quit [Read error: Connection reset by peer]
matp_ has joined #crystal-lang
bjz has joined #crystal-lang
Nik736 has quit [Quit: Textual IRC Client: www.textualapp.com]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
muelleme has quit [Ping timeout: 244 seconds]
soveran has quit [Remote host closed the connection]
vikaton has quit [Quit: Connection closed for inactivity]
bmcginty has quit [Ping timeout: 260 seconds]
bmcginty has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran_ has joined #crystal-lang
bmcginty has quit [Ping timeout: 260 seconds]
soveran has quit [Read error: Connection reset by peer]
<crystal-gh> [crystal] krissi opened pull request #3603: [WIP] Implement Pathname (master...pathname) https://git.io/v1two
am_ has joined #crystal-lang
soveran_ has quit [Remote host closed the connection]
am_ has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1tKJ
<crystal-gh> crystal/master 4439f2d Ary Borenszweig: Spec: explain why comparing against the line is needed
akwiatkowski has quit [Ping timeout: 264 seconds]