jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.16.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
Philpax has quit [Ping timeout: 276 seconds]
|2701 has joined #crystal-lang
|2701 has quit [Changing host]
|2701 has joined #crystal-lang
Philpax has joined #crystal-lang
<|2701> in ruby, it's possible to do: (1..100).to_a.combination(3).select{|a,b,c| (a*a)+(b*b)==(c*c)}, where a,b and c are binded to the 3 elements of each array from combination, but in crystal I get an overload error when trying to do a similar thing with combinations
<|2701> would it be easy to make crystal bind block arguments in select calls to elements of the arrays passed to the block?
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrcnJ
<crystal-gh> crystal/master 8cec777 Ary Borenszweig: Fixed #2601: Global function named 'initialize' crashes the compiler
<icezimm> any way of extend a module and create a class variable?
<travis-ci> crystal-lang/crystal#8cec777 (master - Fixed #2601: Global function named 'initialize' crashes the compiler): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130715318
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
<icezimm> emancu: https://carc.in/#/r/yn9 added some comments
<icezimm> I think it's more clear now
<icezimm> if someone could please check my carc and give some tips on how to call the block passed on builds, I do really appreciate :)
<emancu> icezimm: i'm still don;t understand why do you do it in that way
<emancu> could you tell me what do you want to do, give me some spec or context ? because that code says nothing to me :/
emancu has quit [Remote host closed the connection]
emancu has joined #crystal-lang
|2701 has quit [Quit: Connection closed for inactivity]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Raimondi has quit [Ping timeout: 265 seconds]
Raimondi has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Raimondi has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
nwmcsween__ has joined #crystal-lang
nwmcsween has joined #crystal-lang
nwmcsween is now known as Guest10656
nwmcsween_ has quit [Ping timeout: 244 seconds]
nwmcsween__ has quit [Ping timeout: 252 seconds]
nwmcsween_ has joined #crystal-lang
Guest10656 has quit [Ping timeout: 260 seconds]
Oliphaunte has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
zodiak_ has quit [Ping timeout: 246 seconds]
zodiak has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] Haar opened pull request #2602: Correct minor typo in Union Types documentation (gh-pages...patch-1) https://git.io/vrcXs
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Ping timeout: 276 seconds]
trapped has quit [Read error: Connection reset by peer]
mark_66 has joined #crystal-lang
<Bish> any news on multithreading :3?
<crystal-gh> [crystal] ysbaddaden closed pull request #2602: Correct minor typo in Union Types documentation (gh-pages...patch-1) https://git.io/vrcXs
brunto has joined #crystal-lang
<Bish> where in docs do i find the &.method stuff
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
smarr has left #crystal-lang [#crystal-lang]
Philpax has joined #crystal-lang
<BlaXpirit> Bish, i can't find it
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
elia has joined #crystal-lang
<Bish> BlaXpirit: thank you
<Bish> wow, with parameters
<Bish> that's better than &:sym
pawnbox has quit [Ping timeout: 250 seconds]
brunto has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
brunto has joined #crystal-lang
soveran has quit [Remote host closed the connection]
brunto has quit [Ping timeout: 246 seconds]
Raimondi has joined #crystal-lang
Raimondi has quit [Ping timeout: 252 seconds]
trapped has joined #crystal-lang
soveran has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
brunto has joined #crystal-lang
rtl has quit [Ping timeout: 250 seconds]
waj has quit [Ping timeout: 250 seconds]
waj has joined #crystal-lang
rtl has joined #crystal-lang
poulet_a has joined #crystal-lang
|2701 has joined #crystal-lang
<Bish> BlaXpirit: can you answer the multithreading, too?
<Bish> would love to bench it around
pawnbox has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
pawnbox has joined #crystal-lang
<txdv> def initialize(*names) # how is this *names construct called?
<jhass> txdv: mh, splat I guess
<jhass> it collects any given positional arguments into a tuple
<txdv> something like def initialize(*names); @names = names doesn't work no more, even if I specify the type of the splat with *names : String
<txdv> i was reading the example in http://crystal-lang.org/api/ECR.html
<txdv> def initialize(*names) # how is this *names construct called?https://github.com/crystal-lang/crystal/blob/master/src/ecr/ecr.cr
<txdv> o i pressed the up arrow key by mistake
buggs1 has quit [Quit: WeeChat 1.4]
buggs has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrCWp
<crystal-gh> crystal/master 39246c6 Ary Borenszweig: Compiler: give error message when accessing class variable from virtual type. Related to #916...
Raimondi has joined #crystal-lang
elia has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
SShrike has joined #crystal-lang
pawnbox has joined #crystal-lang
Raimondi has quit [Ping timeout: 265 seconds]
SShrike has quit [Client Quit]
pawnbox has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vrC4W
<crystal-gh> crystal/master 0f8b5cd mosop: resque_accepts_global_type_path
<crystal-gh> crystal/master b33100b Ary Borenszweig: Merge pull request #2593 from mosop/rescue_accepts_global_type_path...
<travis-ci> crystal-lang/crystal#39246c6 (master - Compiler: give error message when accessing class variable from virtual type. Related to #916): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130823243
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrC4h
<crystal-gh> crystal/master 455915b Will Leinweber: Crypto::MD5 also allow Slice(UInt8) (#2542)...
trapped has joined #crystal-lang
brunto has quit [Ping timeout: 240 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#b33100b (master - Merge pull request #2593 from mosop/rescue_accepts_global_type_path): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130826395
kulelu88 has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
brunto has joined #crystal-lang
<travis-ci> crystal-lang/crystal#455915b (master - Crypto::MD5 also allow Slice(UInt8) (#2542)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130827231
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrCzT
<crystal-gh> crystal/master 8b81d92 Ary Borenszweig: Fixed #2514: Error when invalid file descriptor provided to the `context` tool
Raimondi has joined #crystal-lang
<travis-ci> crystal-lang/crystal#8b81d92 (master - Fixed #2514: Error when invalid file descriptor provided to the `context` tool): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130834065
kulelu88 has quit [Quit: Leaving]
poulet_a has left #crystal-lang [#crystal-lang]
emancu_ has joined #crystal-lang
emancu has quit [Read error: Connection reset by peer]
emancu_ has quit [Remote host closed the connection]
emancu has joined #crystal-lang
emancu_ has joined #crystal-lang
emancu has quit [Ping timeout: 244 seconds]
Raimondii has joined #crystal-lang
steenuil has joined #crystal-lang
Raimondi has quit [Ping timeout: 265 seconds]
emancu_ has quit [Remote host closed the connection]
emancu has joined #crystal-lang
Raimondii is now known as Raimondi
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vrCi9
<crystal-gh> crystal/master 63ff95a Ary Borenszweig: NamedTuple: added `from_json` and `from_yaml`
<crystal-gh> crystal/master cdae8a1 Ary Borenszweig: Removed some TODOs and cleaned up code
pawnbox has quit [Ping timeout: 252 seconds]
crystal-lang205 has joined #crystal-lang
crystal-lang205 has quit [Client Quit]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Philpax has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#63ff95a (master - NamedTuple: added `from_json` and `from_yaml`): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130844461
Oliphaunte has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrCSU
<crystal-gh> crystal/master bbf7c35 Ary Borenszweig: Updated Changelog
icezimm has quit [Read error: Connection reset by peer]
mgarciaisaia has joined #crystal-lang
Oliphaunte has quit []
mgarciaisaia has left #crystal-lang [#crystal-lang]
steenuil has quit [Quit: Textual IRC Client: www.textualapp.com]
emancu has quit [Remote host closed the connection]
emancu has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
<travis-ci> crystal-lang/crystal#bbf7c35 (master - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130851638
sebasr has quit [Ping timeout: 260 seconds]
emancu has quit [Read error: Connection reset by peer]
emancu has joined #crystal-lang
emancu has quit [Remote host closed the connection]
emancu has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
trapped has quit [Ping timeout: 240 seconds]
steenuil has joined #crystal-lang
steenuil has quit [Quit: Textual IRC Client: www.textualapp.com]
icezimm has joined #crystal-lang
<icezimm> emancu: uber builder is used to return classes dynamically
<emancu> like a factory ?
<icezimm> emancu: imagine you have a class that returns the Object Form, but in some cases you want to return SimpleObjectForm, sometimes you want the AdvancedObjectForm
<icezimm> a factory usually instantiate the object
<icezimm> builder just returns the call
<icezimm> *class
pawnbox has joined #crystal-lang
<emancu> ok.. and those classes are polymorphic ?
<icezimm> depends on the purpose… the idea is just the block returns a class to be initialized later hehehe
<icezimm> based on options hash
trapped has joined #crystal-lang
<icezimm> but don't worry I think I'm too beginner on crystal to implement such a thing like this, I'm gonna start with simple classes until I get more used to, then I get back to Uber when makes sense hehehe
<icezimm> thank you!
soveran has quit [Remote host closed the connection]
steenuil has joined #crystal-lang
<jhass> note not all if not most ruby patterns translate well to Crystal
Raimondii has joined #crystal-lang
<icezimm> jhass: yes… I'm realizing this hahahah
Raimondi has quit [Ping timeout: 265 seconds]
Raimondii is now known as Raimondi
elia has quit [Quit: Computer has gone to sleep.]
<icezimm> I'm trying to store a proc in a instance variable like @block = block then in a later point just @block.call
<icezimm> is it possible?
<jhass> yes
<icezimm> hummm I tried with a simpler example
<icezimm> really works
Rocky_ has joined #crystal-lang
<icezimm> emancu: I got a spec working for what I was trying to do :)
<icezimm> emancu jhass : any way not specify directly ( Foo.class | Bar.class ) ?
<jhass> icezimm: https://carc.in/#/r/yod
<icezimm> hahahahah with 1 character you solved it.. amazing, thank you jhass :)
brunto has quit [Ping timeout: 260 seconds]
<icezimm> I need to better understand Generics, really new concept to me
<Rocky_> hey folks, i recently discovered crystal and i've been trying to learn it, I use java most of the time and am wondering if there is something that functions like data (input/output) streams in crystal for tcp sockets
<icezimm> emancu: thank you for all your patience and support :)
<icezimm> Rocky_: I'm not used to Java, but you mean an event loop?
<icezimm> that reads / writes from an IO stream (in this case tcp sockets)…
<Rocky_> yeah
<icezimm> I'm as new as you in crystal, but in my research I found something that may be useful to you
mgarciaisaia has joined #crystal-lang
<icezimm> using the reactor pattern you can read / write to the IO, and sleep when there's no data available
<icezimm> I don't know if crystal has something more _friendly_
mark_66 has quit [Remote host closed the connection]
<Rocky_> yeah this is definitely helpful, im trying to handle packets and read_line doesnt exactly work for that
<jhass> Rocky_: Crystal uses evented I/O by default
<jhass> and transparently
<jhass> Rocky_: http://crystal-lang.org/api/TCPSocket.html here's the TCP client abstraction
<Rocky_> what do you mean by client abstraction (little out of my element here)
<jhass> interface/standard library
<jhass> it's the standard library for writing a TCP client
mgarciaisaia has left #crystal-lang [#crystal-lang]
<jhass> Rocky_: happy to help if you have a more concrete issue/question
<icezimm> Rocky_: in case you want to see the reactor with crystal 0.16.0 https://gist.github.com/fernandes/c3da8b8a472b8c7f0b6c2eb86e735607
<jhass> icezimm: what's the benefit over the evented IO provided by the standard library?
<icezimm> no one hahaha it's just a pattern implemented
<icezimm> I think what Rocky_ wants, is to know how you initialize a tcp client and pass a block so when something is ready to be read on buffer, process this block
<icezimm> so you can open a tcp socket to receive something, bufferize and write on another socket… so you just stream without the need of write an IO
<icezimm> IO file
<jhass> just use it inside a fiber and program like it's blocking
<jhass> your other fibers will run while it's blocked on IO
<icezimm> Rocky_: jhass example is much better (and simpler)…
<icezimm> jhass: perfect!
<icezimm> jhass: your example is exiting after 10 seconds
<jhass> yeah, argless sleep would make it run forever
<jhass> gotta keep the main fiber alive
<Rocky_> im trying to work with a connection between a client and the server (which im trying to write) where the client is sending all of this information as abitrary bytes and im trying to read that information
<jhass> else the process exits
<Rocky_> so icezimm is pretty much on point with what im trying to figure out
<jhass> you gotta have a wire protocol
<jhass> no API can ever provide you an exact TCP packet like it was written by the sender
<icezimm> jhass: I got it running endless, thank you for sleep argless tip :)
<icezimm> Rocky_: I faced this problem when porting a nodejs application to ruby
<icezimm> Rocky_: streams are sooo easy on node heheh
<icezimm> on ruby I ended with eventmachine
<icezimm> but as jhass said, on crystal there's native event support
<jhass> Rocky_: what do you want to do while not reading data?
<Rocky_> the packet im trying to work with right now has this structure [id: 0x00, field: varint, field: string, field: unsigned short, field: varint"]
<icezimm> probably wait hahaha (the most useless wait time in mankind, wait for an IO :P )
<jhass> Rocky_: are you looking for http://crystal-lang.org/api/IO/ByteFormat.html perhaps?
<Rocky_> jhass: what im doing right now is spawn a new fiber (believe thats what they're called) and processing what was sent (then closing)
<Rocky_> yes that certainly helps, so I need that and evented I/O for sockets, although you said there is already a lib for that in tcpsocket?
<jhass> http://crystal-lang.org/api/IO.html#read_bytes%28type%2Cformat%3AIO%3A%3AByteFormat%3D%3Cspanclass%3D%22t%22%3EIO%3C%2Fspan%3E%3Cspanclass%3D%22t%22%3E%3A%3A%3C%2Fspan%3E%3Cspanclass%3D%22t%22%3EByteFormat%3C%2Fspan%3E%3Cspanclass%3D%22t%22%3E%3A%3A%3C%2Fspan%3E%3Cspanclass%3D%22t%22%3ESystemEndian%3C%2Fspan%3E%29-instance-method
<jhass> is what you use it through
<jhass> TCPSocket is an IO
<jhass> all standard library IO is evented by default
<jhass> if the current fiber is blocked by IO, another one is scheduled meanwhile
<crystal-gh> [crystal] jhass pushed 1 new commit to master: https://git.io/vrWOh
<crystal-gh> crystal/master a045f0c Jonne Haß: Docs: Typo in IO#read_bytes, it's calling from_io not to_io
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
ql6wlld has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
emancu has quit []
<travis-ci> crystal-lang/crystal#a045f0c (master - Docs: Typo in IO#read_bytes, it's calling from_io not to_io): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130890080
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
trapped has quit [Read error: Connection reset by peer]
ql6wlld has quit [Quit: WeeChat 1.4]
<icezimm> Rocky_: maybe you can like this (if already not read) http://crystal-lang.org/docs/guides/concurrency.html
jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.17.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
mgarciaisaia has joined #crystal-lang
soveran has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vrW0Q
<crystal-gh> crystal/master 2d256d0 Ary Borenszweig: Specs: removed some TODOs
<crystal-gh> crystal/master 08139df Ary Borenszweig: NamedTuple: added `new` (similar to Tuple#new)
soveran has quit [Ping timeout: 244 seconds]
<jsaak> anyone used macruby or ruby-motion? it looks pretty close to crystal
<jhass> don't both embed runtimes?
<jsaak> i do not know what you mean
<jsaak> it is a wrapper around ios stuff, and some ruby reimplemented i think
<jhass> produce execuatables which basically implement a Ruby VM that then runs the code
<jsaak> no, i think it is all compiled
<jsaak> with llvm
<wmoxam> MacRuby used JIT compilation
<wmoxam> AFAICT it is closer to JRuby than Crystal
<wmoxam> and Ruby Motion is based on MacRuby
mgarciaisaia has left #crystal-lang [#crystal-lang]
<wmoxam> Although in Ruby Motion's FAQ they state that "RubyMotion implements a dialect of Ruby that conforms to those rules. RubyMotion apps are fully compiled, do not download or interpret code"
<travis-ci> crystal-lang/crystal#08139df (master - NamedTuple: added `new` (similar to Tuple#new)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/130907663
Oliphaunte has joined #crystal-lang
<RX14> jokke, you're the crouter guy right?
Raimondi has quit [Quit: The road to wisdom?—Well, it's plain and simple to express: Err and err and err again, but less and less and less. — Piet Hein]
Raimondi has joined #crystal-lang
sdogruyol has quit [Quit: Connection closed for inactivity]
srabuini has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 265 seconds]
Raimondii is now known as Raimondi
<crystal-gh> [crystal] asterite pushed 3 new commits to master: https://git.io/vrWMA
<crystal-gh> crystal/master 73dd85a Ary Borenszweig: Formatter: format special named tuple syntax in the type grammar
<crystal-gh> crystal/master 31e5e37 Ary Borenszweig: SimpleHash: use named tuples for values
<crystal-gh> crystal/master 249cf87 Ary Borenszweig: Compiler: use record instead of tuple for representing named arguments with types (less magic numbers)
willl has joined #crystal-lang
Ven has joined #crystal-lang
greengriminal has joined #crystal-lang
brunto has joined #crystal-lang
<icezimm> is there any way to include a module on a class, and create a class variable there?
<icezimm> I tried with macro included, but didn't work
brunto has quit [Read error: Connection reset by peer]
brunto has joined #crystal-lang
brunto has quit [Read error: Connection reset by peer]
<icezimm> I tried storing a generic type on a hash, but compiler does not allow `can't use BlockHolder(T) as generic type argument yet, use a more specific type` hehehe
<crystal-gh> [crystal] bcardiff pushed 1 new commit to master: https://git.io/vrWHX
<crystal-gh> crystal/master 7efdf26 Brian J. Cardiff: [ci skip] fix CSV#build docs
Yxhuvud has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#249cf87 (master - Compiler: use record instead of tuple for representing named arguments with types (less magic numbers)): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/130928805
<jhass> icezimm: class variable should've worked, show what you got?
soveran has joined #crystal-lang
<icezimm> jhass: https://carc.in/#/r/yov
soveran has quit [Ping timeout: 260 seconds]
<jhass> well it's nilable and you don't disambiguate it
<jhass> .try &.call or .not_nil!.call (later will raise, former will fail silently)
<icezimm> check line 31 please, it's not nil
<jhass> yes but nilable
<jhass> the compiler can't be sure it's not and forces you to handle nil
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrWFA
<crystal-gh> crystal/master d408415 Ary Borenszweig: Initialize C libs before main, using a class variable (workaround until solved)
Yxhuvud has joined #crystal-lang
<icezimm> jhass: OHHHHH that's amazing… not sure that was needed
<pawnbox> Is there way to have class var like behaviour for generic classes?
<pawnbox> Currently crystal doesn't allow class vars in generic classes.
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrWAH
<crystal-gh> crystal/master 8ec9fc8 Ary Borenszweig: Fixed incorrect workaround
<jhass> icezimm: don't think I like the general pattern still, but not sure why you make this so complicated: https://carc.in/#/r/ypa
<icezimm> jhass: is a carc enough for a issue report?
<jhass> please copy code & output in case it goes down :)
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrWx8
<crystal-gh> crystal/master 9bf7613 Ary Borenszweig: Merge branch 'release/0.17'
<jhass> also awesome if you can reduce it to the minimal reproducer
<icezimm> jhass: I mean, enough for a report on crystal
<jhass> yes
<jhass> got that
<icezimm> jhass: did you update today? not working with Chrome hehehe
<icezimm> I saw 0.17.0 was added heheh
<jhass> uh no, not any frontend
<icezimm> I'm using on safari right now
<jhass> just added the 0.17 sandbox
<icezimm> when I access https://carc.in/#/r/ypa it returns #502 for /ypa
<jhass> seems to do fine in the chromium 50 I got here
<jhass> works for me too
<icezimm> Google Chrome 50.0.2661.102 (Official Build) (64-bit) here
<jhass> yeah I got the Chromium build of that
<jhass> well and linux
<icezimm> don't worry, I can use on safari, just reporting :)
<jhass> mmh
<jhass> IPv4 vs IPv6 perhaps
<jhass> (v4 goes through another host since I didn't have a v4 for the actual one anymore)
<icezimm> hummm makes sense
<jhass> try again please
<icezimm> still #502
<icezimm> jhass: your code is awesome!!!! hahahaha
<jhass> weird, curl -4 http://carc.in/languages works for me
<jhass> *https
<icezimm> I've spent 2 days on make it badly "working", and you solved beautifully
<jhass> I said Ruby idioms don't port to well, especially around "DSLs" :P
<icezimm> jhass: https://carc.in/#/r/ypb does it worth to open an issue for this? started happening after added the @klass, crystal has 271 issues, do wanna flood the team with dummy issue (specially because I don't know what to write on description) hehehe
<icezimm> jhass: hahahah yes
fryguy9 has joined #crystal-lang
<icezimm> jhass: I'm learning this _the hard way™_ :D
<jhass> icezimm: https://carc.in/#/r/yph using 0.17 features
<jokke> RX14: yup
<jokke> RX14: what's up?
<jokke> RX14: something broken? :)
<RX14> jokke, i made a PR
<jokke> oh nice
<jokke> gimme a sec to check it out
<jhass> icezimm: it's definitely a bug, endless recursion in the compiler
<jhass> let's see if I recognize it
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#d408415 (master - Initialize C libs before main, using a class variable (workaround until solved)): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/130945009
<jhass> icezimm: too bad, taking out spec makes it disappear, gonna be a lot of work to reduce
<jokke> RX14: merged!
<jokke> RX14: thx
<RX14> thanks
<jhass> icezimm: anyway open a bug anyway, just title it "stack overflow in the compiler" or so
<icezimm> jhass: being honest, this solution sucks, it's not the _crystal way_, so I'm gonna use yours, just reported because it's an error on compiler… but if it's an edge case and doesn't worth to track it down, forget it hehehe
<icezimm> ok
<jhass> nah such things should basically never happen
<jhass> at worst the compiler should say "not able to compile your code for now, sorry!"
<jhass> never crash like that
<icezimm> hahaha that's what I thought
Ven has joined #crystal-lang
<icezimm> opened
<travis-ci> crystal-lang/crystal#9bf7613 (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130948531
<icezimm> updated crystal to 0.17 and run your example… cool the {} and optional args :)
pawnbox has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
trapped has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vrlk8
<crystal-gh> crystal/master d924669 Ary Borenszweig: Merge branch 'release/0.17'
elia has joined #crystal-lang
<|2701> congrats on another release, lads
<|2701> looks like fun stuff
<asterite> lol, I didn't know you could run specs in play... it even has colors! <3
<|2701> are you saying that crystal is so advanced already that there are features unbeknownst to key contributors?
<|2701> we're meta now
A124 has quit [Read error: No route to host]
A124 has joined #crystal-lang
<travis-ci> crystal-lang/crystal#d924669 (master - Merge branch 'release/0.17'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/130965907
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
trapped_ has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
icezimm has quit [Ping timeout: 240 seconds]
greengriminal has quit [Quit: Leaving]
the_asterite has joined #crystal-lang
the_asterite has quit [Client Quit]
trapped_ has quit [Read error: Connection reset by peer]
elia_ has joined #crystal-lang
icezimm has joined #crystal-lang
elia has quit [Read error: Connection reset by peer]
srabuini has quit [Read error: Connection reset by peer]
icezimm has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 252 seconds]
globalkeith has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
Philpax has joined #crystal-lang
A124 has quit [Read error: No route to host]
A124 has joined #crystal-lang
elia_ has quit [Quit: Computer has gone to sleep.]