00:18:55 | * | _________ quit (Ping timeout: 260 seconds) |
00:31:35 | * | _________ joined #nim |
00:34:15 | * | beholders_eye quit (Ping timeout: 252 seconds) |
00:39:11 | * | SchweinDeBurg joined #nim |
01:07:47 | * | def- quit (Quit: -) |
01:07:51 | * | _________ quit (Ping timeout: 265 seconds) |
01:07:53 | * | bcksl quit (Quit: \) |
01:07:59 | * | def- joined #nim |
01:08:16 | * | strogon14 quit (Remote host closed the connection) |
01:08:57 | * | _________ joined #nim |
01:09:25 | * | strogon14 joined #nim |
01:10:53 | * | bcksl joined #nim |
01:13:06 | * | krux02 quit (Quit: Leaving) |
01:39:56 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=dslJcTDy |
01:42:26 | FromDiscord | <Elegantbeef> Sure make a macro that wraps the body in a try except |
01:42:39 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
01:55:03 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=HvivpEOw |
01:55:12 | FromDiscord | <4zv4l> (edit) "https://play.nim-lang.org/#pasty=BJobVvXD" => "https://play.nim-lang.org/#pasty=dNkJYvbz" |
01:57:10 | FromDiscord | <Elegantbeef> You need to return a `nnkProcDef` |
01:57:47 | FromDiscord | <Elegantbeef> So the answer is no |
02:16:43 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#pasty=HuCwBRfY |
02:25:42 | * | rockcavera quit (Remote host closed the connection) |
02:31:19 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=ALqZnkaq |
02:31:48 | FromDiscord | <Elegantbeef> that implies you're returning a string |
02:33:00 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=ixlYZbkG |
02:33:03 | FromDiscord | <4zv4l> but it prints nothing tho |
02:39:23 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=uKJBuKqM |
02:40:55 | FromDiscord | <Elegantbeef> https://play.nim-lang.org/#pasty=ZgVwJBEV |
02:43:07 | FromDiscord | <4zv4l> oooh I see, thank you !↵I was modifying the body at the same time I guess thats why it wasnt right |
03:48:27 | * | SchweinDeBurg joined #nim |
04:03:45 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=URdVCstE |
04:04:32 | FromDiscord | <Elegantbeef> Stop using macros as templates |
04:09:08 | FromDiscord | <4zv4l> "you should use a template instead of a macro"↵thank you↵how can I pass `v` without quote to the template ? |
07:31:01 | FromDiscord | <pmunch> Am I missing something? If you want to have the result end up as `(oResultPrivate: true, vResultPrivate @v)` the template is literally just: `template Ok(v: untyped): untyped = (oResultPrivate: true, vResultPrivate @v)` |
07:43:09 | FromDiscord | <Elegantbeef> You'd think |
07:55:03 | * | modev joined #nim |
08:05:07 | FromDiscord | <megabytesofrem> is gintro cooked? wanted to use it for a rewrite of a GTK project im making in python |
08:05:30 | FromDiscord | <Elegantbeef> I believe the author moved to Rust so possibly |
08:05:35 | FromDiscord | <Elegantbeef> Owlkettle is another gtk program that might be accessible |
08:05:55 | FromDiscord | <Elegantbeef> Well gtk library |
08:09:28 | FromDiscord | <4zv4l> In reply to @pmunch "Am I missing something?": I guess thats another issue then, I try to use both `fusion/matching` and `Result` |
08:09:46 | FromDiscord | <4zv4l> but without the template, if I write it manually, it works |
08:11:57 | FromDiscord | <4zv4l> sent a code paste, see https://play.nim-lang.org/#pasty=abWwAnhv |
08:12:29 | FromDiscord | <4zv4l> but instead of typing `(oResultPrivate: true, vResultPrivate: @v)`, `Ok(@v)` would be better |
08:13:25 | FromDiscord | <Elegantbeef> I imagine the fusion macro works on untyped ast |
08:13:35 | FromDiscord | <pmunch> In reply to @megabytesofrem "is gintro cooked? wanted": You can also use Gtk with Futhark 🙂 |
08:14:54 | FromDiscord | <4zv4l> sent a long message, see https://pasty.ee/AFOqDJRr |
08:15:07 | FromDiscord | <4zv4l> (edit) "https://pasty.ee/rKzkYsRS" => "https://pasty.ee/FEiWcYtO" |
08:16:17 | FromDiscord | <pmunch> Ah yes, looks like a poor implementation in the fusion macro |
08:16:51 | FromDiscord | <pmunch> Whoever wrote it seems to have fallen for the temptation of trying to parse valid Nim code in a macro, the most common source of composition errors |
08:17:24 | FromDiscord | <pmunch> @4zv4l clone and build is the only option AFAIK |
08:19:40 | FromDiscord | <Elegantbeef> I wrote a program forever ago that can generate docs for a library in your nimble directory if it saves you any time https://play.nim-lang.org/#pasty=jjpRzVZf |
08:20:18 | FromDiscord | <Elegantbeef> just `docunimit packagename` and it'll generate the docs and open your browser to them |
08:20:20 | FromDiscord | <4zv4l> thats great thanks !↵I will try it now |
08:20:41 | FromDiscord | <pmunch> Ooh, that's pretty nift |
08:20:44 | FromDiscord | <pmunch> (edit) "nift" => "nifty" |
08:21:05 | FromDiscord | <Elegantbeef> Hmph missing the css now... odd |
08:21:25 | FromDiscord | <Elegantbeef> Also no longer generates the entire project 😄 |
08:22:31 | FromDiscord | <4zv4l> it works great !↵with `python3 -m http.server` it shows correctly 👌 |
08:22:57 | FromDiscord | <Elegantbeef> It won't resolve remote references but it's a nice local hack 😄 |
08:23:22 | FromDiscord | <4zv4l> I will see when I have the time if I can make something similar↵I was thinking of maybe making a tool that could parse the doc and show it in the terminal a bit like `perldoc`↵but seems the code example are inside `runnableExample` I will see if its doable xD |
08:23:39 | FromDiscord | <4zv4l> (edit) "seems" => "since" |
08:23:44 | FromDiscord | <Elegantbeef> There is a jsondoc generation iirc pmunch knows more |
09:07:13 | * | alexdaguy joined #nim |
09:40:29 | * | modev quit (Ping timeout: 260 seconds) |
10:33:10 | FromDiscord | <pmunch> Yeah the jsondoc should be able to help you 🙂 |
10:45:13 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
11:00:31 | * | coldfeet joined #nim |
11:05:12 | * | beholders_eye joined #nim |
11:16:05 | * | krux02 joined #nim |
11:21:13 | * | alexdaguy quit (Quit: w) |
11:28:55 | * | coldfeet quit (Ping timeout: 264 seconds) |
11:35:32 | * | coldfeet joined #nim |
12:00:50 | * | coldfeet quit (Ping timeout: 265 seconds) |
12:02:35 | * | coldfeet joined #nim |
12:16:58 | * | coldfeet quit (Ping timeout: 272 seconds) |
12:18:23 | * | coldfeet joined #nim |
12:47:04 | * | beholders_eye quit (Ping timeout: 245 seconds) |
12:53:45 | * | beholders_eye joined #nim |
12:55:51 | * | coldfeet quit (Quit: Lost terminal) |
12:58:40 | * | nils` quit (Ping timeout: 252 seconds) |
13:00:00 | * | SchweinDeBurg joined #nim |
13:00:59 | * | beholders_eye quit (Ping timeout: 244 seconds) |
13:05:29 | * | xaltsc quit (Quit: WeeChat 4.4.3) |
13:28:16 | * | krux02 quit (Remote host closed the connection) |
13:29:22 | FromDiscord | <.throwstar> Is there a way to directly convert a number to a cstring rather than ` cstring( $(999) )`? |
13:37:53 | FromDiscord | <demotomohiro> In reply to @.throwstar "Is there a way": Why do you need to do so? |
13:38:33 | FromDiscord | <.throwstar> to fit within 80 lines without creating a new function 👍 |
13:38:39 | FromDiscord | <.throwstar> If theres not it doesnt matter |
13:38:49 | FromDiscord | <odexine> do you need the parentheses |
13:39:03 | FromDiscord | <odexine> you can just omit that |
13:39:50 | * | Beetroit joined #nim |
13:40:46 | FromDiscord | <.throwstar> I do cause im doing math to get the number |
13:41:13 | FromDiscord | <.throwstar> Ill just use a variable lol |
13:51:46 | * | modev joined #nim |
13:57:44 | * | ntat joined #nim |
14:39:00 | * | nils` joined #nim |
14:40:25 | FromDiscord | <nnsee> just letting y'all know that pasty.ee is down. i rebooted the machine and it's not coming back up and i'm not sure why, since i'm not physically there |
14:40:31 | FromDiscord | <nnsee> i really need to look into high availability |
14:41:21 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in) |
14:42:20 | * | xutaxkamay joined #nim |
14:43:05 | FromDiscord | <nnsee> or a tinypilot kvm or something |
14:43:12 | * | xutaxkamay quit (Client Quit) |
14:44:13 | * | xutaxkamay joined #nim |
14:46:12 | FromDiscord | <nnsee> never mind i used telekinesis to forcibly reboot the machine |
14:46:24 | FromDiscord | <odexine> yeah you should look into getting a kvm |
14:46:54 | * | uninvitedkid joined #nim |
14:47:13 | uninvitedkid | hi |
14:47:20 | FromDiscord | <odexine> hello |
14:47:26 | uninvitedkid | i just tried to install nim with scoop lol |
14:47:33 | FromDiscord | <odexine> congrats |
14:47:39 | uninvitedkid | and strangely it gives out an error |
14:47:46 | uninvitedkid | hashes not matching |
14:47:52 | uninvitedkid | really strange.. |
14:48:26 | uninvitedkid | im quite concerned by that too but also not at the same time |
14:48:38 | uninvitedkid | since nim didnt told anyone to install it with scoop |
14:49:40 | uninvitedkid | maybe i can try again (i did it 3 times before btw) |
14:50:04 | FromDiscord | <nnsee> what even is a scoop |
14:50:34 | uninvitedkid | try search for scoop for windows |
14:50:36 | FromDiscord | <odexine> windows package manager |
14:50:40 | FromDiscord | <odexine> like chocolatey and winget |
14:50:50 | uninvitedkid | oh and i got the error report here |
14:50:51 | uninvitedkid | ERROR Hash check failed! |
14:50:51 | uninvitedkid | App: main/nim |
14:50:52 | uninvitedkid | URL: https://nim-lang.org/download/nim-2.2.0_x64.zip |
14:50:52 | uninvitedkid | First bytes: |
14:50:53 | uninvitedkid | Expected: 932970ed7535c7665c4f79005044ed5240426b5d2b55bfdba36dacc5af479e9d |
14:50:53 | uninvitedkid | Actual: |
14:51:30 | FromDiscord | <odexine> i think you should raise this issue to the scoop bucket maintainers |
14:52:32 | uninvitedkid | ok (y) |
14:56:24 | Amun-Ra | looks like maintainer's fault |
15:03:13 | * | nils` quit (Ping timeout: 244 seconds) |
15:05:53 | * | beholders_eye joined #nim |
15:18:39 | * | uninvitedkid quit (Quit: Client closed) |
15:45:34 | * | nils` joined #nim |
16:06:07 | * | Beetroit quit (Quit: Client closed) |
16:32:32 | * | beholders_eye quit (Ping timeout: 264 seconds) |
16:32:51 | * | modev quit (Quit: WeeChat 4.4.2) |
16:34:29 | * | modev joined #nim |
16:35:13 | * | beholders_eye joined #nim |
17:48:38 | FromDiscord | <choltreppe> did anyone here ever integrate admob into a android app with nim? |
18:19:26 | * | ntat quit (Read error: Connection reset by peer) |
18:19:37 | * | ntat joined #nim |
18:21:02 | * | krux02 joined #nim |
18:33:32 | FromDiscord | <sleeves> sent a long message, see https://pasty.ee/NWErLMrI |
18:34:39 | FromDiscord | <.throwstar> This sounds like you want a variant object |
18:34:49 | FromDiscord | <.throwstar> (edit) "you want" => "youre looking for" |
18:35:55 | FromDiscord | <sleeves> That's actually what I tried next, but I don't entirely understand how it works so it went rather poorly. |
18:36:26 | FromDiscord | <sleeves> I think I probably included some parts redundantly, as I now have multiple types which only exist to redirect. |
18:37:57 | FromDiscord | <sleeves> I could put the code on a paste service if anyone wants to take a look, but I don't know how understandable it is |
18:39:47 | FromDiscord | <sleeves> https://rentry.co/59w4mpy5 (some of it's placeholder for testing, I was going a little insane last night) |
18:44:48 | * | nils` quit (Ping timeout: 252 seconds) |
19:43:45 | * | nils` joined #nim |
20:20:14 | FromDiscord | <.bobbbob> compiles for me, seems fine, is the problem that it's overcomplicated? Maybe inheritance and methods would be useful for this case, didnt look super deep into your code↵and if you do proc updateElement(tb: var TerminalBuffer, element: Element) = you can do tb.update(value), if you like that syntax better |
20:21:32 | * | modev quit (Quit: WeeChat 4.4.2) |
20:24:12 | * | beholders_eye quit (Quit: WeeChat 4.1.2) |
20:39:48 | FromDiscord | <sleeves> fair point, basically everything takes it |
20:45:46 | * | bcksl quit (Ping timeout: 244 seconds) |
20:47:11 | * | end quit (Ping timeout: 265 seconds) |
21:00:31 | * | bcksl joined #nim |
21:03:31 | * | end joined #nim |
21:23:37 | * | rockcavera joined #nim |
21:39:29 | * | vukung joined #nim |
22:14:59 | * | beholders_eye joined #nim |
22:27:46 | * | ntat quit (Quit: Leaving) |
22:46:36 | * | beholders_eye quit (Ping timeout: 276 seconds) |
23:07:01 | * | beholders_eye joined #nim |
23:13:56 | FromDiscord | <planetis> image.png https://media.discordapp.net/attachments/371759389889003532/1316181133893046344/image.png?ex=675a1cb3&is=6758cb33&hm=c0b267405c11d16abff9af97c8866579f1eea824110643d97eae84669f49f27e& |
23:14:34 | FromDiscord | <planetis> Claude is good at making short macros, unfortunately the (let x,) part is not valid nim syntax, |
23:35:13 | * | beholders_eye quit (Ping timeout: 248 seconds) |