00:00
maattdd_ has joined #crystal-lang
00:05
maattdd_ has quit [Ping timeout: 245 seconds]
00:06
<
FromGitter >
<bew> @genericpenguin you don't need the `()` when they are empty, and you also don't need the `|i|` and `|j|` as you don't use it
01:13
<
FromGitter >
<genericpenguin> Good to know. Thanks
02:52
guy has joined #crystal-lang
02:57
guy has quit [Ping timeout: 260 seconds]
03:04
rohitpaulk has joined #crystal-lang
03:09
rohitpaulk has quit [Ping timeout: 248 seconds]
03:16
hightower3 has joined #crystal-lang
03:20
hightower2 has quit [Ping timeout: 252 seconds]
03:40
wojnar has joined #crystal-lang
03:54
learod has joined #crystal-lang
04:04
learod has quit [Remote host closed the connection]
04:05
learod has joined #crystal-lang
04:05
rohitpaulk has joined #crystal-lang
04:09
learod has quit [Ping timeout: 240 seconds]
04:34
wojnar has quit [Quit: Leaving]
05:25
alex`` has joined #crystal-lang
07:37
rohitpaulk has quit [Ping timeout: 240 seconds]
07:45
rohitpaulk has joined #crystal-lang
07:55
Qchmqs__ has joined #crystal-lang
08:00
rohitpaulk has quit [Ping timeout: 252 seconds]
08:03
Qchmqs__ is now known as Qchmqs
08:08
alex`` has quit [Ping timeout: 245 seconds]
08:16
alex`` has joined #crystal-lang
08:22
Qchmqs has left #crystal-lang ["Konversation terminated!"]
08:35
rohitpaulk has joined #crystal-lang
08:46
alex`` has quit [Ping timeout: 240 seconds]
10:03
alex`` has joined #crystal-lang
10:48
Papierkorb has joined #crystal-lang
10:48
learod has joined #crystal-lang
10:49
learod has quit [Remote host closed the connection]
10:49
learod has joined #crystal-lang
10:54
learod has quit [Ping timeout: 248 seconds]
10:54
Papierkorb has left #crystal-lang ["Konversation terminated!"]
10:56
learod has joined #crystal-lang
11:13
learod has quit [Remote host closed the connection]
11:20
learod has joined #crystal-lang
11:24
learod has quit [Remote host closed the connection]
11:40
<
crystal-gh >
[crystal] j8r closed pull request #5718: Keep empty sections when parsing INI (master...keep_empty_ini_sections)
https://git.io/vA3eQ
11:59
learod has joined #crystal-lang
12:00
learod has quit [Remote host closed the connection]
12:01
learod has joined #crystal-lang
12:05
learod has quit [Ping timeout: 256 seconds]
12:18
bonemind has joined #crystal-lang
12:24
wojnar has joined #crystal-lang
12:29
wojnar has quit [Quit: Leaving]
12:31
wojnar has joined #crystal-lang
12:32
learod has joined #crystal-lang
12:34
wojnar has quit [Client Quit]
12:34
wojnar has joined #crystal-lang
12:45
learod has quit [Remote host closed the connection]
12:45
learod has joined #crystal-lang
12:53
learod has quit [Remote host closed the connection]
13:32
learod has joined #crystal-lang
13:36
duane has joined #crystal-lang
14:05
maattdd_ has joined #crystal-lang
14:46
duane has quit [Ping timeout: 256 seconds]
14:47
sz0 has joined #crystal-lang
15:16
duane has joined #crystal-lang
16:11
bonemind has quit [Quit: WeeChat 2.0.1]
16:22
olbat__ has joined #crystal-lang
16:23
thews_ has joined #crystal-lang
16:23
cyberarm_ has joined #crystal-lang
16:24
cyberarm has quit [*.net *.split]
16:24
olbat has quit [*.net *.split]
16:24
Cyrus has quit [*.net *.split]
16:24
thews has quit [*.net *.split]
16:24
lvmbdv has quit [*.net *.split]
16:26
emancu has joined #crystal-lang
16:31
Cyrus has joined #crystal-lang
16:31
Cyrus is now known as Guest1156
16:32
lvmbdv has joined #crystal-lang
16:45
rohitpaulk has quit [Ping timeout: 276 seconds]
16:45
duane has quit [Ping timeout: 240 seconds]
16:48
duane has joined #crystal-lang
16:55
<
FromGitter >
<philfine> Do unit tests timeout ?
16:56
<
FromGitter >
<philfine> I mean, I want to make a test that it might block in some Fiber
16:56
sz0 has quit [Quit: Connection closed for inactivity]
16:58
<
FromGitter >
<philfine> @hightower2 ... I got it a little further
16:58
<
FromGitter >
<philfine> Because, previous implementation would suffer from a sort of race as only listen would register the interest in the event
16:58
<
FromGitter >
<philfine> Posting the changes
17:31
maattdd_ has quit [Ping timeout: 240 seconds]
17:33
<
crystal-gh >
[crystal] j8r reopened pull request #5718: Keep empty sections when parsing INI (master...keep_empty_ini_sections)
https://git.io/vA3eQ
17:34
qard has joined #crystal-lang
17:37
qard has quit [Client Quit]
17:39
qard has joined #crystal-lang
17:46
kosmonaut has joined #crystal-lang
17:46
kosmonaut has quit [Quit: Ping timeout (120 seconds)]
17:46
DeBot has quit [Ping timeout: 276 seconds]
17:46
DeBot has joined #crystal-lang
17:47
Liothen has quit [Ping timeout: 252 seconds]
17:48
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
17:49
qard has joined #crystal-lang
17:51
Liothen has joined #crystal-lang
17:51
Liothen has joined #crystal-lang
17:52
<
FromGitter >
<philfine> BTW, I just realized that in some more event obscure situation you need to define the channels with more capacity
18:00
duane has quit [Ping timeout: 260 seconds]
18:01
duane has joined #crystal-lang
18:03
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:05
rohitpaulk has joined #crystal-lang
18:05
ephemera__ has quit [Quit: No Ping reply in 180 seconds.]
18:06
ephemera_ has joined #crystal-lang
18:08
qard has joined #crystal-lang
18:28
duane has quit [Ping timeout: 276 seconds]
18:39
rohitpaulk has quit [Ping timeout: 240 seconds]
18:44
pta2002 has joined #crystal-lang
18:46
duane has joined #crystal-lang
18:56
shalmezad has joined #crystal-lang
19:24
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:28
Ven`` has joined #crystal-lang
19:28
qard has joined #crystal-lang
19:35
<
FromGitter >
<bew> this looks a bit weird, why is are the `@@listeners` on class level, and in the EventType class?
19:37
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:43
qard has joined #crystal-lang
19:51
rohitpaulk has joined #crystal-lang
19:57
rohitpaulk has quit [Ping timeout: 260 seconds]
20:00
shalmezad has quit [Quit: Leaving]
20:00
shalmezad has joined #crystal-lang
20:04
<
FromGitter >
<bew> also why not simply use a Channel?
20:12
duane has quit [Ping timeout: 256 seconds]
20:13
duane has joined #crystal-lang
20:14
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:17
qard has joined #crystal-lang
20:18
<
FromGitter >
<philfine> @bew, what happens if one of the listeners is not on the receive
20:18
<
FromGitter >
<philfine> Will the message be lost ?
20:18
<
FromGitter >
<philfine> For that listener ?
20:19
<
FromGitter >
<philfine> Oh, the intent is for all listeners to receive the same messages
20:19
<
FromGitter >
<philfine> Not distinct ones
20:19
<
FromGitter >
<bew> oh ok
20:19
<
FromGitter >
<bew> you can use 1 channel for each listeners then
20:20
<
FromGitter >
<philfine> @bew any help with the error ?
20:20
<
FromGitter >
<philfine> HOr how can I fix that ?
20:20
<
FromGitter >
<bew> and then you'd use an EventManager like you were doing...
20:20
<
FromGitter >
<bew> don't use Class ?
20:21
<
FromGitter >
<bew> I tried to understand what you were doing in there, but I couldn't understand from the naming, and what you have inside the classes..
20:22
<
FromGitter >
<bew> for example, why use a Class
20:22
<
FromGitter >
<bew> and can you give an example with 2 handlers, and 2 kind of events?
20:23
<
FromGitter >
<philfine> Sure one moment
20:23
<
FromGitter >
<philfine> I will give same handler and 2 types
20:23
<
FromGitter >
<bew> and also, what is an EventHandler for you?
20:25
<
FromGitter >
<philfine> Your right Event Handler lost meaning with that code
20:25
<
FromGitter >
<philfine> Let me refresh it ...
20:28
<
FromGitter >
<bew> and why is the dispatch in EventType?
20:29
<
FromGitter >
<philfine> This is the origins
20:31
<
FromGitter >
<philfine> Sort of
20:31
pracabor is now known as robacarp
20:34
<
FromGitter >
<philfine> I think I lost the focus when I changed that code.
20:40
<
RX14 >
crystal's new time implementation with 2 values is so shit
20:41
<
RX14 >
my predict.cr specs don't pass because of the inaccuracies
20:42
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:42
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
20:49
qard has joined #crystal-lang
20:57
<
Yxhvd >
was it better before?
21:00
<
FromGitter >
<philfine> @RX14 inacuracies in returned time ?
21:01
<
RX14 >
it was predicting satellites down to 0.5mm accuracy, now it's 500mm
21:01
<
Yxhvd >
is it fixable or should it be reverted?
21:01
<
RX14 >
@philfine no in time calculations
21:01
<
RX14 >
Yxhvd, it's just float inprecision
21:01
<
RX14 >
where before there were no floats involved
21:01
<
FromGitter >
<philfine> :D
21:01
<
FromGitter >
<philfine> Big mistake ...
21:02
<
Yxhvd >
ruby uses a lot of rationals in the time parts IIRC.
21:02
<
RX14 >
I complained about it before
21:02
<
RX14 >
before we used the number of 0.1us intervals since the year 0000
21:02
<
Yxhvd >
which make it slow as fuck, but accurate
21:02
<
RX14 >
now we use two integers
21:02
<
RX14 >
seconds since 0000
21:02
<
RX14 >
and ns since the last second
21:02
<
RX14 >
having 2 integers makes everything harder
21:03
<
RX14 >
so we usually give up and do calculations in floats
21:03
<
RX14 >
since the added precision to time values suddenly makes our time not fit in 64bit integers
21:03
<
RX14 >
it's really annoyying
21:05
<
FromGitter >
<bew> maybe we just need good functions to manipulate those 2 numbers? (so that you don't have to do it yourself, and have to use floats)
21:05
<
RX14 >
we should use i128 ns since 0000
21:08
<
hightower3 >
Glad to hear I'm not the only one despairing over Time in 0.24.1
21:08
<
hightower3 >
(for different reasons, but still :))
21:12
duane has quit [Ping timeout: 240 seconds]
21:12
<
RX14 >
loosing ticks is good
21:12
<
RX14 >
because it makes moving back seamless
21:16
qard has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
21:43
duane has joined #crystal-lang
21:58
rohitpaulk has joined #crystal-lang
21:59
alex`` has quit [Ping timeout: 240 seconds]
22:00
shalmezad has quit [Quit: Leaving]
22:02
Ven`` has joined #crystal-lang
22:03
rohitpaulk has quit [Ping timeout: 256 seconds]
22:06
duane has quit [Ping timeout: 276 seconds]
22:07
duane has joined #crystal-lang
22:11
<
FromGitter >
<philfine> What is the cheapest and easiest way to print Float64 with 3 decimals
22:14
<
FromGitter >
<philfine> Sorry for the dumb question
22:14
<
FromGitter >
<philfine> .round(3)
22:17
Ven`` has quit [Read error: Connection reset by peer]
22:17
sz0 has joined #crystal-lang
22:17
Ven`` has joined #crystal-lang
22:38
rohitpaulk has joined #crystal-lang
22:39
<
hightower3 >
Hey, is there a way to use macros to keep appending to a macro variable, and then another macro do dump the accumulated code/content into some location?
22:41
<
FromGitter >
<bew> Yes
22:42
<
FromGitter >
<bew> But not to a macro variable, you can use constant
22:43
<
FromGitter >
<bew> So declare `MY_CONST = [] of *` and in macros you can use `MY*CONST` to add elements, or traverse the contained elements
22:48
<
hightower3 >
fabulous, thanks bew
22:49
duane has quit [Ping timeout: 256 seconds]
22:51
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
23:15
andersh has quit [Ping timeout: 265 seconds]
23:16
avdi has quit [Ping timeout: 256 seconds]
23:18
andersh has joined #crystal-lang
23:18
andersh has quit [Max SendQ exceeded]
23:19
andersh has joined #crystal-lang
23:20
aarongodin has quit [Ping timeout: 260 seconds]
23:22
mroth has quit [Ping timeout: 252 seconds]
23:22
danzilio has quit [Ping timeout: 255 seconds]
23:22
aarongodin has joined #crystal-lang
23:22
faustinoaq has joined #crystal-lang
23:23
ilovezfs_ has quit [Ping timeout: 256 seconds]
23:23
danzilio has joined #crystal-lang
23:24
mroth has joined #crystal-lang
23:24
danzilio has quit [Max SendQ exceeded]
23:24
avdi has joined #crystal-lang
23:24
mroth has quit [Max SendQ exceeded]
23:24
avdi has quit [Max SendQ exceeded]
23:24
mroth has joined #crystal-lang
23:25
avdi has joined #crystal-lang
23:25
mroth has quit [Max SendQ exceeded]
23:25
avdi has quit [Max SendQ exceeded]
23:25
danzilio has joined #crystal-lang
23:25
ilovezfs_ has joined #crystal-lang
23:25
mroth has joined #crystal-lang
23:25
manveru has quit [Ping timeout: 256 seconds]
23:25
avdi has joined #crystal-lang
23:25
danzilio has quit [Max SendQ exceeded]
23:26
danzilio has joined #crystal-lang
23:26
avdi has quit [Max SendQ exceeded]
23:26
avdi has joined #crystal-lang
23:26
danzilio has quit [Max SendQ exceeded]
23:26
avdi has quit [Max SendQ exceeded]
23:26
danzilio has joined #crystal-lang
23:27
avdi has joined #crystal-lang
23:27
jwaldrip has quit [Ping timeout: 256 seconds]
23:27
danzilio has quit [Max SendQ exceeded]
23:27
danzilio has joined #crystal-lang
23:27
manveru has joined #crystal-lang
23:28
manveru has quit [Max SendQ exceeded]
23:28
jwaldrip has joined #crystal-lang
23:28
manveru has joined #crystal-lang
23:38
duane has joined #crystal-lang