Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 264 seconds]
learod has quit [Remote host closed the connection]
duane has quit [Ping timeout: 276 seconds]
duane has joined #crystal-lang
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
Yxhuvud has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 276 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 246 seconds]
V`gerN3OJ0O has joined #crystal-lang
<V`gerN3OJ0O>
THIS IS A FREENODE BREAKING NEWS ALERT!! Hitechcg AND opal ARE GOING AT IT RIGHT NOW WITH A LOT OF FIGHTING AND ARGUING WOW YOU DON'T WANT TO MISS THIS!! TYPE /JOIN ## TO SEE THE ACTION...AGAIN TYPE /JOIN ## TO SEE THE ACTION!!
<V`gerN3OJ0O>
THIS IS A FREENODE BREAKING NEWS ALERT!! Hitechcg AND opal ARE GOING AT IT RIGHT NOW WITH A LOT OF FIGHTING AND ARGUING WOW YOU DON'T WANT TO MISS THIS!! TYPE /JOIN ## TO SEE THE ACTION...AGAIN TYPE /JOIN ## TO SEE THE ACTION!!
<FromGitter>
<watzon> > Yxhuvud duane DTZUZU ssvb ua_ p0p0pr37 Groogy marius hightower2 ... ⏎ What the fuck even is this?
alex`` has joined #crystal-lang
<Groogy>
Yxhuvud yeah back now, been switching job so been having double workload for a while sortoff
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 264 seconds]
<FromGitter>
<chillfox> Hi, ⏎ ⏎ I want to pull a picture from S3, modify it, then serve it over http. I can get kemal and awscr-s3 working together, but I cant figure out how to get it working with magicwand-crystal. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5aaa2119f3f6d24c68788439]
<Yxhuvud>
Groogy: no longer at paradox or switch within?
<FromGitter>
<chillfox> I basically can't figure out how to convert what I get from awscr to something magicwand will accept.
<FromGitter>
<aisrael> Curious: is anyone working on Cucumber for Crystal?
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 264 seconds]
Papierkorb has joined #crystal-lang
Papierkorb has left #crystal-lang ["Konversation terminated!"]
return0e_ has joined #crystal-lang
flaviodesousa has joined #crystal-lang
return0e has quit [Read error: No route to host]
return0e_ has quit [Ping timeout: 252 seconds]
alex`` has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
Groogy_ has joined #crystal-lang
Groogy has quit [Disconnected by services]
Groogy_ is now known as Groogy
<Groogy>
Morning!
<Groogy>
is good to be back :D
Groogy2 has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
<FromGitter>
<straight-shoota> @bew about exceptions, most of those listed for puts are highly unlikely (for example zero division) and should not be raised at all because the values involved are safeguarded against it.
<FromGitter>
<straight-shoota> There is little benefit from having a list of exceptions that could theoretically be raised but actually never will.
<FromGitter>
<straight-shoota> Every method should declare which exceptions can likely be raised when calling it.
<FromGitter>
<straight-shoota> In the API docs
<FromGitter>
<watzon> I'm on a freaking roll tonight. Just got sentiment analysis added to cadmium.
<Groogy>
The first one is easier to read I think but the second one is better flow wise?
<Groogy>
With the second one it feels more like you do one piece at a time "Calculate these things together and then append to the array"
<Groogy>
though it does mean I guess you have a temp array in between
<FromGitter>
<j8r> yes you're right
<Groogy>
So yeah I would say it depends on if that code is gonna be sensitive for having that extra allocation or not
<Groogy>
otherwise I prefer that one, it is more Crystal-esque and follows more nicely in my head
learod has joined #crystal-lang
learod has quit [Client Quit]
<FromGitter>
<jlebray> Wouldn't the second one just add the unparsed words to the address? Or you meant .map instead of .each
<Groogy>
ah yeah I also read it as .map
<Groogy>
or wait it was map when I read it xD he changed it
edfk2012 has joined #crystal-lang
edfk2012 has quit [Remote host closed the connection]
<FromGitter>
<j8r> yes i've wanted to change just the first one
<FromGitter>
<j8r> but change both by mistake
<FromGitter>
<reiswindy> @chillfox
<FromGitter>
<reiswindy> There's readImageBlob for reading from a string
sz0 has joined #crystal-lang
tilpner has quit [Remote host closed the connection]
tilpner has joined #crystal-lang
<jokke>
102
<jokke>
sorry
<jokke>
:D
DTZUZO has quit [Ping timeout: 240 seconds]
bmcginty has quit [Ping timeout: 240 seconds]
bmcginty has joined #crystal-lang
greengriminal has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
return0e has joined #crystal-lang
greengriminal has joined #crystal-lang
Disrecollection has joined #crystal-lang
greengriminal has quit [Client Quit]
<FromGitter>
<watzon> Is there a way to have multiple modules add a value to a hash when included? For instance I want to have multiple Dictionary modules that can be included. As each one is included the class variable `@dictionaries` should have the dictionaries value added to it. So when I include `Dictionaries::EnglishUS` the class variable `@dictionaries` should have `"en" => [ ... ]` added to it.
<FromGitter>
<watzon> Or maybe there's a better way to do what I'm thinking. I'm getting ready to add spell check to Cadmium, but I don't want to include a bunch of dictionaries. I'd rather have each one as a separate shard so that the Dictionary module can just be imported if it's needed.
<FromGitter>
<watzon> I figured I might be able to do it in the `included` macro. But I'd need to be able to check of the class variable has been defined before trying to define it.
<crystal-gh>
[crystal] ysbaddaden closed pull request #5776: Refactor `HTTP::Server` to bind to multiple addresses (master...jm/feature/http-server-interfaces) https://git.io/vA7ad
<crystal-gh>
[crystal] ysbaddaden reopened pull request #5776: Refactor `HTTP::Server` to bind to multiple addresses (master...jm/feature/http-server-interfaces) https://git.io/vA7ad
greengriminal has joined #crystal-lang
tilpner_ has joined #crystal-lang
tilpner has quit [Ping timeout: 264 seconds]
tilpner_ is now known as tilpner
<FromGitter>
<watzon> Never mind. I don't see it being possible and it's probably not the best idea anyway.
sz0 has quit [Quit: Connection closed for inactivity]
<FromGitter>
<faustinoaq> BTW, Techempower is empowering up their servers 🚀 ⏎ ⏎ > Their contribution allowed us to continue testing on physical hardware with 10-gigabit Ethernet. Ten-gigabit Ethernet gives the highest-performing frameworks opportunity to shine
<FromGitter>
<faustinoaq> althoush, crystal seems to be offering the same performance 😓
<RX14>
"We have retired the hardware environment provided by Server Central" " We want to sincerely thank Server Central for having provided servers from their lab environment to our project." "Their contribution allowed us to continue testing on physical hardware with 10-gigabit Ethernet."
<FromGitter>
<straight-shoota> the incremental counter will be in the expanded source code, but it is most likely optimized away by LLVM since it's not used anywhere
<FromGitter>
<straight-shoota> I didn't double check what LLVM emits, but it should remove it
<FromGitter>
<straight-shoota> you can always use `while` instead, if it still bugs you
<sevensidedmarble>
hey guys, I had some code in the past that worked in crystal .23 that called Process.run, and passed in the arguments output: true and error: true, but according to the docs these options are no longer booleans but are now Process::stdio. So I went to the docs, and for .24 I don't really see much of an explanation on Process::Stdio, (https://crystal-lang.org/api/0.24.1/Process/Stdio.html) although the
<sevensidedmarble>
version of the docs for .23 actually said more about it. I guess I'm just wondering how I can accomplish the same thing I had in .23 with those boolean flags in .24.
<FromGitter>
<mikeyhew> shouldn't that be a compiler error then
<FromGitter>
<mikeyhew> Oh
<FromGitter>
<straight-shoota> yeah. I really don't know why this is method is defined on object
<FromGitter>
<mikeyhew> that's tricky
<FromGitter>
<mikeyhew> Anyway, it turned out I just needed `Char#ascii_letter?`
<FromGitter>
<straight-shoota> 👍
<FromGitter>
<mikeyhew> I guess regexes on char's aren't really that useful, especially if there's methods that that do pretty much anything you'd want to use a regex for
<FromGitter>
<straight-shoota> exactly
<FromGitter>
<straight-shoota> even for strings you can avoid many regexes by using simple string/char functions
<FromGitter>
<mikeyhew> first of all, what's a named argument?
<FromGitter>
<mikeyhew> it's not a keyword argument (which is what "named argument" means to me)
<FromGitter>
<mikeyhew> and why can't I do this?
<FromGitter>
<mikeyhew> Ohhh, I need to pass the string separately
<FromGitter>
<bew> no, you forgot `.new`
<FromGitter>
<bew> should be `ArgumentError.new "invalid blablabla.."`
<FromGitter>
<mikeyhew> oh. Thanks @bew
<FromGitter>
<mikeyhew> Can someone explain what the error that I'm getting actually is? I can't find it on stack overflow or in the crystal-lang/crystal repo
<FromGitter>
<bew> never had this error before..
<FromGitter>
<bew> basically it's parsed as a generic class which takes a string literal as first generic argument, and it tells you that you can't use interpolation (the `#{bla}` in strings) as a generic arg, or sth like that (which makes sense)