<< 12-09-2024 >>

00:08:40FromDiscord<koaledu> You want the frequency or like the name of the components?
00:27:14FromDiscord<demotomohiro> It only info stdlib provides about CPU is the number of the processors/cores.↵https://nim-lang.org/docs/cpuinfo.html
00:29:47FromDiscord<demotomohiro> If you want to get more info about CPU/GPU, you probably need to use OS specific APIs.↵Or CPU specific instructions like cpuid.https://en.wikipedia.org/wiki/CPUID↵If you want to get GPU info, you can use OpenGL or Vulkan.
00:41:39*SchweinDeBurg joined #nim
00:53:12*nyeaa49284230101 quit (Quit: The Lounge - https://thelounge.chat)
00:57:46FromDiscord<ant2024> In reply to @koaledu "You want the frequency": just the names
00:58:56FromDiscord<koaledu> In reply to @ant2024 "just the names": Let me read the docs if I can find how to do it
00:59:49FromDiscord<goerge_lsd> forgot how exceptions work, can I handle the exception only in the procedure calling the exception-prone proc, and ignore it there ?
01:01:51FromDiscord<goerge_lsd> sent a code paste, see https://play.nim-lang.org/#pasty=CgvPouuL
01:02:08FromDiscord<goerge_lsd> `Error: unhandled exception: 403 Forbidden [HttpRequestError]`
01:03:09FromDiscord<goerge_lsd> well, if i just do `except:` then it's caught
01:11:11FromDiscord<goerge_lsd> well nvm, it comes from the fact that i am using a modified httpclient.nim : ( not sure what's wrong with it
01:20:31FromDiscord<goerge_lsd> I have to make it `IOError` or `CatchableError` to be able to handle it
01:33:47*lucasta quit (Quit: Leaving)
01:45:12*xet7 quit (Remote host closed the connection)
01:50:25*beholders_eye quit (Ping timeout: 260 seconds)
01:57:12*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
02:05:32*Guest87 joined #nim
02:05:42*Guest87 quit (Client Quit)
02:15:52FromDiscord<morgan (ping with reply)> `illegal capture 'load' because ':anonymous' has the calling convention: <stdcall>`↵how do i make my macro just assume `load` exists?
02:16:21FromDiscord<morgan (ping with reply)> sent a code paste, see https://play.nim-lang.org/#pasty=lgJbXjAP
02:19:03FromDiscord<Elegantbeef> `load` is a local variable you cannot reference it like this
02:19:44FromDiscord<morgan (ping with reply)> sent a code paste, see https://play.nim-lang.org/#pasty=CSdtEQsy
02:19:46FromDiscord<morgan (ping with reply)> an example
02:20:06FromDiscord<Elegantbeef> Yes `load` is a local parameter
02:20:20FromDiscord<morgan (ping with reply)> how do i then?
02:20:35FromDiscord<Elegantbeef> You cannot you're making a proc that depends on runtime values
02:21:10FromDiscord<morgan (ping with reply)> oh oh wait
02:21:16FromDiscord<morgan (ping with reply)> i need to run that and get that pointer
02:21:21FromDiscord<morgan (ping with reply)> ugh
02:21:28FromDiscord<morgan (ping with reply)> so i need to have that macro run at runtime then
02:21:34FromDiscord<morgan (ping with reply)> right?
02:22:47FromDiscord<morgan (ping with reply)> or i need to replace each with two parts
02:22:52FromDiscord<morgan (ping with reply)> one that gets that pointer
02:23:07FromDiscord<morgan (ping with reply)> and then one that uses that pointer in the proc
02:23:19FromDiscord<Elegantbeef> You can also just make a global variable and set it
02:23:42FromDiscord<morgan (ping with reply)> no i think i can't do that
02:23:58FromDiscord<morgan (ping with reply)> at the very least, not without doing a lot of reorganization
02:24:19FromDiscord<Elegantbeef> put a `var gladV1Loader: proc()` before then call that instead
02:26:12FromDiscord<morgan (ping with reply)> is there a way i can, with say two lines of get the pointer, and another that sets a proc with the echo and calls that pointer, without duplicating all the proc defs to keep a second pointer?
02:26:54FromDiscord<morgan (ping with reply)> when set, that value needs to be copied to something stored in the proc
02:27:01FromDiscord<morgan (ping with reply)> however that works under the hood
02:29:42FromDiscord<morgan (ping with reply)> is bindsym relevant here?
02:30:06FromDiscord<Elegantbeef> This is where you use a dynamic library to inject the logic
02:30:21FromDiscord<xytrux> yo fellas i made a discord client in nim
02:30:24FromDiscord<xytrux> https://github.com/xytrux/Nimcord
02:30:49FromDiscord<xytrux> it uses webview for now but any suggestions would be greatly appreciated :)
02:37:20FromDiscord<morgan (ping with reply)> hm maybe this is what i need? https://nim-lang.org/docs/sugar.html#capture.m,varargs[typed],untyped
02:38:25FromDiscord<Elegantbeef> No cause to use a local variable you need a closure
02:38:49FromDiscord<Elegantbeef> At least in Nim
02:42:27*fallback quit (Read error: Connection reset by peer)
02:50:33*rockcavera quit (Remote host closed the connection)
02:57:47*fallback joined #nim
03:25:06FromDiscord<bung8954> In reply to @Amun-Ra "are there any casts": yes, there are
03:25:51FromDiscord<bung8954> In reply to @melmass "Does anyone knows of": nimpacker
03:26:35FromDiscord<.bobbbob> how would you make a hash function for a recursive type? like how would you "finish" it with the !$ function?
03:27:32FromDiscord<.bobbbob> a case object I should say
03:28:07FromDiscord<.bobbbob> (edit) "a case ... object" added "ref"
03:30:53FromDiscord<bung8954> In reply to @xytrux "yo fellas i made": put a screen shot on readme
03:31:07FromDiscord<xytrux> In reply to @bung8954 "put a screen shot": sure
03:34:53FromDiscord<xytrux> In reply to @bung8954 "put a screen shot": screenshot added
03:35:20FromDiscord<xytrux> nvm screenshot flopped
03:36:08FromDiscord<xytrux> for safety, i did use a different account for the screenshot
03:39:35FromDiscord<.bobbbob> sent a long message, see https://pasty.ee/cUkuyOFi
03:42:39*SchweinDeBurg joined #nim
03:44:55FromDiscord<goerge_lsd> run error when I copied an executable to another machine: `CPU ISA level is lower than required` Compiled on zen4 amd, ran on zen1 amd. How to fix?
04:30:39FromDiscord<goerge_lsd> also for compiling ssl stuff for windows, I got `libcrypto-1_1-x64.dll` after much googling and solving captchas on obscure sites, couldn't find an official source for it, but program still says it's missing it, same folder as .exe
04:30:42FromDiscord<goerge_lsd> what a pita
04:53:02FromDiscord<goerge_lsd> https://forum.nim-lang.org/t/9254#60609 - saved
04:58:14FromDiscord<.bobbbob> In reply to @goerge_lsd "run error when I": maybe send to the compiler --passC:-march=x86-64-v1 ? I was under the impression nim would use the default x86_64 settings for a compiler but maybe not
04:58:53FromDiscord<.bobbbob> (edit) "a" => "the c"
05:04:47FromDiscord<goerge_lsd> maybe it uses the system wide gcc setting ? Which I think might be set to my native architecture ? idk
07:00:38FromDiscord<bung8954> this line cause nil access when compiled with arm64 https://github.com/bung87/crowngui/blob/999422edcde22570a6c756d6641160ea2101216e/src/crowngui/platforms/macos/webview.nim#L58 any idea? all demos run fine with amd64
07:37:28FromDiscord<morgan (ping with reply)> `got 'pointer' for 'load("glIsRenderbuffer")' but expected 'proc (renderbuffer: uint): bool{.stdcall.}'`↵i've made progress, and i decided to use a macro to double up all of the proc defs to contain the function pointer, yet the input to my untyped macro doesn't like taking a pointer as input to a cast somehow
07:38:02FromDiscord<morgan (ping with reply)> sent a code paste, see https://play.nim-lang.org/#pasty=QaEEibPU
07:39:41FromDiscord<morgan (ping with reply)> the squiggles are on the load(string) part of the last line
07:40:08FromDiscord<morgan (ping with reply)> i am very confused
07:40:19FromDiscord<morgan (ping with reply)> A: it's a cast
07:40:47FromDiscord<morgan (ping with reply)> B: it's untyped????
07:40:59*nyeaa49284230101 joined #nim
07:43:02*mfg joined #nim
07:44:09*mfg quit (Client Quit)
07:44:25*mfg joined #nim
07:51:13FromDiscord<morgan (ping with reply)> i’m wondering if i would have an easier time making a macro which wrapped a proc call
07:51:25FromDiscord<morgan (ping with reply)> and echoed the name and args
07:51:41FromDiscord<morgan (ping with reply)> i’d have to put that around every call
07:51:49FromDiscord<morgan (ping with reply)> but i think that would be easier
09:56:01FromDiscord<griffith1deadly> In reply to @xytrux "it uses webview for": in the back of my mind, of course, I was hoping it would be a full-fledged nim client written from scratch
10:22:43*beholders_eye joined #nim
10:43:45*coldfeet joined #nim
10:46:06*beholders_eye quit (Ping timeout: 246 seconds)
10:58:25FromDiscord<xtrayambak> In reply to @ant2024 "how could I get": Initialize OpenGL and call `glGetString` on the properties. https://media.discordapp.net/attachments/371759389889003532/1283743512126423082/image.png?ex=66e41ad0&is=66e2c950&hm=c3a5c6592a47ef073034bfc4e7c6201b042f099a2671d3aaef252d61b080ee67&
10:59:40FromDiscord<xtrayambak> `vendor` is the GPU vendor, `version` is the version of OpenGL being used (not the highest supported version!), `renderer` is the GPU device being used to render by OpenGL and `extensions` is just a list of extensions (you can parse it by splitting the whitespace)
11:04:36*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
11:05:41*coldfeet quit (Remote host closed the connection)
11:09:44*beholders_eye joined #nim
11:36:38*xet7 joined #nim
12:07:39FromDiscord<ant2024> In reply to @xtrayambak "Initialize OpenGL and call": Tysm :HooraySponsoredByThermonuclear:
12:42:36FromDiscord<xtrayambak> Oh, but I doubt it'd work if you don't have an X server or Wayland compositor running on Linux
12:43:22*xet7 quit (Remote host closed the connection)
13:05:54FromDiscord<auxym> 861866
13:11:48FromDiscord<goerge_lsd> getting `OSError Device or resource busy` after a while on a program that does http requests. Could this be because I don't close the httpclient object?
13:16:16*SchweinDeBurg joined #nim
13:30:18*ntat joined #nim
13:31:24*beholders_eye quit (Ping timeout: 260 seconds)
13:31:43FromDiscord<griffith1deadly> In reply to @goerge_lsd "getting `OSError Device or": from std httpclient need be created per every request
13:32:37FromDiscord<goerge_lsd> that's what I do. Seems to fail after a while, although on my system, which seems to have the same number of max open files (1024), it doesn't, got to 12000 requests without fail
13:32:45FromDiscord<goerge_lsd> (edit) "my" => "a different"
13:53:40*beholders_eye joined #nim
13:56:10FromDiscord<melmass> In reply to @bung8954 "nimpacker": Gold thanks! Better than I hoped!
14:14:28*lucasta joined #nim
14:30:12*lucasta quit (Quit: Leaving)
14:49:32*beholders_eye quit (Ping timeout: 272 seconds)
15:03:19*mfg quit (Ping timeout: 245 seconds)
15:13:28FromDiscord<Array 🇵🇸🇸🇩🇸🇾🇨🇩> did dom96 abandon jester?
15:22:52FromDiscord<k0ts> I'm pretty sure he abandoned everything
15:23:48FromDiscord<Array 🇵🇸🇸🇩🇸🇾🇨🇩> https://media.discordapp.net/attachments/371759389889003532/1283810296947015903/cat-cry.bin?ex=66e45902&is=66e30782&hm=c45bd9848aeb0c81d1e77072a521c042a6c5819ec5b470d5034f24feb5b24310&
15:25:42*lucasta joined #nim
15:35:54FromDiscord<nervecenter> In reply to @k0ts "I'm pretty sure he": Looks like he got hired at Cloudflare. tbh it's reasonable to expect most people's Github accounts to dry up or switch gears when they get hired and are under language, tool, and intellectual property constraints, or maybe don't want to program in their free time anymore.
15:36:09FromDiscord<nervecenter> (edit) "or" => "and/or"
15:38:49FromDiscord<odexine> no he didnt like how araq handled things or smth (i honestly forgot) leading him to leave
15:47:37FromDiscord<mratsim> In reply to @odexine "no he didnt like": it's on hacker news
15:51:08*beholders_eye joined #nim
15:55:30*xet7 joined #nim
15:58:27*via_ joined #nim
15:58:52*lumidify_ joined #nim
16:03:32*khazakar quit (*.net *.split)
16:03:33*via quit (*.net *.split)
16:03:34*lumidify quit (*.net *.split)
16:12:32*disso-peach joined #nim
16:12:39*beholders_eye quit (Ping timeout: 246 seconds)
16:28:01*beholders_eye joined #nim
16:49:05*lucasta quit (Remote host closed the connection)
17:01:28*khazakar joined #nim
17:40:20*beholders_eye quit (Ping timeout: 255 seconds)
17:59:59*beholders_eye joined #nim
18:18:55FromDiscord<morgan (ping with reply)> could i abuse subranges of types to macro create a ton of $s to convert the huge lists of GLenums to strings?
18:20:06FromDiscord<morgan (ping with reply)> they're not all in one place
18:20:12FromDiscord<morgan (ping with reply)> in two or three
18:20:29FromDiscord<morgan (ping with reply)> so i don't think i can easily put them all in one with a macro
18:21:01FromDiscord<morgan (ping with reply)> tho i could make 2 or 3 $s with subranges, but i haven't checked if they're all contiguous
18:56:31*beholders_eye quit (Ping timeout: 264 seconds)
19:24:56*ntat quit (Quit: Leaving)
19:46:14FromDiscord<firasuke> I am having troubles copying somewhat big directories using `copyDirWithPermissions` or `copyDir` on an ext4 filesystem (works fine with both `cp` and `rsync`).
19:46:31FromDiscord<firasuke> The directories appear to have been copied but the function stalls
20:05:10*beholders_eye joined #nim
20:12:44*beholders_eye quit (Ping timeout: 260 seconds)
20:34:06*xet7 quit (Remote host closed the connection)
21:41:24*beholders_eye joined #nim
21:53:05FromDiscord<morgan (ping with reply)> In reply to @mratsim "it's on hacker news": link?
21:54:09*rockcavera joined #nim
23:23:51*beholders_eye quit (Read error: Connection reset by peer)
23:24:32*beholders_eye joined #nim
23:24:44*redj joined #nim
23:34:54*beholders_eye quit (Quit: WeeChat 4.1.2)
23:45:25*beholders_eye joined #nim