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: 244 seconds]
ur5us_ has joined #crystal-lang
<FromGitter> <didactic-drunk> Are you closing the socket directly or via `http.close`?
<FromGitter> <didactic-drunk> If you're closing the socket directly the bug is fixed in `master`
<FromGitter> <aaaScript> I'm doing it via `http.close`. I'll try to dissect it some more or play with different ways of closing it.
<FromGitter> <didactic-drunk> Before and after close ⏎ ⏎ ```p http.@sockets.map(&.closed?) ⏎ p http.@sockets # or``` [https://gitter.im/crystal-lang/crystal?at=60d2adca258ebf6d92e3b78e]
postmodern has quit [Quit: Leaving]
ur5us_ has quit [Ping timeout: 244 seconds]
<FromGitter> <HertzDevil> anyone want to try out compiler-explorer/compiler-explorer#2732 locally
<FromGitter> <naqvis> Thank you @HertzDevil 👍
ur5us_ has joined #crystal-lang
ur5us_ has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
fifr has quit [Ping timeout: 265 seconds]
<FromGitter> <HertzDevil> needing some help here
ur5us has quit [Ping timeout: 264 seconds]
fifr has joined #crystal-lang
ua_ has joined #crystal-lang
Guest96 has joined #crystal-lang
Guest96 has quit [Client Quit]
maria_elis has quit [Ping timeout: 268 seconds]
straight-shoota has quit [Ping timeout: 252 seconds]
edegaru has joined #crystal-lang
straight-shoota has joined #crystal-lang
maria_elis has joined #crystal-lang
<FromGitter> <aaaScript> > Before and after close ⏎ > ``` ⏎ > p http.@sockets.map(&.closed?) ⏎ > p http.@sockets # or ⏎ > ``` ... [https://gitter.im/crystal-lang/crystal?at=60d342708c12474d8ccad1a3]
Javier06 has joined #crystal-lang
Javier06 has quit [Client Quit]
<FromGitter> <didactic-drunk> @aaaScript Empty `@sockets` explains why `close` doesn't work. `p @sockets` before & after `bind` & `listen`. The array probably gets nuked after `listen` or it wouldn't accept connections at all
maria_elis has quit [Read error: Connection reset by peer]
maria_elis has joined #crystal-lang
hightower2 has joined #crystal-lang
<FromGitter> <rishavs> does anyone here uses Sublime Text 4 for crystal dev work? How is the IDE support on sublime. I see that the sublime plugin calls out support for only 2/3 and has fairly slow development. ⏎ I am having issues with VS Code and was thinking of trying out alternatives
edegaru2 has joined #crystal-lang
edegaru has quit [Ping timeout: 250 seconds]
edegaru2 has quit [Ping timeout: 252 seconds]
Guest12 has joined #crystal-lang
<Guest12> Hi all. I am wondering if anyone has a suggestion for creating cross platform UI. I need to target Android specifically so I thought web base would be logical. Although I don't want to touch html/CSS etc. I was hoping there would be a way to make, say imgui, accessable to an android client via http or the like.
<Guest12> Or if any of the current web frameworks for crystal have a built in UI builder that is able to be constructed from within crystal.
Guest1243 has joined #crystal-lang
Guest12 has quit [Ping timeout: 246 seconds]
Guest1243 has quit [Client Quit]
<jhass[m]> you gonna have a hard time with crystal there right now honestly, also because for Android 32 bit ARM is still a relevant target and not even our 64 bit ARM support is in perfect shape
<jhass[m]> Have a look at Flutter maybe
<FromGitter> <watzon> @rishavs VS Code currently has the best Crystal support. It's not stellar, but that's more a lack of a decent language server than anything.
<ua_> he waited whole 6.5 minutes lmao
<FromGitter> <Blacksmoke16> hm?
<ua_> i mean Guest12
<ua_> and he should just use react / react native if anyone cares about answer to his question lol
<FromGitter> <Daniel-Worrall> Oh, did he leave the irc?
<ua_> no html/css sure, sadly its the world we live in
<FromGitter> <watzon> He said he didn't want to touch HTML/CSS
<ua_> yeah
<FromGitter> <watzon> Flutter is the way imo
<FromGitter> <Daniel-Worrall> Flutter is nice
<FromGitter> <rishavs> flutter is indeed his best bet
<FromGitter> <Blacksmoke16> just return JSON
<FromGitter> <Blacksmoke16> who needs a UI
<FromGitter> <watzon> ++
<FromGitter> <watzon> UIs are for chumps
<FromGitter> <Blacksmoke16> ascii art formatted tables
<FromGitter> <watzon> Just emulate VIM
<FromGitter> <rishavs> just hire mimes to read the json and act on it
ua_ has quit [Ping timeout: 250 seconds]
maria_elis has quit [Ping timeout: 264 seconds]
maria_elis has joined #crystal-lang
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 258 seconds]
<FromGitter> <aaaScript> > @aaaScript Empty `@sockets` explains why `close` doesn't work. `p @sockets` before & after `bind` & `listen()`. The array probably gets nuked after `listen` or it wouldn't accept connections at all ⏎ ⏎ @didactic-drunk It returns socket output after `bind_tls` and `listen` as expected. However, it just seems to get wiped like you mentioned. It's kind of weird. I'm not overwriting the object or
<FromGitter> ... anything.
hightower2 has joined #crystal-lang
hightower2 has quit [Ping timeout: 250 seconds]
ur5us has quit [Quit: Leaving]
ur5us has joined #crystal-lang