00:03
<
jhass >
I don't think so
00:04
<
jhass >
you could write a macro that merges two though
00:13
soveran has joined #crystal-lang
00:17
elia has quit [Quit: (IRC Client: textualapp.com)]
00:18
pawnbox has joined #crystal-lang
00:19
soveran has quit [Ping timeout: 240 seconds]
00:20
matp has quit [Remote host closed the connection]
00:20
matp_ has joined #crystal-lang
00:23
pawnbox has quit [Ping timeout: 276 seconds]
00:30
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
00:34
ozra has quit [Ping timeout: 276 seconds]
00:34
ozra has joined #crystal-lang
00:55
bjz has joined #crystal-lang
01:20
<
emancu >
jhass: that is something thay I tried to do but don't know how to ?
01:22
<
emancu >
interesting
01:22
<
emancu >
that is easier than i thought
01:22
<
emancu >
thx jhass! you are awesome
01:35
<
jhass >
emancu: the issue isn't that you moved it into the module but that you're passing local variables
01:35
<
jhass >
the macro sees what you pass in the arguments, not its runtime value
01:36
onionhammer has joined #crystal-lang
01:37
<
emancu >
jhass: so I can only merge fixed tuples ?
01:39
<
jhass >
pretty much
01:39
<
emancu >
hmm what a bummer
01:40
<
jhass >
I assumed in your real usecase you can paste the literal into the macro call because you already have it inside a macro or something
01:42
<
emancu >
well, it is not always inside a macro, but I would like to write it as a macro, maybe I can do some magic and define a "meta-macro"
01:43
Raimondii has joined #crystal-lang
01:46
<
emancu >
i'm going for food, but I will give a try later
01:46
Raimondi has quit [Ping timeout: 240 seconds]
01:47
emancu has quit [Remote host closed the connection]
01:49
Raimondii is now known as Raimondi
02:04
ozra has quit [Ping timeout: 260 seconds]
02:05
ozra has joined #crystal-lang
02:08
pawnbox has joined #crystal-lang
02:13
pawnbox has quit [Ping timeout: 246 seconds]
02:16
soveran has joined #crystal-lang
02:21
soveran has quit [Ping timeout: 260 seconds]
02:40
pawnbox has joined #crystal-lang
02:44
pawnbox has quit [Ping timeout: 260 seconds]
03:00
pawnbox has joined #crystal-lang
03:01
|2701 has quit [Quit: Connection closed for inactivity]
03:03
aharlan has joined #crystal-lang
03:05
pawnbox has quit [Ping timeout: 260 seconds]
03:21
willl has quit [Quit: Connection closed for inactivity]
03:36
pawnbox has joined #crystal-lang
03:39
Philpax has joined #crystal-lang
03:41
pawnbox has quit [Ping timeout: 246 seconds]
04:14
emancu has joined #crystal-lang
04:18
soveran has joined #crystal-lang
04:23
emancu has quit [Remote host closed the connection]
04:23
soveran has quit [Ping timeout: 260 seconds]
04:28
pawnbox has joined #crystal-lang
04:33
pawnbox has quit [Ping timeout: 276 seconds]
04:42
<
wmoxam >
Intentional?
04:44
mgarciaisaia has joined #crystal-lang
04:50
mgarciaisaia has left #crystal-lang [#crystal-lang]
05:06
pawnbox has joined #crystal-lang
05:07
ozra has quit [Ping timeout: 246 seconds]
05:08
ozra has joined #crystal-lang
05:09
emancu has joined #crystal-lang
05:11
pawnbox has quit [Ping timeout: 276 seconds]
05:14
emancu has quit [Ping timeout: 240 seconds]
05:42
pawnbox has joined #crystal-lang
05:47
pawnbox has quit [Ping timeout: 260 seconds]
06:02
soveran has joined #crystal-lang
06:02
soveran has joined #crystal-lang
06:02
soveran has quit [Changing host]
06:12
trapped has joined #crystal-lang
06:17
<
BlaXpirit >
wmoxam, macro def were changed, yeah
06:18
pawnbox has joined #crystal-lang
06:23
pawnbox has quit [Ping timeout: 260 seconds]
06:36
trapped has quit [Read error: Connection reset by peer]
06:38
trapped has joined #crystal-lang
06:43
pawnbox has joined #crystal-lang
06:48
bjz_ has joined #crystal-lang
06:49
bjz has quit [Ping timeout: 244 seconds]
06:57
emancu has joined #crystal-lang
07:02
emancu has quit [Ping timeout: 250 seconds]
07:14
ozra has quit [Ping timeout: 240 seconds]
07:15
ozra has joined #crystal-lang
07:17
clal has joined #crystal-lang
07:18
clal has quit [Client Quit]
07:28
bjz has joined #crystal-lang
07:29
bjz_ has quit [Ping timeout: 240 seconds]
07:32
trapped has quit [Read error: Connection reset by peer]
08:46
emancu has joined #crystal-lang
08:50
emancu has quit [Ping timeout: 276 seconds]
09:05
matp_ has quit [Remote host closed the connection]
09:40
soveran has quit [Remote host closed the connection]
10:06
Philpax has quit [Ping timeout: 276 seconds]
10:26
kulelu88 has joined #crystal-lang
10:26
kulelu88 has quit [Changing host]
10:26
kulelu88 has joined #crystal-lang
10:27
nwmcsween has joined #crystal-lang
10:27
nwmcsween is now known as Guest53590
10:30
Guest53590 has quit [Read error: Connection reset by peer]
10:30
nwmcsween_ has quit [Ping timeout: 240 seconds]
10:34
emancu has joined #crystal-lang
10:39
emancu has quit [Ping timeout: 260 seconds]
10:39
bjz_ has joined #crystal-lang
10:41
bjz has quit [Ping timeout: 244 seconds]
11:11
kulelu88 has quit [Quit: Leaving]
11:27
Philpax has joined #crystal-lang
12:30
trapped has joined #crystal-lang
12:30
Ven has joined #crystal-lang
12:36
crystal-lang202 has joined #crystal-lang
12:42
emancu has joined #crystal-lang
12:44
emancu has quit [Remote host closed the connection]
12:47
<
wmoxam >
BlaXpirit: okay great, thanks!
12:58
<
wmoxam >
I didn't understand the changelog initially but now it makes sense
13:02
<
crystal-gh >
crystal/master 8f216e7 Ary Borenszweig: Merge branch 'release/0.17'
13:16
<
RX14 >
i'm getting a really really weird error when using crystal-pg
13:17
<
RX14 >
it seems to be a compiler bug
13:17
<
jokke >
i'm trying to build crystal but i'm getting this error:
13:17
<
jokke >
Syntax error in ./src/object.cr:4 '!' is a pseudo-method and can't be redefined
13:18
bjz_ has quit [Ping timeout: 260 seconds]
13:19
<
RX14 >
the eroor doesn't seem to happen when i'm running the specs on the library
13:19
bjz has joined #crystal-lang
13:19
<
RX14 >
there is no possible way @@decoders is nil
13:19
<
RX14 >
and it doesn't even give me a nil trace
13:19
<
RX14 >
or tell me what other type it thinks it is
13:20
<
RX14 >
i don't get it
13:21
<
RX14 >
i can't isolate it either
13:23
<
BlaXpirit >
jokke, to build crystal you need latest release of crystal and latest source code of crystal. then run make clean && make
13:23
<
jokke >
BlaXpirit: a simple git pull won't do?
13:24
<
BlaXpirit >
jokke, git pull is one way to get latest source code, sure
13:24
<
BlaXpirit >
but what I should say is, to build crystal at any commit, you need the latest binary release that preceded it
13:24
<
jokke >
ah my earlier git pull just failed. that explains it
13:26
<
jokke >
BlaXpirit: ah ok gotcha
13:26
<
RX14 >
yet the compiler says it is at random, when you actually try to use it in a meaningful way
13:27
<
jhass >
RX14: probably a bug yeah
13:27
<
jhass >
you know how to get them fixed fast, reduce the code :P
13:27
<
RX14 >
i don't get why in any way
13:28
emancu has joined #crystal-lang
13:28
<
RX14 >
i can'ty reduce it because i have nowhere to start
13:28
<
jhass >
I usually pull all relevant code into a single file by replacing the "require"'s
13:28
<
jhass >
then get rid of all dead code
13:28
<
jhass >
then try to simplify what's left, inlining methods and stuff
13:29
pawnbox has quit [Remote host closed the connection]
13:29
<
jhass >
retrying if the file still reproduces at each step
13:29
pawnbox has joined #crystal-lang
13:30
pawnbox has quit [Remote host closed the connection]
13:30
pawnbox has joined #crystal-lang
13:33
crystal-lang202 has quit [Ping timeout: 250 seconds]
13:33
emancu has quit [Remote host closed the connection]
13:34
|2701 has joined #crystal-lang
13:34
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:37
<
RX14 >
seems to be something to do with spec2
13:37
<
RX14 >
using postgres inside spec2 breaks postgres
13:44
<
RX14 >
requiring spec2 before pg break it
13:48
<
RX14 >
turns out its this
13:56
<
jokke >
BlaXpirit: hm it still fails
13:57
<
jokke >
Crystal 0.17.3 [8f216e7] (Sat May 21 13:27:29 UTC 2016)
13:57
<
BlaXpirit >
jokke, make clean
13:57
<
jokke >
yeah i did that
13:59
<
BlaXpirit >
jokke, well obviously this is not the latest source code of crystal
13:59
<
BlaXpirit >
check whether remote and branch are correct, i dunno
13:59
<
BlaXpirit >
was it the branch? then i recommend adding git branch to shell prompt
14:00
<
jokke >
yeah that was it
14:01
soveran has joined #crystal-lang
14:01
soveran has quit [Changing host]
14:01
soveran has joined #crystal-lang
14:01
<
jokke >
how can i make spec only certain specs?
14:03
<
jokke >
ah i'll just use .build/crystal spec
14:03
<
BlaXpirit >
doesn't seem to work just like that
14:04
<
BlaXpirit >
i just tried 'make -d spec', it's scary
14:04
<
BlaXpirit >
"Putting child 0x15950e0 (.build/all_spec) PID 29388 on the chain. \\ Live child 0x15950e0 (.build/all_spec) PID 29388 \\ Reaping winning child 0x15950e0 PID 29388 "
14:04
matp has joined #crystal-lang
14:04
<
jhass >
jokke: bin/crystal spec/std/foo should be just fine
14:06
<
RX14 >
i use 0.15.0
14:06
<
RX14 >
because i need power_assert.cr
14:07
<
jhass >
0.17 revamped how class var / constant initialization is done a bit
14:07
<
RX14 >
well i would love to upgrade
14:07
<
RX14 >
but until you can make an array of generics
14:08
<
RX14 >
or someone manages to work around that restriction and upgrade power_assert.cr
14:08
<
RX14 >
or I can use object as a generic
14:09
<
RX14 >
so many silly restrictions which just disallow you from creating code which works on any type
14:10
<
BlaXpirit >
yeah, the limitations on generics suck :( i can't wait to be able to use things like Int and Array(Object)
14:10
<
jhass >
all that stuff is likely going to be a focus in 0.18
14:11
<
RX14 >
sorry if that rant sounded offensive, i've been trying to run my basic specs for 4 hours and been hitting roadblock after roadblock
14:13
<
BlaXpirit >
assuming it works, I wonder if using : Int instead of : Int32 is gonna cause a performance hit
14:13
<
RX14 >
well I assume no more than removing : Int and letting type inference generate the code
14:14
<
RX14 >
before using no type restruction then passing n different types of Int should generate perfectly fine code
14:15
soveran has quit [Remote host closed the connection]
14:17
Ven has joined #crystal-lang
14:18
<
BlaXpirit >
RX14, well for function arguments : Int works even now, but I mean for declaring types of variables
14:18
<
RX14 >
how would that work?
14:18
<
RX14 >
it would just choose an int
14:18
<
RX14 >
and use that
14:18
<
RX14 >
i don't think using Int as a variable type would even work
14:19
<
RX14 >
it has to have a size
14:20
<
RX14 >
oh you need like that
14:21
<
RX14 >
it would have to have a performance effect
14:21
<
jhass >
BlaXpirit: I guess it would be equivalent to using the union of all its subclasses
14:21
<
BlaXpirit >
what if LLVM finds a way to optimize
14:23
<
BlaXpirit >
in the case that only one type from the union is ever used
14:23
<
jhass >
I guess it would indeed optimize that case
14:24
<
jhass >
through dead code elimination already
14:27
<
BlaXpirit >
ok I get it, base class is a special case because it's just a reference
14:28
<
RX14 >
BlaXpirit, yeah
14:28
<
BlaXpirit >
but the error message is still weird. proc???
14:28
<
RX14 >
reference vs vcalue
14:30
emancu has joined #crystal-lang
14:32
<
jhass >
BlaXpirit: the error message is simply wrong, feel free to open an issue
14:40
ozra has quit [Ping timeout: 246 seconds]
14:41
ozra has joined #crystal-lang
14:42
emancu has quit [Remote host closed the connection]
14:55
<
crystal-gh >
[crystal] jreinert opened pull request #2630: add support for gcm ciphers where tag getting/setting is required (master...topic/openssl-tag)
https://git.io/vrgbQ
15:03
emancu has joined #crystal-lang
15:05
pawnbox has quit [Remote host closed the connection]
15:07
pawnbox has joined #crystal-lang
15:10
emancu has quit [Remote host closed the connection]
15:16
matp has quit [Remote host closed the connection]
15:32
matp has joined #crystal-lang
15:32
matp has quit [Client Quit]
15:33
matp has joined #crystal-lang
15:44
<
RX14 >
what the fuck
15:47
<
RX14 >
what's the workaround?
15:47
<
RX14 >
it really shouldn't be an edge case
15:47
<
jhass >
the issue I linked is all i know too
15:47
<
RX14 >
it should use the dns server in /etc/resolv.conf and query for the domain I specified
15:47
<
RX14 >
its not a .local
15:48
<
RX14 >
it's a normal DNS query
15:48
<
RX14 >
it's intermittent
15:48
<
RX14 >
which is even worse
15:57
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:59
_jungh4ns has joined #crystal-lang
16:01
<
RX14 >
time to do DNS resolution using ``
16:02
<
RX14 >
`host -t a db | head -n 1`
16:04
pawnbox has quit [Remote host closed the connection]
16:08
pawnbox has joined #crystal-lang
16:19
<
BlaXpirit >
i suppose D:
16:21
<
RX14 >
I used getent instead
16:21
<
RX14 >
because it's more common and more machine readable
16:22
<
RX14 >
but it works
16:41
Philpax has quit [Ping timeout: 244 seconds]
16:44
soveran has joined #crystal-lang
16:50
soveran has quit [Read error: Connection reset by peer]
16:50
soveran has joined #crystal-lang
17:17
willl has joined #crystal-lang
17:24
soveran has quit [Read error: Connection reset by peer]
17:25
soveran has joined #crystal-lang
17:29
soveran has quit [Remote host closed the connection]
17:47
soveran has joined #crystal-lang
17:54
ozra has quit [Ping timeout: 240 seconds]
17:54
ozra has joined #crystal-lang
18:11
soveran has quit [Remote host closed the connection]
19:31
|2701 has quit [Quit: Connection closed for inactivity]
19:33
bjz has quit [Ping timeout: 252 seconds]
19:41
<
zodiak_ >
call me stupid but, can I download the crystal docs as a PDF for offline reading ?
19:41
<
zodiak_ >
I assume I am missing something obvious
19:42
<
jhass >
uh no we don't render a PDF anywhere
19:43
<
zodiak_ >
okily dokily. dankeschoen
19:43
<
jhass >
just clone the repo, checkout the branch, open in your browser
19:43
<
zodiak_ >
yup.. not tablet toilet friendly but..
19:44
<
zodiak_ >
vunderbar
19:44
<
jhass >
ah interesting, didn't know
19:44
<
jhass >
could even consider letting CI do that I guess
19:44
<
jhass >
but meh, more repo bloat
19:45
<
BlaXpirit >
jhass, serving the website from gh-pages in the same repo is so wrong
19:45
<
BlaXpirit >
well, we know about it but
19:45
<
jhass >
heh, I don't do the infra
19:46
<
BlaXpirit >
gh-pages is a terrible idea in the first place but oh well, hype
19:47
<
jhass >
it's okay if you keep only the source stuff in there, adding generated stuff to serve as static file host is meh
19:50
<
BlaXpirit >
well no, keeping the source in gh-pages is also bad. if you don't display the generated content, there's no point in naming it 'gh-pages'
19:50
<
BlaXpirit >
and if you do use gh-pages, then mixing static and nonstatic content is even worse
19:51
<
BlaXpirit >
I wonder if I took a radical approach to this, whether that would be accepted
19:52
<
BlaXpirit >
the idea is to remove gh-pages completely, make a new branch with the source content that gh-pages has, preferably keeping commit history but pruning it
19:52
<
BlaXpirit >
then a separate github repo or a proper host to contain generated files
19:53
<
jhass >
start with the latter, convince them to do docs.crystal-lang.org, docs.crystal-lang.org/api
19:53
<
jhass >
then we can just filter-branch gh-pages
19:53
<
BlaXpirit >
jhass, crystal-lang.org blog is also in there
19:53
<
jhass >
yes, the sources
19:53
<
jhass >
github generates the html
19:54
<
jhass >
since it's jekyll
19:54
<
BlaXpirit >
well that complicates things
19:54
<
BlaXpirit >
i wouldn't advocate a separate domain
19:54
<
jhass >
only the gitbook is generated and committed by us as well as the API docs copied into it on each release
20:02
ozra has quit [Ping timeout: 276 seconds]
20:03
ozra has joined #crystal-lang
20:05
|2701 has joined #crystal-lang
20:40
soveran has joined #crystal-lang
20:40
soveran has quit [Remote host closed the connection]
20:41
soveran has joined #crystal-lang
20:41
soveran has quit [Changing host]
20:41
soveran has joined #crystal-lang
20:56
<
jokke >
does anyone know of a way to create apr type hashed md5 sums in crystal?
20:56
<
jokke >
s/hashed/salted/
21:21
sp4rrow has joined #crystal-lang
21:21
<
sp4rrow >
what is the difference between init for app and init for lib?
21:22
<
jhass >
not sure there was one yet
21:34
pawnbox has quit [Remote host closed the connection]
21:34
<
sp4rrow >
yeah I didnt see much difference
21:34
<
sp4rrow >
I have not used shareds or anything yet so I was not sure if there was going to be unexpected things down the line
21:35
pawnbox has joined #crystal-lang
21:49
<
jhass >
it's mainly there already so people get used to it
21:50
<
jhass >
in case we do need/want to diverge stronger
22:08
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
22:15
bjz has joined #crystal-lang
22:37
trapped has quit [Read error: Connection reset by peer]
23:01
Raimondii has joined #crystal-lang
23:02
pawnbox has quit []
23:03
pawnbox has joined #crystal-lang
23:05
Raimondi has quit [Ping timeout: 240 seconds]
23:07
soveran has quit [Remote host closed the connection]
23:07
<
pawnbox >
how do i capture instance of base class inside a module in that class?
23:08
<
pawnbox >
or reference?
23:09
Raimondii is now known as Raimondi
23:11
|2701 has quit [Quit: Connection closed for inactivity]
23:11
<
jhass >
I don't quite follow
23:12
pawnbox has quit [Remote host closed the connection]
23:13
pawnbox has joined #crystal-lang
23:14
Raimondii has joined #crystal-lang
23:15
pawnbox has quit [Remote host closed the connection]
23:15
pawnbox has joined #crystal-lang
23:17
Raimondi has quit [Ping timeout: 240 seconds]
23:19
Raimondii is now known as Raimondi
23:26
pawnbox has quit [Remote host closed the connection]
23:27
pawnbox has joined #crystal-lang
23:31
pawnbox has quit [Ping timeout: 250 seconds]
23:59
bjz has quit [Read error: Connection reset by peer]