ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
faustinoaq has quit [Quit: IRC client terminated!]
ashirase has quit [Ping timeout: 248 seconds]
ashirase has joined #crystal-lang
saadq has quit [Ping timeout: 258 seconds]
saadq has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
olbat[m] has joined #crystal-lang
leaf123 has joined #crystal-lang
leaf123 has quit [Client Quit]
vivus has joined #crystal-lang
braidn[m] has joined #crystal-lang
byteflame has joined #crystal-lang
galstar[m] has joined #crystal-lang
tybee[m] has joined #crystal-lang
cptaffe has joined #crystal-lang
dtcristo has joined #crystal-lang
phase[m] has joined #crystal-lang
kp666[m] has joined #crystal-lang
TheGillies has joined #crystal-lang
watzon has joined #crystal-lang
thelonelyghost has joined #crystal-lang
Renich has joined #crystal-lang
weston_[m] has joined #crystal-lang
sija[m] has joined #crystal-lang
vikaton has joined #crystal-lang
<FromGitter> <SplittyDev> Hey, I'm having a very strange issue..
<FromGitter> <SplittyDev> ```addr.as(UInt32*).value = GUARD1 ⏎ raise "WTF" unless addr.as(UInt32*).value == GUARD1``` [https://gitter.im/crystal-lang/crystal?at=5a29f22dcc1d527f6b053e93]
<FromGitter> <SplittyDev> This raises.
<FromGitter> <pnloyd> @oprypin, you around?
<FromGitter> <SplittyDev> I'm *suspecting* that the UInt32 is erroneously treated like a copy value in this case
<FromGitter> <SplittyDev> But if it is, there's no way to assign to any pointer that encapsulates a copy value?
<FromGitter> <SplittyDev> This is so strange..
faustinoaq has joined #crystal-lang
aroaminggeek[awa is now known as aroaminggeek
faustinoaq has quit [Ping timeout: 240 seconds]
faustinoaq has joined #crystal-lang
aroaminggeek is now known as aroaminggeek[awa
vivus has quit [Quit: Leaving]
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
aroaminggeek[awa is now known as aroaminggeek
aroaminggeek is now known as aroaminggeek[awa
<FromGitter> <jwaldrip> If I have a top level macro, why wouldn't crystal doc generate it?
aroaminggeek[awa is now known as aroaminggeek
illyohs has quit [Ping timeout: 248 seconds]
snsei has joined #crystal-lang
snsei has quit [Client Quit]
aroaminggeek is now known as aroaminggeek[awa
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
rohitpaulk has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 268 seconds]
aroaminggeek[awa is now known as aroaminggeek
rohitpaulk has joined #crystal-lang
DTZUZO has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
vikaton has quit [Quit: Connection closed for inactivity]
rohitpaulk has joined #crystal-lang
TheGillies has quit [Ping timeout: 246 seconds]
weston_[m] has quit [Ping timeout: 252 seconds]
Renich has quit [Ping timeout: 252 seconds]
sija[m] has quit [Ping timeout: 276 seconds]
galstar[m] has quit [Ping timeout: 240 seconds]
thelonelyghost has quit [Ping timeout: 250 seconds]
dtcristo has quit [Ping timeout: 264 seconds]
olbat[m] has quit [Ping timeout: 264 seconds]
tybee[m] has quit [Ping timeout: 252 seconds]
byteflame has quit [Ping timeout: 252 seconds]
kp666[m] has quit [Ping timeout: 252 seconds]
watzon has quit [Ping timeout: 255 seconds]
phase[m] has quit [Ping timeout: 276 seconds]
braidn[m] has quit [Ping timeout: 276 seconds]
cptaffe has quit [Ping timeout: 276 seconds]
sz0 has joined #crystal-lang
ua has quit [Ping timeout: 248 seconds]
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has joined #crystal-lang
ua has joined #crystal-lang
xiljin has quit [Quit: ...]
alex`` has joined #crystal-lang
DTZUZO has quit [Ping timeout: 255 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
olbat[m] has joined #crystal-lang
<FromGitter> <SplittyDev> Eh.. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a2a5bb73a80a84b5bd053dd]
<FromGitter> <SplittyDev> This worked in an earlier version of Crystal. I didn't change anything code-wise.
<FromGitter> <SplittyDev> I don't even know where the error is
<FromGitter> <SplittyDev> Seems to happen inside of an inline-assembly block
<FromGitter> <SplittyDev> ```code paste, see link``` ⏎ ⏎ `@@gdtr` is an `uninitialized` C struct. [https://gitter.im/crystal-lang/crystal?at=5a2a5c4a540c78242d9bf7c1]
<FromGitter> <SplittyDev> Fixed it by casting `pointerof(@@gdtr).address` to an UInt32
<FromGitter> <SplittyDev> Did the Crystal compiler switch to always using UInt64 for pointer addresses recently?
<FromGitter> <SplittyDev> That would probably explain everything
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
claudiuinberlin has joined #crystal-lang
braidn[m] has joined #crystal-lang
byteflame has joined #crystal-lang
Renich has joined #crystal-lang
phase[m] has joined #crystal-lang
tybee[m] has joined #crystal-lang
kp666[m] has joined #crystal-lang
cptaffe has joined #crystal-lang
watzon has joined #crystal-lang
galstar[m] has joined #crystal-lang
thelonelyghost has joined #crystal-lang
TheGillies has joined #crystal-lang
dtcristo has joined #crystal-lang
weston_[m] has joined #crystal-lang
sija[m] has joined #crystal-lang
Papierkorb_ has joined #crystal-lang
DTZUZO has joined #crystal-lang
<FromGitter> <bew> To me had always been UInt64, on what version did it worked for you?
<crystal-gh> [crystal] alexbatalov opened pull request #5367: Fix missing GC.add_finalizer throughout the stdlib [5362] (master...gc-add-finalizer) https://git.io/vb8LL
DTZUZO has quit [Quit: WeeChat 1.9]
sz0 has joined #crystal-lang
Ven`` has joined #crystal-lang
ua has quit [Ping timeout: 250 seconds]
ua has joined #crystal-lang
ua has quit [Changing host]
ua has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] RX14 closed pull request #5366: INI::parse, .each_line is faster than .lines.each (master...faster-ini-parse) https://git.io/vb8Uh
<travis-ci> crystal-lang/crystal#78fa174 (master - INI::parse, .each_line is faster than .lines.each (#5366)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/313460273
<DeBot_> https://github.com/crystal-lang/crystal/pull/5366 (INI::parse, .each_line is faster than .lines.each)
Guest11667 is now known as c-c
rohitpaulk has joined #crystal-lang
ashirase has quit [Ping timeout: 276 seconds]
ashirase has joined #crystal-lang
Ven`` has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
<FromGitter> <sdogruyol> do we really use `===` operator
<FromGitter> <Rinkana> `===` is used in `case..when` blocks
<FromGitter> <sdogruyol> yeah, I mean...other than that is there any practical usage?
<FromGitter> <Rinkana> Nope
<FromGitter> <Rinkana> Afaik it's acually discouraged to use
_4d47 has joined #crystal-lang
<FromGitter> <Rinkana> As it's meant to only be used for `case..when` blocks
<RX14> it shouldn't be called ===
<RX14> it should be cauused case_compare
<RX14> to be ugly
<RX14> and ensure it's only used in case
<RX14> and that it's meaning is clear
<RX14> (imo)
<_4d47> Why does init generate `src/$app/version.cr` ? (I'm not coming from ruby)
<FromGitter> <sdogruyol> it does
<FromGitter> <sdogruyol> not as version.cr
<FromGitter> <sdogruyol> oh sorr
<FromGitter> <sdogruyol> it actually generates `src/app_name/version.cr`
<FromGitter> <sdogruyol> how did you try?
<FromGitter> <bew> You didn't get his question did you?
<FromGitter> <bew> He's asking why
<FromGitter> <bew> There is this file that is being generated
<FromGitter> <sdogruyol> I shouldn't try to answer while multitasking..
<FromGitter> <bew> Ahaha
<FromGitter> <sdogruyol> thanks @bew
<_4d47> yes wondering why it's useful etc? i'm not used to add version in code, eg. its already in shard.yml anyway
<FromGitter> <bew> How would you implement `your_app --version` of you can't access the version from code?
<FromGitter> <bew> s/of/if
<_4d47> add constant to src/app.cr ?
<FromGitter> <bew> Well that what this file contains basically
<FromGitter> <bew> Just that it's in a separate file
<FromGitter> <bew> That can be handy if you have a tool to increment the app version on demand (@elorest did one iirc), it can update the shards.yml and the version in its file (no need to specify the file contaning the version, it's already in a co sistent place between projects)
<_4d47> puts {{ `grep version shard.yml`.stringify.chomp }}
faustinoaq has quit [Ping timeout: 240 seconds]
<FromGitter> <bew> More difficult to do that for a library
<FromGitter> <bew> As you don't know where its shard.yml os
<FromGitter> <bew> is
<_4d47> ok
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter> <luislavena> @bew @_4d47 to avoid duplication in shards 0.7.2 I added `shards version` command so the version is only in one place: https://github.com/crystal-lang/shards/issues/147
oz has quit [Quit: EOF]
<_4d47> thanks for info @luislavena
rohitpaulk has joined #crystal-lang
alex`` has quit [Ping timeout: 240 seconds]
alex`` has joined #crystal-lang
<_4d47> i have no luck, trying to compile 0.7.2 to update (i have 0.7.1) and error in src/spec.cr:76: undefined method 'location' for YAML::PullParser
<FromGitter> <luislavena> @_4d47: you might be trying to compile master. I recommend you checkout the specific tag and compile with latest stable version of Crystal.
<FromGitter> <luislavena> For master you need 0.24 and for 0.7.2 you need 0.23.1 if not mistaken.
<_4d47> no download tar.gz
<_4d47> shards-0.7.2.tar.gz
<FromGitter> <luislavena> From release notes: Compatibility with Crystal 0.24.0 (unreleased) -- this means 0.7.2 requires Crystal 0.24.0
<_4d47> ok right will update crystal
<FromGitter> <codenoid> okay
snsei has joined #crystal-lang
alex`` has quit [Quit: WeeChat 1.9.1]
<_4d47> not sure why crystal --version is now 0.23.0 ea4187c57 (was 0.23.1) but shards built successfully :)
DTZUZO has joined #crystal-lang
Papierkorb_ has quit [Quit: Konversation terminated!]
rohitpaulk has quit [Ping timeout: 255 seconds]
bmcginty has quit [Ping timeout: 255 seconds]
_4d47 has quit [Quit: Leaving]
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmcginty has joined #crystal-lang
alex`` has joined #crystal-lang
alex`` has quit [Ping timeout: 240 seconds]
Ven`` has joined #crystal-lang
alex`` has joined #crystal-lang
rohitpaulk has joined #crystal-lang
aroaminggeek has joined #crystal-lang
bmcginty has quit [Ping timeout: 240 seconds]
aroaminggeek has quit [Quit: Textual IRC Client: www.textualapp.com]
bmcginty has joined #crystal-lang
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmcginty has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
bmcginty has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 276 seconds]
bmcginty has quit [Ping timeout: 255 seconds]
bmcginty has joined #crystal-lang
bmcginty has quit [Ping timeout: 240 seconds]
rohitpaulk has quit [Ping timeout: 260 seconds]
faustinoaq has joined #crystal-lang
claudiuinberlin has joined #crystal-lang
csk157_1 has joined #crystal-lang
<FromGitter> <elorest> <_4d47> There is what @bew was talking about for a app that updated shards and /src/project/version.cr. https://github.com/elorest/CRelease/blob/master/README.md
<FromGitter> <jwaldrip> Can a Proc signature be written to return anything?
<FromGitter> <jwaldrip> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a2ad412ffa3e37919126aa9]
<FromGitter> <jwaldrip> I cannot use yield because I am capturing the block
<FromGitter> <sdogruyol> yep
<FromGitter> <sdogruyol> let me find an example
<FromGitter> <jwaldrip> Got it... thanks!
<FromGitter> <jwaldrip> Okay got another one... ⏎ ⏎ `````` [https://gitter.im/crystal-lang/crystal?at=5a2addafba39a53f1a389bed]
<FromGitter> <Rinkana> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5a2adf0b87680e6230ea41e7]
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
aroaminggeek has joined #crystal-lang
<FromGitter> <jwaldrip> Is there anyway to stop the iteration of a captured block?
<FromGitter> <sdogruyol> `next`
<FromGitter> <jwaldrip> Does that break all the way out though?
<FromGitter> <jwaldrip> Next just presumes your done with the block in this iteration... but it will continue to iterate on future blocks right?
csk157_2 has joined #crystal-lang
csk157_1 has quit [Ping timeout: 250 seconds]
<FromGitter> <Rinkana> Yeah
<FromGitter> <Rinkana> if you want to break out of it use `break`
dkh has joined #crystal-lang
dkh is now known as notdanie
notdanie is now known as notdaniel
bmcginty has joined #crystal-lang
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter> <jwaldrip> I dont think you can...
ua_ has joined #crystal-lang
<FromGitter> <jwaldrip> ```in src/oak/router.cr:104: can't break from captured block ⏎ ⏎ break leaf if leaf``` [https://gitter.im/crystal-lang/crystal?at=5a2af635cc1d527f6b0ab403]
ua has quit [Ping timeout: 240 seconds]
<FromGitter> <jwaldrip> So then how can I get out of the block?
<Papierkorb> return
<Papierkorb> though honestly, while done with good intentions, this is kinda annoying: Break should always get out of a block, in case of a caught one, return. Return, if not possible, should simply error.
woodruffw has joined #crystal-lang
woodruffw has quit [Changing host]
woodruffw has joined #crystal-lang
saadq has quit [Ping timeout: 255 seconds]
vivus has joined #crystal-lang
oz has joined #crystal-lang
RX14 has left #crystal-lang ["Leaving"]
RX14 has joined #crystal-lang
Groogy has quit [Quit: WeeChat 1.9.1]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<FromGitter> <jwaldrip> also cannot return within a captured block
DTZUZO has quit [Ping timeout: 240 seconds]
faustinoaq has quit [Ping timeout: 240 seconds]
faustinoaq has joined #crystal-lang
alex`` has quit [Quit: WeeChat 1.9.1]
notdaniel has quit [Quit: Leaving]
bmcginty has quit [Ping timeout: 240 seconds]
csk157_2 has quit [Quit: WeeChat 1.9.1]
csk157 has joined #crystal-lang