NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<vegai>
hmm, the nim language comes with in interpreter
<vegai>
I wonder how they manage it
<vegai>
well ok, it's not very flexible in the python sense either
<vegai>
so now I've been toying around with the idea of porting crystal to another architecture (ARM)
<vegai>
which makes me wonder... how would I port to a different OS?
<vegai>
I cannot just crosscompile from Linux to FreeBSD, can I?
sdogruyol has quit [Remote host closed the connection]
sdogruyol has joined #crystal-lang
<benner>
vegai: I think you can
BlaXpirit has joined #crystal-lang
<vegai>
oh :) well ok
<BlaXpirit>
how to stream a file through http?
<vegai>
benner: actually, perhaps it's not even needed, since freebsd should be able to run linux binaries
<vegai>
unless crystal does something exotic enough that that's not possible
sdogruyol has quit [Remote host closed the connection]
sdogruyol has joined #crystal-lang
tatey_ has quit []
sdogruyol has quit [Remote host closed the connection]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sdogruyol has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
sdogruyol has joined #crystal-lang
wanderer_ has joined #crystal-lang
<Netfeed>
BlaXpirit: @body is an io stream so it should be pretty easy i think
<BlaXpirit>
Netfeed, yeah, that's what i thought
<Netfeed>
@body_io even
<BlaXpirit>
but it's too early for me to stream from http. i still need to learn to stream from a file. my stuff is broken :(
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
<BlaXpirit>
hm actually it's probably crystal's File that's broken. costed me 2 hours of debugging
<BlaXpirit>
must be the buffering asterite mentioned
<BlaXpirit>
reading bytes at the beginning of the file and seeking to 0 then reading bytes gives different results
Ven has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
<BlaXpirit>
I don't know what can even be done here
leafybasil has joined #crystal-lang
<BlaXpirit>
appears that sync= has no effect?
<BlaXpirit>
it only affects output buffering
kyrylo has joined #crystal-lang
<crystal-gh>
[crystal] BlaXpirit opened pull request #1307: Make BufferedIO#read respect the sync attribute (master...sync-unbuffered-read) http://git.io/vGtGy
<BlaXpirit>
welp, Netfeed, that is not streaming
ssvb has joined #crystal-lang
<Netfeed>
no?
<BlaXpirit>
Netfeed, HTTP::Client.get by itself downloads the whole thing
<Netfeed>
oh, i thought you meant the server
<BlaXpirit>
right... sorry
trapped has joined #crystal-lang
<RX14>
Kilo`byte, still working on the ircd?
ytti has quit [*.net *.split]
zz_Cidan has quit [*.net *.split]
tliff has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
maxdeviant has quit [*.net *.split]
maxdeviant has joined #crystal-lang
ytti has joined #crystal-lang
zz_Cidan has joined #crystal-lang
Kilo`byte has joined #crystal-lang
tliff has joined #crystal-lang
zz_Cidan has quit [*.net *.split]
tliff has quit [*.net *.split]
Kilo`byte has quit [*.net *.split]
<dzv>
blaxpirit: are you giving strings, slices and structs a .bytesize?
<BlaXpirit>
dzv, i'm not doing anything for now
<BlaXpirit>
and no, that is not what i meant
tliff has joined #crystal-lang
Kilo`byte has joined #crystal-lang
zz_Cidan has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zamith has joined #crystal-lang
zamith_ has joined #crystal-lang
zamith has quit [Read error: Connection reset by peer]
blue_deref has joined #crystal-lang
dyulax has joined #crystal-lang
<dyulax>
Hello guys
<dyulax>
Where can I find documentation for "crystal spec" methods?
<dyulax>
SomeLength.length is returning 3 in the example because if any method from Items class is called, it will fail
<BlaXpirit>
I don't understand, dyulax
<jhass>
dyulax: if the class/module you're extending defines class methods, you can just call them as you were calling instance methods after being included
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/vGmkL
<crystal-gh>
crystal/master 6cf0ebc Ary Borenszweig: OffT is SSizeT, not SizeT. Added error checks to FileDescriptorIO's seek and tell, and change seek argument to be an enum
Ven has joined #crystal-lang
havenwood has joined #crystal-lang
<travis-ci>
manastech/crystal#6cf0ebc (master - OffT is SSizeT, not SizeT. Added error checks to FileDescriptorIO's seek and tell, and change seek argument to be an enum): The build passed. https://travis-ci.org/manastech/crystal/builds/77682133
zamith_ has quit [Ping timeout: 265 seconds]
<crystal-gh>
[crystal] asterite pushed 4 new commits to master: http://git.io/vGm3Z
<jhass>
asterite and waj have mail addresses on the GH profiles, I'd hit those for now
<jhass>
I don't think it's something we need to ultimately address before 1.0 :)
dylanmei has quit [Quit: ZZZzzz…]
<sferik>
jhass: thanks…I hope no one running Crystal in production is affected by this issue
dylanmei has joined #crystal-lang
<sferik>
jhass: but just to be safe, I think this patch should be merged and released as soon as possible
<jhass>
well, not on me ;)
<sferik>
jhass: because it is now public, so people may be vulnerable
<sferik>
asterite, waj: ^^
<jhass>
you heard of anybody using Crystal in a place where it would matter though?
<sferik>
jhass: no…but the point is we have no idea
<sferik>
jhass: people using Crystal in high-security settings are more likely to be silent about their use
dylanmei has quit [Quit: ZZZzzz…]
<crystal-gh>
[crystal] jhass opened pull request #1314: Raise Errno when failing to allocate a new fiber stack (master...fiber_allocate_error) http://git.io/vGYu0
wanderer_ has joined #crystal-lang
shama has joined #crystal-lang
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/vGYgI
<crystal-gh>
crystal/master 166eddd Ary Borenszweig: Fixed #1289: URI.parse failures with URL encoded characters in pathname
<miah>
good set of gpg tips. mine is totally expired right now =)
<jhass>
I do like associating keys with better/easier to validate identities though
<jhass>
people have shown that it's fairly easy to setup a keyserver that replicates the current state with fake keys
<jhass>
DNS poison the victim with such and you have a MITM
DeBot has quit [Ping timeout: 250 seconds]
<crystal-gh>
[crystal] lbguilherme opened pull request #1315: HTTP::Response should handle a body without content-length (master...httpresp) http://git.io/vGYSF
<miah>
indeed
<dyulax>
is there any way to generate test coverage reports?
<dyulax>
i will be glad if someone can take a look and share one's thoughts
<jhass>
interesting
<dyulax>
I am new to crystal and compiled languages, so i am doing my best and trying to learn while I do
<dyulax>
;-)
<jhass>
mmh, not sure about the last roadmap point, the rails community is phasing the usage of those out
<dyulax>
didn't know... i will consider that
leafybasil has joined #crystal-lang
<jhass>
validate could probably be written with two nested all?'s
<asterite>
BlaXpirit: I'm curious why you think the IO hierarchy is weird
<BlaXpirit>
asterite, eh with duck typing i don't really care
<BlaXpirit>
i just wish StringIO (and possibly others) could behave like a file
<BlaXpirit>
i.. have `size`, `tell`, `seek` and whatnot
<BlaXpirit>
^i.e.
<asterite>
Oh, that. Yes, we can probably do that, it's just missing those methods. In fact it would be good to have those because StringIO could be a perfect mock for tests
* [spoiler]
sends out kisses for ditching Nil#to_i
<BlaXpirit>
asterite, should i do a pull request?
<asterite>
spoiler: lol. I didn't think someone would like that change
<BlaXpirit>
i think it is not much work at all
<asterite>
BlaXpirit: of course! Sounds like fun (I was about to start doing it), and it's also very testeable
<BlaXpirit>
asterite, if u were about to start doing it then go ahead
<BlaXpirit>
i'm not in the mood for writing tests
<BlaXpirit>
:/
<asterite>
lol
<BlaXpirit>
i never am :/
<asterite>
then how will you know it works?
<asterite>
dyulax: note that `@@validators ||= {} of Symbol => Array` doesn't compile anymore, you can't have a Hash of all Arrays in the world
<asterite>
you can probably do Array(Validator) and make Validator a module, for example, or a base abstract class
<dyulax>
thank you asterite
<dyulax>
didn't notice that
<dyulax>
is there a way to create an alias to "ActiveModel::Validators::PresenceValidator" so I don't have to put this entire path everytime I use it in the same module?
<crystal-gh>
[crystal] jhass closed pull request #999: Channel.select accepts an array of channels too (master...channel_select) http://git.io/vmXXZ
NeverDie has joined #crystal-lang
wanderer_ has quit [Ping timeout: 246 seconds]
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
orliesaurus has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
luislavena has quit []
shevy has joined #crystal-lang
waj has quit [Remote host closed the connection]
<shevy>
tada \o/
<shevy>
this time I am not going to ask why there is the -lang part of the channel :)
<jhass>
only next time again, gotcha
<shevy>
may well happen but I guess I may eventually adapt
<shevy>
just wait until you are +15 years old jhass!
<jhass>
I wish I could
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
<jhass>
so, how's your crystal going?
<shevy>
dunno yet, I have this weekend... I first have to do some other things, one is to read some boring biochemistry stuff ... then I'll resume past the hello world stage