00:20
soveran has joined #crystal-lang
00:25
soveran has quit [Ping timeout: 246 seconds]
00:28
elia has quit [Quit: Computer has gone to sleep.]
00:39
umurgdk has joined #crystal-lang
00:40
mgarciaisaia has joined #crystal-lang
00:40
mgarciaisaia has left #crystal-lang [#crystal-lang]
00:40
mgarciaisaia1 has joined #crystal-lang
00:44
umurgdk has quit [Ping timeout: 250 seconds]
00:55
mgarciaisaia has joined #crystal-lang
00:55
mgarciaisaia1 has quit [Read error: Connection reset by peer]
00:56
mgarciaisaia1 has joined #crystal-lang
00:57
mgarciaisaia1 has quit [Read error: Connection reset by peer]
00:57
mgarciaisaia has quit [Read error: Connection reset by peer]
00:57
mgarciaisaia1 has joined #crystal-lang
01:00
mgarciaisaia has joined #crystal-lang
01:03
mgarciaisaia1 has quit [Ping timeout: 276 seconds]
01:06
pawnbox has joined #crystal-lang
01:09
mgarciaisaia has quit [Ping timeout: 268 seconds]
01:10
pawnbox has quit [Ping timeout: 244 seconds]
01:20
mgarciaisaia has joined #crystal-lang
01:39
ozra_ is now known as ozra
01:44
Philpax has joined #crystal-lang
01:55
mgarciaisaia has quit [Remote host closed the connection]
01:57
Philpax has quit [Ping timeout: 260 seconds]
02:01
Philpax has joined #crystal-lang
02:02
mgarciaisaia has joined #crystal-lang
02:02
mgarciaisaia has left #crystal-lang [#crystal-lang]
02:11
Cidan has joined #crystal-lang
02:19
tony_ has joined #crystal-lang
02:22
soveran has joined #crystal-lang
02:26
tony_ has quit [Quit: Lost terminal]
02:27
soveran has quit [Ping timeout: 250 seconds]
02:28
umurgdk has joined #crystal-lang
02:32
Philpax has quit [Read error: Connection reset by peer]
02:33
Philpax has joined #crystal-lang
02:34
umurgdk has quit [Ping timeout: 276 seconds]
02:47
mverzilli has joined #crystal-lang
02:50
pawnbox has joined #crystal-lang
02:51
mverzilli has quit [Client Quit]
02:59
Philpax has quit [Ping timeout: 260 seconds]
03:04
<
crystal-gh >
crystal/master 8e31380 Juan Wajnerman: Use `IO#read_bytes` and `IO#write_bytes` in `SignalHandler` (instead of slices with pointers)
03:07
Philpax has joined #crystal-lang
03:21
ozra has quit [Ping timeout: 244 seconds]
03:38
zeno_ has joined #crystal-lang
03:38
zeno_ has quit [Client Quit]
03:53
Philpax has quit [Ping timeout: 260 seconds]
03:58
Philpax has joined #crystal-lang
04:16
umurgdk has joined #crystal-lang
04:19
matp has quit [Remote host closed the connection]
04:21
umurgdk has quit [Ping timeout: 240 seconds]
04:25
soveran has joined #crystal-lang
04:30
soveran has quit [Ping timeout: 264 seconds]
04:31
willl has quit [Quit: Connection closed for inactivity]
04:35
matp has joined #crystal-lang
06:04
umurgdk has joined #crystal-lang
06:09
umurgdk has quit [Ping timeout: 264 seconds]
06:26
soveran has joined #crystal-lang
06:35
trapped has joined #crystal-lang
06:49
mark2 has joined #crystal-lang
06:52
pawnbox has quit [Remote host closed the connection]
06:53
<
crystal-gh >
[crystal] MakeNowJust opened pull request #2414: Block arg '&' dose not always follow no whitespace (master...fix/block-args-ampersand-not-following-no-whitespace-always)
https://git.io/vVztH
06:59
Philpax has quit [Ping timeout: 260 seconds]
07:05
Philpax has joined #crystal-lang
07:08
pawnbox has joined #crystal-lang
07:35
globalkeith has joined #crystal-lang
07:39
umurgdk has joined #crystal-lang
07:40
pawnbox has quit [Remote host closed the connection]
07:41
umurgdk_ has joined #crystal-lang
07:41
umurgdk has quit [Read error: Connection reset by peer]
07:49
alsm has joined #crystal-lang
07:53
Philpax has quit [Ping timeout: 260 seconds]
07:56
pawnbox has joined #crystal-lang
08:04
umurgdk_ has quit [Remote host closed the connection]
08:09
elia has joined #crystal-lang
08:10
umurgdk has joined #crystal-lang
08:14
pawnbox has quit [Remote host closed the connection]
08:15
umurgdk has quit [Ping timeout: 246 seconds]
08:15
pawnbox has joined #crystal-lang
08:27
Philpax has joined #crystal-lang
08:35
umurgdk has joined #crystal-lang
08:56
Rinkana has joined #crystal-lang
08:58
Philpax has quit [Read error: Connection reset by peer]
09:03
Philpax has joined #crystal-lang
09:06
alsm has quit [Remote host closed the connection]
10:00
Philpax has quit [Read error: Connection reset by peer]
10:07
soveran has quit [Remote host closed the connection]
10:08
umurgdk has quit [Remote host closed the connection]
10:11
teukka has quit [Ping timeout: 240 seconds]
10:15
umurgdk has joined #crystal-lang
10:16
teukka has joined #crystal-lang
10:19
umurgdk has quit [Ping timeout: 244 seconds]
10:19
umurgdk has joined #crystal-lang
10:31
Philpax has joined #crystal-lang
10:55
luislavena has joined #crystal-lang
10:55
<
crystal-gh >
crystal/master 5b410a9 Jonne Haß: Fix reference in HTTP::Server::Context doc
11:07
soveran has joined #crystal-lang
11:09
soveran has quit [Remote host closed the connection]
11:09
soveran has joined #crystal-lang
11:09
soveran has quit [Changing host]
11:09
soveran has joined #crystal-lang
11:37
ozra has joined #crystal-lang
11:53
<
crystal-gh >
[crystal] jhass opened pull request #2415: Reintroduce convenience API for cookie handling in HTTP responses (master...response_cookies)
https://git.io/vVzAF
11:54
umurgdk has quit [Remote host closed the connection]
11:56
x0f has quit [Ping timeout: 276 seconds]
12:06
umurgdk has joined #crystal-lang
12:06
tilpner has quit [Ping timeout: 252 seconds]
12:08
bam0 has joined #crystal-lang
12:24
pawnbox has quit [Remote host closed the connection]
12:24
tilpner has joined #crystal-lang
12:31
pawnbox has joined #crystal-lang
12:32
pawnbox has quit [Remote host closed the connection]
12:32
pawnbox has joined #crystal-lang
12:41
pawnbox has quit [Read error: Connection reset by peer]
12:41
pawnbox has joined #crystal-lang
12:47
pawnbox has quit [Remote host closed the connection]
12:48
pawnbox has joined #crystal-lang
12:53
pawnbox has quit [Remote host closed the connection]
12:53
pawnbox has joined #crystal-lang
13:13
rmosolgo has joined #crystal-lang
13:14
iamstef_ has joined #crystal-lang
13:15
ozra_ has joined #crystal-lang
13:18
pawnbox_ has joined #crystal-lang
13:20
mjblack- has joined #crystal-lang
13:22
ozra has quit [*.net *.split]
13:22
mjblack has quit [*.net *.split]
13:22
iamstef has quit [*.net *.split]
13:22
pawnbox has quit [*.net *.split]
13:22
soveran has quit [*.net *.split]
13:22
ylluminate has quit [*.net *.split]
13:22
Veejay has quit [*.net *.split]
13:22
jwaldrip has quit [*.net *.split]
13:22
jokke has quit [*.net *.split]
13:22
aemadrid has quit [*.net *.split]
13:22
mjblack- is now known as mjblack
13:24
soveran has joined #crystal-lang
13:24
aemadrid has joined #crystal-lang
13:24
jwaldrip has joined #crystal-lang
13:24
ylluminate has joined #crystal-lang
13:24
jokke has joined #crystal-lang
13:24
Veejay has joined #crystal-lang
13:33
iamstef_ is now known as iamstef
13:40
umurgdk has quit [Remote host closed the connection]
13:43
<
jokke >
jhass: yay! ready!
13:44
<
jokke >
turned in the thesis today
13:44
<
jokke >
so glad it's finally over :D
13:48
umurgdk has joined #crystal-lang
13:53
umurgdk has quit [Remote host closed the connection]
14:15
rmosolgo has quit [Remote host closed the connection]
14:25
<
crystal-gh >
crystal/master 61a0280 Ary Borenszweig: Parser: disallow `foo.!`, `foo.&&` and `foo.||` as they are not methods
14:25
<
crystal-gh >
crystal/master 870e41b Ary Borenszweig: Added `Time::EpochConverter` and `Time::EpochMillisConverter`. Related to #2399
14:25
<
crystal-gh >
crystal/master 85de22b Ary Borenszweig: Added some docs for `Time` and `Time::Format`
14:25
<
crystal-gh >
[crystal] asterite closed pull request #2399: .to_json for Time, specs for Time and Time::Format (master...master)
https://git.io/vV80n
14:29
umurgdk has joined #crystal-lang
14:30
pawnbox__ has joined #crystal-lang
14:32
pawnbox_ has quit [Ping timeout: 248 seconds]
14:39
<
crystal-gh >
crystal/master c474cff Ary Borenszweig: Time: make sure to use UTC in specs for testing `%s`
14:41
Philpax has quit [Ping timeout: 244 seconds]
14:43
<
crystal-gh >
[crystal] jhass closed pull request #2415: Reintroduce convenience API for cookie handling in HTTP responses (master...response_cookies)
https://git.io/vVzAF
14:45
rmosolgo has joined #crystal-lang
14:48
umurgdk has quit [Remote host closed the connection]
14:58
<
crystal-gh >
[crystal] asterite closed pull request #1896: Enumerable improvements (master...enumerable_improvements)
https://git.io/vVgo0
14:59
Rinkana has quit [Quit: Page closed]
15:04
mgarciaisaia has joined #crystal-lang
15:05
umurgdk has joined #crystal-lang
15:16
mark2 has quit [Quit: Leaving.]
15:19
mgarciaisaia has left #crystal-lang [#crystal-lang]
15:20
<
jeromegn >
jokke: congrats :)
15:21
soveran has quit [Remote host closed the connection]
15:32
<
asterite >
jokke: your thesis uses crystal?
15:35
pawnbox__ has quit [Ping timeout: 244 seconds]
15:36
soveran has joined #crystal-lang
15:36
soveran has joined #crystal-lang
16:16
elia has quit [Quit: Computer has gone to sleep.]
16:17
mgarciaisaia1 has joined #crystal-lang
16:17
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
16:21
dsounded has joined #crystal-lang
16:21
mgarciaisaia has joined #crystal-lang
16:24
mgarciaisaia has left #crystal-lang [#crystal-lang]
16:25
pleiosaur has quit [Remote host closed the connection]
16:26
pleiosaur has joined #crystal-lang
16:35
bam0 has quit [Ping timeout: 246 seconds]
16:36
dsounded has quit [Quit: Page closed]
16:36
pawnbox has joined #crystal-lang
16:41
pawnbox has quit [Remote host closed the connection]
16:59
soveran has quit [Remote host closed the connection]
17:02
soveran has joined #crystal-lang
17:02
soveran has quit [Remote host closed the connection]
17:14
rmosolgo has quit [Remote host closed the connection]
17:17
<
jokke >
asterite: yeah in large parts
17:17
<
jokke >
jeromegn: thanks :)
17:18
umurgdk has quit [Remote host closed the connection]
17:19
umurgdk has joined #crystal-lang
17:21
soveran has joined #crystal-lang
17:22
pawnbox has joined #crystal-lang
17:22
pawnbox has quit [Remote host closed the connection]
17:23
pawnbox has joined #crystal-lang
17:31
tomchapin has joined #crystal-lang
17:46
rmosolgo has joined #crystal-lang
17:57
rmosolgo has quit [Remote host closed the connection]
18:15
<
crystal-gh >
[crystal] marceloboeira opened pull request #2418: Add documentation for the http client response `success?` method (master...response-doc)
https://git.io/vV22z
18:24
rmosolgo has joined #crystal-lang
18:28
willl has joined #crystal-lang
19:06
umurgdk has quit [Remote host closed the connection]
19:18
umurgdk has joined #crystal-lang
19:23
umurgdk has quit [Ping timeout: 244 seconds]
19:31
pawnbox has quit [Remote host closed the connection]
19:32
rmosolgo has quit []
19:32
ozra_ is now known as ozra
19:32
pawnbox has joined #crystal-lang
19:37
matp has quit [Remote host closed the connection]
19:41
matp has joined #crystal-lang
19:47
soveran has quit [Remote host closed the connection]
19:52
soveran has joined #crystal-lang
19:52
soveran has joined #crystal-lang
20:05
soveran has quit [Remote host closed the connection]
20:18
soveran has joined #crystal-lang
20:18
soveran has quit [Changing host]
20:18
soveran has joined #crystal-lang
20:20
umurgdk has joined #crystal-lang
20:23
umurgdk has quit [Remote host closed the connection]
20:23
umurgdk has joined #crystal-lang
20:47
trapped_ has joined #crystal-lang
20:47
trapped has quit [Read error: Connection reset by peer]
20:56
trapped_ is now known as trapped
21:00
pawnbox has quit [Read error: Connection reset by peer]
21:26
elia has joined #crystal-lang
21:41
soveran has quit [Remote host closed the connection]
21:43
LastWhisper____ has joined #crystal-lang
21:47
ozra has quit [Ping timeout: 264 seconds]
21:52
ozra has joined #crystal-lang
21:57
LastWhisper____ has quit [Ping timeout: 244 seconds]
21:58
luislavena has quit [Quit: Leaving]
22:14
nwmcsween has joined #crystal-lang
22:15
<
nwmcsween >
so a complaint, why isn't there a size_t type?
22:24
<
BlaXpirit >
>> LibC::SizeT # nwmcsween,
22:24
<
BlaXpirit >
(64 on 64bit systems)
22:25
<
nwmcsween >
no I mean as a native type
22:26
<
BlaXpirit >
nwmcsween, what would that be
22:26
<
BlaXpirit >
crystal doesn't have platform-dependent-size types
22:26
<
BlaXpirit >
oh wait, it does, it's the Pointer
22:27
<
nwmcsween >
yes it has to
22:27
<
BlaXpirit >
nwmcsween, what are you looking to achieve?
22:27
<
nwmcsween >
not having a to make a preamble to pick a platform specific size
22:29
<
nwmcsween >
e.g #if UINTPTR_MAX > 0xffffffff UIntM = UInt64....
22:30
<
nwmcsween >
of course whatever that translates to in crystal
22:30
Philpax has joined #crystal-lang
22:31
<
BlaXpirit >
nwmcsween, what are you looking to achieve?
22:32
<
nwmcsween >
to understand why
22:33
<
nwmcsween >
it's just something I consider a wart
22:37
<
nwmcsween >
or even better move away from type width mixed with type representation
22:38
<
BlaXpirit >
nwmcsween, I have no idea what you're talking about. there is no actual problem here.
22:38
<
BlaXpirit >
size-dependent types are silly in the first place (other than pointer, of course)
22:38
<
nwmcsween >
how does crystal handle over flowing?
22:39
<
nwmcsween >
what about performance of using a UInt64 on a 32 bit machine
22:39
<
BlaXpirit >
nwmcsween, what about it? it's OK but normally you use Int32 which is good on both types of cpu
22:39
<
nwmcsween >
no it's not
22:40
<
BlaXpirit >
>> a = 2**30; a += 2**30
22:40
<
BlaXpirit >
woops, that's a floating point number
22:40
<
nwmcsween >
think of a function taking n Uint64's
22:41
<
BlaXpirit >
nwmcsween, a function takes a Int
22:41
<
BlaXpirit >
>> a = 1<<30; a += 1<<30
22:41
<
BlaXpirit >
overflow is handled by wraparound
22:41
soveran has joined #crystal-lang
22:41
<
nwmcsween >
yes 2's compliment
22:42
<
nwmcsween >
which in the case of signed types is dangerous
22:42
<
BlaXpirit >
nwmcsween, same as in all other compiled languages
22:42
<
nwmcsween >
but there is no machine type so I overflow faster...
22:43
<
nwmcsween >
assuming I don't want to spill everything by making all args UInt64's
22:44
<
BlaXpirit >
nwmcsween, what's the problem. do you want your program to fail specifically on 32 bit processors? I don't get it
22:44
<
BlaXpirit >
if you really need the 64 bits, you use the 64 bits
22:44
<
BlaXpirit >
also note that 32bit processors are a very rare corner case
22:44
<
BlaXpirit >
slow 64bit performance wouldn't be the number one problem anyway
22:45
<
nwmcsween >
the issue is crystal either leaves me with spilling registers on 32 bit or overflowing on 64 bit both of which are bad
22:46
x0f has joined #crystal-lang
22:46
<
nwmcsween >
assuming I use UInt64 on 32 bit and Int on 64 bit
22:46
Philpax has quit [Ping timeout: 244 seconds]
22:46
soveran has quit [Ping timeout: 244 seconds]
22:46
<
nwmcsween >
or Int32 or whatever it is in crystal
22:47
<
BlaXpirit >
nwmcsween, alright, if you insist, you can use LibC::SizeT
22:47
<
nwmcsween >
that's not a native type
22:47
<
BlaXpirit >
so..........?
22:48
<
nwmcsween >
does crystal depend on libc?
22:48
<
BlaXpirit >
but this definition just happens to be in that namespace,you can't actually take type definitions from libc
22:49
<
BlaXpirit >
>> LibC::SizeT.new(8589934592)
22:49
<
BlaXpirit >
there, it overflows on a 32 bit machine, are you happy?
22:50
trapped has quit [Read error: Connection reset by peer]
22:53
<
BlaXpirit >
>> LibC::SizeT.new(8589934599)
22:54
<
BlaXpirit >
nwmcsween, please do note that a function doesn't have to force the type of its arguments
22:55
<
nwmcsween >
hmm so def foo(bar, baz) is parametric wrt types?
22:55
<
BlaXpirit >
nwmcsween, yes
22:55
<
BlaXpirit >
>> def add(a : Int, b : Int); a+b; end; puts "#{typeof(add(1, 1))}, #{typeof(add(8589934599, 1))}" # nwmcsween
22:56
<
BlaXpirit >
>> def add(a, b); a+b; end; puts "#{typeof(add(1.0, 1))}, #{typeof(add(8589934599, 1))}" # nwmcsween
22:56
<
nwmcsween >
oh so it does this at runtime then
22:56
<
BlaXpirit >
nwmcsween, no, a function is generated for each type of argument that it's used with
22:56
<
BlaXpirit >
like template in c++
22:57
<
BlaXpirit >
these typeof are compile-time constructs, by the way. it's all known in advance, no runtime check
22:57
<
BlaXpirit >
8589934599 just happens to be an Int64 literal, while 123123 is an Int32 literal
22:58
<
nwmcsween >
ok so say I have a 'public' api that is generic, crystal with generate n! interfaces?
22:59
<
BlaXpirit >
nwmcsween, it will generate only those interfaces that are used
22:59
<
BlaXpirit >
this kind of generic function can't be put into a dynamically linked library, if that's what you're asking
23:00
<
nwmcsween >
otherwise it would have to generate n! interfaces
23:01
<
BlaXpirit >
crystal has global type inference, it looks at all the source code during compilation
23:01
<
BlaXpirit >
though this will be made less lenient for performance
23:02
<
nwmcsween >
can you create a shared lib with crystal?
23:03
<
BlaXpirit >
nwmcsween, this is not a well-researched topic. If I remember correctly, you can, if you set fixed types for the functions
23:03
<
BlaXpirit >
I'd try searching, but I need to sleep. but you can try searching as well.
23:42
soveran has joined #crystal-lang
23:47
soveran has quit [Ping timeout: 248 seconds]
23:52
kfpratt has quit []