00:04:50 | * | krux02 quit (Quit: Leaving) |
00:20:40 | FromDiscord | <Robyn [She/Her]> I'm reading the code carefully and struggling to understand why I am having an issue with it... ._. |
00:20:44 | * | disso-peach quit (Quit: Leaving) |
00:25:11 | FromDiscord | <Robyn [She/Her]> My Nim code: https://play.nim-lang.org/#pasty=isGRpdNRVHSb↵↵The Python code: https://www.online-python.com/HYP7UGhgkt |
00:32:28 | FromDiscord | <Elegantbeef> Are python characters single byteS? |
00:32:29 | FromDiscord | <Elegantbeef> Also why the hell are you doing `cast[string](...)` |
00:33:31 | FromDiscord | <Elegantbeef> If you look at your `repr` you get only one of the two bytes |
00:34:19 | FromDiscord | <Elegantbeef> So your logic is wrong |
00:34:30 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=blQxRcHloTPh |
00:34:49 | FromDiscord | <Elegantbeef> Since `0x10000` is about 2.5 bytes larger than 1 byte |
00:40:41 | FromDiscord | <Elegantbeef> https://play.nim-lang.org/#pasty=oChLUtxExAyw yep your issue is assuming Python `char` and Nim `char` are the same @Robyn [She/Her] |
00:42:36 | FromDiscord | <Elegantbeef> Actually you can drop the `$` and just do `add` |
00:42:40 | FromDiscord | <Elegantbeef> `std/unicode` has a `add` for `Rune` |
00:43:26 | FromDiscord | <Robyn [She/Her]> Aaah... Joy, thanks for pointing that out to me, I'm blind otherwise |
00:43:44 | FromDiscord | <Elegantbeef> If only you wrote the code from scratch so you'd have thought about what you were doing |
00:47:56 | FromDiscord | <Robyn [She/Her]> I would've still made the same mistake :P |
00:48:09 | FromDiscord | <Elegantbeef> I disagree |
00:52:53 | FromDiscord | <zumi.dxy> `runes`? |
00:53:12 | FromDiscord | <Elegantbeef> What about them? |
00:53:27 | FromDiscord | <zumi.dxy> Sorry I thought that wasn't mentioned yet, whoops |
00:53:35 | FromDiscord | <Elegantbeef> They're converting from non standard utf8 to utf8 |
00:54:00 | FromDiscord | <Elegantbeef> So `std/unicode` is wholly useless on the consumption side, but on the emitting side it's fine |
00:54:56 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "I disagree": I did not at any point realise I needed runes- I thought that `char` would do the trick...until you made me remember it's 8 bits, again- |
00:55:15 | FromDiscord | <Tommy_pac> sent a long message, see https://pasty.ee/qXdKqnZMiLHs |
00:55:34 | FromDiscord | <Robyn [She/Her]> <@&371760044473319454> |
00:59:21 | FromDiscord | <Elegantbeef> hey you might've skipped runes and just did the logic directly |
00:59:49 | FromDiscord | <Elegantbeef> Though bitwise operators aren't really needed as long as you make the bytes right |
01:00:47 | * | azimut joined #nim |
01:09:07 | FromDiscord | <Robyn [She/Her]> Fair |
01:09:19 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "hey you might've skipped": :P |
01:17:24 | FromDiscord | <drunkenalcoholic> does anyone know of an simple daemon example, nothing too comlpex as im only learning. the raeson is I have a process running in a forever loop that I would like to destroy when the window manager gets destroyed or user logs out |
01:18:34 | FromDiscord | <Elegantbeef> Sounds like you should use your init system |
01:20:03 | FromDiscord | <Elegantbeef> If you use systemd you can just make a user service |
01:20:22 | systemdsucks | or just .xinitrc |
01:21:40 | FromDiscord | <Elegantbeef> Hey some people use wayland! |
01:21:46 | FromDiscord | <Elegantbeef> Not that I do, but some do |
01:22:21 | systemdsucks | sorry, didn't account for the betatesters |
01:23:09 | FromDiscord | <Elegantbeef> I'm a simple man it does not have a way to do global push to talk |
01:58:09 | FromDiscord | <nasuray> In reply to @Elegantbeef "Hey some people use": https://media.discordapp.net/attachments/371759389889003532/1203157447531962418/image0.gif?ex=65d012b1&is=65bd9db1&hm=5f62f20df97e5fade4bd83974f3dbf116241626a9e152a9089dec95bcfc990b2& |
02:32:52 | FromDiscord | <␀ Array 🇵🇸 🍉> https://infosec.exchange/@malwaretech/111864954043268604 |
02:57:05 | * | lucasta quit (Quit: Leaving) |
03:24:37 | FromDiscord | <drunkenalcoholic> noob question, how would I declare an "empty" DateTime variable e.g dTimeStamp: DateTime = now() I was think = nil or something but that didn't work, reason I need it to be "empty" is to check later in code if it has a value and if not run a proc else discard |
03:27:26 | FromDiscord | <Elegantbeef> `default DateTime` |
03:27:41 | FromDiscord | <Elegantbeef> But you likely want `std/options` and to do `none(DateTime)` |
03:28:39 | FromDiscord | <drunkenalcoholic> ahh i see. so "if dTiemStamp == default:" wouldn't work? |
03:30:00 | FromDiscord | <drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=AlrbKJNvSsEm |
03:30:02 | FromDiscord | <Elegantbeef> `default` is a procedure |
03:31:32 | FromDiscord | <drunkenalcoholic> the above it what I am tring to do 🙂 , I will look into to the default procedure, thanks |
03:34:11 | FromDiscord | <drunkenalcoholic> I think I will just use a bool variable to indiocate first run, don't want add extra modules if I don't need to |
03:34:22 | FromDiscord | <Elegantbeef> Just use options |
03:35:41 | FromDiscord | <drunkenalcoholic> im noob, so I will have to go and learn how to use options, which is a good thing |
03:43:05 | FromDiscord | <Elegantbeef> Well it's a much better interface than having two variables |
03:44:57 | FromDiscord | <drunkenalcoholic> sent a code paste, see https://play.nim-lang.org/#pasty=tQzymOHHcTCb |
03:45:08 | FromDiscord | <drunkenalcoholic> what am I doing wrong here in the if statement |
03:45:30 | FromDiscord | <Elegantbeef> `dTimeStamp.get` or `dTimeStampe.unsafeGet` since you know `isSome` is true |
03:46:36 | FromDiscord | <Elegantbeef> `Option[T]` encapsulates the value inside and encourages correct access of it through a `isSome` check followed by `get` |
03:47:29 | FromDiscord | <drunkenalcoholic> Thank you, your info is greatly appreciated |
03:50:39 | FromDiscord | <drunkenalcoholic> "if isNone(dTimeStamp.get) or now() + initDuration(minutes = INTERVALS) > dTimeStamp:" isNone(sTimeStamp.get) should get the container content and compare if = none? return a bool, I am still getting errors , so I am missing something |
03:51:46 | FromDiscord | <Elegantbeef> read the `std/options` manual |
04:20:26 | FromDiscord | <drunkenalcoholic> ok fixed, thank you for your help |
04:32:09 | NimEventer | New Nimble package! instagram - Instagram internal web api implementation, see https://github.com/thisago/instagram |
04:38:17 | FromDiscord | <pierce.jason> I'm having trouble getting nimble to init a blank project for me. fails seemingly right before git init while trying to cd into the new project dir that it just created. running the cd and git init manually afterwards is successful. nimble v0.14.2 on Win10. tried from both cmd.exe and Git Bash |
04:40:11 | FromDiscord | <pierce.jason> output: https://gist.github.com/pierce-jason/35afe8351158d302475fc36e19ff6707 |
04:42:35 | FromDiscord | <Elegantbeef> TIL nimble runs git init |
04:43:49 | FromDiscord | <pierce.jason> @ElegantBeef --git option |
04:44:22 | FromDiscord | <Elegantbeef> Seems it attempts to use bashisms even on windows |
04:44:42 | FromDiscord | <pierce.jason> project initializes successfully w/o --git init |
04:44:42 | FromDiscord | <Elegantbeef> instead of doing `git init -C path/here/` it does `cd path/here/ && git init` |
04:45:09 | FromDiscord | <pierce.jason> bashisms should be fine... in Git Bash shell especially |
04:45:56 | FromDiscord | <Elegantbeef> Hey I didnt know what shell you were using |
04:46:10 | FromDiscord | <Elegantbeef> Create an issue is all I can say |
04:46:13 | * | eery quit (Ping timeout: 255 seconds) |
04:46:19 | FromDiscord | <Elegantbeef> The fact this `--git` flag exists is quite odd to me though |
04:46:39 | FromDiscord | <pierce.jason> tried from both cmd.exe and Git Bash, same result |
04:47:53 | * | eery joined #nim |
04:48:32 | FromDiscord | <pierce.jason> hey, look it there, an issue exists already. good deal |
04:55:14 | * | azimut quit (Ping timeout: 255 seconds) |
05:45:59 | * | azimut joined #nim |
05:59:08 | FromDiscord | <leorize> it's not fine, because nimble doesn't use it on windows↵(@pierce.jason) |
06:01:55 | FromDiscord | <Elegantbeef> It's quite absurd that it uses cd instead of `-C` 😄 |
06:48:43 | * | khazakar joined #nim |
06:51:28 | FromDiscord | <Hamid_Bluri> In reply to @demotomohiro "That is how `peekXYZ`": strange, the `hasData(p: Process)` returns `false` if the `stdout` is not closed yet |
06:57:38 | FromDiscord | <Hamid_Bluri> I tried `fcntl` to make it non blocking but it always returns -1 as an indicator of erro 😄 |
06:58:01 | FromDiscord | <Hamid_Bluri> (edit) removed "an" | "erro" => "an error" |
07:30:02 | * | azimut quit (Ping timeout: 255 seconds) |
07:34:29 | FromDiscord | <Hamid_Bluri> OMG it worked |
07:42:54 | FromDiscord | <Phil> Beef: Turns out it's specifically clang + valgrind that has the problem |
07:43:13 | FromDiscord | <Phil> https://bugs.kde.org/show_bug.cgi?id=452758↵Swapping to gcc solves the problem as well (seemingly at least) |
07:58:14 | FromDiscord | <whisperecean> Phil: Moigagoo helped me |
07:59:29 | FromDiscord | <whisperecean> I had to do this to print the UUID : proc `$`(val: UUID): string {.borrow.} |
08:58:47 | FromDiscord | <Phil> In reply to @whisperecean "I had to do": Huh, odd.↵That is essentially equivalent to `proc $(val: UUID): string = val.string`, didn't you have that before? |
08:58:59 | FromDiscord | <Phil> (edit) "In reply to @whisperecean "I had to do": Huh, odd.↵That is essentially equivalent to `proc $(val: UUID): string = val.string`, didn't you have that ... before?" added "somewhere" |
08:59:45 | FromDiscord | <whisperecean> I did not have proc $ anywhere hm |
08:59:52 | * | azimut joined #nim |
08:59:53 | FromDiscord | <Phil> Ohhhhhh |
08:59:59 | * | advesperacit joined #nim |
09:00:58 | FromDiscord | <Phil> sent a long message, see https://pasty.ee/UyvfLLENzvmD |
09:26:18 | FromDiscord | <whisperecean> Yeah lesson learned. It is much harder to do trivial tasks with caveats like these |
09:30:37 | FromDiscord | <tapeda> That's when you ask yourself if a string alias would better serve your purpose than a distinct string that borrows a bunch of procedures. Distinct is kinda niche imho |
09:31:48 | FromDiscord | <Phil> In reply to @tapeda "That's when you ask": You need the distinction for static proc dispatch, alias won't save you |
09:32:02 | FromDiscord | <Phil> In his case at least |
09:32:59 | FromDiscord | <Phil> It's all about mapping types to columns and that's only possible when it comes to more "exotic" stuff if you use distinct types |
09:49:57 | FromDiscord | <whisperecean> I could not make the 3 procs with just type alias from what I remember |
09:54:11 | FromDiscord | <Phil> Aye because a type alias is just a different name over the same type.↵The compiler recognizes them as the same thing and thus will wire up procs for strings to that type alias the same as before.↵Only distinct types are recognized as actually entirely different types |
09:54:19 | FromDiscord | <Phil> (edit) "Aye because a type alias is just a different name over the same type.↵The compiler recognizes them as the same thing and thus will wire up procs for strings to that type alias the same as before.↵Only distinct types are recognized as actually entirely different types ... " added "that get their own procs" |
10:09:00 | * | ehmry is now known as ehmry__ |
10:34:46 | * | jkl quit (Quit: Gone.) |
10:37:06 | * | jkl joined #nim |
11:27:10 | FromDiscord | <norax.2> does someone know whats the comand to export the nim bin variable on unix,thanks in advance |
11:27:22 | FromDiscord | <norax.2> (edit) "export" => "edit" |
11:31:08 | FromDiscord | <nnsee> In reply to @norax.2 "does someone know whats": what is the "nim bin variable"? |
11:31:18 | FromDiscord | <norax.2> that thing needed to run nim |
11:31:22 | FromDiscord | <norax.2> i forgot the name |
11:31:34 | FromDiscord | <norax.2> and accidentally erased it from my sistem |
11:31:42 | FromDiscord | <norax.2> (edit) "sistem" => "system" |
11:31:58 | FromDiscord | <nnsee> i have no idea what you're talking about |
11:32:05 | FromDiscord | <nnsee> do you mean choosenim? |
11:32:15 | FromDiscord | <norax.2> is like export {thename}=nim bin directory |
11:32:24 | FromDiscord | <norax.2> but i forgot the name |
11:32:25 | FromDiscord | <nnsee> oh, the path variable |
11:32:51 | FromDiscord | <nnsee> `export PATH=$PATH:$HOME/.nimble/bin` probably |
11:33:08 | FromDiscord | <nnsee> you don't need that to "run" nim btw |
11:33:18 | FromDiscord | <summarity> `choosenim show` lists the current active version path (unless you also deleted the path to choosenim) |
11:33:19 | FromDiscord | <nnsee> that just makes it so you don't have to use the full path to the nim binary to execute it |
11:33:54 | FromDiscord | <whisperecean> @Phil Stumbled upon code like this yesterday https://github.com/hamidb80/ReMS/blob/main/src/backend/database/models.nim Do you think it is well structured? |
11:34:54 | FromDiscord | <norax.2> In reply to @nnsee "`export PATH=$PATH:$HOME/.nimble/bin` probably": THANKS |
11:35:00 | FromDiscord | <norax.2> it worked |
11:35:20 | FromDiscord | <nnsee> yeah, just make sure you put it in your shell's rc file |
11:35:24 | FromDiscord | <nnsee> so .bashrc if you're using bash |
11:35:24 | FromDiscord | <norax.2> ik ik |
11:35:29 | FromDiscord | <norax.2> i accidentally resetted it |
11:35:32 | FromDiscord | <norax.2> thats wy |
11:35:40 | FromDiscord | <norax.2> (edit) "resetted" => "erased" |
11:35:53 | FromDiscord | <norax.2> that ressetted i a mixtape between italian and english lol |
11:36:18 | FromDiscord | <norax.2> (edit) "wy" => "why" |
11:37:24 | FromDiscord | <Phil> sent a long message, see https://pasty.ee/vyKnEZFbCfbN |
11:37:24 | FromDiscord | <norax.2> now it works |
11:37:31 | FromDiscord | <norax.2> thx alot |
11:37:51 | FromDiscord | <Phil> (edit) "https://pasty.ee/EthluzEhOCkj" => "https://pasty.ee/yvHqeMXGtjuM" |
11:38:12 | FromDiscord | <Phil> The problem with structuring along technical boundaries is it scales like ass imo |
11:38:17 | FromDiscord | <whisperecean> Ill look into this thanks |
11:39:33 | FromDiscord | <Phil> In reply to @whisperecean "Ill look into this": If you're curious about ways of structuring you could look into domain driven design.↵Don't try to dig too deep into it, people like to overcomplicate it and have mixed in a ton more stuff than just splitting code along the lines of "topics"/"domains" , but it contains various pretty neat ideas |
11:40:24 | FromDiscord | <Phil> As an example of how I structure things, I've got a webpage for DnD related stuff.↵So I have pages about creatures, characters, items, locations, quests and more |
11:40:24 | FromDiscord | <whisperecean> I will most likely run into some other caveat with lowdb before restructuring :F |
11:40:46 | FromDiscord | <Phil> So because of that, I have a "creatures" dir, a "characters" dir etc. |
11:42:02 | FromDiscord | <Phil> sent a long message, see https://pasty.ee/IfXrdQxQTCQE |
11:50:04 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "https://play.nim-lang.org/#pasty=oChLUtxExAyw yep y": I am yet again confused why this isn't working https://play.nim-lang.org/#pasty=orHpVKlmvdoQ |
11:54:34 | FromDiscord | <Robyn [She/Her]> Oh wait |
11:55:13 | FromDiscord | <Robyn [She/Her]> Yep fixed that |
11:55:25 | FromDiscord | <odexine> I don’t even know where to start to help |
11:55:28 | FromDiscord | <Robyn [She/Her]> Needed to make the bytes converted to int32s |
11:55:54 | FromDiscord | <odexine> Maybe next time minimise the code? It’s really difficult to help you when we have to figure out 17 different things before we can even start |
11:56:17 | FromDiscord | <Robyn [She/Her]> That's fair, I'll keep that in mind- |
11:57:02 | FromDiscord | <odexine> Maybe add more comments explaining why you’re doing things |
11:58:51 | FromDiscord | <norax.2> my god im setting up a vscodium(vistual studio code but opensource) and a github project and it is so cleeaaan https://media.discordapp.net/attachments/371759389889003532/1203308617810575370/image.png?ex=65d09f7a&is=65be2a7a&hm=adc7589a76934cc045f0f22e7ae748cfb3240cd146993b183679723137b06716& |
11:58:57 | FromDiscord | <norax.2> and easy |
11:59:02 | FromDiscord | <norax.2> i just press commit |
11:59:05 | FromDiscord | <Robyn [She/Her]> In reply to @odexine "Maybe add more comments": Yk that's actually a good idea |
12:00:16 | FromDiscord | <odexine> And also tell us more about your problem and what’s expected, etc |
12:32:34 | FromDiscord | <Robyn [She/Her]> That's why I had an assert statement at the end, but I will be more descriptive- |
12:48:17 | * | khazakar quit (Quit: Connection closed for inactivity) |
12:55:31 | FromDiscord | <odexine> In reply to @chronos.vitaqua "That's why I had": Well I understand that, yes, that was sufficient to tell us what was expected, but any ideas or hints as to why you think what’s happening is happening would also be appreciated |
12:59:33 | FromDiscord | <Robyn [She/Her]> Fair |
13:01:05 | FromDiscord | <odexine> :ChiguPien: I’m not scolding you |
13:01:15 | FromDiscord | <odexine> I just realised it looked like I was :ChiguPien: :ChiguPien: :ChiguPien: |
13:02:16 | * | jmdaemon quit (Ping timeout: 268 seconds) |
13:02:30 | FromDiscord | <Robyn [She/Her]> Pffff you're fine xD |
13:02:50 | FromDiscord | <Robyn [She/Her]> I didn't interpret it as scolding, it was constructive criticism in how I could get better feedback |
13:04:08 | FromDiscord | <Robyn [She/Her]> Hm... Is it worth publishing the Modified UTF-8 code as a library once I make sure it passes all the tests? |
13:07:01 | FromDiscord | <nnsee> wait what are you doing exactly |
13:09:40 | * | krux02 joined #nim |
13:09:53 | FromDiscord | <Robyn [She/Her]> In reply to @nnsee "wait what are you": Java uses Modified UTF-8 for encoding and decoding, and NBT strings (and other strings sent over by the network for that matter), are Modified UTF-8, so I wanna convert that to Standard UTF-8 (when parsing it on the Nim side) and back (when dumping it) |
13:10:16 | FromDiscord | <Robyn [She/Her]> And there's probably other usecases for MUTF-8 so |
13:14:03 | FromDiscord | <nnsee> oh yeah, right |
13:14:14 | FromDiscord | <nnsee> why _wouldn't_ it be worth publishing it? |
13:14:27 | FromDiscord | <Robyn [She/Her]> In reply to @nnsee "why _wouldn't_ it be": Can't think of any reasons for that tbf |
13:18:10 | FromDiscord | <Robyn [She/Her]> What's the lowest Nim version this should support hm... |
13:19:03 | FromDiscord | <nnsee> i generally go for 1.6 |
13:19:13 | FromDiscord | <Robyn [She/Her]> Alright! |
13:30:28 | FromDiscord | <Robyn [She/Her]> https://paste.ecorous.org/otiqirehum.yaml If I understand correctly... This means it'll test every specified backend with every specified Nim version with every specified OS? |
13:37:20 | FromDiscord | <Robyn [She/Her]> Worked as expected~ |
13:40:00 | FromDiscord | <ebahi> hello, ive been trying out nimble tests and was wondering if it was normal that in my nimble project file i've set a binDir yet when i compile my tests it doesn't get compiled in bin? |
13:40:08 | FromDiscord | <ebahi> is this intentional? |
13:47:50 | FromDiscord | <Robyn [She/Her]> https://github.com/Yu-Vitaqua-fer-Chronos/MUTF-8 @nnsee :) now I can go back to ~~suffering~~ working on the NBT encoder and decoder |
13:48:09 | FromDiscord | <nnsee> nice |
13:48:22 | FromDiscord | <Robyn [She/Her]> Windows takes forever for it's tests, for some reason |
13:49:34 | FromDiscord | <nnsee> it's probably running defender on every source file trying to find viruses |
13:49:57 | FromDiscord | <Robyn [She/Her]> Oh huh, fun then :p |
13:51:12 | FromDiscord | <nnsee> i was semi-joking |
13:51:21 | FromDiscord | <nnsee> but i wouldn't be surprised if i was right |
15:00:02 | * | azimut quit (Ping timeout: 255 seconds) |
15:00:29 | FromDiscord | <Robyn [She/Her]> XR↵(@nnsee) |
15:00:36 | FromDiscord | <Robyn [She/Her]> XD |
15:00:47 | FromDiscord | <Robyn [She/Her]> Taking a break for a while since it's a nice day out |
15:09:09 | FromDiscord | <Phil> In reply to @Robyn "Taking a break for": I envy you, only gray weather with drizzle for me |
15:34:01 | FromDiscord | <nnsee> someone pinged me here but deleted their message? |
15:43:45 | FromDiscord | <Robyn [She/Her]> Huh, I didn't see that |
16:07:49 | FromDiscord | <whisperecean> @Phil Looks like i will need another conversion procs for timestamptz |
16:09:06 | FromDiscord | <Robyn [She/Her]> In reply to @whisperecean "<@180601887916163073> Looks like": What are ya doing? Do ya have a problem or? |
16:09:19 | FromDiscord | <whisperecean> I am trying to work with Postgres. |
16:09:50 | FromDiscord | <Robyn [She/Her]> Ah with Norm? |
16:09:53 | FromDiscord | <whisperecean> Yes |
16:10:02 | FromDiscord | <Robyn [She/Her]> That's definitely in Phil's alley then |
16:10:59 | FromDiscord | <whisperecean> Actually I dont know...maybe I dont |
16:12:19 | FromDiscord | <whisperecean> https://github.com/moigagoo/norm/pull/23/files |
16:12:25 | FromDiscord | <whisperecean> But i dont see timestamptz there :/ |
16:20:36 | FromDiscord | <whisperecean> This is odd... |
16:24:49 | FromDiscord | <whisperecean> I am getting a DbError on field created DateTime which is psql timestamptz |
16:27:27 | FromDiscord | <whisperecean> I think norm should already understand it but it cant because the psql is coming back as timestamptz and not timestamp? @Phil |
16:48:31 | FromDiscord | <Phil> I'm bouldering ATM, I'll try to look at it in 2h or so but no guarantees I'll be cognitive enough to do anything |
16:48:40 | FromDiscord | <Phil> I'm already only running on caffeine |
16:51:56 | FromDiscord | <Robyn [She/Her]> https://github.com/nim-lang/packages/pull/2802 ✨ |
16:59:50 | FromDiscord | <Robyn [She/Her]> Is there some sort of standard that parsers follow in Nim? |
17:10:46 | FromDiscord | <Robyn [She/Her]> Hm... When should I use a Table vs a TableRef |
17:12:54 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "Hm... When should I": like another object/ref object? |
17:13:21 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "like another object/ref object?": I don't understand what you mean |
17:13:42 | FromDiscord | <Robyn [She/Her]> `std/tables` has a `Table` which is an `object` and then a `TableRef` which is just `ref Table` |
17:17:07 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "I don't understand what": as beef said: > when you don't have multiple views into a single value, so you do not need to use a `ref` |
17:35:01 | * | azimut joined #nim |
17:44:28 | FromDiscord | <Robyn [She/Her]> In reply to @griffith1deadly "as beef said: >": Hm... A table is probably better here then |
19:22:05 | FromDiscord | <Phil> Yeah I'm not capable of being more than a vegetable for the rest of the day |
19:22:38 | FromDiscord | <Phil> Not sure how I did it but I pretty much exactly hit my energy limit. Caffeeine crash + Workout end are absolutely killing me |
19:39:47 | FromDiscord | <Robyn [She/Her]> God I am hating this so much rn] |
20:01:06 | FromDiscord | <jviega> Hating what? |
20:06:35 | FromDiscord | <Robyn [She/Her]> In reply to @jviega "Hating what?": Trying to write an NBT parser from scratch |
20:07:59 | FromDiscord | <Robyn [She/Her]> Writing my own parser for 2 reasons:↵- I can be familiar with the codebase and update it as the NBT format changes (for example, 1.20.2 NBT data sent from a network has no named tags)↵- It gives me experience in writing a parser for binary data formats in general |
20:09:43 | FromDiscord | <saint.___.> In reply to @chronos.vitaqua "Trying to write an": Are you using a PEG |
20:09:45 | FromDiscord | <Robyn [She/Her]> It's just so painful |
20:09:53 | FromDiscord | <Robyn [She/Her]> In reply to @saint.___. "Are you using a": Nope, handwritten |
20:10:03 | FromDiscord | <saint.___.> Nice |
20:10:14 | FromDiscord | <saint.___.> In reply to @isofruit "Not sure how I": Have u ever thought about quitting caffeine |
20:11:01 | FromDiscord | <Phil> Given that my rate of consuming caffeeine is like... once every 3 months I doubt I could drink that much less caffeine |
20:11:23 | FromDiscord | <Phil> The crash is because I was already dead tired and thus pumped myself with an espresso before bouldering |
20:11:24 | FromDiscord | <saint.___.> Ooh gotcha |
20:11:47 | FromDiscord | <Phil> Which works to a degree, though required another espresso halfway through |
20:12:54 | FromDiscord | <Robyn [She/Her]> In reply to @saint.___. "Nice": Not nice when I can't figure it out 😭 |
20:52:17 | FromDiscord | <srabb> is there a way to play sound via the nim command line using some magic library? |
20:55:28 | FromDiscord | <srabb> also how do i go to #gamedev on matrix \:( |
20:57:18 | FromDiscord | <leorize> #gamedev \<- that's how |
20:57:36 | FromDiscord | <leorize> all rooms can be found under [#nim\:envs.net](https://matrix.to/#/#nim:envs.net) space |
20:58:17 | FromDiscord | <srabb> thanks \:D |
21:33:28 | * | Zevv joined #nim |
21:33:35 | Zevv | PMunch around? |
21:44:46 | FromDiscord | <demotomohiro> In reply to @srabb "is there a way": `writeFile("/dev/audio", pcmdata)` |
21:45:16 | FromDiscord | <Robyn [She/Her]> In reply to @demotomohiro "`writeFile("/dev/audio", pcmdata)`": That's not portable |
21:45:16 | FromDiscord | <demotomohiro> I have never tried it though. |
21:45:39 | FromDiscord | <Robyn [She/Her]> Many Linux OSes don't even have /dev/audio |
21:46:01 | FromDiscord | <Robyn [She/Her]> I don't, I was looking into it when I wanted to do some fuckery with brainfuck :p |
21:46:43 | FromDiscord | <␀ Array 🇵🇸 🍉> the file doesnt need to exist to actually output audio↵(@Robyn [She/Her]) |
21:46:56 | FromDiscord | <␀ Array 🇵🇸 🍉> the file doesnt need to exist to actually output audio using it |
21:48:07 | FromDiscord | <demotomohiro> In reply to @srabb "is there a way": I used this library before to play audio: https://github.com/treeform/openal |
21:48:31 | FromDiscord | <Robyn [She/Her]> In reply to @␀ Array 🇵🇸 🍉 "the file doesnt need": It does, the device needs to exist |
21:48:34 | FromDiscord | <Robyn [She/Her]> And it doesn't :P |
21:48:41 | FromDiscord | <Robyn [She/Her]> Just says permission denied |
21:48:54 | FromDiscord | <␀ Array 🇵🇸 🍉> it doesnt ive done this on arch↵(@Robyn [She/Her]) |
21:49:05 | FromDiscord | <Robyn [She/Her]> I'm on Arch |
21:49:11 | FromDiscord | <␀ Array 🇵🇸 🍉> what |
21:49:35 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=VJslXiWAVEju |
21:49:45 | FromDiscord | <␀ Array 🇵🇸 🍉> i legit remember doing `cat /dev/urandom | /dev/audio` |
21:50:39 | FromDiscord | <Elegantbeef> > Support from /dev/audio was removed in Linux kernel version 4.15 |
21:50:46 | FromDiscord | <Elegantbeef> Atleast if a SO answer is to be believed |
21:51:32 | FromDiscord | <␀ Array 🇵🇸 🍉> i was running kernel v6 |
21:51:33 | FromDiscord | <␀ Array 🇵🇸 🍉> ima have to try again whenever i get home |
21:51:34 | FromDiscord | <Elegantbeef> image.png https://media.discordapp.net/attachments/371759389889003532/1203457782528081971/image.png?ex=65d12a66&is=65beb566&hm=9c4a3498b6fbe7c7b1252e6d182100abb0ca1466955068068617e0dd81d07dfb& |
21:51:35 | FromDiscord | <Elegantbeef> Thanks Nim docgen |
21:51:39 | FromDiscord | <Robyn [She/Her]> In reply to @␀ Array 🇵🇸 🍉 "i legit remember doing": That means that `/dev/audio` was a device that you could use :P |
21:51:45 | FromDiscord | <Robyn [She/Her]> In reply to @␀ Array 🇵🇸 🍉 "ima have to try": Fair |
21:52:00 | FromDiscord | <␀ Array 🇵🇸 🍉> are you usinf pipewire?↵(@Robyn [She/Her]) |
21:52:19 | FromDiscord | <Robyn [She/Her]> Don't believe so |
21:52:28 | FromDiscord | <␀ Array 🇵🇸 🍉> i think i have pipewire and the pulseaudio thing for it |
21:52:36 | FromDiscord | <␀ Array 🇵🇸 🍉> thats probably why↵(@Robyn [She/Her]) |
21:52:40 | FromDiscord | <Robyn [She/Her]> Think I'm using alsa? |
21:52:44 | FromDiscord | <Robyn [She/Her]> In reply to @␀ Array 🇵🇸 🍉 "thats probably why (<@524288464422830095>)": h |
21:52:45 | FromDiscord | <Robyn [She/Her]> Ah |
21:52:59 | FromDiscord | <Elegantbeef> Jesus using alsa whilst pipewire exists |
21:55:03 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=YzRvjMwjDrrC |
21:55:04 | FromDiscord | <Robyn [She/Her]> soooo |
21:55:47 | FromDiscord | <Elegantbeef> Do you not have that lib installed? |
21:56:46 | FromDiscord | <Robyn [She/Her]> Probably not |
21:57:04 | FromDiscord | <␀ Array 🇵🇸 🍉> `pacman -S libpipewire`↵(@Robyn [She/Her]) |
21:58:11 | FromDiscord | <Robyn [She/Her]> Now what do I do? :p |
21:58:38 | FromDiscord | <␀ Array 🇵🇸 🍉> uh i don't remember lol i made to switch from pulseaudio to pipewire a long time ago |
21:58:43 | FromDiscord | <␀ Array 🇵🇸 🍉> just read the arch wiki |
21:59:22 | FromDiscord | <␀ Array 🇵🇸 🍉> i remember it being pretty trivial tho |
21:59:56 | FromDiscord | <Robyn [She/Her]> Fair enough xD |
22:00:01 | FromDiscord | <Robyn [She/Her]> I'll do that tomorrow probably |
23:20:27 | * | advesperacit quit () |
23:20:33 | FromDiscord | <srabb> is there a way to run seperate lines of nim code at a certain bpm |
23:21:02 | FromDiscord | <Elegantbeef> Threads or async are your choices |
23:21:33 | FromDiscord | <srabb> my gratitude upon thee |
23:21:59 | FromDiscord | <Elegantbeef> Though "certain bpm" is an odd statement |
23:22:23 | FromDiscord | <srabb> like running something at 120 bpm to sync it with music |
23:22:39 | FromDiscord | <Elegantbeef> Music visualiser? |
23:22:47 | FromDiscord | <srabb> no no no lol |
23:24:02 | FromDiscord | <srabb> my goal is to have a program that prints 2 different phrases in a loop and it does that at a certain bpm |
23:24:10 | FromDiscord | <srabb> its not hard to explain, im just stupid |
23:24:52 | FromDiscord | <Elegantbeef> Well two futures running inside of a while loop with a `sleepAsync` can achieve that |
23:26:24 | * | krux02 quit (Remote host closed the connection) |
23:39:34 | FromDiscord | <srabb> thank |