00:20
Oliphaunte has joined #crystal-lang
00:24
Oliphaunte has quit [Ping timeout: 240 seconds]
00:27
Philpax has joined #crystal-lang
00:28
ssvb has joined #crystal-lang
00:44
Oliphaunte has joined #crystal-lang
00:48
Oliphaunte has quit [Remote host closed the connection]
00:49
Oliphaunte has joined #crystal-lang
00:58
dhk has quit [Read error: Connection reset by peer]
00:58
dhk has joined #crystal-lang
01:08
dhk has quit [Read error: Connection reset by peer]
01:08
dhk has joined #crystal-lang
01:57
<
wmoxam >
Is there a way to specify a type and default argument?
02:02
<
wmoxam >
nm, got it
03:07
Oliphaunte has quit [Remote host closed the connection]
03:11
grios has quit [Ping timeout: 240 seconds]
03:11
|meta has quit [Quit: Connection closed for inactivity]
04:00
Oliphaunte has joined #crystal-lang
04:03
pawnbox has joined #crystal-lang
04:10
pawnbox has quit [Remote host closed the connection]
04:10
pawnbox has joined #crystal-lang
04:29
pawnbox has quit [Remote host closed the connection]
04:35
pawnbox has joined #crystal-lang
04:37
dhk has quit [Quit: Leaving]
04:50
Oliphaunte has quit [Remote host closed the connection]
05:35
pawnbox_ has joined #crystal-lang
05:37
pawnbox has quit [Ping timeout: 244 seconds]
06:37
Oliphaunte has joined #crystal-lang
06:47
Oliphaunte has quit [Remote host closed the connection]
07:20
ome has joined #crystal-lang
07:32
Oliphaunte has joined #crystal-lang
07:33
bjz has joined #crystal-lang
07:37
Oliphaunte has quit [Ping timeout: 260 seconds]
07:37
bjz has quit [Max SendQ exceeded]
07:40
Philpax has quit [Ping timeout: 240 seconds]
07:40
[spoiler] has quit [Quit: Cheers!]
07:41
<
crystal-gh >
[crystal] jhass closed pull request #2228: Add comments in string_pool.cr (master...stringpool)
https://git.io/v2EFN
07:52
txdv has quit [Ping timeout: 252 seconds]
07:53
txdv has joined #crystal-lang
08:10
TheLemonMan has joined #crystal-lang
08:11
mark_66 has joined #crystal-lang
08:13
trapped has joined #crystal-lang
08:20
bjz has joined #crystal-lang
08:26
Oliphaunte has joined #crystal-lang
08:31
Oliphaunte has quit [Ping timeout: 244 seconds]
08:32
pawnbox has joined #crystal-lang
08:34
pawnbox_ has quit [Ping timeout: 272 seconds]
09:00
<
crystal-gh >
crystal/master 5213d0b Jonne Haß: format string_pool.cr
09:08
pawnbox has quit [Remote host closed the connection]
09:12
pawnbox has joined #crystal-lang
09:18
Philpax has joined #crystal-lang
09:21
Oliphaunte has joined #crystal-lang
09:25
Oliphaunte has quit [Ping timeout: 260 seconds]
09:29
ome has quit [Quit: Connection closed for inactivity]
09:46
pawnbox has quit [Remote host closed the connection]
10:03
pawnbox has joined #crystal-lang
10:15
Oliphaunte has joined #crystal-lang
10:20
Oliphaunte has quit [Ping timeout: 240 seconds]
10:20
bjz_ has joined #crystal-lang
10:21
bjz has quit [Ping timeout: 244 seconds]
10:36
<
jhass >
macros get their own lexical scope
10:36
<
RX14 >
it can access a varaible in the method
10:36
<
RX14 >
why can't it access the method'a rgs
10:36
<
RX14 >
why can't it access the method's args
10:37
<
RX14 >
why is is only block arguments
10:37
<
jhass >
well that's inconsistent, yeah
10:37
<
RX14 >
macros should be able to access the scope of where they are called
10:39
<
RX14 >
well if you cripple macros like that i'll just stick to older versions of crystal
10:40
<
RX14 >
or start using a preprocessor
10:40
<
RX14 >
sometimes you just want to use your macros as code snippets
10:40
<
RX14 >
sometimes you want magic
10:44
<
RX14 >
well I like using it in templates
10:44
<
RX14 >
I expand templates in a method
10:44
<
RX14 >
and the template can access the method's stuff
10:45
<
RX14 >
because with templates there isn't really a good method for passing args
10:45
<
RX14 >
you want your template to have acess to the scope of your controller
10:45
<
RX14 >
even if you disagree with that the compiler shouldn't forbid it
10:45
<
jhass >
I do like the "run with self being some object" approach a bit more, make the stuff available as methods
10:46
<
RX14 >
yes but i don't want to make everything an instance variabvle in my controller
10:46
<
jhass >
your templates should have their own classes
10:46
<
RX14 >
sometimes different methods in the controller will have different variables then you have to make everything an instance variable and it's just disgusting
10:47
<
RX14 >
jhass, maybe but the compiler shouldn't dictate that
10:47
<
jhass >
you get view models for free basically
10:47
<
RX14 >
what if you don't want view models?
10:47
<
jhass >
you should :P
10:48
<
RX14 >
i like crystal because it's unrestrictive for a compiled langauge
10:48
<
RX14 >
being too restrictive just makes crystal like everything else
10:48
<
RX14 >
fine, tell people their macros shouldn't use external scope but allow it in the compiler
10:48
<
RX14 >
trust the programmer to make good decisions
10:49
<
jhass >
done too much ruby for that :P
10:49
<
TheLemonMan >
that's a recipe for disaster
10:49
<
jhass >
it's hard to find a good line
10:49
<
TheLemonMan >
most of the times you want your macros to be hygienic
10:49
<
RX14 >
and sometimes you don't want that
10:50
<
RX14 >
i wouldnt write anything that wasn't internal to be not hygenic
10:50
<
TheLemonMan >
scheme solves the problem by letting the user decide their own fate
10:51
<
TheLemonMan >
so I guess a flag to get unhygienic macros is a nice compromise
10:51
<
RX14 >
i wouldn't mind there needing to be extra syntax on the macro definition side to access parent scope
10:51
<
RX14 >
but i would hate the option to be taken away
10:52
<
jhass >
anyway, not on me to decide anyhow
10:52
<
TheLemonMan >
this behaviour must be new since the crystal book doesn't mention it
10:52
<
RX14 >
which behaviour?
10:53
<
TheLemonMan >
the introduction of a fresh scope
10:53
<
RX14 >
macros have been expanded like that for ages
10:53
<
RX14 >
they can have return values
10:53
<
RX14 >
macros are expanded is if their content is placed inside a begin/end block
10:54
<
TheLemonMan >
hm? the book suggests to prefix the variable with a % to get a fresh unique one
10:54
<
RX14 >
thats to stop macros overriding parents scope
10:55
<
RX14 >
begin/end blocks work like that
10:56
<
RX14 >
which makes them almost equivalent to how mcros are expanded
10:56
<
TheLemonMan >
oh I see, I misunderstood your problem
10:56
<
RX14 >
i need to bookmark that tool which expands crystal programs
10:56
<
RX14 >
because ive lost it again
10:57
<
jhass >
crystal tool browser ?
10:57
<
jhass >
oh I guess we dropped that one
10:57
<
RX14 >
what did it do?
10:58
<
jhass >
basically open your source in the browser with clickable method names
10:58
<
jhass >
and after expansion
10:59
<
jhass >
oh, didn't see that one
10:59
<
RX14 >
why was it removed?
11:05
<
RX14 >
ok, finally got template inheritance working using blocks
11:22
mark_66 has quit [Remote host closed the connection]
11:24
mark_66 has joined #crystal-lang
11:28
pawnbox has quit [Remote host closed the connection]
11:29
pawnbox has joined #crystal-lang
11:53
grios has joined #crystal-lang
12:03
Oliphaunte has joined #crystal-lang
12:08
Oliphaunte has quit [Ping timeout: 260 seconds]
12:17
|meta has joined #crystal-lang
12:57
_jungh4ns has joined #crystal-lang
12:57
Oliphaunte has joined #crystal-lang
13:01
Oliphaunte has quit [Ping timeout: 240 seconds]
13:26
Philpax has quit [Ping timeout: 252 seconds]
13:42
TheLemonMan has quit [Remote host closed the connection]
13:43
TheLemonMan has joined #crystal-lang
13:51
Oliphaunte has joined #crystal-lang
13:56
Oliphaunte has quit [Ping timeout: 258 seconds]
14:06
pawnbox has quit [Remote host closed the connection]
14:15
pawnbox has joined #crystal-lang
14:15
pawnbox has quit [Remote host closed the connection]
14:15
pawnbox has joined #crystal-lang
14:21
<
crystal-gh >
[crystal] ysbaddaden closed pull request #2343: OpenSSL additions + HTTP::Client support for more ssl options (master...http-ssl)
https://git.io/vayjc
14:33
asie has left #crystal-lang ["WeeChat 1.5"]
14:33
pawnbox has quit [Read error: Connection reset by peer]
14:34
pawnbox has joined #crystal-lang
14:44
Oliphaunte has joined #crystal-lang
14:45
Oliphaunte has quit [Read error: Connection reset by peer]
14:50
Oliphaunte has joined #crystal-lang
14:50
Oliphaunte has quit [Remote host closed the connection]
14:50
Oliphaunte has joined #crystal-lang
14:51
Oliphaunte has quit [Read error: Connection reset by peer]
14:51
Oliphaunte has joined #crystal-lang
15:10
Oliphaunte has quit [Remote host closed the connection]
15:14
Oliphaunte has joined #crystal-lang
15:14
pawnbox has quit [Remote host closed the connection]
15:14
pawnbox has joined #crystal-lang
15:29
Oliphaunte has quit [Remote host closed the connection]
15:30
Oliphaunte has joined #crystal-lang
15:31
<
crystal-gh >
[crystal] asterite closed 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
15:33
Oliphaunte has quit [Remote host closed the connection]
15:35
Oliphaunte has joined #crystal-lang
15:40
Raimondi has quit [Read error: Connection reset by peer]
15:40
Raimondi has joined #crystal-lang
15:41
Raimondii has joined #crystal-lang
15:43
Oliphaunte has quit [Remote host closed the connection]
15:45
Raimondi has quit [Ping timeout: 240 seconds]
15:47
Oliphaunte has joined #crystal-lang
15:49
Raimondii is now known as Raimondi
15:59
triangles has joined #crystal-lang
16:14
pglombardo has joined #crystal-lang
16:14
kulelu88 has joined #crystal-lang
16:14
kulelu88 has quit [Changing host]
16:14
kulelu88 has joined #crystal-lang
16:21
mark_66 has quit [Remote host closed the connection]
16:22
Oliphaunte has quit [Remote host closed the connection]
16:37
pawnbox has quit [Remote host closed the connection]
16:40
pawnbox has joined #crystal-lang
16:40
vikaton has joined #crystal-lang
16:50
<
crystal-gh >
[crystal] mirek opened pull request #2691: LLVM intrinsics refactor, adding bitswap. (master...intrinsics)
https://git.io/vr7r9
17:17
<
crystal-gh >
crystal/master 4feb758 Ary Borenszweig: Compiler: fixed error message when declaring a variable with a type that's not yet allowed
17:30
pglombardo has quit [Ping timeout: 260 seconds]
17:42
<
crystal-gh >
crystal/master d5fe700 Jonne Haß: Fix OpenSSL::SSL::Socket shutdown logic
17:55
<
Redfoxmoon >
this might be ignorant as fuck; but is there any plans for a gcc target?
17:58
<
jhass >
we heavily rely on LLVM
17:58
<
jhass >
btw LLVM exists because people got fed up of not being able to reuse gcc parts
17:58
<
Redfoxmoon >
Well, you CAN reuse gcc.
18:00
<
Redfoxmoon >
of course, the GPL license comes along; but, that doesn't really matter?
18:01
<
jhass >
it does for some people
18:11
<
Redfoxmoon >
yeah if you want to have the option to close the source... eh
18:13
<
jhass >
it's more about the infectious part of the GPL
18:14
adam12 is now known as adam
18:14
<
jhass >
if we GPL our stdlib for example, since it's recompiled into each program, every crystal program becomes a derivative and must be GPLed
18:14
adam is now known as Guest47004
18:15
<
Redfoxmoon >
jhass, well, compiler != standard library.
18:15
<
jhass >
yeah but why risk headaches
18:15
<
Redfoxmoon >
of course you wouldn't GPL the standard library... or provide a linking exception
18:15
<
Redfoxmoon >
how could it become a headache?
18:15
<
jhass >
I just said it's not linked
18:16
kulelu88 has left #crystal-lang ["Leaving"]
18:16
<
Redfoxmoon >
linked, compiled into
18:16
<
Redfoxmoon >
result is the same
18:16
<
jhass >
if only that were true
18:16
<
Redfoxmoon >
but still; you can have multiple licenses.
18:17
<
jhass >
or one for all and just use LLVM which is just as good for our usecase on the technical level, most likely better by now in fact
18:18
<
Redfoxmoon >
well. last time I checked gcc 6 was faster than llvm :P
18:18
<
Redfoxmoon >
but, alright, I'll hop along
18:20
onionhammer has quit [Quit: WeeChat 1.0.1]
18:20
onionhammer has joined #crystal-lang
18:23
<
asterite >
I think supporting other targets, maybe even compiling to C, could be done
18:24
<
asterite >
but now it's not a priority
18:24
<
asterite >
(or even in our plans)
18:24
<
jhass >
is it worth the effort though? IMO at least atm definitely not
18:25
<
jhass >
once webassembly spreads and LLVM provides a backend for it, that might be interesting to look into
18:25
<
wmoxam >
it's worth it to whomever would want to attempt it
18:37
<
crystal-gh >
crystal/master 67844e0 Ary Borenszweig: Compiler: correctly handle Signal::INT when running sub-program
18:37
<
crystal-gh >
crystal/master 7daab73 Ary Borenszweig: Spec: better abort (imeediately quits and prints summary)
18:37
<
crystal-gh >
crystal/master 66f4312 Ary Borenszweig: Compiler: stop tracking whether a type was allocated or not. Fixes #2607...
19:11
|meta has quit [Quit: Connection closed for inactivity]
19:19
<
crystal-gh >
crystal/master b3943d5 Ary Borenszweig: Set Exception's callstack when raising it, not when creating it
19:40
Oliphaunte has joined #crystal-lang
19:43
Oliphaunte has quit [Read error: Connection reset by peer]
19:44
Oliphaunte has joined #crystal-lang
19:54
<
crystal-gh >
[crystal] asterite closed pull request #2691: LLVM intrinsics refactor, adding bitswap. (master...intrinsics)
https://git.io/vr7r9
19:56
<
crystal-gh >
crystal/master d5a2636 Ary Borenszweig: Compiler: improve error message of a failing `as` to include the original type as well as the filename and line number. Fixes #2663
20:00
Oliphaunte has quit [Remote host closed the connection]
20:02
Oliphaunte has joined #crystal-lang
20:07
vikaton has quit [Quit: Connection closed for inactivity]
20:12
<
crystal-gh >
crystal/master 171035a Jonne Haß: Add Tuple.from, Tuple#from, NamedTuple.from and NamedTuple#from
20:12
<
crystal-gh >
crystal/master 8fe37c5 Jonne Haß: Merge pull request #1811 from jhass/tuple_new_array...
20:14
Oliphaunte has quit [Remote host closed the connection]
20:18
Oliphaunte has joined #crystal-lang
20:24
Oliphaunte has quit [Remote host closed the connection]
20:26
<
crystal-gh >
crystal/master 477c5d4 Jonne Haß: Fix tuple spec for new TypeCastError wording
20:27
<
BlaXpirit >
wait, make spec eats a ton of memory for me and takes very long. what am I doing wrong?
20:44
pawnbox has quit [Remote host closed the connection]
20:45
pawnbox has joined #crystal-lang
20:45
Oliphaunte has joined #crystal-lang
20:45
Oliphaunte has quit [Read error: Connection reset by peer]
20:51
pawnbox has quit [Ping timeout: 240 seconds]
21:37
Oliphaunte has joined #crystal-lang
21:38
<
crystal-gh >
[crystal] asterite opened pull request #2694: Correctly implement dup and clone. Fixes #2627 (master...feature/dup_clone)
https://git.io/vr7pT
21:57
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
22:01
pawnbox has joined #crystal-lang
22:06
pawnbox has quit [Ping timeout: 264 seconds]
22:28
Oliphaunte has quit [Remote host closed the connection]
22:28
Oliphaunte has joined #crystal-lang
22:30
Philpax has joined #crystal-lang
22:58
ssvb has quit [Remote host closed the connection]
23:13
Philpax has quit [Ping timeout: 252 seconds]
23:18
|meta has joined #crystal-lang
23:18
<
RX14 >
i have no idea why it trails off after 10 concurrent connections