00:01:10 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
00:01:54 | * | Goodbye_Vincent1 joined #nim |
00:05:14 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
00:05:58 | * | Goodbye_Vincent1 joined #nim |
00:20:53 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
00:21:37 | * | Goodbye_Vincent1 joined #nim |
00:32:18 | * | disso-peach quit (Quit: Leaving) |
00:41:59 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
00:42:44 | * | Goodbye_Vincent1 joined #nim |
00:45:36 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
00:46:21 | * | Goodbye_Vincent1 joined #nim |
00:49:31 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
00:50:16 | * | Goodbye_Vincent1 joined #nim |
01:04:54 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
01:05:38 | * | Goodbye_Vincent1 joined #nim |
01:08:21 | * | fallback quit (Ping timeout: 252 seconds) |
01:19:30 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
01:22:12 | * | fallback joined #nim |
01:25:59 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
01:26:39 | * | beholders_eye quit (Ping timeout: 246 seconds) |
01:26:43 | * | Goodbye_Vincent1 joined #nim |
01:29:35 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
01:30:20 | * | Goodbye_Vincent1 joined #nim |
01:33:32 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
01:34:17 | * | Goodbye_Vincent1 joined #nim |
01:48:59 | * | Goodbye_Vincent1 quit (Remote host closed the connection) |
01:49:43 | * | Goodbye_Vincent1 joined #nim |
01:54:53 | * | Goodbye_Vincent1 quit (K-Lined) |
01:59:48 | * | lucasta joined #nim |
02:51:15 | FromDiscord | <gogolxdong666> Is Nim suitable for [skynet](https://github.com/cloudwu/skynet) framework |
02:51:41 | FromDiscord | <infradragon> council.ogg https://media.discordapp.net/attachments/371759389889003532/1282896249036476436/council.ogg?ex=66e105bc&is=66dfb43c&hm=7b9d7d5ff23b9d959308e7e65f15179a3c7e7201cfc8d1b3fab53e762c3c4137& |
03:42:02 | * | lucasta quit (Quit: Leaving) |
04:04:52 | * | SchweinDeBurg joined #nim |
04:44:02 | FromDiscord | <Phil (he/him)> Please explain why you just posted this |
04:49:32 | FromDiscord | <infradragon> one eye called out, two eyes tried to hide it↵three eyes tried to find it, and four eyes managed to unbind it |
04:50:16 | FromDiscord | <Phil (he/him)> This is a channel about the nim programming language, your post is unrelated |
05:05:33 | * | ntat joined #nim |
06:05:14 | * | Jjp137 quit (Ping timeout: 260 seconds) |
06:23:03 | * | coldfeet joined #nim |
08:10:27 | * | mfg joined #nim |
08:19:19 | * | Jjp137 joined #nim |
08:36:37 | * | mfg quit (Quit: leaving) |
08:45:06 | * | ntat quit (Quit: Leaving) |
08:55:12 | * | coldfeet quit (Remote host closed the connection) |
09:10:36 | FromDiscord | <basilajith> Is there some repo or list of examples of some Linux tasks written in Nim; which is usually written using bash?↵↵I'm looking for "replace bash with Nim" kind of examples. |
09:12:22 | FromDiscord | <goerge_lsd> In reply to @basilajith "Is there some repo": https://github.com/glaucuslinux/rad/tree/9b27ddd7d5fc981fc5ecfdcc89b159b614e3784b/src |
09:14:24 | FromDiscord | <basilajith> Nice... |
09:14:30 | FromDiscord | <basilajith> Thanks! |
09:25:22 | * | krux02 joined #nim |
10:26:44 | * | m5zs7k quit (Quit: m5zs7k) |
10:27:08 | * | m5zs7k joined #nim |
10:27:36 | * | Artea quit (Remote host closed the connection) |
11:20:15 | * | krux02 quit (Ping timeout: 246 seconds) |
12:03:12 | FromDiscord | <Robyn [She/Her]> In reply to @nitely_ "there are some http/2": how does it work with async, then? |
13:16:46 | * | ntat joined #nim |
13:53:06 | * | nyeaa49284230101 joined #nim |
14:46:01 | FromDiscord | <aintea> In reply to @floppy._disk "Could you please lemme": Sure, it's just the basic installation: `curl https://nim-lang.org/choosenim/init.sh -sSf | sh` |
14:46:14 | FromDiscord | <aintea> Btw don't run commands on your system strangers give you, here's the source |
14:46:28 | FromDiscord | <aintea> https://nim-lang.org/install_unix.html |
14:58:50 | * | lucasta joined #nim |
15:48:59 | * | coldfeet joined #nim |
15:59:33 | * | SchweinDeBurg quit (Ping timeout: 246 seconds) |
16:01:30 | * | SchweinDeBurg joined #nim |
16:35:40 | * | lucasta quit (Quit: Leaving) |
16:45:45 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
18:07:11 | * | def- quit (Quit: -) |
18:07:40 | * | def- joined #nim |
18:09:18 | FromDiscord | <Robyn [She/Her]> @guzba8 sorry for pinging you but does `curly` have a way to stream responses instead of reading it all at once? |
18:09:38 | FromDiscord | <Robyn [She/Her]> If not, do you know what I'd need to do to add support for that? |
18:23:24 | FromDiscord | <goerge_lsd> can you make `sortedByIt` from std/algorithm sort descendingly ? |
18:28:52 | * | beholders_eye joined #nim |
18:35:14 | FromDiscord | <Robyn [She/Her]> In reply to @goerge_lsd "can you make `sortedByIt`": Try `not CONDITION` |
18:39:25 | FromDiscord | <spotlightkid> Use `sorted` with your own proc and `order = SortOrder.Decending`. |
18:39:27 | FromDiscord | <goerge_lsd> hm, variable with a minus ? |
18:39:59 | FromDiscord | <spotlightkid> @Robyn [She/Her]\: `op` arg fro `sortedByIt` is an accessor, not a condition. |
18:40:51 | FromDiscord | <goerge_lsd> ` files.sortedByIt(- it.size)` ? |
18:44:14 | FromDiscord | <spotlightkid> for number that would work |
18:44:15 | FromDiscord | <spotlightkid> for numbers that would work |
18:44:48 | FromDiscord | <Robyn [She/Her]> In reply to @spotlightkid "<@524288464422830095>\: `op` arg fro": Aah okay |
18:46:35 | FromDiscord | <nnsee> In reply to @infradragon "council.ogg": (wtf?) |
18:48:03 | * | redj quit (Ping timeout: 276 seconds) |
18:51:03 | FromDiscord | <spotlightkid> For arbitrary objects\: https://play.nim-lang.org/#pasty=qovKKdBB |
19:54:50 | * | ntat quit (Quit: Leaving) |
20:26:57 | * | beholders_eye quit (Read error: Connection reset by peer) |
20:32:39 | * | beholders_eye joined #nim |
20:53:15 | * | coldfeet quit (Remote host closed the connection) |
21:15:57 | FromDiscord | <Robyn [She/Her]> How would y'all recommend I represent something like https://wiki.vg/Protocol#Type:Byte_Array in my type definitions? This is an example of the usage: https://wiki.vg/Protocol#Encryption_Request↵I've been representing packets like this so far: https://play.nim-lang.org/#pasty=HowZDMOS↵I don't want to use pragmas here tbh↵I was thinking ContextArray but I can't exactly reference a field using generic params |
21:16:17 | FromDiscord | <determiedmech1> In reply to @goerge_lsd "https://github.com/glaucuslinux/rad/tree/9b27ddd7d5": damn I didn't know glaucus was like an actual thing |
21:16:30 | FromDiscord | <determiedmech1> I thought it was a proof of concept or smth |
21:16:33 | FromDiscord | <determiedmech1> that's sick |
21:19:00 | FromDiscord | <determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=trwCFdOk |
21:19:10 | FromDiscord | <determiedmech1> Is it a type union or smth |
21:20:26 | FromDiscord | <determiedmech1> nim is pretty much the only typed language I have any experience with |
21:21:26 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "Is it a type": It's a generic type, `int32 | int64` means that `R` can be an `int32` or `int64`, generics are compile-time information only though, not runtime |
21:21:36 | FromDiscord | <determiedmech1> ooooooooh Minecraft stuff? |
21:22:11 | FromDiscord | <determiedmech1> what are you making |
21:22:17 | FromDiscord | <determiedmech1> In reply to @chronos.vitaqua "It's a generic type,": ah |
21:22:23 | FromDiscord | <determiedmech1> makes sense |
21:22:24 | FromDiscord | <Robyn [She/Her]> Yeah I'm working on a Minecraft server in Nim(skull), I've just begun it though and only have the login + server list stuff https://github.com/Nimberite-Development/Kimberlite |
21:22:36 | FromDiscord | <determiedmech1> That sounds cool |
21:22:49 | FromDiscord | <Robyn [She/Her]> Nimberite-Development is the org I made for my MC-related stuff, Kimberlite is the server |
21:22:54 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "That sounds cool": It is :) |
21:23:14 | FromDiscord | <Robyn [She/Her]> I'm in the MC Protocol server and I use wiki.vg |
21:23:25 | FromDiscord | <determiedmech1> There should really be more mc computer mods ngl |
21:23:46 | FromDiscord | <determiedmech1> theres OC/2 and CC |
21:24:03 | FromDiscord | <determiedmech1> No ruby 😔😭 |
21:25:28 | FromDiscord | <determiedmech1> what are you planning on doing with it? |
21:27:07 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "There should really be": I do wanna make a WebAssembly computer mod for MC, I can;t stand existing JVM languages |
21:27:43 | FromDiscord | <determiedmech1> you can just write straight wasm? |
21:27:53 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "what are you planning": I want to make it a feature complete MC server (but that'll never happen) or as close to it as possible, it'd look good on my CV and could be something to attract server owners to develop for Nim :P |
21:27:53 | FromDiscord | <determiedmech1> I thought you needed to compile it |
21:28:02 | FromDiscord | <determiedmech1> (edit) "I thought you needed ... to" added "t↵compile" | removed "compile" |
21:28:14 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "you can just write": Well, you can with the WAT format, but also you can compile to it |
21:28:22 | FromDiscord | <Robyn [She/Her]> WAT = WebAssembly Text |
21:28:30 | FromDiscord | <determiedmech1> If I understood how to use jruby more I might've tried my hand at making a Ruby computer mod |
21:28:45 | FromDiscord | <Robyn [She/Her]> Fair honestly |
21:28:46 | FromDiscord | <determiedmech1> In reply to @chronos.vitaqua "I want to make": reeeeal |
21:28:54 | FromDiscord | <determiedmech1> I love ruby so much |
21:29:09 | FromDiscord | <determiedmech1> Ruby and Nim are my goats 🙏 |
21:29:24 | FromDiscord | <Robyn [She/Her]> Fair, I never really used Ruby tbh |
21:29:48 | FromDiscord | <determiedmech1> lol is WAT just a lisp |
21:29:50 | FromDiscord | <Robyn [She/Her]> If you wanted a statically typed language, why didn't you choose Crystal, out of curiousity? Seeing as it's much closer to Ruby than Nim |
21:30:15 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "lol is WAT just": Yes and no, you don't need to write it as a lisp |
21:30:38 | FromDiscord | <determiedmech1> In reply to @chronos.vitaqua "If you wanted a": not that I specifically wanted static typing |
21:30:50 | FromDiscord | <determiedmech1> nim I got into because I think it's really interesting |
21:31:24 | FromDiscord | <Robyn [She/Her]> Fair |
21:31:29 | FromDiscord | <determiedmech1> ruby I got into bc I liked Lua but I wanted the same easy language but with more stuff |
21:31:40 | FromDiscord | <determiedmech1> (edit) "easy language" => ""easy language" " |
21:31:45 | FromDiscord | <Robyn [She/Her]> I feel like Ruby and Lua are quite different lol |
21:32:02 | FromDiscord | <determiedmech1> to me they don't feel that different other than syntax |
21:32:04 | FromDiscord | <Robyn [She/Her]> But yeah fair |
21:32:15 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "to me they don't": Yeah I never liked either lolol |
21:32:29 | FromDiscord | <determiedmech1> the one thing that I really love about Lua is how modules work |
21:32:35 | FromDiscord | <determiedmech1> because it makes so much sense |
21:32:41 | FromDiscord | <Robyn [She/Her]> `require` syntax? |
21:32:44 | FromDiscord | <determiedmech1> yeah |
21:32:59 | FromDiscord | <Robyn [She/Her]> `local mod = require("module")` |
21:33:03 | FromDiscord | <determiedmech1> yeah |
21:33:15 | FromDiscord | <Robyn [She/Her]> Tbh I don't like that but I did start as a Python programmer |
21:33:16 | FromDiscord | <determiedmech1> then "module.lua" returns a table of functions |
21:33:48 | FromDiscord | <determiedmech1> Tables are kinda annoying to work with sometimes tho |
21:33:49 | FromDiscord | <Robyn [She/Her]> That sorta makes sense but only when you consider that Lua has no types imo |
21:33:54 | FromDiscord | <Robyn [She/Her]> Just functions and variables |
21:34:00 | FromDiscord | <determiedmech1> yeah |
21:34:05 | FromDiscord | <Robyn [She/Her]> (edit) "functions" => "functions, tables" | "variables" => "primitives" |
21:34:19 | FromDiscord | <determiedmech1> ruby has no primitives |
21:34:23 | FromDiscord | <determiedmech1> its kinda cool |
21:34:34 | FromDiscord | <determiedmech1> the Class class inherits from itself |
21:34:35 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "ruby has no primitives": Really? |
21:34:48 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "the Class class inherits": Ah, magic types |
21:35:35 | FromDiscord | <Robyn [She/Her]> It's like what Java does for the bootstrap class loader and the object type |
21:39:13 | FromDiscord | <determiedmech1> I also like how redefining a class just adds to it |
21:39:20 | FromDiscord | <determiedmech1> instead of overwriting it |
21:39:39 | FromDiscord | <determiedmech1> this might be getting kinda off topic for main lol |
21:41:55 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "I also like how": That's... Horrible imo lol |
21:42:07 | FromDiscord | <determiedmech1> no like |
21:42:12 | * | tc424 quit (Ping timeout: 252 seconds) |
21:42:18 | FromDiscord | <determiedmech1> Let's say I want to add methods to Numeric |
21:42:44 | * | tc424 joined #nim |
21:43:09 | FromDiscord | <determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=MLIlpNtc |
21:44:16 | FromDiscord | <determiedmech1> then later in the program if I do `puts Numeric.methods` |
21:44:27 | FromDiscord | <determiedmech1> myMethod would show up |
21:44:33 | FromDiscord | <Robyn [She/Her]> Yeah, horrible- |
21:44:40 | FromDiscord | <determiedmech1> its soooo useful |
21:45:00 | FromDiscord | <Robyn [She/Her]> Why not just... Make a table and index that with type names |
21:45:09 | FromDiscord | <determiedmech1> idek what that means |
21:46:00 | FromDiscord | <determiedmech1> it allows you to make methods that work like↵↵obj.method |
21:46:09 | FromDiscord | <determiedmech1> (edit) "like↵↵obj.method" => "like `obj.method`" |
21:47:49 | FromDiscord | <determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=rcmoyAJw |
21:48:03 | FromDiscord | <guzba8> In reply to @chronos.vitaqua "<@318284269908918273> sorry for pinging": curly does not streams, no. as for adding support, i am not sure tbh id have to sit down and think / tinker on that↵curly is more about thread safe parallel requests and many requests in flight, streams would probably have different guts interacting with libcurl↵totally doable but id probably start from a blank slate or something simpler like puppy's libcurl inte |
21:48:05 | FromDiscord | <determiedmech1> (edit) "https://play.nim-lang.org/#pasty=GyUjiEcl" => "https://play.nim-lang.org/#pasty=rBlsmHbU" |
21:49:10 | FromDiscord | <griffith1deadly> In reply to @determiedmech1 "So I can do": why are you all telling about that not in offtop channel |
21:49:20 | FromDiscord | <determiedmech1> my bad original gangster |
21:49:43 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=xlmNCuSq |
21:49:52 | FromDiscord | <determiedmech1> so many underscores |
21:49:52 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "why are you all": conversation shifted naturally |
21:49:56 | FromDiscord | <Robyn [She/Her]> also hi griffith |
21:50:02 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "so many underscores": snakecase sucks :p |
21:50:02 | FromDiscord | <determiedmech1> hi griffith |
21:50:19 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "also hi griffith": hi, why you prefer cps? |
21:50:30 | FromDiscord | <Robyn [She/Her]> In reply to @guzba8 "curly does not streams,": Makes sense, thanks for that, may try it myself then if I get the energy... |
21:51:29 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "hi, why you prefer": `nim-sys` by `alaviss` (leorize) supports `cps` for async code, and when I want to start working with threads, cps works nicely with it |
21:51:49 | FromDiscord | <Robyn [She/Her]> `cps` also has like, nearly no difference in syntax compared to async |
21:51:57 | FromDiscord | <determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=leWCaKfg |
21:52:26 | FromDiscord | <Robyn [She/Her]> async has `await` for everything, in cps I can call a cps function like a normal function or use `trampoline` if I want to run all continuations |
21:52:34 | FromDiscord | <Robyn [She/Her]> In reply to @determiedmech1 "(in ruby you can": Makes sense |
21:53:18 | FromDiscord | <griffith1deadly> i hate nim only because of its tooling |
21:53:58 | FromDiscord | <Robyn [She/Her]> Yeah tooling sucks |
21:54:16 | FromDiscord | <Robyn [She/Her]> Also some weird bugs that cause major pain |
21:54:27 | FromDiscord | <Robyn [She/Her]> It can be super slow to get them fixed rip |
21:54:31 | FromDiscord | <griffith1deadly> when the nim 3.. |
21:54:42 | FromDiscord | <Robyn [She/Her]> Hence why I'm using Nimskull now, devs are fast and chill to talk to |
21:54:49 | FromDiscord | <Robyn [She/Her]> (edit) "devs" => "the maintainers" |
21:55:19 | FromDiscord | <griffith1deadly> is nimskull still compatible with many packages? |
21:55:44 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "is nimskull still compatible": If they use Nim 2.0 features, no, but if they don't, then it's fine |
21:56:14 | FromDiscord | <griffith1deadly> is nimskull tooling are better? :B |
21:56:17 | FromDiscord | <Robyn [She/Her]> ModernNet worked nearly out of the box, besides a small issue with distinct tuples that were fixed quickly when the root cause was found |
21:56:43 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "is nimskull tooling are": They're improving the compiler codebase which means better tools can be made? :P |
21:56:53 | FromDiscord | <Robyn [She/Her]> Nimsuggest crashes less on Nimskull, for sure |
22:01:52 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "They're improving the compiler": nimskull support incremental compilation or recursive deps? |
22:05:55 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "nimskull support incremental compilation": No and no, it's still largely Nim on the surface, compiler internals have been reworked and cleaned up a lot (JS backend and the VM especially), so has C generation, they're working on an IR from what I can see and they still need to represent the AST in a way that doesn't use pointers so it's easier to just load and dump an AST |
22:06:04 | FromDiscord | <Robyn [She/Her]> From what I know, at least |
22:35:24 | * | xutaxkamay quit (Ping timeout: 246 seconds) |
22:35:52 | * | aikaeksen joined #nim |
23:06:30 | * | xutaxkamay joined #nim |
23:49:09 | * | beholders_eye quit (Read error: Connection reset by peer) |
23:55:01 | * | beholders_eye joined #nim |
23:57:39 | FromDiscord | <goerge_lsd> wouldn't it have been nice if SortOrder also had a None enum, to skip sorting ? |
23:58:02 | FromDiscord | <goerge_lsd> now I have to wrap it in an option or something |