<< 10-09-2024 >>

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:15FromDiscord<gogolxdong666> Is Nim suitable for [skynet](https://github.com/cloudwu/skynet) framework
02:51:41FromDiscord<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:02FromDiscord<Phil (he/him)> Please explain why you just posted this
04:49:32FromDiscord<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:16FromDiscord<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:36FromDiscord<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:22FromDiscord<goerge_lsd> In reply to @basilajith "Is there some repo": https://github.com/glaucuslinux/rad/tree/9b27ddd7d5fc981fc5ecfdcc89b159b614e3784b/src
09:14:24FromDiscord<basilajith> Nice...
09:14:30FromDiscord<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:12FromDiscord<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:01FromDiscord<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:14FromDiscord<aintea> Btw don't run commands on your system strangers give you, here's the source
14:46:28FromDiscord<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:18FromDiscord<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:38FromDiscord<Robyn [She/Her]> If not, do you know what I'd need to do to add support for that?
18:23:24FromDiscord<goerge_lsd> can you make `sortedByIt` from std/algorithm sort descendingly ?
18:28:52*beholders_eye joined #nim
18:35:14FromDiscord<Robyn [She/Her]> In reply to @goerge_lsd "can you make `sortedByIt`": Try `not CONDITION`
18:39:25FromDiscord<spotlightkid> Use `sorted` with your own proc and `order = SortOrder.Decending`.
18:39:27FromDiscord<goerge_lsd> hm, variable with a minus ?
18:39:59FromDiscord<spotlightkid> @Robyn [She/Her]\: `op` arg fro `sortedByIt` is an accessor, not a condition.
18:40:51FromDiscord<goerge_lsd> ` files.sortedByIt(- it.size)` ?
18:44:14FromDiscord<spotlightkid> for number that would work
18:44:15FromDiscord<spotlightkid> for numbers that would work
18:44:48FromDiscord<Robyn [She/Her]> In reply to @spotlightkid "<@524288464422830095>\: `op` arg fro": Aah okay
18:46:35FromDiscord<nnsee> In reply to @infradragon "council.ogg": (wtf?)
18:48:03*redj quit (Ping timeout: 276 seconds)
18:51:03FromDiscord<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:57FromDiscord<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:17FromDiscord<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:30FromDiscord<determiedmech1> I thought it was a proof of concept or smth
21:16:33FromDiscord<determiedmech1> that's sick
21:19:00FromDiscord<determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=trwCFdOk
21:19:10FromDiscord<determiedmech1> Is it a type union or smth
21:20:26FromDiscord<determiedmech1> nim is pretty much the only typed language I have any experience with
21:21:26FromDiscord<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:36FromDiscord<determiedmech1> ooooooooh Minecraft stuff?
21:22:11FromDiscord<determiedmech1> what are you making
21:22:17FromDiscord<determiedmech1> In reply to @chronos.vitaqua "It's a generic type,": ah
21:22:23FromDiscord<determiedmech1> makes sense
21:22:24FromDiscord<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:36FromDiscord<determiedmech1> That sounds cool
21:22:49FromDiscord<Robyn [She/Her]> Nimberite-Development is the org I made for my MC-related stuff, Kimberlite is the server
21:22:54FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "That sounds cool": It is :)
21:23:14FromDiscord<Robyn [She/Her]> I'm in the MC Protocol server and I use wiki.vg
21:23:25FromDiscord<determiedmech1> There should really be more mc computer mods ngl
21:23:46FromDiscord<determiedmech1> theres OC/2 and CC
21:24:03FromDiscord<determiedmech1> No ruby 😔😭
21:25:28FromDiscord<determiedmech1> what are you planning on doing with it?
21:27:07FromDiscord<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:43FromDiscord<determiedmech1> you can just write straight wasm?
21:27:53FromDiscord<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:53FromDiscord<determiedmech1> I thought you needed to compile it
21:28:02FromDiscord<determiedmech1> (edit) "I thought you needed ... to" added "t↵compile" | removed "compile"
21:28:14FromDiscord<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:22FromDiscord<Robyn [She/Her]> WAT = WebAssembly Text
21:28:30FromDiscord<determiedmech1> If I understood how to use jruby more I might've tried my hand at making a Ruby computer mod
21:28:45FromDiscord<Robyn [She/Her]> Fair honestly
21:28:46FromDiscord<determiedmech1> In reply to @chronos.vitaqua "I want to make": reeeeal
21:28:54FromDiscord<determiedmech1> I love ruby so much
21:29:09FromDiscord<determiedmech1> Ruby and Nim are my goats 🙏
21:29:24FromDiscord<Robyn [She/Her]> Fair, I never really used Ruby tbh
21:29:48FromDiscord<determiedmech1> lol is WAT just a lisp
21:29:50FromDiscord<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:15FromDiscord<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:38FromDiscord<determiedmech1> In reply to @chronos.vitaqua "If you wanted a": not that I specifically wanted static typing
21:30:50FromDiscord<determiedmech1> nim I got into because I think it's really interesting
21:31:24FromDiscord<Robyn [She/Her]> Fair
21:31:29FromDiscord<determiedmech1> ruby I got into bc I liked Lua but I wanted the same easy language but with more stuff
21:31:40FromDiscord<determiedmech1> (edit) "easy language" => ""easy language" "
21:31:45FromDiscord<Robyn [She/Her]> I feel like Ruby and Lua are quite different lol
21:32:02FromDiscord<determiedmech1> to me they don't feel that different other than syntax
21:32:04FromDiscord<Robyn [She/Her]> But yeah fair
21:32:15FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "to me they don't": Yeah I never liked either lolol
21:32:29FromDiscord<determiedmech1> the one thing that I really love about Lua is how modules work
21:32:35FromDiscord<determiedmech1> because it makes so much sense
21:32:41FromDiscord<Robyn [She/Her]> `require` syntax?
21:32:44FromDiscord<determiedmech1> yeah
21:32:59FromDiscord<Robyn [She/Her]> `local mod = require("module")`
21:33:03FromDiscord<determiedmech1> yeah
21:33:15FromDiscord<Robyn [She/Her]> Tbh I don't like that but I did start as a Python programmer
21:33:16FromDiscord<determiedmech1> then "module.lua" returns a table of functions
21:33:48FromDiscord<determiedmech1> Tables are kinda annoying to work with sometimes tho
21:33:49FromDiscord<Robyn [She/Her]> That sorta makes sense but only when you consider that Lua has no types imo
21:33:54FromDiscord<Robyn [She/Her]> Just functions and variables
21:34:00FromDiscord<determiedmech1> yeah
21:34:05FromDiscord<Robyn [She/Her]> (edit) "functions" => "functions, tables" | "variables" => "primitives"
21:34:19FromDiscord<determiedmech1> ruby has no primitives
21:34:23FromDiscord<determiedmech1> its kinda cool
21:34:34FromDiscord<determiedmech1> the Class class inherits from itself
21:34:35FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "ruby has no primitives": Really?
21:34:48FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "the Class class inherits": Ah, magic types
21:35:35FromDiscord<Robyn [She/Her]> It's like what Java does for the bootstrap class loader and the object type
21:39:13FromDiscord<determiedmech1> I also like how redefining a class just adds to it
21:39:20FromDiscord<determiedmech1> instead of overwriting it
21:39:39FromDiscord<determiedmech1> this might be getting kinda off topic for main lol
21:41:55FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "I also like how": That's... Horrible imo lol
21:42:07FromDiscord<determiedmech1> no like
21:42:12*tc424 quit (Ping timeout: 252 seconds)
21:42:18FromDiscord<determiedmech1> Let's say I want to add methods to Numeric
21:42:44*tc424 joined #nim
21:43:09FromDiscord<determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=MLIlpNtc
21:44:16FromDiscord<determiedmech1> then later in the program if I do `puts Numeric.methods`
21:44:27FromDiscord<determiedmech1> myMethod would show up
21:44:33FromDiscord<Robyn [She/Her]> Yeah, horrible-
21:44:40FromDiscord<determiedmech1> its soooo useful
21:45:00FromDiscord<Robyn [She/Her]> Why not just... Make a table and index that with type names
21:45:09FromDiscord<determiedmech1> idek what that means
21:46:00FromDiscord<determiedmech1> it allows you to make methods that work like↵↵obj.method
21:46:09FromDiscord<determiedmech1> (edit) "like↵↵obj.method" => "like `obj.method`"
21:47:49FromDiscord<determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=rcmoyAJw
21:48:03FromDiscord<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:05FromDiscord<determiedmech1> (edit) "https://play.nim-lang.org/#pasty=GyUjiEcl" => "https://play.nim-lang.org/#pasty=rBlsmHbU"
21:49:10FromDiscord<griffith1deadly> In reply to @determiedmech1 "So I can do": why are you all telling about that not in offtop channel
21:49:20FromDiscord<determiedmech1> my bad original gangster
21:49:43FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=xlmNCuSq
21:49:52FromDiscord<determiedmech1> so many underscores
21:49:52FromDiscord<Robyn [She/Her]> In reply to @griffith1deadly "why are you all": conversation shifted naturally
21:49:56FromDiscord<Robyn [She/Her]> also hi griffith
21:50:02FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "so many underscores": snakecase sucks :p
21:50:02FromDiscord<determiedmech1> hi griffith
21:50:19FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "also hi griffith": hi, why you prefer cps?
21:50:30FromDiscord<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:29FromDiscord<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:49FromDiscord<Robyn [She/Her]> `cps` also has like, nearly no difference in syntax compared to async
21:51:57FromDiscord<determiedmech1> sent a code paste, see https://play.nim-lang.org/#pasty=leWCaKfg
21:52:26FromDiscord<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:34FromDiscord<Robyn [She/Her]> In reply to @determiedmech1 "(in ruby you can": Makes sense
21:53:18FromDiscord<griffith1deadly> i hate nim only because of its tooling
21:53:58FromDiscord<Robyn [She/Her]> Yeah tooling sucks
21:54:16FromDiscord<Robyn [She/Her]> Also some weird bugs that cause major pain
21:54:27FromDiscord<Robyn [She/Her]> It can be super slow to get them fixed rip
21:54:31FromDiscord<griffith1deadly> when the nim 3..
21:54:42FromDiscord<Robyn [She/Her]> Hence why I'm using Nimskull now, devs are fast and chill to talk to
21:54:49FromDiscord<Robyn [She/Her]> (edit) "devs" => "the maintainers"
21:55:19FromDiscord<griffith1deadly> is nimskull still compatible with many packages?
21:55:44FromDiscord<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:14FromDiscord<griffith1deadly> is nimskull tooling are better? :B
21:56:17FromDiscord<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:43FromDiscord<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:53FromDiscord<Robyn [She/Her]> Nimsuggest crashes less on Nimskull, for sure
22:01:52FromDiscord<griffith1deadly> In reply to @chronos.vitaqua "They're improving the compiler": nimskull support incremental compilation or recursive deps?
22:05:55FromDiscord<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:04FromDiscord<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:39FromDiscord<goerge_lsd> wouldn't it have been nice if SortOrder also had a None enum, to skip sorting ?
23:58:02FromDiscord<goerge_lsd> now I have to wrap it in an option or something