| 00:18:45 | * | beholders_eye quit (Quit: WeeChat 4.6.3) |
| 00:25:31 | * | xtr00 quit (Ping timeout: 264 seconds) |
| 00:36:52 | * | beholders_eye joined #nim |
| 00:45:03 | * | beholders_eye quit (Quit: WeeChat 4.6.3) |
| 01:06:27 | * | Mister_Magister quit (Quit: bye) |
| 01:09:00 | * | Mister_Magister joined #nim |
| 02:04:31 | * | redj_ quit (Ping timeout: 246 seconds) |
| 02:27:35 | * | cws1 joined #nim |
| 02:29:10 | * | cws quit (Ping timeout: 256 seconds) |
| 02:29:11 | * | cws1 is now known as cws |
| 02:33:27 | * | cws quit (Ping timeout: 244 seconds) |
| 02:46:27 | * | cws joined #nim |
| 02:49:41 | * | cws5 joined #nim |
| 02:51:16 | * | cws quit (Ping timeout: 256 seconds) |
| 02:51:17 | * | cws5 is now known as cws |
| 02:57:16 | * | rockcavera quit (Remote host closed the connection) |
| 04:33:50 | * | mal`` quit (Ping timeout: 244 seconds) |
| 04:53:27 | * | mal`` joined #nim |
| 04:59:58 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 05:00:28 | * | SchweinDeBurg joined #nim |
| 05:37:48 | * | xtr00 joined #nim |
| 07:09:36 | * | hygo quit (Quit: WeeChat 4.7.1) |
| 09:14:08 | * | beholders_eye joined #nim |
| 10:07:44 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=lJrWxPVs |
| 10:08:18 | FromDiscord | <TӨMΛ ☠> (edit) "https://play.nim-lang.org/#pasty=HCfJffTW" => "https://play.nim-lang.org/#pasty=MnzUreFW" |
| 10:17:11 | FromDiscord | <TӨMΛ ☠> Basically it feels like `getOwnerName` being called inside here slows down the game even if any conditions leading to its use does not get fired |
| 10:17:48 | FromDiscord | <TӨMΛ ☠> (edit) "fired" => "fired↵Not to say I wouldn't expect table lookup to be such a burden on performance, as I use it few times already and it never brought any noticeable difference" |
| 10:18:11 | FromDiscord | <TӨMΛ ☠> (edit) "does" => "do" | "fired↵Not" => "fired (it slows down even when `hasObject` returns false)↵Not" |
| 10:19:25 | * | beholders_eye quit (Ping timeout: 246 seconds) |
| 10:21:22 | * | beholders_eye joined #nim |
| 10:38:05 | FromDiscord | <Robyn [She/Her]> In reply to @toma400 "Why does my game": is it because of the lambda? Could you try moving it out somehow? |
| 10:41:38 | FromDiscord | <nnsee> yeah i think it might be because of the closure, closure set up has overhead even if it's never called |
| 10:41:39 | FromDiscord | <nnsee> maybe |
| 10:53:57 | FromDiscord | <nnsee> i'd try inlining it first to see if that helps |
| 10:54:09 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=qurgYcmQ |
| 11:13:03 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=owbCXsek |
| 11:32:49 | * | beholders_eye quit (Ping timeout: 265 seconds) |
| 11:34:38 | * | beholders_eye joined #nim |
| 11:46:17 | FromDiscord | <ieltan> sent a code paste, see https://play.nim-lang.org/#pasty=kBcXyhhC |
| 11:46:26 | FromDiscord | <ieltan> (edit) "https://play.nim-lang.org/#pasty=mztfHUSM" => "https://play.nim-lang.org/#pasty=hAqTVCwM" |
| 11:46:42 | FromDiscord | <ieltan> sent a code paste, see https://play.nim-lang.org/#pasty=SxOiqmNv |
| 11:49:22 | * | om3ga quit (Ping timeout: 246 seconds) |
| 11:51:43 | * | om3ga joined #nim |
| 12:19:49 | * | beholders_eye quit (Ping timeout: 246 seconds) |
| 12:21:52 | * | beholders_eye joined #nim |
| 12:36:55 | * | beholders_eye quit (Ping timeout: 244 seconds) |
| 12:38:11 | * | beholders_eye joined #nim |
| 13:53:20 | FromDiscord | <gokr> @pmunch One more Futhark based wrapper born, it literally took me 30 minutes to make it using Claude Code: https://github.com/gokr/natswrapper |
| 13:57:16 | FromDiscord | <pmunch> Cool! Not sure what NATS is, but it's cool to hear that you could create a wrapper in 30 minutes. How was it working with Claude and Futhark? |
| 15:07:07 | FromDiscord | <gokr> In reply to @pmunch "Cool! Not sure what": Claude had no problems whatsoever - I basically just told it to make a wrapper using Futhark. 🙂 |
| 15:07:23 | FromDiscord | <gokr> NATS is a pubsub system written in Golang. |
| 15:07:34 | FromDiscord | <gokr> https://nats.io/ |
| 15:08:54 | FromDiscord | <gokr> There was a c2nim based wrapper already - but I wanted to use the kv store features in NATS (to be able to do "presence" - to know which subscribers are live at the moment) and that was not yet implemented. Boom, Futhark to the rescue. Claude of course whipped up that presence logic too in notime. |
| 15:11:13 | FromDiscord | <gokr> I did not write a single line of code in that repo... |
| 15:53:53 | FromDiscord | <mostypc123> What is the best way to view websites without a browser in Nim? |
| 16:01:30 | FromDiscord | <griffith1deadly> In reply to @mostypc123 "What is the best": depends on what you mean |
| 16:01:53 | FromDiscord | <griffith1deadly> embedded solution in nim application/game? |
| 16:40:06 | FromDiscord | <TӨMΛ ☠> Is there a rule that `OrderedTable[int, ...]` must start from 0/1? |
| 16:41:07 | FromDiscord | <TӨMΛ ☠> (edit) "Is there" => "sent" | "rule that `OrderedTable[int, ...]` must start from 0/1?" => "code paste, see https://play.nim-lang.org/#pasty=cWEtpXdk" |
| 18:12:52 | FromDiscord | <mostypc123> nvm i found the webview lib |
| 18:13:14 | FromDiscord | <mostypc123> i just couldnt get it to work becaude dependency issue on my system not nim |
| 18:22:07 | FromDiscord | <TFed> hi, how can i take two smallest items from the list? |
| 18:22:41 | FromDiscord | <TFed> i thought that if min() returns the smallest, would be great if min(1) would return second smallest |
| 18:23:09 | FromDiscord | <TFed> so i would get two smallest just by using min() with min(1) |
| 18:23:30 | FromDiscord | <TFed> so i would get two smallest numbers just by using min() with min(1) |
| 18:24:39 | Amun-Ra | what'd be the expected result of min([1], 3)? |
| 18:25:00 | FromDiscord | <TFed> i think i can make a function that searches for smallest and then drops it from the stack, then i can search for second smallest |
| 18:26:18 | FromDiscord | <TFed> so for example\: ↵@[4, 3, 2, 1].smallest(2) will walk list and drop 2 items\: @[1, 2] |
| 18:29:20 | FromDiscord | <TFed> probably [1] |
| 18:31:31 | FromDiscord | <TFed> or error if you want |
| 18:32:16 | FromDiscord | <TFed> i will throw an error ok. I will implement this funciton, i think i will need it↵(<@709044657232936960_=41mun-=52a=5b=49=52=43=5d>) |
| 18:32:28 | FromDiscord | <TFed> i will throw an error ok. I will implement this procedure, i think i will need it |
| 18:32:52 | Amun-Ra | I wouldn't want min having raises pragma other than [] |
| 18:34:46 | FromDiscord | <TFed> i was talking about two different functions. one that allows you to get `nth` smallest item, and second that returns from `1st` to `nth` smallest numbers |
| 18:35:06 | Amun-Ra | what if values are non-unique? |
| 18:35:32 | Amun-Ra | if you want unique values only and don't mind additional allocs, make it a seq and go from there? |
| 18:35:45 | Amun-Ra | but I'd write my own func |
| 18:38:29 | FromDiscord | <TFed> ok i will write my function for it |
| 18:40:48 | * | hygo joined #nim |
| 18:55:28 | FromDiscord | <TFed> no, i was wrong |
| 18:55:33 | FromDiscord | <TFed> i just need to sort list lol |
| 18:55:50 | FromDiscord | <TFed> 😅 |
| 18:58:53 | Amun-Ra | yes, if you don't need to keep the order :) |
| 19:00:51 | FromDiscord | <TFed> it's okay it's a copy |
| 22:12:47 | FromDiscord | <nnsee> In reply to @TFed "it's okay it's a": if all you care about is the nth smallest number then sorting likely isn't the best option for performance, i'd use something like quickselect myself as it's significantly faster https://play.nim-lang.org/#pasty=VjsYZlPz |
| 23:45:49 | FromDiscord | <.somechump> sent a code paste, see https://play.nim-lang.org/#pasty=duSGjfiO |
| 23:46:21 | FromDiscord | <.somechump> (edit) "https://play.nim-lang.org/#pasty=rPswFxPr" => "https://play.nim-lang.org/#pasty=DNiCTMRs" |