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
soveran has quit [Ping timeout: 252 seconds]
<travis-ci> crystal-lang/crystal#ddc61d7 (master - Regex: minor doc fixes. Fixes #3155): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183761683
<DeBot> https://github.com/crystal-lang/crystal/issues/3155 (Documentation of Regex.new)
elia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
matp_ has joined #crystal-lang
matp has quit [Ping timeout: 258 seconds]
akwiatkowski has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <jots_twitter> How to set class variables? This is giving me an error and don't know why: https://play.crystal-lang.org/#/r/1g5d
<FromGitter> <fridgerator> If you move the `@@servers` definition out of the class method it works : https://play.crystal-lang.org/#/r/1g5e
<FromGitter> <fridgerator> I guess if you instantiate a class variable inside of a class method, it is also nillable
<FromGitter> <jots_twitter> thanks @fridgerator that works. I wonder if it's a bug or supposed to work like that.
pawnbox has joined #crystal-lang
matp_ is now known as matp
soveran has joined #crystal-lang
<FromGitter> <piyush_ranjan_twitter> Any libraries for GUI in crystal ?
soveran has quit [Ping timeout: 250 seconds]
<bmcginty> There's bindings for curses, if you are okay with console...
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
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
bjz has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
mark_66 has joined #crystal-lang
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
<RX14> there's libui bindings
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
akwiatkowski has joined #crystal-lang
hako has joined #crystal-lang
hako_ has joined #crystal-lang
hako has quit [Ping timeout: 250 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
hako_ has quit [Remote host closed the connection]
hako_ has joined #crystal-lang
sagax has joined #crystal-lang
<sagax> hi all!
Ven has joined #crystal-lang
<sagax> vim editor can showing crystal syntax?
gloscombe has joined #crystal-lang
optikfluffel has joined #crystal-lang
vivus-ignis has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
vivus-ignis has quit [Ping timeout: 240 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
optikfluffel has joined #crystal-lang
Philpax has quit [Ping timeout: 248 seconds]
ponga has joined #crystal-lang
dhk has joined #crystal-lang
dhk has quit [Max SendQ exceeded]
dhk has joined #crystal-lang
dhk has quit [Max SendQ exceeded]
elia has joined #crystal-lang
dhk has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
optikfluffel_ has joined #crystal-lang
optikfluffel_ has left #crystal-lang [#crystal-lang]
optikfluffel has quit [Ping timeout: 258 seconds]
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v1MXl
<crystal-gh> crystal/master a8fbc2d Ary Borenszweig: Compiler: add primitive to get a class' instance type id...
sp4rrow has joined #crystal-lang
<FromGitter> <taylorfinnell> hey all, am I correct in saying that `URI` does not support https://tools.ietf.org/html/rfc3986#section-6.2.2
p0p0pr37 has quit [Read error: Connection reset by peer]
p0p0pr37 has joined #crystal-lang
<RX14> looks like it doesn't
<RX14> youc an always test that
dhk has quit [Quit: Leaving]
<travis-ci> crystal-lang/crystal#a8fbc2d (master - Compiler: add primitive to get a class' instance type id): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/183937785
<FromGitter> <taylorfinnell> yea confirmed it does not, thanks
<FromGitter> <taylorfinnell> wonder if that would be tricky to fix, i will take a peek
<RX14> it shouldn't be too hard
<RX14> there's FS path normalization that you can probably reuse
<FromGitter> <taylorfinnell> thanks, will look for that
<FromGitter> <taylorfinnell> excellent
<RX14> you might end up copy/pasting it to make it work in path
<RX14> but thats fine
<RX14> s/path/URI
<crystal-gh> [crystal] splattael opened pull request #3692: Replace unused `each_with_index` with simple `each` (master...master) https://git.io/v1MH2
<FromGitter> <taylorfinnell> sounds good will do it tonight, trying to determine how uri equality is implemented ie( URI.parse() == URI.parse() ), i don't see URI implementing Comparable or anything like that
<FromGitter> <taylorfinnell> oh
<FromGitter> <taylorfinnell> `def_equals_and_hash`
<FromGitter> <taylorfinnell> it would appear
fedruantine_ has quit [Ping timeout: 246 seconds]
snsei has joined #crystal-lang
<crystal-gh> [crystal] MakeNowJust opened pull request #3693: Wrap GenericInstanceType in link if type vars don't have link (master...fix/wrap-generic-instance-type-in-link) https://git.io/v1Mbu
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 246 seconds]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Read error: No route to host]
<FromGitter> <taylorfinnell> @RX14 do you think that change for the relative uri path should live in the uri_parser?
snsei has joined #crystal-lang
Ven has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
<FromGitter> <asterite> @RX14 Cool!
<RX14> sending a PR now
pduncan has joined #crystal-lang
<RX14> i should have tested more, but I added proper specs now
soveran has quit [Remote host closed the connection]
<crystal-gh> [crystal] RX14 opened pull request #3694: Fix File.expand_path when HOME ends with / (master...bugfix/home-fixes) https://git.io/v1De5
<RX14> and the release-mode specs are failing too
pduncan has quit [Ping timeout: 258 seconds]
<FromGitter> <asterite> Is this on 64 bits? What spec is failing?
<FromGitter> <asterite> Ah, I can see them... sha1 digest
<RX14> yep
<FromGitter> <asterite> It's strange, on mac I can't seem to reproduce it
<RX14> some of the bits get corrupted
<RX14> well it's a codegen bug I think
<FromGitter> <asterite> Not sure yet. I was able to reproduce it on a docker image :-)
<RX14> nice
<RX14> but I would suspect a codegen bug if it's platform-specific
<RX14> by the way, this is what the CI config looks like @asterite https://github.com/RX14/crystal/blob/feature/jenkinsfile/Jenkinsfile
<RX14> now I have to learn packer to automate machine image generation for loads of different architectures
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
snsei has quit []
vivus-ignis has joined #crystal-lang
matp_ has joined #crystal-lang
matp has quit [Read error: Connection reset by peer]
soveran has quit [Remote host closed the connection]
mark_66 has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
vivus-ignis has quit [Quit: vivus-ignis]
elia has quit [Quit: Computer has gone to sleep.]
gloscombe has quit [Remote host closed the connection]
<RX14> packer seems to be working: https://aww.moe/5jdrsk.png
matp has joined #crystal-lang
matp_ has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
daekano has quit [Ping timeout: 245 seconds]
daekano has joined #crystal-lang
<RX14> wow, putting packer on a SSD brings build times down from 25 mins to 5
matp has quit [Quit: ZZzzzZz...]
<Papierkorb> Now .. what happens with a ramdisk then? :P
<RX14> probably faster
<RX14> bigger issue is the lack of DNS in the created images
<Papierkorb> Docker should use the hosts dns servers
<RX14> this isn't docker
<RX14> this is qemu/kvm
ponga has quit [Quit: Connection closed for inactivity]
Philpax has joined #crystal-lang
<RX14> thing is it works fine when installing...
<FromGitter> <raydf> Anyone with experience using crystal-db pooling? I'm trying to use crystal-pg with the pool
Philpax has quit [Ping timeout: 264 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruby has joined #crystal-lang
ruby is now known as Guest36268
bjz has joined #crystal-lang
<FromGitter> <fridgerator> I just learned earlier today that `Db.open` is already pooled
<FromGitter> <sdogruyol> yeah
<FromGitter> <raydf> @fridgerator , thanks nice to know.
bjz has quit [Read error: Connection reset by peer]
matp has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
<FromGitter> <raydf> I'm receiving this error: ⏎ ⏎ `````` [https://gitter.im/crystal-lang/crystal?at=5851c45b0730ce6937c6cfb7]
<FromGitter> <raydf> What i'm doing wrong?
mgarciaisaia has quit [Ping timeout: 260 seconds]
<FromGitter> <raydf> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5851c5a3c5a4e0233b865732]
<FromGitter> <raydf> *typo pg_utl = pg_url
<FromGitter> <spalladino> @raydf what versions of crystal-db and crystal-pg are you using?
<FromGitter> <spalladino> There is an outstanding PR for crystal-pg to support the latest version of crystal-db https://github.com/will/crystal-pg/pull/69
<FromGitter> <spalladino> If you are running the *latest* db version, you might want to switch to that branch of crystal-pg until it's actually merged
<FromGitter> <raydf> I'm using ⏎ github: will/crystal-pg ⏎ branch: master
<FromGitter> <raydf> should i include in shards.yml the crystal db version?
<FromGitter> <spalladino> Hmm its seems that https://github.com/will/crystal-pg/commit/6d19fe3f93cf0cce1a126bdaf041cb16d58d9552 broke compatibility with db 0.2.2, in preparation for 0.3.0
<FromGitter> <spalladino> You might want to either: ⏎ ⏎ 1) Use pg *before* that commit, which should include db 0.2.2 ⏎ 2) Use pg from https://github.com/bcardiff/crystal-pg/tree/feature/db-0.3.0 which should use the latest version of db, and include a few extra goodies as well [https://gitter.im/crystal-lang/crystal?at=5851cacb058ca96737495747]
<FromGitter> <spalladino> That is at least until the PR is merged in pg
Philpax has joined #crystal-lang
<FromGitter> <raydf> @spalladino , thanks cloned the repo and switched to that branch and everything compiles
Philpax has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
<FromGitter> <raydf> @spalladino, how crystal-db handles connections exceptions and could you help me how to locate the config options for the pooling?
<FromGitter> <spalladino> @raydf regarding the pool, check out https://github.com/crystal-lang/crystal-db/pull/12 which lists the valid options
<FromGitter> <spalladino> As for exceptions, I'm afraid that each driver is using its own hierarchy of exceptions (see https://github.com/bcardiff/crystal-pg/blob/feature/db-0.3.0/src/pq/error.cr); we should make sure that they all derive from `DB::Error`
<FromGitter> <spalladino> Also, apologies for the issues with the crystal-db and pg versions: @bcardiff is moving really fast implementing a lot of functionality in the db shard, and staying in sync with all 3 adapters (sqlite, pg and mysql) is quite an effort; though everything should start stabilising now
mgarciaisaia1 has quit [Quit: Leaving.]
matp has quit [Read error: Connection reset by peer]
elia has joined #crystal-lang