00:03
bcardiff has quit [Quit: Leaving.]
00:06
jtarchie has quit [Quit: Connection closed for inactivity]
00:11
<
travis-ci >
manastech/crystal#2383 (master - edf1358 : Ary Borenszweig): The build passed.
00:20
ismaelga has quit [Remote host closed the connection]
00:22
ismaelga has joined #crystal-lang
00:34
havenwood has quit [Ping timeout: 258 seconds]
00:41
bcardiff has joined #crystal-lang
00:41
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
00:55
ismaelga has quit [Remote host closed the connection]
01:12
ismaelga has joined #crystal-lang
01:16
Cidan is now known as zz_Cidan
01:30
zz_Cidan is now known as Cidan
02:12
ismael has joined #crystal-lang
02:12
ismael is now known as Guest71846
02:14
ismaelga has quit [Ping timeout: 252 seconds]
02:23
Guest71846 has quit [Remote host closed the connection]
02:23
ismaelga has joined #crystal-lang
02:31
vikaton has quit []
02:32
ismaelga has quit [Remote host closed the connection]
02:35
ismaelga has joined #crystal-lang
02:36
ismaelga has quit [Remote host closed the connection]
02:40
ismaelga has joined #crystal-lang
03:44
Cidan is now known as zz_Cidan
03:49
ismaelga has quit [Remote host closed the connection]
04:13
willl has quit [Quit: Connection closed for inactivity]
04:51
bcardiff has quit [Quit: Leaving.]
05:11
zz_Cidan is now known as Cidan
05:35
sandelius has joined #crystal-lang
05:35
<
sandelius >
anyone know if self.included and/or self.inherited exist in Crystal?
05:47
<
vaedd >
yes, in form of macros
05:47
DerisiveLogic has quit [Ping timeout: 246 seconds]
06:04
willl has joined #crystal-lang
06:12
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
06:13
sandelius has joined #crystal-lang
06:20
Nimble_Erni has quit [Quit: Page closed]
06:42
havenwood has joined #crystal-lang
07:18
Cidan is now known as zz_Cidan
07:26
BlaXpirit has joined #crystal-lang
07:38
<
unshadow >
!memo asterite the channels topic says Crystal 0.7.1 should be changed to 0.7.2 :)
07:38
<
DeBot >
unshadow: Added memo for asterite.
07:39
<
ddfreyne >
I said that before too :(
07:41
<
unshadow >
did you leave a memo ?
07:43
JBat has joined #crystal-lang
08:25
Ven has joined #crystal-lang
08:49
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
08:51
Ven has joined #crystal-lang
08:54
havenwood has quit [Ping timeout: 250 seconds]
09:28
leafybasil has quit [Remote host closed the connection]
09:28
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:48
<
unshadow >
Can someone check if you can use STDERR.puts to print a message ?
09:49
leafybasil has joined #crystal-lang
09:59
<
jhass >
>> STDERR.puts "hey"
10:00
<
unshadow >
I'll open a bug
10:00
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:03
<
unshadow >
>> File.exists?("/dev/random")
10:03
<
unshadow >
>> File.exists?("/tmp")
10:03
<
unshadow >
>> File.symlink?("/tmp")
10:04
<
unshadow >
Oh... File.symlink? not implamented
10:06
JBat has quit [Quit: Computer has gone to sleep.]
10:22
sandelius has joined #crystal-lang
10:41
BlaXpirit has quit [Quit: Quit Konversation]
10:47
BlaXpirit has joined #crystal-lang
11:24
JBat has joined #crystal-lang
11:49
JBat has quit [Quit: Computer has gone to sleep.]
11:52
strcmp1 has quit [Read error: Connection reset by peer]
11:53
strcmp1 has joined #crystal-lang
12:16
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
12:32
sandelius has joined #crystal-lang
12:37
vikaton has joined #crystal-lang
12:55
ismaelga has joined #crystal-lang
13:09
ismaelga has quit [Remote host closed the connection]
13:10
ismaelga has joined #crystal-lang
13:11
Ven has joined #crystal-lang
13:19
JBat has joined #crystal-lang
13:31
havenwood has joined #crystal-lang
13:40
BlaXpirit_ has joined #crystal-lang
13:40
BlaXpirit is now known as Guest13392
13:40
Guest13392 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
13:41
<
unshadow >
What would you suggest to do for checking if Thread is alive or not ?
13:42
<
unshadow >
>> a = Thread.new; a.alive?
13:42
<
DeBot >
unshadow: Error in line 4: wrong number of arguments for 'Thread(T, R)#initialize' (0 for 1) -
http://carc.in/#/r/v7
13:42
<
unshadow >
>> a = Thread.new do { puts "a" } ; a.alive?
13:42
<
unshadow >
>> a = Thread.new do { puts "a" } ;end; a.alive?
13:45
<
jhass >
unshadow: map out pthread_tryjoin_np I guess
13:45
<
unshadow >
>> a = Thread.new do { puts "a" } ; end;a.join
13:46
<
unshadow >
I'll take a look
13:46
<
jhass >
alive? == tryjoin != 0
13:47
<
unshadow >
so 0 is alive and 1 is dead ?
13:47
<
unshadow >
sorry, 1 is alive
13:47
<
jhass >
no idea if EBUSY is 1
13:47
<
jhass >
but 0 == join succeeded == dead
13:49
<
unshadow >
is this safe as a check ? wont this .join my thread ?
13:49
<
jhass >
read the man page
13:50
<
unshadow >
If thread has not yet terminated, then instead of blocking, as is done by pthread_join(3), the call returns an error.
13:50
<
unshadow >
I guess it just returns an error then ^^
14:01
<
crystal-gh >
crystal/master de45c0b Ary Borenszweig: Made STDERR unbuffered (similar to C). Fixes #705
14:01
<
crystal-gh >
crystal/master 29ebbcd Ary Borenszweig: Flush STDOUT at exit
14:01
<
crystal-gh >
crystal/master d2f2eee Ary Borenszweig: Fixed several issue regarding modules, generic types including them, and procs. Fixes #704
14:02
<
jhass >
uh, why handle stderr and stdout differently?
14:02
<
unshadow >
cool, STDERR works again !
14:08
<
unshadow >
jhass: AUR package wont build any more when using yaourt :(
14:09
<
jhass >
sounds like you ran out of ram?
14:09
<
unshadow >
manually it works, using yaourt I get: "cp: write error"
14:10
<
unshadow >
run out of ram ? dont make me laugh 3gb out of 16 is used ;)
14:10
<
unshadow >
but, when I press 'y' to retry it appers to install
14:10
<
unshadow >
wierd ...
14:11
ismaelga has quit [Remote host closed the connection]
14:12
<
jhass >
doubt it's anything I can do in the package about
14:12
<
unshadow >
most likly just a stupid error :\
14:15
<
unshadow >
asterite: using git version, it seems the logger issue is still there
14:16
<
unshadow >
>> require "logger"; log = Logger.new()
14:16
<
unshadow >
>> require "logger"; log = Logger.new("/tmp/just_a_log.log"); log.info("test")
14:16
<
DeBot >
unshadow: in /usr/lib/crystal/logger.cr:115: no overload matches '(String, Time, String, String, IO -> (PointerIO | StringIO | String::Builder | FileDescriptorIO+))#call' with types String, Time, String, String, String -
http://carc.in/#/r/vc
14:17
<
unshadow >
Oh... this is not git version hahah
14:21
waj has joined #crystal-lang
14:25
<
unshadow >
jhass: apparently the Logger.new() accepts only IO objects, how can I create an IO object that will write to a file ?
14:25
<
unshadow >
>> puts File.open("/tmp", "r").class
14:26
<
jhass >
>> File.open("/tmp", "r").is_a? IO
14:26
<
strcmp1 >
hello, my name is filehandle, can you plz close me? thx, love - filehandle.
14:26
<
jhass >
hello, my name is GC, sure, no problem!
14:27
DerisiveLogic has joined #crystal-lang
14:34
<
unshadow >
today is my super bug finder day
14:35
<
unshadow >
just found a bug in the socket.acccept.peeraddr :)
14:35
<
travis-ci >
manastech/crystal#2385 (master - 6061149 : Ary Borenszweig): The build passed.
14:36
zipR4ND has joined #crystal-lang
14:37
<
unshadow >
what does "super" do ?
14:37
<
unshadow >
>> super "a"
14:40
<
unshadow >
So, I tried to do that: " dummy, remote_port, dummy, remote_ip = client.peeraddr if client"
14:40
<
zipR4ND >
hey all, for some reason I need a construct like this in my code
http://pastebin.com/ze18H9pR (an array with severall classes and some ordinary value). but it doesn't compile, is this a bug or am i doing smth. wrong
14:40
<
unshadow >
and got in ./src/rsaccess-daemon.cr:43: undefined method '[]' for Socket::Addr
14:40
<
jhass >
unshadow: super calls the method of the same name in the parent class or module
14:43
<
jhass >
zipR4ND: I think that's just not possible yet, maybe we can find a different solution to your actual issue?
14:45
<
zipR4ND >
jhass: I use this in a context free language parser im writing ...
14:46
<
jhass >
what's log?
14:46
<
jhass >
method? local variable?
14:46
<
unshadow >
Logger.new
14:46
<
unshadow >
log = Logger.new
14:46
<
jhass >
then I'd argue so, yeah
14:46
<
jhass >
that is if non-modifier if works
14:46
<
unshadow >
Again, I won the compiler ;)
14:50
<
zipR4ND >
thanks jhass a tuple really does the job two in my situation
14:51
<
jhass >
and it's faster too, no runtime overhead ;D
14:52
<
unshadow >
jhass: yeha non-modifier if works, it also have other log.something("") if log in the code and it allows them
14:53
<
unshadow >
does it matters is it's inside a Thread.new do loop ?
14:55
<
jhass >
mmh, that might cause it, but then regular if shouldn't work either
14:59
bcardiff has joined #crystal-lang
15:06
waj_ has joined #crystal-lang
15:08
waj has quit [Ping timeout: 255 seconds]
15:08
waj_ is now known as waj
15:12
jtarchie has joined #crystal-lang
15:16
asterite has joined #crystal-lang
15:17
zipR4ND has quit [Ping timeout: 252 seconds]
15:18
shama has joined #crystal-lang
15:19
havenn has joined #crystal-lang
15:20
<
jhass >
asterite: doesn't seem so, neither with 0.7.2 nor with latest git head
15:20
<
jhass >
libevent is 2.0.22 here
15:22
ismaelga has joined #crystal-lang
15:22
havenwood has quit [Ping timeout: 265 seconds]
15:24
<
unshadow >
Not happening here also
15:24
<
unshadow >
libevent 2.0.22-1
15:25
<
jhass >
we basically have the same system :P
15:25
<
unshadow >
jhass: thats true, Arch is rolling so we most likly on the same versions
15:26
<
unshadow >
I have to say the memo thing is really cool
15:27
<
unshadow >
!memo jhass MEMOOOO
15:27
<
DeBot >
unshadow: Added memo for jhass.
15:27
<
jhass >
totally replicating MemoServ, but yolo
15:28
<
unshadow >
yolo... jhass tsk tsk hahah
15:31
<
strcmp1 >
!memo /.+/ spammy?
15:31
<
DeBot >
strcmp1: Added memo for /.+/.
15:32
<
strcmp1 >
i got one
15:32
<
strcmp1 >
anyone else?
15:32
<
strcmp1 >
i guess that could be seen as a feature, or a bug (if it messaged everyone) :)
15:34
<
unshadow >
!memo /[a-zA-Z]+/ testing
15:34
<
DeBot >
unshadow: Added memo for /[a-zA-Z]+/.
15:34
<
unshadow >
I got one now
15:34
<
strcmp1 >
yep, i didn't, so it just messages once.
15:34
<
strcmp1 >
and my nick wouldn't match that regexp anyway :))
15:36
<
unshadow >
lol true
15:37
<
unshadow >
!memo /[a-zA-Z0-9]+/ testing
15:37
<
DeBot >
unshadow: Added memo for /[a-zA-Z0-9]+/.
15:37
<
asterite >
jhass: thanks. Seems like a bug in libevent for mac, maybe
15:37
<
unshadow >
asterite: what about the channel topic ;)
15:37
<
jhass >
strcmp1: it would, since it's not anchored
15:39
<
strcmp1 >
ah, you're right jhass
15:40
<
asterite >
jhass: what was the command to give you op?
15:41
<
jhass >
asterite: /op jhass
15:41
<
jhass >
asterite: or if waj is around we can do something more permanent about it maybe :)
15:42
<
asterite >
sure, how?
15:42
<
jhass >
asterite: depends, how much access do you want to give me? :P
15:42
<
jhass >
should I be able to modify the channel access list or not?
15:42
<
unshadow >
No ! jhass it too powerful now haha
15:42
<
strcmp1 >
he's german, so be careful
15:42
<
asterite >
jhass: I'd say yes
15:43
<
strcmp1 >
(i'm sorry i couldn't resist :))
15:43
<
asterite >
what would waj had to do?
15:43
broz has joined #crystal-lang
15:43
<
jhass >
asterite: then waj needs to say /msg ChanServ ACCESS #crystal-lang ADD jhass +AfRefiorstv
15:46
<
unshadow >
this will add global world domination to jhass, or, will allow him full IRC chat control. I dont really remmber my IRC commands so one of them for sure
15:46
<
jhass >
+f, not +F ;P
15:47
<
jhass >
with +F I could revoke access for the existing founders, with +f I can't ;)
15:47
<
strcmp1 >
you know too much about irc modes
15:47
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
15:48
<
unshadow >
he made and IRC bot, so... only logical
15:48
asterite has quit [Quit: Leaving.]
15:48
<
strcmp1 >
i actually thought about this the other day
15:48
<
unshadow >
>> puts "jhass is my father"
15:48
<
strcmp1 >
why not make "cinch" for crystal, from that code?
15:48
<
strcmp1 >
its API is mostly nice
15:49
<
jhass >
I eventually plan to, hence the code structure in the repo
15:55
JBat has quit [Quit: Computer has gone to sleep.]
16:03
havenn is now known as havenwood
16:14
waj_ has joined #crystal-lang
16:16
waj has quit [Ping timeout: 276 seconds]
16:16
waj_ is now known as waj
16:16
ismaelga has quit [Remote host closed the connection]
16:16
DerisiveLogic has quit [Ping timeout: 250 seconds]
16:23
asterite has joined #crystal-lang
16:25
BlaXpirit has quit [Quit: Quit Konversation]
16:25
broz has quit [Ping timeout: 276 seconds]
16:26
ismaelga has joined #crystal-lang
16:27
BlaXpirit has joined #crystal-lang
16:40
JBat has joined #crystal-lang
16:40
kostya has joined #crystal-lang
16:45
waj_ has joined #crystal-lang
16:45
waj_ has quit [Client Quit]
16:45
DerisiveLogic has joined #crystal-lang
16:47
waj has quit [Ping timeout: 250 seconds]
16:49
ismael__ has joined #crystal-lang
16:50
jua_ has joined #crystal-lang
16:50
ismaelga has quit [Ping timeout: 240 seconds]
17:02
datanoise has joined #crystal-lang
17:07
bcardiff1 has joined #crystal-lang
17:09
bcardiff has quit [Ping timeout: 252 seconds]
17:26
kostya has quit [Quit: Leaving]
17:26
datanoise has joined #crystal-lang
17:51
sandelius has joined #crystal-lang
17:56
zz_Cidan is now known as Cidan
18:08
DerisiveLogic has quit [Ping timeout: 272 seconds]
18:11
DerisiveLogic has joined #crystal-lang
18:32
ismael__ has quit [Remote host closed the connection]
18:43
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:44
bcardiff has joined #crystal-lang
18:44
vikaton has quit []
18:47
bcardiff1 has quit [Ping timeout: 264 seconds]
18:56
sandelius has joined #crystal-lang
18:57
Ven has joined #crystal-lang
19:02
<
crystal-gh >
crystal/master a0820c7 Juan Wajnerman: Do not use edge triggered events for TTY I/O in Mac OS (fixes #706)
19:09
bcardiff1 has joined #crystal-lang
19:10
leafybasil has quit [Remote host closed the connection]
19:12
bcardiff has quit [Ping timeout: 276 seconds]
19:15
asterite1 has joined #crystal-lang
19:18
asterite has quit [Ping timeout: 265 seconds]
19:24
JBat has quit [Quit: Computer has gone to sleep.]
19:25
datanoise has quit [Quit: leaving]
19:26
datanoise has joined #crystal-lang
19:29
bcardiff has joined #crystal-lang
19:30
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
19:32
bcardiff1 has quit [Ping timeout: 265 seconds]
19:33
Codcore has joined #crystal-lang
19:33
<
Codcore >
hello, I have a question: how to delete an instance of class?
19:34
<
jhass >
Codcore: remove all references, the GC will do it
19:35
<
travis-ci >
manastech/crystal#2386 (master - a0820c7 : Juan Wajnerman): The build passed.
19:36
asterite has joined #crystal-lang
19:38
asterite1 has quit [Ping timeout: 264 seconds]
19:45
leafybasil has joined #crystal-lang
19:50
<
Codcore >
jhass, thanks.
19:52
bcardiff1 has joined #crystal-lang
19:54
bcardiff has quit [Ping timeout: 258 seconds]
20:19
asterite1 has joined #crystal-lang
20:22
asterite has quit [Ping timeout: 252 seconds]
20:24
vikaton has joined #crystal-lang
20:40
bcardiff1 has quit [Quit: Leaving.]
20:55
datanoise has quit [Ping timeout: 265 seconds]
21:00
<
asterite1 >
jhass: where is carc.in hosted?
21:01
<
asterite1 >
jhass: Could you add a server alias with play.crystal-lang.org ?
21:01
<
asterite1 >
we will add the DNS record
21:01
<
strcmp1 >
jhass, do you know how to run git diff/show HEAD~10..HEAD, but don't print any diffs from files that match a specific path?
21:02
<
jhass >
strcmp1: uh, excluding idk
21:02
<
jhass >
for a whitelist you can simply -- that/path/which/can/be/just/a/dir/too
21:02
<
strcmp1 >
i think its not possible
21:03
<
jhass >
and also multiple
21:04
<
asterite1 >
jhass: let us know when you do it
21:05
<
jhass >
asterite1: webserver should already respond to it
21:05
<
jhass >
do you want me to hide the other languages?
21:10
<
asterite1 >
Maybe… but what will you do with them?
21:10
<
jhass >
I meant I'd hack something that hides them if domain == play.crystal-lang.org ;)
21:10
<
asterite1 >
Sure, that'd be cool
21:11
<
asterite1 >
It's alive!!
21:14
<
jhass >
btw feel free to use the API if you want to build an embedable widget or something, it should accept requests from anywhere
21:14
<
asterite1 >
Awesome
21:14
<
asterite1 >
THANKS SO MUCH for this
21:14
<
asterite1 >
I added it to the project's README
21:14
<
crystal-gh >
crystal/master 119ccc8 Ary Borenszweig: README: add link to play.crystal-lang.org
21:14
<
jhass >
it's a pleasure
21:16
bcardiff has joined #crystal-lang
21:17
bcardiff has left #crystal-lang [#crystal-lang]
21:21
<
Codcore >
it would be cool if text in online editor was monospaced
21:22
<
jhass >
oh, right it isn't, silly code mirror
21:23
datanoise has joined #crystal-lang
21:32
DerisiveLogic has quit [Ping timeout: 244 seconds]
21:36
DerisiveLogic has joined #crystal-lang
21:38
<
travis-ci >
manastech/crystal#2387 (master - 119ccc8 : Ary Borenszweig): The build passed.
21:52
asterite1 has quit [Quit: Leaving.]
21:54
jua_ has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
21:54
datanoise has quit [Ping timeout: 246 seconds]
22:04
<
vikaton >
an feature I woud rly like in crystal is option to import C header files
22:05
<
jhass >
we all would
22:06
asterite has joined #crystal-lang
22:12
Codcore has quit [Ping timeout: 246 seconds]
22:34
BlaXpirit has quit [Quit: Quit Konversation]
22:43
<
crystal-gh >
crystal/master cc82cd7 Ary Borenszweig: Moved File's LibC acceses to file.cr
22:43
<
crystal-gh >
crystal/master 316c639 Ary Borenszweig: Fixed wrong logic for constants depending on globals. Fixes #708
22:48
asterite has quit [Quit: Leaving.]
22:49
asterite has joined #crystal-lang
22:51
datanoise has joined #crystal-lang
22:53
asterite has quit [Ping timeout: 246 seconds]
22:55
datanoise has quit [Ping timeout: 246 seconds]
23:00
vaedd has quit [Quit: Connection closed for inactivity]
23:02
<
travis-ci >
manastech/crystal#2388 (master - 316c639 : Ary Borenszweig): The build passed.
23:10
asterite has joined #crystal-lang
23:10
asterite has quit [Client Quit]
23:48
DerisiveLogic has quit [Remote host closed the connection]
23:53
datanoise has joined #crystal-lang
23:57
datanoise has quit [Ping timeout: 255 seconds]