<< 23-10-2021 >>

00:40:29*Gustavo6046 quit (Quit: what if I am turning narcissist? pretentious, asocial, inpromptu squabbles, easily become childishness from the slightest emotional distress.. i feel like I've only truly grown up on the outside, and it's painful to remain this way, but it's far from the)
00:47:49*elph quit (Quit: Connection closed for inactivity)
00:51:43*pch quit (Remote host closed the connection)
00:52:30*pch joined #nim
01:18:38*neurocyte0132889 quit (Ping timeout: 260 seconds)
01:48:30*Gustavo6046 joined #nim
03:01:36*arkurious quit (Quit: Leaving)
04:06:02*supakeen quit (Quit: WeeChat 3.3)
04:06:31*supakeen joined #nim
04:53:04FromDiscord<Rika> can i emit a warning when a generic param has a certain value?
04:53:20NimEventerNew Nimble package! uncomment - uncomment the codes at the compile time, see https://github.com/hamidb80/uncomment
04:53:26FromDiscord<Rika> i dont want to disallow it, but i want to inform that it may be an issue
04:53:51FromDiscord<Rika> the generic param is of `static T` form
04:56:34FromDiscord<Elegantbeef> https://play.nim-lang.org/#ix=3CyM ?
05:02:15FromDiscord<Rika> i want to warn on type creation
05:02:59FromDiscord<Rika> sorry i didnt speciry
05:03:01FromDiscord<Rika> (edit) "speciry" => "specify"
05:03:08FromDiscord<Rika> this is for types, not a proc
05:05:02FromDiscord<Elegantbeef> Dont think the type system allows that but i do have an idea
05:13:01FromDiscord<Rika> its fine if its not doable w/o a macro because im betting you're doing a macro right now
05:13:16FromDiscord<Elegantbeef> Indeed
05:13:26FromDiscord<Elegantbeef> It's almost certainly doable with a term rewriting macro
05:13:33FromDiscord<Rika> oh lord no
05:13:39FromDiscord<Elegantbeef> They're just fun macros to fight with
05:30:02FromDiscord<Illusive> In reply to @Yardanico "Because otherwise you'll be": thanks changed
06:05:36FromDiscord<Illusive> Is there any code formatter for Nim? Like rustfmt in case of Rust
06:07:41*rockcavera quit (Remote host closed the connection)
06:11:37FromDiscord<Elegantbeef> nimpretty is the official one then there are others like morepretty by treeform
06:12:42FromDiscord<Rika> Neither are flexible if you’re looking for a configurable formatter
06:32:48Mister_Magisterguys i'm using simple asynchttpserver that just responds to requests with text nothing fancy but randomly i'm getting Error: unhandled exception: No route to host [OSError]. i tried putting try except on function that handles the request but that did not help :<
06:34:00NimEventerNew thread by Krakengore: Enforced sink argument, see https://forum.nim-lang.org/t/8531
09:36:16FromDiscord<Hamid Bluri> sent a code paste, see https://play.nim-lang.org/#ix=3Czz
09:37:10FromDiscord<Hamid Bluri> (edit) "https://play.nim-lang.org/#ix=3Czz" => "https://play.nim-lang.org/#ix=3CzA"
09:40:08FromDiscord<Hamid Bluri> In reply to @Mister_Magister "guys i'm using simple": share your code
09:40:19FromDiscord<Hamid Bluri> (edit) "share" => "share/send"
09:45:38FromDiscord<Hamid Bluri> In reply to @hamidb80 "hey, i dont remember": it works in a `macro` but not a `template` : -\
09:56:51FromDiscord<Rika> templates are copy-paste
09:58:10FromDiscord<Rika> sent a code paste, see https://play.nim-lang.org/#ix=3CzD
10:15:06*[R] quit (Ping timeout: 245 seconds)
10:15:14*[R] joined #nim
11:02:17*Vladar joined #nim
11:09:42FromDiscord<tandy> is there any way to parseInt in js backend?
11:09:54FromDiscord<tandy> strutils is complaining cos the string is a cstring
11:11:44FromDiscord<haxscramper> `$<yourCstringg>`
11:11:52FromDiscord<tandy> oh epic
11:20:42FromDiscord<tandy> tables work in js right?
11:21:04FromDiscord<tandy> sent a code paste, see https://play.nim-lang.org/#ix=3CzL
11:21:34FromDiscord<tandy> im getin some weird erors when trying to convert a `seq[tuple[key, value: cstring]]` to a `TableRef[string, seq[string]]`
11:21:38FromDiscord<zetashift> should a formatter really be flexible though \:P, I like opinionated formatters more so I can think less haha↵(@Rika)
11:21:46FromDiscord<Rika> It depends on the person
11:21:54FromDiscord<Rika> I personally want a flexible formatter
11:47:49FromDiscord<haxscramper> what errors
11:47:58FromDiscord<tandy> ^
11:48:03FromDiscord<haxscramper> Also `cstring` is not a `string`
11:48:20FromDiscord<haxscramper> there is no errors her
11:48:33FromDiscord<tandy> sent a code paste, see https://paste.rs/Lqh
11:48:47FromDiscord<tandy> i cast the cstring to string
11:48:47FromDiscord<haxscramper> well, it says that it got seq and expected table
11:48:57FromDiscord<tandy> `var h = cast[seq[(string, string)]](response.headers.entries)`
11:48:58FromDiscord<tandy> `h.toTable().pairs.toSeq)`
11:49:01FromDiscord<haxscramper> no
11:49:03FromDiscord<haxscramper> that's wrong
11:49:06FromDiscord<tandy> oh
11:49:12FromDiscord<haxscramper> `cast` is an unsafe low-level C-specific operation
11:49:20FromDiscord<tandy> ohhh im so silly
11:49:36FromDiscord<haxscramper> you need to convert cstring to string or something along those lines using `$`
11:50:51FromDiscord<haxscramper> Something like `<seq[tuple[key, value: cstring]]>.mapIt(($it.key, @[$it.value]).newTableRef()`
11:51:06FromDiscord<haxscramper> Or if there is no `newTableRef` constructor that takes sequence you can construct it in a loop
11:52:58FromDiscord<tandy> '`it` is an undeclared identifier'
11:56:27FromDiscord<haxscramper> mapIt injects it
11:57:10FromDiscord<tandy> sent a code paste, see https://play.nim-lang.org/#ix=3CzQ
11:57:52FromDiscord<haxscramper> can you show the code?
11:58:09FromDiscord<tandy> `response.headers.entries.mapIt($it.key, @[$it.value]).toTable()`
11:58:16FromDiscord<tandy> il try using sugar.collect
11:58:21FromDiscord<haxscramper> omg
11:58:32FromDiscord<haxscramper> `mapIt(($it.key, @[$it.value]))`
11:58:39FromDiscord<haxscramper> not `mapIt($it.key...`
11:58:45FromDiscord<haxscramper> You map to tuples
11:58:47FromDiscord<tandy> \:x
11:58:53FromDiscord<haxscramper> `mapIt` takes two arguments, no three
11:59:07FromDiscord<haxscramper> first is a `response.header.entries`, second one is a untyped expression that will be executed
11:59:16FromDiscord<haxscramper> in that case it is a `($it.key, @[$it.value])`
12:03:46FromDiscord<evoalg> noob question: if I declare with "let" instead of "var", I know it's immutable, but is using "let" faster (more efficient) or is it more a case of good practice to make sure nothing changes that shouldn't?
12:05:06FromDiscord<haxscramper> it has no performance implications, but it is a good practice to use `let`
12:05:25FromDiscord<haxscramper> Because it makes it easier to read the code since you know there are no after-edits
12:05:43FromDiscord<evoalg> gotcha thank you ... makes sense
12:06:02*supakeen quit (Quit: WeeChat 3.3)
12:06:33*supakeen joined #nim
12:53:14*pyrotao joined #nim
12:59:21*pyrotao quit (Remote host closed the connection)
13:00:29*pyrotao joined #nim
13:01:30Amun-Rais there a way of checking if a value is in enum?
13:04:10Amun-Raother than https://play.nim-lang.org/#ix=3CAc
13:15:29FromDiscord<exelotl> if it's a non-holey enum, you can do `x in ord(Flag.low)..ord(Flag.high)`
13:17:47*pyrotao quit (Remote host closed the connection)
13:17:58Amun-Raunfortunately it is, I ended up with something like this: https://play.nim-lang.org/#ix=3CAh
13:18:14*pyrotao joined #nim
13:18:47*pyrotao quit (Remote host closed the connection)
13:19:53FromDiscord<haxscramper> https://nim-lang.github.io/Nim/enumutils.html#items.i%2Ctypedesc%5BT%5D
13:20:40FromDiscord<haxscramper> I don't know what it the use case of `B[T] = enum`
13:20:47FromDiscord<haxscramper> TIL you can even do this
13:21:14FromDiscord<Rika> Attaching compile time info to a type
13:21:35FromDiscord<Rika> At least that’s what I use it for
13:22:00FromDiscord<haxscramper> You use it with enums?
13:22:15FromDiscord<haxscramper> Do you have an example
13:24:16FromDiscord<Rika> Not enums yeah was just stating a general example
13:24:29FromDiscord<Rika> For putting a generic type on something without using it on a field
13:25:21FromDiscord<haxscramper> this compiles and runs
13:25:24FromDiscord<haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3CAk
13:25:39FromDiscord<haxscramper> in general yes, it makes sense
13:25:46FromDiscord<haxscramper> `A[T] = distinct B` etc.
13:26:04FromDiscord<haxscramper> pmunch's talk on microcontrollers with `w, h: static[int]`
13:26:27FromDiscord<haxscramper> Seems like this feature is kind of buggy
13:26:38FromDiscord<haxscramper> because those are two distinct enum values IMO
13:26:45FromDiscord<Rika> I guess it doesn’t make sense on enums but I assume this is only because they are not special cased to disallow generics
13:26:49FromDiscord<haxscramper> `b0` of `B[int]` and `b1` of `B[float]`
13:27:55FromDiscord<haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=3CAl
13:29:32NimEventerNew post on r/nim by owl_000: One important thing I want to say!, see https://reddit.com/r/nim/comments/qe4ybb/one_important_thing_i_want_to_say/
13:33:32*arkurious joined #nim
13:37:24*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
13:37:28*emery joined #nim
13:44:38*ozzz joined #nim
14:05:46*Gustavo6046 quit (Read error: Connection reset by peer)
14:30:14*rockcavera joined #nim
14:30:14*rockcavera quit (Changing host)
14:30:14*rockcavera joined #nim
15:00:10FromDiscord<Illusive> so on windows
15:00:17FromDiscord<Illusive> i am trying to build my program
15:00:30FromDiscord<Illusive> it says error cannot importc
15:00:37FromDiscord<Illusive> at compile time
15:01:12FromDiscord<Rika> can you show the whole error
15:01:27FromDiscord<enthus1ast> guess you assign something to a const?
15:01:28FromDiscord<Illusive> https://media.discordapp.net/attachments/371759389889003532/901485480355442688/unknown.png
15:01:52FromDiscord<enthus1ast> how do you compile?
15:03:18FromDiscord<Illusive> ?
15:03:49FromDiscord<enthus1ast> can you show the cmdline you use for compiling?
15:05:00FromDiscord<Illusive> nvm
15:05:04FromDiscord<Illusive> i got it working
15:05:07FromDiscord<Illusive> i think
15:43:20FromDiscord<Goel> `assert urandom(1234) != urandom(1234) # unlikely to fail in practice`↵Such confidence 😆
15:43:59FromDiscord<Goel> (edit) "`assert urandom(1234) != urandom(1234) # unlikely to fail in practice`↵Such confidence 😆" => "sent a code paste, see https://play.nim-lang.org/#ix=3CAX"
15:47:07FromDiscord<Illusive> Is there a Reddit API implementation for Nim?
16:09:32FromDiscord<Yardanico> no, but it should be pretty easy to do as it's just JSON
16:34:09FromDiscord<retkid> If I close a socket then reconnect I get a "bad file error"
16:34:13FromDiscord<retkid> and nothing is sent
16:45:07*rockcavera quit (Remote host closed the connection)
16:49:23FromDiscord<enthus1ast> never have tried to reuse a socket, idk if this is supported
16:49:33FromDiscord<enthus1ast> why not just create a new one?
16:50:28Amun-Raenthus1ast: it doesn't work like that
16:50:57FromDiscord<enthus1ast> what do you mean?
16:52:13FromDiscord<demotomohiro> `setSockOpt(OptReuseAddr, true)` might help
16:53:19FromDiscord<Illusive> so
16:53:56FromDiscord<Illusive> i wanna implement if specific .env file doesn't exist, then write a messege to create a one, if it is available then load the .env file
16:54:18FromDiscord<retkid> In reply to @enthus1ast "why not just create": its ugly
16:54:18FromDiscord<Illusive> (edit) "i" => "I" | "if" => "and then exit. If"
16:55:50*Gustavo6046 joined #nim
16:56:23FromDiscord<Yardanico> In reply to @Illusive "I wanna implement if": and what is the issue?
16:57:03FromDiscord<Yardanico> all procs that you want are in `std/os` and in system (which is imported by default)
16:57:06FromDiscord<retkid> In reply to @demotomohiro "`setSockOpt(OptReuseAddr, true)` might help": nothing really
16:57:25FromDiscord<Illusive> sent a code paste, see https://play.nim-lang.org/#ix=3CBl
16:57:34FromDiscord<Yardanico> yes, I understand, so what is the issue?
16:57:59FromDiscord<Yardanico> fileExists from os, `quit` from os, https://github.com/euantorano/dotenv.nim for reading .env files if you don't want to implement that yourself
17:00:31*Gustavo6046 quit (Ping timeout: 245 seconds)
17:00:50*Gustavo6046 joined #nim
17:02:46FromDiscord<Illusive> thanks
17:02:47FromDiscord<Illusive> works
17:11:18FromDiscord<Hamid Bluri> In reply to @Rika "templates are copy-paste": i guess sometimes i have to relearn what i've already know 😕
17:16:30Mister_Magister@Hamid Bluri https://paste.opensuse.org/ec036dcf
17:16:53Mister_Magisterits running fine for like 20 minutes then starts spewing : No route to host [OSError] and doesn't recover
17:21:35FromDiscord<Illusive> tbh nim docs are bit of confusing for me?
17:21:48FromDiscord<Illusive> maybe that's just because i am coming from rust with it's docs.rs
17:30:18FromDiscord<enthus1ast> i see no obvious mistakes in your code↵(<@709044657232936960_=4dister_=4dagister=5b=49=52=43=5d>)
17:30:57FromDiscord<enthus1ast> do you have a stacktrace?
17:42:28FromDiscord<Illusive> Does `Dimscord` support slash commands?
17:42:53FromDiscord<Rika> Yes
17:43:07FromDiscord<Rika> In reply to @Illusive "tbh nim docs are": What’s confusing
17:43:34FromDiscord<Illusive> Good, can you link to the slash commands documentation then please?
17:50:58FromDiscord<rainbowasteroids> nim strings are stored as UTF8 strings, right?
17:54:25FromDiscord<haxscramper> no, nim strings are byte sequences
18:08:56FromDiscord<rainbowasteroids> what makes nim strings different from seq[char]?
18:10:11FromDiscord<haxscramper> as of right now - nothing
18:10:34FromDiscord<haxscramper> but this is considered an implementation detail and should not be exploited
18:11:09FromDiscord<haxscramper> For working with Unicode in nim strings, look in the `std/unicode` module
18:12:34FromDiscord<rainbowasteroids> > ↵> as of right now↵> does that mean there's plans to make strings more than just `distict seq[char]`?↵>
18:12:50FromDiscord<haxscramper> string is not a `distinct seq[char]`
18:13:05FromDiscord<rainbowasteroids> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/901533573008486540): > as of right now↵does that mean there's plans to make strings more than just `distict seq[char]`?
18:13:11FromDiscord<haxscramper> they are implemented identically, I haven't said they are the same type + `distinct`
18:13:51FromDiscord<Illusive> In reply to @Illusive "Good, can you link": https://github.com/ire4ever1190/dimscmd
18:13:52FromDiscord<haxscramper> But string and `seq[char]` have the same memory layout and management behavior
18:13:54FromDiscord<Illusive> answer for myself
18:14:39FromDiscord<haxscramper> for example you are allowed but advised not to `cast[seq[char]](<some string>)`
18:15:22FromDiscord<rainbowasteroids> So is there any plans to change nim strings in the future?
18:15:31FromDiscord<haxscramper> none that I'm aware of
18:24:36Mister_Magister@illusive they are confusing as heck
18:31:16FromDiscord<Illusive> In reply to @Mister_Magister "<@790153860130799616> they are confusing": the nim docs in general are pretty confusing for me
18:31:19FromDiscord<Illusive> lol
18:31:44FromDiscord<enthus1ast> what do you find confusing?
18:32:11FromDiscord<Illusive> In reply to @enthus1ast "what do you find": so let me explain in terms of rust
18:32:18FromDiscord<Illusive> so rust has crates.io and docs.rs
18:32:26FromDiscord<Illusive> first one is kind of repo for all rust programs
18:32:40FromDiscord<Illusive> and docs.rs is one repo for crates docs
18:33:06Mister_Magisterme coming from php, they are confusing as heck
18:33:09Mister_Magisterhard to find any info
18:33:12FromDiscord<Illusive> in nim there's isn't i think the central place where to get documentation
18:33:32Mister_Magistermost of time i come ask here because finding it in docs will take me literal hours
18:33:55FromDiscord<enthus1ast> well there is nimble.directory but i must admit i like to just read the nim docs or the project docs
18:34:07Mister_Magisterfor example in response to my issue
18:34:09Mister_Magisterhttps://nim-lang.org/docs/asynchttpserver.html#serve%2CAsyncHttpServer%2CPort%2Cproc%28Request%29%2Cstring%2Cint
18:34:14Mister_Magisternowhere it mentions it can throw exception
18:34:43FromDiscord<Elegantbeef> image.png https://media.discordapp.net/attachments/371759389889003532/901539145061658714/image.png
18:34:47FromDiscord<Elegantbeef> Click the three dots at the end
18:35:00Mister_Magistersee
18:35:03FromDiscord<Elegantbeef> Hit's hidden for sadly but it's there
18:35:04Mister_Magisterhere you get the confusing part
18:35:12FromDiscord<enthus1ast> this was hidden because some new user find it confusing \:)
18:35:40Mister_Magisterxd
18:35:48Mister_Magisteranyway can someone help me please
18:36:02Mister_Magisterworst part is that it doesn't recover
18:36:22FromDiscord<enthus1ast> i think its not in your code
18:36:32FromDiscord<enthus1ast> your code looks ok i guess
18:36:49FromDiscord<enthus1ast> can you provide a stacktrace?
18:36:52Mister_Magisterwell i know that much :P
18:36:56Mister_Magistersure
18:36:58FromDiscord<Hamid Bluri> let me see
18:37:57Mister_Magisterhttps://paste.opensuse.org/081b898c heres stack trace
18:38:12FromDiscord<Hamid Bluri> i didn't that i can define tuples that way : /
18:38:19FromDiscord<Hamid Bluri> i didmt know
18:38:25FromDiscord<Hamid Bluri> damn
18:38:43Mister_Magisteryou live you learn
18:39:09FromDiscord<Illusive> bruh moment https://media.discordapp.net/attachments/371759389889003532/901540261849624606/unknown.png
18:39:12FromDiscord<enthus1ast> 1.2 is ancient
18:39:18Mister_Magister1.4 does same thing
18:40:39Mister_Magisternow i did choosenim devel, cleared cache and recompiled
18:40:46Mister_Magisterwill test if it still happens
18:42:42FromDiscord<enthus1ast> the message is strange never encountered "No route to host" while reading from a socket
18:43:39FromDiscord<Hamid Bluri> i have nim devel 1.7.1
18:44:12FromDiscord<Hamid Bluri> is running it for 20 mins enoght to produce the error?
18:44:16FromDiscord<Illusive> in nim
18:44:28FromDiscord<Illusive> is there a some kind of requirements.txt file? like in python?
18:44:43FromDiscord<Hamid Bluri> In reply to @Illusive "is there a some": we put that in package.nimble
18:44:56FromDiscord<Hamid Bluri> well `package` is your package name
18:45:01FromDiscord<Illusive> yeah
18:45:05FromDiscord<Illusive> it is obvious
18:45:11FromDiscord<Hamid Bluri> you can init a package by `nimble init`
18:46:05Mister_Magister@Hamid its really hard to tell what causes the error, but it needs requests i think
18:46:52FromDiscord<Hamid Bluri> can you make a postman file for to make request to those routes?
18:47:00FromDiscord<Hamid Bluri> for me
18:48:00Mister_Magisterhttp://localhost:9100/addMetrics?name=x&value=x&metricType=x&client=x and http://localhost:9100/metrics
18:48:05FromDiscord<enthus1ast> maybe you can use "ab"
18:48:11Mister_Magisterwhats ab
18:48:27FromDiscord<enthus1ast> "ab - Apache HTTP server benchmarking tool"
18:48:40FromDiscord<Hamid Bluri> آب means water in my lang
18:50:15Mister_Magisteri think it could be due to how im making requests. i'm doing requests to it from esp that just requests said url and then turns off wifi so that could cause no route to host if it tries to read
18:50:22Mister_Magisterbut i don't like that it doesn't recover
18:53:03FromDiscord<Hamid Bluri> send the stack trace if you could produce it with new nim version
18:53:27Mister_Magisteroki
18:58:19FromDiscord<Hamid Bluri> @Minster_Magister you can use `OrderedTable` by the way
18:59:41FromDiscord<Hamid Bluri> and you don't need to define all these funcs `[]`, `[]=`
19:10:58NimEventerNew thread by Tzzza: Asyncmacro.nim(130, 3) Error: 'yield' only allowed in an iterator, see https://forum.nim-lang.org/t/8532
19:11:35FromDiscord<enthus1ast> docks.rs gives the same information than the build in nim docs imho
19:11:53FromDiscord<enthus1ast> s/than/as/
19:13:00FromDiscord<enthus1ast> just looks a little different
19:13:23*xet7 quit (Remote host closed the connection)
19:14:15*xet7 joined #nim
19:14:38FromDiscord<enthus1ast> to get an overview of the stdlib you can also use\:
19:14:38FromDiscord<enthus1ast> https://nim-lang.org/docs/theindex.html
19:22:32*Guest73 joined #nim
19:23:06*Guest73 quit (Client Quit)
19:23:27FromDiscord<Hamid Bluri> any news? Mister
19:28:37FromDiscord<SivadNai> Does anyone know if Nim works on chrome os?
19:32:23FromDiscord<zetashift> Could use Termux in ChromeOS and get Nim that wya
19:36:40FromDiscord<Illusive> so i was looking for some examples for discord bots
19:36:46FromDiscord<Illusive> found this https://raw.githubusercontent.com/RustyRaptor/Fortemps-bot/main/src/fortemps.nim
19:37:08FromDiscord<Illusive> sent a code paste, see https://play.nim-lang.org/#ix=3CBS
19:37:10FromDiscord<Illusive> what this thing should do here?
19:37:59FromDiscord<Gumber> In reply to @Illusive "what this thing should": who knows - why are you asking us what a `# TODO` in some random person's code is for???
19:44:05FromDiscord<Illusive> well
19:44:27FromDiscord<Illusive> i am currently trying to figure out how to use slash commands in dimscmd
19:51:36*Gustavo6046_ joined #nim
19:52:19*Gustavo6046 quit (Ping timeout: 252 seconds)
19:54:41*Gustavo6046_ is now known as Gustavo6046
20:00:10FromDiscord<logo4poop> @Illusive https://github.com/ire4ever1190/dimscmd
20:00:38FromDiscord<Recruit_main707> so we eneded up shipping 1.6 with a broken nimble?
20:01:16FromDiscord<Illusive> i think i figured out the stuff
20:01:19FromDiscord<Illusive> with modules
20:04:57FromDiscord<Gumber> In reply to @Recruit_main707 "so we eneded up": I didn't ship anything!
20:05:27FromDiscord<Gumber> what is broken about it? I remember something was broken a couple / few weeks ago but I thought the release was delayed to address that ish
20:06:55FromDiscord<Recruit_main707> sent a code paste, see https://play.nim-lang.org/#ix=3CC3
20:07:34FromDiscord<Gumber> that's not really a helpful stacktrace
20:07:47FromDiscord<Gumber> oh a fresh project hmmm?
20:07:52FromDiscord<Gumber> let me try to reproduce
20:08:12FromDiscord<Gumber> library or binary?
20:08:16FromDiscord<Gumber> or hybrid?
20:08:27FromDiscord<Recruit_main707> binary, but it also happens with `nimble install nimble`
20:08:48FromDiscord<Gumber> doesn't happen for me
20:09:03FromDiscord<Gumber> sent a code paste, see https://play.nim-lang.org/#ix=3CC4
20:09:46FromDiscord<Gumber> sent a code paste, see https://play.nim-lang.org/#ix=3CC5
20:10:14FromDiscord<Recruit_main707> same version as mine
20:10:27FromDiscord<Gumber> maybe you have multiple nim installs and conflicting stdlibs?
20:10:29FromDiscord<Gumber> I dunno...
20:12:16FromDiscord<Recruit_main707> that could be, lemme unsinstall completely the old version
20:13:14FromDiscord<Recruit_main707> no luck
20:13:35FromDiscord<Gumber> I dunno - I might just completely remove all Nim related artifacts from your machine and reinstall
20:13:44FromDiscord<Gumber> it definitely works for me but I don't know what OS you're on or CPU arch
20:13:55FromDiscord<Gumber> and I don't think it's an issue with nimble because I think more noise would be being made
20:14:26Mister_Magisterno news yet
20:14:38Mister_Magisterworks so far
20:19:37*Vladar quit (Quit: Leaving)
20:22:51FromDiscord<Recruit_main707> deleting .nimble and then reinstalling seemed to do the trick
20:36:39FromDiscord<tandy> yep, had this problem the other day↵(@Recruit_main707)
20:37:52FromDiscord<tandy> dom said clear the folder in ur homedir
21:01:05Mister_Magisterworks since 2 hours
21:01:09Mister_Magistermaybe devel fixed it
21:17:26FromDiscord<tandy> `cstrToNimstr` is there a way to use this on browser javascript?
21:17:46FromDiscord<Elegantbeef> doesnt `.string` work?
21:17:58FromDiscord<tandy> hmm il try , i was using `$`
21:18:03FromDiscord<Elegantbeef> or `string(yourStr)`
21:19:20FromDiscord<tandy> string() and .string dont work
21:19:31FromDiscord<tandy> only $ compiles, but when testing js errors out
21:20:18FromDiscord<tandy> another reason why we need typeunions in nim \:)
21:20:36FromDiscord<Elegantbeef> I dont see how that changes this
21:21:19FromDiscord<tandy> im converting from cstring to string because im using a "pure" type
21:21:29FromDiscord<tandy> like how the matrix-nim-sdk api works
21:22:21*Gustavo6046 quit (Read error: Connection reset by peer)
21:24:50FromDiscord<Elegantbeef> Well then i guess `$` or your own `toString` proc is best bet
21:25:59FromDiscord<tandy> hmm
21:26:23FromDiscord<tandy> il probably switch the pure types to use cstring
21:26:33FromDiscord<tandy> because nimstr to cstring works on the native backend
21:32:34*Gustavo6046 joined #nim
21:40:07*Gustavo6046 quit (Ping timeout: 252 seconds)
21:43:50*Gustavo6046 joined #nim
21:58:58*Jjp137 quit (Quit: Leaving)
22:01:04*Jjp137 joined #nim
22:01:17*Gustavo6046_ joined #nim
22:01:22Mister_Magisteroh no i lied
22:01:25Mister_Magisterdevel didn't fix it
22:01:49FromDiscord<Elegantbeef> Where's your project?
22:01:55FromDiscord<Elegantbeef> You've been stuck on this bug too long
22:01:56Mister_Magister@Hamid stack trace is the same
22:02:11*Gustavo6046 quit (Ping timeout: 245 seconds)
22:02:21Mister_Magisterme?
22:02:35FromDiscord<Elegantbeef> Yes
22:02:56Mister_Magister[19:16] <Mister_Magister> @Hamid Bluri https://paste.opensuse.org/ec036dcf
22:03:05Mister_Magisterhere
22:04:07*Gustavo6046_ is now known as Gustavo6046
22:08:51FromDiscord<good_evening> Is there a list of commonly used libraries/modules for nim?
22:09:27FromDiscord<tandy> https://github.com/treeform↵(@good_evening)
22:09:41FromDiscord<good_evening> Thank you!
22:13:13FromDiscord<Elegantbeef> So it raises an uncatchable oserror?
22:15:11Mister_Magisterwell in this example im catching it but it doesn't recover, simple answer, yes tho its catchable
22:17:42FromDiscord<Elegantbeef> Have you tried it without async to see if it's anymore helpful?
22:18:13Mister_Magisteri did not
22:19:00FromDiscord<Elegantbeef> I havent used async much(if at all) so i dont know what else to say 😀
22:20:10Mister_Magisteri started using async recently its glorious
22:20:32FromDiscord<Elegantbeef> I dont write code that benefits from async
22:20:41Mister_Magisteri see
22:21:04FromDiscord<Yardanico> In reply to @good_evening "Is there a list": not that I know of, treeform is just a guy who makes a lot of good libs so tandy linked him :P
22:21:09FromDiscord<Yardanico> you can find quite a lot of good libs in https://github.com/nim-lang/Nim/wiki/Curated-Packages
22:21:22FromDiscord<Elegantbeef> There is also just the nimble package registry
22:22:10FromDiscord<Yardanico> yes, if you know what you're searching for
22:22:11FromDiscord<Yardanico> http://nimble.directory/
22:24:42Mister_Magisterill try fixing all my requests to it maybe that will help
22:24:51Mister_Magistertho just crashing without option of recovery is not very fun
22:26:01FromDiscord<tandy> this↵(@Yardanico)
22:26:16FromDiscord<Yardanico> tandy, but only linking treeform is a bit misleading anyway :)
22:43:54FromDiscord<good_evening> In reply to @Yardanico "you can find quite": Thank you as well.
22:50:35*oprypin quit (Quit: Bye)
22:50:55*oprypin joined #nim
22:54:52FromDiscord<Schelz> is there any way i can get the pid of a process with only its name
22:54:54FromDiscord<Schelz> ?
22:55:15Mister_Magisterpidof <name>
22:55:28Mister_Magisterwell in linux at least xd
23:16:31FromDiscord<rainbowasteroids> i typically just `ps | grep -i name`, lol
23:40:48FromDiscord<impbox [ftsf]> In reply to @Schelz "is there any way": There may be multiple processes with the same name
23:41:08FromDiscord<impbox [ftsf]> pgrep also works
23:41:17FromDiscord<impbox [ftsf]> No need for ps | grep
23:46:02NimEventerNew thread by Ggibson: Macro to reconstitute const string to type?, see https://forum.nim-lang.org/t/8533