jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.0 | Fund Crystals development: http://is.gd/X7PRtI | 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
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* CompanionCube wonders what the best binding generator is
barosl has joined #crystal-lang
<jhass> dunno, how usable is crystal_lib by now asterite ?
<asterite> Mmm... it can be used, however we'll eventually (hopefully soon!) integrate it in the compiler... not as a tool, but those annotations will be in the code and we'll generate lib definitions in temporary files, etc.
<asterite> But until then, it can be used as a separate tool, but there's no auto-import all with the given prefix (we'll support that)
<jhass> CompanionCube: probably crystalize.py for now then
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vC5kl
<crystal-gh> crystal/master eaa3263 Ary Borenszweig: Fixed some formatter bugs. Fixes #1755
Cidan is now known as zz_Cidan
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci> manastech/crystal#eaa3263 (master - Fixed some formatter bugs. Fixes #1755): The build passed. https://travis-ci.org/manastech/crystal/builds/85848400
<DeBot> https://github.com/manastech/crystal/issues/1755 (Formatter: Adds empty space to empty comments in code blocks)
pawnbox_ has quit [Remote host closed the connection]
Philpax_ has joined #crystal-lang
<jhass> asterite: btw any updates to moving stuff to its own org? the longer we wait the more references will need to be updated
<asterite> Yes, I want to do that too
<jhass> I mean if you do it properly github will leave a redirect in place for most stuff, but still
kulelu88 has joined #crystal-lang
<jhass> and I guess "update API docs" is missing on your after release checklist
greengriminal has joined #crystal-lang
datanoise has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
Philpax_ has quit [Ping timeout: 250 seconds]
Philpax_ has joined #crystal-lang
Renich has quit [Quit: leaving]
Philpax__ has joined #crystal-lang
Philpax_ has quit [Ping timeout: 250 seconds]
Philpax__ has quit [Ping timeout: 240 seconds]
kulelu88 has quit [Quit: Leaving]
Philpax__ has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] tristil opened pull request #1758: Correct http/params.cr documentation (master...patch-2) http://git.io/vC5ic
Philpax__ has quit [Ping timeout: 250 seconds]
sdogruyol has joined #crystal-lang
sdogruyol has quit [Client Quit]
datanoise has joined #crystal-lang
barosl has quit [Read error: Connection reset by peer]
datanoise has quit [Ping timeout: 260 seconds]
Ven has joined #crystal-lang
<crystal-gh> [crystal] adlerhsieh opened pull request #1759: Add Hash#key method (master...add-code) http://git.io/vC5Ma
bcardiff has joined #crystal-lang
BlaXpirit has joined #crystal-lang
pawnbox has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Philpax__ has joined #crystal-lang
barosl has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcardiff has quit [Quit: bcardiff]
Ven has joined #crystal-lang
cyjimmy264 has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Philpax has joined #crystal-lang
Philpax__ has quit [Ping timeout: 250 seconds]
ssvb has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
globalkeith has joined #crystal-lang
cyjimmy264 has quit [Remote host closed the connection]
cyjimmy264 has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 240 seconds]
gamemanj has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
ponga has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
datanoise has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
datanoise has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
globalkeith has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
<crystal-gh> [crystal] ysbaddaden closed pull request #1758: Correct http/params.cr documentation (master...patch-2) http://git.io/vC5ic
trapped has joined #crystal-lang
ssvb has quit [Quit: Leaving]
datanoise has joined #crystal-lang
Ven has joined #crystal-lang
datanoise has quit [Ping timeout: 240 seconds]
nakilon has joined #crystal-lang
nakilon has quit [Remote host closed the connection]
nakilon has joined #crystal-lang
Philpax__ has joined #crystal-lang
<RX14> yeah I was wondering if crystal would finally get it's won org
<RX14> own*
<travis-ci> manastech/crystal#b8c218e (master - Merge pull request #1758 from tristil/patch-2): The build passed. https://travis-ci.org/manastech/crystal/builds/85889282
<DeBot> https://github.com/manastech/crystal/pull/1758 (Correct http/params.cr documentation)
Philpax_ has quit [Ping timeout: 256 seconds]
<RX14> what does the ~! operator do?
<RX14> there's no info on the changelog...
<jhass> RX14: !(a =~ b) basically
<RX14> also, the changelog says "(breaking change) json_mapping is now JSON.mapping. yaml_mapping is now YAML.mapping" but the commit which adds them appears to be AFTER the 0.9.0 commit
<jhass> RX14: the tag is on that though
<RX14> the fuck
<jhass> github displays nicely which commit is under which tag ;)
<RX14> yeah, but that's still really strange
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
Ven has quit [Read error: Connection reset by peer]
Ven_ has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Philpax__ has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<trapped> what's the simplest way to read N bytes from an IO and cast them to an (U)Int/Float (size is known)?
datanoise has joined #crystal-lang
<jhass> trapped: since 0.9 it's something like UInt64.from_io(io) iirc
<trapped> oh cool, last time i checked write_bytes and to_io were there but from_io wasn't yet
<trapped> thanks
pawnbox has quit [Remote host closed the connection]
<jhass> >> io = MemoryIO.new; 128.to_io(io); io.rewind; Int32.from_io(io)
<DeBot> jhass: wrong number of arguments for 'Int32#to_io' (1 for 2) - http://carc.in/#/r/j59
<jhass> mh
<jhass> no default on the format? meh
datanoise has quit [Ping timeout: 265 seconds]
<jhass> >> io = MemoryIO.new; 128.to_io(io, IO::ByteFormat::SystemEndian); io.rewind; Int32.from_io(io)
<DeBot> jhass: wrong number of arguments for 'Int32::from_io' (1 for 2) - http://carc.in/#/r/j5a
<jhass> >> io = MemoryIO.new; 128.to_io(io, IO::ByteFormat::SystemEndian); io.rewind; Int32.from_io(io, IO::ByteFormat::SystemEndian)
<DeBot> jhass: # => 128 - http://carc.in/#/r/j5b
<trapped> what about having the IO specify the "default" endianness? e.g. system (little) for files, network (big) for sockets
<jhass> yeah, I think defaulting to System on IO and doing overloads that default to network on socket would be reasonable
ssvb has joined #crystal-lang
Ven has joined #crystal-lang
bmcginty has quit [Ping timeout: 240 seconds]
bmcginty has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 240 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ven has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
trapped has joined #crystal-lang
blue_deref has joined #crystal-lang
<trapped> what does @type evaluate to in a `macro inherited`? the inheriting type or the inherited type?
<jhass> should be the inheriting type (the child)
<jhass> though note that definitions after the include are not yet visible
<jhass> (constants as well as methods)
<trapped> so instance vars are not visible
<trapped> right?
<jhass> mmh, only ones used before the include I think
<trapped> is there any way to defer `macro inherited` expansion until the inheriting class has been fully defined?
<jhass> not that I'm aware of
<jhass> note that there's no "fully defined" point, we got an open class system
<trapped> right
<trapped> so it's not possible to access the inheriting class' instance variables in the inherited macro, right?
ssvb has quit [Ping timeout: 244 seconds]
<jhass> not the ones defined after the include call I think
<trapped> is inheriting the same as including?
<jhass> no
<jhass> a sigh, sorry I somehow thought you'd be including
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vCF3o
<crystal-gh> crystal/master 975d93c Ary Borenszweig: Formatter: check idempotency in specs, and some refactors
<crystal-gh> crystal/master a7736b1 Ary Borenszweig: Define `exec_internal` in HTTP::Client
<jhass> so no, in inherited there's nothing known yet
datanoise has joined #crystal-lang
<trapped> why aren't macros expanded after class variables are defined?
<jhass> as said there's no defined point for that "after"
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite opened pull request #1761: Align consecutive assignments if they are logically grouped (master...formatter_align_assignments) http://git.io/vCFsX
leafybasil has quit [Ping timeout: 260 seconds]
datanoise has quit [Ping timeout: 240 seconds]
datanoise has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
leafybasil has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
sooli has joined #crystal-lang
ssvb has joined #crystal-lang
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcardiff has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vCFl4
<crystal-gh> crystal/master 546f89b Ary Borenszweig: Formatter: fixed a formatter bug related to case/when
Renich has joined #crystal-lang
Renich has quit [Client Quit]
Renich has joined #crystal-lang
ssvb has quit [Ping timeout: 260 seconds]
ssvb has joined #crystal-lang
<BlaXpirit> i'll be frank, i think this formatter is a waste of time, especially for someone as important as asterite
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sooli has quit [Remote host closed the connection]
trapped has joined #crystal-lang
<travis-ci> manastech/crystal#546f89b (master - Formatter: fixed a formatter bug related to case/when): The build passed. https://travis-ci.org/manastech/crystal/builds/85922472
bcardiff has quit [Quit: bcardiff]
<travis-ci> manastech/crystal#975d93c (master - Formatter: check idempotency in specs, and some refactors): The build passed. https://travis-ci.org/manastech/crystal/builds/85918042
BlaXpirit has quit [Quit: Konversation]
BlaXpirit has joined #crystal-lang
yxhuvud has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
ponga has quit [Quit: Connection closed for inactivity]
gamemanj has quit [Ping timeout: 244 seconds]
Renich has quit [Quit: leaving]
Renich has joined #crystal-lang
globalkeith has quit [Read error: Connection reset by peer]
gamemanj has joined #crystal-lang
<trapped> how can i access @@class_vars from macros?
<jhass> macros are basically pasted into the place you call them
<trapped> from a TypeNode*
<trapped> i can do TypeNode.instance_vars for example
<jhass> so doesn't look like it's mapped out
<trapped> hmm
tomchapin has joined #crystal-lang
datanoise has quit [Ping timeout: 252 seconds]
gamemanj has quit [Ping timeout: 256 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #crystal-lang
Renich has quit [Quit: leaving]
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
cyjimmy264 has quit [Ping timeout: 272 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
datanoise has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vCbwp
<crystal-gh> crystal/master 7cfeedb Ary Borenszweig: Formatter: align condition of suffix if/unless
datanoise has quit [Ping timeout: 256 seconds]
qard has joined #crystal-lang
Philpax__ has joined #crystal-lang
leafybas_ has joined #crystal-lang
leafybas_ has quit [Remote host closed the connection]
leafybas_ has joined #crystal-lang
leafybas_ has quit [Remote host closed the connection]
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
leafybas_ has joined #crystal-lang
datanoise has joined #crystal-lang
leafybasil has quit [Ping timeout: 244 seconds]
leafybas_ has quit [Ping timeout: 250 seconds]
Ven_ has joined #crystal-lang
Ven_ has quit [Read error: Connection reset by peer]
datanoise has quit [Quit: WeeChat 1.3]
reed_ has joined #crystal-lang
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vCbP9
<crystal-gh> crystal/master a8e9ba7 Ary Borenszweig: Parser: fixed incorrect parsing of `foo bar.baz do ... end` (the block was attached to `bar.baz` instead of `foo`)