01:09:18 | * | nanxiao joined #nim |
01:21:37 | * | noxp quit (Quit: Leaving) |
02:08:36 | * | nanxiao quit (Quit: Client closed) |
02:49:26 | * | nanxiao joined #nim |
02:55:28 | * | cm quit (Ping timeout: 248 seconds) |
02:59:54 | * | cm joined #nim |
03:14:01 | * | lucasta quit (Ping timeout: 240 seconds) |
03:33:10 | FromDiscord | <JeysonFlores> if there any idiomatic way to dynamically add parameters to a varargs function? something like the unpack() operator in Python. |
03:34:48 | FromDiscord | <JeysonFlores> sent a long message, see http://ix.io/4tGc |
03:35:00 | FromDiscord | <JeysonFlores> (edit) "http://ix.io/4tGc" => "http://ix.io/4tGd" |
03:35:37 | FromDiscord | <JeysonFlores> (edit) "http://ix.io/4tGd" => "http://ix.io/4tGe" |
03:36:14 | FromDiscord | <JeysonFlores> (edit) "http://ix.io/4tGe" => "http://ix.io/4tGf" |
03:44:48 | FromDiscord | <demotomohiro> In reply to @JeysonFlores "is there any idiomatic": https://nim-lang.org/docs/manual.html#types-varargs↵> A varargs parameter is an openarray parameter that additionally allows to pass a variable number of arguments to a procedure. The compiler converts the list of arguments to an array implicitly: |
03:50:25 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#ix=4tGi |
03:53:34 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4tGj |
03:54:10 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4tGk |
03:55:25 | FromDiscord | <demotomohiro> https://nim-lang.org/docs/manual.html#types-varargs↵> A varargs parameter is an openarray parameter |
03:56:19 | FromDiscord | <demotomohiro> That means you can pass array or seq to varargs. |
04:03:08 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#ix=4tGm |
04:11:17 | FromDiscord | <Elegantbeef> I will say using multiple varargs is a bit suspect |
04:11:39 | FromDiscord | <Elegantbeef> There are compiler bugs related there |
04:26:49 | * | nanxiao quit (Quit: Client closed) |
04:48:08 | FromDiscord | <user2m> havn't found a use case of it yet just learning |
05:12:55 | FromDiscord | <sOkam!> when doing interop with C, is it safe to map `uint32_t` as `uint32` instead of `cuint` or similar variations for other type sizes? |
05:13:04 | FromDiscord | <Elegantbeef> Yes |
05:13:45 | FromDiscord | <Elegantbeef> Fixed size types are fixed size which makes the interop so much more sane |
05:16:05 | FromDiscord | <sOkam!> so the ctypes should be used when the size is not fixed? |
05:16:11 | FromDiscord | <Elegantbeef> Yes |
05:16:16 | FromDiscord | <sOkam!> kk |
05:16:43 | * | nanxiao joined #nim |
05:40:19 | * | derpydoo joined #nim |
05:49:13 | * | rockcavera quit (Read error: Connection reset by peer) |
05:49:33 | * | rockcavera joined #nim |
05:49:33 | * | rockcavera quit (Changing host) |
05:49:33 | * | rockcavera joined #nim |
05:58:03 | * | tiorock joined #nim |
05:58:03 | * | tiorock quit (Changing host) |
05:58:03 | * | tiorock joined #nim |
05:58:03 | * | rockcavera quit (Killed (copper.libera.chat (Nickname regained by services))) |
05:58:03 | * | tiorock is now known as rockcavera |
06:10:46 | * | fredrikhr joined #nim |
06:12:45 | * | nanxiao quit (Quit: Client closed) |
06:29:41 | Amun-Ra | sOkam!: min. cuint size is 16-bit |
06:33:06 | * | kenran joined #nim |
06:34:20 | * | nanxiao joined #nim |
06:38:16 | * | PMunch joined #nim |
06:51:54 | * | advesperacit joined #nim |
07:03:38 | * | ltriant quit (Ping timeout: 265 seconds) |
07:04:35 | * | Batzy quit (Ping timeout: 260 seconds) |
07:08:31 | * | Batzy joined #nim |
07:17:09 | PMunch | Is this going to stay a thing in 2.0? Error: invalid order of case branches |
07:17:53 | FromDiscord | <Elegantbeef> That's a thing? |
07:17:59 | PMunch | Apparently |
07:18:12 | PMunch | I get this error when I try to compile a project which uses Protobuf |
07:18:25 | PMunch | Like this: /home/peter/.nimble/pkgs/protobuf-0.5.2/protobuf.nim(537, 7) Error: invalid order of case branches |
07:18:48 | FromDiscord | <Elegantbeef> Oh seems like it's for `of` before or after `elif`/`else` |
07:18:48 | PMunch | Basically it generated a case statement based on the stuff in the protobuf file |
07:19:15 | PMunch | Super annoying though, like why would that be disallowed? |
07:19:25 | FromDiscord | <Elegantbeef> Oh not |
07:19:29 | FromDiscord | <Elegantbeef> or not\ |
07:20:19 | * | cnx quit (Remote host closed the connection) |
07:21:06 | * | cnx joined #nim |
07:23:45 | FromDiscord | <Elegantbeef> It's likely for definitive analysis |
07:23:57 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4tGL |
07:25:16 | NimEventer | New thread by nimnam: Which might be the best way to store complex data in MySQL, see https://forum.nim-lang.org/t/10109 |
07:26:41 | FromDiscord | <ringabout> In reply to @PMunch "Super annoying though, like": It is a bug fixing => https://github.com/nim-lang/Nim/pull/20862 it is perhaps more consistent? |
07:27:15 | FromDiscord | <Elegantbeef> It can only be done through macros and it's not too hard to just delay the add until the end |
07:27:41 | FromDiscord | <Elegantbeef> The parser stops scanning for `of` after an `else` anyway so it's atleast more corrrect |
07:28:37 | PMunch | This code has worked for ages though |
07:28:51 | PMunch | So no idea why it stopped working now |
07:28:55 | FromDiscord | <Elegantbeef> Is this where i say 2.0 or something 😄 |
07:29:47 | FromDiscord | <Elegantbeef> It didnt evaluate properly with strings so the rule was enforced across types |
07:31:10 | FromDiscord | <Elegantbeef> I'd personally argue you were generating incorrect code and the compiler just happened to handle it correctly |
07:32:06 | FromDiscord | <Elegantbeef> Yes no one asked |
07:33:05 | * | rockcavera quit (Remote host closed the connection) |
07:53:21 | * | nanxiao quit (Quit: Client closed) |
08:02:41 | * | nanxiao joined #nim |
09:05:48 | * | nanxiao quit (Quit: Client closed) |
09:34:32 | * | Notxor joined #nim |
09:52:06 | FromDiscord | <Yardanico> Is it documented in the changelog? I think changes like those should be in it |
10:04:01 | * | jmdaemon quit (Ping timeout: 240 seconds) |
10:19:25 | * | derpydoo quit (Ping timeout: 260 seconds) |
10:23:16 | NimEventer | New thread by alexeypetrushin: How to inverse set?, see https://forum.nim-lang.org/t/10110 |
11:23:26 | FromDiscord | <Groot> i am trying to create a nim program with keepalive tcp server and client but keepalive is not working , how it can be fixed? |
12:00:42 | FromDiscord | <sOkam!> If you have a `let data: ptr UncheckedArray[uint8] = ...`, that you know is length N, how do you iterate through its values? |
12:08:46 | PMunch | `for i in 0..<N: echo data[i]` |
12:09:10 | PMunch | Or maybe it's `data[][i]` don't remember if they auto-dereference |
12:09:19 | PMunch | But I think they do |
12:14:27 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4tHr |
12:14:41 | FromDiscord | <sOkam!> its printing jibberish for some reason, which is why I wanted to confirm |
12:14:57 | FromDiscord | <sOkam!> If i do `data[][0]` it prints the exact same `16` value |
12:15:53 | FromDiscord | <sOkam!> (edit) "https://play.nim-lang.org/#ix=4tHr" => "https://play.nim-lang.org/#ix=4tHs" |
12:18:08 | PMunch | That is because you're not casting correctly |
12:18:15 | PMunch | Let me guess, you're casting a sequence? |
12:18:44 | PMunch | That 16 and "gibberish" is likely the length of the data along with a pointer |
12:18:55 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4tHt |
12:19:27 | FromDiscord | <sOkam!> and i send it to the gpu with `queue.writeBuffer(buffer1, 0, numbers.addr, 16)` |
12:19:31 | PMunch | Yeah, so casting a seq[uint8] to `ptr openarray[uint8]` isn't valid |
12:19:43 | PMunch | Well it's valid, but it's not correct |
12:19:57 | PMunch | Try `numbers[0].addr` |
12:20:26 | FromDiscord | <sOkam!> omg if thats what it is.... ive done that like 10000million times before |
12:20:35 | PMunch | But keep in mind that you're now creating a pointer to memory which is garbage collected by Nim, so if that data goes out of scope the memory will be freed even if you have a pointer to it |
12:20:38 | FromDiscord | <sOkam!> let me confirm |
12:20:52 | FromDiscord | <sOkam!> In reply to @PMunch "But keep in mind": true that |
12:21:13 | PMunch | numbers.addr will be a pointer to the sequence itself, not the data within it |
12:21:48 | FromDiscord | <sOkam!> sent a code paste, see https://play.nim-lang.org/#ix=4tHv |
12:22:00 | FromDiscord | <sOkam!> ty so fucking much, pmuch 🙏 |
12:22:11 | FromDiscord | <sOkam!> (edit) "pmuch" => "pmunch" |
12:24:33 | FromDiscord | <cmc> Don't worry, you brain will be very motivated to process more data faster because of this. It will save you a lot of time in the long run, even if you can't directly trace it to this experience.↵(@sOkam!) |
12:24:49 | FromDiscord | <sOkam!> 😄 |
12:25:35 | FromDiscord | <sOkam!> how can I find the underlying structure that holds a sequence? meaning the underlying type. i was never able to find it on the system module, but maybe i was searching wrong |
12:31:07 | * | ltriant joined #nim |
12:33:34 | FromDiscord | <Rika> You won’t because it’s embedded in the compiler |
12:34:39 | PMunch | Isn't it found in nimbase.h? |
12:35:05 | PMunch | But yeah, it's not found anywhere within Nim itself |
12:47:33 | FromDiscord | <amadan> In reply to @sOkam! "how can I find": The one used by orc/arc is defined here https://github.com/nim-lang/Nim/blob/devel/lib/system/seqs_v2.nim#L25↵Zero clue where the old version is defined |
12:54:03 | FromDiscord | <sOkam!> sent a code paste, see https://paste.rs/rja |
12:55:22 | FromDiscord | <sOkam!> `let buf = cast[ptr Buffer](userdata)[]` doesn't seem to be working. is the syntax incorrect, or something? |
12:58:05 | FromDiscord | <sOkam!> oh nvm, it worked. i changed some things somewhere else and the issue is gone |
13:24:39 | FromDiscord | <New> Hiho. Does anyone know a way to send an SMPP packet? :hmm: |
13:24:44 | FromDiscord | <New> (edit) removed "an" |
13:34:13 | NimEventer | New Nimble package! nimAesCrypt - Nim file-encryption module that uses AES256-CBC to encrypt/decrypt files., see https://github.com/maxDcb/nimAesCrypt |
13:59:53 | * | progranner joined #nim |
14:04:35 | * | PMunch quit (Quit: Leaving) |
14:11:37 | * | progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
14:13:59 | * | progranner joined #nim |
14:37:42 | * | kenran quit (Remote host closed the connection) |
14:38:06 | FromDiscord | <auxym> In reply to @New "Hiho. Does anyone know": Could write bindings for https://github.com/osmocom/libsmpp34. pmunch just wrote a blog post / tutorial on binding with his futhark library, which takes care of the hard work for you. |
14:43:09 | * | fredrikhr quit (Quit: Disconnecting...) |
14:45:11 | * | lucasta joined #nim |
14:58:36 | FromDiscord | <ringabout> In reply to @Yardanico "Is it documented in": I agree => https://github.com/nim-lang/Nim/pull/21686 |
14:58:48 | FromDiscord | <Yardanico> thanks :) |
15:00:51 | FromDiscord | <ringabout> no problem |
15:19:28 | FromDiscord | <Ayy Lmao> Is it possible to use `--threads:on` in a dll hosted in another program? This dll has functions in it that are called on multiple host threads, and when I turn threads on it immediately segfaults on the first function call and runs fine without them on. |
15:22:42 | FromDiscord | <sOkam!> is it safe to map `size_t` aka `csize_t` to `uint64`? |
15:25:24 | FromDiscord | <Graveflo> I think since it's platform dependent that would limit the platforms that the code will compile nicely on. Might want to add a hard check if you are okay with only targeting platforms where size_t is the same size as uint64 |
15:49:37 | * | progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
16:27:50 | * | arkurious joined #nim |
16:28:03 | FromDiscord | <gogolxdong> How to map int24, int160,etc. to nim-web3 implement? |
16:28:17 | FromDiscord | <gogolxdong> (edit) "int160,etc." => "int160, uint160 etc." |
16:40:47 | NimEventer | New post on r/nim by qtless: Happyx, web-framework written in Nim, see https://reddit.com/r/nim/comments/12qvchy/happyx_webframework_written_in_nim/ |
16:51:57 | * | progranner joined #nim |
17:03:47 | * | rockcavera joined #nim |
17:11:35 | * | jmdaemon joined #nim |
17:14:16 | FromDiscord | <firasuke> so I am trying to prepend my output with the elapsed time of running of a certain function. I have a getMonoTime() before and after, and I am subtracting and getting the result which is of type Duration but I want to format it to be in form of (HH:MM:SS) elapsed time. using .format() on Duration does not work, any ideas? |
17:21:54 | * | progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
17:22:32 | * | progranner joined #nim |
17:23:30 | * | lucasta quit (Remote host closed the connection) |
17:23:45 | * | lucasta joined #nim |
17:25:58 | FromDiscord | <Arathanis> sent a code paste, see https://play.nim-lang.org/#ix=4tJn |
17:26:17 | FromDiscord | <Arathanis> (edit) "https://play.nim-lang.org/#ix=4tJn" => "https://play.nim-lang.org/#ix=4tJo" |
17:26:45 | FromDiscord | <firasuke> sent a code paste, see https://play.nim-lang.org/#ix=4tJp |
17:26:54 | FromDiscord | <Arathanis> i thought you said you had a Duration |
17:27:08 | FromDiscord | <Arathanis> or is it a same-named type in monotimes? |
17:27:33 | FromDiscord | <Arathanis> looked it up, it is. |
17:28:39 | FromDiscord | <firasuke> yes, subtracting two getMonoTime() yields a duration |
17:28:45 | FromDiscord | <firasuke> (edit) "duration" => "`Duration`" |
17:30:19 | FromDiscord | <Arathanis> then good news! the Duration used in `monotimes` is a `std/times` `Duration` so you can do what i suggestd above. |
17:30:28 | FromDiscord | <Arathanis> (edit) "Duration" => "`Duration`" |
17:33:30 | FromDiscord | <Arathanis> sent a code paste, see https://play.nim-lang.org/#ix=4tJr |
17:33:51 | FromDiscord | <Arathanis> (edit) "https://play.nim-lang.org/#ix=4tJr" => "https://play.nim-lang.org/#ix=4tJs" |
17:34:02 | FromDiscord | <Arathanis> @firasuke ^ |
17:35:05 | FromDiscord | <firasuke> sent a code paste, see https://play.nim-lang.org/#ix=4tJu |
17:35:26 | FromDiscord | <Arathanis> In reply to @firasuke "thanks a lot, how": should be the same, you can use that instead. |
17:35:35 | FromDiscord | <firasuke> oh ok thanks |
17:36:36 | FromDiscord | <Arathanis> you can omit the parens too 😉 |
17:38:54 | * | progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
17:39:21 | * | progranner joined #nim |
17:42:06 | * | progranner quit (Client Quit) |
17:46:24 | * | progranner joined #nim |
17:47:43 | FromDiscord | <firasuke> yup |
17:49:57 | FromDiscord | <Ayy Lmao> If I want to render on a different thread, do I need to create the window and all of the associated data on that thread or is there some way to accomplish it without doing that? |
17:50:51 | FromDiscord | <Arathanis> In reply to @Ayy Lmao "If I want to": im probably going to put my foot in my mouth but... since Nim doesn't share memory between threads for memory safety the render thread is going to need to own the GUI elements I think |
17:51:02 | FromDiscord | <Arathanis> someone more knowledgeable will probably come say I am wrong. |
17:52:36 | FromDiscord | <Ayy Lmao> In reply to @Arathanis "im probably going to": It is seeming like that might be the case because the compiler keeps telling me it isn't gcsafe no matter what I try. |
17:52:45 | FromDiscord | <Ayy Lmao> I am not sure how to go about having the thread own the data though. |
17:53:30 | FromDiscord | <Arathanis> In reply to @Ayy Lmao "It is seeming like": The way I would approach this is the render thread owns all the GUI elements and use channels to pass GUI update events in a pub/sub style kind of setup |
17:53:57 | FromDiscord | <Ayy Lmao> Basically I am doing a plugin, and the host can request for you to create, destroy, resize etc the GUI. |
17:54:22 | FromDiscord | <Ayy Lmao> I was thinking about going with the channel approach but I am not sure how to pipe all of the host requests to the thread in a sane way |
17:55:21 | FromDiscord | <Ayy Lmao> The GUI also needs to control parameters which need to stay in sync with another thread. |
17:57:49 | FromDiscord | <Ayy Lmao> And to top it off the window needs to be embedded inside another window, which would be on a different thread if the render thread owns the child window. |
18:23:45 | * | lucasta quit (Read error: Connection reset by peer) |
18:24:02 | * | lucasta joined #nim |
18:24:25 | * | lucasta quit (Client Quit) |
18:41:41 | * | hochata joined #nim |
18:54:11 | FromDiscord | <Ayy Lmao> Looks like I might not need to deal with this anyway because for some reason when I compile with `threads:on` I get segfaults just from interacting with pointers given by the host. |
18:56:59 | * | rockcavera quit (Remote host closed the connection) |
18:58:57 | * | rockcavera joined #nim |
19:01:32 | FromDiscord | <Dre4mer> sent a long message, see http://ix.io/4tJN |
19:08:48 | * | progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
19:09:32 | FromDiscord | <Nerve> Are there existing references to the old elements? |
19:11:45 | FromDiscord | <Nerve> Try `jsonArray = %[]` |
19:11:56 | FromDiscord | <Nerve> I don't know if that's quite the same effect but I'm curious |
19:12:20 | FromDiscord | <Yardanico> In reply to @Dre4mer "I am using std/json,": you can try doing `myjsonarray.elems.setLen(0)` |
19:12:34 | FromDiscord | <Yardanico> it will not deallocate the old memory to reuse memory, but it shouldn't lead to a memory leak |
19:28:30 | * | progranner joined #nim |
19:28:42 | * | progranner quit (Client Quit) |
19:38:27 | FromDiscord | <Ducko> is there any way to "simply" do a c-style `#include` of native libs? tried using `c2nim` and it just discarded |
19:38:41 | FromDiscord | <Yardanico> In reply to @Ducko "is there any way": not sure what you mean? |
19:38:56 | FromDiscord | <Yardanico> if you want automatic generation of Nim bindings to C headers/libraries, futhark is your best bet I guess |
19:39:41 | FromDiscord | <Ducko> I mean I have a c (header) file using native libs like `windows.h` and `elf.h` |
19:40:01 | FromDiscord | <Ducko> wanting to do the equivalent in nim but no clue how |
19:40:22 | FromDiscord | <Ducko> some things included don't have bindings (afaik) so |
19:50:53 | FromDiscord | <Elegantbeef> Look at winim |
19:54:51 | FromDiscord | <Dre4mer> In reply to @Nerve "Are there existing references": No, basically the same variable of type jsonNode gets new values and it gets added to the above array |
19:58:27 | FromDiscord | <Dre4mer> In reply to @Nerve "Try `jsonArray = %*[]`": Thanks, this works. And now I am able to see it in the docs page!! Not as an empty array, but should be enough to give that idea. I feel so silly now 🤐 |
19:59:18 | FromDiscord | <Dre4mer> In reply to @Nerve "I don't know if": Yeah, looks like the same, creating a new object and assigning it back. I'll try w/ it though. |
20:00:00 | FromDiscord | <Dre4mer> In reply to @Yardanico "it will not deallocate": I see, let me try your suggestion. |
20:08:39 | FromDiscord | <Dre4mer> @Yardanico @Nerve Trying out your suggestions, will take a few hours to monitor |
20:08:48 | FromDiscord | <Yardanico> are you using orc? |
20:08:57 | FromDiscord | <Yardanico> i mean, what Nim version and are you using aspecific gc |
20:09:27 | FromDiscord | <Dre4mer> (edit) "monitor" => "monitor. Thank you both for the help 🙂" |
20:11:42 | FromDiscord | <Dre4mer> sent a long message, see http://ix.io/4tK6 |
20:12:03 | FromDiscord | <Yardanico> In reply to @Dre4mer "Nim Compiler Version 1.7.3": you seem to be using a very weird version |
20:12:12 | FromDiscord | <Yardanico> it's a devel version that's newer than 1.6.12 but still much older than current devel |
20:12:19 | FromDiscord | <Yardanico> update to current devel |
20:13:55 | FromDiscord | <Dre4mer> In reply to @Yardanico "it's a devel version": Interesting, haven't been looking at the versions, I have been more focused on learning. I will update it and use after the current runs and monitoring is over. Basically this is arm64 (on AWS graviton ec2) |
20:15:16 | FromDiscord | <Yardanico> Current nim devel will use orc by default |
20:15:19 | FromDiscord | <Yardanico> (edit) "will use" => "uses" |
20:15:48 | FromDiscord | <Dre4mer> And which one is used by my version? Just curious to understand |
20:16:19 | FromDiscord | <Elegantbeef> will note\ |
20:16:19 | FromDiscord | <Elegantbeef> @sOkam! will not you can do `for x in myPtr.toOpenArray(0, len - 1): ...` |
20:31:13 | * | progranner joined #nim |
20:37:36 | * | progranner quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
20:49:04 | * | hochata quit (Ping timeout: 248 seconds) |
21:50:10 | FromDiscord | <Arathanis> are there docs for all the GC options and their implications? |
21:51:26 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/mm.html |
21:53:31 | FromDiscord | <Arathanis> Is orc, the recommended, also the default? |
21:53:52 | FromDiscord | <Elegantbeef> In devel it is the default |
21:53:59 | FromDiscord | <Elegantbeef> Prior to that it was refc |
21:54:12 | FromDiscord | <Arathanis> so im guessing its still refc in 1.6.12? |
21:54:19 | FromDiscord | <Elegantbeef> Yes |
21:54:23 | FromDiscord | <Arathanis> kk thn |
21:54:25 | FromDiscord | <Arathanis> (edit) "thn" => "thnx" |
22:00:53 | * | advesperacit quit () |
22:07:11 | * | pharonix71 quit (Remote host closed the connection) |
22:08:05 | FromDiscord | <Ayy Lmao> What are the implications of using `threads:on` in a dll? Simply turning it on seems to cause segfaults in weird places in my case. |
22:08:50 | FromDiscord | <Elegantbeef> Did you call `NimMain` and are you actually using threads? |
22:09:47 | * | jmdaemon quit (Ping timeout: 246 seconds) |
22:10:21 | FromDiscord | <Ayy Lmao> In reply to @Elegantbeef "Did you call `NimMain`": I'm pretty sure I called NimMain but the entry point is weird so I'm not certain. The code runs fine without `threads:on` and with it on I'm getting a segfault for interacting with a simple pointer given to me by the host. |
22:10:27 | * | Notxor quit (Remote host closed the connection) |
22:10:30 | FromDiscord | <Ayy Lmao> I want to use threads but I am not actually using them yet. |
22:12:15 | FromDiscord | <Elegantbeef> Well if you are not using threads presently sounds like a logic bug |
22:13:54 | FromDiscord | <Ayy Lmao> Is there any reason why simply turning threads on would cause segfaults when the code runs fine without it? Like what exactly does turning threads on do if you don't actually use any threads? |
22:14:16 | FromDiscord | <Elegantbeef> Uses a threadsafe allocator and that's pretty much it |
22:15:12 | FromDiscord | <Ayy Lmao> Well I am interacting with two different host threads, maybe that has something to do with it? |
22:15:33 | FromDiscord | <Elegantbeef> Hard to really say, if you can use valgrind that'd be the best |
22:17:05 | NimEventer | New thread by FluxCapacitor: Type mismatch with echo and trouble accessing Type fields, see https://forum.nim-lang.org/t/10111 |
22:20:41 | FromDiscord | <Ayy Lmao> I'll have to look into it, I've never used it before. I'm using lldb but it just tells me there's an access violation. |