ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.4 | 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
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
shawn42 has quit [Quit: Connection closed for inactivity]
soveran has quit [Remote host closed the connection]
<FromGitter> <fridgerator> the more I use crystal, the more I like it
<FromGitter> <fridgerator> macros are slick AF
Fichtenstein has quit [Ping timeout: 260 seconds]
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
shawn42 has joined #crystal-lang
x0f has quit [Ping timeout: 248 seconds]
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
<FromGitter> <raydf> @fridgerator , remember to not overuse them.
<FromGitter> <raydf> https://vimeo.com/190927958
<FromGitter> <raydf> This is a interesting talk by Ary.
hako has quit [Read error: Connection reset by peer]
<FromGitter> <jots_twitter> thanks @raydf I will watch this tonight. I have not delved into macros yet.
hako has joined #crystal-lang
x0f has joined #crystal-lang
<FromGitter> <fridgerator> thanks @raydf
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 260 seconds]
mgarciaisaia1 has quit [Ping timeout: 252 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 245 seconds]
shawn42 has quit [Quit: Connection closed for inactivity]
mgarciaisaia has joined #crystal-lang
zacts has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
<FromGitter> <crisward> Thanks @raydf been trying to get my head around macros to contribute to a templating lib.
Fichtenstein has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
bjz has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
mark_66 has joined #crystal-lang
sustained has joined #crystal-lang
sustained has joined #crystal-lang
sustained has quit [Changing host]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXp8s
<crystal-gh> crystal/master de680fb Ary Borenszweig: Added old `Char#digit?` and `Char#alpha?` with a deprecation warning, to ease migration. Updated Changelog.
hako has quit [Ping timeout: 250 seconds]
hako has joined #crystal-lang
hako_ has joined #crystal-lang
hako has quit [Ping timeout: 260 seconds]
sustained has quit [Read error: Connection reset by peer]
gloscombe has joined #crystal-lang
<travis-ci> crystal-lang/crystal#de680fb (master - Added old `Char#digit?` and `Char#alpha?` with a deprecation warning, to ease migration. Updated Changelog.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/177906928
zacts has quit [Ping timeout: 256 seconds]
soveran has quit [Remote host closed the connection]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 258 seconds]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vXpwT
<crystal-gh> crystal/master 1def773 Ary Borenszweig: Unicode: consider special case conversions like the uppercase of "ffl" and the downcase of "İ"
<crystal-gh> crystal/master da21f0b Ary Borenszweig: String#reverse: iterate grapheme clusters for correct output when combining characters are used
<travis-ci> crystal-lang/crystal#1def773 (master - Unicode: consider special case conversions like the uppercase of "ffl" and the downcase of "İ"): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/177930398
akwiatkowski has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #3563: Rename MemoryIO to IO::Memory (master...feature/io_memory) https://git.io/vXbAN
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXpDs
<crystal-gh> crystal/master f5d54f4 Ary Borenszweig: String: some optimizations when ascii only
<crystal-gh> [crystal] asterite closed pull request #3401: Rename MemoryIO to IO::Memory (master...rename-memoryio) https://git.io/vPBgc
jdin has joined #crystal-lang
jdin has quit [Client Quit]
<travis-ci> crystal-lang/crystal#d599667 (master - Rename MemoryIO to IO::Memory): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/177947317
soveran has joined #crystal-lang
<FromGitter> <xdougx> @ysbaddaden Hello, having this message `ConnectionPool(T) in unions yet, use a more specific type`, this T class, what class should i user?
<FromGitter> <mverzilli> @xdougx for example if you're using crystal-db you'd use ConnectionPool(::DB::Database)
<FromGitter> <xdougx> Gonna try this one
<FromGitter> <mverzilli> if you're following the README from ysbadadden's pool probably you're just missing a type annotation. where are you storing the pool? an ivar in a class?
<FromGitter> <xdougx> yes, i was trying to store in a instance var, but um having some trouble in the compile-time receiving a bill when i try to make a configuration, now im thinking how to solve it with a especific class for connection 'cos ivar isn’t working properly
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXp7o
<crystal-gh> crystal/master b0cc6f7 Ary Borenszweig: Updated Changelog
<FromGitter> <mverzilli> can you paste some code here?
<FromGitter> <xdougx> gonna commit
<FromGitter> <mverzilli> for example, something like this inside a module works: ⏎ ` ⏎ @@pool : ConnectionPool(::DB::Database) ⏎ @@pool = ConnectionPool.new(capacity: 10, timeout: 10.0) do ⏎ ::DB.open(YOUR_DB_URI) ... [https://gitter.im/crystal-lang/crystal?at=58343fc92db95267046826e3]
<FromGitter> <mverzilli> well the formatting sucks :P
<FromGitter> <mverzilli> there should be a new line after the first closing parens
pawnbox_ has joined #crystal-lang
<FromGitter> <xdougx> thats my current issue: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5834403ac790e0ec56192a67]
<FromGitter> <xdougx> if you opened, please refresh
pawnbox has quit [Ping timeout: 240 seconds]
kulelu88 has joined #crystal-lang
<FromGitter> <mverzilli> that's because @@config in base.cr is annotated as nilable
<FromGitter> <xdougx> if i remove it will ask to start, if i start on the class body, when i connect, im getting the default configuration instead of the configured params in the init
<FromGitter> <mverzilli> that's ok, what happens if you add replace @@config with @@config.not_nil! here: https://github.com/xdougx/selenite-db/blob/master/src/selenite/db/base.cr#L13
<FromGitter> <xdougx> `in ./src/selenite/db/base.cr:35: undefined method 'host' for Nil (compile-time type is (Selenite::DB::Configuration | Nil))`
<FromGitter> <xdougx> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5834431fcc0ea2cf777ff2c0]
<FromGitter> <xdougx> the probleman is now in the connection string, the method is using the `@@config, but in the compile time of `base.cr` there is no configuration
<FromGitter> <mverzilli> exactly
<FromGitter> <mverzilli> instead of accessing @@config directly, use self.config and ensure there's an instance there
<FromGitter> <mverzilli> (btw, you may need to think about thread safety of this once it works)
<FromGitter> <xdougx> yeah, its something is needed to think about too
hako_ has quit [Read error: Connection reset by peer]
hako_ has joined #crystal-lang
<FromGitter> <xdougx> i think i need to change this strategy, instance var isn’t been a good approach in this case.
<FromGitter> <mverzilli> maybe your life's going to be a bit easier if you move the initialization of @@config to the declaration of the var
<FromGitter> <mverzilli> then you con asume there's an instance in self.configure and just yield it
<FromGitter> <mverzilli> then you don't need to declare the var as nilable, just a plain Selenite:DB::Configuration
<FromGitter> <xdougx> Like this? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5834449cc790e0ec56194546]
<travis-ci> crystal-lang/crystal#b0cc6f7 (master - Updated Changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/177957437
Philpax has quit [Ping timeout: 260 seconds]
<FromGitter> <xdougx> im almost there
<FromGitter> <xdougx> Same probleman
<FromGitter> <xdougx> have success in make the code work, but, instead of the configuration in the init, got the default configuration
<FromGitter> <xdougx> @mverzilli Ok, made it :D
<FromGitter> <mverzilli> \o/
<FromGitter> <mverzilli> I'm at a meeting right now, sorry for not helping more
<FromGitter> <mverzilli> what was it?
<FromGitter> <xdougx> made the `self.configuration` in the configuration class, make a `singleton` returning always the same configuration object and used it to connect to the base
<FromGitter> <xdougx> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=58344cb67f83e6c9771bc92d]
<FromGitter> <mverzilli> :+1:
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gloscombe has quit [Ping timeout: 260 seconds]
gloscombe has joined #crystal-lang
Sharcho has joined #crystal-lang
<Sharcho> I'm trying to create script that fetches HTTP in parallel, but it doesn't seem to work very concurrently. Any ideas? https://gist.github.com/anonymous/f7332385319cdb8f094f1559c372621e
pawnbox_ has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
akwiatkowski has quit [Ping timeout: 264 seconds]
mgarciaisaia has quit [Ping timeout: 256 seconds]
mgarciaisaia has joined #crystal-lang
gloscombe has quit [Read error: Connection reset by peer]
soveran has quit [Remote host closed the connection]
gloscombe has joined #crystal-lang
optikfluffel has joined #crystal-lang
<FromGitter> <asterite> Sharcho: seems pretty concurrent to me. Why do you think it's not?
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXhmt
<crystal-gh> crystal/master 2be41e7 Ary Borenszweig: Add missing changelog entry [ci skip]
shawn42 has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXhmF
<crystal-gh> crystal/master 6eee1e9 Ary Borenszweig: Another missing changelog entry
<FromGitter> <spalladino> At least on my machine, when running that code, all requests are STARTed first, and then they are either DONE or ERRORed; but it seems odd that no response is returned in-between the STARTs
mgarciaisaia has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXh3H
<crystal-gh> crystal/master ab61b89 Ary Borenszweig: Mention API docs notes highlighting in changelog
<Sharcho> asterite: It's not starting all the requests immediately, it's waiting for a while before it processes all the request, and all the DONE seems to be arriving at the end, not when they're done
pawnbox has quit [Remote host closed the connection]
mgarciaisaia has joined #crystal-lang
<travis-ci> crystal-lang/crystal#6eee1e9 (master - Another missing changelog entry): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/178000922
mgarciaisaia has quit [Ping timeout: 258 seconds]
mgarciaisaia has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
mgarciaisaia has quit [Read error: Connection reset by peer]
soveran has quit [Ping timeout: 258 seconds]
mgarciaisaia has joined #crystal-lang
pawnbox has joined #crystal-lang
<FromGitter> <xdougx> https://github.com/xdougx/selenite-db ⏎ Simple model base persistency guys, have doc and a long roadmap :)
pduncan has joined #crystal-lang
<FromGitter> <spalladino> Sharcho, my guess is it could be related to https://github.com/crystal-lang/crystal/issues/2660
<FromGitter> <spalladino> Running the code in crystal 0.17 STARTs all requests immediately, and then yields the responses as they are returned
<FromGitter> <spalladino> And fetching 100 times the same URL (just tested it with waj) also starts everything quite fast
<FromGitter> <asterite> Ah, yes, I was going to same the same, probably because the dns lookup is blocking
<FromGitter> <spalladino> @xdougx looks nice! I'd love to see it working together with the `DB.mapping` macro (https://github.com/crystal-lang/crystal-db/blob/master/src/db/mapping.cr), which currently is only being used to retrieve records, and not to save them
<travis-ci> crystal-lang/crystal#ab61b89 (master - Mention API docs notes highlighting in changelog): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/178006374
<FromGitter> <xdougx> @spalladino DB.mapping, what is the repository?
<FromGitter> <xdougx> Gonna take a look :thumbsup:
<Sharcho> spalladino, I think that expains it, I didn't see these issues when using URLs such as 'http://1.1.1.1/test'
<FromGitter> <spalladino> It's basically the same as the `JSON.mapping` macro, only that it builds instances from a `DB::ResultSet` instead of a `PullParser`
<FromGitter> <spalladino> Sharcho I was going to test exactly that. Good to know!
<FromGitter> <xdougx> interesting lib, very good!!!
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vXhEM
<crystal-gh> crystal/master eab0094 Ary Borenszweig: Allow passing case options to `String#capitalize`
<crystal-gh> crystal/master 197ba00 Ary Borenszweig: Fixed `String#upcase` and `String#downcase` optimization. Fixes #3566
mati_urunda has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia has quit [Ping timeout: 260 seconds]
sustained has joined #crystal-lang
<FromGitter> <xdougx> 1) 01 is Float or Double?
<FromGitter> <johnjansen> Float64
<FromGitter> <xdougx> Ok, Float64
<FromGitter> <johnjansen> `0.01.class #=> Float64`
<FromGitter> <spalladino> `crystal play` may come in handy for these kind of doubts
<FromGitter> <johnjansen> +1
<FromGitter> <xdougx> crystal play is a REPL?
<FromGitter> <johnjansen> run `crystal play` from terminal then `open http://localhost:8080`
<FromGitter> <xdougx> Wow carc.in at localhost
<FromGitter> <spalladino> Not exactly a REPL, since it will compile and run all your code on every change; but it's useful for quick tests, such as this one
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXho4
<crystal-gh> crystal/master 202e771 Ary Borenszweig: Enum: automatically generate a `none?` method for a Flags enum
<FromGitter> <xdougx> Liked, when it become available?
<travis-ci> crystal-lang/crystal#eab0094 (master - Allow passing case options to `String#capitalize`): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/178028828
RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.20.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
<RX14> yay!
Sharcho has left #crystal-lang ["Leaving"]
<FromGitter> <johnjansen> @asterite any timeline on the next release?
gloscombe has quit [Quit: Lost terminal]
<RX14> point releases used to be every friday
<FromGitter> <johnjansen> yeah, havent seen one for weeks though
<RX14> until we stopped needing to fix stuff with the old release
<RX14> well yeah because the point release don't have any breaking changes
<RX14> so after a while you stop and start working on the next release
<RX14> there will probably be point releases on *a* day for a few weeks
<RX14> then no more until 0.21
<FromGitter> <johnjansen> thats all good, just wondering when the next release will be :-)
<RX14> maybe we'll stick with fridays, the final decision is with @asterite
<FromGitter> <mverzilli> @johnjansen let us enjoy the release from 2 minutes ago, would you? :P
<FromGitter> <johnjansen> what, did i miss that … really?????
gloscombe has joined #crystal-lang
<RX14> oh lol I thought you realised we were on 0.20.0 and was asking for the schedule for point releases lol
<FromGitter> <johnjansen> bloody hell …
<FromGitter> <mverzilli> yeah, I wasn't sure if you were kidding or what :D
<FromGitter> <johnjansen> im really not that much of an ass
<FromGitter> <johnjansen> i am laughing now though
<FromGitter> <mverzilli> the synchronicity was a bit creepy
<FromGitter> <johnjansen> a touch impatient perhaps
<FromGitter> <johnjansen> i need a whip to crack
<FromGitter> <johnjansen> sorry for that everyone
<FromGitter> <johnjansen> just one question, how did everyone know about that release?
<RX14> github
<RX14> and just the tone of development over the last week
<RX14> i'm watching the github repo, have been since mid-july
<RX14> also the mailing list
<RX14> and yeah
<RX14> many different ways
<FromGitter> <johnjansen> thanks @RX14 id forked the repo, starred the repo, but forgot to watch the repo
<FromGitter> <fridgerator> I'm on the mailing list as well, usually I get an email about releases. I did not get one with this release yet.
<RX14> it's there
<RX14> at 17:40
gloscombe has quit [Quit: Lost terminal]
soveran has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
<FromGitter> <fridgerator> I am writing a Database / Query wrapper, any feedback would be appreciated. I just started 3 days ago so its still in its infancy. https://github.com/fridgerator/crecto
gloscombe has joined #crystal-lang
<FromGitter> <fridgerator> It is based on / inspired by Ecto (Elixir lang)
gloscombe has quit [Client Quit]
soveran has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
<FromGitter> <xdougx> @fridgerator check this out https://github.com/xdougx/selenite-db
<FromGitter> <fridgerator> haha, good timing
<FromGitter> <xdougx> started just the persistence hehe
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Read error: Connection reset by peer]
<FromGitter> <fridgerator> there is also active_record.cr (https://github.com/waterlink/active_record.cr)
<FromGitter> <phoffer> @fridgerator that looks really cool so far (going by readme). I played with Ecto a little bit, a stable port for Crystal would be awesome
<FromGitter> <fridgerator> I like Ecto, because I prefer the abstraction of the `Repo`
<RX14> you should probably use `field age : Int32` for declaring fields
<FromGitter> <fridgerator> point taken, would make the macro simpler
<RX14> which is nice
<FromGitter> <fridgerator> I'm currently choosing the tye in the macro based on the parameter (i.e. `{% field_type = "Int32 | Int64" if field_type == :integer %}`)
<RX14> hmm
<RX14> if it's DB work, choosing the DB type from the crystal type might be easier
<RX14> `Int32` is faster and smaller then `Int32 | Int64`
<RX14> so if you can, I would prefer using crystal types, especially as it makes typing easier
<FromGitter> <xdougx> Int32 is -2billions up to 2 bilions?
<travis-ci> crystal-lang/crystal#202e771 (master - Enum: automatically generate a `none?` method for a Flags enum): The build has errored. https://travis-ci.org/crystal-lang/crystal/builds/178044797
<FromGitter> <fridgerator> :+1:
<FromGitter> <spalladino> @xdougx @fridgerator make sure to share your work later in https://github.com/veelenga/awesome-crystal (and also to check if there are any other similar projects you could draw ideas from!)
pduncan has quit [Ping timeout: 245 seconds]
<FromGitter> <xdougx> okay added to awesome crystal
<FromGitter> <xdougx> pull request done
<FromGitter> <spalladino> Cool
<RX14> @fridgerator how about the name correcto?
<FromGitter> <spalladino> Also, I'd suggest (for both projects) to try and build upon crystal-db. The goal of that project is to act as a common interface to all SQL-like DBs, with minimal functionality; so you don't need to replicate postgres/sqlite/mysql adapters, pools, etc on every project.
<FromGitter> <spalladino> @RX14 love the name :P
<RX14> also yes
<RX14> if you can build it on crystal-db that would be awesome
<FromGitter> <fridgerator> so crystal-db would be used along with crystal-pg?
<RX14> well unfrtunately crystal-db doesn't have a pg driver yet
<RX14> crystal-pg has a PR/branch which makes it a crystal-db adapter
<RX14> so actually yes
<FromGitter> <fridgerator> ok great
<FromGitter> <xdougx> is that possible to incorporate the crystal-db into crystal-db?
<RX14> what?
<FromGitter> <xdougx> ‘cos crystal-pg is a adpter for Postgresql
<FromGitter> <xdougx> Also crystal-db could use crystal-pg implementation
<FromGitter> <spalladino> crystal-db is adapter-agnostic, the idea is to have satellite projects that extend crystal-db for a specific db
<RX14> @xdougx you said crystal-db twice
<RX14> also crystal-pg will eventually be a crystal-db driver
<RX14> hopefully
<RX14> crystal-db has some great ideas in
<FromGitter> <xdougx> i think the idea is all of then have the same interface, its correct?
<RX14> yep
<FromGitter> <xdougx> if every body, has a pool, connect, exec and return a ResultSet, will be perfect
<FromGitter> <fridgerator> crystal-db is providing an interface just to connecting to, sending queries and receiving query responses, the specific query strings will still need to be built.... is that correct?
<RX14> yep
<FromGitter> <fridgerator> ok cool
<FromGitter> <paulcsmith> Is it possible to configure or modify the crystal format tool? It's incredibly convenient, but there is just *one* tiny thing that I'd like to change https://gist.github.com/paulcsmith/7f294390d2c40969b12c9ff791df8e8e
<FromGitter> <xdougx> isnt
<FromGitter> <paulcsmith> The first one works, but if you use `crystal tool format` it will change it to the second version
<RX14> @paulcsmith crystal tool format doesn't have any configuration and thats a feature IMHO
<FromGitter> <paulcsmith> RX14 yeah I see the benefits
<RX14> it's interesting because I like having calls aligned most of the time
<Yxhuvud> if you care alot, do a feature/pull request and see what happens
<FromGitter> <paulcsmith> @ Yxhuvud yeah I might do that! Just wanted to make sure I wasn't missing anything in the meantime :)
<FromGitter> <paulcsmith> BTW is there any docs on creating custom tools? Another option would be to create a custom tool that uses the default crystal formatter, and then runs a second formatter that changes just that one style back :) Not the most efficient, but maybe it would work
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vXhba
<crystal-gh> crystal/master 98e8c65 Ary Borenszweig: MemoryIO -> IO::Memory (was introduced by merging old PR)
<FromGitter> <xdougx> There is any initiative for a library lije rails/arel?
akwiatkowski has joined #crystal-lang
<RX14> well I actually prefer the style like this: https://carc.in/#/r/1el4
<RX14> UNLESS it's .new
<FromGitter> <spalladino> @Yxhuvud -1 to directly sending a PR; I'd suggest opening an issue beforehand to ask whether there is interest in that change, and whether it would be accepted, so you don't work on implementing it just to see it rejected if that style is not agreed upon
<RX14> well it depends on the magnitude of the change
<FromGitter> <paulcsmith> @RX14 Yeah I like that. My general rule of thumb is everything is indented by 2 spaces. It makes diffs clean and you never have to worry about whether to lines things up or not. You just always do two
<RX14> well I like alignment when it's an expression split between lines
<FromGitter> <paulcsmith> Yeah I'd prob do an issue first. That's a good idea. Wouldn't want to waste time and effort if it won't get accepted. Also it's easier for maintainers to reject an issue than a PR. You don't feel so bad when it's just an issue :)
<RX14> if it's a 5 minute change you might as well send a PR right away
<RX14> but your first compiler change is never 5 minutes
<FromGitter> <paulcsmith> Haha yeah I'd have to get it all set up first. Also not sure if I should change it or introduce an option so you can configure which version you want. Since I'm not sure what the maintainers would like I'd probable open an issue first
<RX14> having an option is the worst of both worlds because you loose consistency throughout all projects
<RX14> having formatter options is a slippery slope
<RX14> and it leads to rubocop, which is great but isn't exactly where I would want to end up on the configuration side of things
<RX14> i like go's idea of this is the standard format, like it or not
<FromGitter> <paulcsmith> Yeah I see good points on both sides. I personally like a little configuration, but I know that's up to the core team. If they don't want it I won't fight it, but I might make my own tool to change certain things
<FromGitter> <paulcsmith> So both sides win either way :)
rolha has joined #crystal-lang
<FromGitter> <fridgerator> wow, 0.20.0 is taking longer than previous releases to compile, was this the case for others?
<RX14> how much longer?
<RX14> i assume you mean compile other programs
<FromGitter> <fridgerator> well, install from brew
<FromGitter> <fridgerator> `make` has been running for probably 7 minutes now
<RX14> oh
<RX14> hmm
<RX14> blame LLVM
<FromGitter> <sdogruyol> @fridgerator ecto is awesome
<FromGitter> <fridgerator> ok, i will ;)
<FromGitter> <xdougx> :eyes:
rolha has quit [Client Quit]
<FromGitter> <paulcsmith> @fridgerator Cool stuff. I also like Ecto :)
<FromGitter> <fridgerator> :+1:
<FromGitter> <paulcsmith> At some point I want to try making a Bamboo-like library for Crystal https://github.com/thoughtbot/bamboo
<FromGitter> <paulcsmith> It would be fun to try do some of the background sending with Fibers
<FromGitter> <sdogruyol> @paulcsmith we definitely need an email library :P
<FromGitter> <sdogruyol> something like bamboo would be great
sustained has quit [Quit: I Retire Chat]
dom96 has quit [Changing host]
dom96 has joined #crystal-lang
bjz_ has joined #crystal-lang
<FromGitter> <jots_twitter> another cool email project (server): https://haraka.github.io/README.html crystalize it
<FromGitter> <sdogruyol> ah harak is cool also
<travis-ci> crystal-lang/crystal#98e8c65 (master - MemoryIO -> IO::Memory (was introduced by merging old PR)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/178075082
<FromGitter> <sdogruyol> @RX14 https://github.com/RX14/multipart.cr/pull/4
<RX14> @sdogruyol io.to_s is probably not what you want
<RX14> gets_to_end is the right one
<RX14> also reading an IO into a memoryIO is a bit redundant
<RX14> you can just pass body, it's already an IO
<FromGitter> <sdogruyol> nope
<FromGitter> <sdogruyol> passing the body won't work
<FromGitter> <sdogruyol> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5834b0a4bc17b2e756028e97]
<FromGitter> <sdogruyol> it should work, right?
<FromGitter> <sdogruyol> ah you mean parse(body
<FromGitter> <sdogruyol> hold on
<FromGitter> <sdogruyol> @RX14 got it, thanks pal
<RX14> np
<RX14> did the specs pass like that?
<RX14> ah yes
<RX14> only because it's a memoryIO
<RX14> the HTTP request in the specs is created with a memoryIO
<RX14> so request.body.to_s *happens* to be the body
<RX14> thats actually quite a gotcha
<FromGitter> <sdogruyol> it's like a recursive stuff
<RX14> if the specs pass, lgtm
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
optikfluffel has joined #crystal-lang
<FromGitter> <sdogruyol> it passes
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
<RX14> yup
<FromGitter> <sdogruyol> :+1:
<RX14> just wanted to check that and the formatting on my machine
optikfluffel has joined #crystal-lang
<FromGitter> <sdogruyol> thanks man, it's great to catch up latest release so fast
optikfluffel has quit [Client Quit]
<FromGitter> <sdogruyol> and here we go https://github.com/crystal-lang/crystal/issues/3569
optikfluffel has joined #crystal-lang
<FromGitter> <sdogruyol> wtf is wrong with people
optikfluffel has quit [Client Quit]
<FromGitter> <sdogruyol> @RX14 can you tag a new version soon (if there's nothing that you want to merge)
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
optikfluffel has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mgarciaisaia has quit [Read error: Connection reset by peer]
optikfluffel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
optikfluffel has joined #crystal-lang
optikfluffel has quit [Client Quit]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
pduncan has joined #crystal-lang
optikfluffel has joined #crystal-lang
Fichtenstein has quit [Ping timeout: 248 seconds]
<FromGitter> <crisward> @sdogruyol Does this mean a new Kemal is on it's way?
<FromGitter> <sdogruyol> @crisward yeah 0.17.0
<FromGitter> <crisward> Cool.
<RX14> @sdogruyol tagged v0.1.1
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
bjz has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran has quit [Remote host closed the connection]
<FromGitter> <sdogruyol> Cheers
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vXj8W
<crystal-gh> crystal/master 28a6f06 Ary Borenszweig: Docs: show `T | Nil` as `T?`
<crystal-gh> crystal/master 3797ef5 Ary Borenszweig: Fixed #3568: Doc generator doesn't take :: prefix into account
mgarciaisaia has quit [Read error: Connection reset by peer]
mati_urunda has quit [Ping timeout: 260 seconds]
mgarciaisaia has joined #crystal-lang
echosystm has joined #crystal-lang
<echosystm> how does the gc work in crystal?
<echosystm> is it concurrent?
Philpax has joined #crystal-lang
<tilpner> echosystm - What do you mean by concurrent?
<echosystm> does it halt the main thread unecessarily
<tilpner> "A Crystal program executes in a single operating system thread, except the Garbage Collector (GC) which implements a concurrent mark-and-sweep (currently Boehm GC)."
<echosystm> ah cool
<echosystm> is there any speak regarding OS thread support?
<echosystm> or, muxing fibers onto real OS threads?
<FromGitter> <johnjansen> i believe work is in progress
<echosystm> cool
<echosystm> it's really impressive how far crystal has come without any big corporate backing
mgarciaisaia has quit [Ping timeout: 260 seconds]
akwiatkowski has quit [Ping timeout: 264 seconds]
woodruffw has quit [Ping timeout: 248 seconds]
mgarciaisaia has joined #crystal-lang