<< 09-02-2023 >>

00:00:46FromDiscord<Yepoleb> 😢
00:01:04FromDiscord<Yepoleb> do you still need help?
00:01:12FromDiscord<Elegantbeef> Nope
00:01:30FromDiscord<Yepoleb> did you find an expert?
00:01:33FromDiscord<Elegantbeef> A contributor is providing insight, just trying to read the C to understand the shit
00:01:42FromDiscord<antonio_michelle> Enjoy profitable forex/cryptocurrency income and earn up to $30,000.00 within 5 days, not only interested people should ask me how↵https://t.me/+BQlhudqWXGk1MWY0
00:04:06FromDiscord<Yepoleb> do you know assembly?
00:04:13FromDiscord<Elegantbeef> Nope
00:12:55*uics quit (Remote host closed the connection)
00:22:59FromDiscord<eyes> urgh
00:23:01*uics joined #nim
00:23:10FromDiscord<eyes> got a package specific question
00:23:19FromDiscord<eyes> nim-markdown, https://github.com/soasme/nim-markdown
00:23:52FromDiscord<eyes> when it parses the markdown you get objects of ``Token`` type, and tokens have children which can be found in a double link list
00:24:04FromDiscord<eyes> and each of these tokens represent different things
00:24:23*azimut joined #nim
00:24:48FromDiscord<eyes> sent a code paste, see https://play.nim-lang.org/#ix=4nvF
00:25:18FromDiscord<eyes> So i want to be able to check if these objects are documents or blocks etc... but they are already being treated as tokens since im getting them out of the ``DoublyLinkedList[Token]``
00:25:22*uics left #nim (#nim)
00:26:18FromDiscord<eyes> sent a code paste, see https://play.nim-lang.org/#ix=4nvG
00:26:19FromDiscord<eyes> thats my current code
00:26:28FromDiscord<eyes> i think im probably just misusing the library but idk
00:28:03FromDiscord<Elegantbeef> `Token of Ul`
00:28:11FromDiscord<Elegantbeef> whoops `token of Ul`
00:28:26FromDiscord<Elegantbeef> `typeof` is compile time so it sees `Token is Ul` which is false
00:28:33FromDiscord<Elegantbeef> `of` uses runtime type information
00:30:37FromDiscord<eyes> oh interesting
00:31:41FromDiscord<eyes> nice yeah it works
00:32:07FromDiscord<eyes> thank you very much
00:32:56FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4nvK
00:33:11FromDiscord<Elegantbeef> Whether either is cleaner is between you and your god
00:34:07FromDiscord<Elegantbeef> Idiomatic Nim avoids `return` really
00:41:26FromDiscord<eyes> In reply to @Elegantbeef "Idiomatic Nim avoids `return`": sigh i know but this is one of my least favorite things about the language
00:42:00FromDiscord<eyes> i want to resist it
00:42:19FromDiscord<Elegantbeef> Eh it's so much nicer than accidently forgetting a block of code should return a value and it not error
00:42:48FromDiscord<Elegantbeef> if you do not use an expression and forget a `return` the compiler doesnt know anything is wrong
00:42:56FromDiscord<Elegantbeef> Unconstrained flow control is not great
00:44:29FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4nvM
00:44:32FromDiscord<Elegantbeef> The compiler doesnt complain and eats this up
00:45:25FromDiscord<Elegantbeef> Your view may vary
00:45:31*beholders_eye quit (Ping timeout: 248 seconds)
00:47:31FromDiscord<eyes> sent a code paste, see https://paste.rs/FoX
00:48:12FromDiscord<eyes> i guess youre right
00:48:19FromDiscord<eyes> its dumb but i think i will continue to use return
00:48:20FromDiscord<Elegantbeef> Sure we could have a \`not all code paths return'
00:48:23FromDiscord<Elegantbeef> But given the entire language is based around expressions
00:48:25FromDiscord<eyes> it is worth it to me
00:54:24FromDiscord<leorize> nim could use some mandatory result initialization
00:54:38FromDiscord<Elegantbeef> strictdefs in 2.0
00:55:50FromDiscord<Elegantbeef> https://nim-lang.github.io/Nim/manual_experimental.html#strict-definitions-and-nimout-parameters but dont think it applies to result
01:00:02FromDiscord<leorize> nice feature
01:20:34*azimut quit (Remote host closed the connection)
01:21:02*azimut joined #nim
02:22:46*NimBot joined #nim
02:42:45*xet7 quit (Remote host closed the connection)
02:51:54*xet7 joined #nim
03:02:05*arkurious quit (Quit: Leaving)
03:15:56*NimBot joined #nim
03:27:53*jkl1337 joined #nim
03:27:53*ltriant_ joined #nim
03:27:53*rockcavera joined #nim
03:27:53*xet7 joined #nim
03:27:53*azimut joined #nim
03:27:53*Batzy joined #nim
03:27:53*ehmry joined #nim
03:27:53*mal`` joined #nim
03:27:53*peterhil joined #nim
03:27:53*deadmarshal_ joined #nim
03:27:53*dza joined #nim
03:27:53*ttkap joined #nim
03:27:53*hexeme_ joined #nim
03:27:53*Goodbye_Vincent joined #nim
03:27:53*redj joined #nim
03:27:53*genpaku joined #nim
03:27:53*adium joined #nim
03:27:53*koltrast joined #nim
03:27:53*cm joined #nim
03:27:53*estiquelapice joined #nim
03:27:53*m5zs7k joined #nim
03:27:53*lain joined #nim
03:27:53*def- joined #nim
03:27:53*Lord_Nightmare joined #nim
03:27:53*oprypin joined #nim
03:27:53*fallback joined #nim
03:27:53*tinytoast joined #nim
03:27:53*GreaseMonkey joined #nim
03:27:53*Mister_Magister joined #nim
03:27:53*Onionhammer joined #nim
03:27:53*pbsds joined #nim
03:27:53*Jjp137 joined #nim
03:27:53*oisota joined #nim
03:27:53*krydos joined #nim
03:27:53*nyeaa4928423 joined #nim
03:27:53*dv^_^ joined #nim
03:27:53*crem1 joined #nim
03:27:53*Evolver joined #nim
03:27:53*FromDiscord joined #nim
03:27:53*om3ga joined #nim
03:27:53*blackbeard420 joined #nim
03:27:53*nisstyre joined #nim
03:27:53*arkanoid joined #nim
03:27:53*attah joined #nim
03:27:53*termer joined #nim
03:27:53*cyraxjoe joined #nim
03:27:53*syl joined #nim
03:27:53*tk joined #nim
03:27:53*leastrio joined #nim
03:27:53*systemdsucks joined #nim
03:27:53*mahlon joined #nim
03:27:53*madprops joined #nim
03:27:53*lumidify joined #nim
03:27:53*qwestion joined #nim
03:27:53*ixmpp joined #nim
03:27:53*oz joined #nim
03:27:53*jmcantrell joined #nim
03:27:53*alice joined #nim
03:27:53*gshumway joined #nim
03:27:53*euantorano_ joined #nim
03:27:53*Amun-Ra joined #nim
03:27:53*madprog joined #nim
03:27:53*void09 joined #nim
03:27:53*adigitoleo joined #nim
03:27:53*doomduck joined #nim
03:27:53*tanami joined #nim
03:27:53*LyndsySimon joined #nim
03:27:53*robertmeta joined #nim
03:27:53*Zevv joined #nim
03:27:53*notchris joined #nim
03:27:53*cornfeedhobo joined #nim
03:27:53*Ekho joined #nim
03:27:53*ormiret joined #nim
03:27:53*_________ joined #nim
03:27:53*sforman joined #nim
03:27:53*henrytill joined #nim
03:27:53*noeontheend joined #nim
03:27:53*mronetwo joined #nim
03:28:02*jmdaemon quit (Max SendQ exceeded)
03:28:20*jmdaemon joined #nim
05:25:00*termer_ joined #nim
05:26:30*termer quit (Ping timeout: 260 seconds)
05:51:32*xet7 quit (Remote host closed the connection)
06:07:52*azimut_ joined #nim
06:08:08*azimut quit (Remote host closed the connection)
06:12:56*kenran joined #nim
06:34:15*kenran quit (Remote host closed the connection)
06:36:12*rockcavera quit (Remote host closed the connection)
06:42:59Amun-Ramorning all (as in standard greeting time) ;>
07:43:34*Guest76 joined #nim
07:44:43*Guest76 left #nim (#nim)
08:08:36FromDiscord<rakgew> oh wow TIL `dumpAstGen` - that was really useful! (-\:
08:11:08FromDiscord<Elegantbeef> eh genast/quote are right there 😄
08:13:50FromDiscord<rakgew> more treasures? qoute I know, but genast I will look at next.
08:14:25FromDiscord<Elegantbeef> You generally want to avoid using `astGenRepr` and friends
08:14:35FromDiscord<Elegantbeef> It's best to use quote/genast
08:16:37FromDiscord<rakgew> what is bad about astGenRepr?
08:16:52FromDiscord<Elegantbeef> You make the macro really difficult to read/write
08:16:52FromDiscord<rakgew> other, than maybe being verbose?
08:17:01FromDiscord<rakgew> I see.
08:17:46FromDiscord<Elegantbeef> They do the same as what you get out of `quote do` or `genast` but you have to copy it
08:20:53FromDiscord<Arathanis> are there docs for quote do?
08:21:13FromDiscord<Arathanis> (edit) "quote do?" => "`quote do`?"
08:21:30FromDiscord<Elegantbeef> https://nim-lang.org/docs/macros.html#quote%2Ctyped%2Cstring
08:26:00FromDiscord<Arathanis> thank you
08:26:22FromDiscord<rakgew> sent a code paste, see https://play.nim-lang.org/#ix=4nwR
08:26:31FromDiscord<Elegantbeef> `static openarray[string]`
08:26:41FromDiscord<Elegantbeef> or `static seq[string]`
08:27:41FromDiscord<rakgew> casting it inside the macro or when passing in?
08:28:34FromDiscord<Elegantbeef> As a parameter
08:29:16FromDiscord<rakgew> I see, thank you so much!
08:35:42FromDiscord<Hamid_Bluri> Hey beef
08:35:56FromDiscord<Hamid_Bluri> do you have any idea about this 😕↵https://github.com/nim-lang/Nim/issues/19271#issuecomment-1408826734
08:40:06FromDiscord<Elegantbeef> Cause it's an endlessly recursive type alias
08:40:46FromDiscord<Elegantbeef> sent a long message, see http://ix.io/4nwW
08:41:23FromDiscord<Elegantbeef> There is no recursion in the second since it's just a single type and no alias
08:41:38FromDiscord<Elegantbeef> MyFunc -\> w\: Wrap -\> Wrap
08:41:44FromDiscord<Elegantbeef> There is no more resolving required
08:42:24FromDiscord<Elegantbeef> Remember unless you use `distinct`, `object`, or `enum` there is no type being created
08:42:30FromDiscord<Elegantbeef> It's just an alias
08:43:07FromDiscord<Hamid_Bluri> thanks!
09:47:29*uics joined #nim
10:08:06*uics is now known as euph
10:14:32om3gaHow to use sort, for example if I have var referenceTable = newOrderedTable[uint32, SomeObject]()?
10:15:31om3gareferenceTable.sort(cmp[uint32]) not works, type mismatch: got <OrderedTableRef[system.uint32, SomeObject], proc (x: uint32, y: uint32): int{.noSideEffect, gcsafe, locks: 0.}>
10:16:31om3gaI tried to use iterator values, keys. nothing works, also I don't get that manual desc to fix that
10:16:37om3ga:\
10:16:46FromDiscord<Elegantbeef> remove `[uint32]`
10:18:38om3gatype mismatch: got <SomeObject, SomeObject>
10:18:47*azimut_ quit (Ping timeout: 255 seconds)
10:18:59FromDiscord<Elegantbeef> It sorts values
10:19:18om3gais it possible to sort keys?
10:19:49FromDiscord<Elegantbeef> Dont imagine so
10:20:33om3ga:\ my sorting algs suck... thanks Elegantbeef, gonna implement my own then
10:29:41*jkl1337 is now known as jkl
11:09:44*ltriant_ quit (Ping timeout: 260 seconds)
11:36:08*ltriant joined #nim
11:36:57*jmcantrell quit (Quit: Bridge terminating on SIGTERM)
11:41:08*jmcantrell joined #nim
11:43:01*ltriant quit (Ping timeout: 252 seconds)
12:03:40*arkurious joined #nim
12:10:51*euph left #nim (#nim)
12:15:00*jmcantrell quit (Ping timeout: 265 seconds)
12:54:56*jmdaemon quit (Ping timeout: 248 seconds)
12:58:37*jmcantrell joined #nim
13:02:34FromDiscord<lantos> sent a code paste, see https://play.nim-lang.org/#ix=4nxZ
13:02:58FromDiscord<lantos> (edit) "https://play.nim-lang.org/#ix=4nxZ" => "https://play.nim-lang.org/#ix=4ny0"
13:09:35FromDiscord<lantos> sent a code paste, see https://play.nim-lang.org/#ix=4ny5
13:20:17FromDiscord<Rika> sent a code paste, see https://play.nim-lang.org/#ix=4nyd
13:50:34*ltriant joined #nim
14:00:33*ltriant quit (Ping timeout: 256 seconds)
14:17:58*ormiret quit (Ping timeout: 252 seconds)
14:18:31*robertmeta quit (Ping timeout: 252 seconds)
14:18:43*LyndsySimon quit (Read error: Connection reset by peer)
14:18:49*redj quit (Quit: No Ping reply in 180 seconds.)
14:18:53*LyndsySimon joined #nim
14:20:22*redj joined #nim
14:22:19*ormiret joined #nim
14:22:58*robertmeta joined #nim
14:35:19*rockcavera joined #nim
14:35:25*azimut joined #nim
14:48:41FromDiscord<4zv4l> does anyone have an idea on how could I use `Detours` with Nim↵I didn't stop trying and either it wouldn't compile↵either it would segfault when calling a function from the library
15:56:22*cyraxjoe quit (Ping timeout: 252 seconds)
15:56:54*cyraxjoe joined #nim
16:00:29*azimut_ joined #nim
16:03:56*azimut quit (Ping timeout: 255 seconds)
16:12:25FromDiscord<4zv4l> how can I get a string from a cstring ?
16:12:41FromDiscord<jtv> $(cstr)
16:12:45FromDiscord<enthus1ast> $yourCstring
16:13:18FromDiscord<4zv4l> I need to import strutils for that ?
16:13:21FromDiscord<enthus1ast> @4zv4l\: Deteurs idk but there is a minhook wrapper
16:13:35FromDiscord<enthus1ast> Detours
16:13:58FromDiscord<enthus1ast> is Detours not 32bit only?
16:14:12FromDiscord<4zv4l> In reply to @enthus1ast "<@329196212282458112>\: Deteurs idk but": I tried minhook too and it didn't work but I found `SetWindowsHookEx` which is amazing
16:14:17FromDiscord<4zv4l> In reply to @enthus1ast "is Detours not 32bit": 64bit too now
16:14:48FromDiscord<enthus1ast> i mean minhook and SetWindowsHookEx have completely different purpose
16:15:30FromDiscord<enthus1ast> with minhook you can hook any function with SetWindowsHookEx you hook into the windows messaging system
16:16:39FromDiscord<jtv> You don't have to import anything to do $(cstr)
16:16:51FromDiscord<enthus1ast> and as far as i know, the author of minhook (back then when Detours was 32bit only) "lent a few ideas" from Detours
16:17:48FromDiscord<4zv4l> In reply to @enthus1ast "with minhook you can": yeah, the final purpose is to hook the clipboard message so↵that's also good
16:18:07FromDiscord<enthus1ast> yes then i think SetWindowsHookEx is the right tool
16:27:29FromDiscord<michaelb.eth> sent a long message, see http://ix.io/4nzc
16:27:55FromDiscord<enthus1ast> you can also use staticRead
16:28:07FromDiscord<enthus1ast> so you dont have to put it in the source at all
16:28:17FromDiscord<michaelb.eth> this one should be in the source
16:28:23FromDiscord<enthus1ast> kk
16:28:32FromDiscord<michaelb.eth> but yes, staticRead is a nice way for a lot of things, thanks for the reminder
16:28:57FromDiscord<michaelb.eth> (edit) "http://ix.io/4nzc" => "http://ix.io/4nze"
17:02:18FromDiscord<lantos> sent a code paste, see https://play.nim-lang.org/#ix=4nzp
17:02:42FromDiscord<lantos> also doesn't like when you use openArray :/
17:02:51FromDiscord<Rika> breaks?
17:02:57FromDiscord<Rika> the thing you gave me works just fine
17:03:33FromDiscord<Rika> you cant really store an open array in a type so that wont work
17:04:05FromDiscord<jtv> @michaelb.eth Does strutils.unescape() work for you? I haven't used it, but seems like it should
17:04:27FromDiscord<lantos> In reply to @Rika "you cant really store": sorry meant this
17:04:37FromDiscord<michaelb.eth> In reply to @jtv "<@383034029135364096> Does strutils.unescape() work": thanks, but I wasn't able to get it to work, maybe user error on my part
17:05:47FromDiscord<jtv> It’s def an odd decision to make tristrings raw always instead of having to use r as a prefix
17:05:47FromDiscord<michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4nzq
17:06:14FromDiscord<Ntsékees> Is there a Nim equivalent of C `attribute((used))`? (It prevents an unused function to be removed as dead code)
17:06:24FromDiscord<jtv> You can always do const mystr = "..." &
17:07:07FromDiscord<michaelb.eth> In reply to @jtv "You can always do": oh yeah, derp, that works too, using the named segments was an artifact of my experiments and I should clean that up, thanks!
17:07:08FromDiscord<jtv> (edit) "const mystr" => "↵`const myster" | "↵`const myster= "..." ... &..." added "&↵ "..."" | "= "..."&↵ "..."& ... " added "..."
17:07:16FromDiscord<jtv> (edit) "..." => "...`"
17:07:25FromDiscord<jtv> (edit) "&↵ "..."" => "&↵"...""
17:07:29FromDiscord<michaelb.eth> In reply to @Ntsékees "Is there a Nim": `export` it?
17:07:36FromDiscord<michaelb.eth> (edit) "In reply to @Ntsékees "Is there a Nim": ... `export`" added "explicitly"
17:08:04FromDiscord<Rika> exportc you mean
17:08:07FromDiscord<pyolyokh> <https://nim-lang.org/docs/manual.html#pragmas-used-pragma>
17:08:07FromDiscord<jtv> I do generally end up using the trailing & or staticread depending on the circumstances. The tristring situation does suck 🙂
17:08:29FromDiscord<Rika> In reply to @pyolyokh "<https://nim-lang.org/docs/manual.html#pragmas-used": this does not disable DCE
17:08:34FromDiscord<Rika> it just suppresses the warning
17:08:48FromDiscord<Rika> it will still be removed from the compiled artifact
17:09:08FromDiscord<Rika> In reply to @lantos "sorry meant this*": nothing you can do iirc
17:13:05FromDiscord<lantos> sent a long message, see http://ix.io/4nzt
17:15:31FromDiscord<Rika> In reply to @lantos "yeah, also would have": i thought so too but idk
17:17:09*PMunch joined #nim
17:19:16*tiorock joined #nim
17:19:16*tiorock quit (Changing host)
17:19:16*tiorock joined #nim
17:19:16*rockcavera quit (Killed (mercury.libera.chat (Nickname regained by services)))
17:19:16*tiorock is now known as rockcavera
17:20:03FromDiscord<pancake> https://infosec.exchange/@radareorg/109835921122288441
17:21:12FromDiscord<enthus1ast> what
17:23:28FromDiscord<pancake> i just added the initial support to script radare2 with nim, using the embedded quickjs runtime
17:23:59FromDiscord<enthus1ast> so you compile nim to js? (or quickjs)?
17:25:29FromDiscord<pancake> https://media.discordapp.net/attachments/371759389889003532/1073293575904837684/Screenshot_2023-02-09_at_18.25.19.png
17:25:55FromDiscord<pancake> compiles nim to js but uses the .qjs extension isntead. the only "syscall" needed is having the `r2cmd` defined
17:26:38FromDiscord<enthus1ast> ah ok, nice \:)
17:26:46FromDiscord<pancake> Also wrote this to define a more idiomatic api on top of r2cmd https://github.com/radareorg/radare2-r2papi/tree/master/nim in case anyone wants to contribute or play with it.
17:28:10FromDiscord<pancake> i wonder if its possible to transpile nim itself to js, so it can be shipped as an r2 plugin and stop depending on a native executable in your $PATH
17:30:09FromDiscord<enthus1ast> afaik the compiler cannot be compiled for the js target
17:30:20FromDiscord<enthus1ast> but i've never tried
17:35:41*proportions joined #nim
17:35:56proportionsnoobs use real languages not this nim for small kids xaxaxa
17:43:20FromDiscord<Phil> ?
17:49:54FromDiscord<tfp> xaxaxaxa
17:49:58*proportions quit (K-Lined)
17:56:58FromDiscord<eyes> wahoo
17:57:37*ltriant joined #nim
17:57:58FromDiscord<eyes> sent a code paste, see https://play.nim-lang.org/#ix=4nzA
17:58:20FromDiscord<eyes> do I need to dereference the sequence somehow?
18:01:08FromDiscord<pyolyokh> theseq[].add
18:02:07FromDiscord<eyes> why are the ``[]`` necessary?
18:02:15FromDiscord<eyes> ill try it now but just wondering
18:03:39*ltriant quit (Ping timeout: 256 seconds)
18:03:57FromDiscord<Zoom> Here I thought I get to use concepts finally. Can't pass a concept-typed parameter to a thread, as it's `invalid type: 'Thread[(ptr Chan[Msg], int, ptr Associative[string, string])]' for var`. Sigh
18:11:10FromDiscord<Yepoleb> In reply to @eyes "why are the ``[]``": that's the dereference operator
18:17:09*jmdaemon joined #nim
18:17:10FromDiscord<Hourglass [She/Her]> I wanna make a hexagonal grid (the last one), to draw it is it only a matter of shifting the drawn line along? https://media.discordapp.net/attachments/371759389889003532/1073306579509727302/Grids_900.png
18:29:11FromDiscord<pyolyokh> you have a hexagonal grid in the middle there, already. It just has some extra lines
18:29:27FromDiscord<sOkam!> In reply to @Hourglass, When the Hour Strikes "I wanna make a": there is a godot-engine tutorial about it. the idea should be useful no matter the engine/lang↵what i vaguely recall, it was mostly alignment. but depends on your implementation afair
18:30:21FromDiscord<Hourglass [She/Her]> In reply to @pyolyokh "you have a hexagonal": Yeah ik, but I need to recreate it in my program xD
18:30:31FromDiscord<Hourglass [She/Her]> In reply to @sOkam! "there is a godot-engine": Hm alright, thanks!
18:36:29*azimut_ quit (Ping timeout: 255 seconds)
18:36:58*azimut joined #nim
18:40:10FromDiscord<Hourglass [She/Her]> If I do `newSeq[MyType](10)` does it initialise the type?
18:44:56FromDiscord<pyolyokh> yes, you'll want <https://nim-lang.org/docs/system.html#newSeqUninitialized%2CNatural> otherwise
18:48:21FromDiscord<Hourglass [She/Her]> Hm alright
18:48:35FromDiscord<Hourglass [She/Her]> I'm trying to think of how I'd implement this ngl... It's difficult
18:48:53FromDiscord<4zv4l> sent a code paste, see https://play.nim-lang.org/#ix=4nzP
18:49:04FromDiscord<Hourglass [She/Her]> I could make each layer an object? Since I already plan to have the layers nestable (they get smaller the further you go up)
18:49:47FromDiscord<4zv4l> sent a code paste, see https://paste.rs/XlR
18:52:55FromDiscord<4zv4l> I think that's because I close the clipboard before reading from the pointer
19:32:38FromDiscord<eyes> dies\
19:32:43FromDiscord<eyes> just read the documentation for std/re
19:32:56FromDiscord<eyes> looks like it doesnt support regex groups?
19:34:11FromDiscord<eyes> for example, I have strings like this that im trying to match:↵``[ ] TODO take out the trash every weekend``↵which I match with this pattern:↵``re"\[[ x]\]\s?(.?)$"``
19:34:13*pbsds quit (Quit: Ping timeout (120 seconds))
19:34:34FromDiscord<eyes> notice the ``(.?)`` for the end of the line. any way to get that part of the match?
19:34:36*pbsds joined #nim
19:34:43FromDiscord<eyes> (edit) "for" => "before"
19:35:09FromDiscord<eyes> it should match ``TODO take out the trash every weekend``
19:36:42*mal`` quit (Quit: Leaving)
19:39:01*dropkick joined #nim
19:39:43*mal`` joined #nim
19:40:54FromDiscord<Hourglass [She/Her]> @eyes quick google search says `re` is deprecated, and you should be using `nre` instead?
19:41:08FromDiscord<Hourglass [She/Her]> Though, I don't touch regex so that's for you to test aha
19:53:48FromDiscord<rakgew> for regexes in nim, pure-nim https://github.com/nitely/nim-regex has become my goto.
20:02:12*ltriant joined #nim
20:23:04FromDiscord<eyes> danke
20:33:08FromDiscord<ShalokShalom> In reply to @eyes "danke": bitte 😄
20:57:15FromDiscord<Prestige> Is there a way to have like, an array of 9 bits?
20:58:02FromDiscord<jtv> You can use builtin sets.
20:58:26FromDiscord<jtv> Under the hood there will always be storage allocated that's aligned, generally to the full word size of the machine
20:58:37FromDiscord<jtv> But at least to the byte in any circumstance
20:58:46FromDiscord<Prestige> right, thanks
21:00:08FromDiscord<Elegantbeef> A set of 9 elements emits a 16bit integer unless you have a packed struct with bitfields
21:00:35FromDiscord<Elegantbeef> But yea you need 16bits regardless if you use 9..15
21:01:29FromDiscord<jtv> I'd assume it all depends on the architecture and the tool chain, but it's often slower to load and store when ints are not word-aligned
21:01:56FromDiscord<Elegantbeef> Yea the compiler generally does what's 'right'
21:04:12FromDiscord<turbo> Is there a way to use `getRow` with prepared statements?
21:07:27FromDiscord<turbo> getValue and getRow(s) are completely inconsistent in their support for prepare statements
22:25:24*dropkick quit (Ping timeout: 252 seconds)
22:39:54*PMunch quit (Quit: Leaving)
22:53:40*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
22:55:51*ehmry joined #nim
23:28:55*termer_ is now known as termer