<< 23-04-2025 >>

00:13:18FromDiscord<aryzen> So I wanna use godot gdext but I cannot run these commands, gdextwiz isn't in my path I guess? Is it supposed to automatically populate there? https://media.discordapp.net/attachments/371759389889003532/1364393660241809468/image.png?ex=6809821d&is=6808309d&hm=4976d103b3d86e55fe915daaa6d892575ac90ce26e89dcaa9a954225ebc61e91&
00:14:52*skippy8 quit (Quit: WeeChat 4.4.2)
00:23:48FromDiscord<Robyn [She/Her]> In reply to @aryzen "So I wanna use": Have you added `$HOME/.nimble/bin` to path?
00:26:27FromDiscord<aryzen> I’ll have to check. I remember having difficulties with that before
00:26:33FromDiscord<Robyn [She/Her]> Fair
00:26:47FromDiscord<Robyn [She/Her]> Could add just add a line to append if in ya bashrc
00:27:17FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=CJrGiRzL
00:27:25*xtr00 quit (Ping timeout: 268 seconds)
00:32:13FromDiscord<aryzen> Would that also help with my difficulties updating nimlangserver or is that something else?
00:33:49FromDiscord<Robyn [She/Her]> In reply to @aryzen "Would that also help": Adding the nimble dir to bashrc? wouldn't change anything
00:34:03FromDiscord<Robyn [She/Her]> In reply to @aryzen "Would that also help": tho what issues? where it redownloads the compiler?
00:58:50Amun-Ralet's say I have a custom nimble build task, how to get defines passed to the nimble in a task?
01:04:05FromDiscord<Robyn [She/Her]> Does `define` not work?↵(<@709044657232936960_=41mun-=52a=5b=49=52=43=5d>)
01:05:29Amun-RaI have no method to get the list of defines passed or there's something I'm missing
01:06:01Amun-Ralet's say the task contains: exec "nim c -b=somebackend -d=mytaskdefine src/app.nim"
01:06:43Amun-RaI don't know (yet) how to append -d=release (or anything custom) to this if it's set
01:07:57Amun-RaI'm building mac fat binary and I can't use default build task for that
01:09:45Amun-RaI'm wondering whether I can move building process from Makefile for the .nimble
01:13:05FromDiscord<aryzen> In reply to @battery.acid.bubblegum "tho what issues? where": It’s the one I posted in #tooling
01:17:07Amun-RaRobyn: one way is to use paramcount and paramstr
01:31:04FromDiscord<janakali> In reply to @Amun-Ra "I'm wondering whether I": custom build task: https://paste.c-net.org/DotingClash
01:31:10FromDiscord<Robyn [She/Her]> In reply to @aryzen "It’s the one I": Aah
01:31:32FromDiscord<Robyn [She/Her]> Not too sure how to fix that tbh sorry
01:32:17Amun-Rajanakali: I want to pass release define to the nimble
01:32:42FromDiscord<janakali> where do you define it?
01:34:38Amun-Rain the cli / makefile
01:34:51Amun-Ravia: nimble task / nimble task -d=release
01:34:56Amun-Rajanakali: https://play.nim-lang.org/#pasty=fzKFsDuc
01:39:22FromDiscord<aryzen> oh boy I have issues now https://media.discordapp.net/attachments/371759389889003532/1364415321414565959/image.png?ex=6809964a&is=680844ca&hm=78f6bc2c10caad1914d996f6f1223f2e06f69f15ed2b2dbd24fa08d3ca6b94bc&
01:39:36FromDiscord<aryzen> I may need to wipe nimble and try again
01:39:53FromDiscord<aryzen> do I just delete ~/.nimble?
01:48:16FromDiscord<aryzen> yeah that looks like it, and I brew reinstalled nim just to be sure
01:53:20FromDiscord<aryzen> aargh, nimlangserver still refuses to install
01:55:48FromDiscord<Robyn [She/Her]> Try `--useSystemNim` when installing langserver?↵(@aryzen)
01:57:01FromDiscord<aryzen> In reply to @Robyn "Try `--useSystemNim` when installing": Got further but there's a lot of warnings, starting with this: Warning: Package requires nim 2.0.8 but 2.2.4. Attempting to compile with the current nim version.
01:57:58FromDiscord<Robyn [She/Her]> That should be fine
02:03:34FromDiscord<aryzen> Alright. I’ll give it a go in a bit then thanks!!
02:19:26FromDiscord<spotlightkid> Try to make `lib` a `const`, like here\: https://github.com/SpotlightKid/nim-sndfile/blob/master/src/sndfile/api.nim#L1↵(@devlop_gaming)
02:23:35FromDiscord<devlop_gaming> In reply to @spotlightkid "Try to make `lib`": Someone actually seen that wow🤔
02:54:11FromDiscord<Laylie> is that what this means?↵> Note\: Passing variables to the dynlib pragma will fail at runtime because of order of initialization problems.↵> ↵> https://nim-lang.org/docs/manual.html#foreign-function-interface-dynlib-pragma-for-import
02:57:09FromDiscord<spotlightkid> yes
02:57:41*xtr00 joined #nim
03:14:00*strogon14_ quit (Ping timeout: 252 seconds)
03:14:57*strogon14 joined #nim
03:25:22*GnuYawk5 joined #nim
03:26:50*GnuYawk quit (Ping timeout: 252 seconds)
03:26:50*GnuYawk5 is now known as GnuYawk
03:49:06*dza7 joined #nim
03:49:56*dza quit (Ping timeout: 252 seconds)
06:27:14*xtr00 quit (Ping timeout: 252 seconds)
06:41:20*skippy8 joined #nim
06:59:18Amun-Radevlop_gaming: you miss stdcall
07:37:54*tokyovigilante_ joined #nim
07:38:12*tokyovigilante quit (Ping timeout: 276 seconds)
07:38:13*tokyovigilante_ is now known as tokyovigilante
07:39:55FromDiscord<enthus1ast.> In reply to @treeform "What changes did you": I patch debby to accept inherited objects, I need this for my CMS
07:41:26FromDiscord<enthus1ast.> But it's just partial done, so I want to write unit tests first to see what I've missed
08:12:32Amun-Radevlop_gaming: there's no ".dll" in your lib path
08:15:34*xtr00 joined #nim
08:44:02*beholders_eye joined #nim
08:46:55*mahlon quit (Ping timeout: 252 seconds)
08:52:46*void09 quit ()
08:53:24*void09 joined #nim
08:57:07*mahlon joined #nim
09:03:26*beholders_eye quit (Ping timeout: 252 seconds)
09:19:09FromDiscord<amjadhd> sent a code paste, see https://play.nim-lang.org/#pasty=AuJTtVlO
09:22:17FromDiscord<nnsee> In reply to @amjadhd "How do you translate": would an enum work?
09:28:02FromDiscord<amjadhd> In reply to @nnsee "would an enum work?": The proc expecting this type should receive a string value from the options provided and refuse all else.
09:35:56FromDiscord<amjadhd> Yeah I think an enum would work.
09:58:58*amadaluzia joined #nim
09:59:54*xtr00 quit (Ping timeout: 252 seconds)
10:01:44*xtr00 joined #nim
10:15:06*amadaluzia quit (Quit: Hi, this is Paul Allen. I'm being called away to London for a few days. Meredith, I'll call you when I get back. Hasta la vista, baby.)
11:34:32FromDiscord<devlop_gaming> In reply to @Amun-Ra "<@769926604872613899>: there's no ".dll"": Yea there is. Making it a constant and removing the definition worked.
12:07:29*zgasma quit (Ping timeout: 252 seconds)
12:17:28*skippy8 quit (Quit: WeeChat 4.4.2)
12:18:57Amun-Radevlop_gaming: it wasn't in the paste
12:31:25FromDiscord<devlop_gaming> In reply to @Amun-Ra "<@769926604872613899>: it wasn't in": Maybe bc it's deleted for a reason
12:32:22FromDiscord<devlop_gaming> Also is there a application i can use that can detect memory issues within an application?
12:33:38FromDiscord<devlop_gaming> I can't use valgrind bc it needs to be built and i require binaries atm
12:34:04FromDiscord<nnsee> In reply to @devlop_gaming "Also is there a": define "memory issues", but valgrind is the go-to
12:34:19FromDiscord<nnsee> In reply to @devlop_gaming "I can't use valgrind": i don't understand what you mean by this
12:34:44FromDiscord<nnsee> "it needs to be built" - you can get valgrind binaries↵"i require binaries" - why?
12:35:06FromDiscord<devlop_gaming> In reply to @nnsee "define "memory issues", but": I don't have time for valgrind. Stuff like memory leaks or maybe something to help me see what is there.
12:35:25FromDiscord<devlop_gaming> In reply to @nnsee ""it needs to be": Where
12:36:10FromDiscord<nnsee> In reply to @devlop_gaming "I don't have time": valgrind is pretty much the only thing worth using. "i don't have time for valgrind" - ???
12:36:42FromDiscord<devlop_gaming> In reply to @devlop_gaming "Where": So are you gonnd show me orr
12:36:48FromDiscord<nnsee> do i look like google to you?
12:36:49FromDiscord<devlop_gaming> (edit) "gonnd" => "gonna"
12:37:07FromDiscord<nnsee> i don't even know what distro you're using
12:37:16FromDiscord<devlop_gaming> I'm not on linux
12:37:30FromDiscord<devlop_gaming> I'm on windows
12:38:52FromDiscord<nnsee> valgrind doesn't run on windows
12:40:39FromDiscord<devlop_gaming> What apps can i use for windows then?
12:41:00FromDiscord<nnsee> WSL + valgrind :p
12:41:22FromDiscord<devlop_gaming> I need windows apps not linux
12:41:30FromDiscord<nnsee> WSL is a windows app
12:41:47FromDiscord<devlop_gaming> I meant for detecting memory leaks and yk it
12:43:10FromDiscord<nnsee> a quick google says there's something called "dr memory". i have no clue how good it is or if it will work for your purpose
12:43:18FromDiscord<nnsee> i strongly recommend setting up WSL and using valgrind instead
12:43:27FromDiscord<nnsee> for some reason, you don't like this answer, but it's objectively the correct answer
12:43:58FromDiscord<devlop_gaming> I don't want to use linux please stop suggesting wsl
12:44:23FromDiscord<devlop_gaming> And it's slow. I only use it for compiling linux programs and that's it.
12:45:01FromDiscord<nnsee> you're using it for checking memory leaks, which is already slow. why would you care how fast your program runs in valgrind
12:45:47FromDiscord<devlop_gaming> Maybe bc my program would freeze
12:46:00FromDiscord<devlop_gaming> It's literally laggy af
12:46:18FromDiscord<nnsee> ??? this isn't for regular usage
12:46:22FromDiscord<nnsee> this is for checking memory leaks
12:47:09FromDiscord<devlop_gaming> It..is..laggy
12:47:50FromDiscord<nnsee> are you ignoring what i'm saying on purpose or what
12:48:43FromDiscord<nnsee> >"how do I do X"↵>you need to do Y↵>"no i don't want to do Y"
12:48:44FromDiscord<nnsee> ???
12:48:45FromDiscord<devlop_gaming> Just forget it
12:52:01FromDiscord<nnsee> In reply to @nnsee "a quick google says": @devlop_gaming are you not satisfied with this answer? a windows tool with binaries available...
12:53:28FromDiscord<devlop_gaming> In reply to @nnsee "<@769926604872613899> are you not": I am. Was installing it right after you suggested it.
12:58:03FromDiscord<devlop_gaming> I don't get how to run my application with it
12:59:21FromDiscord<devlop_gaming> How am i supposed to use this
12:59:45FromDiscord<nnsee> did you try reading the manual? https://drmemory.org/page_running.html#sec_invocation
13:06:30FromDiscord<devlop_gaming> I'm almost out of time. Can you answer my question that I have? I tried to search it up the other day and came up empty. So I have this sequence I'm adding objects into and am setting it's value to @[] every time a proc is called. I think this is the reason for spikes in memory bc when i restart the app memory goes back to normal🤔
13:08:23FromDiscord<nnsee> In reply to @devlop_gaming "I'm almost out of": what's your question?
13:09:11FromDiscord<devlop_gaming> In reply to @nnsee "what's your question?": Ok so I explained the problem in that paragraph. Is this the cause of the spikes I been seeing in my apps memory?
13:09:38FromDiscord<nnsee> hard to tell without actually seeing your code, but it shouldn't be
13:09:49FromDiscord<nnsee> it's worth testing `--mm:refc` as well
13:10:13FromDiscord<devlop_gaming> https://1drv.ms/u/c/d68ce0573038b832/EWhvBF_2t6dHuqquKv8O79kB2xsOcmKn5cng4qoPnnYLKg
13:10:26FromDiscord<devlop_gaming> In reply to @nnsee "hard to tell without": I went to go grab it
13:10:26FromDiscord<nnsee> and `-d:useMalloc`
13:11:25FromDiscord<nnsee> In reply to @devlop_gaming "https://1drv.ms/u/c/d68ce0573038b832/EWhvBF_2t6dHuq": oh god
13:11:38FromDiscord<nnsee> next time, please use the playground's paste feature or something
13:12:07FromDiscord<devlop_gaming> Whoops😅
13:12:32FromDiscord<nnsee> what is a ProjectDisplay?
13:12:38FromDiscord<nnsee> is this from C side?
13:12:43FromDiscord<devlop_gaming> An object i made
13:14:02FromDiscord<spotlightkid> @nnsee\: I admire your patience. Though it borders on masochism 😉
13:14:38FromDiscord<devlop_gaming> 😑
13:18:00FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=mjkGKnpv
13:18:43FromDiscord<nnsee> if that's not the issue, then `init(ProjectDisplay)` is a bit suspect. what does it do exactly? does it call into C code which might allocate?
13:59:37Amun-Radevlop_gaming: for tracking memory related issues I'd recommend libasan and libubsan
14:00:39Amun-Raand valgrind requires a few rules to rule out false positives
14:01:03Amun-Raand if you dlopen almost anything there will be leaks
14:02:05Amun-RaI had a few cases removing dlclose before exit fixed all the leaks reported so ymmv ;)
14:03:44Amun-Rathis is my old suppression list, untested on current nim versions: https://dpaste.com/9KS7FYFVA
14:05:09Amun-Rathe last time I used that was ca. 1.6.x
14:09:58FromDiscord<heysokam> compiling with ziccc makes ubsan usage trivial, if wondering how that's one way to do it
14:14:11Amun-Ra--passc='-fsanitize=address,undefined'
14:14:25Amun-Rathat should automagically include all the required libs
14:14:33Amun-Raat least in case of gcc and clang
14:56:34*amadaluzia joined #nim
15:00:41*zgasma joined #nim
16:50:54*ntat joined #nim
16:57:41*amadaluzia quit (Quit: Hi, this is Paul Allen. I'm being called away to London for a few days. Meredith, I'll call you when I get back. Hasta la vista, baby.)
16:58:07*amadaluzia joined #nim
17:45:24*ntat quit (Quit: leaving)
17:56:03FromDiscord<devlop_gaming> In reply to @nnsee "if that's not the": Code i written
17:56:09FromDiscord<devlop_gaming> I am back
17:56:47FromDiscord<devlop_gaming> In reply to @nnsee "an easy way to": The problem only happens during runtime
18:03:03Amun-Rawhat kind of problem?
18:05:08*ntat joined #nim
18:06:07FromDiscord<devlop_gaming> I have a cretae project button which creates a ProjectDisplay object and stores is inside a sequence. This sequence is overwritten every proc call like this projects = @[]. Which i notice causes memory to quickly rise. When I restart the application memory goes back to normal with the same objects being stored into the sequence.
18:08:17Amun-Rais it a local variable of a part of single context?
18:21:23FromDiscord<devlop_gaming> Single. It's created in the main file and a proc in a separate file modifies it.
18:34:03*redj quit (Ping timeout: 276 seconds)
18:45:21Amun-Rawill .setlen 0 instead of = @[] change that behavior?
18:47:23FromDiscord<devlop_gaming> Let me see
18:47:47Amun-Rajust thinking outloud
18:48:42*dza7 is now known as dza
18:49:50FromDiscord<devlop_gaming> Weird it's still doing it
18:50:33FromDiscord<devlop_gaming> So i created more projects which resulted in 39mb of memory then when I restarted task manager showed 12.6
18:50:59FromDiscord<devlop_gaming> And that's for 16 objects