jhass changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Crystal 0.35.1 | 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
deavmi has quit [Ping timeout: 246 seconds]
deavmi has joined #crystal-lang
<FromGitter> <mixflame> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f1e1b8bb1409c060f86ca78]
<FromGitter> <Blacksmoke16> :thinking:
oddp has quit [Ping timeout: 264 seconds]
<FromGitter> <Blacksmoke16> does it say what the error is?
<FromGitter> <Blacksmoke16> i.e. why `atomic_write.cr` failed to clone?
<FromGitter> <mixflame> no. seems like networking is disabled
<FromGitter> <mixflame> not sure tho
<FromGitter> <Blacksmoke16> was that in the GH action?
<FromGitter> <mixflame> no
<FromGitter> <mixflame> this is on my xubuntu machine with the project cloned running snapcraft
<FromGitter> <mixflame> the GH action works
<FromGitter> <Blacksmoke16> ah, make sure you can connect to the internet then ofc
<FromGitter> <mixflame> well the snapcraft vm doesn't come with ping but it's able to install ubuntu packages
<FromGitter> <mixflame> i'm trying again on "core" right now
<FromGitter> <mixflame> do you have GH actions build your snaps too?
<FromGitter> <Blacksmoke16> no
<FromGitter> <Blacksmoke16> that happens via their github integration
<FromGitter> <mixflame> oh
<FromGitter> <Blacksmoke16> mhm
<FromGitter> <mixflame> ah. I noticed snapcraft is disconnecting my wifi I think
<FromGitter> <Blacksmoke16> oh?
<FromGitter> <ergoa2001> Hey!
<FromGitter> <mixflame> hey
<FromGitter> <Blacksmoke16> o/
<FromGitter> <ergoa2001> Just wanted to ask if someone has had any experiences with crimgui
<FromGitter> <Blacksmoke16> nope
<FromGitter> <ergoa2001> The Crystal bindings for imgui
<FromGitter> <ergoa2001> Took me quite some time to get it to actually find cimgui
<FromGitter> <ergoa2001> But even after that I'm running into errors
<FromGitter> <Blacksmoke16> oh?
<FromGitter> <ergoa2001> Getting some invalid memory accesses
<FromGitter> <Blacksmoke16> rip
<FromGitter> <ergoa2001> I actually found where the error comes from, but I have no idea how to fix that
<FromGitter> <Blacksmoke16> if i had to guess id say the bindings are wrong/outdated compared to what version you're using
<FromGitter> <ergoa2001> Well yeah it was last updated 5 months ago
<FromGitter> <Blacksmoke16> prob easier to just use a more up to date gui shard?
<FromGitter> <ergoa2001> I guess
<FromGitter> <ergoa2001> Really like the look of imgui
<FromGitter> <ergoa2001> Working on a psx emulator
<FromGitter> <mixflame> I think I found out why it's not working again @Blacksmoke16 . I lack git on the vm
<FromGitter> <Blacksmoke16> that would do it
<FromGitter> <Blacksmoke16> @ergoa2001 other option is to ofc report the issues with example code and see if its being maintained
<FromGitter> <ergoa2001> Mhm, will do it tomorrow!
<FromGitter> <mixflame> ok I think I'm close to having a snap
<FromGitter> <mixflame> we'll see soon
<FromGitter> <Blacksmoke16> whoo!
<FromGitter> <mixflame> :D
<FromGitter> <mixflame> I just fixed a bug in sodium.cr as a result of it
<FromGitter> <mixflame> I successfully made a snap, but I'm trying again with my fork so that it persists my fix
<FromGitter> <Blacksmoke16> sounds like a plan
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 256 seconds]
chachasmooth has quit [Ping timeout: 240 seconds]
chachasmooth has joined #crystal-lang
ua has quit [Ping timeout: 246 seconds]
<FromGitter> <mixflame> ok I've been fighting permissions in my snaps but I think I got it. I needed "home" and "network-bind" in plugs since I open a socket
<FromGitter> <mixflame> snap build takes like 30 minutes or more on my $200 dollar 5 year old linux lappy lol
<FromGitter> <mixflame> finally my snap works
_whitelogger has joined #crystal-lang
ua has joined #crystal-lang
_whitelogger has joined #crystal-lang
postmodern has joined #crystal-lang
<FromGitter> <bararchy> When I get crash with exit status 11 and error: `mmap(PROT_NONE) failed` is there a way to know where this is happening? I don't get any stack trace
Vexatoast has joined #crystal-lang
Vexatos has quit [Write error: Connection reset by peer]
HumanG33k has quit [Ping timeout: 264 seconds]
<oprypin> mixflame: didn't you notice the hate train towards snap lately 🤔
HumanG33k has joined #crystal-lang
oddp has joined #crystal-lang
<FromGitter> <naqvis> @bararchy I would have run the app with GC disabled, as mostly GC is the culprit
<FromGitter> <naqvis> so maybe you can give it a shot, either compile with GC disabled or run via `GC_DONT_GC=1 ./bin/your_app` and see if you get more details
HumanG33k has quit [Ping timeout: 246 seconds]
<FromGitter> <bekto> Hi everybody. Has anyone encountered this issue: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5f1ea8ccd7efe5438f24496c]
postmodern has quit [Quit: Leaving]
<FromGitter> <naqvis> @bekto can you provide more context on what code is triggering this error? From the description, there is no way on the reason of you receiving this error
sagax has quit [Remote host closed the connection]
sagax has joined #crystal-lang
Munto has quit [Ping timeout: 264 seconds]
Vexatoast has quit [Quit: ZNC Quit]
Vexatos has joined #crystal-lang
robacarp has joined #crystal-lang
<robacarp> with more recent crystal, Kemal seems to be broken with a Gzip error. I thought I remembered seeing that someone had forked Kemal and was actively maintaining the fork but I can't seem to find that now. Am I imagining that?
<FromGitter> <Blacksmoke16> update kemal to latest commit/master branch
<FromGitter> <Blacksmoke16> but you're prob thinking of Grip, which isnt a 1:1 fork of kemal
<robacarp> oh there's a fix but it's not tagged?
<FromGitter> <Blacksmoke16> right
<robacarp> ugh, ok
<robacarp> is Kemal all but abandoned at this point?
<FromGitter> <Blacksmoke16> :shrug:
<robacarp> thanhks for the fix @blacksmoke16
<FromGitter> <Blacksmoke16> np
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
<FromGitter> <j8r> Remind me I have to had gripen to awesome-crystal :P
<FromGitter> <j8r> AFAIK https://github.com/grip-framework/gripen is the one that looks the closer to Kemal/Sinatra, but I have just looked to awesome-crystal to say that
<FromGitter> <j8r> @Blacksmoke16 Dis you know we can create abstract class methods, sort of?
<FromGitter> <Blacksmoke16> yes
<FromGitter> <j8r> does it work well?
<FromGitter> <Blacksmoke16> not sure, dont think I used it for anything yet
<FromGitter> <j8r> I know that using module composition instead of inheritance does not make the type system happy at times
<FromGitter> <j8r> yeah it won't for my case: https://carc.in/#/r/9gm2
<FromGitter> <j8r> (I know, I already opened an issue for this)
<FromGitter> <j8r> just tried with `extend` instead of `include`
<FromGitter> <Blacksmoke16> https://carc.in/#/r/9gm4 ?
<FromGitter> <j8r> right, why does it work?
<FromGitter> <j8r> It is a class type, not an instance of B?
<FromGitter> <Blacksmoke16> because of the semantics of `extend`
<FromGitter> <Blacksmoke16> like `A.class` is prob not what you want
<FromGitter> <Blacksmoke16> but by using `extend` it makes `A` something something, i can't recall the exact logic
HumanG33k has quit [Ping timeout: 240 seconds]
HumanG33k has joined #crystal-lang
Munto has joined #crystal-lang
<FromGitter> <Blacksmoke16> https://dev.to/blacksmoke16/utilizing-macros-annotations-in-a-web-framework-part-2-1453 wrote part 2 related to the "framework" i created for accessing annotation data at runtime
Munto has quit [Ping timeout: 256 seconds]
Munto has joined #crystal-lang
<FromGitter> <watzon> Question. Is there a decent way to move the decimal place of a number two places to the left without converting the number to a string first? For instance, 1999 should become 19.99 and 122092 should become 1220.92.
<FromGitter> <watzon> Come to think of it, a string is probably the best answer since converting to a Float could result in some weird things happening
<FromGitter> <Blacksmoke16> `num / 100`?
<FromGitter> <watzon> Ahh duh lol. Still probably not the best route now that I think of it. Some floats will definitely get fucked up.
<FromGitter> <watzon> There we go https://carc.in/#/r/9gmj
<FromGitter> <watzon> Wait, https://carc.in/#/r/9gml there we go
Munto has quit [Ping timeout: 246 seconds]
Munto has joined #crystal-lang
<FromGitter> <hugopl> See `Number#humanize`, it may help you
<FromGitter> <hugopl> or: ⏎ ⏎ ```a = 23 ⏎ puts "#{a // 100}.#{a % 100}"``` [https://gitter.im/crystal-lang/crystal?at=5f1f3b5e77eccd0e147bc415]
renich has joined #crystal-lang
renich has quit [Quit: renich]
V has joined #crystal-lang
oddp has quit [Ping timeout: 240 seconds]