00:39:17 | * | Gustavo6046 quit (Remote host closed the connection) |
00:39:32 | * | Gustavo6046 joined #nim |
00:42:01 | * | fn quit (Remote host closed the connection) |
00:42:16 | * | fn joined #nim |
00:42:19 | FromDiscord | <Avahe> Test |
00:42:38 | fn | <Prestige99> Well didn't quite work, hmm |
00:49:16 | * | fn quit (Remote host closed the connection) |
00:49:38 | * | fn joined #nim |
00:51:45 | FromDiscord | <Avahe> Okay last test |
00:52:06 | fn | <Prestige99> \o/ colored nicks from discord on irc |
00:56:20 | * | fn quit (Remote host closed the connection) |
00:56:34 | * | fn joined #nim |
01:04:16 | * | bkay joined #nim |
01:05:13 | * | beshr quit (Ping timeout: 265 seconds) |
01:12:07 | fn | <<termer>99> good to see |
01:12:26 | * | Gustavo6046_ joined #nim |
01:12:57 | * | Gustavo6046 quit (Ping timeout: 265 seconds) |
01:14:57 | * | Gustavo6046_ is now known as Gustavo6046 |
01:18:43 | FromDiscord | <@bracketmaster-5a708063d73408ce4> I'm trying to get colors in nim with limited success\: |
01:18:50 | FromDiscord | <@bracketmaster-5a708063d73408ce4> sent a code paste, see https://play.nim-lang.org/#ix=3res |
01:18:58 | FromDiscord | <@bracketmaster-5a708063d73408ce4> any pointers? |
01:24:34 | FromDiscord | <@bracketmaster-5a708063d73408ce4> nvm as this seems to work\: https://nim-lang.github.io/Nim/terminal.html |
01:26:27 | fn | <<Prestige>99> Bridge needs a little cleaning up I suppose but it works |
01:27:46 | * | fn quit (Remote host closed the connection) |
01:28:01 | * | fn joined #nim |
01:28:01 | fn | <<Prestige>99> yep |
01:28:31 | * | fn quit (Remote host closed the connection) |
01:28:46 | * | fn joined #nim |
01:30:39 | * | arkurious quit (Quit: Leaving) |
02:10:04 | mst | Prestige, it's IRC, "needa a little cleaning up but works" is why everything basically works, because we might be annoyed by the shoddy but we run it anyway |
02:10:53 | fn | <Prestige99> I mean I was working on formatting for my bridge but it's not exactly how I'd like it, yet |
02:49:51 | * | vicfred_ joined #nim |
02:50:14 | FromDiscord | <@bracketmaster-5a708063d73408ce4> @elegantbeef\:matrix.org - how did you do the debug flag in your code? |
02:50:21 | FromDiscord | <@bracketmaster-5a708063d73408ce4> in your example from yesterday |
02:50:24 | FromDiscord | <@bracketmaster-5a708063d73408ce4> I can't seem to remember |
02:50:36 | FromDiscord | <Elegantbeef> `when defined(someFlag)` -d\:someFlag\` |
02:50:44 | FromDiscord | <@bracketmaster-5a708063d73408ce4> thx |
02:52:39 | * | vicfred quit (Ping timeout: 268 seconds) |
02:52:49 | * | deshordash joined #nim |
02:54:26 | FromDiscord | <@bracketmaster-5a708063d73408ce4> I've got a string. Any clever/elegant ways to take that string and insert a space every 8 characters? |
02:55:19 | FromDiscord | <Elegantbeef> Abuse procedures |
02:55:20 | FromDiscord | <Elegantbeef> `s.insertSep(' ', digits = 8)` |
02:56:04 | * | deshordash quit (Client Quit) |
02:59:52 | FromDiscord | <Elegantbeef> Well if that doesnt work copy the logic 😛 |
02:59:56 | FromDiscord | <@bracketmaster-5a708063d73408ce4> it worked |
02:59:59 | FromDiscord | <@bracketmaster-5a708063d73408ce4> thx again |
03:01:25 | * | deshordash joined #nim |
03:29:28 | * | deshordash quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
03:34:37 | * | deshordash joined #nim |
03:53:19 | * | deshordash quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
04:06:02 | * | supakeen quit (Quit: WeeChat 3.2) |
04:06:39 | * | supakeen joined #nim |
04:11:57 | * | vicfred_ quit (Quit: Leaving) |
04:16:39 | * | deshordash joined #nim |
04:21:26 | * | deshordash quit (Client Quit) |
04:25:54 | * | deshordash joined #nim |
04:39:23 | * | deshordash quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
05:36:45 | * | deshordash joined #nim |
06:16:24 | FromDiscord | <garett> has it been considered to shorten `converter` to `conv` and `iterator` to `iter`? |
06:17:31 | FromDiscord | <garett> the truncation would align nicely with `proc` |
06:18:03 | fn | <Prestige99> I doubt they'd want to change it but you could probably just make your own keywords to use |
06:18:23 | FromDiscord | <garett> perhaps using longer keywords is intended to make `converter` and `iterator` more visually distinct from `proc` |
06:18:56 | FromDiscord | <garett> it just seems strange to truncate `procedure` to `proc` then be verbose elsewhere 🙂 |
06:19:24 | fn | <Prestige99> Yeah I agree, proc and func I guess are typed a lot more though |
06:19:33 | fn | <Prestige99> I'd be fine with iter but maybe not conv |
06:19:53 | FromDiscord | <garett> interesting distinction |
06:22:00 | FromDiscord | <ElegantBeef> So... matrix isnt bridging? |
06:22:26 | FromDiscord | <ElegantBeef> I am a bridge now 😄 ↵well proc and func are the only 4 letter words so method, converter, iterator all would break all the code 😀↵Well you're mostly writing procs and funcs so arent really saving much for the others arguably↵oh and template and macros are not 4 letters |
06:23:29 | fn | <Prestige99> nim needs more "meth" :P |
06:24:04 | FromDiscord | <ElegantBeef> `temp` `meth` `conv` `macr` `iter` all fun things 😄 |
06:25:09 | * | deshordash quit (Remote host closed the connection) |
06:34:43 | FromDiscord | <hamidb80> hey |
06:34:53 | fn | <Prestige99> hello |
06:38:54 | FromDiscord | <hamidb80> https://play.nim-lang.org/#ix=3rfd |
06:39:41 | FromDiscord | <hamidb80> sent a code paste, see https://paste.rs/aIF |
06:39:58 | FromDiscord | <richard stallmen(crazy GNU guy)> what does it do btw |
06:40:45 | FromDiscord | <hamidb80> In reply to @richard stallmen(crazy GNU guy) "what does it do": nothing, it just prints tree representation of `a and b` |
06:41:01 | FromDiscord | <richard stallmen(crazy GNU guy)> but is a and b defined? |
06:41:34 | FromDiscord | <richard stallmen(crazy GNU guy)> (edit) "but is a and b defined? ... " added "(noob)" |
06:41:37 | FromDiscord | <hamidb80> it doesn't matter |
06:41:41 | FromDiscord | <richard stallmen(crazy GNU guy)> (edit) "(noob)" => "(i am noob)" |
06:42:23 | FromDiscord | <richard stallmen(crazy GNU guy)> ok |
06:44:52 | FromDiscord | <hamidb80> seems like it does work in nim 19 |
06:45:00 | FromDiscord | <hamidb80> i mean nim 0.19 |
06:46:53 | fn | <Prestige99> should that work? 🤔 |
06:48:30 | FromDiscord | <hamidb80> it does work until nim 1.2.4 |
06:48:41 | FromDiscord | <hamidb80> nim 1.2.12 |
06:49:12 | FromDiscord | <hamidb80> the breaking change occurs after version 1.4.0 |
06:49:22 | FromDiscord | <hamidb80> (edit) removed "nim 1.2.4" |
06:58:25 | FromDiscord | <hamidb80> i love nim btw |
07:02:39 | FromDiscord | <richard stallmen(crazy GNU guy)> evrybody in dis sarvar dos |
07:02:40 | FromDiscord | <richard stallmen(crazy GNU guy)> lol |
07:34:21 | * | fn quit (Remote host closed the connection) |
07:34:34 | * | fn joined #nim |
07:46:15 | * | max22- joined #nim |
08:30:15 | fn | <Prestige99> Yep |
08:32:26 | FromDiscord | <konsumlamm> 🤔 |
08:40:38 | * | fn quit (Remote host closed the connection) |
08:40:52 | * | fn joined #nim |
08:45:50 | FromDiscord | <Avahe> hm? |
09:00:09 | FromDiscord | <Rika> In reply to @richard stallmen(crazy GNU guy) "evrybody in dis sarvar": Not necessarily |
09:00:15 | FromDiscord | <Rika> Some just like it |
09:02:08 | * | ormiret quit (*.net *.split) |
09:02:13 | * | ormiret_ joined #nim |
09:06:53 | FromDiscord | <dom96> Would be cool to test Nim with this https://github.com/AbsInt/CompCert |
09:06:55 | fn | <R2D299> itHub: 7"The CompCert formally-verified C compiler" |
09:08:04 | FromDiscord | <Rika> You saw that HN post too huh lol |
09:08:16 | FromDiscord | <Rika> It’s RISC only though |
09:08:28 | FromDiscord | <Rika> Ah misread |
09:08:40 | FromDiscord | <Rika> Somehow missed it saying x86 :pepega: |
09:21:10 | fn | <bung99> re"(?ms:-{3,}(.*)-{3,})" , how to do back reference ? the second - count should be same as first one |
09:21:34 | fn | <bung99> am using nim-regex |
09:39:13 | fn | <bung99> oh , the doucment says its lack backreference |
09:44:47 | fn | <ForumUpdaterBot99> New thread by Stu002: Associating a type with a concept?, see https://forum.nim-lang.org/t/8161 |
10:05:51 | * | SebastianM joined #nim |
10:09:55 | FromDiscord | <abisxir> Guys is it possible to have multi-line closures in nim? |
10:14:25 | FromDiscord | <Rika> Yes, you can mark regular procedures as closures |
10:17:50 | FromDiscord | <abisxir> @Rika have you an example? |
10:18:04 | FromDiscord | <Rika> Add the closure pragma to a proc |
10:24:02 | FromDiscord | <abisxir> @Rika Thanks 🙂 |
10:27:05 | * | leehbi joined #nim |
10:31:05 | * | leehbi quit (Client Quit) |
10:32:02 | * | leehbi joined #nim |
10:35:12 | * | leehbi quit (Remote host closed the connection) |
10:35:14 | * | SebastianM quit (Quit: Bye) |
10:54:55 | fn | <ForumUpdaterBot99> New thread by Jasonfi: Formatting a float to currency, see https://forum.nim-lang.org/t/8162 |
11:35:09 | * | xet7 quit (Remote host closed the connection) |
11:36:39 | * | xet7 joined #nim |
12:06:02 | * | supakeen quit (Quit: WeeChat 3.2) |
12:06:38 | * | supakeen joined #nim |
12:16:51 | * | arkurious joined #nim |
12:43:51 | FromDiscord | <dom96> In reply to @Rika "You saw that HN": yeah 🙂 |
13:22:07 | FromDiscord | <ajusa> Is there any way to have a variant type automatically call a correct proc? For example, could I make a proc that only works on JInts without accepting JsonNode and then checking the kind field explicitly? |
13:24:57 | FromDiscord | <vindaar> No, unfortunately there isn't. Aside from some template that automates the case statement + calling the correct proc it clashes between runtime (the kind) / compile time (the proc to select) information |
13:26:56 | FromDiscord | <ajusa> Got it... Seems like I might be better off using methods/dynamic dispatch then |
13:29:05 | FromDiscord | <vindaar> I personally don't mind it too much. In your own code you can usually abstract most of it away with a template. It only becomes complicated if you need to return different types for different kinds |
13:30:24 | FromDiscord | <ajusa> My specific use case is making a simple interpreter - I was considering storing each type of statement as a variant object (say kind: add, subtract, divide, multiply) and then having some sort of statement.process function that would pick the right proc defined based on the variant kind. Not sure if this is the "right" solution to this problem but it is the best I could come up with |
13:31:17 | fn | <ForumUpdaterBot99> New thread by Geohuz: "No handles or timers registered in dispatcher" in Chapter 3.17 example of Nim In Action, see https://forum.nim-lang.org/t/8163 |
13:32:54 | FromDiscord | <vindaar> Sure, that works. As long as you have some sort of variant type for values it's even quite easy to implement. Makes me think of my first dataframe impl. in ggplotnim with a fully dynamic formula syntax here\:↵https://github.com/Vindaar/ggplotnim/blob/fixFormulaImpl/src/ggplotnim/dataframe/fallback/formula.nim |
13:33:41 | FromDiscord | <vindaar> I have an `enum` for different operations and build a tree for formulas which I could evaluate (procs at the bottom) |
13:37:12 | FromDiscord | <haxscramper> Usually, interpreters dispatch on `.kind` field value inside a `while` loop. It is the fastest implementation approach as well (at least from different ways to implement dispatching)↵(@ajusa) |
13:41:39 | FromDiscord | <ajusa> Got it, I'll try that out then. Thanks for the information! |
13:48:42 | FromDiscord | <haxscramper> vindaar\: I pushed `hpprint` v2 to `hmisc` (along with some additional features). It is not fully done as of now, but all functionality of `hpprint v1` is now available. You can import new version as `hmisc/other/hpprint`. Api is the same - `pprint` on any value will pretty-print it. |
13:49:15 | FromDiscord | <vindaar> Cool, thanks for the heads up! |
13:49:33 | FromDiscord | <haxscramper> sent a code paste, see https://paste.rs/GOq |
13:51:48 | FromDiscord | <vindaar> so many features 😁 |
13:52:16 | FromDiscord | <haxscramper> well, I mostly use it as `pprint` a well |
13:52:53 | FromDiscord | <haxscramper> But sometimes is is necessary to configure things in a very detailed manner, but I"m not sure if I need to make too much accend on that |
13:53:51 | FromDiscord | <vindaar> Certainly sounds useful for specific use cases. I guess not for debugging or anything, so the verbose API isn't too much of a problem maybe? |
13:54:14 | FromDiscord | <haxscramper> I use it solely for debugging purposes |
13:55:08 | FromDiscord | <haxscramper> And I tend of think of it as two APIs - first one is dead simple\: `pprint <thing>` and it works |
13:55:08 | FromDiscord | <haxscramper> always |
13:55:09 | FromDiscord | <haxscramper> zero configuration is necessary |
13:55:17 | FromDiscord | <haxscramper> But then you can get very nuanced and start writing custom hooks, or doing callside configuration, but that is rarely needed |
13:55:21 | FromDiscord | <vindaar> so you need the config for debugging when there'd be too much random output? |
13:56:38 | FromDiscord | <haxscramper> yes, quickly cut out some unnecessary noise. I think I could just add helpers `pglob().star().field("cpack").match()`, something like `matchFields(@["cpack"])`, or `matchType(@["GCovLine"]): forceLine()` |
13:57:13 | FromDiscord | <haxscramper> \`ignore = matchFields(@["cpack"]) |
13:57:29 | FromDiscord | <vindaar> that sounds like a useful feature, yes |
13:59:12 | FromDiscord | <haxscramper> But there is a ton of control already, especially because I built it on top of generic layout solver |
13:59:27 | FromDiscord | <haxscramper> Is is just very verbose |
14:06:33 | * | TakinOver quit (Read error: Connection reset by peer) |
14:09:01 | FromDiscord | <Rika> is there a way to change compiler options within strictly .nim files? i was just wondering how people would enable define switches in a code competition context |
14:14:47 | FromDiscord | <Rika> actually thinking a bit more about it, rarely in a compet. context do defines need to be defined hm |
14:14:49 | * | PMunch joined #nim |
14:15:50 | PMunch | Oh cool, I see the bot has colours now |
14:16:10 | FromDiscord | <Rika> imagine having colors, discord moment |
14:16:30 | FromDiscord | <idf> its pride month after all↵(<@709044657232936960_=50=4dunch=5b=49=52=43=5d>) |
14:17:12 | PMunch | That is true |
14:17:24 | PMunch | Hmm, FromDiscord on Libera doesn't have colours thought |
14:17:38 | FromDiscord | <vindaar> care to share a screenshot? |
14:19:05 | PMunch | Of the colours? |
14:19:14 | FromDiscord | <vindaar> yeah, I'm curious what you see |
14:19:40 | PMunch | https://uploads.peterme.net/2021-06-27-161920_684x178_scrot.png |
14:20:29 | FromDiscord | <vindaar> so that the names are colored or what's new here? |
14:20:47 | FromDiscord | <idf> yeah they used to be just bold iirc |
14:20:55 | FromDiscord | <vindaar> ah, I see |
14:54:55 | * | SebastianM joined #nim |
15:04:55 | * | stkrdknmibalz quit (Quit: WeeChat 3.0.1) |
15:17:58 | fn | <bung99> an reason I call a dll's proc sucessfully, then the passed args becoming nil |
15:18:03 | fn | <bung99> any |
15:24:52 | * | SebastianM quit (Quit: Bye) |
15:30:56 | FromDiscord | <dom96> Dealing with CI has got to be the most boring thing |
15:32:48 | FromDiscord | <vindaar> above boring it's frustrating |
15:33:21 | FromDiscord | <vindaar> in the age of containers and all this stuff, why not have it easy to download some container to debug the CI locally? |
15:33:31 | federico3 | ...because most implementations are pretty rudimentary |
15:35:24 | FromDiscord | <vindaar> in what sense? |
15:37:31 | FromDiscord | <leorize> redhat's toolkit is one of the very interesting application of containers |
15:38:20 | FromDiscord | <leorize> the issue with how most containers work is that they're designed for daemon isolation |
15:38:43 | FromDiscord | <leorize> toolkit take an approach of integrating a container with your main system |
15:39:02 | FromDiscord | <leorize> it's kinda like a chroot, but no permission meddling |
15:39:23 | FromDiscord | <leorize> and you also don't run as root |
15:39:55 | FromDiscord | <dom96> I think the problem is I have too many projects |
15:40:02 | FromDiscord | <dom96> all with old CI that's been broken for a while |
15:40:10 | FromDiscord | <dom96> getting the motivation to fix them all is tough |
15:40:22 | FromDiscord | <leorize> you should let go the ones you no longer maintain |
15:40:39 | federico3 | vindaar: stuff like github actions & similar barely spawn a bunch of containers and runs scripts. They don't have mechanisms to plan tests dynamically and track down errors; snapshot checkpoints during the process; not even ssh into the vm after a failure |
15:40:50 | FromDiscord | <dom96> I'm adding a cron schedule to all of them now |
15:41:01 | FromDiscord | <dom96> so I can hopefully see when the CI starts to fail earlier |
15:41:32 | FromDiscord | <leorize> there are plenty of active members in the community that will want to adopt your projects, should you no longer want to maintain them |
15:43:59 | FromDiscord | <vindaar> but that's my point no? It shouldn't be too difficult to set it up such that each action / etc. is run in one container that the user can download if need be? I mean maybe it's super hard I know barely anything about containers. I only hear hype hype hype around them↵(<@709044657232936960_federico3=5b=49=52=43=5d>) |
15:44:26 | FromDiscord | <dom96> the way all CIs work is a poor model |
15:45:00 | FromDiscord | <dom96> the CI just runs some arbitrary code which is really unhelpful to figure out flakiness |
15:45:14 | federico3 | dom96: that's what I said |
15:45:45 | FromDiscord | <leorize> [vindaar](https://matrix.to/#/@vindaar:matrix.org)\: the issue of containers is that right now they are only useful for running their own environment |
15:45:46 | FromDiscord | <dom96> +1 then 🙂 |
15:46:43 | FromDiscord | <leorize> toolbox is a pretty cool approach though, so maybe it will gain some traction |
15:46:54 | FromDiscord | <zetashift> Toolbox? |
15:46:56 | FromDiscord | <dom96> grr https://github.com/nim-lang/nimble/runs/2925797003 |
15:47:28 | FromDiscord | <leorize> https://github.com/containers/toolbox↵(@zetashift) |
15:48:24 | FromDiscord | <zetashift> Ah isee |
15:48:31 | FromDiscord | <leorize> containers are very isolated by nature. this project let a container integrate so you can keep using your favorite tools while debugging containerized code |
16:05:31 | fn | <bung99> https://play.nim-lang.org/#ix=3rhP any idea? the p become nil |
16:07:23 | PMunch | And there isn't a nil in the posts sequence? |
16:07:54 | FromDiscord | <dom96> omg who the hell decided to automatically scroll the GitHub Actions output as it updates |
16:14:03 | fn | <bung99> yeah, I echo item one by one that added to posts |
16:17:07 | fn | <bung99> echo anyIt(postsNodes, it == nil), when I add this line before call render , the error change to other place access nil.. |
16:17:54 | * | stkrdknmibalz joined #nim |
16:18:52 | nisstyre | Does anyone know if there are raygui nim bindings that exist? |
16:19:08 | nisstyre | I can use it directly I suppose |
16:21:05 | FromDiscord | <dom96> Figured it out. What a subtle bug that strangely wasn't reproducing before. Very odd. |
16:22:47 | FromDiscord | <dom96> nisstyre: have you tried searching using nimble or nimble.directory? 🙂 |
16:23:22 | nisstyre | dom96: yes |
16:23:26 | nisstyre | nothing I could find |
16:25:50 | nisstyre | looks like it's meant to be used as a header only library |
16:26:33 | fn | <ForumUpdaterBot99> New Nimble package! todoist - A Nim client for Todoist's REST API, see https://ruivieira.github.io/nim-todoist/index.html |
16:38:11 | FromDiscord | <aleclarson> is there a `case` syntax for type checking a ref object with `of` or do i just use if statements? |
16:38:46 | FromDiscord | <aleclarson> sent a code paste, see https://play.nim-lang.org/#ix=3ri4 |
16:39:13 | FromDiscord | <aleclarson> (edit) "https://play.nim-lang.org/#ix=3ri4" => "https://play.nim-lang.org/#ix=3ri5" |
16:40:25 | FromDiscord | <haxscramper> https://nim-lang.github.io/fusion/src/fusion/matching.html#matching-different-things-ref-object-matching |
16:40:48 | FromDiscord | <haxscramper> requires `import fusion/matching` and `{.experimental: "caseStmtMacros".}` |
16:42:38 | FromDiscord | <haxscramper> If you need compile-time checking you can use `when`, or something like that https://play.nim-lang.org/#ix=2Vj2 |
16:43:48 | FromDiscord | <zetashift> In reply to @nisstyre "Does anyone know if": https://github.com/greenfork/nimraylib_now |
16:43:51 | FromDiscord | <haxscramper> ah, no wrong link |
16:43:51 | fn | <R2D299> itHub: 7"The Ultimate Raylib gaming library wrapper for Nim" |
16:44:49 | FromDiscord | <haxscramper> no, it is the correct one, just got confused by example code. I showed as a quick implementation for json serialization |
16:54:16 | FromDiscord | <aleclarson> In reply to @haxscramper "If you need compile-time": interesting, thx. i think i'll stick with proc overloads for now and if statements when necessary |
16:55:00 | FromDiscord | <aleclarson> is it possible to override the type of an inherited property? seems like it should be, especially if the inherited type is `any` |
17:04:37 | FromDiscord | <haxscramper> What do you mean by "inherited property"? Superclass fields in derived objects? |
17:32:54 | FromDiscord | <Avatarfighter> In reply to @leorize "there are plenty of": @dom96 what's your opinion on letting other community members maintain your projects via an org or something ? I know you are rather busy, but it sucks seeing some of your projects like jester/httpbeast(this was pretty recently updated though) amass PRs and issues with seemingly no future :L I love using jester and httpbeast but it's a turn off for me to see them rarely getting updated. |
17:41:52 | * | PMunch quit (Quit: leaving) |
17:52:34 | FromDiscord | <dom96> You're worrying about the wrong things, I bet you use software that is significantly older than the last time Jester/httpbeast was updated. |
17:54:31 | FromDiscord | <Avatarfighter> Well I would be using updated software if the software libraries I used actually got updated tbf |
17:55:49 | fn | <bung99> any clue an item in loop becaming nil ? in dll's proc , I echo the item , part of items are not nil. |
17:57:37 | fn | <bung99> in my karax vdom some places throw this kind of errors, am sure items I added to sequence are not nil. |
18:07:48 | FromDiscord | <willyboar> I don't think it is all about be updated. We all use and love nim and we want to see it grow and the only way is the most usable apps grow first. |
18:08:41 | FromDiscord | <willyboar> For example i like jester and prolly it works on most of my cases |
18:10:37 | FromDiscord | <willyboar> but i want to see it grow. I want to see a website, a better documentation, tutorials, blog posts, a plugin system, examples, production apps etc |
18:10:54 | FromDiscord | <willyboar> things that cannot be done if you don't spare time |
18:12:44 | FromDiscord | <Rika> ~~stuff that made me look at prologue~~ |
18:14:49 | FromDiscord | <saem> Is it possible to take in a string parameter and generate comments as part of a template? |
18:15:26 | FromDiscord | <Rika> Documentation comments yes I believe but I don’t know if you can using a template |
18:15:29 | * | saem[m] left #nim (#nim) |
18:15:42 | federico3 | does ./koch tools support -d:release ? |
18:16:35 | FromDiscord | <vindaar> I think so, yes federico3 |
18:16:47 | FromDiscord | <vindaar> at least my tools are built with danger flag and I always put it on the `tools` command |
18:18:09 | federico3 | the help from koch seems to imply that it's only for "boot" |
18:20:31 | FromDiscord | <dom96> In reply to @willyboar "but i want to": I want to see those things too 🙂 |
18:20:52 | FromDiscord | <dom96> The forum is already a pretty awesome example of a production app |
18:23:08 | FromDiscord | <willyboar> I know that, but a new user of Nim not. |
18:23:17 | FromDiscord | <willyboar> This is why all the above are important |
18:23:19 | FromDiscord | <saem> [vindaar](https://matrix.to/#/@vindaar:matrix.org)\: same thing, I don't like waiting. |
18:25:24 | FromDiscord | <konsumlamm> In reply to @dom96 "You're worrying about the": so worrying about bugs not being fixed is "worrying about the wrong things"? |
18:26:22 | FromDiscord | <willyboar> anyway you are the one you would decide what to do with your libs. |
18:27:03 | FromDiscord | <Avatarfighter> ^ I only wanted to point out that it would be nice to see the number of PRs/issues on your libraries decrease instead of grow but if you'd rather they accumulate that's up to you dom |
18:27:11 | FromDiscord | <dom96> lol |
18:27:31 | FromDiscord | <dom96> If people want to help I am very welcoming to contributions |
18:27:53 | FromDiscord | <dom96> And not just code, this also includes PR reviews |
18:28:10 | FromDiscord | <Avatarfighter> I'm curious what's stopping you from making an org for jester ? |
18:28:27 | FromDiscord | <Avatarfighter> you'd still have control over it, it would just have a bit more autonomy |
18:28:52 | FromDiscord | <dom96> What would it change? I can add contributors to Jester's repo just fine |
18:30:44 | FromDiscord | <dom96> I've created an org for Karax, there was a good reason for it: it was under another org's account which wasn't really active in Nim anymore. |
18:31:01 | FromDiscord | <Avatarfighter> I was just about to use karax as an example lol |
18:32:14 | FromDiscord | <willyboar> in a separate org you can have more things |
18:32:26 | FromDiscord | <willyboar> like the website or official plugins |
18:32:33 | * | supakeen quit (Remote host closed the connection) |
18:32:49 | FromDiscord | <dom96> Sure, but that's more things to maintain |
18:32:57 | * | supakeen joined #nim |
18:33:08 | FromDiscord | <dom96> plugins should preferably be created and maintained by the community |
18:33:12 | FromDiscord | <willyboar> yes but necessary things for a project to grow |
18:33:26 | FromDiscord | <dom96> Rocket has its website in its own repo |
18:33:33 | FromDiscord | <dom96> seems to work quite well for them |
18:34:58 | FromDiscord | <dom96> also other Nim web frameworks don't have their own orgs either |
18:35:03 | FromDiscord | <Avatarfighter> Maybe it would be time to find a more active maintainer to jester ? |
18:35:07 | FromDiscord | <dom96> why am I getting all the bother about it? 🙂 |
18:35:29 | FromDiscord | <willyboar> prologue is in a separate org |
18:37:03 | FromDiscord | <Avatarfighter> At the end of the day it is your project so you do what you see fit, but it would be nice to at least consider handing over the keys of jester to someone that is more actively maintaining the libraries maybe ? I don't want us to flood #main with more of this lol |
18:37:10 | FromDiscord | <haxscramper> To be honest I don't quite understand the reason to shuffle github project in different repos, it does not seem to solve any code-related problems |
18:37:25 | FromDiscord | <haxscramper> Or things like documentation etc. |
18:38:01 | FromDiscord | <dom96> if someone wants to work on Jester they just need to let me know. Finding someone truly passionate to work on somebody else's project is hard though |
18:38:01 | FromDiscord | <Avatarfighter> (edit) "libraries" => "library" |
18:38:02 | FromDiscord | <haxscramper> In reply to @dom96 "What would it change?": this |
18:38:05 | FromDiscord | <haxscramper> In reply to @Avatarfighter "At the end of": and this |
18:38:17 | FromDiscord | <haxscramper> Seems to be most of what is necessary |
18:38:18 | FromDiscord | <willyboar> It looks more official and professional |
18:38:25 | FromDiscord | <haxscramper> "looks" |
18:38:33 | FromDiscord | <haxscramper> (edit) ""looks"" => "`> "looks"`" |
18:38:53 | FromDiscord | <Avatarfighter> An org is not the most optimal solution, I just thought it could attract a maintainer |
18:39:23 | FromDiscord | <Avatarfighter> In reply to @dom96 "if someone wants to": I'll keep that in mind, I love jester I would just hate for it to die it's a pretty incredible library |
18:39:27 | FromDiscord | <haxscramper> I don't think just adding organization could easily attract a person, especially considering how much time this should take |
18:39:40 | FromDiscord | <haxscramper> Maybe write a forum post like "maintainers wanted" |
18:40:19 | FromDiscord | <Avatarfighter> Yeah that would probably be more effective :p |
18:40:27 | FromDiscord | <haxscramper> Or write about current state of these projects, current goals, who we need, why do we need them |
18:40:43 | FromDiscord | <haxscramper> That's the problem with other parts, |
18:40:48 | * | SebastianM joined #nim |
18:40:50 | FromDiscord | <dom96> In reply to @Avatarfighter "I'll keep that in": I'm considering setting up a GitHub sponsor thing, maybe that would be a good way to help me maintain my projects. Would you donate if I offered that? 🙂 |
18:40:56 | FromDiscord | <Avatarfighter> Yeah probably |
18:41:10 | FromDiscord | <haxscramper> I literally don't know what is going on about a lot of things and I would not bother to look up to being maintainer |
18:41:23 | FromDiscord | <haxscramper> And I do spend quite some time around here |
18:41:38 | FromDiscord | <dom96> btw the bigger problem I have now is choosenim, my maintainer is gone and now I have a lot of changes that I'm no longer familiar with :/ |
18:41:40 | FromDiscord | <haxscramper> I'm talking in general now |
18:42:34 | FromDiscord | <dom96> so just from that experience I'm not sure finding more maintainers is a good idea for my other projects |
18:43:03 | FromDiscord | <Avatarfighter> My original idea for an org was to group together httpbeast and jester since the latter depends on the first and it would be nice to have them centralized together |
18:46:09 | FromDiscord | <haxscramper> Btw, @dom96 , I finally decided to take some time this week and write and RFC for nimble. For now, I don't have any concrete suggestions, so it should mostly be a compilation of issues like #890 (that do propose concrete improvements) as well as some minor suggestions. Well, maybe not the next week, but after https://forum.nim-lang.org/t/8146 https://forum.nim-lang.org/t/8147 and stefantalpalaru's comments on nim conf I think this c |
18:46:54 | FromDiscord | <haxscramper> If you have any links |
18:46:59 | FromDiscord | <dom96> Cool, yeah, honestly I think we just need to set up some milestones that group together the issues that are important |
18:47:03 | FromDiscord | <haxscramper> That are especially important or something like that |
18:47:13 | FromDiscord | <haxscramper> In reply to @dom96 "Cool, yeah, honestly I": yep, that's exactly what I'm aiming for |
18:47:26 | FromDiscord | <dom96> and then Araq/others can work on them |
18:47:33 | FromDiscord | <haxscramper> not especially opinionated, just collect everything into coherent list |
18:47:55 | FromDiscord | <dom96> if you (or anyone) has the time it would be awesome to test https://github.com/nim-lang/nimble/pull/913 |
18:48:15 | FromDiscord | <dom96> we'll need to review it and a good first step is to test it 🙂 |
18:48:27 | FromDiscord | <haxscramper> yeah, that is a good idea actually |
18:53:21 | * | ormiret_ is now known as ormiret |
18:53:53 | FromDiscord | <Avatarfighter> I really wish I had the knowledge to help maintain these libraries |
18:55:46 | * | Guest0 joined #nim |
18:55:51 | * | Guest0 quit (Client Quit) |
19:31:03 | * | sagax quit (Remote host closed the connection) |
19:36:07 | * | SebastianM quit (Quit: Bye) |
19:56:17 | fn | <ForumUpdaterBot99> New thread by Masiarek2: Print Unicode names e.g 'SPACE', 'NO-BREAK SPACE', HORIZONTAL TAB , see https://forum.nim-lang.org/t/8164 |
20:11:38 | * | foufoutos joined #nim |
20:12:17 | * | foufoutos is now known as lightspot21 |
20:12:47 | * | lightspot21 quit (Client Quit) |
20:13:02 | * | lightspot21 joined #nim |
20:21:20 | * | Kioshi joined #nim |
20:21:49 | * | Kioshi quit (Client Quit) |
20:43:36 | * | pro joined #nim |
21:08:32 | pro | when are we going to test windows builds |
21:09:08 | pro | because we can't really support windows if every build is flagged by windows defender |
21:11:30 | * | pro quit (Quit: WeeChat 3.2) |
21:12:33 | * | pro joined #nim |
21:14:04 | FromDiscord | <Elegantbeef> They did test 1.4.8 to try to get that to stop happening, but it's pretty hard to manage when you arent exactly told "Hey this is what's causing the flag" 😛 |
21:15:36 | pro | I have no antivirus and can't download binary from chrome |
21:16:41 | FromDiscord | <Elegantbeef> Well you can usually tell AV and browsers "I know best", but if you cannot, you can try building from source |
21:16:59 | FromDiscord | <willyboar> this is a cool idea for a nim project |
21:17:10 | FromDiscord | <Elegantbeef> Bypassing antivirus checks? 😛 |
21:17:18 | FromDiscord | <willyboar> lol |
21:17:54 | pro | how was this event called yesterday |
21:18:10 | pro | on yt |
21:18:13 | FromDiscord | <willyboar> nimconf? |
21:18:20 | pro | yeah nimconf |
21:18:32 | pro | some projects are really really good |
21:19:14 | FromDiscord | <willyboar> agree |
21:19:22 | pro | some are not that good though :) |
21:19:36 | pro | but yeah, it's nice that we have a conf |
21:19:47 | FromDiscord | <willyboar> personaly i keep an eye on nicoru |
21:20:07 | FromDiscord | <willyboar> despite the fact i dont use containers |
21:20:10 | FromDiscord | <willyboar> 😛 |
21:34:42 | fn | <ForumUpdaterBot99> New thread by Stbalbach: Include a file variably, see https://forum.nim-lang.org/t/8165 |
21:57:08 | FromDiscord | <tomck> Hello↵How can I generate a nnkTripleStrLit node in a macro? There is no corresponding `newLit` proc and I can't access the `kind` field of `NimNode` |
21:57:37 | FromDiscord | <tomck> a 'triple string lit' is a string like `"""hello↵world"""` |
22:04:07 | FromDiscord | <tomck> sent a code paste, see https://play.nim-lang.org/#ix=3rjD |
22:06:37 | * | PersonMcGuy joined #nim |
22:06:54 | * | pro quit (Quit: WeeChat 3.2) |
22:07:19 | PersonMcGuy | Hello all. Quick question, is there an equivalent to javascript's setInterval? |
22:08:59 | * | lightspot21 quit (Quit: leaving) |
22:10:33 | FromDiscord | <tomck> PersonMcGuy: You probably want to look into setting up an async event loop before you could get something like setInterval running, nim is a bit lower level than javascript so it doesn't set it up by default↵↵You could try looking at the asyncdispatch module |
22:11:42 | PersonMcGuy | @tomck Ah, okay, I figured as much, but if there was an easy way out, I wanted to take it lol. Thank you for your help. |
22:11:48 | FromDiscord | <tomck> Once you have that setup, you can `await` on a `sleepAsync` call https://nim-lang.org/docs/asyncdispatch.html#sleepAsync |
22:18:16 | FromDiscord | <Bung> you can use addTimer in asyncdispatch module |
22:19:54 | FromDiscord | <exithead> Is "seq[seq.maxIndex]" the correct way to access the last element in a seq? |
22:20:18 | FromDiscord | <Bung> you can use `^1` |
22:20:24 | PersonMcGuy | @bung that's perfect! |
22:21:31 | PersonMcGuy | also you could use seq[seq.high] |
22:38:48 | FromDiscord | <j-james> What are pointers used for in Nim? |
22:39:02 | FromDiscord | <Elegantbeef> C interop and when you need them |
22:57:48 | fn | <bung99> is nim generated dll really in used ? I face kinds of errors |
23:09:29 | * | max22- quit (Remote host closed the connection) |
23:19:49 | FromDiscord | <aleclarson> sent a code paste, see https://play.nim-lang.org/#ix=3rjO |
23:21:04 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3rjP |
23:21:48 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3rjQ |
23:24:17 | FromDiscord | <Elegantbeef> Ah nvm thought that'd just work, but nope i'm a numpty |