<< 08-08-2026 >>

00:01:01FromDiscord<11clock> In reply to @_timurski "manual memory management isn't": Yeah. Currently I may just power through with trying Odin out and see how it goes. I mainly chose it because of its focus on data oriented design and wanting to learn how to code in that manner.
00:02:24FromDiscord<11clock> It's easy to drift back into OOP thinking in other languages, but Odin is one of the very few modern languages that completely strips that away from you.
00:04:16FromDiscord<scoopahdoopah> it was really wild learning programming in school with java cuz they just start with that and tell you like that's the only way to program lmao
00:07:41FromDiscord<scoopahdoopah> alright class it's time to increase shareholder value with classes and objects
00:15:10*pmp-p quit (Ping timeout: 244 seconds)
00:17:18FromDiscord<exelotl> In reply to @11clock "Nim's version of unions,": yeah sum types / better unions seem to have been a quite highly requested feature, which is interesting to me because I'm totally happy with nim's current offering here 😅
00:19:18*zkzeroed quit (Ping timeout: 244 seconds)
01:03:29*Skippy8 quit (Ping timeout: 244 seconds)
01:24:47FromDiscord<tewesday> Nim and Odin are my favorite languages right now, although I am coming from primarily Cpp experience which makes most static typed languages look better
02:40:51*rockcavera joined #nim
02:47:35*rockcavera quit (Remote host closed the connection)
02:57:06FromDiscord<aaronspeedy> In reply to @exelotl "yeah sum types /": You know, you can disable middle click in Firefox and most terminals
02:57:17FromDiscord<aaronspeedy> (edit) "In reply to @exelotl "yeah sum types /": You know, you can disable middle click ... in" added "paste"
03:05:37FromDiscord<exelotl> oh, I solved it globally with https://github.com/milaq/XMousePasteBlock but I kept it in my bio because it was funny x)
03:30:47*rockcavera joined #nim
05:44:35*SchweinDeBurg quit (Remote host closed the connection)
05:44:54*SchweinDeBurg joined #nim
05:52:15FromDiscord<mratsim> In reply to @11clock "Meanwhile, Nim's tooling is": unions exist. `using` there was something like that in the past but it was removed.
05:53:49FromDiscord<pipeliner.osdev> In reply to @11clock "Meanwhile, Nim's tooling is": I know that you can make union with paragma?
05:55:45FromDiscord<kapendev> In reply to @11clock "It's easy to drift": stack_push(&stack, ...)↵stack_pop(&stack, ...)↵Or look at the dynamic allocator API. They actually like OOP sometimes, but it's not cool to say it.
05:58:55FromDiscord<kapendev> And every function is automatically a method of the global context. Anyway, I will go back to the gamedev and php cave now.
05:59:48FromDiscord<kapendev> (edit) "automatically" => "technically "
06:40:19*SchweinDeBurg quit (Remote host closed the connection)
06:40:38*SchweinDeBurg joined #nim
07:01:47*tiorock joined #nim
07:01:47*tiorock quit (Changing host)
07:01:47*tiorock joined #nim
07:01:47*rockcavera is now known as Guest5139
07:01:47*Guest5139 quit (Killed (uranium.libera.chat (Nickname regained by services)))
07:01:47*tiorock is now known as rockcavera
07:34:49FromDiscord<aintea> Do we know if Nim will ever have something like the `|>` operator in functional languages ?↵↵Some currying would be good, for the moment we only have `.` which is not exactly the same
07:41:44FromDiscord<ingo_61476> sent a code paste, see https://paste.rs/GtnHP
07:52:37FromDiscord<DetermiedNim1> In reply to @aintea "Do we know if": isnt |> just x |> f(y) -> f(x, y) ?
07:53:43FromDiscord<aintea> sent a code paste, see https://paste.rs/gah4O
07:53:59FromDiscord<aintea> it is "just that" but for big pipelines of code it's very useful
07:54:22FromDiscord<DetermiedNim1> ah yeah that would be nice
07:59:28*Skippy8 joined #nim
08:00:31FromDiscord<tempestro> You can just create that operator yourself, can't you?↵It's not "standard", but from the vibe I get from it, Nim isn't really meant to be used "standardly"
08:08:41FromDiscord<tapeda> I think getting the syntax with a macro won't be difficult, check for placeholder("_") on right hand side replace with left hand arg. Let that recurse down the tree/easy piping. But I'm sure Gleam has it better integrated semantically with the type system in ways much more difficult to emulate
08:10:32FromDiscord<aintea> In reply to @tempestro "You can just create": I know but I can't think of a safe clean way to make it
08:10:55FromDiscord<aintea> If I find a way to do it I'm going to try to make a pull request for it to be merged in the language