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
<dzv> are you currently using threads?
CyphrCorn has quit [Remote host closed the connection]
CyphrCorn has joined #crystal-lang
CyphrCorn has quit [Ping timeout: 265 seconds]
xdougx has joined #crystal-lang
CyphrCorn has joined #crystal-lang
xdougx has quit [Ping timeout: 250 seconds]
edaaa__ has quit [Ping timeout: 240 seconds]
CyphrCorn has quit [Remote host closed the connection]
CyphrCorn has joined #crystal-lang
knoopx has joined #crystal-lang
<knoopx> j #reactjs
<knoopx> f* sorry ;*
CyphrCorn has quit [Remote host closed the connection]
glenab has joined #crystal-lang
knoopx has quit [Remote host closed the connection]
elia has joined #crystal-lang
elia has quit [Ping timeout: 250 seconds]
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 272 seconds]
A124 has quit [Read error: Connection reset by peer]
glenab has quit [Remote host closed the connection]
A124 has joined #crystal-lang
CyphrCorn has joined #crystal-lang
glenab has joined #crystal-lang
CyphrCorn has quit [Ping timeout: 255 seconds]
glenab has quit [Remote host closed the connection]
glenab has joined #crystal-lang
glenab has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
xdougx has joined #crystal-lang
xdougx has quit [Ping timeout: 250 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
reed_ has joined #crystal-lang
xd1le has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
reed_ has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
xdougx has joined #crystal-lang
pawnbox has joined #crystal-lang
xdougx has quit [Ping timeout: 264 seconds]
pawnbox has quit [Ping timeout: 265 seconds]
BlaXpirit has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
BlaXpirit has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
leafybasil has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
leafybasil has quit [Ping timeout: 255 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
PragTob has joined #crystal-lang
globalkeith has joined #crystal-lang
globalkeith has quit [Client Quit]
pawnbox has quit [Ping timeout: 265 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
edaaa_ has quit [Quit: leaving]
edin has joined #crystal-lang
Ven has joined #crystal-lang
nakilon has joined #crystal-lang
xdougx has joined #crystal-lang
elia has joined #crystal-lang
globalkeith has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
xdougx has quit [Ping timeout: 244 seconds]
benoist has joined #crystal-lang
leafybasil has joined #crystal-lang
gamemanj has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
nakilon has quit [Ping timeout: 240 seconds]
nakilon has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
nakilon has quit [Ping timeout: 240 seconds]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
blue_deref has quit [Quit: Taking myself out of hear.]
Dreamer3 has joined #crystal-lang
Dreamer3_ has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
glenab has joined #crystal-lang
reed_ has joined #crystal-lang
glenab has quit [Ping timeout: 272 seconds]
CyphrCorn has joined #crystal-lang
<edin> ",".to_i
blassin has joined #crystal-lang
<blassin> hey!
RX14- has joined #crystal-lang
<edin> raises exception unlike in Ruby in which it just returns 0
guilleiguaran___ has joined #crystal-lang
<edin> is this the desired behavior in crystal or a bug?
<blassin> BlaXpirit: is it possible to emit SFML events on your bindings?
<blassin> or is that even a good idea? I'm looking for a way to quit a program
<blassin> is window.close the best way?
<BlaXpirit> blassin, sfml doesnt allow emitting events
<blassin> I see
<BlaXpirit> window.close() is ok, better is to have "while running"
[spoiler] has joined #crystal-lang
<BlaXpirit> to exit: running = False
<BlaXpirit> uh false
<blassin> k
<blassin> the thing is I'm wrapping my game logic in a wrapper class
<blassin> trying to clone Love2D for Crystal, backed by your SFML bindings
<blassin> but I guess my wrapper loop can have something like running = false and exit
<blassin> thanks!
pawnbox has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
omninonsense has quit [*.net *.split]
zz_Cidan has quit [*.net *.split]
guilleiguaran__ has quit [*.net *.split]
RX14 has quit [*.net *.split]
bjmllr has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
_jungh4ns has quit [*.net *.split]
6JTABS5S2 has quit [*.net *.split]
salvor has quit [*.net *.split]
Papierkorb has joined #crystal-lang
salvor has joined #crystal-lang
adam| has joined #crystal-lang
guilleiguaran___ is now known as guilleiguaran__
Cidan has joined #crystal-lang
bjmllr has joined #crystal-lang
<blassin> what are Time's "ticks" ?
<blassin> microseconds?
<blassin> tenths of microsecond?
_jungh4ns has joined #crystal-lang
<BlaXpirit> blassin, huh
<BlaXpirit> it doesn't really matter
<blassin> it seemed to be tenths http://carc.in/#/r/k05
<blassin> but ok
<BlaXpirit> blassin, no sfml in this example
<blassin> I'm not using SFML's timers
<BlaXpirit> doh, i'm sorry
<BlaXpirit> well you should
<blassin> yeah...
<blassin> I just want to store time differences in my main loop
<BlaXpirit> crystal indeed has tenths of microseconds
<blassin> so I can call the game logic's update with dt (time since last invocation)
<BlaXpirit> blassin, use clock
<blassin> yeah, I'll try that
<BlaXpirit> i don't think crystal even has its features
<BlaXpirit> it has atomic get elapsed + restart
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<blassin> BlaXpirit: so, something like this? https://gist.github.com/sardaukar/864f833233a080fdd126
<BlaXpirit> blassin, doesn't seem right
<BlaXpirit> no idea why you need 2 clocks
<blassin> the draw and update clocks are separatre
<blassin> on the game logic, you need to know how long ago was the last update, and how long ago was the last draw
<blassin> to maintain FPS
<blassin> I mean, to maintain behavior over different speed PCs
<BlaXpirit> maybe i don't know something, but this seems redundant
<BlaXpirit> you update and then draw, in a loop. elapsed time should not be separate. sfml maintains FPS for you
<blassin> I want to keep the interface I'm presenting independent of "backend"
ashleyis has quit [Ping timeout: 272 seconds]
CyphrCorn has quit [Remote host closed the connection]
<blassin> BlaXpirit: I'm adding all "drawables" (circles, rectangles, text) to an array
<blassin> and then going through it and calling #draw
<blassin> but SFML gets confused about their types
<blassin> tried to convert SF::CircleShape to CSFML::CircleShape invoking to_unsafe, but can't deduce its type
<blassin> how can I fix this?
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
xdougx has joined #crystal-lang
xdougx has quit [Remote host closed the connection]
xdougx has joined #crystal-lang
gamemanj has quit [Remote host closed the connection]
reed_ has quit [Ping timeout: 256 seconds]
<BlaXpirit> blassin, that's strange. please give an example
<BlaXpirit> potentially a huge problem :o
<blassin> I can't seem to call draw on any shape :/
gamemanj has joined #crystal-lang
<BlaXpirit> everything seems in order
<BlaXpirit> it's probably more of a problem with crystal but i think i can fix it
<blassin> that would be awesome! trying to get my Pong to work for 2 hours now :D
<xdougx> Hash(String, String).new or {} of Hash(String, String), which one is the better one?
<blassin> they don't meant the same, I think
<BlaXpirit> they do
<blassin> oh that's counterintuitive
<BlaXpirit> xdougx, if Hash(String, String).new was unarguably better then why would they add the other syntax
<BlaXpirit> then again, you cannot use Hash.new in macros
<blassin> BlaXpirit: is it easy to explain to me what's wrong with my code now? or why Crystal is acting up?
<BlaXpirit> blassin, just something unfinished in lib fun type deduction
<BlaXpirit> i can reproduce your error
<blassin> great. are you going to fix it anytime soon? (no pressure, just curious)
<xdougx> understood, im trying to get familiarized with this, im always getting some errors, but i know that i need always put as keys Symbols and String and values String, Ints, Floats
<BlaXpirit> blassin, adding .to_unsafe fixes it e.g. CSFML.render_window_draw_text(@this, object.to_unsafe, pstates) these are all in graphics_obj.cr
<BlaXpirit> i definitely think it's a bug in Crystal, because calling .to_unsafe explicitly works, but if crystal internally tries .to_unsafe, it fails
<blassin> 3000 lines far out :D
<blassin> can this benefit from a macro?
<jhass> edin: that's intentional, .to_i? || 0 if you want the 0 (or whatever else)
<BlaXpirit> jhass, what do you think about this?
<jhass> BlaXpirit: still reading backlog
<BlaXpirit> thx
<jhass> Hash(String, String).new is the same as {} of String => String, {} of Hash(String, String) should be a syntax error. I don't understand the "you can't Hash.new in macros" comment, of course you can generate any valid Crystal code with macros
<BlaXpirit> damn i'm stupid, how did i miss that
<BlaXpirit> jhass, you can't do it at compile time, u know?
<jhass> well, what exactly?
<BlaXpirit> >> "{{ ({} of Int => Int).stringify }}"
<DeBot> BlaXpirit: # => "{{ ({} of Int => Int).stringify }}" - http://carc.in/#/r/k0z
<BlaXpirit> facepalm
<BlaXpirit> >> {{ ({} of Int => Int).stringify }}
<DeBot> BlaXpirit: # => "{}" - http://carc.in/#/r/k10
<BlaXpirit> >> {{ (Hash(Int, Int).new).stringify }}
<DeBot> BlaXpirit: can't execute Generic in a macro - http://carc.in/#/r/k11
<BlaXpirit> see
<jhass> well yeah, the AST node is for the literal, Hash.new isn't parsed to the same AST node
<xdougx> is this fun? http://carc.in/#/r/k16 hehe
ssvb has quit [Ping timeout: 256 seconds]
<BlaXpirit> blassin, try crsfml master
gamemanj has quit [Remote host closed the connection]
ponga has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
barosl has quit [Quit: Leaving]
barosl has joined #crystal-lang
<blassin> BlaXpirit: thanks!
<BlaXpirit> but dang it, i can't make a small example to illustrate this bug :(
CyphrCorn has joined #crystal-lang
<xdougx> is not possible to check existence of an Constant with dedined?
<xdougx> defined? **
<BlaXpirit> no, xdougx
<xdougx> exists another way?
<xdougx> >> LOL.nil?
<DeBot> xdougx: undefined constant LOL - http://carc.in/#/r/k1i
<blassin> BlaXpirit: is it possible to know what is the CWD of .from_file on SFML ?
<BlaXpirit> blassin, well it is just the CWD
<blassin> ok
<BlaXpirit> wow i'm a dummy, trying to reproduce this on the fixed version
<BlaXpirit> no, nevermind, i'm a dummy because the new example does not even use sfml -_-
pawnbox has joined #crystal-lang
<jhass> xdougx: why are you unsure whether it's defined? I consider defined? a smell in Ruby
<xdougx> jhass: i was trying to check if an constant exists in compile time like ARGV, because ARGV and ENV isn't always available
<jhass> uh yes they are
<xdougx> i already got errors trying to access those constants inside a class i to not get those error anymore i just change to set then as instance variables
<xdougx> and to not*
<jhass> I'm not sure I follow
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
<xdougx> when i have this case i just started to code defensively to decrease the error rate
<jhass> >> class Foo; def argv; ARGV; end; end; Foo.new.argv
<DeBot> jhass: # => [] - http://carc.in/#/r/k1j
<jhass> it works just fine?
<jhass> >> class Foo; def env; ENV; end; end; Foo.new.env
<DeBot> jhass: # => {"PATH" => "/usr/local/bin:/usr/bin:/bin", "HOME" => "/home/crystal", "USER" => "crystal", "LOGNAME" => "crystal"} - http://carc.in/#/r/k1k
<xdougx> jhass: hummmm ok, next time im going to work directly with those constants, if i got an error, i'll show :)
<BlaXpirit> jhass, i reported the issue with just the example of the problem
<jhass> BlaXpirit: did you run exactly that and it reproduces? Since I see a missing end just from looking...
<BlaXpirit> jhass, oh of course i broke it last moment
<BlaXpirit> just add the end and it will work
<jhass> probably also missing the @Link
<BlaXpirit> nah, just need to see that it compiles or doesnt compile
<jhass> mh, right
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
<blassin> BlaXpirit: when you draw a circle, it's position is the top left corner, right?
<BlaXpirit> blassin, by default yes
<BlaXpirit> you can set its center to be at half size
<BlaXpirit> is actually called "origin"
<xdougx> i can set private initialiser?
<BlaXpirit> yes, xdougx
<jhass> xdougx: initialize is private by default unless explicitly set to something else. In Ruby too
<BlaXpirit> and i thought writing `private def` made the corresponding `new` private :|
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> mh, does it?
pawnbox has quit [Ping timeout: 240 seconds]
<BlaXpirit> probably not
<jhass> >> class Foo; private def initialize; end; end; Foo.new
<DeBot> jhass: private method 'new' called for Foo:Class - http://carc.in/#/r/k1m
<jhass> wow you're right
<jhass> but still
<jhass> >> class Foo; def initialize; end; end; Foo.new.initialize
<DeBot> jhass: protected method 'initialize' called for Foo - http://carc.in/#/r/k1n
<jhass> okay, it's protected by default then
pawnbox has joined #crystal-lang
<xdougx> understood hehehe
<xdougx> jhass: http://carc.in/#/r/k22 why i can change my class variable? i always get this error
ssvb has joined #crystal-lang
Ven has joined #crystal-lang
trapped has joined #crystal-lang
<jhass> xdougx: crystal doesn't analyze that there are no concurrent accesses to @@instance that set it back to nil
<jhass> you have to cache it into a local
<edin> jhass, tnx
<jhass> instance == @@instance; return instance if instance; @@instance = set_instance(..)
<jhass> er, instance = @@instance of course
<xdougx> sorry, I couldn't follow up ip
<xdougx> it*
pawnbox has quit [Read error: Connection reset by peer]
<xdougx> jhass: http://carc.in/#/r/k2k like this
<jhass> yap
pawnbox has joined #crystal-lang
Renich has joined #crystal-lang
Renich has joined #crystal-lang
Renich has quit [Client Quit]
Renich has joined #crystal-lang
Renich has quit [Client Quit]
Renich has joined #crystal-lang
Renich has quit [Client Quit]
Renich has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
glenab has joined #crystal-lang
Renich has quit [Ping timeout: 250 seconds]
Renich has joined #crystal-lang
glenab has quit [Remote host closed the connection]
greengriminal has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xdougx> has a method to convert array in tuple?
<jhass> Tuple#map can aid in that
<jhass> let's see if I can remember
<jhass> >> a = [1, "foo"]; {Int32, String}.map.with_index {|t, i| t.cast(a[i]) }
<DeBot> jhass: '{Int32:Class, String:Class}#map' is expected to be invoked with a block, but no block was given - http://carc.in/#/r/k2t
<jhass> >> a = [1, "foo"]; {Int32, String}.each_with_index.map {|t, i| t.cast(a[i]) }
<DeBot> jhass: wrong number of block arguments (2 for 1) - http://carc.in/#/r/k2u
<jhass> >> a = [1, "foo"]; {Int32, String}.each_with_index.map {|p| t, i = p; t.cast(a[i]) }
<DeBot> jhass: # => Iterator::Map(Iterator::WithIndex(Tuple::ItemIterator(Int32:Class | String:Class), Int32:Class | String:Class), {Int32:Class | String:Class, Int32}, String | Int32)(@iterator=#<Iterator::WithIndex(Tuple::ItemIterator(Int32:Class | String:Class), Int32:Class | String:Class):0x90b5e28 @iterator=#<Tuple::ItemIterator(Int32:Class | String:Class):0 ... - http://carc.in/#/r/k2v
<jhass> mmh
<jhass> gotta look it up I guess
pawnbox has quit [Read error: Connection reset by peer]
<jhass> >> a = [1, "foo"]; t = {Int32, String}; r = {0, 1}.map {|i| t[i].cast(a[i]) }; [r, r.class]
<DeBot> jhass: # => [{1, "foo"}, {String | Int32, String | Int32}] - http://carc.in/#/r/k2w
<jhass> mh
<jhass> weird
Renich has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
Renich has joined #crystal-lang
CyphrCorn has quit [Remote host closed the connection]
CyphrCorn has joined #crystal-lang
CyphrCorn has quit [Remote host closed the connection]
BlaXpirit has joined #crystal-lang
<jhass> xdougx: http://carc.in/#/r/k36 had some fun
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
CyphrCorn has joined #crystal-lang
CyphrCorn has quit [Remote host closed the connection]
<xdougx> >> pp [1,2,3,4,5,6].values_at(0, 5)
<DeBot> xdougx: [1, 2, 3, 4, 5, 6].values_at(0, 5) = {1, 6} - more at http://carc.in/#/r/k3f
<xdougx> >> pp [1,2,3,4,5,6].values_at(6)
<DeBot> xdougx: Index out of bounds (IndexError) - http://carc.in/#/r/k3g
<xdougx> >> pp [1,2,3,4,5,6].values_at(5)
<DeBot> xdougx: [1, 2, 3, 4, 5, 6].values_at(5) = {6} - more at http://carc.in/#/r/k3h
<blassin> BlaXpirit: I'm seeing an issue on your docs
<blassin> "SFML provides two classes for playing audio: and . They both provide more or less the same features, the main difference is how they work."
<blassin> the class names seem to be missing
<blassin> or maybe it's my browser?
<BlaXpirit> blassin, it's an error, thanks
<blassin> so what are the classes? :D
<blassin> SoundBuffer and ... ?
<BlaXpirit> something went wrong there for sure
<BlaXpirit> that file is just busted
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
benoist has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Ven has joined #crystal-lang
<jhass> >> [1, "foo", 3.0].values_at(0, 2).class # xdougx but this
<DeBot> jhass: # => {String | Int32 | Float64, String | Int32 | Float64} - http://carc.in/#/r/k3q
CyphrCorn has joined #crystal-lang
<xdougx> jhass: that struct with macro will be much more useful :)
<jhass> yeah, gonna PR it
CyphrCorn has quit [Remote host closed the connection]
<xdougx> jhass: what is that {{begin}} {{end}} on the macro, first time seen it
<xdougx> seening*
<jhass> the new version of {{% if true %}} {% end %}}
<jhass> we construct things there that wouldn't parse as valid Crystal without the outer context
<jhass> so we need to enter the macro language earlier
<jhass> and that's all it does
<xdougx> so bengin/end will start and ends the macro block
<crystal-gh> [crystal] adlerhsieh opened pull request #1810: Improves documentation style for several classes (master...add-doc-3) http://git.io/vWB0W
reed_ has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xdougx> >> pp self
<DeBot> xdougx: Error in macro 'pp' /usr/lib/crystal/macros.cr:52, line 2:
<DeBot> there's no self in this scope - http://carc.in/#/r/k3t
<crystal-gh> [crystal] jhass opened pull request #1811: Add Tuple.from and Tuple#from (master...tuple_new_array) http://git.io/vWBgK
pawnbox has quit [Ping timeout: 265 seconds]
<blassin> BlaXpirit: any reason why my sounds play just once?
<BlaXpirit> blassin, yes
<blassin> ?
pawnbox has joined #crystal-lang
RX14- is now known as RX14
PragTob has quit [Remote host closed the connection]
CyphrCorn has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
glenab has joined #crystal-lang
shama has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
glenab has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 268 seconds]
Ven has joined #crystal-lang
pawnbox has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<xdougx> jhass: why method splat couldn't be a array, its make me crazy
gamemanj_ has joined #crystal-lang
<BlaXpirit> -_-
gamemanj_ is now known as gamemanj
<xdougx> -____-
leafybas_ has joined #crystal-lang
benner_ is now known as benner
<jhass> xdougx: because the compiler needs to know the types in order to find the correct overload and generate a call at all
<jhass> xdougx: when doing a call, the byte sizes of the arguments need to be known, so the stack can be correctly prepared etc
leafybasil has quit [Ping timeout: 260 seconds]
<xdougx> i see, i just cant build an automated setter
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leafybas_ has quit [Ping timeout: 250 seconds]
pawnbox has quit [Read error: Connection reset by peer]
blassin has quit [Ping timeout: 246 seconds]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
CyphrCorn has quit []
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 2 new commits to master: http://git.io/vWBp4
<crystal-gh> crystal/master a61ef80 Adler: improves documentation style for several classes [ci skip]
<crystal-gh> crystal/master 595a736 Jonne Haß: Merge pull request #1810 from adlerhsieh/add-doc-3...
pawnbox has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
<travis-ci> manastech/crystal#595a736 (master - Merge pull request #1810 from adlerhsieh/add-doc-3): The build passed. https://travis-ci.org/manastech/crystal/builds/87074529
<DeBot> https://github.com/manastech/crystal/pull/1810 (Improves documentation style for several classes)
sdogruyol has joined #crystal-lang
<sdogruyol> how can i access the uri of HTTP::Request since uri is now private method
NeverDie has joined #crystal-lang
NeverDie has quit [Client Quit]
pawnbox_ has joined #crystal-lang
NeverDie has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox_ has quit []
glenab has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
<jhass> sdogruyol: what do you need from it?
<sdogruyol> jhass: hey i figured it out in the end thanks :)
glenab has quit [Ping timeout: 255 seconds]
glenab has joined #crystal-lang
glenab has quit [Ping timeout: 268 seconds]
ponga has quit [Quit: Connection closed for inactivity]
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
<xdougx> jhass: started work with DB, becomes too slow X.X
canhtak has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
NeverDie has joined #crystal-lang
<sdogruyol> jhass: why doesnt to_json support hash with union types e.g http://carc.in/#/r/k69
<jhass> sdogruyol: http://carc.in/#/r/k6a
<sdogruyol> jhass: oh my
<sdogruyol> jhass: weirdly it works for Int32 without requiring json
elia has joined #crystal-lang
<jhass> >> 1.to_json
<DeBot> jhass: undefined method 'to_json' for Int32 - http://carc.in/#/r/k6b
<jhass> ?
<xdougx> >> require "json"; 1.to_json;
<DeBot> xdougx: in line 21: can't require dynamically - http://carc.in/#/r/k6d
<sdogruyol> i meant this
<sdogruyol> << {foo: 1}.to_json
<sdogruyol> >> {foo: 1}.to_json
<DeBot> sdogruyol: undefined method 'to_json' for Hash(Symbol, Int32) - http://carc.in/#/r/k6e
<sdogruyol> yeah
sfcgeorge has joined #crystal-lang
blue_deref has joined #crystal-lang
<jhass> well, doesn't work either?
<sdogruyol> jhass: yeah it does not guess i had it required in some other module
canhtak has quit [Quit: canhtak]
nakilon has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
<xdougx> trully luck :D
sdogruyol has quit [Read error: Connection reset by peer]
sdogruyol has joined #crystal-lang
sdogruyol has quit [Read error: Connection reset by peer]
edaaa_ has joined #crystal-lang
fowlduck has joined #crystal-lang
trapped has joined #crystal-lang
gamemanj has quit [Ping timeout: 268 seconds]
xdougx has quit []
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
nakilon has quit [Ping timeout: 272 seconds]
NeverDie has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
NeverDie has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
reed_ has quit [Ping timeout: 260 seconds]
elia has quit [Quit: Computer has gone to sleep.]
glenab has joined #crystal-lang
glenab has quit [Ping timeout: 250 seconds]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
elia has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
shadeslayer_ is now known as shadeslayer
edaaa_ has quit [Quit: Leaving]
glenab has joined #crystal-lang
glenab has quit [Ping timeout: 256 seconds]
trapped has quit [Quit: Textual IRC Client: www.textualapp.com]
tomchapin has joined #crystal-lang
glenab has joined #crystal-lang
nakilon has joined #crystal-lang
glenab has quit [Ping timeout: 260 seconds]
epitron is now known as ^_^
^_^ is now known as epitron
havenn has joined #crystal-lang
fowlduck has joined #crystal-lang
havenn has quit [Client Quit]
havenn has joined #crystal-lang
havenn has quit [Client Quit]
greengriminal has quit [Quit: This computer has gone to sleep]
greengriminal has joined #crystal-lang
tomchapin has quit [Ping timeout: 240 seconds]
tomchapin has joined #crystal-lang
leafybasil has joined #crystal-lang
leafybasil has quit [Read error: Connection reset by peer]
fowlduck has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
glenab has joined #crystal-lang
glenab has quit [Ping timeout: 240 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dylanmei has joined #crystal-lang
dylanmei has quit [Ping timeout: 255 seconds]
glenab has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
globalkeith has joined #crystal-lang
NeverDie has joined #crystal-lang
tomchapin has joined #crystal-lang
glenab has quit [Remote host closed the connection]
greengriminal has quit [Ping timeout: 252 seconds]
greengriminal has joined #crystal-lang
sfcgeorg_ has joined #crystal-lang
sfcgeorg_ has quit [Client Quit]
sfcgeorge has quit [Ping timeout: 250 seconds]
nakilon has quit [Ping timeout: 240 seconds]
greengriminal has quit [Quit: Leaving]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
Renich has quit [Ping timeout: 250 seconds]