00:41:25 | * | lucasta quit (Quit: Leaving) |
00:43:23 | * | raynei quit (Ping timeout: 252 seconds) |
00:44:46 | FromDiscord | <nasuray> In reply to @bubblie "yeah I was looking": Ya the giant readme is a little difficult to navigate. |
00:48:19 | FromDiscord | <bubblie> real |
00:53:56 | FromDiscord | <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:38 | FromDiscord | <Elegantbeef> Futhark works well |
01:30:32 | FromDiscord | <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:47 | FromDiscord | <Elegantbeef> Make a distinct string and validate it's not empty |
01:32:20 | FromDiscord | <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:23 | FromDiscord | <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:28 | FromDiscord | <nnsee> In reply to @drunkenalcoholic "amazing how much the": can you run the first command but with `--boundChecks:off` |
07:00:44 | FromDiscord | <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:00 | FromDiscord | <Phil> Can I tell nim "Hey, call the destroy hook here instead of when this thing falls out of scope" somehow? |
08:22:33 | FromDiscord | <Elegantbeef> `=destroy` `=wasMoved` |
08:28:56 | FromDiscord | <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:09 | FromDiscord | <nnsee> interesting |
08:29:13 | FromDiscord | <Phil> In reply to @Elegantbeef "`=destroy` `=wasMoved`": Can you actually do those in one go? |
08:29:26 | FromDiscord | <nnsee> i was expecting it to be more |
08:29:56 | FromDiscord | <drunkenalcoholic> I can run them one after the other with the different flags if thats what you mean |
08:29:56 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#pasty=MHrCZrIEVLuy |
08:30:38 | FromDiscord | <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:15 | FromDiscord | <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:03 | FromDiscord | <drunkenalcoholic> -d:danger, -d:faster and --mm:orc seem to do nothing |
08:34:11 | FromDiscord | <drunkenalcoholic> sorry -d:danger did |
08:34:37 | FromDiscord | <Phil> turns out quote do really doesn't do well with ``=destroy`` =/ , |
08:34:49 | FromDiscord | <Phil> Time to use genAsts I guess |
08:34:54 | FromDiscord | <Elegantbeef> Genast or something here |
08:35:29 | FromDiscord | <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:17 | FromDiscord | <Phil> TIL that literaly don't fulfill the criteria of being "var" |
08:38:22 | FromDiscord | <Phil> (edit) "literaly" => "literals" |
08:40:56 | FromDiscord | <Phil> Yeah... not a solution either. I'll try a re read of yesterdays discussion... that or just give up because wtf |
08:43:47 | FromDiscord | <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:13 | FromDiscord | <Phil> (Between the destructor calls for the message on thread A and on thread B) |
08:44:49 | FromDiscord | <Phil> Attempt to read and understand insideout number 3 I guess |
09:11:17 | * | azimut quit (Ping timeout: 255 seconds) |
10:04:45 | FromDiscord | <nnsee> In reply to @drunkenalcoholic "-d:danger, -d:faster and": orc is the default mm anyways, so that wouldn't change anything |
10:04:58 | FromDiscord | <nnsee> tbh this is the first time i'm hearing of `d:faster` |
10:09:53 | FromDiscord | <Elegantbeef> Cause it's not a thing |
10:16:55 | FromDiscord | <Robyn [She/Her]> In reply to @drunkenalcoholic "-d:danger, -d:faster and": `--opt:speed` instead of `-d:faster`? |
11:22:10 | NimEventer | New thread by erickapalme: Euphoria Green CBD Gummies Reviews SCAM OR LEGIT Benefits..., see https://forum.nim-lang.org/t/10923 |
11:30:01 | FromDiscord | <Yardanico> no, see the message below, the mistake was already corrected https://discord.com/channels/371759389889003530/371759389889003532/1200720398355017789 |
11:30:09 | FromDiscord | <Yardanico> and yeah, mm:orc did nothing because it's default with nim 2 |
11:33:34 | FromDiscord | <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:51 | FromDiscord | <Yardanico> -d:release disables debugging stuff and does opt:speed, and -d:danger is -d:release + disables ALL runtime safety checks |
11:47:53 | FromDiscord | <drunkenalcoholic> In reply to @yardanico "-d:release disables debugging stuff": some good information, thank you for the explaination |
11:51:15 | FromDiscord | <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:08 | FromDiscord | <odexine> It is their custom flag |
11:56:36 | FromDiscord | <odexine> You can see in their code it has a check for that faster flag |
11:57:03 | FromDiscord | <odexine> I nearly swapped the L on both those words @-@ |
11:58:00 | FromDiscord | <drunkenalcoholic> lol thats would exlain why it did nothing when testing 🙂 |
11:59:08 | FromDiscord | <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:21 | FromDiscord | <datingwolf1> Fundraising for the Fenix HT30R laser flashlight for Ukrainian military personnel of the A4848 military unit.↵PayPal $USD [email protected] |
15:35:18 | FromDiscord | <demotomohiro> <@&371760044473319454> |
15:41:12 | FromDiscord | <Phil> There was a ping? |
15:44:36 | systemdsucks | fleshlight spam |
15:44:39 | systemdsucks | that'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:08 | FromDiscord | <asakura44> https://media.discordapp.net/attachments/371759389889003532/1200849732604547165/Capture.PNG?ex=65c7ad76&is=65b53876&hm=1e8f7c77718521104416b279b31db8e0cb8752f262291c2f53552e1cd6c19ade& |
17:08:10 | FromDiscord | <asakura44> what is wrong ? |
17:11:00 | Amun-Ra | ptr is a type keyword, you have to use addr |
17:13:39 | FromDiscord | <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:54 | FromDiscord | <sOkam! 🫐> #depressing https://media.discordapp.net/attachments/371759389889003532/1200851439988244631/image.png?ex=65c7af0e&is=65b53a0e&hm=17e5031a478483db78f9f6ba1dc8461f9b4725652654b48876f3fed54a7855fa& |
17:15:57 | FromDiscord | <sOkam! 🫐> the compiler itself is detected as a virus. MS can go F themselves, honestly |
17:16:12 | Amun-Ra | asakura44: 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:03 | Amun-Ra | asakura44: https://play.nim-lang.org/#pasty=bbhCmgoHprlo |
17:19:29 | * | Goodbye_Vincent quit (Ping timeout: 256 seconds) |
17:20:14 | FromDiscord | <asakura44> In reply to @Amun-Ra "asakura44: keep in mind": it doesn't work with numbers |
17:23:40 | Amun-Ra | that depends on what you want to achieve |
17:24:03 | Amun-Ra | you almost always use addr for interpo with C library, etc. |
17:24:07 | FromDiscord | <asakura44> i want to get the memory address of the variable |
17:24:54 | Amun-Ra | let i = 10; addr(i) |
17:25:31 | FromDiscord | <asakura44> doesn't work |
17:25:39 | Amun-Ra | it does |
17:25:44 | FromDiscord | <nnsee> it does |
17:25:55 | FromDiscord | <nnsee> read the error message |
17:26:05 | Amun-Ra | I think "doesn't work" == "I can't echo that" |
17:26:23 | FromDiscord | <asakura44> https://media.discordapp.net/attachments/371759389889003532/1200854325610680340/312.PNG?ex=65c7b1be&is=65b53cbe&hm=8df57c5beb90d0f2e577c734f881e1cd5c3b7ac1fca54887f0276f4d8885f82e& |
17:26:41 | FromDiscord | <nnsee> In reply to @asakura44 "": indeed. read the error message |
17:26:54 | Amun-Ra | there is no `$` defined for ptr int |
17:27:02 | FromDiscord | <asakura44> expression has no address |
17:27:14 | FromDiscord | <nnsee> what? no? |
17:27:20 | FromDiscord | <nnsee> that's literally not what it says |
17:27:35 | Amun-Ra | have you changed var to const? |
17:27:36 | FromDiscord | <asakura44> it is |
17:27:51 | FromDiscord | <nnsee> In reply to @asakura44 "it is": please draw me a circle in your screenshot where it says that |
17:28:03 | FromDiscord | <asakura44> https://media.discordapp.net/attachments/371759389889003532/1200854750007136336/4231.PNG?ex=65c7b223&is=65b53d23&hm=97dabcc841112d1df60d89e84f30b8dd130e5e136bdfddde1e4b8b5fbe006ff7& |
17:28:16 | FromDiscord | <nnsee> that's not the screenshot you sent my dog |
17:28:22 | FromDiscord | <nnsee> nobody said const |
17:29:02 | FromDiscord | <asakura44> In reply to @nnsee "that's not the screenshot": fuck you i am not a dog |
17:29:21 | Amun-Ra | english is not your native language? |
17:29:23 | FromDiscord | <nnsee> er |
17:29:29 | FromDiscord | <asakura44> In reply to @Amun-Ra "english is not your": arabic |
17:29:34 | Amun-Ra | dog doesn't mean an animal in this context |
17:29:40 | FromDiscord | <nnsee> "my dog" is equivalent to "my brother", it is meant with no offensr |
17:30:09 | Amun-Ra | asakura44: https://play.nim-lang.org/#pasty=RwqSdVQSqErD |
17:30:12 | FromDiscord | <asakura44> you could say brother instead |
17:30:28 | Amun-Ra | asakura44: well, technically he's not your brother either |
17:30:33 | FromDiscord | <␀ Array 🇵🇸 🍉> thats dawg not dog↵(@nnsee) |
17:31:03 | Amun-Ra | asakura44: but… you don't want to cast pointers like that |
17:31:07 | FromDiscord | <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:14 | FromDiscord | <nnsee> In reply to @asakura44 "you could say brother": nah, "my dog" is fine |
17:31:26 | FromDiscord | <asakura44> In reply to @nnsee "nah, "my dog" is": then use it with someone else |
17:31:28 | FromDiscord | <asakura44> not me |
17:31:44 | FromDiscord | <asakura44> i amnot comfortable with that |
17:31:50 | FromDiscord | <asakura44> (edit) "amnot" => "am not" |
17:32:11 | Amun-Ra | asakura44: just "cstring(string) |
17:32:34 | Amun-Ra | a more "raw" equivalent is ptr uncheckedArray[char] |
17:32:46 | Amun-Ra | and "ptr char" is even "rawer" ;) |
17:33:23 | FromDiscord | <nnsee> In reply to @asakura44 "i am not comfortable": fair enough, my cat |
17:33:26 | Amun-Ra | if you start with nim, forget cstrings for time being |
17:33:38 | FromDiscord | <asakura44> In reply to @nnsee "fair enough, my cat": now you are playing on my nerve |
17:33:59 | FromDiscord | <nnsee> yup |
17:34:06 | Amun-Ra | nnsee: btw. police is called "pigs" in english, in polish we call them "dogs" |
17:34:09 | FromDiscord | <asakura44> i will insult you then |
17:34:18 | FromDiscord | <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:32 | Amun-Ra | asakura44: I guess calling someone a dog is an insult in your language, do not translate sentences literally |
17:35:59 | FromDiscord | <asakura44> In reply to @Amun-Ra "asakura44: I guess calling": bro i do not like being called a dog |
17:36:19 | FromDiscord | <asakura44> i came here to ask for help not to be being called a dog |
17:36:33 | Amun-Ra | tbh these are not exclusive |
17:36:58 | FromDiscord | <nnsee> for your third day on the internet, some advice, "my dog" is not "a dog", "my dog" is friendly |
17:37:05 | FromDiscord | <odexine> why yalls be arguin about this |
17:37:09 | FromDiscord | <nnsee> if you choose to take offense to that, that's on you my friend |
17:37:27 | FromDiscord | <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:46 | Amun-Ra | asakura44: the moral is: don't use ptr/addr unles you really know what you are doing |
17:37:50 | FromDiscord | <asakura44> then i will call u my towel |
17:37:55 | FromDiscord | <nnsee> cool |
17:37:57 | FromDiscord | <asakura44> are you comfortable with that ? |
17:38:00 | FromDiscord | <nnsee> yeah |
17:38:08 | FromDiscord | <asakura44> ok my towel |
17:38:29 | FromDiscord | <nnsee> lmao |
17:38:49 | FromDiscord | <asakura44> no no |
17:38:51 | FromDiscord | <asakura44> my shoes |
17:38:55 | FromDiscord | <asakura44> it is better |
17:39:00 | FromDiscord | <asakura44> ok my shoes |
17:39:06 | FromDiscord | <odexine> i dont think most english speakers would find offense to that |
17:39:22 | FromDiscord | <asakura44> In reply to @odexine "i dont think most": ok my shoes |
17:39:25 | FromDiscord | <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:33 | FromDiscord | <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:41 | FromDiscord | <asakura44> my shoes in arabic means brother it is a slang |
17:39:44 | FromDiscord | <nnsee> get it? sole supporter |
17:39:53 | FromDiscord | <odexine> In reply to @asakura44 "my shoes in arabic": yes and in english it means nothing xd |
17:40:01 | FromDiscord | <odexine> you just sound delusional |
17:40:08 | FromDiscord | <asakura44> In reply to @odexine "yes and in english": now you get the idea |
17:40:13 | FromDiscord | <odexine> no? |
17:40:28 | FromDiscord | <nnsee> In reply to @asakura44 "now you get the": buddy, we're speaking english here, not arabic |
17:40:31 | FromDiscord | <odexine> i mean |
17:40:33 | FromDiscord | <odexine> thats their point |
17:40:51 | * | Goodbye_Vincent joined #nim |
17:40:55 | FromDiscord | <asakura44> In reply to @odexine "i mean": we can use arabic slangs here |
17:41:06 | FromDiscord | <asakura44> u know |
17:41:14 | FromDiscord | <asakura44> we have more than hi in arabic |
17:41:21 | FromDiscord | <asakura44> like 10 ways to say hi |
17:41:37 | FromDiscord | <drunkenalcoholic> there is a language specific category I believe |
17:41:55 | FromDiscord | <asakura44> ok ok let's go back to the topic |
17:42:45 | FromDiscord | <asakura44> ``csize_t`` is a c thing |
17:42:54 | FromDiscord | <asakura44> what is equivalent to this in nim ? |
17:43:06 | FromDiscord | <asakura44> i really do not like c |
17:43:09 | Amun-Ra | csize_t is for C types not nim types |
17:43:51 | FromDiscord | <asakura44> sent a code paste, see https://play.nim-lang.org/#pasty=aObglhNYCltT |
17:43:54 | FromDiscord | <asakura44> ??? |
17:44:06 | FromDiscord | <asakura44> In reply to @Amun-Ra "csize_t is for C": why did you use it then ? |
17:44:17 | FromDiscord | <odexine> it's fine to cast to a `uint` i'd say |
17:44:34 | FromDiscord | <asakura44> In reply to @odexine "it's fine to cast": let me give it a shot |
17:44:42 | Amun-Ra | asakura44: just as an example, I wouldn't cast ptr int ever |
17:44:57 | FromDiscord | <asakura44> In reply to @odexine "it's fine to cast": yay that is better |
17:45:01 | FromDiscord | <asakura44> i hate c |
17:45:05 | FromDiscord | <asakura44> it is trash |
17:45:24 | FromDiscord | <asakura44> In reply to @Amun-Ra "asakura44: just as an": why ? memory leaks ? |
17:45:26 | Amun-Ra | so don't write nim like one |
17:45:38 | Amun-Ra | asakura44: no, there is no need to |
17:46:02 | Amun-Ra | what are you trying to achieve? that looks like XY problem |
17:49:04 | Amun-Ra | casts 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:21 | FromDiscord | <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:19 | arkanoid | trying 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:54 | arkanoid | I do remember that there were some news about SSL with Nim 2.0.0 |
20:13:15 | NimEventer | New thread by AntonioFS: Getting resources from other sources for the current source., see https://forum.nim-lang.org/t/10924 |
20:15:17 | rockcavera | arkanoid libcrypto will only be dependency when -d:ssl or import openssl |
20:16:49 | arkanoid | I'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:12 | arkanoid | I'm quite surprised nim app seems the only one requiring libssl-dev package inside a whole plain ubuntu server 23.03 installation |
20:21:41 | arkanoid | how can curl and possibly many other apps do https without this lib installed? |
20:22:17 | rockcavera | arkanoid static link |
20:22:18 | rockcavera | ;) |
20:22:53 | rockcavera | nim by default uses dynamic link for openssl |
20:23:29 | arkanoid | can I use static link for just that? I'd like my app to run inside vanilla ubuntu:23.04 docker image |
20:24:00 | arkanoid | I don't need to static link the whole app. Libc is there, and possibly other deps |
20:24:58 | rockcavera | https://nim-lang.org/docs/openssl.html |
20:29:46 | arkanoid | thanks! statically linked successfully |
20:31:05 | arkanoid | reading the docs about dynlibOverride in manual. It's really not clear how it works |
20:31:27 | arkanoid | --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:03 | arkanoid | so I ask to mock a symbol, and NOT asking to statically compile it, but it statically compiles it |
20:32:37 | arkanoid | surely 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:53 | Amun-Ra | arkanoid: debian base distros use either gnutls or ssl |