jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.3 | 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
willl has joined #crystal-lang
mdz_ has joined #crystal-lang
mdz_ has quit [Ping timeout: 245 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
Dreamer3 has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vLUfo
<crystal-gh> crystal/master b82a04c Ary Borenszweig: Created Spec::ObjectExtensions so it's easier to document spec
<crystal-gh> crystal/master 93283da Ary Borenszweig: Added ARGF :-)
<travis-ci> manastech/crystal#2477 (master - 93283da : Ary Borenszweig): The build passed.
mdz_ has joined #crystal-lang
mdz_ has quit [Ping timeout: 252 seconds]
mdz_ has joined #crystal-lang
mdz_ has quit [Remote host closed the connection]
datanoise has joined #crystal-lang
iamstef has joined #crystal-lang
<iamstef> oh man, crystal lang is a breath of fresh air
NeverDie has joined #crystal-lang
waj has joined #crystal-lang
waj has quit [Quit: Textual IRC Client: www.textualapp.com]
mdz_ has joined #crystal-lang
mdz_ has quit [Ping timeout: 252 seconds]
datanoise has quit [Ping timeout: 264 seconds]
willl has quit [Quit: Connection closed for inactivity]
datanoise has joined #crystal-lang
mdz_ has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
mdz_ has quit [Ping timeout: 245 seconds]
<crystal-gh> [crystal] yui-knk opened pull request #799: Replace 'Set#<<' with `alias_method` (master...feature/alias_method_add) http://git.io/vLUo6
Guest25 has joined #crystal-lang
Guest25 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 265 seconds]
willl has joined #crystal-lang
havenwood has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 240 seconds]
datanoise has joined #crystal-lang
zipR4ND has joined #crystal-lang
datanoise has quit [Ping timeout: 256 seconds]
Ven has joined #crystal-lang
zipR4ND has quit [Ping timeout: 256 seconds]
BlaXpirit has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BlaXpirit_ has joined #crystal-lang
BlaXpirit is now known as Guest94451
Guest94451 has quit [Killed (hobana.freenode.net (Nickname regained by services))]
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 272 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] Jesterovskiy opened pull request #800: Small changes in Contributing.md (master...master) http://git.io/vLTQp
zz_Cidan has quit [Ping timeout: 265 seconds]
<jhass> uh, did we get posted somewhere again?
Cidan has joined #crystal-lang
<jhass> oh, didn't think the 20 points for amethyst are enough for front page
Ven has joined #crystal-lang
leafybas_ has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
<jhass> !memo asterite two more to look at: http://carc.in/#/r/36i & http://carc.in/#/r/33b
<DeBot> jhass: Added memo for asterite.
bcardiff has joined #crystal-lang
leafybas_ has quit [Ping timeout: 240 seconds]
unshadow has joined #crystal-lang
asterite has joined #crystal-lang
<asterite> jhass: thanks, those are definitely bugs
<asterite> jhass: let me guess... somebody tried to run Amethyst in carc.in
<jhass> I didn't recognize if so :P
<jhass> btw, do you think it's feasible to autogenerate a list of exception a method may raise in the docs?
<jhass> unshadow: repository contributors get a notification if you open an issue ;)
<asterite> hehe, yes. I was actually replying :-)
<unshadow> True, I'm just impetiant XD sorry
<asterite> unshadow: I replied ;-)
<unshadow> hmmm I see, so I need to use the channel to wait untill all my answers are back
<unshadow> Thanks :):):)
<asterite> Exactly
mdz_ has joined #crystal-lang
<asterite> jhass: I think the compiler can figure this out, but the docs don't instantiate classes and methods so that info would be missing
<jhass> mmh
<jhass> I think it would be a super awesome feature, definitive list of things I need to handle
<jhass> though if it's worth the overhead of instantiating everything...
<asterite> The problem is that the compiler can't figure out how to instantiate things
<unshadow> asterite: Can I use instead something along array_of_fibers << spawn helper_methoud(1,2,3) ; while array_of_fibers.each {|f| f.dead?} ; run my code; end
<unshadow> super psudo code
<asterite> unshadow: nope. I think spawn right now returns the fiber but we'll change it to return nil
<unshadow> hm... ok, so how can I check if a fiber is alive, dead, closed, sleeping etc ?
<unshadow> (when i spwan ofcurse)
<asterite> You can't, you won't have access to the fibers
<asterite> The only tools you'll have are channels
<asterite> Why do you need to know that?
<asterite> By the way, any question you have about spawn and channels, you can search "goroutine" instead of spawn and search answers about Go, it will be like %99 the same
<asterite> except that we don't have WaitGroup yet, but it's basically the counter channel I showed earlier
leafybasil has joined #crystal-lang
<unshadow> lets say I'm accepting connections, I want to allow only 50 concurrent connections , in ruby I could do somthing like array_of_threads << thread.new(socket.accept) do blablab; then put all this in a loop that does a check if more then 50 of the threads are alive, if yes then it sleep for 1 sec, or w\e
<asterite> I think you can do that with a counter and channels
NeverDie has joined #crystal-lang
<asterite> we might also need atomic counters. As I said, you can probably search how to solve these things in Go to get an idea of how you'll do that in Crystal
<unshadow> >> a = Fiber.current; a.alive?
<DeBot> unshadow: Error in line 4: undefined method 'alive?' for Fiber - http://carc.in/#/r/379
jtarchie has joined #crystal-lang
<unshadow> >> a = Fiber.current; p a
<DeBot> unshadow: #<Fiber:0x887cfc0 @cr=Pointer(Void)@0x8838008, @proc=#<( -> Nil):0x804a5d0>, @stack=Pointer(Void).null, @stack_top=Pointer(Void)@0xbfae2cd8, @stack_bottom=Pointer(Void)@0xbfae3000, @next_fiber=#<Fiber:0x887cf90 @cr=Pointer(Void)@0xb6b95008, @proc=#<( -> Void):0x804a640>, @stack=Pointer(Void)@0xb6b95008, @stack_top=Pointer(Void)@0xb7395008, @stack_b ... - more at http://carc.in/#/r/37a
<unshadow> I'll search for it now, thanks asterite
<asterite> unshadow: Fiber and Thread will be there for us to implement spawn and the scheduler, but eventually won't have access to them. Again, you'll only have spawn and channels at your disposal :-)
<unshadow> are Crystal channels == Go channels ?
<asterite> The concept is the same, yes
<asterite> jhass: same error in Ruby :-)
asterite has quit [Quit: Page closed]
<jhass> yeah I guess that's why then exists
Ven has quit [Ping timeout: 276 seconds]
<unshadow> we need something like this for Crystal http://www.goinggo.net/2014/01/concurrency-goroutines-and-gomaxprocs.html
<crystal-gh> [crystal] yui-knk opened pull request #803: Fix typo (gh-pages...fix/typo) http://git.io/vLkbj
<unshadow> A question, Is this right ? Process=>Thread=>Fiber
<unshadow> in logical spawning order I mean
Ven has joined #crystal-lang
waj has joined #crystal-lang
<unshadow> Do we have something like GOMAXPROCS ? to control maximum number of cores we run on ?
<waj> coroutines are still running on a single thread
<unshadow> I see, so when they will move to be mutli-threaded with the schedualer, it will we able to use multiple cores ?
<waj> exactly
<waj> So sad… somebody added a “crystal” project in official Homebrew: https://github.com/Homebrew/homebrew/pull/40530
<jhass> wat
<unshadow> lol
<jhass> that's what you get from not doing it first though
<jhass> but what an asshole after we pointed out they should rename
<unshadow> or for using mac ;)
<waj> I don’t think they would have accepted our formula because it installs binaries
<unshadow> Does every spawn call creates it's own Fiber ?
<waj> unshadow: yes
<jhass> jeez they even got the crystal org? you guys secured nothing :/
<unshadow> that wierd, I'm runnig spawn in a loop, inside the loop I do puts Fiber.current, I always get the same fiber
<waj> jhass: it was taken
<jhass> but not used then, which means you can ask github to give it to you. Else they wouldn't have it
<jhass> same for the #crystal channel btw, if you'll ask you'll get it
<unshadow> Why does the two first ones are the same Fibers ? http://carc.in/#/r/37f
<unshadow> Oh it's not... small different with a\e
bcardiff has quit [Quit: Leaving.]
datanoise has joined #crystal-lang
asterite has joined #crystal-lang
unshadow has quit [Quit: leaving]
waj_ has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
waj has quit [Ping timeout: 256 seconds]
waj_ is now known as waj
<crystal-gh> [crystal] yui-knk opened pull request #804: Remove useless space (gh-pages...fix/space) http://git.io/vLIcR
bcardiff has joined #crystal-lang
<asterite> jhass: in any case homebrew doesn't allow recipes with binaries
<jhass> that doesn't make the name clash any better
<jhass> also latest comment on the PR seems to suggest otherwise?
<jhass> anyway, case in point is that this dick is aggressive about pushing that name for his project
<jhass> it sucks but the only strategy to prevent that is to do the same
Excureo has quit [Remote host closed the connection]
Excureo has joined #crystal-lang
<vikaton> lol
<vikaton> Amethyst got so much attention yesterday ._.
<crystal-gh> [crystal] yui-knk opened pull request #805: Add splat example (gh-pages...fix/splat) http://git.io/vLIan
<asterite> jhass: Yes, I don't like his attitude either
Ven has joined #crystal-lang
<asterite> Our hope is that eventually, if crystal becomes more popular, they will ask him to remove his project or at least allow the name for us
<jhass> I'd still do everything you can to reduce the damage he can make
<jhass> /r/crystal looks abandoned too, might be worth snapping
<asterite> jhass: we'd really want to, but we are out of time. Could you help us? Also, if you want to push the #crystal channel forward…
<jhass> unfortunately most takeovers require ownership/strong affiliation with the project
<wuehlmaus> btw: crystal programming language doesn't have a wiki site in the english wikipedia. should be added.
<jhass> wuehlmaus: could you do that?
<wuehlmaus> no, i am not expert enough
<wuehlmaus> i am more into nim nowadays but do take a look at crystal every once in a while
asterite has quit [Quit: Leaving.]
waj has quit [Quit: waj]
<crystal-gh> [crystal] bnoordhuis opened pull request #806: Fix bad assumption in TCPSocket.new test (master...fix-tcpsocket-test) http://git.io/vLIDa
<havenwood> jhass: The coffeescript crystal's docs say to install with npm anyways. :(
<havenwood> I think brew should revert that one.
<jhass> yeah
<jhass> I mean blacklisting that name would be an okay compromise at this point
<havenwood> indeed
<havenwood> better than having it be some random coffeescript script
<havenwood> that's really confusing
Ven has quit [Read error: Connection reset by peer]
unshadow has joined #crystal-lang
asterite has joined #crystal-lang
waj has joined #crystal-lang
<unshadow> jhass: downvoted ;)
<asterite> We also need this guy's home address…
<asterite> :-P
wuehlmaus has quit [Quit: Lost terminal]
<asterite> So bad, you can do `npm install -g crystal`, what's the point of a homebrew formula for that...
<BlaXpirit> they'd remove wiki article anyway
<BlaXpirit> nim barely survived on wikipedia, and, disregarding stars on github, i think nim is much more popular and has many more references to it
<jhass> BlaXpirit: you confuse it with the german wikipedia ;P
<unshadow> well, send him an email, use some spearphishing techniques, get hes homebrew account, close the project, win :)
<unshadow> joking of curse XD
<asterite> BlaXpirit: I don't understand why Wikipedia doesn't like Nim… that's one of the reasons I wouldn't bother adding Crystal to it
<jhass> shit, TIL setarch
<unshadow> Just asking, I'm starting to work on converting rubyntlm(https://github.com/WinRb/rubyntlm) to Crystal , no one is doing something similar right ?
jua_ has joined #crystal-lang
<asterite> unshadow: I doubt it… it's also related to Windows, which makes it less likely
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vLLsI
<crystal-gh> crystal/master 0595487 Juan Wajnerman: Homebrew formula is now named "crystal-lang"
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<unshadow> asterite: this is very important for NTLM auth, which in turn is importent for web frameworks, web clients etc... but I get your drift ;) I'll convert and publish :)
<jhass> asterite: oh you meant http://carc.in/#/r/37g
<unshadow> Nice :)
<asterite> lol
<jhass> is that nim?
<unshadow> lambada
<asterite> I think that's JS
<jhass> mmh, right, I see new Foo used too seldom
<jhass> http://carc.in/#/r/37u concurs with the popularity of puts "Hello"
<asterite> Maybe you can add a special rule for that code and hardcode the output to "Yeah, right"
<unshadow> jhass: can you export statistics out of there ? like diff and find similar codes etc .. ?
<jhass> asterite: lol
<jhass> unshadow: mh? you meant like "how many hello worlds posted" or?
<unshadow> yap
<jhass> great show homebrew guys, never admit mistakes
<unshadow> it sounds cool to know what code examples are used the most
<jhass> eh, I guess I could run a couple of LIKE queries
<jhass> 810 pastes contain "hello" (case insensitive)
<jhass> 36 contain "hey" with 10 containing both "hey" and "hello"
<jhass> actually only 12 contain "Listening on http://0.0.0.0:8080"
<jhass> 101 with "for "
<unshadow> Can you check output as well ? Like how many got erros regrading "string" 'cahr'
<unshadow> >> puts 'asdda'
<DeBot> unshadow: Syntax error in eval:4: unterminated char literal - http://carc.in/#/r/38f
<unshadow> this error :)
<jhass> 110, I expected more too
<unshadow> thats cool ! how many got :
<unshadow> >> require 'openssl'
<DeBot> unshadow: Syntax error in eval:4: unterminated char literal - http://carc.in/#/r/38g
<unshadow> oh... same error
<unshadow> how long back are you saving the data ?
<jhass> 2256 (53.8%) are successful (exit code 0)
<jhass> so far for eternity
<jhass> asterite: http://carc.in/#/r/38b could use better "don't use a keyword" indication
<unshadow> datanoise: How do you feel about the state of openssl.cr ? I could really use digest for my NTLM convert, do you think this is stable enough to be merged into crystal ?
<unshadow> jhass: yeha, fun can be missleading in this context
<datanoise> unshadow: i'm planning to add DH soon and some other features. what stops you from using it as an exteranl lib?
<travis-ci> manastech/crystal#2481 (master - 0595487 : Juan Wajnerman): The build was broken.
<unshadow> datanoise: nothing tbh, I just want to refrain from Projectfile with github datanoise/openssl.cr , so people could use it without any additional libs, but it's not really that big of an issue
<unshadow> datanoise: also, did you plan to add DEC ? that could be awsome
<unshadow> (brb i'll follow logs :))
unshadow has quit [Quit: leaving]
<vikaton> kinda funny how during Ober's talk on Crystal there was a compiler bug xP
<vikaton> >> x -> { puts "test" }; x.call
<DeBot> vikaton: Error in line 4: undefined method 'x' (did you mean 'p'?) - http://carc.in/#/r/38i
NeverDie has joined #crystal-lang
<datanoise> unshadow: what is DEC?
<vikaton> I forgot how anonymous functions work :(
<BlaXpirit> >> x = -> { puts "test" }; x.call
<DeBot> BlaXpirit: test - more at http://carc.in/#/r/38o
<BlaXpirit> yay, i didn't
asterite1 has joined #crystal-lang
waj_ has joined #crystal-lang
_unshadow_ has joined #crystal-lang
<vikaton> o wow
<vikaton> wtf is wrong with me
asterite has quit [Ping timeout: 245 seconds]
waj has quit [Ping timeout: 246 seconds]
waj_ is now known as waj
<_unshadow_> datanoise: sorry des not dec (des-cbc)
<_unshadow_> Or is this implemented via openSSL ciphers
jonahR has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
_unshadow_ has quit [Ping timeout: 240 seconds]
_unshadow__ has joined #crystal-lang
<datanoise> _unshadow__: yes, ciphers are also currently missing
_unshadow__ has quit [Ping timeout: 246 seconds]
NeverDie has joined #crystal-lang
<jhass> secured archwiki page https://wiki.archlinux.org/index.php/Crystal
waj_ has joined #crystal-lang
<BlaXpirit> what's the purpose???
waj has quit [Ping timeout: 250 seconds]
waj_ is now known as waj
<jhass> archwiki has it all ;P
unshadow has joined #crystal-lang
Cidan is now known as zz_Cidan
<unshadow> datanoise: do you need some help with OpenSSL::Cipher ?
<asterite1> Anyone thinking about going to Curry On?
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vLtvb
<crystal-gh> crystal/master 61f6885 Juan Wajnerman: Fix LIBRARY_PATH in Travis after Homebrew formula rename
<unshadow> asterite1: http://www.curry-on.org/ ?
<asterite1> Yes
<unshadow> first time I heard about it, are you going ?
<asterite1> :) We are speakers
<asterite1> I hope we do
<jhass> hehe
<asterite1> I was asking because we'd really like to meet you guys there, even if you don't join the conference, so we can have a beer or something
<asterite1> we'll also be in London one day for some hours, so if you are nearby, let us know
<unshadow> this sounds like a really nice idea :) sadly, Israel --> Europe is kinda of a longshot, but maybe next year :)
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
psycho-kitty has joined #crystal-lang
<asterite1> Yes
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vLttf
<crystal-gh> crystal/master 00de4b6 Juan Wajnerman: One more LIBRARY_PATH fix in Travis config
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vLtqT
<crystal-gh> crystal/master aebee58 Juan Wajnerman: TypeNode#type_params now works with tuples and non-type arguments
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vLtm4
<crystal-gh> crystal/master e4301ba Juan Wajnerman: Set(T) uses a Hash(T, Nil) instead of Hash(T, Bool)
psycho-kitty has quit [Ping timeout: 255 seconds]
leafybasil has joined #crystal-lang
bcardiff1 has joined #crystal-lang
Sadin has joined #crystal-lang
bcardiff has quit [Ping timeout: 240 seconds]
leafybasil has quit [Ping timeout: 276 seconds]
psycho-kitty has joined #crystal-lang
shama has joined #crystal-lang
<travis-ci> manastech/crystal#2483 (master - 00de4b6 : Juan Wajnerman): The build was fixed.
NeverDie has joined #crystal-lang
leafybasil has joined #crystal-lang
psycho-kitty has quit [Ping timeout: 265 seconds]
<travis-ci> manastech/crystal#2485 (master - e4301ba : Juan Wajnerman): The build was fixed.
BlaXpirit has quit [Ping timeout: 252 seconds]
Sadin has quit [Ping timeout: 245 seconds]
<travis-ci> manastech/crystal#2484 (master - aebee58 : Juan Wajnerman): The build was fixed.
psycho-kitty has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
waj_ has joined #crystal-lang
NeverDie has joined #crystal-lang
waj has quit [Ping timeout: 265 seconds]
waj_ is now known as waj
<unshadow> >> puts 2^3
<DeBot> unshadow: 1 - more at http://carc.in/#/r/39z
<unshadow> >> puts (45 | 43 | 23)
<DeBot> unshadow: 63 - more at http://carc.in/#/r/3a3
fowlduck has joined #crystal-lang
bcardiff has joined #crystal-lang
<unshadow> waj: Thanks for the answer at StackOverflow
<waj> you’re welcome! :)
bcardiff1 has quit [Ping timeout: 272 seconds]
Ven has joined #crystal-lang
jonahR has quit [Quit: Nos vemos corillo!]
asterite has joined #crystal-lang
asterite1 has quit [Ping timeout: 256 seconds]
psycho-kitty has quit [Ping timeout: 265 seconds]
leafybasil has quit []
mdz_ has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 246 seconds]
jua_ has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
Guest25_ has joined #crystal-lang
waj has quit [Quit: waj]
Guest25_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
waj has joined #crystal-lang
havenwood has joined #crystal-lang
Guest25_ has joined #crystal-lang
unshadow_ has joined #crystal-lang
unshadow has quit [Ping timeout: 272 seconds]
mdz_ has joined #crystal-lang
<crystal-gh> [crystal] splattael opened pull request #808: Fix some doc examples (gh-pages...doc-fixes) http://git.io/vLqgf
unshadow_ has quit [Read error: Connection reset by peer]
unshadow has joined #crystal-lang
waj has quit [Quit: waj]
datanoise has quit [Ping timeout: 245 seconds]
asterite has quit [Quit: Leaving.]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
asterite has joined #crystal-lang
asterite has quit [Client Quit]
mdz_ has quit [Remote host closed the connection]
havenwood has joined #crystal-lang
mdz_ has joined #crystal-lang
mdz_ has quit [Remote host closed the connection]
datanoise has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
mdz_ has joined #crystal-lang