jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.7 | Fund Crystals development: http://is.gd/X7PRtI | 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
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
waterlink has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vZtGA
<crystal-gh> crystal/master baae3fe Ary Borenszweig: Partially fix #793: set a limit of 100 on generic instance types nesting.
<travis-ci> manastech/crystal#baae3fe (master - Partially fix #793: set a limit of 100 on generic instance types nesting.): The build passed. https://travis-ci.org/manastech/crystal/builds/79203882
fowlduck has quit [Remote host closed the connection]
tatey_ has joined #crystal-lang
fowlduck has joined #crystal-lang
vikaton has joined #crystal-lang
waj has quit [Remote host closed the connection]
tatey_ has quit []
waj_ has joined #crystal-lang
waj_ has quit [Ping timeout: 246 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
kulelu88 has quit [Quit: Leaving]
<nakilon> anyone saw 'bugs' in .uniq?
<nakilon> somehow it has duplicating keys _Oo
<nakilon> the hash, that is used inside
<nakilon> lol, one key is 8 Int_32 and another one is 8 Float_64
<nakilon> when you print them, they look the same, resulting is: {6 => 6, 8 => 8, 8 => 8, 12 => 12, ...
<nakilon> *in
<nakilon> what about assuming them to be the same?
<nakilon> somewhere in .has_key? or deeper
dyulax has joined #crystal-lang
<crystal-gh> [crystal] 5t111111 opened pull request #1410: Add a code example to the doc for type rescrictions (gh-pages...add-code-example) http://git.io/vZtaA
tatey_ has joined #crystal-lang
<nakilon> how do I do puts some_object.method(:some_method).source_location in Crystal?
<nakilon> ok, I think it's ok, that 8_i32 is a different key from 8_f64
waj_ has joined #crystal-lang
<nakilon> it could have a purpose, so lets the developer to cast them before pushing for later .uniq
<nakilon> but this issue is so untrivial and needs at least a note in Hash docs
<nakilon> but actually stating that in Hash isn't the best place to warn about Array.uniq
dyulax has quit [Read error: Connection reset by peer]
dyulax has joined #crystal-lang
waj_ has quit [Read error: Connection reset by peer]
waj__ has joined #crystal-lang
tatey_ has quit []
dyulax has quit [Read error: Connection reset by peer]
dyulax has joined #crystal-lang
dyulax has quit [Read error: Connection reset by peer]
dyulax has joined #crystal-lang
idontcare has joined #crystal-lang
ylluminate has quit [Ping timeout: 252 seconds]
<nakilon> ""undefined method 'zero' for Nil:Class" when #sum the Array without Nils"
ylluminate has joined #crystal-lang
ylluminate has quit [Ping timeout: 272 seconds]
<nakilon> this would 'fix' my issue me by .map(&.to_i)
waj__ has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
<nakilon> are catch/throw planned to be implemented in Crystal?
fowlduck has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
<nakilon> are catch/throw planned to be implemented in Crystal?
<nakilon> oh sry, alt+tabed not to Terminal
danzilio has joined #crystal-lang
<nakilon> would be nice if program tells on which line it was ^C-ed
<nakilon> is there a way to know if MAX_INT or MAX_FLOAT overflowed while running?
<nakilon> nvm
waj_ has quit [Read error: Connection reset by peer]
waj__ has joined #crystal-lang
waj__ has quit [Remote host closed the connection]
watsy has joined #crystal-lang
ylluminate has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
ylluminate has quit [Remote host closed the connection]
waj_ has joined #crystal-lang
waj_ has quit [Ping timeout: 265 seconds]
NeverDie has quit [Quit: http://radiux.io/]
watsy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
watsy has joined #crystal-lang
<nakilon> omg, Crystal creates ./.crystal folders ..( is it when I call with --release?
waj_ has joined #crystal-lang
Ven has joined #crystal-lang
waj_ has quit [Ping timeout: 244 seconds]
ylluminate has joined #crystal-lang
watsy has quit [Ping timeout: 255 seconds]
tatey_ has joined #crystal-lang
<jhass> nakilon: no always. You can set a central location with CRYSTAL_CACHE_DIR
<jhass> I have some hope that throw/catch is not going to happen
<jhass> Float64#inspect should probably append a .0
BlaXpirit has joined #crystal-lang
<nakilon> I don't like wraping piece of code in an additional function (that would need dealing with scopes, argument passing) just because "let's pretend that breaking through more than one loop stack is impossible or never needed by noone just because I didn't need it during last three days"
<nakilon> yes, it's nice that "everything is an object" returns some value from the loop that we can check, but it looks not much better than catch/throw block
rob_ has left #crystal-lang [#crystal-lang]
<nakilon> [10:32:08] <jhass> nakilon: no always. You can set a central location with CRYSTAL_CACHE_DIR
<nakilon> can it be put into brew install script?
<jhass> I don't think so but you can try a PR against https://github.com/manastech/homebrew-crystal
<crystal-gh> [crystal] jhass pushed 3 new commits to master: http://git.io/vZqGF
<crystal-gh> crystal/master cafe91e Will Leinweber: Benchmark::IPS report relative stddev instead
<crystal-gh> crystal/master cafe3be Will Leinweber: Benchmark::IPS use SI suffix for often large means
<crystal-gh> crystal/master 3ffd898 Jonne Haß: Merge pull request #1405 from will/benchmark-ips-formatting...
<crystal-gh> [crystal] jhass closed pull request #1410: Add a code example to the doc for type rescrictions (gh-pages...add-code-example) http://git.io/vZtaA
ponga has joined #crystal-lang
<travis-ci> manastech/crystal#3ffd898 (master - Merge pull request #1405 from will/benchmark-ips-formatting): The build passed. https://travis-ci.org/manastech/crystal/builds/79238388
waterlink has joined #crystal-lang
jokke1 is now known as jokke
kyrylo has joined #crystal-lang
waterlink has quit [Ping timeout: 244 seconds]
<nakilon> yeah, there is no way to set up env var
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
tatey_ has quit []
leafybasil has quit [Remote host closed the connection]
idontcare has quit [Ping timeout: 240 seconds]
<BlaXpirit> linuxbrew just installs crystal for mac :p
<jhass> I trust you have a better package manager available anyway :P
<jhass> I heard OS X folks are looking into alternatives too
<nakilon> there was macports for years
<nakilon> homebrew is a modern tool
<nakilon> there is nothing better yet AFAIK
<nakilon> the fact that it doesn't edit permanent env vars must be a one of its cool features of safety
fowlduck has quit [Remote host closed the connection]
BlaXpirit_ has joined #crystal-lang
kyrylo has quit [Ping timeout: 244 seconds]
<ytti> does windows have hav ssh client with curve25519?
<ponga> i use brew
<jhass> I think nix got ported and pkgsrc is the new contender
<jokke> hi
<jokke> i'm looking for any documentation on how to connect to a server via websocket
<jokke> i see that websocket takes an io in new
<jokke> but i have no idea where that io should come from
<jokke> also how is the websocket handler supposed to be used?
<jhass> you can (should?) just pass it a TCPSocket
<jokke> mhm ok
leafybasil has joined #crystal-lang
oleh has joined #crystal-lang
<oleh> hi all
<jokke> ah i see so websockethandler is for server implementation
<jokke> i'm trying to build a websocket client
<jokke> hi oleh
<jhass> jokke: I dunno much about the protocol, do you need to initiate it via a HTTP connection or can you directly connect to some port?
<jokke> i think i need to initiate it via http
<jhass> mmh
<jokke> with the header Upgrade: websocket
<ponga> now that crystal hit 0.7.7 , 1.0 must not be far away!
<jokke> jhass: is it possible to get to the socket used by HTTP::Client?
<jhass> not in a sane manner I think
<jokke> mmh
<jhass> but I'd guess you can build a HTTP::Request your self and use .to_io(some_socket)
<jokke> .to_io
<jokke> wow
<jokke> how does that work?
<jhass> ponga: you know there's nothing preventing us from doing 0.10, 0.11 etc? ;)
<ponga> arrrrgggghhh
<jhass> look at rubocop, it's at 0.34
<jokke> jhass: i don't think i get it..
<nakilon> rubocop sucks
<jokke> i disagree
<jhass> you need to invest an hour into writing a sane config, yeah
<jhass> jokke: socket = TCPSocket.new(...); HTTP::Request.new(...).to_io(socket); websocket = HTTP::WebSocket.new(socket)
<jhass> arguably there should be a better API for this but for now that's it I think
<jokke> oh
<jokke> ok
kyrylo has joined #crystal-lang
<jhass> oleh: hey, if you got any questions just shoot ;)
BlaXpirit_ has quit [Quit: Konversation]
waj has joined #crystal-lang
<travis-ci> beno/crystal#4e68a06 (master - switch order command/file): The build passed. https://travis-ci.org/beno/crystal/builds/79257389
waj has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] MakeNowJust opened pull request #1414: Fix file name command ambiguity (master...file-name-command-ambiguity) http://git.io/vZqhy
dyulax has quit [Quit: This computer has gone to sleep]
dyulax has joined #crystal-lang
dyulax has quit [Client Quit]
Maksatbek has joined #crystal-lang
oleh has quit [Quit: Lost terminal]
oleh has joined #crystal-lang
<oleh> I start learn Crystal, and can't use 'rand' function, I wrote something like: require "random"; n = Random.rand(5); , but compiler gives error: undefined constant Random. What am I doing wrong?
<vegai> seems to work here
<vegai> >> require "random"; n = Random.rand(5); puts n;
<DeBot> vegai: 2 - more at http://carc.in/#/r/e93
<vegai> oleh: perhaps paste the whole code
kyrylo_ has joined #crystal-lang
kyrylo has quit [Ping timeout: 255 seconds]
<jhass> oleh: also how did you install crystal?
<jhass> there's also a toplevel rand
<jhass> >> rand(5)
<DeBot> jhass: # => 1 - http://carc.in/#/r/e94
<oleh> i used the instruction for Debian from official tutorial
<jhass> okay, cool
<jhass> a while back or just now?
<oleh> yesterday
<oleh> just rand(5) doesn't work also, I receive error: undefined method 'rand'
<jhass> how exactly do you run it?
kyrylo_ has quit [Ping timeout: 246 seconds]
<oleh> crystal build -o test --release test.cr && ./test
<jhass> mmh, the -o test is redundant but it should work
<jhass> let me get my chroot updated
<jhass> oleh: http://paste.mrzyx.de/pqkg3stbi unfortunately I cannot reproduce. Is there anything you've been doing different?
ingsoc has joined #crystal-lang
<oleh> I was doing all the same
<jhass> 64bit too?
<oleh> no
<oleh> 32bit
<jhass> mmh, I doubt it but I wonder if that makes a difference
<vegai> oleh: crystal --version ?
ssvb has quit [Ping timeout: 264 seconds]
<oleh> Crystal 0.7.7 [170f859] (Sat Sep 5 03:04:32 UTC 2015)
<jhass> so while I'll get a 32bit chroot, you can try apt-get purge crystal; apt-get update; apt-get install crystal
<oleh> I upgrated crystal, but have the same result.
<jhass> do you have CRYSTAL_PATH set to something by chance?
<oleh> I understand why crystal gives error
<jhass> mh?
<oleh> I just install another package for ranodom number generation: https://github.com/scidom/random.cr
<jhass> but that shouldn't make the stdlib rand's unavailable
<oleh> when I have compiled file in another directory all work correctly
tatey_ has joined #crystal-lang
<jhass> ugh
<jhass> yeah it provides a random.cr that's found first m(
* jhass opens issue
<trapped> is there any workaround to have the Spec assertions work properly inside Fibers? (spawn blocks)
<BlaXpirit> trapped, don't use them inside fibers
<trapped> since as of right now the fiber raises an unhandled exception but the test doesn't fail
<BlaXpirit> the fiber should send the result
<BlaXpirit> and you receive the result and assert based on it
<trapped> BlaXpirit: then how will i test this blocking smtp server
<trapped> either i use another process or i use a thread or fiber
<BlaXpirit> i just told you
<trapped> i have to assert things without quitting the smtp session
<trapped> because if the first one fails, it shouldn't keep going
<trapped> but if i do like you said, inside the fiber i can't yet tell if it failed or not
tatey_ has quit []
shadeslayer has quit [Ping timeout: 244 seconds]
shadeslayer has joined #crystal-lang
<jokke> jhass: how would i use ssl over the TCPSocket?
<jhass> jokke: wrap it in a OpenSSL::Socket or whatever the class was
<jhass> WebSocket.new(OpenSSL::Socket.new(TCPSocket.new(...))) # isn't composing stuff fun?
<jokke> jhass: thanks
<jokke> jhass: i just noticed, that HTTP::Headers downcases header names (except for the first letter)
<jokke> "Sec-WebSocket-Key" becomes "Sec-websocket-key"
<jokke> not sure if that's valid
<jhass> mh
<jokke> at least i get a Bad Request: Not a valid websocket request from the server
<jhass> is that true for the serialization?
<jhass> mmh
<jokke> i just did a puts on the HTTP::Headers object
BitPuffin has joined #crystal-lang
<BitPuffin> hello folks!
<jhass> jokke: it does a plain capitalize, yeah :/
<jokke> wtf
<jokke> why?
<jhass> well, it's seeking to normalize
<jhass> so you can access with CONTENT_TYPE as well as Content-Type and stuff
<jokke> oh so this is only on access?
<jokke> i have to check the sent headers with the proxything you showed me a week ago :)
<jhass> I think it's also serialization, let's see :/
<jokke> yeah
<jokke> mitmproxy shows it at least
<jhass> yeah, it's lacking :/
<jhass> it Should normalize to Words-Separated-Like-This
<jokke> yeah
<jokke> i'll make a pull request
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
<jokke> jhass: do you think it's really necessary to test whether a key needs normalization?
<jhass> yes, it can save an allocation
<jokke> i see
<jhass> and if we you use some flags you can keep it at a single iteration through the string
<jokke> mh
<jhass> needs_tr = true if str[i] == '_'
<jokke> yeah
<jhass> instead of tr('_', '-') if includes? '_'
waj has joined #crystal-lang
oleh has quit [Quit: leaving]
<BlaXpirit> jokke, it's case insensitive
<jokke> headers?
<BlaXpirit> yes
<jokke> hmm
<jhass> the RFC says so?
<jokke> Field names are case-insensitive
<jokke> yeah
<jokke> alright
<BlaXpirit> but if you're talking about accessing them, then maybe it would make sense to support all spelling
<BlaXpirit> i mean... "case-spelling" xD
<jhass> the other questions is whether all implementations respect that
<BitPuffin> Hello dom96 <3
<BlaXpirit> BitPuffin, oh he's been here for a long time, doesn't seem to say anything though
<dom96> I'm everywhere.
<BitPuffin> BlaXpirit: I know the guy
<dom96> We're BFFs
<BitPuffin> we're more than that
<dom96> shhhh, nobody is meant to know about that.
<BitPuffin> oh uh
<BitPuffin> I mean
<BitPuffin> We're BFFs!
ssvb has joined #crystal-lang
Maksatbek has quit [Ping timeout: 268 seconds]
kyrylo has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
fowlduck has joined #crystal-lang
waj has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
<crystal-gh> [crystal] jreinert opened pull request #1416: normalize dash/underscore separated http header names correctly (master...master) http://git.io/vZmNr
blue_deref has joined #crystal-lang
Ven has joined #crystal-lang
<jokke> jhass: what do you mean with looking into changing author info?
ylluminate has quit [Ping timeout: 250 seconds]
NeverDie has quit [Quit: http://radiux.io/]
ingsoc has quit [Quit: Leaving.]
ingsoc has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blassin has joined #crystal-lang
<blassin> hey!
<blassin> anyone know why the API and docs are 504'ing ?
<thor77> seems like the complete website is down
<blassin> yeah, that too
<thor77> ping says the website is hosted on github
<jhass> jokke: the email you have set is not associated with your github account
<jokke> ah
<jhass> (you can also add it in your github settings)
<jokke> yeah
<jokke> i'm on igt
<jokke> it
Ven has joined #crystal-lang
dfockler has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vZYGC
<crystal-gh> crystal/master 3a4aca0 Ary Borenszweig: Fixed #1396: Commented line inside macro raises 'unterminated macro' exception
Ven has quit [Read error: No route to host]
Ven has joined #crystal-lang
<crystal-gh> [crystal] tebakane opened pull request #1418: Add `Array#slice` and `Arrat#slice!` (master...create_slice) http://git.io/vZY8k
blassin has quit [Quit: Page closed]
dylanmei has quit [Quit: ZZZzzz…]
n0xff has quit [Ping timeout: 246 seconds]
n0xff has joined #crystal-lang
ingsoc has quit [Quit: Leaving.]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
idontcare has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/vZYiB
<crystal-gh> crystal/master ad45f9a TSUYUSATO Kitsune: Add an example file for fixing #1412
<crystal-gh> crystal/master 5db5f21 TSUYUSATO Kitsune: Fixed to prefer subcommand name over a filename
<crystal-gh> crystal/master 3ebff61 TSUYUSATO Kitsune: Added a spec for testing to prefer subcommand name over a filename
Ven has joined #crystal-lang
nakilon has quit [Ping timeout: 240 seconds]
n0xff has quit [Ping timeout: 255 seconds]
rvchangue has quit [Ping timeout: 240 seconds]
rvchangue has joined #crystal-lang
Papierkorb has joined #crystal-lang
havenwood has quit [Ping timeout: 255 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blue_deref has quit [Quit: Taking myself out of hear.]
waj_ has quit [Remote host closed the connection]
waj has joined #crystal-lang
dylanmei has joined #crystal-lang
dyulax has joined #crystal-lang
shama has joined #crystal-lang
elbow_jason has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 3 new commits to master: http://git.io/vZOei
<crystal-gh> crystal/master e6e6b12 Ryan Gonzalez: Implement JSON error messages (closes #1384)
<crystal-gh> crystal/master 8677e67 Ary Borenszweig: Merge branch 'json_err' of https://github.com/kirbyfan64/crystal
<crystal-gh> crystal/master a62e96d Ary Borenszweig: Removed `undef`
leafybasil has quit [Ping timeout: 240 seconds]
Ven has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #1025: Yield start and finish indices in Readline.autocomplete (master...enhancement/readline-autocomplete-yield-start-finish) http://git.io/vYTND
waterlink has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
BlaXpirit has joined #crystal-lang
qard has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke> jhass: any ideas why the specs are failing?
<jhass> I didn't look at it in detail yet, sorry
<jokke> ok
<jokke> np
havenwood has joined #crystal-lang
Ven has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 264 seconds]
waj has quit [Remote host closed the connection]
<Papierkorb> Thinking about it, how does Crystal handle reopening a class and overriding some method under the hood?
<Papierkorb> is it basically replaced in the output after some static analysis found the 'last' defintion?
<BlaXpirit> Papierkorb, why would it be replaced directly in the output
<Papierkorb> BlaXpirit: not in the output of the program, but in the "output" given to LLVM or something
<BlaXpirit> compiler can just remember "method under the name blah is located here", then reopening makes it remember some other thing instead
<BlaXpirit> whether it is done directly on source code or some intermediate step is not so important
<Papierkorb> k
<Papierkorb> thanks
<jhass> Papierkorb: it builds the full AST before codegen
waj has joined #crystal-lang
<jhass> then does semantic checks type inference on the AST, that includes throwing out overriden methods etc
<jhass> semantics checks and type inference
<jhass> then uses that transformed AST for codegen (generating LLVM IR)
<jhass> Papierkorb: you can see the phases sort of by passing --stats
<Papierkorb> What's the vagrant and docker stuff about in the git? Build machine?
<jhass> not sure if anybody really uses that tbh :P
<BlaXpirit> well i think there can be only one kind of "vagrant stuff" - a way to build a VM with crystal on it
<jhass> the two main devs are on OS X, so perhaps they do debug on linux
<jhass> with that
<jhass> but the releases are cut with manastech/omnibus-crystal
<Papierkorb> oh how cool is that, RSpec alike syntax. Is the 'new' syntax also supported? The 'expect(foo).to .."
<jhass> and the docker containers running on travis from jhass/crystal-build ;)
<jhass> no :/
<BlaXpirit> Papierkorb, that's not cool. this is. https://github.com/rosylilly/power_assert.cr
<Papierkorb> BlaXpirit: trust me, after years of C++ and Java unit tests, RSpec *is* really cool :)
<Papierkorb> BlaXpirit: wat
<BlaXpirit> Papierkorb, you don't need to learn a weird "testing language"
<BlaXpirit> you just write assert expectation
<BlaXpirit> and get same or better results
<Papierkorb> tbh I really enjoy the expect() stuff. It also makes mocking the same as any other expectation. also generates code that's actually "readable" in terms of being almost human language
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vZO0l
<crystal-gh> crystal/master 9be9778 Ary Borenszweig: Fixed a bug where a type wasn't correctly found in a macro def
<crystal-gh> crystal/master 1174565 Ary Borenszweig: Expand array literals to `Array.build(capacity) { |buffer| .. }` so we can make `length=` protected
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<BlaXpirit> in my opinion, minitest is a big step behind
<BlaXpirit> Papierkorb, i guess you would also like to write a.equals b instead of a == b in normal code :|
<Papierkorb> BlaXpirit: No.
<slash_nick> BlaXpirit: i didn't much like minitest's mocks at first... i'm pretty indifferent now though
<Papierkorb> BlaXpirit: That "foo".equals(bar) stuff Java does is horrific and a language defect to me
<BlaXpirit> Papierkorb, well that's what RSpec is all about, as well
BitPuffin has quit [Ping timeout: 244 seconds]
<BlaXpirit> they had to invent a domain-specific language because there was no other way
<BlaXpirit> but willingly embracing it when there are better alternatives?
qard has quit [Ping timeout: 264 seconds]
qard has joined #crystal-lang
elbow_jason has quit [Remote host closed the connection]
kulelu88 has joined #crystal-lang
trapped has joined #crystal-lang
NeverDie has quit [Quit: http://radiux.io/]
NeverDie has joined #crystal-lang
havenwood has quit [Ping timeout: 244 seconds]
havenwood has joined #crystal-lang
dylanmei has quit [Ping timeout: 256 seconds]
qard has quit [Quit: Textual IRC Client: www.textualapp.com]
<Papierkorb> What documentation 'format' is used? RDoc?
<BlaXpirit> Papierkorb, i'm not sure i understand you correctly
<BlaXpirit> there doesn't seem to be any format, just Markdown
<Papierkorb> That's basically what I wanted to know BlaXpirit :)
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 244 seconds]
NeverDie has quit [Quit: http://radiux.io/]
n0xff has joined #crystal-lang
<Kilo`byte> so apparently compiling crystal takes > 2 gig of ram
<Kilo`byte> because the compile died with "Cannot allocate memory" during compiling itself
<Kilo`byte> on a 2 gig bo
<Kilo`byte> x
<jhass> yeah :/
<jhass> it's in the llvm codegen phase from my checks, so not sure we can do much about it :/
<Kilo`byte> meh
<Kilo`byte> added 5 gig of swap to the mix
shadeslayer has quit [Ping timeout: 250 seconds]
<adam12> heh
dfockler has quit [Remote host closed the connection]
shadeslayer has joined #crystal-lang
qard has joined #crystal-lang
nakilon has joined #crystal-lang
nakilon has quit [Ping timeout: 264 seconds]
trapped has quit [Read error: Connection reset by peer]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
dfockler has joined #crystal-lang
jmg_ has joined #crystal-lang
jmg_ has quit [Client Quit]
jmg_ has joined #crystal-lang
leafybasil has joined #crystal-lang
<asterite> jhass: I have a commit that removes "length" and "count" in favor of "size"
<asterite> waj already agreed. If you too, I'll push it
<asterite> We expect this to break every code in existence, but the fix should be pretty simple
<asterite> And the sooner we do this, the better
<jhass> sure
<jhass> do you also rename instance variables and such?
<asterite> Yes, except in String because that's hardcoded in the compiler. For this we'll have to make an intermediate release
<asterite> I also keep the "length" macro method for now because otherwise the current code stops compiling. But we can remove it in that intermediate release too
<asterite> And unfortunately we can't the "Content-length" header to "Content-size"
<asterite> * can't change
<jhass> heh, yeah
<jhass> but HTTP is broken anyway, I mean "Referer" ;)
<asterite> :)
<dyulax> hahaha
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vZ3Bd
<crystal-gh> crystal/master baf1855 Ary Borenszweig: Fixed #1363: removed `length` and `count` (without block) methods in favor of a single `size` method.
Ven has joined #crystal-lang
dyulax93 has joined #crystal-lang
endou_ has joined #crystal-lang
jhass|off has joined #crystal-lang
jhass has quit [Excess Flood]
endou has quit [Read error: Connection reset by peer]
jhass|off is now known as jhass
emmanueloga has quit [Ping timeout: 252 seconds]
dyulax has quit [Ping timeout: 252 seconds]
emmanueloga has joined #crystal-lang
<jmg_> Might be approaching this from the wrong angle- Trying to get the JSON response into one of two classes for later processing http://play.crystal-lang.org/#/r/eem
<travis-ci> manastech/crystal#baf1855 (master - Fixed #1363: removed `length` and `count` (without block) methods in favor of a single `size` method.): The build passed. https://travis-ci.org/manastech/crystal/builds/79361482
<jhass> mmh, it shouldn't segfault
<jhass> asterite: ^
nakilon has joined #crystal-lang
<jhass> jmg_: but it won't work that way anyway. Don't you have a response code on which you can decide?
<jmg_> jhass: In this particular case I do; however, I'm curious if there is a way of handling this if there wasn't one.
<jhass> JSON.parse and guessing with .is_a?'s
<jhass> then reparsing into the mappings
<jmg_> Hmm, ok. Any thoughts on implementing a 'from_json?' that throws a nil instead of an exception?
<asterite> Ah, yes
<asterite> But we'll probably remove the ability to invoke methods on union classes, so that will stop compiling
<asterite> I think that "feature" was a mistake
<jhass> :/
<jhass> stuff like to_s and .inspect is certainly useful
vikaton has quit [Quit: Connection closed for inactivity]
<jhass> I also very much like being able to sort of compose without having to introduce common ancestors
<asterite> Oh, that'll work because a union class extends from Class... somehow
<asterite> it's just that you won't be able to invoke, say, `zero` on the class (Int32 | Int64)
<jhass> which is finicky to deal with anyway
<jhass> having to cast stuff so you can pass to things expecting the superclass, the covariance stuff and all that madness
<jhass> would really hate to see that go
<jhass> I don't quite follow why it's so much of a trouble, isn't it just building a small runtime dispatch and packing the return value into the union again?
tomchapin has joined #crystal-lang
<BlaXpirit> asterite, i hope you mean disabling only class methods, not instance methods
<jhass> oh wait, or am I confusing that with invoking stuff on an instance of a union vs the union itself right now, sigh
<BlaXpirit> jhass, probably. but it tripped me up as well
<jhass> yeah, I'm still tired I guess m(
<BlaXpirit> doing this to instance methods would instantly make the language garbage
<BlaXpirit> >> (Int32 | Int64).zero
<DeBot> BlaXpirit: Error in line 4: undefined method '|' for Int32:Class - http://carc.in/#/r/eex
<BlaXpirit> oh yeah, this change totally makes sense
<BlaXpirit> >> a = true ? 5i32 : 3i64; typeof(a).zero.class
<DeBot> BlaXpirit: # => Int32 - http://carc.in/#/r/ef4
<BlaXpirit> >> a = true ? 5i64 : 3i32; typeof(a).zero.class
<DeBot> BlaXpirit: # => Int64 - http://carc.in/#/r/ef5
<BlaXpirit> asterite, the name "size" is confusing
<BlaXpirit> it could mean byte size, dimensions or anything
<jhass> so could length?
<BlaXpirit> "я".size
<BlaXpirit> >> "я".size
<DeBot> BlaXpirit: # => 1 - http://carc.in/#/r/ef6
<BlaXpirit> i've been using length exclusively
<jhass> Ruby's about 65/45 towards size IMO
<jhass> it's easier to pronounce and type
<jhass> and we want to reduce if not completely drop aliases
<jhass> that'll always make somebody unhappy, but in the end it's better than having the community fighting about which one to use
<avdi> By habit I go for #size in ruby, but I tend to agree that it's a more ambiguous word. Then again, I'm a fan of ambiguity in some contexts.
<jhass> the "just use what you prefer" doesn't work :P
<avdi> But I gotta say I *love* the aliases in Ruby. I think that's one of the things that makes the language special.
<avdi> jhass: doesn't work in what sense?
<jhass> I mean people will fight over it when both exist
<jhass> they won't just let the other side have the other opinion :P
<avdi> People will always fight. You can't stop that.
<avdi> I've the Ruby community to be quite accepting of differing styles, by and large.
<BlaXpirit> jhass, u got 110% there btw
<jhass> yeah, but reduce the pointless ones by just removing them
<BlaXpirit> i would definitely keep only length
<jhass> and change to bytelength ?
<jhass> idk, it's pointless really, we went with size, deal with it IMO
<BlaXpirit> eh the fact that "bytesize" is the common name for byte size makes me reconsider
<jhass> I'd made a sadface if it had become length and moved on
<avdi> jhass: a gentle nudge - saying something is "pointless" can be very antagonizing because it suggests other people's opinions have no merit at all.
<jhass> sorry if it came across that way. I'm saying my own opinion about it is as pointless as anybody else's
blue_deref has joined #crystal-lang
<jhass> it's personal preference, everybody has their own. We want to get rid of the aliases so we have to pick one. size got the majority and any other discussion about it is IMO pointless
<avdi> jhass: sure :-) I just noticed you said it twice in a row to two different people, and sometimes these things come across differently than intended.
<avdi> jhass: somewhere there's probable someone who thinks that discussing it more is important, and not pointless at all. It sounds like what you mean is that it has been settled, and more discussion won't change it - is that accurate?
<jhass> actually not, nobody spoke up in favor of length with any attempt at objective reasoning: https://github.com/manastech/crystal/issues/1363
<jhass> I completely categorized the issue under personal preference, thus voting about it is the only sane way to achieve consensus
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tatey_ has joined #crystal-lang
fowlduck has joined #crystal-lang
jmg_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jmg_ has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
jmg_ has quit [Client Quit]
NeverDie has joined #crystal-lang
havenwood has quit [Ping timeout: 240 seconds]
NeverDie has quit [Client Quit]
havenwood has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
waj has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
dfockler has quit [Remote host closed the connection]
NeverDie has joined #crystal-lang
dfockler has joined #crystal-lang
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfockler has quit [Ping timeout: 255 seconds]
fowlduck has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
dylanmei has joined #crystal-lang
vegai has quit [Ping timeout: 246 seconds]
blue_deref has quit [Quit: Taking myself out of hear.]
vegai has joined #crystal-lang
havenwood has quit [Ping timeout: 265 seconds]
trapped has joined #crystal-lang
waj_ has quit [Ping timeout: 240 seconds]
<crystal-gh> [crystal] will opened pull request #1421: Benchmark::IPS bugfix and better comparison alignment (master...benchmark-ips-formatting-2) http://git.io/vZsIV
waj has joined #crystal-lang
waj has quit [Remote host closed the connection]
waj has joined #crystal-lang
waj_ has joined #crystal-lang
waj has quit [Read error: Connection reset by peer]