00:00:57 | * | skippy8 joined #nim |
00:02:53 | * | skippy8 quit (Client Quit) |
01:18:21 | FromDiscord | <heysokam> In reply to @xtrayambak "Does anyone know what": `importc` pragma works on fields |
01:19:29 | FromDiscord | <heysokam> https://github.com/heysokam/wgpu/blob/b88fb2dcf80eda0f94b77c407bf6b3ba6afb95a5/src/wgpu/types.nim#L58-L60 |
01:38:40 | * | ftajhii quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
01:52:06 | * | ftajhii joined #nim |
01:58:15 | tokyovigilante | Is there any way to get sub-millisecond precision with asyncdispatch’s addTimer()? |
02:03:01 | * | rockcavera joined #nim |
05:02:19 | * | skippy8 joined #nim |
05:30:58 | * | skippy8 quit (Quit: WeeChat 4.5.2) |
06:09:36 | FromDiscord | <heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=cSZuOOPh |
06:09:56 | * | anddam quit (Ping timeout: 252 seconds) |
06:11:17 | FromDiscord | <Elegantbeef> Use a template |
06:12:33 | FromDiscord | <heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=tQMiafQh |
06:12:45 | FromDiscord | <heysokam> I thought there might be a way without having to know the args |
06:13:01 | FromDiscord | <Elegantbeef> Yea a macro 😛 |
06:13:18 | FromDiscord | <heysokam> yea, i'm not doing that 🙈 |
06:13:29 | FromDiscord | <heysokam> kk tyty |
06:14:36 | FromDiscord | <Elegantbeef> Your loss |
06:23:07 | * | anddam joined #nim |
06:34:45 | FromDiscord | <heysokam> the preservation of sanity more that compensates for the loss of knowledge 🙈 |
06:37:27 | * | amadaluzia joined #nim |
06:56:54 | * | ntat joined #nim |
06:59:37 | * | amadaluzia quit (Quit: Hi, this is Paul Allen. I'm being called away to London for a few days. Meredith, I'll call you when I get back. Hasta la vista, baby.) |
07:28:20 | * | skippy8 joined #nim |
07:45:05 | * | skippy8 quit (Quit: WeeChat 4.5.2) |
07:45:12 | * | skippy8_ joined #nim |
07:46:26 | * | derpydoo joined #nim |
07:53:41 | * | skippy8_ quit (Quit: WeeChat 4.6.1) |
08:05:04 | * | derpydoo quit (Ping timeout: 244 seconds) |
09:19:14 | FromDiscord | <jseb> sent a code paste, see https://play.nim-lang.org/#pasty=qeGsOeJF |
09:24:55 | * | beholders_eye joined #nim |
09:28:05 | * | andy-turner joined #nim |
09:28:30 | * | andy-turner quit (Remote host closed the connection) |
09:29:01 | * | andy-turner joined #nim |
10:22:35 | * | beholders_eye quit (Ping timeout: 260 seconds) |
10:25:54 | * | alexdaguy joined #nim |
10:35:58 | FromDiscord | <demotomohiro> In reply to @jseb "can you tell me": https://nim-lang.org/docs/manual.html#procedures-anonymous-procedures |
10:44:56 | FromDiscord | <lainlaylie> you're trying to set the default value of `bar: proc()` to `echo "bar"`, which is not an expression |
10:53:41 | FromDiscord | <.throwstar> How do i apply flags to the nim compiler from my nimble build script |
11:21:02 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=gzxSxsZM |
11:33:25 | * | beholders_eye joined #nim |
11:39:19 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=oSQoeIcd |
11:48:44 | * | beholders_eye quit (Ping timeout: 260 seconds) |
11:50:40 | * | beholders_eye joined #nim |
12:17:24 | FromDiscord | <subto4inn> can anyone teach me python |
12:27:53 | FromDiscord | <tomo_kimpesa> with pay? |
12:35:13 | FromDiscord | <kapendev> print("hello world") |
12:35:32 | FromDiscord | <kapendev> That's python. |
12:36:15 | FromDiscord | <tomo_kimpesa> i think python goes |
12:36:19 | FromDiscord | <tomo_kimpesa> ssssss sssss |
12:36:40 | FromDiscord | <0xfab_10> (a:=1,b:=2,a+b)[-1] |
12:36:59 | FromDiscord | <0xfab_10> up up and away |
13:02:46 | FromDiscord | <jseb> @demotomohiro & @lainlaylie : thank you (i still have difficult to define what is an « expression » ( i was thinking an anonymous function could be an expression) |
13:09:50 | FromDiscord | <lainlaylie> an expression is a piece of code that has a value.↵as others have pointed out this is possible, you just need to use the correct syntax |
13:10:18 | FromDiscord | <lainlaylie> (edit) "this" => "what youre trying to do" |
13:11:27 | FromDiscord | <jseb> so to get a value, i should define in the object an empty ref function, and then assign function content to it ? |
13:11:44 | FromDiscord | <jseb> the ref is a value (pointer) |
13:12:08 | FromDiscord | <lainlaylie> In reply to @demotomohiro "You need to use": this works as is |
13:12:32 | FromDiscord | <jseb> oh i had missed that, sorry |
13:14:09 | FromDiscord | <lainlaylie> sent a code paste, see https://play.nim-lang.org/#pasty=EcnEXWbv |
13:14:47 | * | andy-turner quit (Quit: Leaving) |
13:14:48 | FromDiscord | <jseb> i note the two forms, thank you |
13:15:16 | FromDiscord | <lainlaylie> specifically, the first `proc ()` is the type of `bar`, and `proc () = echo ("bar")` is the anonymous proc |
13:17:57 | * | andy-turner joined #nim |
13:32:01 | * | beholders_eye quit (Ping timeout: 248 seconds) |
13:33:53 | * | beholders_eye joined #nim |
13:39:06 | FromDiscord | <jseb> sent a code paste, see https://play.nim-lang.org/#pasty=TIemmZDb |
13:41:47 | FromDiscord | <griffith1deadly> In reply to @jseb "ah that's not so": https://play.nim-lang.org/#pasty=WWmfOXQr |
13:45:35 | FromDiscord | <jseb> ah here is the `default` usage. Definitely a bit hard for me, i think i will stick to simpler code for now, but i've written all was here, thank you |
13:54:13 | * | amadaluzia joined #nim |
14:00:11 | * | drewr joined #nim |
14:17:43 | FromDiscord | <lainlaylie> look at demo's code again and read this part of the manual https://nim-lang.org/docs/manual.html#types-default-values-for-object-fields |
14:27:39 | * | alexdaguy quit (Read error: Connection reset by peer) |
16:28:05 | * | beholders_eye quit (Ping timeout: 248 seconds) |
17:28:16 | * | beholders_eye joined #nim |
18:16:46 | * | travis joined #nim |
18:18:29 | * | beholders_eye quit (Ping timeout: 248 seconds) |
18:37:38 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=dBtgFmsR |
18:38:08 | FromDiscord | <aintea> yes I shouldn't shout CONSTANT but that's not my point |
18:45:59 | * | pbsds35 quit (Quit: The Lounge - https://thelounge.chat) |
18:48:10 | * | pbsds35 joined #nim |
18:52:03 | travis | I'm trying to create some large arrays https://play.nim-lang.org/#pasty=ZFmTUwtC |
18:52:47 | travis | compiler gives weird gcc errors well short of representable size |
18:53:26 | travis | lots of weirdness highlighted in the pasty .... is this a nim compiler bug? |
18:54:54 | Amun-Ra | what's your nim version? compiles on 2.2.2 |
18:55:54 | Amun-Ra | not that the code is fine by itself… |
18:57:06 | travis | yes it compuiles as is ... the issue is trying to increase the size of any of those three arrays ... same issue on 2.2.0 and 2.2.4 |
18:57:37 | Amun-Ra | the second question shouldbe what's you max stack size ;) |
18:58:32 | travis | oooh, right |
19:00:14 | travis | lo, problem solved, thanks Amun-Ra! |
19:00:29 | Amun-Ra | no worries :> |
19:18:17 | FromDiscord | <Elegantbeef> You likely should do `new array[Len, T]` unless you really want to load your stack up |
19:28:08 | FromDiscord | <Mason Wheeler> Just updated my Nim compiler to the latest version, and suddenly debugging in VS Code stopped working. Specifically, I can build and run a project, but it no longer breaks at breakpoints. |
19:28:38 | FromDiscord | <Mason Wheeler> Any ideas as to how to track down what's going wrong? |
19:40:17 | * | ntat quit (Quit: leaving) |
20:03:46 | * | skippy8 joined #nim |
20:04:16 | * | skippy8 quit (Client Quit) |
20:04:48 | * | skippy8 joined #nim |
20:05:02 | * | skippy8 quit (Client Quit) |
20:05:37 | * | skippy8 joined #nim |
20:48:30 | * | andy-turner quit (Quit: Leaving) |
20:48:47 | * | andy-turner joined #nim |
20:49:09 | * | andy-turner quit (Remote host closed the connection) |
21:21:46 | * | amadaluzia quit (Quit: Hi, this is Paul Allen. I'm being called away to London for a few days. Meredith, I'll call you when I get back. Hasta la vista, baby.) |
21:59:17 | FromDiscord | <heysokam> In reply to @aintea "Let's say I have": I do `func new(_:typedesc[ScanSettings]; .....`↵and then `ScanSettings.new(....)`↵but other people argue that `new` should be only for refs↵Depends on your style, I prefer it when creating any type of object, but purely stylistic I'd say |
22:03:07 | FromDiscord | <heysokam> I have `new` as a keyword in my theme, so it plays nicer with readability https://media.discordapp.net/attachments/371759389889003532/1367622388359106710/image.png?ex=6815411a&is=6813ef9a&hm=82b437c217d537539363b6007e4199f3421684b254174890bfdcc40dd5c1fa60& |
22:04:59 | * | beholders_eye joined #nim |
22:07:23 | * | skippy8 quit (Quit: WeeChat 4.5.2) |
22:07:47 | * | skippy8 joined #nim |
22:07:58 | FromDiscord | <griffith1deadly> In reply to @heysokam "I do `func new(_:typedesc[ScanSettings];": i also do not like the formation at the level of the official code format and status-im that ref is new, object is init |
22:09:51 | * | redj quit (Ping timeout: 252 seconds) |
22:09:56 | FromDiscord | <heysokam> yea, for me init is for processes, create for allocations, and new just for creation in general↵but could be argued in any direction 🤷♂️ |
22:10:16 | FromDiscord | <mr_rowboto> Hi, nice to meet you all, I was about to ask about the state of nimgl/Vulkan but searching the server got me the answers I needed uu |
22:10:25 | FromDiscord | <mr_rowboto> (edit) "nimgl/Vulkan" => "`nimgl/Vulkan`" |
22:10:27 | FromDiscord | <heysokam> In reply to @mr_rowboto "Hi, nice to meet": abandoned |
22:10:35 | FromDiscord | <heysokam> nimgl is very outdated |
22:10:47 | FromDiscord | <mr_rowboto> And Daniel did some excellent work, but he has no time to keep it up to date. |
22:11:01 | FromDiscord | <mr_rowboto> I've been going back and forth with his branch and planet's |
22:11:07 | FromDiscord | <mr_rowboto> (edit) "branch" => "branch(es)" |
22:11:21 | FromDiscord | <mr_rowboto> (edit) "planet's" => "planetis-m's" |
22:11:26 | FromDiscord | <heysokam> yea, we have been struggling to finish up vulkannim |
22:11:41 | FromDiscord | <heysokam> will eventually happen, but work gets in the way |
22:11:51 | FromDiscord | <griffith1deadly> In reply to @heysokam "yea, for me init": for me as started from java accepting new is easier, i think |
22:12:15 | FromDiscord | <mr_rowboto> I have a couple small fixes to push, but there are so many repos that I don't know where it would be less wasted. |
22:12:42 | FromDiscord | <mr_rowboto> (mostyl application.nim has two outdated references to vkMakeVersion) |
22:12:56 | FromDiscord | <heysokam> In reply to @mr_rowboto "I have a couple": I can vouch for Daniel's work, as I'm part of that effort. But I don't know planetis's effort well and I'm biased |
22:13:00 | FromDiscord | <mr_rowboto> (edit) "vkMakeVersion)" => "vkMakeVersion, and the generator is not reading on the proper dir)" |
22:13:27 | FromDiscord | <heysokam> In reply to @mr_rowboto "(mostyl application.nim has two": is this on the branch, or on main? |
22:13:41 | FromDiscord | <mr_rowboto> let me check, my head is all messed up after watching like 4 repos |
22:14:34 | FromDiscord | <mr_rowboto> In reply to @heysokam "is this on the": oh, my fixes are on `planetis-m` |
22:14:42 | FromDiscord | <heysokam> ah gotcha |
22:15:29 | FromDiscord | <mr_rowboto> On David's `nimble test` works just fine, however `nimble gen` fetches most recent `vk.xml` which of course breaks everything. |
22:16:00 | FromDiscord | <mr_rowboto> And for some reason, even pinning it to the version named on the repo... won't generate the same bindings. |
22:16:24 | FromDiscord | <heysokam> yea, a generator for vk needs a ton of safeguards. the spec is a mess, so you need to guard against weird cases a lot |
22:16:27 | FromDiscord | <mr_rowboto> (I'm super-new to `nim` btw, but I absolutely fell in love) |
22:16:41 | FromDiscord | <mr_rowboto> In reply to @heysokam "yea, a generator for": no doubt about tha |
22:16:42 | FromDiscord | <mr_rowboto> (edit) "tha" => "that" |
22:17:23 | FromDiscord | <heysokam> ever tried wrapping it with futhark?↵not saying that's the best approach, but wondering if you tried |
22:17:44 | FromDiscord | <mr_rowboto> I haven't, I only read about futhark a bit, it's like an automatic wrapper? |
22:17:49 | FromDiscord | <heysokam> I've been meaning to give it a try, did the same for wgpu and it worked really really well with latest futhark and overloads |
22:17:58 | FromDiscord | <heysokam> yes |
22:18:13 | FromDiscord | <mr_rowboto> If that works... it would be such a killer feature. |
22:18:19 | FromDiscord | <heysokam> its a bit involved, but you dodge the spec altogether |
22:18:43 | FromDiscord | <griffith1deadly> In reply to @mr_rowboto "(I'm super-new to `nim`": (until you realize that nim tooling is very bad, like slow nimble and slow/bugged lsp) |
22:18:57 | FromDiscord | <heysokam> @mr_rowboto lets move to #gamedev to follow up |