<< 11-10-2025 >>

01:22:24*tokyovigilante quit (Ping timeout: 260 seconds)
01:40:24*xet7 quit (Ping timeout: 265 seconds)
01:52:35*xet7 joined #nim
03:22:30FromDiscord<nevillegg> In reply to @kiloneie "C is an ancient": I learned c++ first. Was worth it. If you think it is anicent, there's updates to this language.
03:23:15FromDiscord<nevillegg> @leorize ok
03:23:21FromDiscord<nevillegg> In reply to @Elegantbeef "*I'd never see chatgpt": Ok
05:35:34FromDiscord<kiloneie> In reply to @nevillegg "I learned c++ first.": Yeah if you work with only modern c++, then sure. But when people have to work with c and c++, they are NOT working with the modern ones, especially C.
05:38:28FromDiscord<kiloneie> sent a long message, see https://pasty.ee/QTNHOvmI
06:11:52FromDiscord<I_m_glad> image.png https://media.discordapp.net/attachments/371759389889003532/1426452218114080830/image.png?ex=68eb46a6&is=68e9f526&hm=0f8dec9d5c7deeeafc1fca6f2284db14fee8ba94b81e5d6256769457aeb08928&
06:12:13FromDiscord<I_m_glad> sometimes the word "ancient" whispers to me "centuries old" lol↵↵(@kiloneie)
06:16:54FromDiscord<kiloneie> In the world of programming, that is not even 100 years old, yeah, that is ancient.
06:18:32FromDiscord<I_m_glad> 1. runtime-less standalone program? your program doesn't depend on anything? does that refers to not having dynamic linking? Oh I'm very bad at it, I forget it always, I guess it's not dl but I don't understand..↵2. I never really tried learning macro after C, cause I heard rust has them scala has them and now I'm hearing nim is macro heavy.. C's macro was easy to learn at base level but I discovered practically they are horrible I gue
06:31:20FromDiscord<I_m_glad> agree for programming but the history of computer science, idk, is probably 100years or more.. ↵↵(@kiloneie)
06:38:26FromDiscord<kiloneie> In reply to @I_m_glad "1. runtime-less standalone program?": Not sure what you are refering to, but if somehow my sections, they are the simplest templates possible, `template section(name: string, body: untyped) = body`. If this confuses people, then they have some serious problems.
06:41:23FromDiscord<I_m_glad> well now that's a challenge to me.. ↵thank god I didn't learn it yet. ↵(@kiloneie)
06:49:56FromDiscord<nevillegg> In reply to @kiloneie "Yeah if you work": aw. but aint doom was in C?
07:07:06*tokyovigilante joined #nim
10:14:19*beholders_eye joined #nim
11:48:54FromDiscord<unawakennx> yo?
12:28:48*LuckyMan joined #nim
15:41:48*xtr00 quit (Read error: Connection reset by peer)
15:46:32*xtr00 joined #nim
16:39:13FromDiscord<kiloneie> Is it better to specify `int64` or to just use `int` ? (any compiler difference... ?)
16:59:23FromDiscord<nnsee> In reply to @kiloneie "Is it better to": depends on what you want to do? they're different types. `int` is the size of the address width, so it's `int64` on 64-bit systems and `int32` on 32-bit systems. `int64` is always 64 bits wide (so using `int64` on a 32-bit system incurs a penalty cost)
17:01:07FromDiscord<nnsee> penalty cost? meant to say performance penalty
17:02:36FromDiscord<kiloneie> Why are people using float64, instead of float though
17:03:53FromDiscord<__jont__> Precision Id imagine
17:05:03FromDiscord<nnsee> if i recall correctly, float always maps to float64 on all platforms
17:05:11FromDiscord<nnsee> so.., dunno
17:05:21FromDiscord<kiloneie> This is why i asked...
17:05:41FromDiscord<kiloneie> and why my brain gravitated towards making all int into int64, knowing that it changes, but forgot about float
17:05:51FromDiscord<kiloneie> This makes me conflicted...
17:06:15FromDiscord<nnsee> In reply to @kiloneie "and why my brain": why? what problem are you trying to solve? do you specifically need 64-bit integers even on 32-bit systems?
17:07:17FromDiscord<kiloneie> No, just brain bother.
17:07:33FromDiscord<kiloneie> I will correct any int64s i might have used to int
17:12:08FromDiscord<mitranim> I've experienced int32/uint32 overflows/underflows as a user, where devs assumed it couldn't happen. So it's nicer to default to a wider type, narrowing where you know _for sure_ that it doesn't matter, either because you're going from float64 to float32 where precision is not essential, or because of using int32 where it's bounded to a lower limit via additional logic
17:12:53FromDiscord<mitranim> (edit) "I've experienced int32/uint32 overflows/underflows as" => "sent" | "user, where devs assumed it couldn't happen. So it's nicer to default to a wider type, narrowing where you know _for sure_ that it doesn't matter, either because you're going from float64 to float32 where precision is not essential, or because of using int32 where it's bounded to a lower limit via additional logic" => "long message, see https://pasty.ee/mqPmwAu
17:14:03FromDiscord<nnsee> why are you out here using a 32-bit system? :p
17:14:18FromDiscord<nnsee> unless you mean they've specifically used int32 for their integers which would be an odd choice
17:14:29FromDiscord<kiloneie> Well, i just caused half my walls to be missing twice, out of embarrassment i deleted the first issue documenting the reason, then i repeated the same mistake xD... Forgetting things is very human.
17:15:18FromDiscord<nnsee> never delete an issue out of embarrassment. bugs happen. "embarrassing" bugs happen. i shipped something really embarrassing to production last week. take it as a learning moment rather than some personal failure
17:16:10FromDiscord<mitranim> 64-bit systems can perform better when using 32-bit numbers where wider values don't really buy you anything (in dense arrays such as SoA)
17:16:27FromDiscord<mitranim> (edit) "64-bit systems can perform better when using 32-bit numbers where wider values don't really buy you anything (in ... dense" added "larger"
17:16:48FromDiscord<mitranim> (edit) "64-bit systems can perform better ... whenmore" added "with 32-bit values" | "32-bit numbers where wider values don't" => "more than 32 bits doesn't"
17:16:59FromDiscord<kiloneie> In reply to @nnsee "never delete an issue": 99% of the time, i document everything in my PRIVATE notes to MYSELF, but for some reason, i decided to delete this one, it wasn't even that bad... i just used image.width and height for placement, and moved image loading to AFTER it, in another module... spent probably 3 hours total on this... 2 + 1... <.<
17:17:19FromDiscord<mitranim> (edit) "SoA)" => "SoA patterns common in games)"
17:17:43FromDiscord<kiloneie> In reply to @mitranim "64-bit systems can perform": This FORCED me to finally ditch Windows XP, 64 bit was not having it with a quad core Q6600
17:17:57FromDiscord<kiloneie> i'd probably be on XP for a few years longer otherwise
17:18:19FromDiscord<kiloneie> It is hard to let go of things. Now i am fluid...
17:18:27FromDiscord<nnsee> In reply to @mitranim "64-bit systems can perform": you would guess that in such scenarios, the developer has chosen to use int32 deliberately and considered the fact that it might not be precise enough for that use case
17:19:06FromDiscord<kiloneie> Win 7 also, i couldn't even install it, keyboard and mouse wouldn't work, USB ones, with Ryzen. i know offtopic
17:19:26FromDiscord<mitranim> I'd guess sometimes errors happen just because they're using a legacy language (C++) and forget that "int" doesn't mean a machine word
17:19:50FromDiscord<nnsee> true
17:20:38FromDiscord<kiloneie> My game and game engine, is not hoping to be really high performance, maybe just going the safer approach would be better. I am prone to such mistakes...
17:20:39FromDiscord<nnsee> btw did you first look into nim because your name ends with nim?
17:20:43FromDiscord<nnsee> kind of an interesting coincidence
17:21:35FromDiscord<mitranim> Haha no. It's because I've been looking around for a decade for a language that doesn't suck, and Nim is by far the closest to sucking least
17:21:35FromDiscord<kiloneie> In reply to @nnsee "kind of an interesting": As is my mum making goulaz, and i went to help my friend, getting served goulaz, and his cousin went to a goulaz cooking competition... Nobody told anyone...
17:21:56FromDiscord<kiloneie> In reply to @mitranim "Haha no. It's because": I did that since high school
17:22:04FromDiscord<kiloneie> Pure Basic was close for a while.
17:22:19FromDiscord<kiloneie> With Nim, it all just clicked for me.
17:22:37FromDiscord<kiloneie> Then i tried some of the competition, and came back more confident about sticking with Nim.
17:23:17FromDiscord<nnsee> In reply to @kiloneie "As is my mum": even weirder, i just had goulash not more than an hour ago
17:25:42FromDiscord<kiloneie> xD
18:21:06*ftajhii joined #nim
19:11:23*LuckyMan quit (Quit: LuckyMan)
20:11:08*beholders_eye quit (Ping timeout: 260 seconds)
20:12:34*beholders_eye joined #nim
20:20:03*beholders_eye quit (Ping timeout: 256 seconds)
23:01:46*switchy_ joined #nim
23:03:30*Ekho- joined #nim
23:04:02*Ekho quit (Ping timeout: 260 seconds)
23:04:02*switchy quit (Ping timeout: 260 seconds)
23:04:02*switchy_ is now known as switchy
23:58:08*Mister_Magister quit (Excess Flood)
23:58:32*Mister_Magister joined #nim