jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.12.0 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
<perks> @asterite found that thanks! Im just running into a bunch of cryptic errors with the module sometimes and its making progress really slow :P
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 268 seconds]
<perks> Why on earth does HTTP::Client post give an index out of bounds error if i do 2 requests, but not if i only do one >_<
Gasher has quit [Quit: Leaving]
trapped has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
kulelu88 has quit [Quit: Leaving]
vluft has joined #crystal-lang
greengriminal has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
vluft has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
ytti has quit [Ping timeout: 240 seconds]
ytti has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
pawnbox has joined #crystal-lang
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: Leaving]
pawnbox has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
marcosdsanchez has joined #crystal-lang
marcosdsanchez has quit [Client Quit]
marcosdsanchez has joined #crystal-lang
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
ssvb has quit [Read error: Connection reset by peer]
ssvb has joined #crystal-lang
maxpowa has quit [Ping timeout: 264 seconds]
maxpowa_ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
marcosdsanchez has quit [Ping timeout: 246 seconds]
trapped has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NotSoNaive has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Ping timeout: 248 seconds]
bjz has joined #crystal-lang
ton31337 has joined #crystal-lang
<ton31337> # whereis crystal
<ton31337> crystal: /opt/crystal/bin/crystal
<ton31337> why this path changed after latest upgrade? 11 -> 12 ?
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
perks has quit [Quit: perks]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bam0 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ssvb has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Gasher has joined #crystal-lang
Philpax_ has quit [Ping timeout: 260 seconds]
Bish_ is now known as Bish
Philpax has joined #crystal-lang
ssvb has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/v2w0p
<crystal-gh> crystal/master 34bb4be John Kelley: Add check to make sure that we found an llvm-config- variant before trying to execute it
trapped has joined #crystal-lang
<crystal-gh> [crystal] jhass closed pull request #2201: Add check for llvm-config- to Makefile (master...LLVM_CHECK) https://git.io/v2wEv
_kfpratt has joined #crystal-lang
<travis-ci> crystal-lang/crystal#34bb4be (master - Add check to make sure that we found an llvm-config- variant before trying to execute it): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/112563541
kfpratt has quit [Ping timeout: 248 seconds]
ton31337 has left #crystal-lang [#crystal-lang]
NotSoNaive has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Gasher has quit [Quit: Leaving]
trapped has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
DeBot has quit [Ping timeout: 250 seconds]
DeBot has joined #crystal-lang
tliff has quit [Ping timeout: 246 seconds]
tliff has joined #crystal-lang
_jungh4ns has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
marcosdsanchez has joined #crystal-lang
bam0 is now known as alsm
pawnbox has quit [Ping timeout: 260 seconds]
<alsm> Anyone here using Kemal, seems something's changed recently to not allow capturing vars from the url at the root, ie /:name doesn't work anymore
[spoiler] has quit [Quit: Cheers!]
<alsm> something else weird going on now, not even my / route works
<crystal-gh> [crystal] asterite closed pull request #2242: improve performance of Levenshtein distance (master...feature/improve_levenshtein_performance) https://git.io/v2V8S
trapped has joined #crystal-lang
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
perks has joined #crystal-lang
perks has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] tcrouch opened pull request #2246: fix typos in docs (master...feature/fix_typos) https://git.io/v2rJn
<travis-ci> crystal-lang/crystal#e8fd778 (master - Merge pull request #2242 from tcrouch/feature/improve_levenshtein_performance): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/112602159
<crystal-gh> [crystal] ysbaddaden pushed 2 new commits to master: https://git.io/v2rUs
<crystal-gh> crystal/master 8146cb9 Tom Crouch: fix typos in docs
<crystal-gh> crystal/master bf3e99b Julien Portalier: Merge pull request #2246 from tcrouch/feature/fix_typos...
perks has joined #crystal-lang
pawnbox has joined #crystal-lang
perks has quit [Quit: perks]
perks has joined #crystal-lang
shama has joined #crystal-lang
perks has joined #crystal-lang
Gasher has joined #crystal-lang
dome22xl has joined #crystal-lang
<dome22xl> Interesting error in crystal-icr anybody ? undefined local variable or method 'h' (did you mean 'c'?)
<dome22xl> c.class => Nil
<dome22xl> Guessing its from my previous; ps = "a"; if ps == "a"; b = 1; else c = 2 end;
<dome22xl> however ps was set to "a"
<dome22xl> so c then will be created as a Nil object ?
<dome22xl> aah due to the static typing / compilation
<BlaXpirit> dome22xl, i have no idea what you're talking about
<dome22xl> lol
greengriminal has joined #crystal-lang
<dome22xl> Well in crystal icr i typed the letter h and pressed return
<dome22xl> i think the variable c is nil because of the ps = "a"; if ps == "a"; b = 1; else c = 2 end;
<dome22xl> however with ps beening the the value of "a" the else section c is nil as it never gets used.
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
alsm has quit [Ping timeout: 246 seconds]
dome22xl has quit [Ping timeout: 276 seconds]
triangles2 has quit [Quit: Leaving]
perks has quit [Quit: perks]
shadeslayer has quit [Ping timeout: 276 seconds]
shadeslayer has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v2rSC
<crystal-gh> crystal/master 256b859 Ary Borenszweig: HTTP::Client: read last "\r\n" in chunked response. Fixes #2243
dome22xl has joined #crystal-lang
<dome22xl> Anyone talk around here ?
<BlaXpirit> dome22xl, has been pretty quiet lately.. but sure
<dome22xl> I can't understand why i think Crystal is very much going to be adopted by people but takes time.
<asterite> dome22xl: I'm not sure I understand your question
<dome22xl> Well i achieved 10x performance porting my icersplicer project i created in Ruby so i think its natural that everyone wants to see the possible.
<BlaXpirit> asterite, I wanted to ask you something. Do you realize that the current concurrency model, even without threads, poses many of the problems of actual threads? The points at which execution jumps between threads are unpredictable (well technically they are but still...)
<asterite> BlaXpirit: Yes. But the solution is simple: instead of sharing memory, you use channels to communicate
<asterite> Or... I don't understand what the real issue is, I only heard wonders about Go's concurrency model
<asterite> (or CSP, for that matter)
<BlaXpirit> well Go's concurrency model is actually not very good
<BlaXpirit> the way Python and C# do it, the points at which execution may jump are explicit
<BlaXpirit> async/await and whatnot
<dome22xl> I am saying everyone will be interested however there is only a small learning curve from the ruby community.
<BlaXpirit> but that's just limited to 1 thread, I suppose
<BlaXpirit> which works well for Python because it's limited to 1 thread regardless :|
<asterite> Yes, we considered the async/await model... well, actually waj understand a lot more about concurrency than me. But it's more bothersome for the user, to add all those annotations and explicit stuff
<asterite> Also, it's not super unpredictable: you have IO, the jump might happen
<BlaXpirit> well no, it might happen in any function you call
<dome22xl> Great language love its far.
<asterite> dome22xl: Thanks :-)
<asterite> BlaXpirit: true... but I think in a language like crystal it can make things more cryptic
<asterite> Task<string> getStringTask = client.GetStringAsync("http://msdn.microsoft.com");
<asterite> Well, I get you could use `var getStringTask` there...
<asterite> Mmm... Yes, the language will have to know about async/await and rewrite methods, so when you do "return 1" it actually does "return Task.new(1)" or something like that
<dome22xl> Does the object.methods functionality need porting or are the other ideas / ways to get such things ?
<BlaXpirit> asterite, the gist of it is everything is in one thread, and whenever there is 'await' execution may jump
<BlaXpirit> I suppose being limited to 1 thread is not very good
<BlaXpirit> but then again, for web frameworks it could be nice. just run 4 processes or even threads, each of which has the async stuff
<BlaXpirit> and I'm forgetting that web frameworks are good with just OS threads because they aren't supposed to share state anyway
<BlaXpirit> meh, forget about it. everything is good :D
<asterite> dome22xl: that's mostly runtime reflection, which we tried to avoid if possible... for now it will remain outside the standard library
<asterite> Also the first answer here is interesting, rewriting async/await stuff doesn't seem trivial: http://stackoverflow.com/questions/7479276/what-is-the-main-difference-between-net-async-and-google-go-light-weight-thread
<asterite> But yes, 1 thread is pretty limited... in any case, waj knows much more about concurrency than me, and I trust his decisions :-)
mgarciaisaia1 has joined #crystal-lang
<yxhuvvd> channels is a great default that will fulfill the need of most people.
<dome22xl> Ooh ok i see what you mean.
<yxhuvvd> if there are building blocks to build other threaded models, even better. personally I'm itching to implement the disruptor pattern and see how it performs.
<travis-ci> crystal-lang/crystal#256b859 (master - HTTP::Client: read last "\r\n" in chunked response. Fixes #2243): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/112648057
<dome22xl> Crystal and Ruby are completely different worlds once you start to think about the compilation.
<BlaXpirit> dome22xl, good that you realize this
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Ping timeout: 260 seconds]
<crystal-gh> [crystal] Dreauw closed pull request #2230: Add swapcase for String and Char (master...swapcase) https://git.io/v2ukk
dome22xl has quit [Read error: Connection reset by peer]
dome22xl has joined #crystal-lang
dome22xl has quit [Read error: Connection reset by peer]
dome22xl has joined #crystal-lang
<jokke> asterite: i tried asking here before but i guess no one was online: is there any constant that's only set when compiled with --release or the other way around (or even better some constant set only for spec)
dome22xl has quit [Ping timeout: 276 seconds]
perks has joined #crystal-lang
dome22xl has joined #crystal-lang
<crystal-gh> [crystal] Zavydiel opened pull request #2247: Add Char::Reader documentation (master...char-reader) https://git.io/v2oTH
dome22xl has quit [Ping timeout: 250 seconds]
mgarciaisaia has left #crystal-lang [#crystal-lang]
dome22xl has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v2oLP
<crystal-gh> crystal/master 4733c87 Ary Borenszweig: Merge pull request #2240 from crystal-lang/feature/signed_vs_unsigned_comparisons...
dome22xl has quit [Ping timeout: 250 seconds]
dome22xl has joined #crystal-lang
<asterite> jokke: you can do `ifdef release`
dome22xl has quit [Ping timeout: 246 seconds]
<jokke> asterite: oh ok great
<jokke> thanks
krtv` has quit [Read error: Connection reset by peer]
<jokke> asterite: like this? https://p.jreinert.com/hPuo9/ruby
<asterite> jokke: indeed
<jokke> alright. great. bcrypt slowed down the specs quite a bit :)
<travis-ci> crystal-lang/crystal#4733c87 (master - Merge pull request #2240 from crystal-lang/feature/signed_vs_unsigned_comparisons): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/112668017
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
leafybasil has quit [Quit: Leaving...]
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
krtv` has joined #crystal-lang
pragmatism has left #crystal-lang ["Textual IRC Client: www.textualapp.com"]
luislavena has joined #crystal-lang
leafybasi has joined #crystal-lang
pawnbox has joined #crystal-lang
leafybasi has quit [Quit: ZNC 1.6.1+deb1~ubuntu14.04.0 - http://znc.in]
leafybasi has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
leafybasi is now known as leafybasil
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/v2ooL
<crystal-gh> crystal/master 40812ba Ary Borenszweig: Dir: use correct types in C bindings
<crystal-gh> crystal/master fb73401 Ary Borenszweig: Compiler: use pointer size instead of `ifdef` in codegen (useful for correct cross-compiling)
<crystal-gh> crystal/master 801e788 Ary Borenszweig: Compiler: fix ptr2int usage in `if ptr` where ptr is a pointer
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v2oPd
<crystal-gh> crystal/master 3a19f41 Ary Borenszweig: Fixed #2245: `.new` silently ignores unknown keyword arguments instead of compile error
luislavena has quit [Quit: Leaving]
A124 has quit [Ping timeout: 246 seconds]
<crystal-gh> [crystal] Dreauw opened pull request #2248: Fix a typo in the doc of Set#each (master...yeilds_typo) https://git.io/v2oMz
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dome22xl has joined #crystal-lang
<travis-ci> crystal-lang/crystal#fb73401 (master - Compiler: use pointer size instead of `ifdef` in codegen (useful for correct cross-compiling)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/112694635
pawnbox has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
<crystal-gh> [crystal] luislavena opened pull request #2250: Format documenting code samples and include formatter instructions (gh-pages...add-formatter-documenting-code) https://git.io/v2oQj
<travis-ci> crystal-lang/crystal#3a19f41 (master - Fixed #2245: `.new` silently ignores unknown keyword arguments instead of compile error): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/112698934
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
Philpax has quit [Read error: Connection reset by peer]
marcosdsanchez has quit [Read error: Connection reset by peer]
marcosdsanchez has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Gasher has quit [Quit: Leaving]
trapped has quit [Read error: Connection reset by peer]
dome22xl has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
marcosdsanchez has quit [Ping timeout: 248 seconds]
dome22xl has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]