<< 24-12-2022 >>

00:00:32FromDiscord<Elegantbeef> Yea i'd wager that JS loses, but i could be totally wrong
00:01:14FromDiscord<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:37FromDiscord<leorize> but that's not how anyone would use WASM
00:46:36FromDiscord<PunchCake> In reply to @Event Horizon "Larger file sizes": If you are using blazor then yes it ships the dotnet runtime
00:47:12FromDiscord<PunchCake> If your just putting compiled stuff with no runtime bullshit then it would be like 20kb
00:47:31FromDiscord<PunchCake> For example imgui + webgl was 26 kb when i tested
00:51:41FromDiscord<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:10FromDiscord<PunchCake> C++, nim, rust are all good choices since they dont ship a jit compiler or an interpreter
00:54:09FromDiscord<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:51FromDiscord<Elegantbeef> wordexp?
01:01:31FromDiscord<PunchCake> Yeah never heard of that before
01:01:51FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4joW
01:02:31FromDiscord<Elegantbeef> Might be apart of \`std/posix
01:02:47FromDiscord<Elegantbeef> Sorry i think it's `system/posix`
01:03:58FromDiscord<Elegantbeef> `parseCmdline` seems to be an approximation
01:04:07FromDiscord<Elegantbeef> But not feature parity
01:09:15FromDiscord<jtv> It basically does things like tilde expansion, etc
01:09:21FromDiscord<jtv> But thank you
01:41:56FromDiscord<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:10FromDiscord<Phil> (edit) "distro" => "OS"
01:43:51FromDiscord<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:29FromDiscord<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:49FromDiscord<Elegantbeef> Oh phil do you still have that macro issue
01:47:10FromDiscord<Phil> I might but at this point I'm too tired to follow up on it
01:47:24FromDiscord<Elegantbeef> ok
01:49:28FromDiscord<Phil> sent a code paste, see https://paste.rs/lE6
01:49:50FromDiscord<Phil> (edit) "https://play.nim-lang.org/#ix=4joY" => "https://play.nim-lang.org/#ix=4joX"
01:50:16FromDiscord<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:27FromDiscord<Phil> Which is not the error pragma text
01:51:56FromDiscord<Elegantbeef> sent a code paste, see https://paste.rs/xwN
01:53:22FromDiscord<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:07FromDiscord<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:40FromDiscord<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:30FromDiscord<leorize> it shouldn't
03:25:56FromDiscord<leorize> though there was a bug in async that's similar iirc
03:27:15FromDiscord<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:34FromDiscord<jtv> I originally was just closing all the unneded ones at the end
03:59:10FromDiscord<Bung> https://github.com/nim-lang/Nim/issues/17982 how to support `var String` here for cpp ?
04:27:46FromDiscord<arkanoid> what is the difference from typedesc[T] and T ?
04:28:53FromDiscord<Elegantbeef> One is a type the other is a value
04:29:55FromDiscord<deech> Thought it was a metatype vs. a type.
04:30:17FromDiscord<Elegantbeef> Context matters
04:30:44FromDiscord<deech> Fair enough
04:30:45FromDiscord<Elegantbeef> `proc doThing[T](t: typedesc[T]) vs. `proc doThing[T](t\: T)\`
04:31:57FromDiscord<arkanoid> How is T a value here?
04:32:05FromDiscord<Elegantbeef> Cause you pass it a value not a type
04:33:40FromDiscord<Elegantbeef> We will say i'm wrong
04:33:55FromDiscord<Elegantbeef> And just say the former is a type class
04:35:20FromDiscord<arkanoid> sent a long message, see http://ix.io/4jpb
04:36:52FromDiscord<arkanoid> Wait, I might just have got an eureka moment
04:36:56FromDiscord<Elegantbeef> typedesc[T] does approximate `MyType.proc()`
04:40:25FromDiscord<arkanoid> sent a long message, see https://paste.rs/fxh
04:40:49FromDiscord<Elegantbeef> Correct
04:43:07FromDiscord<Elegantbeef> Hence `typedesc[T]` is a type and `T` is a value
04:43:15FromDiscord<Elegantbeef> A procedure can only take a type if it's annotated a typedesc
04:44:55FromDiscord<arkanoid> Got it. Damn, there's an example in the mastering nim book that I don't understand where t is going
04:48:06FromDiscord<arkanoid> Page 105 line starting with\: "proc fromj[T\: seq](t\: typedesc[T], ...)" t is never used in body
04:49:13FromDiscord<Elegantbeef> It's just used so you can do `seq[int]fromj(...)`
04:49:22FromDiscord<Elegantbeef> `seq[int].fromj(...)` even
04:49:27FromDiscord<Elegantbeef> I dont have the book so cannot say much
04:50:33FromDiscord<arkanoid> Weird idiom, typing a var name that's used but not
04:51:03FromDiscord<Elegantbeef> You can do `_: ` but i guess araq didnt?
04:51:23FromDiscord<huantian> It’s used to basically turn the generic parameter into a normal parameter
04:51:28FromDiscord<huantian> So you can use it with UFC
04:54:42FromDiscord<Elegantbeef> Wait you can use Nim with UFC?!
04:57:31FromDiscord<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:03FromDiscord<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:53FromDiscord<gyoren> for example i can input something into `cat` but reading from the output in any way hangs
07:30:36FromDiscord<gyoren> sent a code paste, see https://paste.rs/TUn
07:49:34*pro joined #nim
07:49:45madpropsPRO
07:49:52prosup
07:49:59madpropshey :D
07:50:13prohello beautiful
07:50:30madpropsoh im far from beautiful
07:51:01proyou are beautiful
07:51:07madpropsif you insist
07:51:36madpropshttps://youtu.be/t8WaRX-sHTQ
08:13:37FromDiscord<Bung> where's document for user defined proc `=`
08:14:31FromDiscord<Elegantbeef> You cannot make a `=` afaik
08:15:03FromDiscord<amadan> You can but its just an alias for `=copy` iirc
08:16:13FromDiscord<Bung> hmm, let me think of it. am trying to fix cpp atomic assigment problem.
08:16:47FromDiscord<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:41FromDiscord<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:35FromDiscord<Phil> In reply to @Elegantbeef "Wait you can use": I assume UFC in this case doesn't mean underground fight Club
09:24:20FromDiscord<Elegantbeef> Lol
09:24:34FromDiscord<Elegantbeef> You clearly have post secondary education with a guess like that
09:25:00FromDiscord<Phil> Literally no CS education in my defense
09:25:23FromDiscord<Elegantbeef> They meant UFCS
09:25:44FromDiscord<Elegantbeef> I was making an insincere remark
09:26:15FromDiscord<Phil> Also not telling me anything other than that UFC might get a "specialist" tacked on
09:26:50FromDiscord<Elegantbeef> Well now i'm lost and need a map
09:27:10FromDiscord<Phil> And I need an elaboration what ufcs means
09:27:21FromDiscord<Elegantbeef> Uniform function calling syntax
09:27:28FromDiscord<Elegantbeef> Or what nim calls "method call syntax"
09:28:27*ltriant quit (Ping timeout: 252 seconds)
09:28:31FromDiscord<Phil> Ahhhh check
09:46:06FromDiscord<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:48FromDiscord<Elegantbeef> It's such a simple and effective way of having endlessly extensible types
09:49:03FromDiscord<Phil> The main way to me is how it allows to express meaning
09:49:35FromDiscord<Phil> I can emphasize one parameter being more relevant than the others, even when they aren't objects
09:57:54FromDiscord<Elegantbeef> Here i thought all parameters were important 😛
10:25:37*ltriant joined #nim
10:27:09om3gaIs it barbarism? Unable to pass args to thread https://play.nim-lang.org/#ix=4jq6
10:28:20om3gapreviously I used shared heap, it work. or maybe I should not create tuple with that types like seq[string]
10:29:25om3gait 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:29FromDiscord<Phil> In reply to @Elegantbeef "Here i thought all": Not all parameters are equal! Whoever stated so stated a lie!
11:10:54NimEventerNew thread by forcefaction: How to make variables declared inside static blocks available?, see https://forum.nim-lang.org/t/9757
11:30:42FromDiscord<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:18FromDiscord<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:52FromDiscord<choltreppe> sent a code paste, see https://play.nim-lang.org/#ix=4jqm
11:40:51FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=4jqo
11:43:18FromDiscord<gyoren> In reply to @gyoren "am i doing something": bump
11:47:14FromDiscord<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:12FromDiscord<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:02FromDiscord<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:11om3gaThe problem with this thread is with some types I try to pass. seq[string] works. The short example proves that
14:07:35om3gahere is short version: https://play.nim-lang.org/#ix=4jr0
14:38:02*ltriant joined #nim
14:40:54FromDiscord<tsoj> sent a code paste, see https://paste.rs/5eh
14:41:05FromDiscord<tsoj> (edit) "https://play.nim-lang.org/#ix=4jra" => "https://play.nim-lang.org/#ix=4jr9"
14:41:17FromDiscord<tsoj> (edit)
14:41:32FromDiscord<tsoj> (edit)
14:42:46*ltriant quit (Ping timeout: 268 seconds)
14:43:34*ehmry quit (Ping timeout: 252 seconds)
14:44:41FromDiscord<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:56FromDiscord<ringabout> `let ... {.used.} = ...` or export them
14:46:12*ehmry joined #nim
14:46:40FromDiscord<ringabout> (edit)
14:49:06FromDiscord<Bung> they use gdb
14:50:19*jmdaemon quit (Ping timeout: 248 seconds)
14:54:29FromDiscord<Bung> warning what ? can't see from your image
14:55:19FromDiscord<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:27FromDiscord<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:37FromDiscord<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:18FromDiscord<Bung> still dont know it warning for what , variable name style or not used
15:01:31FromDiscord<Bung> well, your comment says "Constants", then declared as `let`
15:06:19FromDiscord<HitBlast> In reply to @Bung "well, your comment says": oh I just put it there for the sake of a comment lmao
15:17:14FromDiscord<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:13om3gaWell, 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:34om3gaif thread proc defined in one file with that SharedData and Lock, and where called createThread, then it works
15:45:40FromDiscord<HitBlast> Will my procs be usable from inside the `private` directory of the package if I don't explicitly export them?
15:46:13om3gahttps://controlc.com/f4b9e059
15:48:14om3gahere is the code, is it possible to make it work? or it's mandatory to define that procedure in one file?
15:48:15FromDiscord<Bung> I think https://github.com/dom96/httpbeast is full example answer your question↵(@gcao)
15:50:30FromDiscord<Bung> private directory just cant import in other project↵(@HitBlast)
15:51:33FromDiscord<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:34FromDiscord<jmgomez> For binaries they seem to use lipo, not sure if that can be used to libs too
15:54:48FromDiscord<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:13FromDiscord<jmgomez> (edit) "else ran" => " run"
15:56:19FromDiscord<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:40Amun-Rajmgomez: can you create version for ppc also? is it still a thing in osx world?
15:58:11FromDiscord<malang> since everyone will be drunk tomorrow now's the time to wish you all a Merry
15:58:28FromDiscord<malang> (edit) "since everyone will be drunk tomorrow now's the time to wish you all a Merry ... " added "🎄"
15:58:42FromDiscord<HitBlast> In reply to @Bung "private directory just cant": cool
15:59:10FromDiscord<HitBlast> also another small question, is there a magic method like Python to turn text into lowercase?
15:59:51om3gaAmun-Ra: no, ppc are old as dinosaurs
16:00:05om3gaapple has now their own cpu
16:00:22Amun-Ramhm
16:00:42Amun-Rathey support "fat binaries" since ppc→x86 switch
16:00:46Amun-Rasupported*
16:01:19Amun-RaI was wondering if you can make such a binary for three architectures
16:01:37om3gaI remember there was flag -triple
16:02:01om3gaclang can put many ABI in one binary
16:04:13FromDiscord<jmgomez> In reply to @Bung "interesting, Found on macos": that doesnt include m1, it's a bit old
16:04:20FromDiscord<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:40FromDiscord<Bung> wondering how the combined libs works, when two export symbols same name
16:10:40FromDiscord<HitBlast> In reply to @Bung "there're procs no magic": I see, gotta get used to stuff
16:10:41FromDiscord<HitBlast> aren't these two procs from `std/strutils`?
16:11:30FromDiscord<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:46FromDiscord<Bung> yeah, that error is common
16:18:46*qwestion joined #nim
16:26:12FromDiscord<gcao> In reply to @Bung "I think https://github.com/dom96/httpbeast is": Will take a look. Thank you!
16:56:11FromDiscord<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:18om3gafind()
16:58:33FromDiscord<bfg-coding> What text editor are you all using?
16:58:48om3gaI love Geany
16:58:51FromDiscord<HitBlast> I'm using Helix along with VSCode
16:59:13om3gaVSCode is damn slow, but to be fair I use it
16:59:24om3gamaybe better to switch back to atom
16:59:34ehmryI'm still using acme from plan9port
16:59:47FromDiscord<HitBlast> In reply to @om3ga "find()": like: `find(text, "text to find")` ?
17:01:30FromDiscord<HitBlast> (edit) "`find(text," => "`find(sequence,"
17:03:15om3gaHitBlast, yeah, but in loop and pass to find seq elements, there was also function called contains, if I not mistaken
17:03:51FromDiscord<Slava0135> In reply to @HitBlast "I'm using Helix along": Treesitter doesn't support Nim sadly
17:07:13FromDiscord<HitBlast> In reply to @om3ga "<@867993514917654588>, yeah, but in": I was getting an error all along with `contains` but now I
17:07:20FromDiscord<HitBlast> have realized that I was using a sequence of characters
17:07:21FromDiscord<HitBlast> all along
17:12:58om3gaHitBlast: https://play.nim-lang.org/#ix=4jrM
17:13:57FromDiscord<HitBlast> Thanks! Seems like I've got my answer.
17:14:09om3gaUr welcome!
17:27:34FromDiscord<HitBlast> is there a way to lower a character like how we do with strings?
17:27:52FromDiscord<HitBlast> I'm currently porting an application which needs single characters to be lowered for preprocessing
17:56:35om3gahttps://nim-lang.org/docs/strutils.html#toLowerAscii%2Cchar
18:19:33FromDiscord<Alababdiy (Alababdiy)> sent a long message, see https://paste.rs/S9v
18:19:35FromDiscord<Alababdiy (Alababdiy)> how can change port ?
18:24:54om3gaPlease ignore all my questions, I found the answer here: https://nim-lang.org/docs/manual.html#generics-delegating-bind-statements
19:00:46FromDiscord<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:38FromDiscord<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:48om3gaIs there any chance to get rid of that "Not Responding" message while thread called from NiGui works?
19:48:57om3gaalso I use text area as log window, it just not adds text updates to it, and throws whole text after thread quits
19:49:27om3gacan NiGui UI code work in parallel with thread?
20:02:34NimEventerNew post on r/nim by 4runninglife: SSLv3 Handshake Error, see https://reddit.com/r/nim/comments/zuhhmi/sslv3_handshake_error/
20:36:40om3gaSUMMARY: ThreadSanitizer: data race threadpool.nim:358 in slave__pureZconcurrencyZthreadpool_366
20:37:28om3gaIf I manage to find what causes this, I will report that
20:41:21*pro left #nim (#nim)
20:41:48FromDiscord<undel> sent a code paste, see https://play.nim-lang.org/#ix=4ju4
20:48:29FromDiscord<ShalokShalom> Stupid question
20:49:13FromDiscord<ShalokShalom> If I press tab upon 'proc' it expands to a full proc definition
20:49:57FromDiscord<ShalokShalom> sent a code paste, see https://play.nim-lang.org/#ix=4ju8
20:50:25FromDiscord<ShalokShalom> So, when I hit tab, it automatically brings me to `name`
20:50:46FromDiscord<ShalokShalom> And when I start typing, it replaces that one entirely.
20:51:00FromDiscord<ShalokShalom> But how to succeed to arguments, to fill in that as well?
20:51:08FromDiscord<Elegantbeef> Yes↵(@undel)
20:51:31FromDiscord<ShalokShalom> When I move there with the cursor, it marks the entire 'arguments' but it doesnt replace it
20:51:50FromDiscord<ShalokShalom> It just adds up to it, like myarguments
20:51:57FromDiscord<Elegantbeef> Custom code snippets
20:52:02FromDiscord<ShalokShalom> ?
20:52:14FromDiscord<ShalokShalom> You mean that is a custom code snippet
20:52:20FromDiscord<ShalokShalom> Or they are the solution?
20:53:02FromDiscord<undel> sent a code paste, see https://play.nim-lang.org/#ix=4ju9
20:53:03FromDiscord<Elegantbeef> Custom code snippets allow you to control where the cursor goes as it completes and you move right
20:53:10FromDiscord<ShalokShalom> Ah, I see
20:53:24FromDiscord<ShalokShalom> So the default saem extension is unable to do that
20:53:28FromDiscord<ShalokShalom> Out of the box
20:53:54FromDiscord<ShalokShalom> Couldn't we add that snippets to it?
20:55:25FromDiscord<Elegantbeef> No clue if it includes snippets
20:58:42FromDiscord<ShalokShalom> Well, it does
20:58:44FromDiscord<ShalokShalom> Appearently
20:58:51FromDiscord<ShalokShalom> Idk from were this comes otherwise
21:00:10FromDiscord<ShalokShalom> Yep, I disabled it and its gone
21:00:32FromDiscord<ShalokShalom> Nimsaem is my only extension that could cause this anyway
21:00:37FromDiscord<ShalokShalom> No AI extension or so
21:03:18*ltriant joined #nim
21:05:42FromDiscord<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:35FromDiscord<Alababdiy (Alababdiy)> sent a code paste, see https://play.nim-lang.org/#ix=4juu
22:39:40FromDiscord<Alababdiy (Alababdiy)> thanks↵(@willyboar)
22:40:08FromDiscord<Alababdiy (Alababdiy)> sent a code paste, see https://play.nim-lang.org/#ix=4juv
22:42:09NimEventerNew thread by sekao: Parazoa - Immutable, persistent data structures for Nim, see https://forum.nim-lang.org/t/9758
22:42:33FromDiscord<Elegantbeef> > Why Open AI suggest this code with syntax error ?↵Probably cause openai is an ai
22:45:21*jmdaemon joined #nim
22:45:49FromDiscord<Alababdiy (Alababdiy)> if it's logic error it will be ok , but is syntax erros
22:46:25FromDiscord<Elegantbeef> `do: `
22:46:28FromDiscord<Elegantbeef> But even then that's not right
22:47:09FromDiscord<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:35FromDiscord<Alababdiy (Alababdiy)> i'm just discover the language , so that code i share it not for nim old version ?
22:53:28FromDiscord<Elegantbeef> It's AI geneated code
23:00:55FromDiscord<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:05FromDiscord<Elegantbeef> Phil maybe openAI knows the true implementation of Nim
23:05:14FromDiscord<Phil> Also the bridge to whatever server alababdiy is joining from must be dying
23:05:28FromDiscord<Phil> Because once more I only see gibberish of HTML where I assume they posted code
23:05:29FromDiscord<Elegantbeef> Nah gitter is funny
23:05:49FromDiscord<Elegantbeef> Gitter is a web app so uses html to render code
23:06:10FromDiscord<Elegantbeef> But it does the rendering on the client side when the message is sent apparently
23:15:23FromDiscord<Rika> Sounds like an exploit to me
23:16:10FromDiscord<Elegantbeef> Arbitrary embedding of html, sounds fun!
23:45:04FromDiscord<ShalokShalom> Gitlab bought Gitter with the goal of renovating it and later implementating it into Gitlab
23:46:19FromDiscord<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:32FromDiscord<Elegantbeef> And now it's matrix based and completely pointless to exist since you can just use a matrix client
23:48:12FromDiscord<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:40FromDiscord<ShalokShalom> In reply to @Elegantbeef "And now it's matrix": Isnt that Rocketchat?
23:48:49FromDiscord<Elegantbeef> They're both matrix based now
23:49:37FromDiscord<ShalokShalom> Ah yeah
23:49:52FromDiscord<ShalokShalom> Tons of non working Matrix clients
23:50:08FromDiscord<ShalokShalom> Instead of one two proper ones
23:50:52FromDiscord<ShalokShalom> Typical open source fashion :p
23:51:11FromDiscord<Elegantbeef> To be fair many clients is sorta the point of matrix
23:51:15FromDiscord<Elegantbeef> You own the protocol/data
23:51:58FromDiscord<ShalokShalom> Yep
23:52:05FromDiscord<ShalokShalom> Typical open source fashion
23:54:35FromDiscord<ShalokShalom> We have not even managed to find a way to properly communicate with each other
23:54:40FromDiscord<ShalokShalom> In like what
23:54:45FromDiscord<ShalokShalom> 40 years ?
23:55:11FromDiscord<Elegantbeef> Hey matrix covers all bases! 😛
23:57:09FromDiscord<14k> Error: cannot open file: winim/lean
23:57:16FromDiscord<14k> Doing nimble install winim doesn't work
23:57:27FromDiscord<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:31FromDiscord<ShalokShalom> Its probably the most wide spread
23:57:42FromDiscord<ShalokShalom> Together with Mastodon
23:59:33FromDiscord<Elegantbeef> I more mean that matrix supports puppetting on many clients
23:59:37*ehmry quit (Ping timeout: 252 seconds)
23:59:41FromDiscord<Elegantbeef> Even discord though it's against TOS