RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.1 | Fund Crystal's 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
<travis-ci> crystal-lang/crystal#5818369 (master - Add missing --no-color option to spec and eval command): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183392522
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
z64 has joined #crystal-lang
<maxpowa> Question: how would I use setlocale(3) from crystal, would it be part of "LibC" or would I need to bind it myself?
<travis-ci> crystal-lang/crystal#c5e1388 (master - make builds cross compile to correct target if using the llvm triple (--target) x86_64-apple-darwin16.1.0 which my sierra box with llvm 3.9 advertises): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183392823
<FromGitter> <bcardiff> @maxpowa you would need to bind for the time being.
<maxpowa> Ok, thanks.
<FromGitter> <bcardiff> it should be part, definitely. But to not block you I suggest binding, wrap and make a nice api for locales :-)
<maxpowa> Hweh I dont hate myself quite enough for that :P Honestly I just need it in order to make a curses binding work with unicode :V
A124 has quit [Ping timeout: 248 seconds]
A124 has joined #crystal-lang
<FromGitter> <bcardiff> je.. bind and hack the needed value then :sparkles:
<travis-ci> crystal-lang/crystal#898a7ee (master - Fixes #3547; as call with implicit receiver when invoked as a parameter to a method call): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183394611
<crystal-gh> [crystal] dylandrop opened pull request #3683: Add documentation to the HTML module (master...add-documentation-to-html) https://git.io/v1ipK
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
mgarciaisaia has quit [Quit: Leaving.]
mooe has quit [Quit: Connection closed for inactivity]
<travis-ci> crystal-lang/crystal#9b2d75e (master - optimize rehash method): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183407103
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 252 seconds]
snsei has joined #crystal-lang
ome has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
pduncan has quit [Ping timeout: 258 seconds]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
pduncan has joined #crystal-lang
<travis-ci> crystal-lang/crystal#33af503 (master - Compiler: inline instance var getters in debug mode. Fixes #3644 . Fixes #3679): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183424074
greengriminal has quit [Quit: This computer has gone to sleep]
vikaton has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #3685: Improve Makefile to hack crystal (master...fix/makefile) https://git.io/v1Pku
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mgarciaisaia has quit [Ping timeout: 240 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 256 seconds]
mgarciaisaia has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 245 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ome has quit [Quit: Connection closed for inactivity]
vivus-ignis has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
pawnbox has joined #crystal-lang
snsei has quit [Ping timeout: 248 seconds]
soveran has joined #crystal-lang
pawnbox has quit [Ping timeout: 268 seconds]
soveran has quit [Ping timeout: 252 seconds]
pawnbox has joined #crystal-lang
lacour has quit [Quit: Leaving]
soveran has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 252 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 256 seconds]
mark_66 has joined #crystal-lang
gewo has quit [Quit: WeeChat 1.0.1]
DeBot has joined #crystal-lang
gewo has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
olbat has joined #crystal-lang
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
ponga has joined #crystal-lang
gloscombe has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
bjz has joined #crystal-lang
pawnbox has joined #crystal-lang
akwiatkowski has joined #crystal-lang
<crystal-gh> [crystal] akwiatkowski closed pull request #3657: [WIP] Adds refered links to Markdown (master...markdown) https://git.io/v12c0
<crystal-gh> [crystal] akwiatkowski opened pull request #3686: Adds refered links to Markdown (master...feature/markdown) https://git.io/v1PVL
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
crystalmq has joined #crystal-lang
crystalmq has quit [Client Quit]
bjz has quit [Ping timeout: 268 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
bjz_ has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 256 seconds]
soveran has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
greengriminal has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 245 seconds]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
<akwiatkowski> I have managed to add referenced links to crystal markdown :) PR tests passed
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
bjz_ has quit [Ping timeout: 246 seconds]
bjz has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
akwiatkowski has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/v1P5k
<crystal-gh> crystal/master 9634fc4 Ary Borenszweig: Debug: add missing debug location. Fixes #3584
<crystal-gh> crystal/master 7a0a677 Ary Borenszweig: Macros: forward magic constant location
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1P58
<crystal-gh> crystal/master 9d2deee Ary Borenszweig: Fixed #3684: redefine Channel#pretty_print to avoid using uninitialized variable
Philpax has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
<crystal-gh> [crystal] asterite closed pull request #3651: Add --time flag to show real execution time of crystal run (master...feature/time-flag) https://git.io/v1ukM
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 248 seconds]
<travis-ci> crystal-lang/crystal#9d2deee (master - Fixed #3684: redefine Channel#pretty_print to avoid using uninitialized variable): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183579870
<DeBot> https://github.com/crystal-lang/crystal/issues/3684 (segfault channel inspect)
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1PxP
<crystal-gh> crystal/master 2d86bd1 TSUYUSATO Kitsune: Improve Makefile to hack crystal...
Ven has joined #crystal-lang
greengriminal has joined #crystal-lang
greengriminal has quit [Client Quit]
<travis-ci> crystal-lang/crystal#9634fc4 (master - Debug: add missing debug location. Fixes #3584): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183579316
<DeBot> https://github.com/crystal-lang/crystal/issues/3584 (crystal 0.20.0 Module validation failed)
<jsaak> do crystal heave a lib to handle cpu intensive load, a work queue with threads for example?
<jsaak> or can i implement it using thread pools?
<BlaXpirit> jsaak, there's no official way right now, it's a work in progress
<BlaXpirit> meanwhile you can hack up something of your own, keeping in mind not to use almost any of the standard library inside other threads
<Yxhuvud> you can always fork.
<Yxhuvud> and multireadable sockets
<Yxhuvud> or use sidekiq or whatever
soveran has quit [Remote host closed the connection]
<jsaak> thanks, i better not use external programs, since threads and channels should be sufficient
<BlaXpirit> jsaak, but channels don't work with threads
<BlaXpirit> also worth mentioning explicitly: you can't allocate `class`es in other threads
<BlaXpirit> only use pre-allocated memory or `struct`s
<jsaak> aham
<jsaak> but eventually channels and threads WILL be the way no?
<jsaak> in crystal 1.0
<BlaXpirit> not exactly but yes
<BlaXpirit> idea is you won't start your own OS threads but use a global thread pool
<crystal-gh> [crystal] asterite closed pull request #3675: Add documentation to Array#pop (master...add-documentation-to-pop) https://git.io/v1KnH
<crystal-gh> [crystal] asterite closed pull request #3660: Tiny refactor of method_missing definition (master...gh/refactor-mm) https://git.io/v1VED
<jsaak> i would love to implement it ... Go raise some money :)
<travis-ci> crystal-lang/crystal#4336aab (master - Add --time flag): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183587002
<FromGitter> <splattael> Is anyone using GitLab CI to run tests for crystal repo itself? Sometimes, I use a GitLab CI instead of waiting for Travis to pick-up.
<FromGitter> <splattael> Is it feasible to provide a `.gitlab-ci.yml` to crystal repo (next to `.travis.yml`)?
<FromGitter> <splattael> If anyone is interested: https://gist.github.com/splattael/71ace5a673a27f5cf28d63c9a1570e2a
<FromGitter> <splattael> It's pretty the same what Travis is doing but only for Linux (no Darwin).
<FromGitter> <splattael> @asterite Would you mind having a `.gitlab-ci.yml` checked into Crystal repo?
<travis-ci> crystal-lang/crystal#2d86bd1 (master - Improve Makefile to hack crystal): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183593691
soveran has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 246 seconds]
<FromGitter> <asterite> I'd prefer to use either CI, probably circle is a bit better... I wouldn't use both at the same time
soveran has quit [Ping timeout: 250 seconds]
<FromGitter> <splattael> @asterite Ok, but would you mind to have a `.gitlab-ci.yml` checked in although it is not used by the repo? ...only used by others (like me) :P
<travis-ci> crystal-lang/crystal#0f4bdc1 (master - Add documentation to Array#pop): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183608518
<crystal-gh> [crystal] asterite closed pull request #745: Reduce threads spawned for codegen (master...reduce-forking) https://git.io/v1Xsz
<crystal-gh> [crystal] asterite closed pull request #1834: Improve docs (master...improve-docs) https://git.io/v1XsF
mgarciaisaia has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#278ffff (master - Tiny refactor of method_missing definition): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183608607
<Papierkorb> Btw, how expensive is a Channel and a Channel::Buffered? How much memory does it consume?
sp4rrow has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
ponga has quit []
vivus-ignis has joined #crystal-lang
hako_ has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
pduncan has quit [Ping timeout: 240 seconds]
<BlaXpirit> >> {instance_sizeof(Channel(String)), instance_sizeof(Channel::Buffered(String))
<DeBot> BlaXpirit: Syntax error in eval:22: expecting token '}', not 'end' - https://carc.in/#/r/1g3e
<BlaXpirit> >> {instance_sizeof(Channel(String)), instance_sizeof(Channel::Buffered(String))}
<DeBot> BlaXpirit: in line 4: can't execute OpAssign in a macro - https://carc.in/#/r/1g3f
<BlaXpirit> ok then
<BlaXpirit> well the difference between those is just an array
<BlaXpirit> hard to say if the memory size of the channel instance itself is all there is to it, may be some reference to it in the event loop or whatever
<BlaXpirit> but i'd say it's almost never worth even considering the memory consumption of these
<FromGitter> <johnjansen> Anyone know off the top of their head how to post binary data with Http::Client that would like to save me some time :-)
<RX14> you can use an IO, slice or string as a body
<RX14> see BodyType here: https://crystal-lang.org/api/0.20.1/HTTP/Client.html#post%28url%3AString%7CURI%2Cheaders%3AHTTP%3A%3AHeaders%3F%3Dnil%2Cbody%3ABodyType%3Dnil%2Ctls%3Dnil%2C%26block%29-class-method
sp4rrow has joined #crystal-lang
<FromGitter> <johnjansen> ahhh magic … thanks @RX14
soveran has quit [Remote host closed the connection]
hako_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<sp4rrow> can you make an ios app with crystal
<RX14> sp4rrow, no
<sp4rrow> ok thanks
pawnbox has quit [Ping timeout: 260 seconds]
<FromGitter> <david50407> @splattael cool, thx
sp4rrow has quit [Quit: Textual]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
sp4rrow has joined #crystal-lang
soveran_ has joined #crystal-lang
vivus-ignis has quit [Ping timeout: 260 seconds]
soveran has quit [Ping timeout: 252 seconds]
<FromGitter> <drosehn> http://www.rubymotion.com -- @sp4rrow , you might want to check rubymotion for making iOS apps
gloscombe has quit [Remote host closed the connection]
akwiatkowski has joined #crystal-lang
<FromGitter> <crisward> Does anyone know if puts has a max length - seems to stop at 1024 characters?
<sp4rrow> @drosehn thanks :)
<FromGitter> <drosehn> Hmm. I used `puts` to print out a string which was 2600 characters.
<BlaXpirit> crisward, no it doesnt stop -_- do you have anything to back up your claim?
<FromGitter> <crisward> I'm trying to read some post data from http, I'm using puts to output it. If I use `puts str` it outputs a string which is 1024 in length. If I user `puts str.size` I get 1235, which is the length of the string. Not sure if its because the source is IO. Using `ctx.request.body.not_nil!.gets_to_end` to get string.
pawnbox has joined #crystal-lang
vivus-ignis has joined #crystal-lang
tankfeeder has joined #crystal-lang
<tankfeeder> hi all
<tankfeeder> any russians?
<tankfeeder> typo in docs
<RX14> tankfeeder, I think this is what you want https://github.com/crystal-lang-ru/crystal-lang-ru.github.io
<tankfeeder> yea, but too lazy
<tankfeeder> just want notify, trivial
<tankfeeder> :)
<RX14> so just make an issue, you could have done it by now.
<tankfeeder> done
<tankfeeder> thanks
<tankfeeder> see you
tankfeeder has left #crystal-lang ["Leaving"]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1XhY
<crystal-gh> crystal/master 51e2e76 Dylan Drop: Add documentation to the HTML module
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1Xh4
<crystal-gh> crystal/master d7de3a1 RX14: Fix file spec when HOME ends with /
mgarciaisaia has quit [Quit: Leaving.]
Raimondi has quit [Ping timeout: 244 seconds]
Raimondi has joined #crystal-lang
<FromGitter> <sdogruyol> @RX14 this must be interesting for you https://github.com/crystal-lang/crystal-db/pull/27
<FromGitter> <spalladino> @sdogruyol @RX14 you're welcome to comment on https://github.com/crystal-lang/crystal-db/pull/27#discussion_r92261348. We spent quite some time discussing it with @bcardiff and couldn't reach an agreement.
<FromGitter> <sdogruyol> @spalladino thanks i think @RX14 is more knowledgeabla than me for this
<RX14> I would add unless closed?
<RX14> actually what happens if the underlying connection closes
vivus-ignis has quit [Ping timeout: 245 seconds]
<FromGitter> <spalladino> Most likely you'll get an error from the db driver on the very next command you issue (in this case, would be `tx.rollback`)
<FromGitter> <spalladino> Note that `tx.closed?` does not need a database cmd, it's state stored within the Transaction object
<RX14> yeah
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
soveran_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#51e2e76 (master - Add documentation to the HTML module): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183710121
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<akwiatkowski> I'd need review about the way I implement referenced links in markdown at https://github.com/crystal-lang/crystal/pull/3686/files#diff-c88310ec955f9c0ae370991a33aed7bfR22
sp4rrow has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
sp4rrow has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v11zL
<crystal-gh> crystal/master ddc61d7 Ary Borenszweig: Regex: minor doc fixes. Fixes #3155
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
<RX14> https://crystal-ci.rx14.co.uk/ well it's something
soveran has joined #crystal-lang