00:02
bcardiff has joined #crystal-lang
00:03
bcardiff1 has quit [Read error: Connection reset by peer]
00:07
bcardiff has quit [Ping timeout: 272 seconds]
00:08
bcardiff has joined #crystal-lang
00:16
bcardiff has quit [Quit: Leaving.]
00:35
Locke23rus has quit [Remote host closed the connection]
00:37
kulelu88 has joined #crystal-lang
01:18
vikaton has quit []
01:23
c355E3B has quit [Quit: Connection closed for inactivity]
01:39
datanoise has quit [Ping timeout: 276 seconds]
01:41
vikaton has joined #crystal-lang
01:46
kulelu88 has left #crystal-lang ["Leaving"]
01:46
Cidan is now known as zz_Cidan
02:06
bcardiff has joined #crystal-lang
02:10
datanoise has joined #crystal-lang
02:12
bcardiff has quit [Quit: Leaving.]
02:38
NeverDie_ has joined #crystal-lang
02:39
NeverDie has quit [Read error: Connection reset by peer]
02:56
JBat has joined #crystal-lang
02:56
JBat has quit [Client Quit]
02:56
JBat has joined #crystal-lang
02:57
JBat has quit [Client Quit]
03:10
<
vikaton >
wat is this elixir?
03:18
ponga has joined #crystal-lang
03:25
shama has quit [Remote host closed the connection]
03:31
shama has joined #crystal-lang
03:31
shama has quit [Remote host closed the connection]
03:33
<
strcmp1 >
whats weird about it
03:33
<
strcmp1 >
it comes from ruby btw
03:34
NeverDie_ is now known as NeverDie
03:40
strcmp1 has quit [Quit: Leaving]
03:54
JBat has joined #crystal-lang
03:57
ponga has quit [Quit: Leaving...]
03:59
JBat has quit [Ping timeout: 265 seconds]
04:06
bcardiff has joined #crystal-lang
04:30
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
05:05
havenwood has joined #crystal-lang
05:20
mdz_ has joined #crystal-lang
05:30
mdz_ has quit [Remote host closed the connection]
05:39
bcardiff has quit [Quit: Leaving.]
05:43
vikaton has quit [Quit: Connection closed for inactivity]
06:04
havenwood has quit [Ping timeout: 258 seconds]
06:53
Ven has joined #crystal-lang
06:57
Ven has quit [Client Quit]
07:07
datanoise has quit [Ping timeout: 256 seconds]
07:07
Ven has joined #crystal-lang
07:15
sfate has joined #crystal-lang
07:28
ponga has joined #crystal-lang
07:30
BlaXpirit has joined #crystal-lang
07:33
zipR4ND has joined #crystal-lang
07:33
sandelius has joined #crystal-lang
07:40
leafybasil has quit [Remote host closed the connection]
08:05
datanoise has joined #crystal-lang
08:08
mdz_ has joined #crystal-lang
08:08
sfate has quit [Ping timeout: 240 seconds]
08:13
mdz_ has quit [Ping timeout: 265 seconds]
08:29
datanoise has quit [Ping timeout: 264 seconds]
08:30
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:48
Ven has joined #crystal-lang
08:59
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:07
zipR4ND has quit [Ping timeout: 272 seconds]
09:08
Ven has joined #crystal-lang
09:09
mdz_ has joined #crystal-lang
09:15
mdz_ has quit [Ping timeout: 276 seconds]
09:19
leafybasil has joined #crystal-lang
09:33
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:56
ponga has quit [Remote host closed the connection]
09:57
ponga has joined #crystal-lang
10:01
ponga has quit [Ping timeout: 255 seconds]
10:07
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:19
sandelius has joined #crystal-lang
10:32
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:35
sandelius has joined #crystal-lang
10:37
<
sandelius >
does Crystal have self.inherited(base) ?
10:38
<
jhass >
sandelius: macro inherited
10:38
<
jhass >
{{@type}} is the base
10:38
<
sandelius >
jhass where's it defined? Could not find it in the API docs
10:39
<
jhass >
it's a special macro invoked by the compiler, so probably just undocumented
10:40
<
sandelius >
jhass Ahh there it's, thanks. I'm considering porting my little web framework to Crystal
http://ramverk.org
10:43
<
sandelius >
it's super fast and I took the best parts from Rails (and slimmed them down) and express.js.
10:57
ponga has joined #crystal-lang
11:16
<
sandelius >
jhass do you know if it's possible to have the macro inherited inside a module that uses included?
11:17
<
jhass >
sandelius: yup it is, you just need to take care to escape the inner macro variables so they won't get interpreted by the included macro
11:18
<
jhass >
macros are just templates that should generate code that's fed back into the compiler
11:18
<
jhass >
and by fed back I mean literally the parser stage
11:21
havenwood has joined #crystal-lang
11:22
<
jhass >
oh, no I don't think it works that way
11:22
<
jhass >
I think you need to include the macro inherited directly into the macro included definition
11:22
<
jhass >
at least I got it working that way once
11:23
<
sandelius >
jhass when I do that it puts the B twice
11:23
<
jhass >
this way you attach the macro inherited to ClassMethods
11:23
<
jhass >
well, as said, escape the inner one
11:23
<
sandelius >
jhass don't really know what you mean by that? :)
11:23
<
jhass >
eh, right nvm
11:25
<
jhass >
interesting
11:30
<
jhass >
I don't follow why it does that, but I think it's a bug
11:31
<
jhass >
sure I can follow what it should do
11:31
<
sandelius >
ahh you mean like that :)
11:31
<
jhass >
well, those will need to be macros anyway
11:31
<
jhass >
so not sure it's worth to keep the ClassModule structure at all
11:31
<
jhass >
*ClassMethods
11:32
<
sandelius >
jhass I guess I could define the methods inside the macro
11:32
<
jhass >
you'll have to
11:32
<
jhass >
class_attribute will have to be a macro
11:32
<
sandelius >
ahh yeah that's true
11:38
vikaton has joined #crystal-lang
11:43
datanoise has joined #crystal-lang
11:46
zipR4ND has joined #crystal-lang
11:49
strcmp1 has joined #crystal-lang
12:03
c355E3B has joined #crystal-lang
12:12
datanoise has quit [Ping timeout: 245 seconds]
12:19
sandelius has quit [Read error: Connection reset by peer]
12:29
sandelius has joined #crystal-lang
12:30
Ven has joined #crystal-lang
12:45
unshadow has joined #crystal-lang
13:09
datanoise has joined #crystal-lang
13:25
<
crystal-gh >
[crystal] bararchy opened pull request #735: Process.kill & Process.getpgid (master...master)
http://git.io/vItB3
13:35
datanoise has quit [Ping timeout: 265 seconds]
13:37
BlaXpirit has quit [Read error: Connection reset by peer]
13:37
BlaXpirit_ has joined #crystal-lang
13:37
BlaXpirit_ is now known as BlaXpirit
13:44
asterite has joined #crystal-lang
13:59
<
unshadow >
I'm working on a spec, I want to check if return value is between 0..65535, but doing Process.getpgid(pid.to_i).should eq(0..65535) returns an error:
13:59
<
unshadow >
Failure/Error: Process.getpgid(pid.to_i).should eq(0..65535)
13:59
<
unshadow >
expected: 0..65535
13:59
<
unshadow >
got: 30663
14:04
<
jhass >
kinda backwards but (0..65535).should contain Process.getpgid would work
14:05
mdz_ has joined #crystal-lang
14:11
bcardiff has joined #crystal-lang
14:16
NeverDie has joined #crystal-lang
14:37
datanoise has joined #crystal-lang
14:48
<
unshadow >
jhass: send a PR you said, it will be fun you said.... yeha...
14:48
<
jhass >
it isn't? :o
14:53
<
jhass >
unshadow: Process.kill(pid.to_i, Signal::SIGKILL).should eq(0) # you missed that one btw ;)
14:55
<
unshadow >
>> puts Signal::SIGKILL
14:55
<
unshadow >
>> puts Process::Signal::SIGKILL
14:56
<
unshadow >
>> Signal::KILL
14:56
<
jhass >
ah, right, my bad
15:07
<
BlaXpirit >
what the heck how did u
15:07
<
BlaXpirit >
why is this heart red for me
15:08
<
BlaXpirit >
oh, of course, it's IRC....
15:10
<
jhass >
and the channel doesn't have +c set
15:10
<
jhass >
sorry, won't do that again :P
15:10
<
unshadow >
how can I color the text ?
15:10
<
unshadow >
that's cool :)
15:11
<
jhass >
depends on your client
15:11
<
BlaXpirit >
let's just not :|
15:21
jqwark has joined #crystal-lang
15:22
bcardiff1 has joined #crystal-lang
15:25
bcardiff has quit [Ping timeout: 264 seconds]
15:26
zipR4ND has quit [Ping timeout: 240 seconds]
15:33
asterite has quit [Ping timeout: 246 seconds]
16:08
shama has joined #crystal-lang
16:39
<
unshadow >
So, do I get the green light for merge ?
17:02
mdz_ has quit [Remote host closed the connection]
17:04
mdz_ has joined #crystal-lang
17:11
aemadrid has joined #crystal-lang
17:32
leafybasil has quit []
17:33
c355E3B has quit [Quit: Connection closed for inactivity]
17:43
vikaton has quit [Quit: Connection closed for inactivity]
18:01
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
18:08
zz_Cidan is now known as Cidan
18:11
Cidan is now known as zz_Cidan
18:14
zz_Cidan is now known as Cidan
18:27
havenwood has joined #crystal-lang
18:42
jqwark has quit [Quit: Page closed]
18:54
n1ftyn8 has quit [Remote host closed the connection]
18:54
endou_________ has quit [Remote host closed the connection]
19:14
vikaton has joined #crystal-lang
19:27
aemadrid has quit [Quit: Connection closed for inactivity]
20:02
vikaton has quit [Remote host closed the connection]
20:02
emmanueloga has quit [Remote host closed the connection]
20:09
bcardiff has joined #crystal-lang
20:11
sandelius has joined #crystal-lang
20:12
bcardiff1 has quit [Ping timeout: 264 seconds]
20:25
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
20:32
sandelius has joined #crystal-lang
20:42
n1ftyn8 has joined #crystal-lang
20:43
endou_________ has joined #crystal-lang
20:45
emmanueloga has joined #crystal-lang
20:47
mdz_ has quit [Remote host closed the connection]
20:58
mdz_ has joined #crystal-lang
20:58
mdz_ has quit [Remote host closed the connection]
21:05
vikaton has joined #crystal-lang
21:16
<
crystal-gh >
[crystal] asterite closed pull request #735: Process.kill & Process.getpgid (master...master)
http://git.io/vItB3
21:19
BlaXpirit has quit [Quit: Quit Konversation]
21:30
<
travis-ci >
manastech/crystal#2409 (master - fc57e45 : Ary Borenszweig): The build passed.
21:33
<
crystal-gh >
crystal/master 3bced71 Ary Borenszweig: Made Signal an enum, and let Process.kill use it as a type restriction. Also added Process.kill variant that accepts many pids.
21:46
<
travis-ci >
manastech/crystal#2410 (master - 3bced71 : Ary Borenszweig): The build passed.
21:46
vikaton has quit []
21:59
vikaton has joined #crystal-lang
21:59
mdz_ has joined #crystal-lang
22:00
mdz_ has quit [Remote host closed the connection]
22:11
bcardiff has quit [Quit: Leaving.]
22:15
vikaton has quit []
22:18
Cidan is now known as zz_Cidan
22:19
zz_Cidan is now known as Cidan
22:21
vikaton has joined #crystal-lang
22:31
mdz_ has joined #crystal-lang
22:34
asterite has joined #crystal-lang
22:35
mdz_ has quit [Ping timeout: 245 seconds]
22:38
asterite has quit [Ping timeout: 246 seconds]
22:53
<
flaviu >
Is there some way to jump to the definition of something?
22:54
<
jhass >
didn't see anything specifically for crystal yet
22:54
<
jhass >
the general jump to definition thingies with ruby support should work for most cases
22:56
<
flaviu >
Well, since the compiler does type inference, there should be a way to figure out exactly what's going to be called
22:57
<
jhass >
first step is to be able to fully introspect a program with errors though ;)
22:57
<
flaviu >
Also, /doc should really be in the gitignore
22:57
<
jhass >
so there are ideas but nothing implemented yet
22:59
<
flaviu >
but, yeah, that might also be good there
23:00
<
jhass >
ah right, forgot those
23:00
<
jhass >
I think asterite made one too
23:10
bcardiff has joined #crystal-lang
23:24
<
flaviu >
Does crystal spawn a new process for each file it compiles?
23:25
<
flaviu >
Because my profiler says its spending a shit-ton of time in page copying.
23:29
<
jhass >
mmh, I thought it spawns a process or thread per core
23:29
<
jhass >
though no idea, might be all llvm itself
23:30
<
flaviu >
Well, 1290 clone syscalls is a little more than my 4-core CPU needs :)
23:31
<
jhass >
yeah, that's probably not a good idea
23:32
<
jhass >
should slice the units into n arrays and fork for each slice
23:33
<
jhass >
looks like a fun first contribution ;)
23:33
<
crystal-gh >
[crystal] flaviut opened pull request #736: Add /doc/ to gitignore (master...improve-gitignore)
http://git.io/vIO4B
23:34
<
flaviu >
I'll look into it. I can only imagine what it's like on windows, where forking is actually expensive.
23:35
<
jhass >
I'd still expect to see a small speedup on linux, that's a shit ton of clone calls indeed