00:53:25 | * | hochata quit (Remote host closed the connection) |
01:40:23 | * | arkurious quit (Quit: Leaving) |
03:16:38 | * | yolo quit (Quit: Client closed) |
03:44:18 | FromDiscord | <wantitall> sent a long message, see https://paste.rs/yGE |
03:44:53 | FromDiscord | <huantian> <@&371760044473319454> no way sounds like a great deal |
03:50:34 | FromDiscord | <Rainbow Asteroids> it is a great deal |
03:50:39 | FromDiscord | <Rainbow Asteroids> install grapheneos on your pixel now |
03:51:17 | FromDiscord | <Rainbow Asteroids> you should install it yourself tho |
03:51:48 | FromDiscord | <halc> In reply to @wantitall "Are you looking to": omg yes where do I get it |
03:53:16 | FromDiscord | <Rainbow Asteroids> ngl, i probably wouldn't trust a pixel with graphene os preinstalled by some guy on matrix |
03:53:27 | FromDiscord | <huantian> I wouldn't trust some guy on matrix |
03:54:00 | FromDiscord | <halc> I mean I wouldn't seriously trust a smartphone for privacy to begin with |
03:54:18 | FromDiscord | <halc> regardless of whatever OS it has |
03:56:21 | FromDiscord | <Rainbow Asteroids> well, it all depends on your threat model ig |
03:56:23 | FromDiscord | <Elegantbeef> Hello!↵(@huantian) |
03:56:33 | FromDiscord | <Rainbow Asteroids> In reply to @Elegantbeef "Hello! (<@300050030923087872>)": UNTRUSTWORTHY |
03:57:26 | FromDiscord | <Elegantbeef> I knew it |
04:59:05 | * | wallabra quit (Ping timeout: 265 seconds) |
05:16:32 | FromDiscord | <Require Support> sent a code paste, see https://play.nim-lang.org/#ix=4aHY |
05:18:14 | FromDiscord | <Elegantbeef> Well it's wrong to begin with `WStr` is not a cstring |
05:19:32 | FromDiscord | <Require Support> you mean i should be using `newWideCString()` ? |
05:19:35 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/widestrs.html is likely what you want |
05:19:38 | FromDiscord | <Elegantbeef> Of course |
05:19:50 | FromDiscord | <Elegantbeef> Nim strings are pascal strings that store characters utf8 encoded |
05:20:07 | FromDiscord | <Require Support> ye that fails too with the same error |
05:20:08 | FromDiscord | <Elegantbeef> I say that but they dont actually have any encoding |
05:22:22 | FromDiscord | <Require Support> sent a code paste, see https://play.nim-lang.org/#ix=4aI0 |
05:23:19 | FromDiscord | <Elegantbeef> oh you said `newWideCstring` |
05:23:40 | FromDiscord | <Elegantbeef> Or nevermind i cannot read |
05:25:07 | FromDiscord | <Elegantbeef> Seems to be a bug with Orc's cast |
05:26:26 | FromDiscord | <Require Support> i guess ill create an issue |
05:29:02 | FromDiscord | <Elegantbeef> This is weird |
05:29:05 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4aI3 |
05:30:39 | FromDiscord | <Elegantbeef> Oh wait 'nimv2' has a different implementation |
05:31:32 | FromDiscord | <Require Support> whats nimv2 🤔 |
05:31:40 | FromDiscord | <Elegantbeef> What orc/arc use |
05:31:45 | FromDiscord | <Require Support> ah ok |
05:31:59 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4aI4 |
05:33:26 | FromDiscord | <Require Support> oh wow nice |
07:24:51 | FromDiscord | <Require Support> can anyone explain this error to a 5 year old `template/generic instantiation of `async` from here` |
07:25:31 | * | meowray quit (Quit: ZNC 1.8.2 - https://znc.in) |
07:25:41 | * | meowray joined #nim |
07:26:28 | FromDiscord | <Elegantbeef> That isnt the error message that's telling you where the error occured |
07:27:17 | FromDiscord | <Elegantbeef> Templates/generics are not actually called from where you wrote them each call instantiates them at the call site(assuming you never called the generic prior) as such any compile time error is inside the generic instantation which points back to the source template/generic |
07:53:03 | * | rockcavera quit (Remote host closed the connection) |
08:07:35 | NimEventer | New Nimble package! zigcc - wraps `zig cc` to be able to be called by the nim compiler, see https://github.com/enthus1ast/zigcc |
08:08:51 | FromDiscord | <Phil> The zigcc package wasn't even in the package list and you still got 10 stars? Dang, now on to make it enthus1ast 's most popular package! |
08:16:13 | FromDiscord | <enthus1ast> Imho it wasn't merged yet |
08:18:05 | FromDiscord | <enthus1ast> Yesterday I was trying to (quickly) crosscompile from windows to freebsd, but it seems that freebsd is not yet 1 tier target |
08:18:21 | FromDiscord | <enthus1ast> Had not much time to investigate, though |
08:18:37 | FromDiscord | <enthus1ast> I mean zig first tier target |
08:22:36 | FromDiscord | <Goel> https://play.nim-lang.org is down, at lest form me |
08:22:44 | FromDiscord | <Goel> (edit) "lest form" => "least for" |
08:22:54 | FromDiscord | <Yardanico> Does anyone know if GitHub has a limit on how much people you can tag in a single post (in an issue)? I'm making a list of "bad" nimble packages (missing .nimble file, rewritten in another language, code in the wrong branch, etc), so I want to ping all the developers of these packages |
08:23:23 | FromDiscord | <Elegantbeef> Based off the unreal engine issue nope |
08:23:25 | FromDiscord | <Yardanico> kinda wrong channel, sorry, should've posted in offtopic :P |
08:23:25 | FromDiscord | <Goel> (edit) "me" => "me↵play.nim-lang.org↵Host Error - Error code 504" |
08:23:29 | FromDiscord | <Yardanico> In reply to @Elegantbeef "Based off the unreal": ok, thanks |
08:23:34 | FromDiscord | <Elegantbeef> Though that was a group that was ping |
08:24:15 | FromDiscord | <Elegantbeef> You can just send my ping to the nearest paper shredder |
08:24:16 | FromDiscord | <Elegantbeef> 😛 |
08:29:38 | FromDiscord | <Elegantbeef> That does remind me, that nimble directory redesign should be done any time now 😄 |
08:34:04 | FromDiscord | <Yardanico> https://github.com/nim-lang/packages/issues/1807#issuecomment-1250029447 |
08:34:34 | FromDiscord | <Yardanico> i hope people don't swear at me for pinging, since some of them already stopped using NIm :P |
08:34:50 | FromDiscord | <Yardanico> that said, I should also check all nimble repos and make a PR to mark all archived repos as "abandoned" (which is what archiving usually for) |
08:35:43 | FromDiscord | <Yardanico> oops, one false positive, removed it |
08:38:18 | FromDiscord | <Phil> HAH! Not in the list! |
08:38:49 | FromDiscord | <Yardanico> lol |
08:40:28 | FromDiscord | <Yardanico> now I actually wonder how many repos out of all of them are archived |
08:42:59 | FromDiscord | <Yardanico> because with pkgraph I just cloned repos, and github clones archived repos just fine |
08:51:14 | * | jjido joined #nim |
08:53:12 | FromDiscord | <Yardanico> ok at least github has an easy rest api, going to iterate over all nimble repos and see how many are archived |
09:31:58 | FromDiscord | <Yardanico> btw @ethus1st regarding zigcc - you should probably mention in the readme or do it in the code yourself - `zig cc` by default compiles code with undefined sanitizer on, so some Nim code (especially refc) will just make the program crash |
09:32:22 | FromDiscord | <Yardanico> https://github.com/Yardanico/ircord/blob/master/zig-compile-vps.sh `-fno-sanitize=undefined` |
09:32:50 | FromDiscord | <Yardanico> https://github.com/ziglang/zig/wiki/FAQ#why-do-i-get-illegal-instruction-when-using-with-zig-cc-to-build-c-code |
09:33:14 | FromDiscord | <Yardanico> ah, seems like it only enables the sanitizer for debug builds, which is still kind of an issue of course |
09:34:20 | FromDiscord | <Rika> Why is UBSan giving issues with Nim when undefined is sanitised? |
09:34:50 | FromDiscord | <Yardanico> In reply to @Rika "Why is UBSan giving": because UBSAN thinks that some Nim-compiled C code is wrong |
09:34:55 | FromDiscord | <Rika> Well why |
09:34:57 | FromDiscord | <Yardanico> especially regarding refc and its stack scanning, it really, really doesn't like that |
09:35:01 | FromDiscord | <Rika> Has it been reported |
09:35:06 | FromDiscord | <Yardanico> In reply to @Rika "Well why": i don't know, you'd have to spend quite some time to debug it |
09:35:15 | FromDiscord | <Rika> Okay |
10:38:18 | FromDiscord | <flywind> `N_LIB_PRIVATE NIM_CONST NimStringV2 usedToFailtest50_5 = TMM9a4nZf9aKCvDciNqebSjH0A_3;` gives an error when I open the c file directly, but the Nim program compiles successfully |
10:38:21 | FromDiscord | <flywind> ` error: initializer element is not a compile-time constant` |
10:40:26 | FromDiscord | <flywind> cannot say whether it is the version of the C compiler or the mingw compiler that is the problem |
11:20:30 | FromDiscord | <ravinder387> In reply to @Goel "https://play.nim-lang.org is down, at": https://wandbox.org/ try this |
11:23:09 | FromDiscord | <ravinder387> In reply to @Rika "Okay": when nim's next version will released? |
11:23:17 | FromDiscord | <Rika> I would not know |
11:25:02 | FromDiscord | <ravinder387> In reply to @Rika "I would not know": do u use python for ur job |
11:25:15 | FromDiscord | <Rika> Not as of now |
11:25:45 | FromDiscord | <ravinder387> r u college student |
11:25:57 | FromDiscord | <Rika> Guess |
11:26:14 | FromDiscord | <ravinder387> u r drop out |
11:27:51 | FromDiscord | <ravinder387> guess abt me |
11:28:35 | FromDiscord | <auxym> @ravinder387 take this stuff to #offtopic if its not nim related |
11:32:12 | FromDiscord | <ravinder387> In reply to @auxym "<@848569854134845480> take this stuff": I want to draw linear equation by canvas "2 x + 1". how to evaluate it in nim |
11:32:33 | FromDiscord | <ravinder387> i can eval in javascript by eval("2x + 1") |
11:35:41 | FromDiscord | <demotomohiro> How about to use this: https://github.com/beef331/nimscripter |
11:46:16 | * | wallabra joined #nim |
11:57:41 | * | arkurious joined #nim |
12:06:30 | FromDiscord | <enthus1ast> @ravinder387\: https://github.com/Yardanico/nim-mathexpr |
12:07:20 | * | jmdaemon quit (Ping timeout: 268 seconds) |
12:38:20 | FromDiscord | <ravinder387> In reply to @enthus1ast "<@848569854134845480>\: https://github.com/Yardanic": how to eval at x = 0, 1, 2 ..... by loop |
12:38:47 | FromDiscord | <ravinder387> f(x) = 2x + 1 |
12:39:34 | FromDiscord | <Rika> Please read the documentation, you can have variables and set them and whatnot |
12:43:52 | FromDiscord | <ravinder387> In reply to @Rika "Please read the documentation,": in which domain nim fits very well acc to u |
12:47:53 | FromDiscord | <Rika> Most domains |
12:49:30 | FromDiscord | <S3cur3Th1sSh1t> Any idea on how to increase the Stack Size for Nim Windows binaries? Regarding to the Nim compiler `-d:nimThreadStackSize=16384`only works for Zephyr and FreeRTOS . Also tried using mingw-gcc compiler flags such as `--passC:"-Wl,--stack,16384"` but that also doesn't help in my case. I'm having a huge byte array, which always causes SegFault when creating a Thread https://media.discordapp.net/attachments/371759389889003532/102067787 |
13:16:51 | * | yolo joined #nim |
13:34:16 | * | jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) |
13:47:53 | FromDiscord | <Phil> In reply to @ravinder387 "when nim's next version": Personally, I'd just say use devel |
13:48:10 | FromDiscord | <Phil> (edit) "In reply to @ravinder387 "when nim's next version": Personally, I'd just say use ... develbranch" added "nim's" | "nim'sdevel ... " added "branch" |
13:55:40 | * | yolo quit (Quit: leaving) |
13:57:18 | * | CyberTailor joined #nim |
14:55:42 | * | jjido joined #nim |
14:58:42 | * | def- quit (Quit: -) |
14:58:52 | * | def- joined #nim |
15:16:50 | FromDiscord | <demotomohiro> @S3cur3Th1sSh1t Use `--passL` instead of `--passC` work? |
15:29:10 | FromDiscord | <S3cur3Th1sSh1t> In reply to @demotomohiro "<@605765004796362820> Use `--passL` instead": Got only compiler errors with that. |
15:31:27 | * | jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) |
15:33:07 | FromDiscord | <Phil> I can only use nimble to write commands that call the nim compiler, correct?↵I could not, for example, define a nimble task that generates a docker image for me from an existing dockerfile, could I? |
15:33:36 | FromDiscord | <Phil> Like, nimble-ify this command `sudo docker build --file dockerfile.nginx --tag nimstoryfont-nginx .` |
15:36:37 | FromDiscord | <retkid> whats the best way to block between threads |
15:36:39 | FromDiscord | <retkid> my idea was channels |
15:40:09 | FromDiscord | <retkid> do locks wait |
15:40:33 | FromDiscord | <retkid> if i lock something does a thread wait and then acquire it when it can |
15:44:26 | FromDiscord | <Phil> In reply to @retkid "if i lock something": It should, afaik that's pretty much how locks work and how you prevent parallel access to shared memory |
15:44:41 | FromDiscord | <retkid> in this case its to test io efficiency |
15:44:48 | FromDiscord | <Phil> (e.g. when connection pooling) |
15:45:17 | FromDiscord | <retkid> yea basically what im doing just for an io test |
15:45:37 | FromDiscord | <retkid> threads exist on shared and down violate gc saftey |
15:45:38 | FromDiscord | <retkid> correct |
15:46:17 | FromDiscord | <Phil> I can give no further information than that, never did parallelized IO or the like, I can just tell you that for parallel access, locks can be useful |
15:47:12 | FromDiscord | <retkid> generally async would be bette |
15:47:20 | FromDiscord | <retkid> but i dont know async and i dont wanna spend more time |
15:47:24 | FromDiscord | <retkid> so /shrug |
15:48:06 | FromDiscord | <Phil> Imo in terms of complexity:↵"Normal" code (synchronous, single threaded) > Async > Multi-threaded |
15:48:43 | FromDiscord | <retkid> i have a far easier time writing multithreaded code |
15:49:44 | FromDiscord | <Phil> Basic Async isn't all that hard, you just need to wrap your head around the fact that you have "placeholders" (in JS Promises and/or Observables, in nim Futures, in Java it depends on the framework) and you no longer act on data, you just hand your placeholder procs to execute once the data is there |
15:50:03 | FromDiscord | <Phil> (edit) "Basic Async isn't all that hard, you just need to wrap your head around the fact that you have "placeholders" (in JS Promises and/or Observables, in nim Futures, in Java it depends on the framework) and you no longer act on data, you just hand your ... placeholdersome" added "particular" | "particularplaceholder ... procs" added "some" |
15:50:42 | FromDiscord | <Phil> Unless the issue isn't conceptual but clothing that into nim syntax, never used nim async so not sure how hard it actually is or isn't |
15:50:53 | FromDiscord | <retkid> oh god |
15:50:59 | FromDiscord | <retkid> i might need to use channels |
15:50:59 | FromDiscord | <retkid> :notlikethis: |
15:51:14 | FromDiscord | <retkid> nah i dont actually |
16:13:49 | FromDiscord | <Kiloneie> How do you display the name name/identifier of a field name of an object/tuple, i know i knew this, but i cannot recall... |
16:18:19 | FromDiscord | <demotomohiro> In reply to @S3cur3Th1sSh1t "Any idea on how": It seems threads stack size is hardcoded in https://github.com/nim-lang/Nim/blob/devel/lib/system/threads.nim↵I think you need to use seq instead of large array. |
16:19:27 | FromDiscord | <Prestige> @Kiloneie There's a `fieldPairs` iterator for objects |
16:19:35 | FromDiscord | <retkid> https://media.discordapp.net/attachments/371759389889003532/1020730748623388732/hhdtest.nim |
16:19:37 | FromDiscord | <Prestige> Or repr if you're trying to just echo something |
16:19:40 | FromDiscord | <retkid> heres some code |
16:19:41 | FromDiscord | <retkid> rate me |
16:22:33 | FromDiscord | <demotomohiro> In reply to @Kiloneie "How do you display": When you cannot recall it, read here: https://nim-lang.org/docs/iterators.html |
16:27:02 | FromDiscord | <Kiloneie> ah, thank you both, i could of typed field or fields in the search and find it... oh well. |
16:27:56 | * | jjido joined #nim |
16:34:29 | FromDiscord | <Goel> How can i turn this string `"Pixel(r: 0, g: 0, b: 0, a: 0)"` into a real type Pixel with that data? (Pixel is already defined as a type of that kind in my program)↵I tried lookin in strutils and sequtils but can't find the right proc. Do i need to create a macro (Please god no) |
16:34:58 | FromDiscord | <Goel> (edit) "macro" => "macro?" |
16:36:55 | FromDiscord | <auxym> yeah I think you can use `parseStmt` from std/macros. Needs to be a static string though (known/constant at compile time) |
16:37:32 | FromDiscord | <auxym> If you want to do it at runtime, you can implement a rudimentary "parser" using strscans or a regex |
16:39:26 | FromDiscord | <Bubblie> Is there nim bindings to the physics library bullet? |
16:41:28 | * | kenran joined #nim |
16:43:45 | * | kenran quit (Client Quit) |
17:21:41 | FromDiscord | <planetis> Ask gamedev but also search nimble.directory |
17:26:05 | FromDiscord | <!!sharpcdf!!> im getting this error when trying to build a hello world app with nimview, does anyone know what the problem is? https://pastebin.com/FRa6xsJ9 |
17:26:31 | FromDiscord | <!!sharpcdf!!> im not missing webkit or gcc, i have no clue why it doesnt work |
17:29:16 | * | CyberTailor left #nim (Konversation terminated!) |
17:32:11 | FromDiscord | <!!sharpcdf!!> sent a code paste, see https://play.nim-lang.org/#ix=4aKQ |
17:32:24 | FromDiscord | <!!sharpcdf!!> i cant build anything with nimview, but i cant even install futhark |
17:46:45 | FromDiscord | <Yardanico> In reply to @sharpcdf "and another error when": you need to install clang as futhark depends on libclang to parse C code :) |
17:48:17 | FromDiscord | <!!sharpcdf!!> In reply to @Yardanico "you need to install": how can I get libclang? I don't see it in dnf |
17:49:01 | FromDiscord | <!!sharpcdf!!> do i just install it from the llvm website? |
17:49:53 | FromDiscord | <Yardanico> In reply to @sharpcdf "how can I get": again, you just install clang |
17:50:14 | FromDiscord | <Yardanico> from dnf |
17:50:16 | FromDiscord | <!!sharpcdf!!> i already have clang installed |
17:50:20 | FromDiscord | <!!sharpcdf!!> from dnf |
17:50:34 | FromDiscord | <!!sharpcdf!!> 14.0.5 |
17:50:46 | FromDiscord | <Yardanico> or also try `clang-tools-extra` |
17:50:52 | FromDiscord | <Yardanico> just find a package that installs libclang |
17:54:40 | * | xet7 quit (Remote host closed the connection) |
18:01:21 | FromDiscord | <!!sharpcdf!!> got it to work, for some reason i had everything installed BUT clang-devel |
18:04:52 | FromDiscord | <Iliketwertles> sent a code paste, see https://play.nim-lang.org/#ix=4aKY |
18:05:15 | FromDiscord | <Iliketwertles> (edit) |
18:06:20 | FromDiscord | <huantian> return exits the function the first time it hits |
18:06:29 | FromDiscord | <huantian> so it'll do `return 0` and exit with a value of `0` |
18:06:37 | FromDiscord | <huantian> if you want an iterator use `iterator` instead of `proc` |
18:06:52 | FromDiscord | <!!sharpcdf!!> or just `echo i` instead of `return i` |
18:06:59 | FromDiscord | <huantian> mhm |
18:09:24 | FromDiscord | <Iliketwertles> tryna generate and return all the color codes, this does alot but im sure not all of them https://media.discordapp.net/attachments/371759389889003532/1020758381595730060/screenshot_2022-09-17-140838.png |
18:10:02 | * | jmdaemon joined #nim |
18:10:46 | FromDiscord | <!!sharpcdf!!> that would just echo `1, 1, 1` to `255, 255, 255` youll need a different `i` for each value |
18:11:34 | FromDiscord | <Iliketwertles> id need some way to loop all 255 of r with all 255 of g and same for b to get all of them |
18:11:41 | FromDiscord | <Iliketwertles> (i think) |
18:12:13 | FromDiscord | <exithead> Yup three for loops |
18:12:23 | FromDiscord | <huantian> sent a code paste, see https://play.nim-lang.org/#ix=4aL0 |
18:12:32 | FromDiscord | <huantian> but note that that's 16 million colors |
18:12:47 | FromDiscord | <Iliketwertles> hmm |
18:13:08 | FromDiscord | <Iliketwertles> this either gonna crash my pc or look rly cool, the plan is to set window boarder colors |
18:13:21 | FromDiscord | <Iliketwertles> making it rbg lol |
18:13:25 | FromDiscord | <Iliketwertles> (edit) "rbg" => "rgb" |
18:13:43 | FromDiscord | <huantian> (edit) "https://play.nim-lang.org/#ix=4aL0" => "https://play.nim-lang.org/#ix=4aL1" |
18:14:53 | FromDiscord | <S3cur3Th1sSh1t> In reply to @demotomohiro "It seems threads stack": Seq is not stored on the stack? |
18:16:57 | FromDiscord | <demotomohiro> @S3cur3Th1sSh1t Only length and pointer are stored on the stack, its contents is stored on the heap. |
18:21:11 | FromDiscord | <S3cur3Th1sSh1t> In reply to @demotomohiro "<@605765004796362820> Only length and": Than I should normally not run in a stack overflow in any case? I mean length and pointers will not take that much size.. |
18:24:20 | FromDiscord | <Iliketwertles> ive exceded my knowledge again |
18:24:29 | FromDiscord | <Iliketwertles> (edit) "exceded" => "exceeded" |
18:24:36 | FromDiscord | <Iliketwertles> https://media.discordapp.net/attachments/371759389889003532/1020762205228118026/screenshot_2022-09-17-142403.png |
18:26:16 | FromDiscord | <huantian> you probably want to use hsv instead of rgb btw, since, for example, (0, 0, 255) is the same color as (0, 0, 100), just different brightness. |
18:26:22 | FromDiscord | <demotomohiro> @S3cur3Th1sSh1t seq rarely cause stack overflow unless you call proc recursively. |
18:27:03 | FromDiscord | <Iliketwertles> In reply to @huantian "you probably want to": why doesnt this compile tho? |
18:27:17 | FromDiscord | <huantian> `execShellCmd` returns the status code of the command |
18:27:27 | FromDiscord | <Kiloneie> How do you properly read this: https://nim-lang.org/docs/estp.html as in profiler data ? i don't fully understand it |
18:27:37 | FromDiscord | <huantian> so you need to put `discard` before it if you don't want that status code for anything |
18:28:09 | FromDiscord | <demotomohiro> @S3cur3Th1sSh1t You can see how much seq uses stack with `sizeof(seq[int])`. |
18:29:40 | FromDiscord | <S3cur3Th1sSh1t> In reply to @demotomohiro "<@605765004796362820> You can see": Im just assuming my error is something completely different. I was just able to load other even bigger files into an array to run them from memory. So it seams to be not a problem with the size. |
18:29:50 | FromDiscord | <S3cur3Th1sSh1t> And or stack length |
18:30:26 | FromDiscord | <huantian> wait are you using arrays or seq? |
18:31:05 | FromDiscord | <!!sharpcdf!!> wheres the clang include directory on fedora? i found one in `/usr/include/clang` but when trying to use futhark it errors with `'stddef.h' file not found` |
18:31:37 | FromDiscord | <!!sharpcdf!!> sent a code paste, see https://play.nim-lang.org/#ix=4aL6 |
18:31:47 | FromDiscord | <!!sharpcdf!!> specifically https://github.com/javalikescript/webview-c |
18:40:57 | FromDiscord | <demotomohiro> @S3cur3Th1sSh1t If an array is declared on top level (Out size of any procedures), it is stored on the static storage, not stack. So you don't get stack overflow even if it is larger than stack size. |
18:52:06 | FromDiscord | <S3cur3Th1sSh1t> In reply to @demotomohiro "<@605765004796362820> If an array": Thats the case. |
18:59:10 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#ix=4aLl |
19:27:53 | * | krux02 joined #nim |
19:30:11 | FromDiscord | <S3cur3Th1sSh1t> Than this is definitely not the problem. It’s something different but I’m now clueless again. |
19:38:56 | FromDiscord | <Iliketwertles> this trims last character off of a string, how can i trim the first? |
19:39:08 | FromDiscord | <Iliketwertles> sent a code paste, see https://play.nim-lang.org/#ix=4aLC |
19:39:31 | FromDiscord | <Iliketwertles> not sure completly how the [.. ^2] works |
19:47:40 | FromDiscord | <Kermithos> sent a code paste, see https://play.nim-lang.org/#ix=4aLH |
19:47:58 | FromDiscord | <Elegantbeef> `[1..^1]` is more idiomatic |
19:48:02 | FromDiscord | <Kermithos> (edit) "https://play.nim-lang.org/#ix=4aLH" => "https://play.nim-lang.org/#ix=4aLI" |
19:48:08 | FromDiscord | <Elegantbeef> it also doesnt cause the off by one error the above does 😄 |
19:48:26 | FromDiscord | <Kermithos> oh yea, forgot about that |
19:52:23 | * | jjido quit (Ping timeout: 268 seconds) |
19:52:55 | FromDiscord | <huantian> `..^2 `means slice everything from the start up to and including the last character |
19:53:01 | FromDiscord | <huantian> (edit) "`..^2 `means slice everything from the start up to and including the ... last" added "2nd to" |
19:58:05 | FromDiscord | <Iliketwertles> In reply to @huantian "you probably want to": where can i look into this? |
20:01:00 | * | rockcavera joined #nim |
20:01:01 | * | rockcavera quit (Changing host) |
20:01:01 | * | rockcavera joined #nim |
20:01:05 | FromDiscord | <Iliketwertles> cause it has to output to a hex color code, or whatever 0xffHEXCODE is called |
21:37:15 | FromDiscord | <retkid> hey guys |
21:37:23 | FromDiscord | <retkid> does anyone here have experience with tamuri |
21:37:33 | FromDiscord | <retkid> and would it be useful for the community to develop bindings |
21:37:35 | FromDiscord | <retkid> do you think |
21:47:38 | * | vicecea quit (Remote host closed the connection) |
21:50:18 | * | vicecea joined #nim |
22:08:02 | FromDiscord | <Elegantbeef> The fuck is tamuri? |
22:39:24 | FromDiscord | <huantian> maybe he meant tauri? |
22:39:56 | FromDiscord | <Elegantbeef> Perhaps |
22:49:07 | * | koltrast quit (Ping timeout: 248 seconds) |
22:49:37 | * | koltrast joined #nim |
22:50:28 | FromDiscord | <!!sharpcdf!!> well if he did, tauri already has planned nim bindings afaik |
23:09:12 | FromDiscord | <Iliketwertles> the whole `when defined linux` to see if the system ran on is linux, what is macos's version?↵is it darwin? |
23:17:06 | FromDiscord | <Elegantbeef> https://github.com/nim-lang/Nim/wiki/Consts-defined-by-the-compiler |
23:19:35 | FromDiscord | <Iliketwertles> appreciate it |
23:58:18 | * | wallabra_ joined #nim |
23:59:20 | * | wallabra quit (Ping timeout: 244 seconds) |