<FromGitter>
<Willyboar> lol. I told you to test elementary
<FromGitter>
<Willyboar> i use it in old amd laptop w/ 4 gb ram and HDD
<FromGitter>
<Willyboar> and is running smoothly
<FromGitter>
<Willyboar> @girng 🆙
<FromGitter>
<Blacksmoke16> iirc Alpine is only one you can staticly build on, so if you getting it for crystal, that would prob be bets?
Raimondi has quit [Ping timeout: 240 seconds]
Groogy has quit [Read error: Connection reset by peer]
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter>
<girng> @Willyboar lol yeah. i will prob use that but just wanted to get some activity going on the forum too
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron- has joined #crystal-lang
laaron- has quit [Remote host closed the connection]
laaron has joined #crystal-lang
shmibs has quit [Quit: leaving =o]
shmibs has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter>
<Blacksmoke16> @vladfaust Prob not a bad idea, my site for another side project is using it atm. But its only 1 endpoint so not much to go off of ha
<FromGitter>
<DanilaFe> definitely do not stay root. sudo is a big part of the process, and it lets you know that you may potentially be running destructive actions
<FromGitter>
<DanilaFe> I think there are a few arch-based distros that don't force manual install, like manjaro and antegros (?)
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
marmotini has joined #crystal-lang
marmotini_ has quit [Client Quit]
marmotini_ has joined #crystal-lang
<FromGitter>
<spTorin> Ubuntu based distro and some other not have root user (and its good). Not need su command with root password. Just use `sudo -i` and own password.
<FromGitter>
<nagash> @DanilaFe The problem is your setter type `Int64?`
<FromGitter>
<nagash> @DanilaFe Actually that's not right. I suspect the problem lies in whatever other type of object could be in the `item.body` Enumerable. ⏎ You could fix it with `item.body.select(&.is_a?(Terminal)).map(&.as(Terminal)).max_of?(&.id) || 0_i64`, or you can fix the other `item.body` objects `id` property to not be `(Int64 | Nil)`
spacemanspam has quit [Read error: Connection reset by peer]
ashirase has quit [Ping timeout: 272 seconds]
ashirase has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #crystal-lang
_whitelogger has joined #crystal-lang
laaron has joined #crystal-lang
<FromGitter>
<girng> good morning!!
<FromGitter>
<bew> Good afternoon!!
<FromGitter>
<girng> 😆
<FromGitter>
<bew> @DanilaFe you can simplify the `id` method's code by doing: `def id; @id || raise_general "...", internal: true; end`
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
laaron has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> looks like clear of 50% faster
<FromGitter>
<Blacksmoke16> proven with science and multiple supporting evidence :p
<FromGitter>
<kinxer> ^
<FromGitter>
<kinxer> :P
<FromGitter>
<girng> thx
jemc has joined #crystal-lang
devil_tux has joined #crystal-lang
<FromGitter>
<girng> i love how the db module lets you interact with db queries in a synchronous manner. but i mean, to be fair if i was still on nodejs i'd prob be using async/await.. but still, that wasn't around back when i was using node, and not going back now. that i can tell you
<rkeene>
I'm trying to compile the code: `dbconfig = INI.parse(dbconfig_text)` in Crystal 0.27.0 and I get the error: `undefined constant INI (did you mean 'Int')`
<FromGitter>
<Willyboar> WOW! Github offers unlimited private repos. For 3 collabs per private repo. Bye bye bitbucket.
<rkeene>
The documentation doesn't suggest one needs to "require" anything first, but I wonder if that's an omission from the documentation
<rkeene>
Adding `require "ini"` did seem to help
marmotini has joined #crystal-lang
<FromGitter>
<straight-shoota> rkeene, yeah it's not always clear from the API docs which libraries are in core (implicitly required in the prelude) and which need to be explicitly asked for
marmotini has quit [Ping timeout: 268 seconds]
<FromGitter>
<domgetter> I'm trying to C interop to do opengl programming with crystal on windows. I can get 3D stuff to appear on linux (using opengl, glew, and sdl2), but I'm running into a problem where I need to link to stuff at runtime. I can use this https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-wglgetprocaddress , and it works (i.e. compiles on windows) if I only use one type signature for the
<FromGitter>
... returned function pointer. If I try to generalize, with something like Pointer(Int32 | UInt32, (UInt32 | UInt8)* -> Int32) or anything else, crystal complains that "only primitive types, pointers, structs, unions, enums and tuples are allowed in lib declarations", and if I try with underscores, I'm met with "can't use underscore ... [https://gitter.im/crystal-lang/crystal?at=5c33c28c5ec8fe5a85194172]
<FromGitter>
<eliasjpr> Where I can find docs in regards to JSON annotations?
<FromGitter>
<eliasjpr> nvm
<FromGitter>
<j8r> @domgetter note Windows support is WIP (excluding WSL, which is =~ linux)
<FromGitter>
<domgetter> @j8r Noted, and I am compiling on WSL and then hopping over to link on Windows.
<FromGitter>
<domgetter> I can get sdl2 functions and some gl functions to link, but other ones don't want to work at all, like glGetUniformLocation. I even tried linking through glew, but it didn't work even though glew32s.lib contains the function name if I grep through it. So I have no idea what I'm doing wrong, or perhaps if there was some Windows-specific issue. I figured I may have to get function pointers at run time, but I
<FromGitter>
... didn't know if there was a clean way to do that in Crystal.
spacemanspam has quit [Read error: Connection reset by peer]
<FromGitter>
<j8r> do you know you can even run X server on WSL?
<FromGitter>
<j8r> (a bit offtopic)
<FromGitter>
<domgetter> I hadn't tried to. Since I successfully got a window up from a cross compiled app, I was going to go 100% down this path
<FromGitter>
<j8r> sure
<FromGitter>
<j8r> that's the proper path
<FromGitter>
<wontruefree> Is there a way to call a ruby api from crystal?
<FromGitter>
<vladfaust> Kek, got 100k jobs per second for background job processing (2 Crystal threads with `Process.fork`): https://snag.gy/KWBC92.jpg
<FromGitter>
<vladfaust> This was with 10_000 fibers & 10 Redis clients per thread
<FromGitter>
<vladfaust> Aaand I got 130k with 100k fibers
non-aristotelian has quit [Quit: non-aristotelian]
<FromGitter>
<theretromaniac> From now on i will use this account 😄 (@Willyboar)
<rkeene>
Does Crystal handle a signed integer overflow by throwing an exception ?
<FromGitter>
<straight-shoota> rkeene, integer overflow is not yet available, but it's actively being implemented
<rkeene>
With Crystal type promotion, will that check be comparing an Int32 and a UInt32 ?
<FromGitter>
<wontruefree> @straight-shoota how do you like fossil I tried it back in the day but my team wanted to use github
<FromGitter>
<straight-shoota> rkeene, what check?
<FromGitter>
<straight-shoota> @wontruefree Why do you ask? ;) I've never used fossil. And wouldn't consider it, given that basically everyone is on git and it's not like totally different.