<< 27-01-2024 >>

00:41:25*lucasta quit (Quit: Leaving)
00:43:23*raynei quit (Ping timeout: 252 seconds)
00:44:46FromDiscord<nasuray> In reply to @bubblie "yeah I was looking": Ya the giant readme is a little difficult to navigate.
00:48:19FromDiscord<bubblie> real
00:53:56FromDiscord<bubblie> also is there a binding generator for nim that you all recommend I was seeing if it was possible to generate bindings for this https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator/tree/master if not later on in my testing of nim and vulkan Ill see if I can make something to auto generate this
00:56:38FromDiscord<Elegantbeef> Futhark works well
01:30:32FromDiscord<user2m> Is there anyway to use the type system in nim to specify that a string attribute of an object can't be an empty string?
01:31:47FromDiscord<Elegantbeef> Make a distinct string and validate it's not empty
01:32:20FromDiscord<user2m> Ok that's what I've been doing. Called it strictstr
03:14:25*raynei joined #nim
05:20:23*spacelucy joined #nim
06:05:49*raynei quit (Ping timeout: 264 seconds)
06:22:23FromDiscord<drunkenalcoholic> amazing how much the compiler flags have an effect, also interesting how much faster insertion sorting is compared to quicksort https://media.discordapp.net/attachments/371759389889003532/1200687228070940692/image.png?ex=65c7161e&is=65b4a11e&hm=4a764b07a26f6591747e6b999de275c8cce21cf741c79f0f6ec4504a4375057f&
06:50:20*rockcavera quit (Remote host closed the connection)
07:00:28FromDiscord<nnsee> In reply to @drunkenalcoholic "amazing how much the": can you run the first command but with `--boundChecks:off`
07:00:44FromDiscord<nnsee> interested to see how much of the performance gains is due to that
07:20:41*spacelucy quit (Quit: WeeChat 4.2.1)
07:35:10*advesperacit joined #nim
07:35:55*advesperacit quit (Client Quit)
07:37:26*advesperacit joined #nim
08:22:00FromDiscord<Phil> Can I tell nim "Hey, call the destroy hook here instead of when this thing falls out of scope" somehow?
08:22:33FromDiscord<Elegantbeef> `=destroy` `=wasMoved`
08:28:56FromDiscord<drunkenalcoholic> In reply to @nnsee "interested to see how": small performance gains https://media.discordapp.net/attachments/371759389889003532/1200719073231765524/image.png?ex=65c733c7&is=65b4bec7&hm=1a5befdd03cc37a581833c4e19a68e9652c64e5bc0dc2f5ba97f5d3e90704d17&
08:29:09FromDiscord<nnsee> interesting
08:29:13FromDiscord<Phil> In reply to @Elegantbeef "`=destroy` `=wasMoved`": Can you actually do those in one go?
08:29:26FromDiscord<nnsee> i was expecting it to be more
08:29:56FromDiscord<drunkenalcoholic> I can run them one after the other with the different flags if thats what you mean
08:29:56FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#pasty=MHrCZrIEVLuy
08:30:38FromDiscord<nnsee> well running it with all of the different options -d:danger sets would be an interesting experiment, but quite time consuming i imagine
08:32:15FromDiscord<drunkenalcoholic> I did run them earlier with a smaller array sets, try a lot of diffrent flags but came to the conclusion most of them did nothing special, so upped the array length to get a better idea
08:34:03FromDiscord<drunkenalcoholic> -d:danger, -d:faster and --mm:orc seem to do nothing
08:34:11FromDiscord<drunkenalcoholic> sorry -d:danger did
08:34:37FromDiscord<Phil> turns out quote do really doesn't do well with ``=destroy`` =/ ,
08:34:49FromDiscord<Phil> Time to use genAsts I guess
08:34:54FromDiscord<Elegantbeef> Genast or something here
08:35:29FromDiscord<drunkenalcoholic> btw I am only just learning nim so I don't know all the flags and what they even do, just testing for personal knowledge
08:38:17FromDiscord<Phil> TIL that literaly don't fulfill the criteria of being "var"
08:38:22FromDiscord<Phil> (edit) "literaly" => "literals"
08:40:56FromDiscord<Phil> Yeah... not a solution either. I'll try a re read of yesterdays discussion... that or just give up because wtf
08:43:47FromDiscord<Phil> In reply to @Elegantbeef "Genast or something here": Btw. the reason I'm having trouble seeing the "Owned" approach as a solution is that fundamentally the ref-count of the type contained by owned is still raced for - I think
08:44:13FromDiscord<Phil> (Between the destructor calls for the message on thread A and on thread B)
08:44:49FromDiscord<Phil> Attempt to read and understand insideout number 3 I guess
09:11:17*azimut quit (Ping timeout: 255 seconds)
10:04:45FromDiscord<nnsee> In reply to @drunkenalcoholic "-d:danger, -d:faster and": orc is the default mm anyways, so that wouldn't change anything
10:04:58FromDiscord<nnsee> tbh this is the first time i'm hearing of `d:faster`
10:09:53FromDiscord<Elegantbeef> Cause it's not a thing
10:16:55FromDiscord<Robyn [She/Her]> In reply to @drunkenalcoholic "-d:danger, -d:faster and": `--opt:speed` instead of `-d:faster`?
11:22:10NimEventerNew thread by erickapalme: Euphoria Green CBD Gummies Reviews SCAM OR LEGIT Benefits..., see https://forum.nim-lang.org/t/10923
11:30:01FromDiscord<Yardanico> no, see the message below, the mistake was already corrected https://discord.com/channels/371759389889003530/371759389889003532/1200720398355017789
11:30:09FromDiscord<Yardanico> and yeah, mm:orc did nothing because it's default with nim 2
11:33:34FromDiscord<Yardanico> opt:speed by itself is rarely need, usually only when you want to leave all debugging ON but your program is too slow without opt:speed (which really only adds -O3 to the C compiler invocation)
11:33:51FromDiscord<Yardanico> -d:release disables debugging stuff and does opt:speed, and -d:danger is -d:release + disables ALL runtime safety checks
11:47:53FromDiscord<drunkenalcoholic> In reply to @yardanico "-d:release disables debugging stuff": some good information, thank you for the explaination
11:51:15FromDiscord<drunkenalcoholic> I seen people using -d:faster on the forums, thats why I was trying it https://forum.nim-lang.org/t/10384
11:56:08FromDiscord<odexine> It is their custom flag
11:56:36FromDiscord<odexine> You can see in their code it has a check for that faster flag
11:57:03FromDiscord<odexine> I nearly swapped the L on both those words @-@
11:58:00FromDiscord<drunkenalcoholic> lol thats would exlain why it did nothing when testing 🙂
11:59:08FromDiscord<Robyn [She/Her]> In reply to @yardanico "opt:speed by itself is": Aah
12:49:23*junaid_ joined #nim
13:14:28*raynei joined #nim
13:19:43*junaid_ quit (Quit: leaving)
13:22:32*jmdaemon quit (Ping timeout: 256 seconds)
13:30:25*raynei quit (Ping timeout: 264 seconds)
13:47:33*adium quit (Ping timeout: 256 seconds)
14:18:10*rockcavera joined #nim
14:50:50*raynei joined #nim
14:53:42*azimut joined #nim
14:55:58*adium joined #nim
15:21:38*azimut quit (Ping timeout: 255 seconds)
15:31:21FromDiscord<datingwolf1> Fundraising for the Fenix HT30R laser flashlight for Ukrainian military personnel of the A4848 military unit.↵PayPal $USD [email protected]
15:35:18FromDiscord<demotomohiro> <@&371760044473319454>
15:41:12FromDiscord<Phil> There was a ping?
15:44:36systemdsucksfleshlight spam
15:44:39systemdsucksthat's new
15:55:43*raynei quit (Ping timeout: 276 seconds)
16:18:50*Goodbye_Vincent quit (Ping timeout: 260 seconds)
16:25:51*Goodbye_Vincent joined #nim
16:40:34*mhcat left #nim (WeeChat 4.2.1)
16:43:34*Goodbye_Vincent quit (Ping timeout: 260 seconds)
16:54:08*Goodbye_Vincent joined #nim
17:08:08FromDiscord<asakura44> https://media.discordapp.net/attachments/371759389889003532/1200849732604547165/Capture.PNG?ex=65c7ad76&is=65b53876&hm=1e8f7c77718521104416b279b31db8e0cb8752f262291c2f53552e1cd6c19ade&
17:08:10FromDiscord<asakura44> what is wrong ?
17:11:00Amun-Raptr is a type keyword, you have to use addr
17:13:39FromDiscord<asakura44> In reply to @Amun-Ra "ptr is a type": https://media.discordapp.net/attachments/371759389889003532/1200851121602830406/6354.PNG?ex=65c7aec2&is=65b539c2&hm=3057f936b05cb7b503b35f9c874181dfa3e6a398891d5fb0185e568990d24a19&
17:14:54FromDiscord<sOkam! 🫐> #depressing https://media.discordapp.net/attachments/371759389889003532/1200851439988244631/image.png?ex=65c7af0e&is=65b53a0e&hm=17e5031a478483db78f9f6ba1dc8461f9b4725652654b48876f3fed54a7855fa&
17:15:57FromDiscord<sOkam! 🫐> the compiler itself is detected as a virus. MS can go F themselves, honestly
17:16:12Amun-Raasakura44: keep in mind that start.addr is an equivalent of (const char **); for an enquivalent of (const char *) you either have to use addr(start[0]) or do a cast
17:18:03Amun-Raasakura44: https://play.nim-lang.org/#pasty=bbhCmgoHprlo
17:19:29*Goodbye_Vincent quit (Ping timeout: 256 seconds)
17:20:14FromDiscord<asakura44> In reply to @Amun-Ra "asakura44: keep in mind": it doesn't work with numbers
17:23:40Amun-Rathat depends on what you want to achieve
17:24:03Amun-Rayou almost always use addr for interpo with C library, etc.
17:24:07FromDiscord<asakura44> i want to get the memory address of the variable
17:24:54Amun-Ralet i = 10; addr(i)
17:25:31FromDiscord<asakura44> doesn't work
17:25:39Amun-Rait does
17:25:44FromDiscord<nnsee> it does
17:25:55FromDiscord<nnsee> read the error message
17:26:05Amun-RaI think "doesn't work" == "I can't echo that"
17:26:23FromDiscord<asakura44> https://media.discordapp.net/attachments/371759389889003532/1200854325610680340/312.PNG?ex=65c7b1be&is=65b53cbe&hm=8df57c5beb90d0f2e577c734f881e1cd5c3b7ac1fca54887f0276f4d8885f82e&
17:26:41FromDiscord<nnsee> In reply to @asakura44 "": indeed. read the error message
17:26:54Amun-Rathere is no `$` defined for ptr int
17:27:02FromDiscord<asakura44> expression has no address
17:27:14FromDiscord<nnsee> what? no?
17:27:20FromDiscord<nnsee> that's literally not what it says
17:27:35Amun-Rahave you changed var to const?
17:27:36FromDiscord<asakura44> it is
17:27:51FromDiscord<nnsee> In reply to @asakura44 "it is": please draw me a circle in your screenshot where it says that
17:28:03FromDiscord<asakura44> https://media.discordapp.net/attachments/371759389889003532/1200854750007136336/4231.PNG?ex=65c7b223&is=65b53d23&hm=97dabcc841112d1df60d89e84f30b8dd130e5e136bdfddde1e4b8b5fbe006ff7&
17:28:16FromDiscord<nnsee> that's not the screenshot you sent my dog
17:28:22FromDiscord<nnsee> nobody said const
17:29:02FromDiscord<asakura44> In reply to @nnsee "that's not the screenshot": fuck you i am not a dog
17:29:21Amun-Raenglish is not your native language?
17:29:23FromDiscord<nnsee> er
17:29:29FromDiscord<asakura44> In reply to @Amun-Ra "english is not your": arabic
17:29:34Amun-Radog doesn't mean an animal in this context
17:29:40FromDiscord<nnsee> "my dog" is equivalent to "my brother", it is meant with no offensr
17:30:09Amun-Raasakura44: https://play.nim-lang.org/#pasty=RwqSdVQSqErD
17:30:12FromDiscord<asakura44> you could say brother instead
17:30:28Amun-Raasakura44: well, technically he's not your brother either
17:30:33FromDiscord<␀ Array 🇵🇸 🍉> thats dawg not dog↵(@nnsee)
17:31:03Amun-Raasakura44: but… you don't want to cast pointers like that
17:31:07FromDiscord<asakura44> In reply to @Amun-Ra "asakura44: https://play.nim-lang.org/#pasty=RwqSdVQ": what is equivalent to cstring_t ???? i really do not like c
17:31:14FromDiscord<nnsee> In reply to @asakura44 "you could say brother": nah, "my dog" is fine
17:31:26FromDiscord<asakura44> In reply to @nnsee "nah, "my dog" is": then use it with someone else
17:31:28FromDiscord<asakura44> not me
17:31:44FromDiscord<asakura44> i amnot comfortable with that
17:31:50FromDiscord<asakura44> (edit) "amnot" => "am not"
17:32:11Amun-Raasakura44: just "cstring(string)
17:32:34Amun-Raa more "raw" equivalent is ptr uncheckedArray[char]
17:32:46Amun-Raand "ptr char" is even "rawer" ;)
17:33:23FromDiscord<nnsee> In reply to @asakura44 "i am not comfortable": fair enough, my cat
17:33:26Amun-Raif you start with nim, forget cstrings for time being
17:33:38FromDiscord<asakura44> In reply to @nnsee "fair enough, my cat": now you are playing on my nerve
17:33:59FromDiscord<nnsee> yup
17:34:06Amun-Rannsee: btw. police is called "pigs" in english, in polish we call them "dogs"
17:34:09FromDiscord<asakura44> i will insult you then
17:34:18FromDiscord<drunkenalcoholic> Whattt up dawg, its common to use the word "dog" in an english sentence other than for suggesting someone is an animal
17:35:32Amun-Raasakura44: I guess calling someone a dog is an insult in your language, do not translate sentences literally
17:35:59FromDiscord<asakura44> In reply to @Amun-Ra "asakura44: I guess calling": bro i do not like being called a dog
17:36:19FromDiscord<asakura44> i came here to ask for help not to be being called a dog
17:36:33Amun-Ratbh these are not exclusive
17:36:58FromDiscord<nnsee> for your third day on the internet, some advice, "my dog" is not "a dog", "my dog" is friendly
17:37:05FromDiscord<odexine> why yalls be arguin about this
17:37:09FromDiscord<nnsee> if you choose to take offense to that, that's on you my friend
17:37:27FromDiscord<odexine> In reply to @nnsee "for your third day": i mean, if one says theyre uncomfy with it then aint it better to just not continue?
17:37:46Amun-Raasakura44: the moral is: don't use ptr/addr unles you really know what you are doing
17:37:50FromDiscord<asakura44> then i will call u my towel
17:37:55FromDiscord<nnsee> cool
17:37:57FromDiscord<asakura44> are you comfortable with that ?
17:38:00FromDiscord<nnsee> yeah
17:38:08FromDiscord<asakura44> ok my towel
17:38:29FromDiscord<nnsee> lmao
17:38:49FromDiscord<asakura44> no no
17:38:51FromDiscord<asakura44> my shoes
17:38:55FromDiscord<asakura44> it is better
17:39:00FromDiscord<asakura44> ok my shoes
17:39:06FromDiscord<odexine> i dont think most english speakers would find offense to that
17:39:22FromDiscord<asakura44> In reply to @odexine "i dont think most": ok my shoes
17:39:25FromDiscord<drunkenalcoholic> well to be fair he did say "thats not what you sent my dog", he didn't actually call you anything, that could also be meaning his dog has nothing to do with it, as per your screenshot, but you really need to be english to understand the sarcasm
17:39:33FromDiscord<nnsee> i would be honored to be arguably the most important part of any attire when walking outside, the sole supporter of many a treks
17:39:41FromDiscord<asakura44> my shoes in arabic means brother it is a slang
17:39:44FromDiscord<nnsee> get it? sole supporter
17:39:53FromDiscord<odexine> In reply to @asakura44 "my shoes in arabic": yes and in english it means nothing xd
17:40:01FromDiscord<odexine> you just sound delusional
17:40:08FromDiscord<asakura44> In reply to @odexine "yes and in english": now you get the idea
17:40:13FromDiscord<odexine> no?
17:40:28FromDiscord<nnsee> In reply to @asakura44 "now you get the": buddy, we're speaking english here, not arabic
17:40:31FromDiscord<odexine> i mean
17:40:33FromDiscord<odexine> thats their point
17:40:51*Goodbye_Vincent joined #nim
17:40:55FromDiscord<asakura44> In reply to @odexine "i mean": we can use arabic slangs here
17:41:06FromDiscord<asakura44> u know
17:41:14FromDiscord<asakura44> we have more than hi in arabic
17:41:21FromDiscord<asakura44> like 10 ways to say hi
17:41:37FromDiscord<drunkenalcoholic> there is a language specific category I believe
17:41:55FromDiscord<asakura44> ok ok let's go back to the topic
17:42:45FromDiscord<asakura44> ``csize_t`` is a c thing
17:42:54FromDiscord<asakura44> what is equivalent to this in nim ?
17:43:06FromDiscord<asakura44> i really do not like c
17:43:09Amun-Racsize_t is for C types not nim types
17:43:51FromDiscord<asakura44> sent a code paste, see https://play.nim-lang.org/#pasty=aObglhNYCltT
17:43:54FromDiscord<asakura44> ???
17:44:06FromDiscord<asakura44> In reply to @Amun-Ra "csize_t is for C": why did you use it then ?
17:44:17FromDiscord<odexine> it's fine to cast to a `uint` i'd say
17:44:34FromDiscord<asakura44> In reply to @odexine "it's fine to cast": let me give it a shot
17:44:42Amun-Raasakura44: just as an example, I wouldn't cast ptr int ever
17:44:57FromDiscord<asakura44> In reply to @odexine "it's fine to cast": yay that is better
17:45:01FromDiscord<asakura44> i hate c
17:45:05FromDiscord<asakura44> it is trash
17:45:24FromDiscord<asakura44> In reply to @Amun-Ra "asakura44: just as an": why ? memory leaks ?
17:45:26Amun-Raso don't write nim like one
17:45:38Amun-Raasakura44: no, there is no need to
17:46:02Amun-Rawhat are you trying to achieve? that looks like XY problem
17:49:04Amun-Racasts are used for a few specific reasons; if you write pure nim code, you don't need it at all; it's an advanced topic
18:00:05*Goodbye_Vincent quit (Ping timeout: 268 seconds)
18:24:21FromDiscord<asakura44> In reply to @Amun-Ra "so don't write nim": thanks bro
18:36:56*Goodbye_Vincent joined #nim
18:47:35*Goodbye_Vincent quit (Ping timeout: 260 seconds)
18:51:20*Goodbye_Vincent joined #nim
19:48:32*khazakar quit (Quit: Connection closed for inactivity)
19:56:19arkanoidtrying to run an app compiled with nim 2.0.2 in a vanilla "ubuntu:23.04" image, it complains missing libcrypto.so. Is this lib a strict requirement for all nim programs?
19:56:54arkanoidI do remember that there were some news about SSL with Nim 2.0.0
20:13:15NimEventerNew thread by AntonioFS: Getting resources from other sources for the current source., see https://forum.nim-lang.org/t/10924
20:15:17rockcaveraarkanoid libcrypto will only be dependency when -d:ssl or import openssl
20:16:49arkanoidI'm not using -d:ssl or importing it directly in my code. Possibly it's imported somewhere else in my deps, as I'm doing http calls
20:21:12arkanoidI'm quite surprised nim app seems the only one requiring libssl-dev package inside a whole plain ubuntu server 23.03 installation
20:21:41arkanoidhow can curl and possibly many other apps do https without this lib installed?
20:22:17rockcaveraarkanoid static link
20:22:18rockcavera;)
20:22:53rockcaveranim by default uses dynamic link for openssl
20:23:29arkanoidcan I use static link for just that? I'd like my app to run inside vanilla ubuntu:23.04 docker image
20:24:00arkanoidI don't need to static link the whole app. Libc is there, and possibly other deps
20:24:58rockcaverahttps://nim-lang.org/docs/openssl.html
20:29:46arkanoidthanks! statically linked successfully
20:31:05arkanoidreading the docs about dynlibOverride in manual. It's really not clear how it works
20:31:27arkanoid--dynlibOverride:SYMBOL marks SYMBOL so that dynlib:SYMBOL has no effect and can be statically linked instead; symbol matching is fuzzy so that --dynlibOverride:lua matches dynlib: "liblua.so.3"
20:32:03arkanoidso I ask to mock a symbol, and NOT asking to statically compile it, but it statically compiles it
20:32:37arkanoidsurely it works, so it's working for good, but I don't understand it
22:15:29*advesperacit quit ()
22:17:56*adigitoleo quit (Read error: Connection reset by peer)
22:17:56*casaca quit (Remote host closed the connection)
22:17:57*mronetwo quit (Remote host closed the connection)
22:17:58*noeontheend quit (Remote host closed the connection)
22:18:05*mronetwo joined #nim
22:18:09*casaca joined #nim
22:18:10*noeontheend joined #nim
22:18:19*adigitoleo joined #nim
22:50:07*raynei joined #nim
23:25:02*khazakar joined #nim
23:37:53Amun-Raarkanoid: debian base distros use either gnutls or ssl