jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.1 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
bcardiff has quit [Quit: Leaving.]
jtarchie has quit [Quit: Connection closed for inactivity]
<travis-ci> manastech/crystal#2383 (master - edf1358 : Ary Borenszweig): The build passed.
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
havenwood has quit [Ping timeout: 258 seconds]
bcardiff has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
ismael has joined #crystal-lang
ismael is now known as Guest71846
ismaelga has quit [Ping timeout: 252 seconds]
Guest71846 has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
vikaton has quit []
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
Cidan is now known as zz_Cidan
ismaelga has quit [Remote host closed the connection]
willl has quit [Quit: Connection closed for inactivity]
bcardiff has quit [Quit: Leaving.]
zz_Cidan is now known as Cidan
sandelius has joined #crystal-lang
<sandelius> anyone know if self.included and/or self.inherited exist in Crystal?
<vaedd> yes, in form of macros
DerisiveLogic has quit [Ping timeout: 246 seconds]
willl has joined #crystal-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #crystal-lang
Nimble_Erni has quit [Quit: Page closed]
havenwood has joined #crystal-lang
Cidan is now known as zz_Cidan
BlaXpirit has joined #crystal-lang
<unshadow> !memo asterite the channels topic says Crystal 0.7.1 should be changed to 0.7.2 :)
<DeBot> unshadow: Added memo for asterite.
<unshadow> cool !
<ddfreyne> I said that before too :(
<unshadow> did you leave a memo ?
<unshadow> ;)
JBat has joined #crystal-lang
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
havenwood has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<unshadow> Can someone check if you can use STDERR.puts to print a message ?
leafybasil has joined #crystal-lang
<jhass> >> STDERR.puts "hey"
<DeBot> jhass: # => 4 - http://carc.in/#/r/us
<jhass> mh
<unshadow> XD
<jhass> http://carc.in/#/r/ut regression in .2
<unshadow> I'll open a bug
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<unshadow> >> File.exists?("/dev/random")
<DeBot> unshadow: # => false - http://carc.in/#/r/uv
<unshadow> >> File.exists?("/tmp")
<DeBot> unshadow: # => true - http://carc.in/#/r/uw
<unshadow> >> File.symlink?("/tmp")
<DeBot> unshadow: Error in line 4: undefined method 'symlink?' for File:Class - http://carc.in/#/r/ux
<unshadow> Oh... File.symlink? not implamented
JBat has quit [Quit: Computer has gone to sleep.]
sandelius has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
JBat has joined #crystal-lang
JBat has quit [Quit: Computer has gone to sleep.]
strcmp1 has quit [Read error: Connection reset by peer]
strcmp1 has joined #crystal-lang
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandelius has joined #crystal-lang
vikaton has joined #crystal-lang
ismaelga has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
Ven has joined #crystal-lang
JBat has joined #crystal-lang
havenwood has joined #crystal-lang
BlaXpirit_ has joined #crystal-lang
BlaXpirit is now known as Guest13392
Guest13392 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
<unshadow> What would you suggest to do for checking if Thread is alive or not ?
<unshadow> >> a = Thread.new; a.alive?
<DeBot> unshadow: Error in line 4: wrong number of arguments for 'Thread(T, R)#initialize' (0 for 1) - http://carc.in/#/r/v7
<unshadow> >> a = Thread.new do { puts "a" } ; a.alive?
<DeBot> unshadow: Syntax error in eval:11: expecting identifier 'end', not 'EOF' - http://carc.in/#/r/v8
<unshadow> >> a = Thread.new do { puts "a" } ;end; a.alive?
<DeBot> unshadow: Error in line 4: undefined method 'alive?' for Thread(Nil, {Nil}) - http://carc.in/#/r/v9
<jhass> unshadow: map out pthread_tryjoin_np I guess
<unshadow> >> a = Thread.new do { puts "a" } ; end;a.join
<DeBot> unshadow: a - more at http://carc.in/#/r/va
<unshadow> I'll take a look
<jhass> alive? == tryjoin != 0
<unshadow> so 0 is alive and 1 is dead ?
<unshadow> sorry, 1 is alive
<jhass> no idea if EBUSY is 1
<jhass> but 0 == join succeeded == dead
<unshadow> is this safe as a check ? wont this .join my thread ?
<jhass> read the man page
<unshadow> If thread has not yet terminated, then instead of blocking, as is done by pthread_join(3), the call returns an error.
<unshadow> I guess it just returns an error then ^^
<jhass> unshadow: http://stackoverflow.com/a/9870708/2199687 another way, might be a bit more portable
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/vkRTV
<crystal-gh> crystal/master de45c0b Ary Borenszweig: Made STDERR unbuffered (similar to C). Fixes #705
<crystal-gh> crystal/master 29ebbcd Ary Borenszweig: Flush STDOUT at exit
<crystal-gh> crystal/master d2f2eee Ary Borenszweig: Fixed several issue regarding modules, generic types including them, and procs. Fixes #704
<jhass> uh, why handle stderr and stdout differently?
<unshadow> cool, STDERR works again !
<unshadow> jhass: AUR package wont build any more when using yaourt :(
<jhass> -git ?
<unshadow> yeha
<jhass> let me try
<jhass> sounds like you ran out of ram?
<unshadow> manually it works, using yaourt I get: "cp: write error"
<unshadow> run out of ram ? dont make me laugh 3gb out of 16 is used ;)
<unshadow> but, when I press 'y' to retry it appers to install
<unshadow> wierd ...
ismaelga has quit [Remote host closed the connection]
* jhass shrugs
<jhass> doubt it's anything I can do in the package about
<unshadow> most likly just a stupid error :\
<unshadow> asterite: using git version, it seems the logger issue is still there
<unshadow> >> require "logger"; log = Logger.new()
<DeBot> unshadow: Error in line 4: wrong number of arguments for 'Logger(T)#initialize' (0 for 1) - http://carc.in/#/r/vb
<unshadow> >> require "logger"; log = Logger.new("/tmp/just_a_log.log"); log.info("test")
<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
<unshadow> Oh... this is not git version hahah
<unshadow> nm...
waj has joined #crystal-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<unshadow> jhass: apparently the Logger.new() accepts only IO objects, how can I create an IO object that will write to a file ?
<unshadow> >> puts File.open("/tmp", "r").class
<DeBot> unshadow: File - more at http://carc.in/#/r/vd
<jhass> >> File.open("/tmp", "r").is_a? IO
<DeBot> jhass: # => true - http://carc.in/#/r/ve
<strcmp1> hello, my name is filehandle, can you plz close me? thx, love - filehandle.
<unshadow> Oh, ok
<unshadow> lol
<jhass> hello, my name is GC, sure, no problem!
<strcmp1> =D
<unshadow> ;)
DerisiveLogic has joined #crystal-lang
<unshadow> today is my super bug finder day
<unshadow> just found a bug in the socket.acccept.peeraddr :)
<travis-ci> manastech/crystal#2385 (master - 6061149 : Ary Borenszweig): The build passed.
zipR4ND has joined #crystal-lang
<unshadow> what does "super" do ?
<unshadow> >> super "a"
<DeBot> unshadow: Error in line 4: there's no superclass in this scope - http://carc.in/#/r/vf
<unshadow> So, I tried to do that: " dummy, remote_port, dummy, remote_ip = client.peeraddr if client"
<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
<unshadow> and got in ./src/rsaccess-daemon.cr:43: undefined method '[]' for Socket::Addr
<jhass> unshadow: super calls the method of the same name in the parent class or module
<zipR4ND> ok, pasted on github-gist: https://gist.github.com/anonymous/072de25b9d0b4f0104f1
<jhass> zipR4ND: I think that's just not possible yet, maybe we can find a different solution to your actual issue?
<jhass> zipR4ND: http://carc.in/#/r/vm a tuple for example
<zipR4ND> jhass: I use this in a context free language parser im writing ...
<unshadow> Thats a bug right ? --> http://screencloud.net/v/i9Dc
<jhass> what's log?
<jhass> method? local variable?
<unshadow> Logger.new
<unshadow> log = Logger.new
<jhass> then I'd argue so, yeah
<jhass> that is if non-modifier if works
<unshadow> Again, I won the compiler ;)
<zipR4ND> thanks jhass a tuple really does the job two in my situation
<jhass> cool!
<jhass> and it's faster too, no runtime overhead ;D
<unshadow> jhass: yeha non-modifier if works, it also have other log.something("") if log in the code and it allows them
<jhass> huh
<unshadow> does it matters is it's inside a Thread.new do loop ?
<jhass> mmh, that might cause it, but then regular if shouldn't work either
bcardiff has joined #crystal-lang
waj_ has joined #crystal-lang
waj has quit [Ping timeout: 255 seconds]
waj_ is now known as waj
jtarchie has joined #crystal-lang
asterite has joined #crystal-lang
<asterite> jhass: does this happen to you on linux? https://github.com/manastech/crystal/issues/706
zipR4ND has quit [Ping timeout: 252 seconds]
<jhass> let me try
shama has joined #crystal-lang
havenn has joined #crystal-lang
<jhass> asterite: doesn't seem so, neither with 0.7.2 nor with latest git head
<jhass> libevent is 2.0.22 here
ismaelga has joined #crystal-lang
havenwood has quit [Ping timeout: 265 seconds]
<unshadow> Not happening here also
<unshadow> libevent 2.0.22-1
<jhass> we basically have the same system :P
<unshadow> jhass: thats true, Arch is rolling so we most likly on the same versions
<unshadow> I have to say the memo thing is really cool
<unshadow> !memo jhass MEMOOOO
<DeBot> unshadow: Added memo for jhass.
<jhass> totally replicating MemoServ, but yolo
<unshadow> yolo... jhass tsk tsk hahah
<strcmp1> hm
<strcmp1> !memo /.+/ spammy?
<DeBot> strcmp1: Added memo for /.+/.
<strcmp1> i got one
<strcmp1> anyone else?
<unshadow> nope ..
<strcmp1> alright
<strcmp1> i guess that could be seen as a feature, or a bug (if it messaged everyone) :)
<unshadow> !memo /[a-zA-Z]+/ testing
<DeBot> unshadow: Added memo for /[a-zA-Z]+/.
<unshadow> I got one now
<strcmp1> yep, i didn't, so it just messages once.
<strcmp1> and my nick wouldn't match that regexp anyway :))
<unshadow> lol true
<unshadow> !memo /[a-zA-Z0-9]+/ testing
<DeBot> unshadow: Added memo for /[a-zA-Z0-9]+/.
<asterite> jhass: thanks. Seems like a bug in libevent for mac, maybe
<unshadow> asterite: what about the channel topic ;)
<jhass> strcmp1: it would, since it's not anchored
<strcmp1> ah, you're right jhass
<asterite> jhass: what was the command to give you op?
<jhass> asterite: /op jhass
<jhass> asterite: or if waj is around we can do something more permanent about it maybe :)
jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.2 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<asterite> sure, how?
<jhass> asterite: depends, how much access do you want to give me? :P
<jhass> should I be able to modify the channel access list or not?
<unshadow> No ! jhass it too powerful now haha
<strcmp1> he's german, so be careful
<asterite> jhass: I'd say yes
<strcmp1> (i'm sorry i couldn't resist :))
<asterite> what would waj had to do?
broz has joined #crystal-lang
<jhass> asterite: then waj needs to say /msg ChanServ ACCESS #crystal-lang ADD jhass +AfRefiorstv
<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
<jhass> +f, not +F ;P
<unshadow> XD
<jhass> with +F I could revoke access for the existing founders, with +f I can't ;)
<strcmp1> you know too much about irc modes
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<unshadow> he made and IRC bot, so... only logical
asterite has quit [Quit: Leaving.]
<strcmp1> yeah..
<strcmp1> i actually thought about this the other day
<unshadow> >> puts "jhass is my father"
<DeBot> unshadow: jhass is my father - more at http://carc.in/#/r/vo
<strcmp1> why not make "cinch" for crystal, from that code?
<strcmp1> its API is mostly nice
<jhass> I eventually plan to, hence the code structure in the repo
<strcmp1> nice :))
JBat has quit [Quit: Computer has gone to sleep.]
havenn is now known as havenwood
waj_ has joined #crystal-lang
waj has quit [Ping timeout: 276 seconds]
waj_ is now known as waj
ismaelga has quit [Remote host closed the connection]
DerisiveLogic has quit [Ping timeout: 250 seconds]
asterite has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
broz has quit [Ping timeout: 276 seconds]
ismaelga has joined #crystal-lang
BlaXpirit has joined #crystal-lang
JBat has joined #crystal-lang
kostya has joined #crystal-lang
waj_ has joined #crystal-lang
waj_ has quit [Client Quit]
DerisiveLogic has joined #crystal-lang
waj has quit [Ping timeout: 250 seconds]
ismael__ has joined #crystal-lang
jua_ has joined #crystal-lang
ismaelga has quit [Ping timeout: 240 seconds]
datanoise has joined #crystal-lang
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 252 seconds]
datanoise has quit [Quit: Textual IRC Client: www.textualapp.com]
kostya has quit [Quit: Leaving]
datanoise has joined #crystal-lang
sandelius has joined #crystal-lang
zz_Cidan is now known as Cidan
DerisiveLogic has quit [Ping timeout: 272 seconds]
DerisiveLogic has joined #crystal-lang
ismael__ has quit [Remote host closed the connection]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bcardiff has joined #crystal-lang
vikaton has quit []
bcardiff1 has quit [Ping timeout: 264 seconds]
sandelius has joined #crystal-lang
Ven has joined #crystal-lang
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vkEzU
<crystal-gh> crystal/master a0820c7 Juan Wajnerman: Do not use edge triggered events for TTY I/O in Mac OS (fixes #706)
<strcmp1> \o/
bcardiff1 has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
bcardiff has quit [Ping timeout: 276 seconds]
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 265 seconds]
JBat has quit [Quit: Computer has gone to sleep.]
datanoise has quit [Quit: leaving]
datanoise has joined #crystal-lang
bcardiff has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcardiff1 has quit [Ping timeout: 265 seconds]
Codcore has joined #crystal-lang
<Codcore> hello, I have a question: how to delete an instance of class?
<jhass> Codcore: remove all references, the GC will do it
<travis-ci> manastech/crystal#2386 (master - a0820c7 : Juan Wajnerman): The build passed.
asterite has joined #crystal-lang
asterite1 has quit [Ping timeout: 264 seconds]
leafybasil has joined #crystal-lang
<Codcore> jhass, thanks.
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 258 seconds]
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 252 seconds]
vikaton has joined #crystal-lang
bcardiff1 has quit [Quit: Leaving.]
datanoise has quit [Ping timeout: 265 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<asterite1> jhass: where is carc.in hosted?
<jhass> hetzner
<asterite1> jhass: Could you add a server alias with play.crystal-lang.org ?
<asterite1> we will add the DNS record
<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?
<jhass> asterite1: sure, please CNAME it to www.carc.in (not the apex)
<jhass> strcmp1: uh, excluding idk
<strcmp1> yeah
<jhass> for a whitelist you can simply -- that/path/which/can/be/just/a/dir/too
<strcmp1> i think its not possible
<jhass> and also multiple
<asterite1> jhass: let us know when you do it
<jhass> asterite1: webserver should already respond to it
<jhass> do you want me to hide the other languages?
<asterite1> Maybe… but what will you do with them?
<jhass> I meant I'd hack something that hides them if domain == play.crystal-lang.org ;)
<asterite1> Sure, that'd be cool
<asterite1> It's alive!!
<jhass> \o/
<jhass> btw feel free to use the API if you want to build an embedable widget or something, it should accept requests from anywhere
<asterite1> Awesome
<asterite1> THANKS SO MUCH for this
<asterite1> I added it to the project's README
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vku44
<crystal-gh> crystal/master 119ccc8 Ary Borenszweig: README: add link to play.crystal-lang.org
<jhass> it's a pleasure
<strcmp1> <3 jhass
bcardiff has joined #crystal-lang
bcardiff has left #crystal-lang [#crystal-lang]
<Codcore> it would be cool if text in online editor was monospaced
<jhass> oh, right it isn't, silly code mirror
datanoise has joined #crystal-lang
DerisiveLogic has quit [Ping timeout: 244 seconds]
DerisiveLogic has joined #crystal-lang
<travis-ci> manastech/crystal#2387 (master - 119ccc8 : Ary Borenszweig): The build passed.
asterite1 has quit [Quit: Leaving.]
jua_ has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
datanoise has quit [Ping timeout: 246 seconds]
<vikaton> coool
<vikaton> an feature I woud rly like in crystal is option to import C header files
<jhass> we all would
asterite has joined #crystal-lang
Codcore has quit [Ping timeout: 246 seconds]
BlaXpirit has quit [Quit: Quit Konversation]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vkuFn
<crystal-gh> crystal/master cc82cd7 Ary Borenszweig: Moved File's LibC acceses to file.cr
<crystal-gh> crystal/master 316c639 Ary Borenszweig: Fixed wrong logic for constants depending on globals. Fixes #708
asterite has quit [Quit: Leaving.]
asterite has joined #crystal-lang
datanoise has joined #crystal-lang
asterite has quit [Ping timeout: 246 seconds]
datanoise has quit [Ping timeout: 246 seconds]
vaedd has quit [Quit: Connection closed for inactivity]
<travis-ci> manastech/crystal#2388 (master - 316c639 : Ary Borenszweig): The build passed.
asterite has joined #crystal-lang
asterite has quit [Client Quit]
DerisiveLogic has quit [Remote host closed the connection]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 255 seconds]