DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 260 seconds]
Raimondii is now known as Raimondi
unshadow has joined #crystal-lang
A124 has joined #crystal-lang
Ven has joined #crystal-lang
danielpclark has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<danielpclark>
Hey all! I just ported the first Ruby gem I ever wrote over to Crystal as my first shard. It's on Github, where do I publish it? (like crystalshards.xyz)
<danielpclark>
I can't seem to find a publish script, command, or form.
<BlaXpirit>
danielpclark, there is no such thing. putting it on github is publishing it
<danielpclark>
I see. Then maybe crystalshards.xyz scrapes Github for them.
<BlaXpirit>
danielpclark, yes basically
<BlaXpirit>
what you might want to do is letting people know about it
<jokke>
adam12: as explained in the readme, crouter generates all routes at compile time which is also responsible for the good performance during runtime
<jokke>
it would be interesting to see if the performance gain is in any relation to the compile time.
<jokke>
maybe i'll create a "runtime" branch at some time and benchmark the different implementations
<jokke>
i'm glad to see people use crouter :) Even with mighty alternatives such as kemal out there
bjz_ has joined #crystal-lang
<RX14>
I would use kemal if it had the option of routes not being at the top level...
<RX14>
I recently made my own tiny little router which I like though, using the radix tree shard that kemal uses too
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kug3lis has joined #crystal-lang
unshadow has quit [Quit: leaving]
DeBot has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Quit: Leaving.]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has quit [Client Quit]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 245 seconds]
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
FromGitter has joined #crystal-lang
FromGitter has quit [Remote host closed the connection]
<BlaXpirit>
note: in the last few days Gitter has been unstable, so the bridge bot was inactive for about a day, and then for the last day, the bot was able only to send messages from IRC to Gitter, not the other way. the streaming API (to receive messages) returns 502 Bad Gateway
FromGitter has joined #crystal-lang
<Papierkorb>
oh boy
unshadow has joined #crystal-lang
bew78 has joined #crystal-lang
<danielpclark>
Hey all, I ported the first Ruby gem I ever wrote over to Crystal as my first shard. https://github.com/danielpclark/mightystring.cr . It adds some helpful methods for strings.
<RX14>
danielpclark, looks nice, a few comments: #first and #last could return Char instead of a String, and "0".."9" should work instead of the Range.new
<adam12>
jokke: Crouter is nice, thanks. I like Kemal too but I prefer to have my routes inside a class. I don't know where the performance hit is - I moved on temporarily.
<danielpclark>
Thanks for the tips. I haven't used Crystal much so I'm not sure how important it is for single characters to be Char. I wrote it to preserve original behavior.
<danielpclark>
Which may not be ideal...
<RX14>
well it'll obviously still work, but returning char would be more consistent with the stdlib
<RX14>
if it's guaranteed to be a string with only 1 char anyway
<danielpclark>
Right.
<jokke>
danielpclark: chars can be concatenated with strings and be used in string interpolation so for most use cases i think returning a char should be fine
<RX14>
there's no real disadvantage as I see it
<jokke>
^
<RX14>
plus, char is represented as an integer instead of a class, so it's got a performance advntage
<jokke>
i was thinking of writing something similar to davenport/rofi in crystal but using a higher abstraction level for the ui and to be usable as a lib. any suggestions for a ui library that works with crystal?
<jokke>
i think jhass wrote bindings for gtk+ but gtk+ seems too much for this simple gui
<jokke>
basically i only have a text field which narrows down a list with fuzzy search