| 00:01:01 | FromDiscord | <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:24 | FromDiscord | <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:16 | FromDiscord | <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:41 | FromDiscord | <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:18 | FromDiscord | <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:47 | FromDiscord | <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:06 | FromDiscord | <aaronspeedy> In reply to @exelotl "yeah sum types /": You know, you can disable middle click in Firefox and most terminals |
| 02:57:17 | FromDiscord | <aaronspeedy> (edit) "In reply to @exelotl "yeah sum types /": You know, you can disable middle click ... in" added "paste" |
| 03:05:37 | FromDiscord | <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:15 | FromDiscord | <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:49 | FromDiscord | <pipeliner.osdev> In reply to @11clock "Meanwhile, Nim's tooling is": I know that you can make union with paragma? |
| 05:55:45 | FromDiscord | <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:55 | FromDiscord | <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:48 | FromDiscord | <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:49 | FromDiscord | <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:44 | FromDiscord | <ingo_61476> sent a code paste, see https://paste.rs/GtnHP |
| 07:52:37 | FromDiscord | <DetermiedNim1> In reply to @aintea "Do we know if": isnt |> just x |> f(y) -> f(x, y) ? |
| 07:53:43 | FromDiscord | <aintea> sent a code paste, see https://paste.rs/gah4O |
| 07:53:59 | FromDiscord | <aintea> it is "just that" but for big pipelines of code it's very useful |
| 07:54:22 | FromDiscord | <DetermiedNim1> ah yeah that would be nice |
| 07:59:28 | * | Skippy8 joined #nim |
| 08:00:31 | FromDiscord | <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:41 | FromDiscord | <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:32 | FromDiscord | <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:55 | FromDiscord | <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 |
| 09:04:27 | * | Skippy8 quit (Ping timeout: 257 seconds) |
| 10:08:23 | * | zkzeroed joined #nim |
| 10:24:16 | * | zkzeroed quit (Quit: zkzeroed) |
| 10:59:03 | FromDiscord | <ryzh.> Hello! Is there somewhere a summary table for c -> nim types? I want to have correct bindings for C libraries |
| 11:08:31 | FromDiscord | <ryzh.> should I always use [ctypes](https://nim-lang.org/docs/ctypes.html) ?↵when is it appropriate to directly use [system](https://nim-lang.org/1.2.0/system.html) types? |
| 11:19:13 | * | zkzeroed joined #nim |
| 11:21:37 | * | kick455 joined #nim |
| 11:25:33 | * | oculux quit (Ping timeout: 264 seconds) |
| 11:52:45 | FromDiscord | <mratsim> In reply to @ryzh. "Hello! Is there somewhere": use c2nim to bootstrap and adjust? |
| 11:53:28 | FromDiscord | <mratsim> In reply to @aintea "If I find a": I think it can be a library. |
| 11:54:48 | FromDiscord | <ryzh.> In reply to @mratsim "use c2nim to bootstrap": of course, i mean, maybe there is the summary table in c2nim source code 🙂 |
| 11:54:53 | FromDiscord | <mratsim> In reply to @aintea "I know but I": start by reading sequtils and the `it` templates.↵↵Also read how to use `dup`, it's closely related. |
| 11:55:21 | FromDiscord | <ryzh.> I'll take a look into it |
| 11:55:53 | FromDiscord | <mratsim> In reply to @ryzh. "I'll take a look": my last comments about it and dup were not for you |
| 12:28:36 | * | Skippy8 joined #nim |
| 13:20:34 | FromDiscord | <ryzh.> yep, running c2nim was very useful |
| 13:20:35 | FromDiscord | <ryzh.> thanks! |
| 13:23:34 | * | SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev) |
| 14:07:51 | FromDiscord | <nervecenter> In reply to @aintea "yes, but for example": Could you create a binary infix operator and chain that? |
| 14:15:59 | FromDiscord | <aintea> nope because there still wouldn't be currying |
| 14:16:31 | FromDiscord | <aintea> sent a code paste, see https://paste.rs/xz6qM |