00:14:14 | * | lucasta quit (Quit: Leaving) |
00:16:28 | * | tokyovigilante quit (Remote host closed the connection) |
00:54:13 | FromDiscord | <nikolay_a_k> sent a code paste, see https://play.nim-lang.org/#pasty=BmakLtZf |
01:15:24 | FromDiscord | <resumina> What was your process for creating this?↵(@nikolay_a_k) |
01:23:54 | FromDiscord | <nikolay_a_k> In reply to @resumina "What was your process": Here is my full chat with Llama 405b: https://media.discordapp.net/attachments/371759389889003532/1307878922020585542/Chat_with_Llama_405b_which_allowed_me_creating_bindings_for_chatllm.cpp.txt?ex=673be8aa&is=673a972a&hm=40632cb499e0c82c23dc7e235840cd1758186b661c919440b6f7483531c1217f& |
01:32:36 | FromDiscord | <resumina> @nikolay_a_k\: did you run that locally? |
01:33:44 | FromDiscord | <nikolay_a_k> In reply to @resumina "<@1102339994703630517>\: did you run": Yes, i successfully ran it on Windows 11, 16gb ram, Ryzen 7 4700u. |
01:34:09 | FromDiscord | <resumina> How long did it take? |
01:37:37 | FromDiscord | <nikolay_a_k> In reply to @resumina "How long did it": Small llms like Qwen 2.5 1.5b quantatized to ggml int8 format run rather fast on 8 cores cpu at 2.0 ghz cpu frequency. |
01:42:36 | FromDiscord | <_ping.> uh??? https://media.discordapp.net/attachments/371759389889003532/1307883625626341376/image.png?ex=673bed0b&is=673a9b8b&hm=6cdeebda44b322e690099fce2ce8c9ba86a9528d42a073b0379a60406451764b& |
01:43:03 | FromDiscord | <_ping.> I can `nimble install stuff` but not `nimble anythingelse` |
01:43:47 | FromDiscord | <_ping.> `nim.nimble` is in each of the packages in the pkg2... is nimble not recursively finding them or smth? |
01:47:06 | FromDiscord | <_ping.> I can't find issues about this on github either... (fyi in case someone wants to look into this, nimble is v0.16.1 packaged from the nim-2.2.0 build on github) |
01:50:43 | FromDiscord | <_ping.> In reply to @_ping. "I can `nimble install": I can also still use packages from this.... very weird |
02:10:25 | FromDiscord | <bostonboston> Nimble check is meant to verify your own packages structure, it will not look outside of the directory you use it in, I believe you could use it on someone else's package if you nibble install that package then cd into its directory in the nimble dir but I don't think there's much reason to do that |
02:11:53 | FromDiscord | <bostonboston> https://nim-lang.github.io/nimble/create-packages.html#nimble-check |
02:31:11 | * | krux02 quit (Remote host closed the connection) |
04:18:05 | FromDiscord | <albassort> sent a code paste, see https://play.nim-lang.org/#pasty=hxYaQFMS |
04:20:30 | FromDiscord | <albassort> seems to be fixed by sleeping before spawning each thread |
04:20:31 | FromDiscord | <albassort> ¯\_(ツ)_/¯ |
07:50:42 | * | PMunch joined #nim |
07:56:06 | * | tokyovigilante joined #nim |
07:56:20 | * | tokyovigilante quit (Remote host closed the connection) |
08:01:49 | * | tokyovigilante joined #nim |
08:05:22 | * | Jjp137 quit (Ping timeout: 265 seconds) |
08:05:41 | * | Jjp137 joined #nim |
08:07:14 | FromDiscord | <morgan (ping with reply)> sent a code paste, see https://play.nim-lang.org/#pasty=sQRziGOw |
08:07:37 | FromDiscord | <morgan (ping with reply)> might be worth trying to compile one of the examples |
08:20:39 | FromDiscord | <morgan (ping with reply)> hm dyld_info seems to say its valid |
08:30:33 | FromDiscord | <morgan (ping with reply)> hm yeah its a null-ish deref crash in dyld rather than my code |
08:30:36 | FromDiscord | <morgan (ping with reply)> i am very confused |
09:52:01 | * | Jjp137 quit (Ping timeout: 252 seconds) |
09:52:20 | * | Jjp137 joined #nim |
11:32:08 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
11:37:17 | * | SchweinDeBurg joined #nim |
13:00:57 | * | beholders_eye joined #nim |
15:13:56 | * | PMunch quit (Quit: Leaving) |
15:18:14 | * | ntat joined #nim |
15:52:26 | * | lucasta joined #nim |
16:16:21 | * | beholders_eye quit (Ping timeout: 244 seconds) |
16:33:14 | * | ftajhii quit (Ping timeout: 260 seconds) |
16:57:38 | * | krux02 joined #nim |
18:01:33 | * | beholders_eye joined #nim |
19:30:02 | * | lucasta quit (Quit: Leaving) |
19:40:40 | * | beholders_eye quit (Ping timeout: 260 seconds) |
19:54:32 | FromDiscord | <guttural666> can an iterator be used just like a function to compute a value once and lazily? it seems not and I understood this correctly |
20:03:59 | FromDiscord | <nnsee> In reply to @guttural666 "can an iterator be": iirc you can but it needs to be a closure iterator |
20:05:32 | FromDiscord | <guttural666> In reply to @nnsee "iirc you can but": just add the closure pragma or what do you mean by that? |
20:05:59 | FromDiscord | <nnsee> In reply to @guttural666 "just add the closure": https://peterme.net/asynchronous-programming-in-nim.html see appendix A |
20:07:10 | FromDiscord | <nnsee> @pmunch you should make your blog subheadings copyable anchors :p |
20:07:36 | FromDiscord | <nnsee> or at least give them an `id` value so you can use the old `#html-element-id` trick |
20:20:30 | FromDiscord | <guttural666> In reply to @nnsee "https://peterme.net/asynchronous-programming-in-nim": thanks, but I guess this doesn't work if you want to pass in something into the it↵https://play.nim-lang.org/#pasty=WvucGLgQ |
20:21:16 | FromDiscord | <guttural666> not sure what the problem is, but I guess I can just write my own function for this |
20:21:55 | FromDiscord | <guttural666> (edit) "it↵https://play.nim-lang.org/#pasty=WvucGLgQ" => "it (or use a ref object or use its fields or whatever)↵https://play.nim-lang.org/#pasty=WvucGLgQ" |
20:29:35 | FromDiscord | <nnsee> In reply to @guttural666 "thanks, but I guess": something like this? https://play.nim-lang.org/#pasty=UwYYYdNR |
20:33:50 | FromDiscord | <guttural666> In reply to @nnsee "something like this? https://play.nim-lang.org/#pas": hmm, that seems weird? why does that just work? |
20:34:13 | FromDiscord | <guttural666> using the iterator normally also works then↵https://play.nim-lang.org/#pasty=qDwHDWZG |
20:35:32 | FromDiscord | <guttural666> sent a code paste, see https://play.nim-lang.org/#pasty=fQveGCUC |
20:37:55 | FromDiscord | <nnsee> In reply to @guttural666 "I guess calling the": that $ is unnecessary there btw, I was just testing things out and forgot to delete it |
20:38:05 | FromDiscord | <guttural666> In reply to @nnsee "that $ is unnecessary": yeah, got that |
20:38:45 | FromDiscord | <guttural666> maybe the assignment just deduces a proc type here |
20:39:12 | FromDiscord | <nnsee> In reply to @guttural666 "using the iterator normally": this works without "my solution" as well |
20:39:41 | FromDiscord | <nnsee> ie https://play.nim-lang.org/#pasty=ZJBKPwDQ |
20:43:22 | FromDiscord | <guttural666> yes, but I want to be able to call http_gen1.get_msg1() without the for loop as well |
20:43:56 | FromDiscord | <nnsee> it's a bit odd that it requires a `let` to do that |
20:43:57 | FromDiscord | <nnsee> hmm |
20:45:16 | FromDiscord | <guttural666> okay, then it has to be a closure and you have to assign it to a variable |
20:47:48 | FromDiscord | <guttural666> this is it https://play.nim-lang.org/#pasty=TibbSPDm |
20:47:59 | * | beholders_eye joined #nim |
20:48:15 | FromDiscord | <nnsee> In reply to @guttural666 "this is it https://play.nim-lang.org/#pasty=TibbSPD": odd |
20:48:28 | FromDiscord | <nnsee> if i didn't know any better, i'd say that looks like a bug |
20:48:45 | FromDiscord | <guttural666> In reply to @nnsee "odd": it seems a bit odd, I would have thought that you could just call an iterator like a normal function without for |
20:49:00 | FromDiscord | <guttural666> this seems like jumping through hoops |
20:49:25 | FromDiscord | <nnsee> maybe worth waiting until someone more knowledgeable than me wakes up and chimes in |
20:50:18 | FromDiscord | <guttural666> yeah, gonna save this example |
20:54:58 | FromDiscord | <guttural666> thanks for your help though |
21:10:41 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
21:11:54 | * | Lord_Nightmare joined #nim |
21:15:29 | * | beholders_eye quit (Ping timeout: 248 seconds) |
21:19:02 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
21:22:08 | * | Lord_Nightmare joined #nim |
21:25:53 | FromDiscord | <Elegantbeef> You also do not need a closure if you just use a template which takes a `iterable` |
21:27:51 | FromDiscord | <Elegantbeef> @guttural666 https://play.nim-lang.org/#pasty=SPQmycca for instance |
21:30:08 | FromDiscord | <guttural666> iterable would be the equivalent to a c++ concept I reckon? |
21:30:42 | FromDiscord | <Elegantbeef> Iterable is a Nim typeclass for anything that invokes a `iterator` |
21:30:47 | FromDiscord | <Elegantbeef> So if you wanted to use it on a seq you do `mySeq.items.first()` |
21:31:00 | FromDiscord | <Elegantbeef> But it also works for closures |
21:39:29 | * | ntat quit (Quit: Leaving) |
21:40:41 | * | coldfeet joined #nim |
21:46:43 | Amun-Ra | you build C++ iterators with a class |
21:48:37 | FromDiscord | <pmunch> In reply to @nnsee "<@392962235737047041> you should make": Yeah I know.. But the CMS I use stores articles as HTML, so I'd need to write a script to go through the database and fix them all |
21:49:48 | * | rockcavera joined #nim |
21:51:28 | FromDiscord | <Elegantbeef> Amun ra did you just say class in respect to Nim?! |
21:51:41 | Amun-Ra | Elegantbeef: no |
22:56:43 | * | coldfeet quit (Remote host closed the connection) |
23:45:43 | FromDiscord | <guttural666> In reply to @Elegantbeef "<@375727321958580228> https://play.nim-lang.org/#pa": not sure that does what I want, what I really want is to call the iterator and it just "holds is thought" as you'd expect in the for loop, even if called once like a normal procedure |
23:46:19 | FromDiscord | <guttural666> (edit) "is" => "it's" |
23:50:16 | FromDiscord | <guttural666> so calling msg.it() 3 times manually is the same as for it in msg.it |
23:51:13 | * | xutaxkamay quit (Ping timeout: 248 seconds) |
23:54:10 | FromDiscord | <guttural666> I think the closure thing is the solution, if you look at the output here https://play.nim-lang.org/#pasty=MHLDARbK |