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> <elorest> We'll any suggestions you have on docs would be appreciated. With SEO since it's using gitbook I'd think it would be indexed fairly well for search engines.
<FromGitter> <elorest> Even with crystal you have to be really specific with google searches other wise you start finding magic crystals and meth and stuff.
_whitelogger has joined #amber
<FromGitter> <kvirani> haha, fair re: crystal.
<FromGitter> <kvirani> Any idea what is the cause of these error numbers for Amber in the benchmark comparisons (linked from Amber's README)? https://d.pr/i/Nis87m
<FromGitter> <kvirani> ^^ source: https://www.techempower.com/benchmarks/#section=data-r17&hw=ph&test=query&c=6&d=9&o=e
<FromGitter> <elorest> I've beat my head against that a lot. I've gotten way better numbers than that on a much weaker server. I don't have that issue in production.
<FromGitter> <elorest> You'll also notice that rails unicorn has tons of errors despite being pretty great in production on thousands of servers. We were able to run the benchmark setup in vagrant without the errors as well. On my imac I actually got better scores running techempower benchmark for amber in their vagrant setup that their getting on their super computer.
<FromGitter> <elorest> I'd prefer we didn't even show those benchmarks on the site.
<FromGitter> <kvirani> Oh wow okay. Good to know. The benchmarks do look great. This is just one issue if you really dig in. Overall the ranking is still good, no? ⏎ ⏎ Perhaps where the benchmark is linked, we could summarize them so that the reader doesn't have to invest time in determining Amber's generate performance comparison to other major contenders like Rails?
<FromGitter> <kvirani> If you agree, I can open a PR. Looking for things to tackle that are easy for new comers, and docs are fine too, to start :)
t1|Mike has quit [Read error: Connection reset by peer]
t1|Mike has joined #amber
t1|Mike has joined #amber
t1|Mike has quit [Changing host]
<FromGitter> <waghanza> hi, could a route be constraint by a param type ? like `match 'maps/:id', to: 'maps#show' ,constraints: { id: /\d+/}, via: :get` in `rails` ?
<FromGitter> <Blacksmoke16> the router supports it, however im not sure if amber team added a way to set it
<FromGitter> <Blacksmoke16> im not super familiar with amber itself
<FromGitter> <Blacksmoke16> but yes its possible, should be an easy addition, if its not already a thing. just need a way to define the constraints hash
<FromGitter> <waghanza> `rails` ways is 👌 for me
<FromGitter> <Blacksmoke16> syntax would be more like `{"id" => /\d+/}` tho, as in crystal land `{ id: /\d+/}` is a NamedTuple and we wont know the keys ahead oftime
<FromGitter> <waghanza> sure
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <Blacksmoke16> ill create an issue for that
<FromGitter> <Blacksmoke16> oh i lied
<FromGitter> <Blacksmoke16> it actually supports `{"id" => /\d+/}`, `{id: /\d+/}`, and `{:id => /\d+/}` syntax :S
<FromGitter> <Blacksmoke16> kinda sad considering i was the one who added that feature ha
<FromGitter> <Blacksmoke16> oops
<FromGitter> <waghanza> 😛
<FromGitter> <waghanza> do you have an example of the route ?
<FromGitter> <Blacksmoke16> sorry?
<FromGitter> <waghanza> `get "/user/:id", ApplicationController, :get, contraints: {"id" => /\d+/}` lead to a *no argument named 'contraints'*
<FromGitter> <waghanza> and there is not doc for this
<FromGitter> <Blacksmoke16> the router supports it but there isn't a way to define the constraints on a route atm
<FromGitter> <waghanza> ok
<FromGitter> <waghanza> I'll keep in touch
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <waghanza> or if you can add a constraint on https://github.com/the-benchmarker/web-frameworks/pull/1155, il will be 🎉