faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <anamba> hey all. i'm back! btw to close the loop on that passenger + crystal http issue from way back when, passenger 6.0.1 is out, and i got a mention in the release notes: https://blog.phusion.nl/2019/01/07/passenger-6-0-1-fixes-runaway-cpu/
<FromGitter> <Blacksmoke16> whoo! nice one
<FromGitter> <Blacksmoke16> there a way to get a union of an enum?
<FromGitter> <Blacksmoke16> https://play.crystal-lang.org/#/r/5yrd
<FromGitter> <Blacksmoke16> use case being say one was like `InputOptions::Required | InputOptions::NO_VALUE`
<FromGitter> <Blacksmoke16> which would map to a param having to be set but nothing assigned to it `--flag` vs `--flag=123`
<FromGitter> <Blacksmoke16> oops thought i was on #crystal
<FromGitter> <Sija> @Blacksmoke16 union no, but you can use `@[Flags]` annotation
<FromGitter> <Blacksmoke16> ah i missed that little blurb on the cos
<FromGitter> <eliasjpr> Whats the flags for?
<FromGitter> <Blacksmoke16> like what am i using them for?
<FromGitter> <Blacksmoke16> or what does it do?
<FromGitter> <eliasjpr> What does it do?
<FromGitter> <eliasjpr> Crystal is missing a good book
<FromGitter> <eliasjpr> The one that came out I don’t think is resourceful enough imo
<FromGitter> <Blacksmoke16> They charge the behavior of enums a bit
<FromGitter> <Blacksmoke16> First Val starts at 1 and can be unioned
<FromGitter> <Blacksmoke16> I.e assign two enum values to one car
<FromGitter> <drujensen> Crystal continues to diverge from Ruby. Catch 22 because adoption by Rubyists will go down but language will be improved. 🧐
<FromGitter> <eliasjpr> thanks guys reading it now
<FromGitter> <eliasjpr> I feel they should have taken the idea from go lang
<FromGitter> <eliasjpr> I forgot of my head but go provides something to allow this type of functionality
<FromGitter> <noahlh> Related to that point @drujensen - do you have a sense of what the core team's view on ruby "synchronization" is? I know being ruby-like was/is a goal, but Ruby is evolving a lot as it approaches 3.0 and I wonder if there's an appetite to keep things evolving similarly with crystal or just take the initial inspiration and let them diverge...
<FromGitter> <drujensen> Crystal diverges by using fibers and channels similar to Go
<FromGitter> <drujensen> Instead of threads and mutexes