00:02
<
dzv >
are you currently using threads?
00:03
CyphrCorn has quit [Remote host closed the connection]
00:04
CyphrCorn has joined #crystal-lang
00:09
CyphrCorn has quit [Ping timeout: 265 seconds]
00:15
xdougx has joined #crystal-lang
00:15
CyphrCorn has joined #crystal-lang
00:19
xdougx has quit [Ping timeout: 250 seconds]
00:23
edaaa__ has quit [Ping timeout: 240 seconds]
00:35
CyphrCorn has quit [Remote host closed the connection]
00:36
CyphrCorn has joined #crystal-lang
00:37
knoopx has joined #crystal-lang
00:37
<
knoopx >
j #reactjs
00:37
<
knoopx >
f* sorry ;*
00:37
CyphrCorn has quit [Remote host closed the connection]
01:08
glenab has joined #crystal-lang
01:08
knoopx has quit [Remote host closed the connection]
01:20
elia has joined #crystal-lang
01:25
elia has quit [Ping timeout: 250 seconds]
01:28
leafybasil has joined #crystal-lang
01:33
leafybasil has quit [Ping timeout: 272 seconds]
02:01
A124 has quit [Read error: Connection reset by peer]
02:04
glenab has quit [Remote host closed the connection]
02:05
A124 has joined #crystal-lang
02:38
CyphrCorn has joined #crystal-lang
02:42
glenab has joined #crystal-lang
02:43
CyphrCorn has quit [Ping timeout: 255 seconds]
03:06
glenab has quit [Remote host closed the connection]
03:08
glenab has joined #crystal-lang
03:12
glenab has quit [Ping timeout: 240 seconds]
03:47
pawnbox has joined #crystal-lang
04:16
xdougx has joined #crystal-lang
04:20
xdougx has quit [Ping timeout: 250 seconds]
04:41
pawnbox has quit [Read error: Connection reset by peer]
04:57
pawnbox has joined #crystal-lang
04:57
reed_ has joined #crystal-lang
05:27
xd1le has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
06:01
reed_ has quit [Ping timeout: 272 seconds]
06:07
pawnbox has quit [Ping timeout: 240 seconds]
06:11
pawnbox has joined #crystal-lang
06:16
pawnbox has quit [Ping timeout: 255 seconds]
06:17
xdougx has joined #crystal-lang
06:21
pawnbox has joined #crystal-lang
06:22
xdougx has quit [Ping timeout: 264 seconds]
06:27
pawnbox has quit [Ping timeout: 265 seconds]
06:27
BlaXpirit has joined #crystal-lang
06:30
pawnbox has joined #crystal-lang
06:34
pawnbox has quit [Read error: Connection reset by peer]
06:36
pawnbox has joined #crystal-lang
06:38
Ven has joined #crystal-lang
06:40
pawnbox has quit [Read error: Connection reset by peer]
06:42
pawnbox has joined #crystal-lang
06:44
BlaXpirit has quit [Quit: Konversation]
06:48
BlaXpirit has joined #crystal-lang
07:10
pawnbox has quit [Ping timeout: 265 seconds]
07:14
leafybasil has joined #crystal-lang
07:16
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:17
Ven has joined #crystal-lang
07:18
Ven has quit [Client Quit]
07:18
leafybasil has quit [Ping timeout: 255 seconds]
07:20
pawnbox has joined #crystal-lang
07:22
pawnbox has quit [Read error: Connection reset by peer]
07:26
pawnbox has joined #crystal-lang
07:27
Ven has joined #crystal-lang
07:46
PragTob has joined #crystal-lang
07:49
globalkeith has joined #crystal-lang
07:53
globalkeith has quit [Client Quit]
08:06
pawnbox has quit [Ping timeout: 265 seconds]
08:06
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:08
edaaa_ has quit [Quit: leaving]
08:10
edin has joined #crystal-lang
08:16
Ven has joined #crystal-lang
08:16
nakilon has joined #crystal-lang
08:18
xdougx has joined #crystal-lang
08:19
elia has joined #crystal-lang
08:19
globalkeith has joined #crystal-lang
08:20
pawnbox has joined #crystal-lang
08:22
pawnbox has quit [Remote host closed the connection]
08:22
xdougx has quit [Ping timeout: 244 seconds]
08:25
benoist has joined #crystal-lang
08:34
leafybasil has joined #crystal-lang
08:39
gamemanj has joined #crystal-lang
08:42
leafybasil has quit [Remote host closed the connection]
08:42
leafybasil has joined #crystal-lang
08:43
pawnbox has joined #crystal-lang
08:48
pawnbox has quit [Ping timeout: 244 seconds]
08:49
pawnbox has joined #crystal-lang
08:58
nakilon has quit [Ping timeout: 240 seconds]
09:01
nakilon has joined #crystal-lang
09:04
pawnbox has quit [Read error: Connection reset by peer]
09:12
pawnbox has joined #crystal-lang
09:15
nakilon has quit [Ping timeout: 240 seconds]
09:16
pawnbox has quit [Read error: Connection reset by peer]
09:16
pawnbox has joined #crystal-lang
09:18
blue_deref has quit [Quit: Taking myself out of hear.]
09:20
Dreamer3 has joined #crystal-lang
09:21
Dreamer3_ has quit [Ping timeout: 265 seconds]
09:42
pawnbox has quit [Remote host closed the connection]
09:43
glenab has joined #crystal-lang
09:44
reed_ has joined #crystal-lang
09:48
glenab has quit [Ping timeout: 272 seconds]
09:50
CyphrCorn has joined #crystal-lang
10:00
blassin has joined #crystal-lang
10:00
RX14- has joined #crystal-lang
10:00
<
edin >
raises exception unlike in Ruby in which it just returns 0
10:00
guilleiguaran___ has joined #crystal-lang
10:00
<
edin >
is this the desired behavior in crystal or a bug?
10:00
<
blassin >
BlaXpirit: is it possible to emit SFML events on your bindings?
10:00
<
blassin >
or is that even a good idea? I'm looking for a way to quit a program
10:00
<
blassin >
is window.close the best way?
10:01
<
BlaXpirit >
blassin, sfml doesnt allow emitting events
10:01
<
BlaXpirit >
window.close() is ok, better is to have "while running"
10:01
[spoiler] has joined #crystal-lang
10:01
<
BlaXpirit >
to exit: running = False
10:01
<
BlaXpirit >
uh false
10:02
<
blassin >
the thing is I'm wrapping my game logic in a wrapper class
10:02
<
blassin >
trying to clone Love2D for Crystal, backed by your SFML bindings
10:02
<
blassin >
but I guess my wrapper loop can have something like running = false and exit
10:05
pawnbox has joined #crystal-lang
10:05
Ven has quit [Read error: Connection reset by peer]
10:06
Ven has joined #crystal-lang
10:07
omninonsense has quit [*.net *.split]
10:07
zz_Cidan has quit [*.net *.split]
10:07
guilleiguaran__ has quit [*.net *.split]
10:07
RX14 has quit [*.net *.split]
10:07
bjmllr has quit [*.net *.split]
10:07
Papierkorb has quit [*.net *.split]
10:07
_jungh4ns has quit [*.net *.split]
10:07
6JTABS5S2 has quit [*.net *.split]
10:07
salvor has quit [*.net *.split]
10:08
Papierkorb has joined #crystal-lang
10:08
salvor has joined #crystal-lang
10:08
adam| has joined #crystal-lang
10:11
guilleiguaran___ is now known as guilleiguaran__
10:11
Cidan has joined #crystal-lang
10:16
bjmllr has joined #crystal-lang
10:20
<
blassin >
what are Time's "ticks" ?
10:20
<
blassin >
microseconds?
10:21
<
blassin >
tenths of microsecond?
10:23
_jungh4ns has joined #crystal-lang
10:24
<
BlaXpirit >
blassin, huh
10:24
<
BlaXpirit >
it doesn't really matter
10:27
<
BlaXpirit >
blassin, no sfml in this example
10:27
<
blassin >
I'm not using SFML's timers
10:27
<
BlaXpirit >
doh, i'm sorry
10:27
<
BlaXpirit >
well you should
10:27
<
blassin >
I just want to store time differences in my main loop
10:27
<
BlaXpirit >
crystal indeed has tenths of microseconds
10:27
<
blassin >
so I can call the game logic's update with dt (time since last invocation)
10:28
<
BlaXpirit >
blassin, use clock
10:28
<
blassin >
yeah, I'll try that
10:28
<
BlaXpirit >
i don't think crystal even has its features
10:28
<
BlaXpirit >
it has atomic get elapsed + restart
10:29
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:33
<
BlaXpirit >
blassin, doesn't seem right
10:35
<
BlaXpirit >
no idea why you need 2 clocks
10:36
<
blassin >
the draw and update clocks are separatre
10:36
<
blassin >
on the game logic, you need to know how long ago was the last update, and how long ago was the last draw
10:36
<
blassin >
to maintain FPS
10:36
<
blassin >
I mean, to maintain behavior over different speed PCs
10:37
<
BlaXpirit >
maybe i don't know something, but this seems redundant
10:37
<
BlaXpirit >
you update and then draw, in a loop. elapsed time should not be separate. sfml maintains FPS for you
10:38
<
blassin >
I want to keep the interface I'm presenting independent of "backend"
10:48
ashleyis has quit [Ping timeout: 272 seconds]
11:06
CyphrCorn has quit [Remote host closed the connection]
11:15
<
blassin >
BlaXpirit: I'm adding all "drawables" (circles, rectangles, text) to an array
11:16
<
blassin >
and then going through it and calling #draw
11:16
<
blassin >
but SFML gets confused about their types
11:16
<
blassin >
tried to convert SF::CircleShape to CSFML::CircleShape invoking to_unsafe, but can't deduce its type
11:16
<
blassin >
how can I fix this?
11:17
pawnbox has quit [Ping timeout: 240 seconds]
11:18
pawnbox has joined #crystal-lang
11:22
pawnbox has quit [Read error: Connection reset by peer]
11:22
Ven has joined #crystal-lang
11:23
pawnbox has joined #crystal-lang
11:27
xdougx has joined #crystal-lang
11:27
xdougx has quit [Remote host closed the connection]
11:27
xdougx has joined #crystal-lang
11:32
gamemanj has quit [Remote host closed the connection]
11:32
reed_ has quit [Ping timeout: 256 seconds]
11:33
<
BlaXpirit >
blassin, that's strange. please give an example
11:33
<
BlaXpirit >
potentially a huge problem :o
11:34
<
blassin >
I can't seem to call draw on any shape :/
11:35
gamemanj has joined #crystal-lang
11:35
<
BlaXpirit >
everything seems in order
11:36
<
BlaXpirit >
it's probably more of a problem with crystal but i think i can fix it
11:37
<
blassin >
that would be awesome! trying to get my Pong to work for 2 hours now :D
11:39
<
xdougx >
Hash(String, String).new or {} of Hash(String, String), which one is the better one?
11:39
<
blassin >
they don't meant the same, I think
11:39
<
BlaXpirit >
they do
11:40
<
blassin >
oh that's counterintuitive
11:40
<
BlaXpirit >
xdougx, if Hash(String, String).new was unarguably better then why would they add the other syntax
11:40
<
BlaXpirit >
then again, you cannot use Hash.new in macros
11:42
<
blassin >
BlaXpirit: is it easy to explain to me what's wrong with my code now? or why Crystal is acting up?
11:42
<
BlaXpirit >
blassin, just something unfinished in lib fun type deduction
11:43
<
BlaXpirit >
i can reproduce your error
11:43
<
blassin >
great. are you going to fix it anytime soon? (no pressure, just curious)
11:43
<
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
11:44
<
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
11:45
<
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
11:45
<
blassin >
3000 lines far out :D
11:45
<
blassin >
can this benefit from a macro?
11:45
<
jhass >
edin: that's intentional, .to_i? || 0 if you want the 0 (or whatever else)
11:46
<
BlaXpirit >
jhass, what do you think about this?
11:46
<
jhass >
BlaXpirit: still reading backlog
11:49
<
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
11:49
<
BlaXpirit >
damn i'm stupid, how did i miss that
11:50
<
BlaXpirit >
jhass, you can't do it at compile time, u know?
11:50
<
jhass >
well, what exactly?
11:50
<
BlaXpirit >
>> "{{ ({} of Int => Int).stringify }}"
11:50
<
BlaXpirit >
facepalm
11:50
<
BlaXpirit >
>> {{ ({} of Int => Int).stringify }}
11:50
<
BlaXpirit >
>> {{ (Hash(Int, Int).new).stringify }}
11:51
<
jhass >
well yeah, the AST node is for the literal, Hash.new isn't parsed to the same AST node
12:03
ssvb has quit [Ping timeout: 256 seconds]
12:04
<
BlaXpirit >
blassin, try crsfml master
12:08
gamemanj has quit [Remote host closed the connection]
12:10
ponga has joined #crystal-lang
12:11
pawnbox has quit [Ping timeout: 260 seconds]
12:11
barosl has quit [Quit: Leaving]
12:15
barosl has joined #crystal-lang
12:16
<
blassin >
BlaXpirit: thanks!
12:17
<
BlaXpirit >
but dang it, i can't make a small example to illustrate this bug :(
12:17
CyphrCorn has joined #crystal-lang
12:18
<
xdougx >
is not possible to check existence of an Constant with dedined?
12:18
<
xdougx >
defined? **
12:18
<
BlaXpirit >
no, xdougx
12:19
<
xdougx >
exists another way?
12:19
<
xdougx >
>> LOL.nil?
12:19
<
blassin >
BlaXpirit: is it possible to know what is the CWD of .from_file on SFML ?
12:20
<
BlaXpirit >
blassin, well it is just the CWD
12:21
<
BlaXpirit >
wow i'm a dummy, trying to reproduce this on the fixed version
12:21
<
BlaXpirit >
no, nevermind, i'm a dummy because the new example does not even use sfml -_-
12:24
pawnbox has joined #crystal-lang
12:24
<
jhass >
xdougx: why are you unsure whether it's defined? I consider defined? a smell in Ruby
12:27
<
xdougx >
jhass: i was trying to check if an constant exists in compile time like ARGV, because ARGV and ENV isn't always available
12:27
<
jhass >
uh yes they are
12:28
<
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
12:28
<
xdougx >
and to not*
12:29
<
jhass >
I'm not sure I follow
12:30
Ven has quit [Read error: Connection reset by peer]
12:32
Ven has joined #crystal-lang
12:33
<
xdougx >
when i have this case i just started to code defensively to decrease the error rate
12:35
<
jhass >
>> class Foo; def argv; ARGV; end; end; Foo.new.argv
12:36
<
jhass >
it works just fine?
12:36
<
jhass >
>> class Foo; def env; ENV; end; end; Foo.new.env
12:36
<
DeBot >
jhass: # => {"PATH" => "/usr/local/bin:/usr/bin:/bin", "HOME" => "/home/crystal", "USER" => "crystal", "LOGNAME" => "crystal"} -
http://carc.in/#/r/k1k
12:38
<
xdougx >
jhass: hummmm ok, next time im going to work directly with those constants, if i got an error, i'll show :)
12:52
<
BlaXpirit >
jhass, i reported the issue with just the example of the problem
12:53
<
jhass >
BlaXpirit: did you run exactly that and it reproduces? Since I see a missing end just from looking...
12:53
<
BlaXpirit >
jhass, oh of course i broke it last moment
12:53
<
BlaXpirit >
just add the end and it will work
12:53
<
jhass >
probably also missing the @Link
12:54
<
BlaXpirit >
nah, just need to see that it compiles or doesnt compile
13:11
pawnbox has quit [Read error: Connection reset by peer]
13:12
pawnbox has joined #crystal-lang
13:17
<
blassin >
BlaXpirit: when you draw a circle, it's position is the top left corner, right?
13:17
<
BlaXpirit >
blassin, by default yes
13:17
<
BlaXpirit >
you can set its center to be at half size
13:17
<
BlaXpirit >
is actually called "origin"
13:17
<
xdougx >
i can set private initialiser?
13:18
<
BlaXpirit >
yes, xdougx
13:21
<
jhass >
xdougx: initialize is private by default unless explicitly set to something else. In Ruby too
13:23
<
BlaXpirit >
and i thought writing `private def` made the corresponding `new` private :|
13:23
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:23
<
jhass >
mh, does it?
13:24
pawnbox has quit [Ping timeout: 240 seconds]
13:24
<
BlaXpirit >
probably not
13:24
<
jhass >
>> class Foo; private def initialize; end; end; Foo.new
13:24
<
jhass >
wow you're right
13:24
<
jhass >
>> class Foo; def initialize; end; end; Foo.new.initialize
13:24
<
jhass >
okay, it's protected by default then
13:27
pawnbox has joined #crystal-lang
13:27
<
xdougx >
understood hehehe
13:39
ssvb has joined #crystal-lang
13:40
Ven has joined #crystal-lang
13:40
trapped has joined #crystal-lang
13:41
<
jhass >
xdougx: crystal doesn't analyze that there are no concurrent accesses to @@instance that set it back to nil
13:41
<
jhass >
you have to cache it into a local
13:42
<
jhass >
instance == @@instance; return instance if instance; @@instance = set_instance(..)
13:42
<
jhass >
er, instance = @@instance of course
13:46
<
xdougx >
sorry, I couldn't follow up ip
13:46
pawnbox has quit [Read error: Connection reset by peer]
13:51
pawnbox has joined #crystal-lang
13:55
Renich has joined #crystal-lang
13:55
Renich has joined #crystal-lang
13:55
Renich has quit [Client Quit]
13:57
Renich has joined #crystal-lang
13:57
Renich has quit [Client Quit]
13:57
Renich has joined #crystal-lang
13:58
Renich has quit [Client Quit]
13:58
Renich has joined #crystal-lang
14:09
BlaXpirit has quit [Quit: Konversation]
14:23
glenab has joined #crystal-lang
14:23
Renich has quit [Ping timeout: 250 seconds]
14:25
Renich has joined #crystal-lang
14:32
glenab has quit [Remote host closed the connection]
14:33
greengriminal has joined #crystal-lang
14:34
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
14:43
<
xdougx >
has a method to convert array in tuple?
14:44
<
jhass >
Tuple#map can aid in that
14:44
<
jhass >
let's see if I can remember
14:45
<
jhass >
>> a = [1, "foo"]; {Int32, String}.map.with_index {|t, i| t.cast(a[i]) }
14:45
<
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
14:46
<
jhass >
>> a = [1, "foo"]; {Int32, String}.each_with_index.map {|t, i| t.cast(a[i]) }
14:46
<
jhass >
>> a = [1, "foo"]; {Int32, String}.each_with_index.map {|p| t, i = p; t.cast(a[i]) }
14:46
<
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
14:46
<
jhass >
gotta look it up I guess
14:47
pawnbox has quit [Read error: Connection reset by peer]
14:50
<
jhass >
>> a = [1, "foo"]; t = {Int32, String}; r = {0, 1}.map {|i| t[i].cast(a[i]) }; [r, r.class]
14:51
Renich has quit [Ping timeout: 260 seconds]
14:53
pawnbox has joined #crystal-lang
14:53
Renich has joined #crystal-lang
14:59
CyphrCorn has quit [Remote host closed the connection]
15:00
CyphrCorn has joined #crystal-lang
15:01
CyphrCorn has quit [Remote host closed the connection]
15:02
BlaXpirit has joined #crystal-lang
15:08
greengriminal has quit [Quit: This computer has gone to sleep]
15:09
greengriminal has joined #crystal-lang
15:16
CyphrCorn has joined #crystal-lang
15:17
CyphrCorn has quit [Remote host closed the connection]
15:18
<
xdougx >
>> pp [1,2,3,4,5,6].values_at(0, 5)
15:18
<
xdougx >
>> pp [1,2,3,4,5,6].values_at(6)
15:18
<
xdougx >
>> pp [1,2,3,4,5,6].values_at(5)
15:19
<
blassin >
BlaXpirit: I'm seeing an issue on your docs
15:19
<
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."
15:20
<
blassin >
the class names seem to be missing
15:20
<
blassin >
or maybe it's my browser?
15:20
<
BlaXpirit >
blassin, it's an error, thanks
15:20
<
blassin >
so what are the classes? :D
15:20
<
blassin >
SoundBuffer and ... ?
15:21
<
BlaXpirit >
something went wrong there for sure
15:24
<
BlaXpirit >
that file is just busted
15:25
Ven has quit [Read error: Connection reset by peer]
15:27
Ven has joined #crystal-lang
15:29
Ven has quit [Read error: Connection reset by peer]
15:31
Ven has joined #crystal-lang
15:31
<
jhass >
>> [1, "foo", 3.0].values_at(0, 2).class # xdougx but this
15:32
CyphrCorn has joined #crystal-lang
15:33
<
xdougx >
jhass: that struct with macro will be much more useful :)
15:34
<
jhass >
yeah, gonna PR it
15:34
CyphrCorn has quit [Remote host closed the connection]
15:35
<
xdougx >
jhass: what is that {{begin}} {{end}} on the macro, first time seen it
15:35
<
jhass >
the new version of {{% if true %}} {% end %}}
15:36
<
jhass >
we construct things there that wouldn't parse as valid Crystal without the outer context
15:36
<
jhass >
so we need to enter the macro language earlier
15:36
<
jhass >
and that's all it does
15:36
<
xdougx >
so bengin/end will start and ends the macro block
15:37
<
crystal-gh >
[crystal] adlerhsieh opened pull request #1810: Improves documentation style for several classes (master...add-doc-3)
http://git.io/vWB0W
15:39
reed_ has joined #crystal-lang
15:41
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:44
<
xdougx >
>> pp self
15:44
<
DeBot >
xdougx: Error in macro 'pp' /usr/lib/crystal/macros.cr:52, line 2:
15:48
<
crystal-gh >
[crystal] jhass opened pull request #1811: Add Tuple.from and Tuple#from (master...tuple_new_array)
http://git.io/vWBgK
15:51
pawnbox has quit [Ping timeout: 265 seconds]
15:53
<
blassin >
BlaXpirit: any reason why my sounds play just once?
15:54
<
BlaXpirit >
blassin, yes
15:58
pawnbox has joined #crystal-lang
16:00
RX14- is now known as RX14
16:06
PragTob has quit [Remote host closed the connection]
16:06
CyphrCorn has joined #crystal-lang
16:11
pawnbox has quit [Remote host closed the connection]
16:11
pawnbox has joined #crystal-lang
16:12
glenab has joined #crystal-lang
16:13
shama has joined #crystal-lang
16:14
elia has quit [Quit: Computer has gone to sleep.]
16:17
glenab has quit [Ping timeout: 244 seconds]
16:20
pawnbox has quit [Ping timeout: 268 seconds]
16:22
Ven has joined #crystal-lang
16:25
pawnbox has joined #crystal-lang
16:36
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
16:37
<
xdougx >
jhass: why method splat couldn't be a array, its make me crazy
16:38
gamemanj_ has joined #crystal-lang
16:39
gamemanj_ is now known as gamemanj
16:49
leafybas_ has joined #crystal-lang
16:50
benner_ is now known as benner
16:52
<
jhass >
xdougx: because the compiler needs to know the types in order to find the correct overload and generate a call at all
16:52
<
jhass >
xdougx: when doing a call, the byte sizes of the arguments need to be known, so the stack can be correctly prepared etc
16:53
leafybasil has quit [Ping timeout: 260 seconds]
16:53
<
xdougx >
i see, i just cant build an automated setter
16:53
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:54
leafybas_ has quit [Ping timeout: 250 seconds]
16:55
pawnbox has quit [Read error: Connection reset by peer]
16:59
blassin has quit [Ping timeout: 246 seconds]
17:02
CyphrCorn has quit []
17:06
leafybasil has joined #crystal-lang
17:06
<
crystal-gh >
crystal/master a61ef80 Adler: improves documentation style for several classes [ci skip]
17:06
<
crystal-gh >
crystal/master 595a736 Jonne Haß: Merge pull request #1810 from adlerhsieh/add-doc-3...
17:07
pawnbox has joined #crystal-lang
17:09
leafybasil has quit [Remote host closed the connection]
17:20
sdogruyol has joined #crystal-lang
17:21
<
sdogruyol >
how can i access the uri of HTTP::Request since uri is now private method
17:26
NeverDie has joined #crystal-lang
17:29
NeverDie has quit [Client Quit]
17:30
pawnbox_ has joined #crystal-lang
17:33
NeverDie has joined #crystal-lang
17:33
pawnbox has quit [Ping timeout: 240 seconds]
17:42
pawnbox_ has quit []
18:03
glenab has joined #crystal-lang
18:05
sdogruyol has quit [Read error: Connection reset by peer]
18:07
sdogruyol has joined #crystal-lang
18:07
<
jhass >
sdogruyol: what do you need from it?
18:07
<
sdogruyol >
jhass: hey i figured it out in the end thanks :)
18:08
glenab has quit [Ping timeout: 255 seconds]
18:12
glenab has joined #crystal-lang
18:17
glenab has quit [Ping timeout: 268 seconds]
18:29
ponga has quit [Quit: Connection closed for inactivity]
18:35
sdogruyol has quit [Read error: Connection reset by peer]
18:36
sdogruyol has joined #crystal-lang
18:37
sdogruyol has quit [Read error: Connection reset by peer]
18:38
sdogruyol has joined #crystal-lang
18:38
<
xdougx >
jhass: started work with DB, becomes too slow X.X
18:42
canhtak has joined #crystal-lang
18:50
NeverDie has joined #crystal-lang
19:09
<
sdogruyol >
jhass: oh my
19:10
<
sdogruyol >
jhass: weirdly it works for Int32 without requiring json
19:10
elia has joined #crystal-lang
19:10
<
jhass >
>> 1.to_json
19:11
<
xdougx >
>> require "json"; 1.to_json;
19:13
<
sdogruyol >
i meant this
19:13
<
sdogruyol >
<< {foo: 1}.to_json
19:13
<
sdogruyol >
>> {foo: 1}.to_json
19:23
sfcgeorge has joined #crystal-lang
19:28
blue_deref has joined #crystal-lang
19:30
<
jhass >
well, doesn't work either?
19:43
<
sdogruyol >
jhass: yeah it does not guess i had it required in some other module
19:45
canhtak has quit [Quit: canhtak]
19:46
nakilon has joined #crystal-lang
19:47
sdogruyol has quit [Read error: Connection reset by peer]
19:48
sdogruyol has joined #crystal-lang
19:51
<
xdougx >
trully luck :D
19:51
sdogruyol has quit [Read error: Connection reset by peer]
19:51
sdogruyol has joined #crystal-lang
19:53
sdogruyol has quit [Read error: Connection reset by peer]
19:56
edaaa_ has joined #crystal-lang
20:16
fowlduck has joined #crystal-lang
20:20
trapped has joined #crystal-lang
20:23
gamemanj has quit [Ping timeout: 268 seconds]
20:31
nakilon has quit [Ping timeout: 272 seconds]
20:34
NeverDie has joined #crystal-lang
20:44
BlaXpirit has quit [Quit: Konversation]
20:51
NeverDie has quit [Read error: Connection reset by peer]
20:51
NeverDie has joined #crystal-lang
20:58
reed_ has quit [Ping timeout: 260 seconds]
21:02
elia has quit [Quit: Computer has gone to sleep.]
21:05
glenab has joined #crystal-lang
21:15
glenab has quit [Ping timeout: 250 seconds]
21:17
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
21:18
elia has joined #crystal-lang
21:19
fowlduck has quit [Remote host closed the connection]
21:33
shadeslayer_ is now known as shadeslayer
21:33
edaaa_ has quit [Quit: Leaving]
21:33
glenab has joined #crystal-lang
21:37
glenab has quit [Ping timeout: 256 seconds]
21:46
tomchapin has joined #crystal-lang
21:48
glenab has joined #crystal-lang
21:50
nakilon has joined #crystal-lang
21:52
glenab has quit [Ping timeout: 260 seconds]
21:55
epitron is now known as ^_^
21:55
^_^ is now known as epitron
21:59
havenn has joined #crystal-lang
22:00
fowlduck has joined #crystal-lang
22:00
havenn has quit [Client Quit]
22:01
havenn has joined #crystal-lang
22:03
havenn has quit [Client Quit]
22:11
greengriminal has quit [Quit: This computer has gone to sleep]
22:11
greengriminal has joined #crystal-lang
22:24
tomchapin has quit [Ping timeout: 240 seconds]
22:24
tomchapin has joined #crystal-lang
22:26
leafybasil has joined #crystal-lang
22:30
leafybasil has quit [Read error: Connection reset by peer]
22:31
fowlduck has quit [Remote host closed the connection]
22:31
leafybasil has joined #crystal-lang
22:50
glenab has joined #crystal-lang
22:55
glenab has quit [Ping timeout: 240 seconds]
23:00
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
23:01
dylanmei has joined #crystal-lang
23:06
dylanmei has quit [Ping timeout: 255 seconds]
23:11
glenab has joined #crystal-lang
23:20
globalkeith has joined #crystal-lang
23:23
NeverDie has joined #crystal-lang
23:27
tomchapin has joined #crystal-lang
23:34
glenab has quit [Remote host closed the connection]
23:40
greengriminal has quit [Ping timeout: 252 seconds]
23:41
greengriminal has joined #crystal-lang
23:41
sfcgeorg_ has joined #crystal-lang
23:42
sfcgeorg_ has quit [Client Quit]
23:42
sfcgeorge has quit [Ping timeout: 250 seconds]
23:43
nakilon has quit [Ping timeout: 240 seconds]
23:49
greengriminal has quit [Quit: Leaving]
23:53
elia has quit [Quit: Computer has gone to sleep.]
23:54
elia has joined #crystal-lang
23:58
Renich has quit [Ping timeout: 250 seconds]