00:04:48 | * | antranigv quit (Ping timeout: 240 seconds) |
00:24:43 | FromDiscord | <shovid> how would i match an openarray or pointer with concepts? |
01:02:15 | * | antranigv joined #nim |
01:11:26 | FromDiscord | <Chronos [She/Her]> In reply to @shovid "how would i match": `Cursor[openArray[T]]` perhaps? |
01:11:35 | FromDiscord | <Chronos [She/Her]> Unsure if that'll work but try it maybe? |
01:32:22 | FromDiscord | <Elegantbeef> Sorry |
01:32:30 | FromDiscord | <Elegantbeef> sent a code paste, see https://paste.rs/EUYkN |
01:32:34 | FromDiscord | <Elegantbeef> That fails on enum indexed arrays 😄 |
01:37:53 | * | rockcavera quit (Remote host closed the connection) |
01:42:58 | * | systemdsucks quit (*.net *.split) |
01:42:58 | * | adium quit (*.net *.split) |
01:42:58 | * | NimEventer quit (*.net *.split) |
01:48:15 | * | systemdsucks joined #nim |
01:48:15 | * | adium joined #nim |
01:48:15 | * | NimEventer joined #nim |
02:06:05 | * | derpydoo quit (Ping timeout: 246 seconds) |
02:17:43 | * | derpydoo joined #nim |
02:31:45 | * | derpydoo quit (Ping timeout: 240 seconds) |
02:46:13 | NimEventer | New post on r/nim by Uwu_Uwu135: Nim Async Net and Net not working together, see https://reddit.com/r/nim/comments/13svz17/nim_async_net_and_net_not_working_together/ |
02:55:03 | * | derpydoo joined #nim |
02:59:50 | FromDiscord | <SkynWalker> Yo all would appreciate if y’all checked that post out |
03:00:09 | FromDiscord | <SkynWalker> I’m having some funky behavior that I can’t attribute to anyhting |
03:00:28 | FromDiscord | <Elegantbeef> You didnt provide code or explain the isssue |
03:00:36 | FromDiscord | <SkynWalker> It’s in the Reddit post |
03:00:53 | FromDiscord | <Elegantbeef> image.png https://media.discordapp.net/attachments/371759389889003532/1111851490278113403/image.png |
03:00:53 | FromDiscord | <that_dude> There's nothing in the post |
03:00:53 | FromDiscord | <SkynWalker> I’m in mobile rn but post was made on pc for code formatting |
03:01:00 | FromDiscord | <SkynWalker> Wait wtf |
03:01:04 | FromDiscord | <that_dude> It's just a title |
03:01:08 | FromDiscord | <SkynWalker> No way |
03:01:11 | FromDiscord | <SkynWalker> Brb |
03:01:31 | FromDiscord | <SkynWalker> I see content when I click on the post |
03:01:51 | FromDiscord | <that_dude> https://media.discordapp.net/attachments/371759389889003532/1111851734969618452/image.png |
03:01:57 | FromDiscord | <SkynWalker> I’ll be damned |
03:02:18 | FromDiscord | <SkynWalker> https://media.discordapp.net/attachments/371759389889003532/1111851846789763102/IMG_6404.png |
03:02:36 | FromDiscord | <that_dude> No idea tbh |
03:03:49 | FromDiscord | <SkynWalker> Very odd |
03:03:55 | FromDiscord | <SkynWalker> Try again rq |
03:05:19 | FromDiscord | <SkynWalker> https://www.reddit.com/r/nim/comments/13svz17/nim_async_net_and_net_not_working_together/?utm_source=share&utm_medium=ios_app&utm_name=ioscss&utm_content=2&utm_term=1 |
03:05:43 | FromDiscord | <SkynWalker> Am I shadowbanned or sum? |
03:05:45 | FromDiscord | <Elegantbeef> If that's your first post perhaps mod approval is required? No clue what moderation features reddit has |
03:05:59 | FromDiscord | <SkynWalker> Well hm |
03:06:22 | FromDiscord | <SkynWalker> It’s not my first post |
03:06:27 | FromDiscord | <SkynWalker> Even to the nim sun |
03:06:29 | FromDiscord | <SkynWalker> Sub |
03:06:44 | FromDiscord | <Elegantbeef> Sounds like a reddit issue then |
03:07:41 | FromDiscord | <SkynWalker> sent a long message, see http://ix.io/4wNq |
03:07:42 | FromDiscord | <SkynWalker> heres the post lol |
03:09:01 | FromDiscord | <SkynWalker> my heartburn is the fact that an ncat listner works with the client and an ncat connection works with the server but not together |
03:09:07 | FromDiscord | <SkynWalker> that seens really odd to me |
03:09:10 | FromDiscord | <SkynWalker> seems |
03:14:46 | FromDiscord | <SkynWalker> would love any guidance on this yall |
03:15:22 | FromDiscord | <Elegantbeef> I do not do networking or async so cannot say anything, plus your code is not inside a code block so is a hassle to read |
03:16:37 | FromDiscord | <SkynWalker> its good man. ive been beating my head against a wall for about 5 days to fix this lol |
03:17:04 | FromDiscord | <SkynWalker> ive tried hella shit and its still not working figured id take to reddit/discord as my last resort |
03:17:59 | FromDiscord | <Elegantbeef> Forum is also a good place |
03:18:15 | FromDiscord | <SkynWalker> ill post there too |
03:28:24 | FromDiscord | <kots> sock.send("hii\n") |
03:28:43 | FromDiscord | <kots> makes it work for me |
03:29:04 | FromDiscord | <SkynWalker> if that works im killing myself |
03:32:18 | FromDiscord | <that_dude> https://www.youtube.com/watch?v=i1GmxMTwUgs |
03:32:41 | FromDiscord | <that_dude> Ah it doesn't show it. It's the "in the arms of the angel" song |
03:36:35 | FromDiscord | <SkynWalker> mother |
03:36:36 | FromDiscord | <SkynWalker> fucker |
03:36:42 | FromDiscord | <SkynWalker> holy fuck |
03:36:47 | FromDiscord | <SkynWalker> it works boys |
03:36:54 | FromDiscord | <SkynWalker> sign my death certificate |
03:37:00 | FromDiscord | <kots> rip |
03:37:14 | FromDiscord | <kots> asyncnet.recvLine says:↵> If the socket is disconnected in the middle of a line (before \r\L is read) then line will be set to "". The partial line will be lost. |
03:38:25 | FromDiscord | <SkynWalker> dude youre awesome |
03:41:23 | FromDiscord | <kots> 😌 |
03:53:41 | FromDiscord | <huantian> In reply to @SkynWalker "sign my death certificate": Any item in the game pog |
04:58:08 | * | disso-peach joined #nim |
05:15:02 | * | lucasta quit (Quit: Leaving) |
06:17:59 | * | ntat joined #nim |
06:22:09 | FromDiscord | <mratsim> In reply to @Hourglass, When the Hour Strikes "`Cursor[openArray[T]]` perhaps?": openArray are not first class unless you use {.experimental: "views".} and the latter is not that tested. |
07:38:00 | * | xet7 joined #nim |
07:54:14 | * | rockcavera joined #nim |
08:03:01 | * | Notxor joined #nim |
09:41:13 | FromDiscord | <voidwalker> any super proper example of using multisync with a http api client library ? Having trouble figuring out the proper design |
09:46:21 | FromDiscord | <voidwalker> https://github.com/Yardanico/nimvkapi/blob/3af1998f0d9bf07c15bb0f916757e4e7994aee31/vkapi.nim#L77 |
09:46:47 | FromDiscord | <voidwalker> something like this looks good, but I'm thinking, if I reuse httpclient in async context, won't it mess up if it has two simultaneous requests ? |
11:21:58 | FromDiscord | <Bung> `multisync` pragma striped out `await` in sync context |
11:27:11 | * | derpydoo quit (Ping timeout: 240 seconds) |
11:32:45 | FromDiscord | <voidwalker> yes that I know, but I'd still like to see examples of good implementation. |
11:32:55 | FromDiscord | <voidwalker> In the context of making http api client libraries |
11:57:09 | * | Notxor quit (Read error: Connection reset by peer) |
11:58:24 | * | Notxor joined #nim |
12:07:56 | FromDiscord | <amadan> The implementation of `std/httpclient` is a good example |
12:16:30 | FromDiscord | <voidwalker> thanks but I wanted an example using async/httpclient, in client http API libs, not httpclient iteslf |
12:26:03 | * | derpydoo joined #nim |
12:40:20 | FromDiscord | <hdbg> Can I get all methods of type `X` inside macros? |
12:52:40 | FromDiscord | <Chronos [She/Her]> In reply to @mratsim "openArray are not first": Ah didn't know that |
12:56:22 | FromDiscord | <chmod222> Given that `type MyType {.mymacro.} = ...` expands into `TypeDef(...)` and anything my macro would produce thus still remaining firmly inside the `type` declaration, is there any way to generate code that might touch state visible at runtime? |
12:57:22 | FromDiscord | <chmod222> i.e. I have `type MyType {.extension.} = ...` generate the original type def pretty much 1\:1 but also register in some global table that "MyType" is now a known quantity? |
13:02:43 | FromDiscord | <chmod222> Ah, figured it out, I can use `{.compileTime.}` as a workaround |
13:05:26 | FromDiscord | <kcvinker> sent a code paste, see https://play.nim-lang.org/#ix=4wP1 |
13:10:54 | FromDiscord | <mratsim> In reply to @kcvinker "I found pointer arithmetic": "other"? You can only do arithmetic on numbers. But if you have a `p: ptr UncheckedArray[int]` you can always do `p[i].addr` instead of `cast[ByteAddress](p) +% i` |
13:12:32 | FromDiscord | <kcvinker> Thank you @mratsim . One more question.↵If I use the above said (int conversion) algorithm, can I expect a compiler optimization ? |
13:13:22 | FromDiscord | <kcvinker> I mean does the compiler use proper pointer arithmetic in C without an int conversion ? |
13:13:54 | FromDiscord | <mratsim> In reply to @kcvinker "I mean does the": yes |
13:14:04 | FromDiscord | <kcvinker> Great. |
13:14:22 | FromDiscord | <mratsim> casting pointer to integer is a no-op in generated code |
13:14:33 | FromDiscord | <kcvinker> no-op means ? |
13:14:45 | FromDiscord | <mratsim> generates no actual hardware instruction |
13:14:55 | FromDiscord | <kcvinker> Oh I see |
13:15:01 | FromDiscord | <mratsim> and accessing a displaced address can also be fused with the actual operation on many architectures |
13:15:56 | FromDiscord | <kcvinker> Anyhow, I will check the UncheckedArray soon. |
13:41:35 | FromDiscord | <Zectbumo> what happened to the state of Nim on OpenBSD? I can't even open a file anymore |
13:45:44 | FromDiscord | <chmod222> It's for security. Files can be dangerous so it's best they remain closed |
13:46:01 | FromDiscord | <chmod222> I think that's how OpenBSD works at least |
13:46:08 | FromDiscord | <Zectbumo> Nim stuck on 1.6.6 |
13:49:20 | * | azimut quit (Ping timeout: 240 seconds) |
15:56:18 | * | derpydoo quit (Quit: derpydoo) |
16:03:57 | * | xet7 quit (Quit: Leaving) |
16:45:58 | * | arkurious joined #nim |
17:17:04 | ntat | I have sequence of files in directory. How can I find file by extension? → https://play.nim-lang.org/#ix=4wPZ |
17:19:58 | FromDiscord | <Elegantbeef> `os.splitFile` |
17:20:04 | FromDiscord | <Graveflo> are you asking? |
17:22:25 | ntat | <Elegantbeef> thanks :) |
17:38:54 | FromDiscord | <guttural666> anybody know what the technical reason is, that these different types couldn't have the same field names? |
17:38:57 | FromDiscord | <guttural666> https://media.discordapp.net/attachments/371759389889003532/1112072463979909180/image.png |
17:46:52 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4wQ5 |
17:47:12 | FromDiscord | <Rika> In reply to @guttural666 "anybody know what the": Fields could then have different types depending on runtime data |
17:47:30 | FromDiscord | <Rika> I believe it’s just disallowed and not technically impossible |
17:51:09 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQ7 |
17:54:22 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQ9 |
17:54:44 | FromDiscord | <sOkam!> whats failing is adding to the code string |
17:54:50 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4wQa |
17:55:33 | FromDiscord | <Graveflo> ok I think it might be the default |
17:59:34 | FromDiscord | <sOkam!> In reply to @Graveflo "ok I think it": what does that mean? |
18:02:17 | FromDiscord | <Graveflo> I'm not sure LOL but the thing is if you pass a string that is already defined when calling the macro it works, but when you don't and rely of the default `""` or any literal it fails because the type of `header` in that case is `NimNode` |
18:03:02 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQg |
18:05:10 | FromDiscord | <Graveflo> well actually it is NimNode |
18:05:29 | FromDiscord | <sOkam!> im passing a `"""` if it matters |
18:08:05 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQi |
18:08:47 | FromDiscord | <sOkam!> definitely using it incorrectly. that's why i was asking how is a string passed |
18:12:31 | FromDiscord | <sOkam!> @Graveflo wait, actually it is failing but printing the text before? thats even more confusing :puz |
18:12:45 | FromDiscord | <sOkam!> (edit) ":puz" => "🧩" |
18:14:06 | * | Notxor quit (Remote host closed the connection) |
18:14:20 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQk |
18:14:38 | FromDiscord | <Graveflo> but I think i know what to do. Or at least something that will kinda work. |
18:15:09 | FromDiscord | <sOkam!> yeah, that's the part that works for me too. but how does that work but assigning fails? |
18:19:25 | FromDiscord | <Graveflo> s a literal |
18:19:26 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQn |
18:21:31 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4wQo |
18:21:45 | FromDiscord | <sOkam!> i don't care about the impl. its just meant to be a simple string and used as such |
18:23:28 | FromDiscord | <Graveflo> so does the last one that I posted work for you? I seems to get the strVal for each of the NodeKinds that you seem to be expecting |
18:25:16 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4wQp |
18:27:27 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQq |
18:28:03 | FromDiscord | <Graveflo> I have a feeling that there has got to be a better way than that, but idk |
18:28:24 | FromDiscord | <Chronos [She/Her]> How would I store a hash using norm? |
18:28:47 | FromDiscord | <sOkam!> i guess i could make that a template or smth |
18:29:06 | FromDiscord | <Chronos [She/Her]> Would `seq[byte]` be fine? I can't see anything about it in the docs |
18:29:51 | FromDiscord | <Graveflo> I messed up by naming test the same as it's value. When the node is `nkSym` then you get get the string with that conditional. It should work for what we have discussed so far, its just im not sure if that is clean or not |
18:30:25 | * | luis_ joined #nim |
18:34:56 | FromDiscord | <Graveflo> In reply to @Hourglass, When the Hour Strikes "Would `seq[byte]` be fine?": ive never used norm. Is seq[byte] a BLOB type in the db? If so, you can do that if you want. I prefer to store hashes as strings in dbs unless I really want to avoid it for some reason |
18:35:46 | FromDiscord | <chmod222> Well, if you have your Token and access ".val", how is nim going to know whether there is an int or a float there? |
18:36:56 | FromDiscord | <Chronos [She/Her]> In reply to @Graveflo "ive never used norm.": Postgres doesn't support null bytes in strings so that's my issue |
18:37:21 | FromDiscord | <Chronos [She/Her]> Also since `norm` supports Postgres and SQLite3, I want to let the user choose either |
18:37:35 | FromDiscord | <Graveflo> can you just base64 the hash to make it string compatible? |
18:38:12 | FromDiscord | <Graveflo> or charset compatible I guess |
18:40:20 | FromDiscord | <Chronos [She/Her]> In reply to @Graveflo "can you just base64": Wouldn't that mean it'd have to take up more space in the db? |
18:41:15 | FromDiscord | <Graveflo> yea that is why Ive felt compelled to use blobs in the past for hashes but I usually figure it isn't worth the hassle |
18:43:40 | FromDiscord | <Chronos [She/Her]> Why isn't it worth the hassle? |
18:46:56 | FromDiscord | <Graveflo> because everyone uses strings so it's very unlikely that choice will result in a snag |
18:47:41 | FromDiscord | <Chronos [She/Her]> Fair, but postgres will suffer and break from just using strings here which sucks |
18:48:04 | FromDiscord | <demotomohiro> sent a code paste, see https://paste.rs/CqZ9a |
18:48:14 | FromDiscord | <Graveflo> but yea try seq[byte] or seq[uint8] I think norm will allow openarray[uint8] and such so It should be fine |
18:49:34 | FromDiscord | <Chronos [She/Her]> In reply to @Graveflo "but yea try seq[byte]": Hm I'll try `seq[byte]` but Norm doesn't say it's supported so it's giving me doubts it'll work |
18:49:52 | FromDiscord | <Graveflo> this is what I found when looking into it: https://github.com/moigagoo/norm/issues/99 |
18:53:12 | FromDiscord | <Chronos [She/Her]> > The problem is that you declared your field as string and not a DbBlob.↵> This is important because the underlying representation of stringis TEXT which gets converted to a cstring when calling the C-API for a select query.↵> ↵> If you store binary data into a cstring it will gets truncated at the first byte with value 00 . This is why, your data gets truncated at length 12 because the value of the byte is 00 (and also w |
18:54:57 | FromDiscord | <Graveflo> yea makes sense. non-terminating 0x00 is the bane of c strings |
18:55:02 | FromDiscord | <Chronos [She/Her]> Apparently it can be stored as `DbBlob` but that would need me to compile two separate binaries :/ |
18:55:25 | FromDiscord | <Chronos [She/Her]> Since it's defined in `sqlite` and `postgres` it seems |
18:56:10 | FromDiscord | <Chronos [She/Her]> Nvm `DbBlob` doesn't even exist for `postgres` |
18:56:56 | FromDiscord | <Graveflo> yea these are said snags. This is why I just use base64 string and hope that compression and HD space is enough. Idk what kind of database you are making but maybe its worth the sacrifice |
18:59:16 | FromDiscord | <Chronos [She/Her]> It'll be storing user passwords as hashes so... Every single time they log in, the hash has to be converted from base64 so it can be checked, which would become slow as it becomes bigger, really |
19:00:56 | * | Notxor joined #nim |
19:02:50 | FromDiscord | <Graveflo> I hear ya, but isn't it typical to compute many hashes when converting a plaintext password to the stored hash value? My security knowledge is dated but people were doing that back in the day. The "salt and pepper" thing |
19:04:51 | FromDiscord | <tsoj> sent a code paste, see https://play.nim-lang.org/#ix=4wQC |
19:05:32 | FromDiscord | <Chronos [She/Her]> In reply to @tsoj "Why does the following": My guess is a compiler bug/oversight? |
19:06:17 | FromDiscord | <Chronos [She/Her]> In reply to @Graveflo "I hear ya, but": Wdym? I'm not into security really but trying to keep this info as secure as it can be |
19:06:39 | FromDiscord | <Chronos [She/Her]> I'm gonna be using argon2 for the hashing algorithm |
19:06:48 | * | Guest71 joined #nim |
19:07:17 | FromDiscord | <Graveflo> In reply to @tsoj "Why does the following": I think this is because the default value happens statically. You need to wrap the initial value in a generic proc probably |
19:09:03 | FromDiscord | <mratsim> In reply to @Hourglass, When the Hour Strikes "Wdym? I'm not into": use argon2 yes |
19:09:18 | FromDiscord | <Chronos [She/Her]> The issue is how to store that hash :p |
19:10:17 | FromDiscord | <mratsim> what's your threat model? |
19:10:39 | FromDiscord | <Chronos [She/Her]> I mean storing it in the db, norm doesn't have support for storing byte arrays |
19:10:49 | FromDiscord | <Chronos [She/Her]> For postgres, at least (which I want to support) |
19:11:09 | FromDiscord | <mratsim> mmmmh |
19:11:38 | FromDiscord | <Chronos [She/Her]> Yeaah :p |
19:11:52 | FromDiscord | <Chronos [She/Her]> I could just not use norm, but it provides some nice to use features :/ |
19:11:54 | FromDiscord | <mratsim> https://norm.nim.town/customDatatypes.html↵↵It says DbBlob here |
19:13:04 | FromDiscord | <Chronos [She/Her]> In reply to @mratsim "https://norm.nim.town/customDatatypes.html It says": Only for the sqlite db |
19:13:20 | FromDiscord | <Chronos [She/Her]> If you do `norm/postgres` there's only `dbBlob` (for the enum) |
19:13:59 | * | Guest71 quit (Quit: Client closed) |
19:14:47 | FromDiscord | <mratsim> well, I guess a PR is needed: https://www.postgresql.org/docs/9.1/datatype-binary.html |
19:15:13 | FromDiscord | <Chronos [She/Her]> Makes sense |
19:15:45 | FromDiscord | <Chronos [She/Her]> For now though, don't have the knowledge or energy to exactly contribute so |
19:17:20 | * | luis_ quit (Quit: Leaving) |
19:19:32 | FromDiscord | <Chronos [She/Her]> Might roll my own solution for now hm |
19:54:48 | * | zeus-supreme joined #nim |
19:56:27 | * | zeus-supreme quit (Client Quit) |
19:56:41 | * | zeus-supreme joined #nim |
19:56:48 | * | zeus-supreme quit (Client Quit) |
20:03:43 | * | fallback quit (Ping timeout: 265 seconds) |
20:55:16 | FromDiscord | <ieltan> does something like this: `proc myproc(some: seq[Thing] = @[])` allocates at runtime ? |
20:55:47 | FromDiscord | <ieltan> alternatively `proc myproc(some = newSeq[Thing])` |
20:55:54 | FromDiscord | <ieltan> (edit) "newSeq[Thing])`" => "newSeq[Thing]())`" |
20:58:23 | FromDiscord | <Graveflo> sent a code paste, see https://play.nim-lang.org/#ix=4wQU |
20:59:13 | FromDiscord | <Elegantbeef> `= @[]` is technically `nil` |
20:59:32 | FromDiscord | <Elegantbeef> There isnt any allocation there, but `newSeq` of course allocates at runtime |
21:00:15 | FromDiscord | <Graveflo> yea I just realized what I said is messed up bc you cant use some in the proc |
21:05:02 | FromDiscord | <ieltan> alright, thanks ! |
21:31:01 | * | Notxor quit (Ping timeout: 240 seconds) |
21:36:20 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> sent a code paste, see https://play.nim-lang.org/#ix=4wR1 |
21:36:48 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "https://play.nim-lang.org/#ix=4wR1" => "https://play.nim-lang.org/#ix=4wR2" |
21:37:00 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "https://play.nim-lang.org/#ix=4wR2" => "https://play.nim-lang.org/#ix=4wR3" |
21:39:25 | NimEventer | New Nimble package! pyopenai - An attempt to reimplement python OpenAI API bindings in nim, see https://github.com/HACCKKER/pyopenai |
21:40:32 | FromDiscord | <Elegantbeef> Restart vscode perhaps |
21:40:34 | FromDiscord | <Elegantbeef> `openAiClient` is the correct one |
21:41:01 | FromDiscord | <Arathanis> In reply to @H̲A̲C̲K̲K̲E̲R̲ "I am experiencing issues": nimble in localdeps mode? |
21:43:11 | * | derpydoo joined #nim |
21:43:14 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> In reply to @Elegantbeef "`openAiClient` is the correct": isn't nim case insensitive?(except first letter) |
21:44:26 | NimEventer | New Nimble package! kapsis - Build delightful command line interfaces in seconds., see https://github.com/openpeeps/kapsis |
21:47:25 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> In reply to @Elegantbeef "`openAiClient` is the correct": main.nim(18, 8) Error: cannot open file: openAiClient |
21:48:01 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> In reply to @Arathanis "nimble in localdeps mode?": could you please elaborate on this as I am unfamiliar with this configuration option |
21:49:48 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> I double checked, there is no nimbledeps directory in my working directory |
21:51:14 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "I double checked, there is no nimbledeps directory in my working directory ... " added "so nimble localdeps mode shouldn't be the reason." |
21:53:02 | FromDiscord | <Arathanis> ok not in local deps mode |
21:53:17 | FromDiscord | <Arathanis> In reply to @H̲A̲C̲K̲K̲E̲R̲ "could you please elaborate": and yeah, its just means it installs it locally for just your project instead of globally for every project |
21:54:03 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> I already figured it out as I have a lot of python expirience and I used virtualenvs every day |
21:54:30 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> but still can't get this library to work |
21:54:35 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "work" => "import" |
21:58:17 | FromDiscord | <Arathanis> @H̲A̲C̲K̲K̲E̲R̲ what version of openaiclient? |
21:58:39 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> I didn't specify so I assume implicitly latest |
21:59:29 | FromDiscord | <Arathanis> nimble check |
21:59:30 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "I didn't specify so I assume implicitly latest ... " added "(0.1.0)" |
21:59:48 | FromDiscord | <Arathanis> yeah, that version has no source |
22:00:03 | FromDiscord | <Arathanis> i dont think the maintainer has done what is necessary to get nimble to see their most up-to-date changes |
22:00:19 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> aka broken package |
22:00:23 | FromDiscord | <Arathanis> yes |
22:00:24 | FromDiscord | <Arathanis> https://media.discordapp.net/attachments/371759389889003532/1112138261566074880/image.png |
22:00:28 | FromDiscord | <Arathanis> this is the entire contents of what is installed |
22:00:33 | FromDiscord | <Arathanis> just the nimble file |
22:00:37 | FromDiscord | <Arathanis> and its a basic nimble file |
22:00:53 | FromDiscord | <Arathanis> looks like `nimble init` -> `initial commit` |
22:01:12 | FromDiscord | <Arathanis> you can just clone their repo and drop it into your working directory and use it from thre |
22:01:13 | FromDiscord | <Arathanis> (edit) "thre" => "there" |
22:06:23 | * | lucasta joined #nim |
22:07:38 | * | derpydoo quit (Ping timeout: 246 seconds) |
22:08:29 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> In reply to @NimEventer "New Nimble package! pyopenai": I am currently working on alternative, more "python OpenAI lib"-like implementation of openai api library that has a more modular codebase, contributions are welcome. tomorrow I plan to cover 100% of the api described in the reference.↵↵Contributions are welcome. |
22:09:16 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "100%" => "remaining 30%" |
22:09:47 | FromDiscord | <H̲A̲C̲K̲K̲E̲R̲> (edit) "welcome." => "welcome.(maybe someone has ideas on how to make it even more convenient)" |
22:14:32 | * | ntat quit (Quit: Leaving) |
22:39:10 | FromDiscord | <Graveflo> Is there a way to make it so generics called in other modules don't force the calling module to chase down all the import dependencies? All I can find is the `bind` keyword and that doesn't seem to help much |
22:45:30 | FromDiscord | <sOkam!> In reply to @Graveflo "Is there a way": `mixin`? 🤔 |
22:52:17 | NimEventer | New post on r/nim by Yandallulz: SSL not working on Mac, see https://reddit.com/r/nim/comments/13tklkr/ssl_not_working_on_mac/ |
22:58:47 | * | fallback joined #nim |
23:07:01 | FromDiscord | <Graveflo> sent a long message, see http://ix.io/4wRp |
23:18:54 | * | disso-peach quit (Quit: Leaving) |
23:46:16 | FromDiscord | <Elegantbeef> `export tables` |
23:46:33 | FromDiscord | <Elegantbeef> Araq thinks type bound operations will resolve this |
23:52:02 | FromDiscord | <gogolxdong> https://github.com/ThomasTJdev/nim_openai |
23:52:52 | FromDiscord | <Graveflo> yep that works thanks beef |