ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Crystal 0.36.0 | Fund Crystal's development: | GH: | Docs: | Gitter:
bazaar has quit [Ping timeout: 240 seconds]
bazaar has joined #crystal-lang
woodruffw has quit [Excess Flood]
ua has quit [Excess Flood]
woodruffw has joined #crystal-lang
ua has joined #crystal-lang
oddp has quit [Ping timeout: 246 seconds]
<FromGitter> <Blacksmoke16> raz i added 2 new paragraphs related to their usage with env vars, and the benefits it provides
<FromGitter> <Blacksmoke16> ofc is nothing forcing you to use it, but :shrug:
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 272 seconds]
Stephanie has joined #crystal-lang
aquijoule_ has joined #crystal-lang
<FromGitter> <HertzDevil> when will crystal playground have 0.36.0
<FromGitter> <HertzDevil> or nightly for that matter
woodruffw has quit [*.net *.split]
richbridger has quit [*.net *.split]
entel has quit [*.net *.split]
Stephie has quit [*.net *.split]
justinmcp has quit [*.net *.split]
riffraff169 has quit [*.net *.split]
woodruffw has joined #crystal-lang
sz0 has quit [Ping timeout: 246 seconds]
jetpack_joe has quit [Ping timeout: 246 seconds]
sz0 has joined #crystal-lang
justinmcp has joined #crystal-lang
chachasmooth has quit [Ping timeout: 272 seconds]
jetpack_joe has joined #crystal-lang
entel has joined #crystal-lang
chachasmooth has joined #crystal-lang
avane has quit [Quit: ZNC -]
avane has joined #crystal-lang
deavmi has quit [Ping timeout: 272 seconds]
deavmi has joined #crystal-lang
<FromGitter> <Blacksmoke16> wasnt there an issue about highlighting what argument(s) doesn't match when you get the `no overload matches` error?
<FromGitter> <Blacksmoke16> so i was thinking about the shard override feature
<FromGitter> <Blacksmoke16> was wondering if something like would be a cleaner approach
<FromGitter> <Blacksmoke16> ```code paste, see link``` []
<FromGitter> <Blacksmoke16> resolution would consider the version of that as `0.2.0` so other deps that have it required as `~> 0.2.0` would be fine
<FromGitter> <watzon> @Blacksmoke16 shard override feature?
<FromGitter> <watzon> Oh interesting
<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> <Blacksmoke16> this is a good start :p
<FromGitter> <watzon> I know half the time I spend debugging is just trying to dig through a stack trace to find the actual problem
<FromGitter> <Blacksmoke16> 😢
ua has quit [Excess Flood]
ua has joined #crystal-lang
skrzyp has quit [Remote host closed the connection]
skrzyp has joined #crystal-lang
duane has quit [Ping timeout: 256 seconds]
duane has joined #crystal-lang
_ht has joined #crystal-lang
oddp has joined #crystal-lang
duane has quit [Ping timeout: 240 seconds]
duane has joined #crystal-lang
<FromGitter> <Dan-Do> Hi @Blacksmoke16, do you have this issue on Athena? ⏎
<FromGitter> <Dan-Do> See my comment on how to re-produce ⏎
<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
yxhuvud has quit [Quit: - Chat comfortably. Anywhere.]
yxhuvud has joined #crystal-lang
aquijoule_ has quit [Read error: Connection reset by peer]
<FromGitter> <Blacksmoke16> @Dan-Do I tried those steps in that comment and it worked fine
<FromGitter> <Blacksmoke16> ```code paste, see link``` []
<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
ua has quit [Ping timeout: 264 seconds]
ua has joined #crystal-lang
willamin has quit []
alexherbo2 has quit [Quit: The Lounge -]
postmodern has joined #crystal-lang
deavmi has quit [Ping timeout: 264 seconds]
deavmi has joined #crystal-lang
avane has quit [Ping timeout: 264 seconds]
avane has joined #crystal-lang
f1reflyylmao is now known as f1refly
_ht has quit [Remote host closed the connection]
dom96 has joined #crystal-lang
hightower2 has joined #crystal-lang
<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
deavmi has quit [Ping timeout: 256 seconds]
deavmi has joined #crystal-lang