<FromGitter>
<watzon> As far as errors go, am I alone in thinking it would be game changing to have errors more like Rust has? Or Flutter? Or Elm? Lol. Crystal’s errors aren’t bad, but they could be so much better.
<FromGitter>
<Blacksmoke16> prob the good ol, just needs someone to do it
<FromGitter>
<Dan-Do> I guess not. Just search around your github code, you don't overwrite the method `process_request` of HTTP::Handler
<FromGitter>
<Dan-Do> How about your grip framework, @grkek ?
postmodern has quit [Quit: Leaving]
lanodan has joined #crystal-lang
ua has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #crystal-lang
ua has joined #crystal-lang
repo has quit [*.net *.split]
frojnd has quit [*.net *.split]
snapcase has quit [*.net *.split]
frojnd has joined #crystal-lang
repo has joined #crystal-lang
snapcase has joined #crystal-lang
sagax has joined #crystal-lang
lanodan has quit [Ping timeout: 260 seconds]
lanodan has joined #crystal-lang
<FromGitter>
<Blacksmoke16> @Dan-Do I'd hae to try those steps, if its an issue with the stdlib's implementation then yes. But to your point I'm not overriding anything so if its an issue with something those libs are overriding, then no it wouldn't affect Athena
<FromGitter>
<Blacksmoke16> have*
<FromGitter>
<Blacksmoke16> i can try it and let you know
<FromGitter>
<Blacksmoke16> on chrome at least. FIrefox works a bit different as i didnt see a request come in after hitting back button. Probably does more caching as the page was displayed
<hightower2>
Hey let's say I have something that's executing 100 times per second. Basically just one character of a string is changed, and than that string is printed to an IO. This is lower-level where I control it, it's not like String is necessary for user convenience. Would you suggest some other data structure for this then? Like Bytes or even IO::Memory?
<oprypin>
hightower2, Bytes is fine. also if you say one character, is it always in the same position?
<hightower2>
Well, position may change, I would have to have a variable specifying which index it is.
<oprypin>
hightower2, no but within those 100 times per second does it also change all the time?
<hightower2>
But yes, in most cases (when nothing is resized etc.) it will always be the same index.
<oprypin>
you could store String, Char, String and change just the char
<hightower2>
Yes, that's what I already do, but this is a step where I basically "format" the whole thing in a form ready to be printed to the IO at will.
<hightower2>
So basically I am trying to add an optimization where instead of "reformatting" I'd just know where the one byte of change is.
<oprypin>
hightower2, why dont you print 3 separate things to the io
<oprypin>
anyway, Bytes is the way
<hightower2>
Yes, got it, thanks. I mean let's say I have a checkbox with title "XYZ" and state checked. So I need to render "[*] XYZ". But this can be word-wrapped or changed in various other ways before being ready for printing out.
<hightower2>
And I am optimizing this, so that I format once, and only change the byte with "*", without touching the rest.
<hightower2>
(that's why I couldn't just do: io << pre << char << mid << title << end)
<FromGitter>
<Where_Is_X_twitter> 🌊 I have a Hash(String, Proc) and some of the Procs accept 1 argument, while other Procs accept 0 argument. I'm trying to case on Proc.arity and I'm hitting compiler overload errors: `Proc(String)#call' with type String` anyone have advice?
<hightower2>
Have an example of your current code? You could #as() the proc, even though that's not really elegant