<FromGitter>
<Blacksmoke16> helps for sure if pc restarts or something fails in app
<FromGitter>
<drum445> Yeah just got a service running and apache as a reverse proxy :D
<FromGitter>
<drum445> Any reason to use nginx over apache, I used apache as I'm familiar with it but any reason to swap?
<FromGitter>
<Blacksmoke16> :shrug: im sure everyone has their preference
<FromGitter>
<Sija> @drum445 speed/security
<FromGitter>
<drum445> oh right, apache2 old stuff these days is it?
<FromGitter>
<Sija> seems like it is ;)
<FromGitter>
<drum445> ha shame
<FromGitter>
<Sija> i never liked it to be honest
<FromGitter>
<Sija> nginx is built with efficency in mind for one of the biggest data pushers in history - porn biz ;)
<FromGitter>
<drum445> haha was it really
<FromGitter>
<Sija> that's what the X in nginX stands for ;)
<FromGitter>
<drum445> Citation needed? ;)
<FromGitter>
<Sija> that's what I read some yrs ago, maybe someone had his laugh, dunno ;)
<FromGitter>
<Sija> lookin' for it! :P
<FromGitter>
<drum445> lol
<FromGitter>
<Sija> can't find it, maybe it was more about that all the porn sites are using nginx so it's battletested. Can't remember exactly atm, sorry ;)
<FromGitter>
<Blacksmoke16> recursive stuff makes my brain hurt
shmibs has joined #crystal-lang
ska has left #crystal-lang ["Leaving"]
<FromGitter>
<Makoren> hey guys, i found crystal a couple days ago but i have a few questions
<FromGitter>
<Makoren> 1) When will Crystal be production ready? This is the first "in development" language I want to follow, so I have no idea how long these things take. ⏎ ⏎ 1) Would it make sense to start building something with Crystal now while it's still in development, or would I end up running into too many breaking changes? I plan on using Crystal for game engine development and graphics programming. ⏎ ⏎ 1) Will
<FromGitter>
<Makoren> i already posted this on the google groups page but it seems very inactive compared to gitter
<FromGitter>
<Blacksmoke16> 1) TBD, are a few things the team wants to get done first afaik
<FromGitter>
<Blacksmoke16> 1) Sure, just bear in mind breaking changes can happen and to account for them in your dev time, but for side projects and stuff it shouldnt be much of an issue, at least it wanst for me
<FromGitter>
<Blacksmoke16> 3 not sure
<FromGitter>
<sam0x17> @Makoren at BlockVue we have been using crystal in production for a year now, basically everything works perfectly there are just some minor breaking changes every other version or so
<FromGitter>
<Makoren> ty for the answers, if anyone can chime in on question 3 id love to hear it
<FromGitter>
<Blacksmoke16> came up with this for the recursive thing btw
<FromGitter>
<drum445> app1 and app2 are on the same server but different ports, I want to send it to the right port depending on the first resource (app1 or app2) please?
<FromGitter>
<Blacksmoke16> yes, on nginx can use proxy pass most likely
<FromGitter>
<Blacksmoke16> its what i used to route like `example.com/api/xxx` to the api vs trying to render it with angular
<FromGitter>
<j8r> that's the same like apache, `location` also exists
Jenz has joined #crystal-lang
rohitpaulk has joined #crystal-lang
* Jenz
o/
rohitpaulk has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> is there a way to test for compile time error?
<Jenz>
What?
<Jenz>
If there is a compile time error, the compiler prints an error
<Jenz>
Do you mean like in a shell?
<FromGitter>
<Blacksmoke16> yea is there a way to write a spec to make sure you get that compile time error
<FromGitter>
<Blacksmoke16> and that the error is what you are expecting
<Jenz>
Oh like that, hmm
<FromGitter>
<pitosalas> Question about property... it seems like the getter and setter for a property don't work (or aren't available) in the constructor. The following doesn't compile: class Test ⏎ property s1 : String ⏎ ⏎ def initialize#() #x1 : String) ⏎ ... [https://gitter.im/crystal-lang/crystal?at=5bf9931d97a8982b9a5a9a03]
<FromGitter>
<Blacksmoke16> got a playground link?
<FromGitter>
<dscottboggs_gitlab> yes, @pitosalas that is true
<FromGitter>
<pitosalas> feature or bug?
<FromGitter>
<pitosalas> (or to-be-impleented?)
<FromGitter>
<dscottboggs_gitlab> you have to refer to the instance variable created by the property macro directly, rather than calling the setter from inside the initializer
<FromGitter>
<Blacksmoke16> ^
<FromGitter>
<dscottboggs_gitlab> I'm not sure about that, I'm sure allowing setters to be used in initialzers *could* be implemented, but I'm not sure whether it's not been as a design decision or because it's hard to do