ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has quit [Ping timeout: 255 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
irc_user has joined #crystal-lang
ur5us has joined #crystal-lang
_ht has joined #crystal-lang
Sankalp has quit [Ping timeout: 244 seconds]
Sankalp has joined #crystal-lang
typeof[panda] has joined #crystal-lang
_ht has quit [Remote host closed the connection]
Sankalp has quit [Ping timeout: 246 seconds]
Sankalp has joined #crystal-lang
typeof[panda] has quit [Quit: Client closed]
Sankalp has quit [Ping timeout: 244 seconds]
Sankalp has joined #crystal-lang
jmdaemon has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 250 seconds]
Sankalp has quit [Ping timeout: 258 seconds]
Sankalp has joined #crystal-lang
sagax has joined #crystal-lang
<irc_user> Hi, crystal seems pretty awesome. I'm looking to make a TUI text editor that's as snappy/responsive as possible, and I notice on these benchmarks: https://programming-language-benchmarks.vercel.app/problem/helloworld that crystal is at 4ms, while go is at 1ms. I guess this question isn't necessarily super crystal-specific, but I'm wondering why one lang would have faster IO than another?
<FromGitter> <Blacksmoke16> prob depends on how they implement the IO interaction. i.e. crystal has evented IO, so i imagine that adds some overhead on trivial examples like this
<FromGitter> <Blacksmoke16> e.g. say you wanted to write data to some IO and it was busy and couldnt accept it, Crystal would be able to execute other fibers while waiting for that
<irc_user> Blacksmoke16: Thanks for taking a look! In the case of a TUI, then, would there be a way to make keypresses show up on the screen as instantaneously as possible? I know 4ms is already really low, but I'm still interested in learning more about optimizing this sort of thing.
<FromGitter> <Blacksmoke16> not sure, you'd have to play around with it to see if its fast enough for you already. otherwise then can dive into seeing if it can be improved in same way or another
<irc_user> Okay, thank you :)
_ht has joined #crystal-lang
jmdaemon has joined #crystal-lang
_ht has quit [Remote host closed the connection]
sagax has quit [Remote host closed the connection]
sagax has joined #crystal-lang
ur5us has joined #crystal-lang