00:00:46 | FromDiscord | <Yepoleb> 😢 |
00:01:04 | FromDiscord | <Yepoleb> do you still need help? |
00:01:12 | FromDiscord | <Elegantbeef> Nope |
00:01:30 | FromDiscord | <Yepoleb> did you find an expert? |
00:01:33 | FromDiscord | <Elegantbeef> A contributor is providing insight, just trying to read the C to understand the shit |
00:01:42 | FromDiscord | <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:06 | FromDiscord | <Yepoleb> do you know assembly? |
00:04:13 | FromDiscord | <Elegantbeef> Nope |
00:12:55 | * | uics quit (Remote host closed the connection) |
00:22:59 | FromDiscord | <eyes> urgh |
00:23:01 | * | uics joined #nim |
00:23:10 | FromDiscord | <eyes> got a package specific question |
00:23:19 | FromDiscord | <eyes> nim-markdown, https://github.com/soasme/nim-markdown |
00:23:52 | FromDiscord | <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:04 | FromDiscord | <eyes> and each of these tokens represent different things |
00:24:23 | * | azimut joined #nim |
00:24:48 | FromDiscord | <eyes> sent a code paste, see https://play.nim-lang.org/#ix=4nvF |
00:25:18 | FromDiscord | <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:18 | FromDiscord | <eyes> sent a code paste, see https://play.nim-lang.org/#ix=4nvG |
00:26:19 | FromDiscord | <eyes> thats my current code |
00:26:28 | FromDiscord | <eyes> i think im probably just misusing the library but idk |
00:28:03 | FromDiscord | <Elegantbeef> `Token of Ul` |
00:28:11 | FromDiscord | <Elegantbeef> whoops `token of Ul` |
00:28:26 | FromDiscord | <Elegantbeef> `typeof` is compile time so it sees `Token is Ul` which is false |
00:28:33 | FromDiscord | <Elegantbeef> `of` uses runtime type information |
00:30:37 | FromDiscord | <eyes> oh interesting |
00:31:41 | FromDiscord | <eyes> nice yeah it works |
00:32:07 | FromDiscord | <eyes> thank you very much |
00:32:56 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4nvK |
00:33:11 | FromDiscord | <Elegantbeef> Whether either is cleaner is between you and your god |
00:34:07 | FromDiscord | <Elegantbeef> Idiomatic Nim avoids `return` really |
00:41:26 | FromDiscord | <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:00 | FromDiscord | <eyes> i want to resist it |
00:42:19 | FromDiscord | <Elegantbeef> Eh it's so much nicer than accidently forgetting a block of code should return a value and it not error |
00:42:48 | FromDiscord | <Elegantbeef> if you do not use an expression and forget a `return` the compiler doesnt know anything is wrong |
00:42:56 | FromDiscord | <Elegantbeef> Unconstrained flow control is not great |
00:44:29 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4nvM |
00:44:32 | FromDiscord | <Elegantbeef> The compiler doesnt complain and eats this up |
00:45:25 | FromDiscord | <Elegantbeef> Your view may vary |
00:45:31 | * | beholders_eye quit (Ping timeout: 248 seconds) |
00:47:31 | FromDiscord | <eyes> sent a code paste, see https://paste.rs/FoX |
00:48:12 | FromDiscord | <eyes> i guess youre right |
00:48:19 | FromDiscord | <eyes> its dumb but i think i will continue to use return |
00:48:20 | FromDiscord | <Elegantbeef> Sure we could have a \`not all code paths return' |
00:48:23 | FromDiscord | <Elegantbeef> But given the entire language is based around expressions |
00:48:25 | FromDiscord | <eyes> it is worth it to me |
00:54:24 | FromDiscord | <leorize> nim could use some mandatory result initialization |
00:54:38 | FromDiscord | <Elegantbeef> strictdefs in 2.0 |
00:55:50 | FromDiscord | <Elegantbeef> https://nim-lang.github.io/Nim/manual_experimental.html#strict-definitions-and-nimout-parameters but dont think it applies to result |
01:00:02 | FromDiscord | <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:59 | Amun-Ra | morning all (as in standard greeting time) ;> |
07:43:34 | * | Guest76 joined #nim |
07:44:43 | * | Guest76 left #nim (#nim) |
08:08:36 | FromDiscord | <rakgew> oh wow TIL `dumpAstGen` - that was really useful! (-\: |
08:11:08 | FromDiscord | <Elegantbeef> eh genast/quote are right there 😄 |
08:13:50 | FromDiscord | <rakgew> more treasures? qoute I know, but genast I will look at next. |
08:14:25 | FromDiscord | <Elegantbeef> You generally want to avoid using `astGenRepr` and friends |
08:14:35 | FromDiscord | <Elegantbeef> It's best to use quote/genast |
08:16:37 | FromDiscord | <rakgew> what is bad about astGenRepr? |
08:16:52 | FromDiscord | <Elegantbeef> You make the macro really difficult to read/write |
08:16:52 | FromDiscord | <rakgew> other, than maybe being verbose? |
08:17:01 | FromDiscord | <rakgew> I see. |
08:17:46 | FromDiscord | <Elegantbeef> They do the same as what you get out of `quote do` or `genast` but you have to copy it |
08:20:53 | FromDiscord | <Arathanis> are there docs for quote do? |
08:21:13 | FromDiscord | <Arathanis> (edit) "quote do?" => "`quote do`?" |
08:21:30 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/macros.html#quote%2Ctyped%2Cstring |
08:26:00 | FromDiscord | <Arathanis> thank you |
08:26:22 | FromDiscord | <rakgew> sent a code paste, see https://play.nim-lang.org/#ix=4nwR |
08:26:31 | FromDiscord | <Elegantbeef> `static openarray[string]` |
08:26:41 | FromDiscord | <Elegantbeef> or `static seq[string]` |
08:27:41 | FromDiscord | <rakgew> casting it inside the macro or when passing in? |
08:28:34 | FromDiscord | <Elegantbeef> As a parameter |
08:29:16 | FromDiscord | <rakgew> I see, thank you so much! |
08:35:42 | FromDiscord | <Hamid_Bluri> Hey beef |
08:35:56 | FromDiscord | <Hamid_Bluri> do you have any idea about this 😕↵https://github.com/nim-lang/Nim/issues/19271#issuecomment-1408826734 |
08:40:06 | FromDiscord | <Elegantbeef> Cause it's an endlessly recursive type alias |
08:40:46 | FromDiscord | <Elegantbeef> sent a long message, see http://ix.io/4nwW |
08:41:23 | FromDiscord | <Elegantbeef> There is no recursion in the second since it's just a single type and no alias |
08:41:38 | FromDiscord | <Elegantbeef> MyFunc -\> w\: Wrap -\> Wrap |
08:41:44 | FromDiscord | <Elegantbeef> There is no more resolving required |
08:42:24 | FromDiscord | <Elegantbeef> Remember unless you use `distinct`, `object`, or `enum` there is no type being created |
08:42:30 | FromDiscord | <Elegantbeef> It's just an alias |
08:43:07 | FromDiscord | <Hamid_Bluri> thanks! |
09:47:29 | * | uics joined #nim |
10:08:06 | * | uics is now known as euph |
10:14:32 | om3ga | How to use sort, for example if I have var referenceTable = newOrderedTable[uint32, SomeObject]()? |
10:15:31 | om3ga | referenceTable.sort(cmp[uint32]) not works, type mismatch: got <OrderedTableRef[system.uint32, SomeObject], proc (x: uint32, y: uint32): int{.noSideEffect, gcsafe, locks: 0.}> |
10:16:31 | om3ga | I tried to use iterator values, keys. nothing works, also I don't get that manual desc to fix that |
10:16:37 | om3ga | :\ |
10:16:46 | FromDiscord | <Elegantbeef> remove `[uint32]` |
10:18:38 | om3ga | type mismatch: got <SomeObject, SomeObject> |
10:18:47 | * | azimut_ quit (Ping timeout: 255 seconds) |
10:18:59 | FromDiscord | <Elegantbeef> It sorts values |
10:19:18 | om3ga | is it possible to sort keys? |
10:19:49 | FromDiscord | <Elegantbeef> Dont imagine so |
10:20:33 | om3ga | :\ 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:34 | FromDiscord | <lantos> sent a code paste, see https://play.nim-lang.org/#ix=4nxZ |
13:02:58 | FromDiscord | <lantos> (edit) "https://play.nim-lang.org/#ix=4nxZ" => "https://play.nim-lang.org/#ix=4ny0" |
13:09:35 | FromDiscord | <lantos> sent a code paste, see https://play.nim-lang.org/#ix=4ny5 |
13:20:17 | FromDiscord | <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:41 | FromDiscord | <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:25 | FromDiscord | <4zv4l> how can I get a string from a cstring ? |
16:12:41 | FromDiscord | <jtv> $(cstr) |
16:12:45 | FromDiscord | <enthus1ast> $yourCstring |
16:13:18 | FromDiscord | <4zv4l> I need to import strutils for that ? |
16:13:21 | FromDiscord | <enthus1ast> @4zv4l\: Deteurs idk but there is a minhook wrapper |
16:13:35 | FromDiscord | <enthus1ast> Detours |
16:13:58 | FromDiscord | <enthus1ast> is Detours not 32bit only? |
16:14:12 | FromDiscord | <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:17 | FromDiscord | <4zv4l> In reply to @enthus1ast "is Detours not 32bit": 64bit too now |
16:14:48 | FromDiscord | <enthus1ast> i mean minhook and SetWindowsHookEx have completely different purpose |
16:15:30 | FromDiscord | <enthus1ast> with minhook you can hook any function with SetWindowsHookEx you hook into the windows messaging system |
16:16:39 | FromDiscord | <jtv> You don't have to import anything to do $(cstr) |
16:16:51 | FromDiscord | <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:48 | FromDiscord | <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:07 | FromDiscord | <enthus1ast> yes then i think SetWindowsHookEx is the right tool |
16:27:29 | FromDiscord | <michaelb.eth> sent a long message, see http://ix.io/4nzc |
16:27:55 | FromDiscord | <enthus1ast> you can also use staticRead |
16:28:07 | FromDiscord | <enthus1ast> so you dont have to put it in the source at all |
16:28:17 | FromDiscord | <michaelb.eth> this one should be in the source |
16:28:23 | FromDiscord | <enthus1ast> kk |
16:28:32 | FromDiscord | <michaelb.eth> but yes, staticRead is a nice way for a lot of things, thanks for the reminder |
16:28:57 | FromDiscord | <michaelb.eth> (edit) "http://ix.io/4nzc" => "http://ix.io/4nze" |
17:02:18 | FromDiscord | <lantos> sent a code paste, see https://play.nim-lang.org/#ix=4nzp |
17:02:42 | FromDiscord | <lantos> also doesn't like when you use openArray :/ |
17:02:51 | FromDiscord | <Rika> breaks? |
17:02:57 | FromDiscord | <Rika> the thing you gave me works just fine |
17:03:33 | FromDiscord | <Rika> you cant really store an open array in a type so that wont work |
17:04:05 | FromDiscord | <jtv> @michaelb.eth Does strutils.unescape() work for you? I haven't used it, but seems like it should |
17:04:27 | FromDiscord | <lantos> In reply to @Rika "you cant really store": sorry meant this |
17:04:37 | FromDiscord | <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:47 | FromDiscord | <jtv> It’s def an odd decision to make tristrings raw always instead of having to use r as a prefix |
17:05:47 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4nzq |
17:06:14 | FromDiscord | <Ntsékees> Is there a Nim equivalent of C `attribute((used))`? (It prevents an unused function to be removed as dead code) |
17:06:24 | FromDiscord | <jtv> You can always do const mystr = "..." & |
17:07:07 | FromDiscord | <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:08 | FromDiscord | <jtv> (edit) "const mystr" => "↵`const myster" | "↵`const myster= "..." ... &..." added "&↵ "..."" | "= "..."&↵ "..."& ... " added "..." |
17:07:16 | FromDiscord | <jtv> (edit) "..." => "...`" |
17:07:25 | FromDiscord | <jtv> (edit) "&↵ "..."" => "&↵"..."" |
17:07:29 | FromDiscord | <michaelb.eth> In reply to @Ntsékees "Is there a Nim": `export` it? |
17:07:36 | FromDiscord | <michaelb.eth> (edit) "In reply to @Ntsékees "Is there a Nim": ... `export`" added "explicitly" |
17:08:04 | FromDiscord | <Rika> exportc you mean |
17:08:07 | FromDiscord | <pyolyokh> <https://nim-lang.org/docs/manual.html#pragmas-used-pragma> |
17:08:07 | FromDiscord | <jtv> I do generally end up using the trailing & or staticread depending on the circumstances. The tristring situation does suck 🙂 |
17:08:29 | FromDiscord | <Rika> In reply to @pyolyokh "<https://nim-lang.org/docs/manual.html#pragmas-used": this does not disable DCE |
17:08:34 | FromDiscord | <Rika> it just suppresses the warning |
17:08:48 | FromDiscord | <Rika> it will still be removed from the compiled artifact |
17:09:08 | FromDiscord | <Rika> In reply to @lantos "sorry meant this*": nothing you can do iirc |
17:13:05 | FromDiscord | <lantos> sent a long message, see http://ix.io/4nzt |
17:15:31 | FromDiscord | <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:03 | FromDiscord | <pancake> https://infosec.exchange/@radareorg/109835921122288441 |
17:21:12 | FromDiscord | <enthus1ast> what |
17:23:28 | FromDiscord | <pancake> i just added the initial support to script radare2 with nim, using the embedded quickjs runtime |
17:23:59 | FromDiscord | <enthus1ast> so you compile nim to js? (or quickjs)? |
17:25:29 | FromDiscord | <pancake> https://media.discordapp.net/attachments/371759389889003532/1073293575904837684/Screenshot_2023-02-09_at_18.25.19.png |
17:25:55 | FromDiscord | <pancake> compiles nim to js but uses the .qjs extension isntead. the only "syscall" needed is having the `r2cmd` defined |
17:26:38 | FromDiscord | <enthus1ast> ah ok, nice \:) |
17:26:46 | FromDiscord | <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:10 | FromDiscord | <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:09 | FromDiscord | <enthus1ast> afaik the compiler cannot be compiled for the js target |
17:30:20 | FromDiscord | <enthus1ast> but i've never tried |
17:35:41 | * | proportions joined #nim |
17:35:56 | proportions | noobs use real languages not this nim for small kids xaxaxa |
17:43:20 | FromDiscord | <Phil> ? |
17:49:54 | FromDiscord | <tfp> xaxaxaxa |
17:49:58 | * | proportions quit (K-Lined) |
17:56:58 | FromDiscord | <eyes> wahoo |
17:57:37 | * | ltriant joined #nim |
17:57:58 | FromDiscord | <eyes> sent a code paste, see https://play.nim-lang.org/#ix=4nzA |
17:58:20 | FromDiscord | <eyes> do I need to dereference the sequence somehow? |
18:01:08 | FromDiscord | <pyolyokh> theseq[].add |
18:02:07 | FromDiscord | <eyes> why are the ``[]`` necessary? |
18:02:15 | FromDiscord | <eyes> ill try it now but just wondering |
18:03:39 | * | ltriant quit (Ping timeout: 256 seconds) |
18:03:57 | FromDiscord | <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:10 | FromDiscord | <Yepoleb> In reply to @eyes "why are the ``[]``": that's the dereference operator |
18:17:09 | * | jmdaemon joined #nim |
18:17:10 | FromDiscord | <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:11 | FromDiscord | <pyolyokh> you have a hexagonal grid in the middle there, already. It just has some extra lines |
18:29:27 | FromDiscord | <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:21 | FromDiscord | <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:31 | FromDiscord | <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:10 | FromDiscord | <Hourglass [She/Her]> If I do `newSeq[MyType](10)` does it initialise the type? |
18:44:56 | FromDiscord | <pyolyokh> yes, you'll want <https://nim-lang.org/docs/system.html#newSeqUninitialized%2CNatural> otherwise |
18:48:21 | FromDiscord | <Hourglass [She/Her]> Hm alright |
18:48:35 | FromDiscord | <Hourglass [She/Her]> I'm trying to think of how I'd implement this ngl... It's difficult |
18:48:53 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#ix=4nzP |
18:49:04 | FromDiscord | <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:47 | FromDiscord | <4zv4l> sent a code paste, see https://paste.rs/XlR |
18:52:55 | FromDiscord | <4zv4l> I think that's because I close the clipboard before reading from the pointer |
19:32:38 | FromDiscord | <eyes> dies\ |
19:32:43 | FromDiscord | <eyes> just read the documentation for std/re |
19:32:56 | FromDiscord | <eyes> looks like it doesnt support regex groups? |
19:34:11 | FromDiscord | <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:34 | FromDiscord | <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:43 | FromDiscord | <eyes> (edit) "for" => "before" |
19:35:09 | FromDiscord | <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:54 | FromDiscord | <Hourglass [She/Her]> @eyes quick google search says `re` is deprecated, and you should be using `nre` instead? |
19:41:08 | FromDiscord | <Hourglass [She/Her]> Though, I don't touch regex so that's for you to test aha |
19:53:48 | FromDiscord | <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:04 | FromDiscord | <eyes> danke |
20:33:08 | FromDiscord | <ShalokShalom> In reply to @eyes "danke": bitte 😄 |
20:57:15 | FromDiscord | <Prestige> Is there a way to have like, an array of 9 bits? |
20:58:02 | FromDiscord | <jtv> You can use builtin sets. |
20:58:26 | FromDiscord | <jtv> Under the hood there will always be storage allocated that's aligned, generally to the full word size of the machine |
20:58:37 | FromDiscord | <jtv> But at least to the byte in any circumstance |
20:58:46 | FromDiscord | <Prestige> right, thanks |
21:00:08 | FromDiscord | <Elegantbeef> A set of 9 elements emits a 16bit integer unless you have a packed struct with bitfields |
21:00:35 | FromDiscord | <Elegantbeef> But yea you need 16bits regardless if you use 9..15 |
21:01:29 | FromDiscord | <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:56 | FromDiscord | <Elegantbeef> Yea the compiler generally does what's 'right' |
21:04:12 | FromDiscord | <turbo> Is there a way to use `getRow` with prepared statements? |
21:07:27 | FromDiscord | <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 |