00:00:32 | FromDiscord | <Elegantbeef> Yea i'd wager that JS loses, but i could be totally wrong |
00:01:14 | FromDiscord | <leorize> but I can imagine that if your code basically uses the JS standard library then encoding an equivalent to a WASM build will be bigger |
00:01:37 | FromDiscord | <leorize> but that's not how anyone would use WASM |
00:46:36 | FromDiscord | <PunchCake> In reply to @Event Horizon "Larger file sizes": If you are using blazor then yes it ships the dotnet runtime |
00:47:12 | FromDiscord | <PunchCake> If your just putting compiled stuff with no runtime bullshit then it would be like 20kb |
00:47:31 | FromDiscord | <PunchCake> For example imgui + webgl was 26 kb when i tested |
00:51:41 | FromDiscord | <PunchCake> In reply to @Event Horizon "I *very much* like": And not to mention we dont have to use shitty js anymore we can use any language that can compile to it |
00:52:10 | FromDiscord | <PunchCake> C++, nim, rust are all good choices since they dont ship a jit compiler or an interpreter |
00:54:09 | FromDiscord | <jtv> Is there a wrap of wordexp() anywhere in the std library? Not finding it, and want to make sure I'm not missing it before I go reinvent the wheel |
01:00:51 | FromDiscord | <Elegantbeef> wordexp? |
01:01:31 | FromDiscord | <PunchCake> Yeah never heard of that before |
01:01:51 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4joW |
01:02:31 | FromDiscord | <Elegantbeef> Might be apart of \`std/posix |
01:02:47 | FromDiscord | <Elegantbeef> Sorry i think it's `system/posix` |
01:03:58 | FromDiscord | <Elegantbeef> `parseCmdline` seems to be an approximation |
01:04:07 | FromDiscord | <Elegantbeef> But not feature parity |
01:09:15 | FromDiscord | <jtv> It basically does things like tilde expansion, etc |
01:09:21 | FromDiscord | <jtv> But thank you |
01:41:56 | FromDiscord | <Phil> In reply to @leorize "tauri is just electron": I mean it is, but you are packaging a lot fewer JS engines in your engine now... at the exchange of now having to deal with all the bugs that each distro has in its local browsers |
01:42:10 | FromDiscord | <Phil> (edit) "distro" => "OS" |
01:43:51 | FromDiscord | <Phil> I'm personally not sure whether Tauri will go places or not.↵The general idea is really good and its likely more performant than electron.↵But having to deal with how safari, edge, konqueror (kde) and epiphany (gnome) will fuck up your interface each in their own unique ways is something I'm not sure if it's worth it |
01:45:29 | FromDiscord | <Phil> From a developer PoV that loses you some of the cross-platformyness in exchange for performance gains that.... aren't likely to matter for the run of the mill electorn app whose tasks aren't all that demanding |
01:46:49 | FromDiscord | <Elegantbeef> Oh phil do you still have that macro issue |
01:47:10 | FromDiscord | <Phil> I might but at this point I'm too tired to follow up on it |
01:47:24 | FromDiscord | <Elegantbeef> ok |
01:49:28 | FromDiscord | <Phil> sent a code paste, see https://paste.rs/lE6 |
01:49:50 | FromDiscord | <Phil> (edit) "https://play.nim-lang.org/#ix=4joY" => "https://play.nim-lang.org/#ix=4joX" |
01:50:16 | FromDiscord | <Phil> This basically gives you `Error: type mismatch: got 'proc (a: int): int{.noSideEffect, gcsafe, locks: 0.}' for 'x' but expected 'proc (a: int): string{.closure.}'` |
01:50:27 | FromDiscord | <Phil> Which is not the error pragma text |
01:51:56 | FromDiscord | <Elegantbeef> sent a code paste, see https://paste.rs/xwN |
01:53:22 | FromDiscord | <Phil> Fair, leorize did suggest just to use "compiles" and be done with it, I wasn't sure if that really was the only way to go about it.↵That works as intended though, thanks!↵Based on that I can now also make another template that ensures an exported constant/variable exists in the module |
01:53:46 | * | arkurious quit (Quit: Leaving) |
01:54:07 | FromDiscord | <Elegantbeef> The issue is when the symbol isnt overloaded you cannot convert it |
03:00:29 | * | ltriant joined #nim |
03:05:19 | * | ltriant quit (Ping timeout: 268 seconds) |
03:14:40 | FromDiscord | <jtv> Is nim putting its own limit on the number of file descriptors I can have open at once? I'm doing a recursive walk of a large dir, and if I happen to find even 50 files I want to keep open, any future file stream fails to open. |
03:25:30 | FromDiscord | <leorize> it shouldn't |
03:25:56 | FromDiscord | <leorize> though there was a bug in async that's similar iirc |
03:27:15 | FromDiscord | <jtv> Odd. I'm not using async, but it's definitely the case where opens start failing, and if I start closing unneeded fds before the walk ends they all work 🙂 |
03:27:34 | FromDiscord | <jtv> I originally was just closing all the unneded ones at the end |
03:59:10 | FromDiscord | <Bung> https://github.com/nim-lang/Nim/issues/17982 how to support `var String` here for cpp ? |
04:27:46 | FromDiscord | <arkanoid> what is the difference from typedesc[T] and T ? |
04:28:53 | FromDiscord | <Elegantbeef> One is a type the other is a value |
04:29:55 | FromDiscord | <deech> Thought it was a metatype vs. a type. |
04:30:17 | FromDiscord | <Elegantbeef> Context matters |
04:30:44 | FromDiscord | <deech> Fair enough |
04:30:45 | FromDiscord | <Elegantbeef> `proc doThing[T](t: typedesc[T]) vs. `proc doThing[T](t\: T)\` |
04:31:57 | FromDiscord | <arkanoid> How is T a value here? |
04:32:05 | FromDiscord | <Elegantbeef> Cause you pass it a value not a type |
04:33:40 | FromDiscord | <Elegantbeef> We will say i'm wrong |
04:33:55 | FromDiscord | <Elegantbeef> And just say the former is a type class |
04:35:20 | FromDiscord | <arkanoid> sent a long message, see http://ix.io/4jpb |
04:36:52 | FromDiscord | <arkanoid> Wait, I might just have got an eureka moment |
04:36:56 | FromDiscord | <Elegantbeef> typedesc[T] does approximate `MyType.proc()` |
04:40:25 | FromDiscord | <arkanoid> sent a long message, see https://paste.rs/fxh |
04:40:49 | FromDiscord | <Elegantbeef> Correct |
04:43:07 | FromDiscord | <Elegantbeef> Hence `typedesc[T]` is a type and `T` is a value |
04:43:15 | FromDiscord | <Elegantbeef> A procedure can only take a type if it's annotated a typedesc |
04:44:55 | FromDiscord | <arkanoid> Got it. Damn, there's an example in the mastering nim book that I don't understand where t is going |
04:48:06 | FromDiscord | <arkanoid> Page 105 line starting with\: "proc fromj[T\: seq](t\: typedesc[T], ...)" t is never used in body |
04:49:13 | FromDiscord | <Elegantbeef> It's just used so you can do `seq[int]fromj(...)` |
04:49:22 | FromDiscord | <Elegantbeef> `seq[int].fromj(...)` even |
04:49:27 | FromDiscord | <Elegantbeef> I dont have the book so cannot say much |
04:50:33 | FromDiscord | <arkanoid> Weird idiom, typing a var name that's used but not |
04:51:03 | FromDiscord | <Elegantbeef> You can do `_: ` but i guess araq didnt? |
04:51:23 | FromDiscord | <huantian> It’s used to basically turn the generic parameter into a normal parameter |
04:51:28 | FromDiscord | <huantian> So you can use it with UFC |
04:54:42 | FromDiscord | <Elegantbeef> Wait you can use Nim with UFC?! |
04:57:31 | FromDiscord | <arkanoid> Mmm, ok, maybe is just an extended version to make it explicit in the book |
07:02:23 | * | kenran joined #nim |
07:03:10 | * | kenran quit (Remote host closed the connection) |
07:27:03 | FromDiscord | <gyoren> am i doing something wrong, or does using `readAll` on the output of a process which continuously expects input really just hang? |
07:27:53 | FromDiscord | <gyoren> for example i can input something into `cat` but reading from the output in any way hangs |
07:30:36 | FromDiscord | <gyoren> sent a code paste, see https://paste.rs/TUn |
07:49:34 | * | pro joined #nim |
07:49:45 | madprops | PRO |
07:49:52 | pro | sup |
07:49:59 | madprops | hey :D |
07:50:13 | pro | hello beautiful |
07:50:30 | madprops | oh im far from beautiful |
07:51:01 | pro | you are beautiful |
07:51:07 | madprops | if you insist |
07:51:36 | madprops | https://youtu.be/t8WaRX-sHTQ |
08:13:37 | FromDiscord | <Bung> where's document for user defined proc `=` |
08:14:31 | FromDiscord | <Elegantbeef> You cannot make a `=` afaik |
08:15:03 | FromDiscord | <amadan> You can but its just an alias for `=copy` iirc |
08:16:13 | FromDiscord | <Bung> hmm, let me think of it. am trying to fix cpp atomic assigment problem. |
08:16:47 | FromDiscord | <amadan> So guessing this would be the document https://nim-lang.org/docs/destructors.html#lifetimeminustracking-hooks-nimeqcopy-hook ? |
08:22:10 | * | ltriant joined #nim |
08:29:41 | FromDiscord | <Bung> hmm, that matches the semantics but it only used for arc/orc |
08:39:47 | * | ltriant quit (Ping timeout: 264 seconds) |
08:52:53 | * | wallabra quit (Ping timeout: 252 seconds) |
09:21:58 | * | ltriant joined #nim |
09:22:35 | FromDiscord | <Phil> In reply to @Elegantbeef "Wait you can use": I assume UFC in this case doesn't mean underground fight Club |
09:24:20 | FromDiscord | <Elegantbeef> Lol |
09:24:34 | FromDiscord | <Elegantbeef> You clearly have post secondary education with a guess like that |
09:25:00 | FromDiscord | <Phil> Literally no CS education in my defense |
09:25:23 | FromDiscord | <Elegantbeef> They meant UFCS |
09:25:44 | FromDiscord | <Elegantbeef> I was making an insincere remark |
09:26:15 | FromDiscord | <Phil> Also not telling me anything other than that UFC might get a "specialist" tacked on |
09:26:50 | FromDiscord | <Elegantbeef> Well now i'm lost and need a map |
09:27:10 | FromDiscord | <Phil> And I need an elaboration what ufcs means |
09:27:21 | FromDiscord | <Elegantbeef> Uniform function calling syntax |
09:27:28 | FromDiscord | <Elegantbeef> Or what nim calls "method call syntax" |
09:28:27 | * | ltriant quit (Ping timeout: 252 seconds) |
09:28:31 | FromDiscord | <Phil> Ahhhh check |
09:46:06 | FromDiscord | <ezquerra> UFCS is probably my preferred nim “syntax feature”. I find it is such an elegant way to let you extend other people’s libraries!↵I miss it so much whenever I need to go back to Python or C++ |
09:46:48 | FromDiscord | <Elegantbeef> It's such a simple and effective way of having endlessly extensible types |
09:49:03 | FromDiscord | <Phil> The main way to me is how it allows to express meaning |
09:49:35 | FromDiscord | <Phil> I can emphasize one parameter being more relevant than the others, even when they aren't objects |
09:57:54 | FromDiscord | <Elegantbeef> Here i thought all parameters were important 😛 |
10:25:37 | * | ltriant joined #nim |
10:27:09 | om3ga | Is it barbarism? Unable to pass args to thread https://play.nim-lang.org/#ix=4jq6 |
10:28:20 | om3ga | previously I used shared heap, it work. or maybe I should not create tuple with that types like seq[string] |
10:29:25 | om3ga | it should be stored in tuple as reference array to arrays of type string, right? |
10:41:56 | * | ltriant quit (Ping timeout: 272 seconds) |
11:03:29 | FromDiscord | <Phil> In reply to @Elegantbeef "Here i thought all": Not all parameters are equal! Whoever stated so stated a lie! |
11:10:54 | NimEventer | New thread by forcefaction: How to make variables declared inside static blocks available?, see https://forum.nim-lang.org/t/9757 |
11:30:42 | FromDiscord | <Phil> Wait a sec, does std/unittest not have a split between "perform this setup once at the start of the test-suite" and "perform this setup before each test" ? |
11:31:18 | FromDiscord | <Phil> I'm just realizing this now as I'd like to create the database only once per test-suite, not once per test since that seems like a massive waste of resources |
11:37:52 | FromDiscord | <choltreppe> sent a code paste, see https://play.nim-lang.org/#ix=4jqm |
11:40:51 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4jqo |
11:43:18 | FromDiscord | <gyoren> In reply to @gyoren "am i doing something": bump |
11:47:14 | FromDiscord | <choltreppe> In reply to @Isofruit "Because when assigning to": ah ok good to know. I already have a workaround for my case, was just curious |
11:48:12 | FromDiscord | <Phil> In reply to @choltreppe "ah ok good to": It might be different if you do that with object refs etc., I'm just semi sure that nim is not a fan of you having pointers to sth inside of a seq rather than a pointer to the seq itself, so IIRC it tends to copy there |
12:44:02 | FromDiscord | <demotomohiro> If you have a pointer to an element of a seq, resizing that seq makes that pointer invalid because that seq can reallocate internal heap.↵Having an index of an element of a seq doesn't have same issue as long as that index is smaller than size of that seq. |
13:40:44 | * | al1ranger joined #nim |
13:41:28 | * | al1ranger quit (Client Quit) |
14:05:11 | om3ga | The problem with this thread is with some types I try to pass. seq[string] works. The short example proves that |
14:07:35 | om3ga | here is short version: https://play.nim-lang.org/#ix=4jr0 |
14:38:02 | * | ltriant joined #nim |
14:40:54 | FromDiscord | <tsoj> sent a code paste, see https://paste.rs/5eh |
14:41:05 | FromDiscord | <tsoj> (edit) "https://play.nim-lang.org/#ix=4jra" => "https://play.nim-lang.org/#ix=4jr9" |
14:41:17 | FromDiscord | <tsoj> (edit) |
14:41:32 | FromDiscord | <tsoj> (edit) |
14:42:46 | * | ltriant quit (Ping timeout: 268 seconds) |
14:43:34 | * | ehmry quit (Ping timeout: 252 seconds) |
14:44:41 | FromDiscord | <HitBlast> Is there a way to ignore this warning inside a Nim script? I'm trying to export these variables. https://media.discordapp.net/attachments/371759389889003532/1056220876221194360/Screenshot_2022-12-24_at_8.43.42_PM.png |
14:45:56 | FromDiscord | <ringabout> `let ... {.used.} = ...` or export them |
14:46:12 | * | ehmry joined #nim |
14:46:40 | FromDiscord | <ringabout> (edit) |
14:49:06 | FromDiscord | <Bung> they use gdb |
14:50:19 | * | jmdaemon quit (Ping timeout: 248 seconds) |
14:54:29 | FromDiscord | <Bung> warning what ? can't see from your image |
14:55:19 | FromDiscord | <HitBlast> In reply to @ringabout "Use `let ... {.used.}": like this? https://media.discordapp.net/attachments/371759389889003532/1056223552996638810/Screenshot_2022-12-24_at_8.54.10_PM.png |
14:57:27 | FromDiscord | <ringabout> It ignores the warnings. If you want to export them, add a postfix star like `let AVRO_VOWELS = ...`. |
14:57:52 | * | ehmry quit (Ping timeout: 252 seconds) |
14:58:17 | * | ehmry joined #nim |
14:58:37 | FromDiscord | <HitBlast> In reply to @ringabout "It ignores the warnings.": I'd just like to use it between my other private scripts inside the directory. |
15:00:18 | FromDiscord | <Bung> still dont know it warning for what , variable name style or not used |
15:01:31 | FromDiscord | <Bung> well, your comment says "Constants", then declared as `let` |
15:06:19 | FromDiscord | <HitBlast> In reply to @Bung "well, your comment says": oh I just put it there for the sake of a comment lmao |
15:17:14 | FromDiscord | <gcao> hi, in asyncdispatch module, how does AsyncEvent work? I can create the event and trigger it, but how can I register with the dispatcher? Will a custom AsyncEvent work similar to how Read works for AsyncFD? |
15:40:13 | om3ga | Well, I get more closer to the problem, thread function defined in another file. thread parameter is ptr SharedData (which is heap allocated shmem) |
15:41:34 | om3ga | if thread proc defined in one file with that SharedData and Lock, and where called createThread, then it works |
15:45:40 | FromDiscord | <HitBlast> Will my procs be usable from inside the `private` directory of the package if I don't explicitly export them? |
15:46:13 | om3ga | https://controlc.com/f4b9e059 |
15:48:14 | om3ga | here is the code, is it possible to make it work? or it's mandatory to define that procedure in one file? |
15:48:15 | FromDiscord | <Bung> I think https://github.com/dom96/httpbeast is full example answer your question↵(@gcao) |
15:50:30 | FromDiscord | <Bung> private directory just cant import in other project↵(@HitBlast) |
15:51:33 | FromDiscord | <jmgomez> Are universal dylibs a thing? If so what would you pass to clang to build one? I got it compiling to ARM and x86 but not sure what to do to have both in the same lib |
15:53:34 | FromDiscord | <jmgomez> For binaries they seem to use lipo, not sure if that can be used to libs too |
15:54:48 | FromDiscord | <jmgomez> Okay, I was in the right track letting this here in case anyone else ran into the same issue: https://stackoverflow.com/questions/22783453/how-to-create-a-universal-dylib-from-pre-built-dylibs-for-each-architecture |
15:55:13 | FromDiscord | <jmgomez> (edit) "else ran" => " run" |
15:56:19 | FromDiscord | <Bung> interesting, Found on macos just use clang https://scons-users.scons.narkive.com/UGieLDEb/how-to-build-a-universal-dylib-on-mac-os-x |
15:57:40 | Amun-Ra | jmgomez: can you create version for ppc also? is it still a thing in osx world? |
15:58:11 | FromDiscord | <malang> since everyone will be drunk tomorrow now's the time to wish you all a Merry |
15:58:28 | FromDiscord | <malang> (edit) "since everyone will be drunk tomorrow now's the time to wish you all a Merry ... " added "🎄" |
15:58:42 | FromDiscord | <HitBlast> In reply to @Bung "private directory just cant": cool |
15:59:10 | FromDiscord | <HitBlast> also another small question, is there a magic method like Python to turn text into lowercase? |
15:59:51 | om3ga | Amun-Ra: no, ppc are old as dinosaurs |
16:00:05 | om3ga | apple has now their own cpu |
16:00:22 | Amun-Ra | mhm |
16:00:42 | Amun-Ra | they support "fat binaries" since ppc→x86 switch |
16:00:46 | Amun-Ra | supported* |
16:01:19 | Amun-Ra | I was wondering if you can make such a binary for three architectures |
16:01:37 | om3ga | I remember there was flag -triple |
16:02:01 | om3ga | clang can put many ABI in one binary |
16:04:13 | FromDiscord | <jmgomez> In reply to @Bung "interesting, Found on macos": that doesnt include m1, it's a bit old |
16:04:20 | FromDiscord | <Bung> there're procs no magic↵strutils\: toLowerAscii(s\: string)\: string↵unicode\: toLower(c\: Rune)\: Rune↵(@HitBlast) |
16:05:36 | * | droidrage joined #nim |
16:07:40 | FromDiscord | <Bung> wondering how the combined libs works, when two export symbols same name |
16:10:40 | FromDiscord | <HitBlast> In reply to @Bung "there're procs no magic": I see, gotta get used to stuff |
16:10:41 | FromDiscord | <HitBlast> aren't these two procs from `std/strutils`? |
16:11:30 | FromDiscord | <jmgomez> In reply to @Bung "wondering how the combined": there is a mechanism for discriminating between archs, not sure how it works internally but if you try to use an arm lib from a x86 one the message is something like not symbols for x86 were found for the following funcs.. |
16:12:46 | FromDiscord | <Bung> yeah, that error is common |
16:18:46 | * | qwestion joined #nim |
16:26:12 | FromDiscord | <gcao> In reply to @Bung "I think https://github.com/dom96/httpbeast is": Will take a look. Thank you! |
16:56:11 | FromDiscord | <HitBlast> Is there a way to check if a text is within a sequence? I scraped the `std/sequtils` library with no luck. |
16:58:18 | om3ga | find() |
16:58:33 | FromDiscord | <bfg-coding> What text editor are you all using? |
16:58:48 | om3ga | I love Geany |
16:58:51 | FromDiscord | <HitBlast> I'm using Helix along with VSCode |
16:59:13 | om3ga | VSCode is damn slow, but to be fair I use it |
16:59:24 | om3ga | maybe better to switch back to atom |
16:59:34 | ehmry | I'm still using acme from plan9port |
16:59:47 | FromDiscord | <HitBlast> In reply to @om3ga "find()": like: `find(text, "text to find")` ? |
17:01:30 | FromDiscord | <HitBlast> (edit) "`find(text," => "`find(sequence," |
17:03:15 | om3ga | HitBlast, yeah, but in loop and pass to find seq elements, there was also function called contains, if I not mistaken |
17:03:51 | FromDiscord | <Slava0135> In reply to @HitBlast "I'm using Helix along": Treesitter doesn't support Nim sadly |
17:07:13 | FromDiscord | <HitBlast> In reply to @om3ga "<@867993514917654588>, yeah, but in": I was getting an error all along with `contains` but now I |
17:07:20 | FromDiscord | <HitBlast> have realized that I was using a sequence of characters |
17:07:21 | FromDiscord | <HitBlast> all along |
17:12:58 | om3ga | HitBlast: https://play.nim-lang.org/#ix=4jrM |
17:13:57 | FromDiscord | <HitBlast> Thanks! Seems like I've got my answer. |
17:14:09 | om3ga | Ur welcome! |
17:27:34 | FromDiscord | <HitBlast> is there a way to lower a character like how we do with strings? |
17:27:52 | FromDiscord | <HitBlast> I'm currently porting an application which needs single characters to be lowered for preprocessing |
17:56:35 | om3ga | https://nim-lang.org/docs/strutils.html#toLowerAscii%2Cchar |
18:19:33 | FromDiscord | <Alababdiy (Alababdiy)> sent a long message, see https://paste.rs/S9v |
18:19:35 | FromDiscord | <Alababdiy (Alababdiy)> how can change port ? |
18:24:54 | om3ga | Please ignore all my questions, I found the answer here: https://nim-lang.org/docs/manual.html#generics-delegating-bind-statements |
19:00:46 | FromDiscord | <huantian> In reply to @Alababdiy (Alababdiy) "how can change port": I think there's an example of that here <https://github.com/dom96/jester#custom-router> |
19:04:55 | * | wallabra joined #nim |
19:16:38 | FromDiscord | <willyboar> In reply to @Alababdiy (Alababdiy) "how can change port": This is a better example: https://github.com/dom96/jester/blob/master/tests/techempower/techempower.nim |
19:46:48 | om3ga | Is there any chance to get rid of that "Not Responding" message while thread called from NiGui works? |
19:48:57 | om3ga | also I use text area as log window, it just not adds text updates to it, and throws whole text after thread quits |
19:49:27 | om3ga | can NiGui UI code work in parallel with thread? |
20:02:34 | NimEventer | New post on r/nim by 4runninglife: SSLv3 Handshake Error, see https://reddit.com/r/nim/comments/zuhhmi/sslv3_handshake_error/ |
20:36:40 | om3ga | SUMMARY: ThreadSanitizer: data race threadpool.nim:358 in slave__pureZconcurrencyZthreadpool_366 |
20:37:28 | om3ga | If I manage to find what causes this, I will report that |
20:41:21 | * | pro left #nim (#nim) |
20:41:48 | FromDiscord | <undel> sent a code paste, see https://play.nim-lang.org/#ix=4ju4 |
20:48:29 | FromDiscord | <ShalokShalom> Stupid question |
20:49:13 | FromDiscord | <ShalokShalom> If I press tab upon 'proc' it expands to a full proc definition |
20:49:57 | FromDiscord | <ShalokShalom> sent a code paste, see https://play.nim-lang.org/#ix=4ju8 |
20:50:25 | FromDiscord | <ShalokShalom> So, when I hit tab, it automatically brings me to `name` |
20:50:46 | FromDiscord | <ShalokShalom> And when I start typing, it replaces that one entirely. |
20:51:00 | FromDiscord | <ShalokShalom> But how to succeed to arguments, to fill in that as well? |
20:51:08 | FromDiscord | <Elegantbeef> Yes↵(@undel) |
20:51:31 | FromDiscord | <ShalokShalom> When I move there with the cursor, it marks the entire 'arguments' but it doesnt replace it |
20:51:50 | FromDiscord | <ShalokShalom> It just adds up to it, like myarguments |
20:51:57 | FromDiscord | <Elegantbeef> Custom code snippets |
20:52:02 | FromDiscord | <ShalokShalom> ? |
20:52:14 | FromDiscord | <ShalokShalom> You mean that is a custom code snippet |
20:52:20 | FromDiscord | <ShalokShalom> Or they are the solution? |
20:53:02 | FromDiscord | <undel> sent a code paste, see https://play.nim-lang.org/#ix=4ju9 |
20:53:03 | FromDiscord | <Elegantbeef> Custom code snippets allow you to control where the cursor goes as it completes and you move right |
20:53:10 | FromDiscord | <ShalokShalom> Ah, I see |
20:53:24 | FromDiscord | <ShalokShalom> So the default saem extension is unable to do that |
20:53:28 | FromDiscord | <ShalokShalom> Out of the box |
20:53:54 | FromDiscord | <ShalokShalom> Couldn't we add that snippets to it? |
20:55:25 | FromDiscord | <Elegantbeef> No clue if it includes snippets |
20:58:42 | FromDiscord | <ShalokShalom> Well, it does |
20:58:44 | FromDiscord | <ShalokShalom> Appearently |
20:58:51 | FromDiscord | <ShalokShalom> Idk from were this comes otherwise |
21:00:10 | FromDiscord | <ShalokShalom> Yep, I disabled it and its gone |
21:00:32 | FromDiscord | <ShalokShalom> Nimsaem is my only extension that could cause this anyway |
21:00:37 | FromDiscord | <ShalokShalom> No AI extension or so |
21:03:18 | * | ltriant joined #nim |
21:05:42 | FromDiscord | <ShalokShalom> Ah, now it works just with tab 😅😅😅😅 |
21:11:07 | * | ltriant quit (Ping timeout: 248 seconds) |
21:12:50 | * | ltriant joined #nim |
21:18:11 | * | ltriant quit (Ping timeout: 264 seconds) |
22:28:12 | * | xet7 quit (Quit: Leaving) |
22:39:35 | FromDiscord | <Alababdiy (Alababdiy)> sent a code paste, see https://play.nim-lang.org/#ix=4juu |
22:39:40 | FromDiscord | <Alababdiy (Alababdiy)> thanks↵(@willyboar) |
22:40:08 | FromDiscord | <Alababdiy (Alababdiy)> sent a code paste, see https://play.nim-lang.org/#ix=4juv |
22:42:09 | NimEventer | New thread by sekao: Parazoa - Immutable, persistent data structures for Nim, see https://forum.nim-lang.org/t/9758 |
22:42:33 | FromDiscord | <Elegantbeef> > Why Open AI suggest this code with syntax error ?↵Probably cause openai is an ai |
22:45:21 | * | jmdaemon joined #nim |
22:45:49 | FromDiscord | <Alababdiy (Alababdiy)> if it's logic error it will be ok , but is syntax erros |
22:46:25 | FromDiscord | <Elegantbeef> `do: ` |
22:46:28 | FromDiscord | <Elegantbeef> But even then that's not right |
22:47:09 | FromDiscord | <Elegantbeef> Learning from an AI that does not know the semantics or experience of the compiler seems like building a house out of straw |
22:49:35 | FromDiscord | <Alababdiy (Alababdiy)> i'm just discover the language , so that code i share it not for nim old version ? |
22:53:28 | FromDiscord | <Elegantbeef> It's AI geneated code |
23:00:55 | FromDiscord | <Phil> In reply to @Alababdiy (Alababdiy) "if it's logic error": AI code for non mainstream languages such as Nim is not guaranteed to be with the correct syntax. No code is, technically speaking, but the chances of the AI getting syntax wrong in a language like Nim is just higher |
23:02:05 | FromDiscord | <Elegantbeef> Phil maybe openAI knows the true implementation of Nim |
23:05:14 | FromDiscord | <Phil> Also the bridge to whatever server alababdiy is joining from must be dying |
23:05:28 | FromDiscord | <Phil> Because once more I only see gibberish of HTML where I assume they posted code |
23:05:29 | FromDiscord | <Elegantbeef> Nah gitter is funny |
23:05:49 | FromDiscord | <Elegantbeef> Gitter is a web app so uses html to render code |
23:06:10 | FromDiscord | <Elegantbeef> But it does the rendering on the client side when the message is sent apparently |
23:15:23 | FromDiscord | <Rika> Sounds like an exploit to me |
23:16:10 | FromDiscord | <Elegantbeef> Arbitrary embedding of html, sounds fun! |
23:45:04 | FromDiscord | <ShalokShalom> Gitlab bought Gitter with the goal of renovating it and later implementating it into Gitlab |
23:46:19 | FromDiscord | <ShalokShalom> They worked on the code for months and announced then that the UI code specifically and the whole code base in general is ... "Not as good as expected" |
23:47:32 | FromDiscord | <Elegantbeef> And now it's matrix based and completely pointless to exist since you can just use a matrix client |
23:48:12 | FromDiscord | <ShalokShalom> In reply to @Alababdiy (Alababdiy) "if it's logic error": For the AI, there is essentially no difference between semantic and syntactic |
23:48:40 | FromDiscord | <ShalokShalom> In reply to @Elegantbeef "And now it's matrix": Isnt that Rocketchat? |
23:48:49 | FromDiscord | <Elegantbeef> They're both matrix based now |
23:49:37 | FromDiscord | <ShalokShalom> Ah yeah |
23:49:52 | FromDiscord | <ShalokShalom> Tons of non working Matrix clients |
23:50:08 | FromDiscord | <ShalokShalom> Instead of one two proper ones |
23:50:52 | FromDiscord | <ShalokShalom> Typical open source fashion :p |
23:51:11 | FromDiscord | <Elegantbeef> To be fair many clients is sorta the point of matrix |
23:51:15 | FromDiscord | <Elegantbeef> You own the protocol/data |
23:51:58 | FromDiscord | <ShalokShalom> Yep |
23:52:05 | FromDiscord | <ShalokShalom> Typical open source fashion |
23:54:35 | FromDiscord | <ShalokShalom> We have not even managed to find a way to properly communicate with each other |
23:54:40 | FromDiscord | <ShalokShalom> In like what |
23:54:45 | FromDiscord | <ShalokShalom> 40 years ? |
23:55:11 | FromDiscord | <Elegantbeef> Hey matrix covers all bases! 😛 |
23:57:09 | FromDiscord | <14k> Error: cannot open file: winim/lean |
23:57:16 | FromDiscord | <14k> Doing nimble install winim doesn't work |
23:57:27 | FromDiscord | <14k> Downloading https://github.com/khchen/winim using git↵download.nim(93) getTagsListRemote↵Error: unhandled exception: Unable to query remote tags for https://github.com/khchen/winim. Git returned: [OSError] |
23:57:31 | FromDiscord | <ShalokShalom> Its probably the most wide spread |
23:57:42 | FromDiscord | <ShalokShalom> Together with Mastodon |
23:59:33 | FromDiscord | <Elegantbeef> I more mean that matrix supports puppetting on many clients |
23:59:37 | * | ehmry quit (Ping timeout: 252 seconds) |
23:59:41 | FromDiscord | <Elegantbeef> Even discord though it's against TOS |