00:10:20 | * | bung joined #nim |
00:13:11 | * | vicfred quit (Quit: Leaving) |
00:14:27 | * | bung quit (Ping timeout: 240 seconds) |
00:39:01 | * | bung joined #nim |
00:50:42 | voidpi | disruptek: what problem were you trying to solve with persist? |
00:54:12 | disruptek | i was gonna replace the sqlite in incremental compilation with lmdb and i wanted a dead-simple persistence system. |
00:54:27 | disruptek | basically, frosty deprecated persist. |
00:57:59 | * | krux02 quit (Remote host closed the connection) |
00:58:48 | voidpi | I don't know what lmdb is |
00:58:55 | voidpi | but thanks disruptek |
01:13:24 | * | Tanger joined #nim |
01:47:36 | * | apahl quit (Ping timeout: 244 seconds) |
01:49:42 | * | apahl joined #nim |
01:56:16 | FromGitter | <deech> How are named blocks used? eg. `block: someBlock ...`. I can't find examples of those names are used. |
01:56:52 | FromDiscord | <Elegant Beef> Those names are for breaking |
01:57:14 | FromDiscord | <Elegant Beef> https://nim-lang.org/docs/manual.html#statements-and-expressions-block-statement |
01:57:41 | FromGitter | <deech> Oh nice! Is that the onl |
01:58:07 | FromGitter | <deech> y use? Can I pass them around or use them as labeled gotos? |
01:59:01 | * | vicfred joined #nim |
01:59:42 | FromDiscord | <Elegant Beef> You can use them to exit nested loops |
02:01:25 | FromGitter | <simonmcconnell> when compiling, is it possible to bundle required dlls (pcre64.dll for example) so there is a single .exe? |
02:02:19 | FromDiscord | <Elegant Beef> https://nim-lang.org/docs/nimc.html#dynliboverride |
02:02:43 | leorize | that doesn't do it |
02:03:08 | leorize | on windows you'd either want to pack all of those into a self-extracting app |
02:03:17 | leorize | or statically link them |
02:03:21 | * | arecacea1 quit (Remote host closed the connection) |
02:03:32 | FromDiscord | <Elegant Beef> Hey leorize im just a glorified docs linker, i dont know anything! |
02:03:55 | * | arecacea1 joined #nim |
02:08:22 | FromDiscord | <Avatarfighter> @Vindaar lets say I dont know the length what then? Do I cry? |
02:10:11 | FromGitter | <simonmcconnell> kthx |
02:16:26 | leorize[m]1 | @Avatarfighter it depends on the api |
02:16:40 | leorize[m]1 | read the api docs to know what you should be passing into the variable |
02:17:11 | FromDiscord | <Avatarfighter> im actually receiving an N length `char**ˋ |
02:17:20 | FromDiscord | <Avatarfighter> Well that didnt quote |
02:17:34 | FromDiscord | <Avatarfighter> Whatever ill do something stupid and assume the amount |
02:17:43 | leorize[m]1 | uh... what are you wrapping? |
02:17:43 | FromDiscord | <Avatarfighter> a little memory error cant hurt that bad right |
02:17:47 | leorize[m]1 | I might be able to help |
02:17:57 | FromDiscord | <Avatarfighter> not at my pc atm |
02:18:15 | FromDiscord | <Avatarfighter> but i will hit you up on matrix bc i really want to try lol |
02:19:24 | leorize[m]1 | lol, sure |
02:21:32 | * | lritter joined #nim |
02:57:27 | * | muffindrake quit (Ping timeout: 240 seconds) |
02:59:55 | * | muffindrake joined #nim |
03:43:12 | * | EastByte quit (Ping timeout: 260 seconds) |
03:43:31 | * | EastByte joined #nim |
03:57:03 | * | opal quit (Ping timeout: 240 seconds) |
04:02:30 | * | opal joined #nim |
04:06:01 | * | supakeen quit (Quit: WeeChat 2.9) |
04:06:41 | * | supakeen joined #nim |
04:11:20 | disruptek | van morrison can kiss my ass. |
04:23:13 | * | thomasross quit (Ping timeout: 260 seconds) |
04:26:50 | * | oculuxe quit (Ping timeout: 256 seconds) |
04:28:32 | Zevv | yeah, take than, Van |
04:28:44 | Zevv | aaa-men |
04:43:31 | FromDiscord | <acek7> Hey nerds |
04:43:38 | FromDiscord | <acek7> Hope ya had a good day |
05:09:48 | Zevv | night |
05:17:33 | * | solitudesf joined #nim |
05:22:32 | * | narimiran joined #nim |
05:34:03 | bung | can I get cpu processors count compile time ? countProcessors needs run time. |
05:49:50 | * | waleee-cl quit (Quit: Connection closed for inactivity) |
05:53:49 | * | Tanger quit (Quit: Leaving) |
05:55:48 | leorize | bung: why would you need that at compile time? |
05:58:27 | bung | reduce runtime time cusome |
05:58:54 | leorize | that's a terrible reason |
05:59:26 | leorize | on runtime it would bear the cost of one syscall, which is very cheap |
05:59:55 | leorize | hardcoding the value into your program at compile time makes it non-deterministic |
06:00:10 | leorize | since the number differs depending on the machine that compiled it |
06:02:59 | bung | oh, I dont know that's a cheep call, thank you! |
06:08:46 | * | NimBot joined #nim |
06:36:07 | * | Vladar joined #nim |
06:39:39 | * | nature joined #nim |
06:54:35 | * | EastByte quit (*.net *.split) |
06:54:35 | * | apahl quit (*.net *.split) |
06:54:35 | * | voltist quit (*.net *.split) |
06:54:36 | * | silvernode[m] quit (*.net *.split) |
06:54:36 | * | OMGOMG quit (*.net *.split) |
07:02:31 | Araq | bung, and if not, use this at startup |
07:02:39 | Araq | let pn = countProcessors() |
07:19:25 | * | Tanger joined #nim |
07:20:58 | bung | I dont want global variable |
07:25:17 | Araq | fair enough |
07:34:23 | * | Vladar quit (Remote host closed the connection) |
07:34:49 | FromDiscord | <unquietwiki> https://www.reddit.com/r/nim/comments/j33o9j/some_nim_project_ideas_to_consider/ need some input on this. Basically... how do I sink my teeth into this with limited time? |
07:34:57 | FromDiscord | <unquietwiki> Thanks. |
07:38:09 | * | pangey quit (Ping timeout: 272 seconds) |
07:39:34 | PMunch | @unquietwiki, not quite sure exactly what you seek help with |
07:40:52 | FromDiscord | <unquietwiki> @PMunch I have a wife & kiddo that eat up a lot of my time, and also in the middle of a job hunt. So I have a limited amount of bandwidth to dedicate to a project that #1 shows I'm employable, and #2 meets a useful need. |
07:43:40 | Araq | writing custom interpreters in Nim is currently popular |
07:44:06 | FromDiscord | <unquietwiki> @Araq got an example or two I can look at? |
07:44:25 | Araq | we can never enough of these simple things that cause endless compatibility problems later on |
07:45:37 | Araq | I'd write a jump&run game |
07:49:55 | FromDiscord | <lqdev> would anyone be interested in a pure nim realtime audio library? |
07:50:53 | FromDiscord | <unquietwiki> @lqdev Port an existing one, or one from scratch? |
07:52:54 | FromDiscord | <lqdev> i'd want to make one from scratch, abstracting over wasapi/alsa/pulseaudio/jack/etc |
07:54:04 | FromDiscord | <unquietwiki> I have a brother that does audio stuff. Some other folks too. I could ping for interest. |
07:55:20 | FromDiscord | <iWonderAboutTuatara> I wouldn't mind it |
07:55:38 | FromDiscord | <Recruit_main707> > I'm using a similar design in my game because I needed VTable kind of behaviour. But this is because I'm working without the GC and needed more control than Nim's `method`s↵@exelotl whats the issue with the methods? |
07:57:39 | FromDiscord | <iWonderAboutTuatara> If I wanted to port a library to Nim, how do I go about it? |
07:57:56 | FromDiscord | <iWonderAboutTuatara> I see some stuff with c2nim and nimterop but they confuse me so much |
07:58:15 | FromDiscord | <Recruit_main707> c2nim is relatively easy |
07:58:17 | * | mmohammadi9812 joined #nim |
07:58:27 | FromDiscord | <iWonderAboutTuatara> Does it work for full libraries? |
07:58:35 | FromDiscord | <Recruit_main707> sometimes :P |
07:58:47 | Araq | you need to have a good understanding of C and Nim, c2nim is for avoiding all the typing you would otherwise have to do |
07:58:47 | FromDiscord | <iWonderAboutTuatara> It says it only does header files? |
07:59:17 | FromDiscord | <Recruit_main707> it can also transpile code, but its usually used for wrapping |
07:59:27 | FromDiscord | <iWonderAboutTuatara> I have incredibly little familiarity with c |
07:59:32 | FromDiscord | <iWonderAboutTuatara> Wrapping is fine |
07:59:36 | Araq | actually it supports more than header files, but it always needs a helping hand as C code is not amendable to automatic translations |
07:59:55 | FromDiscord | <iWonderAboutTuatara> Meaning? |
07:59:58 | FromDiscord | <Recruit_main707> what library are you trying to wrap? |
08:00:02 | FromDiscord | <iWonderAboutTuatara> Raylib |
08:00:10 | FromDiscord | <Recruit_main707> we alreay have a raylib wrapper |
08:00:25 | FromDiscord | <Recruit_main707> up to date |
08:00:35 | Araq | ^ that's the right, good answer here. |
08:00:35 | FromDiscord | <iWonderAboutTuatara> I couldn't find one that's updated |
08:00:40 | FromDiscord | <Recruit_main707> https://github.com/Guevara-chan/Raylib-Forever |
08:00:55 | FromDiscord | <iWonderAboutTuatara> Oh that's wonderful |
08:01:03 | FromDiscord | <iWonderAboutTuatara> I also just wanted to try wrapping to see if I could do it |
08:01:12 | Araq | if you find an outdated one, updating it is much less effort than wrapping from scratch |
08:01:26 | FromDiscord | <Recruit_main707> you enter this url, and it generates and downloads the latest ones iirc https://guevara-chan.github.io/Raylib-Forever/main.html |
08:01:47 | FromDiscord | <iWonderAboutTuatara> That is pretty good |
08:01:56 | FromDiscord | <Recruit_main707> you still need to download the binaries yourself, but thats it |
08:01:58 | * | hnOsmium0001 quit (Quit: Connection closed for inactivity) |
08:02:00 | FromDiscord | <iWonderAboutTuatara> I can't ask for much more from a wrapper lmao |
08:02:04 | FromDiscord | <iWonderAboutTuatara> That's nbd |
08:02:15 | FromDiscord | <iWonderAboutTuatara> Ideally it would be in nimble, but no big deal |
08:02:44 | FromDiscord | <iWonderAboutTuatara> I do want to try making a wrapper though, just to see if I can |
08:02:49 | Araq | nimble should simply start to search github IMO |
08:03:32 | FromDiscord | <iWonderAboutTuatara> Agreed |
08:03:35 | FromDiscord | <Recruit_main707> the repo doesnt contain the actual wrapper though |
08:03:53 | FromDiscord | <Recruit_main707> only the web code that generates it |
08:04:17 | FromDiscord | <Recruit_main707> i guess thats why |
08:07:28 | * | EastByte joined #nim |
08:07:28 | * | apahl joined #nim |
08:07:28 | * | voltist joined #nim |
08:07:28 | * | silvernode[m] joined #nim |
08:07:28 | * | OMGOMG joined #nim |
08:20:48 | * | JustASlacker joined #nim |
08:23:37 | FromDiscord | <Varriount> Araq: Why is it that view types must be derived from the first parameter of a procedure? |
08:27:00 | Araq | because nobody has yet convinced me that we need more than that |
08:27:12 | * | bung_ joined #nim |
08:27:45 | Araq | the extensions are rather natural, proc p(x, y: T): var[T, y] # borrows from 'y' instead |
08:30:49 | * | bung quit (Ping timeout: 264 seconds) |
08:33:45 | narimiran | Hacktoberfest is here! https://nim-lang.org/blog/2020/10/01/hacktoberfest-with-nim.html |
08:39:08 | PMunch | Nice, time to make some high quality PRs :) |
08:39:46 | Tanger | Maintainers better prepare for some spam |
08:40:33 | PMunch | Yeah, that's a potential issue.. |
08:41:05 | FromDiscord | <Vindaar> I don't think we have a big problem with spammy PRs in our community. Even if though, it's not exactly hard to recognize and close low effort PRs (unless you get > 50 PRs in a day maybe) |
08:41:09 | narimiran | Tanger: it was ok in previous years |
08:42:11 | Tanger | That's cool |
08:42:41 | Tanger | I hear some folks are already copping it with "Removed whitesapce from end of file" requests, haha |
08:44:21 | FromDiscord | <Vindaar> they could just restrict sign up to github accounts older than X or with > Y activity in the last year or so. But w/e |
08:45:14 | supakeen | Tanger: Yea, there's a *lot* of spammy PRs. |
08:45:53 | supakeen | https://github.com/archlinux/conf.archlinux.org/pull/32/files I liked this one. |
08:45:54 | disbot | ➥ improves docs |
08:46:07 | Tanger | XD |
08:46:11 | Tanger | High value PR |
08:46:15 | Tanger | Credit to community |
08:46:17 | narimiran | aaaah, that's why we have a similar PR in our website repo |
08:46:41 | narimiran | https://github.com/nim-lang/website/pull/216 |
08:46:42 | disbot | ➥ Improved Docs |
08:47:21 | supakeen | Yeaaa. You should tag it "invalid". |
08:47:44 | FromDiscord | <Vindaar> not "GTFO w/ low effort PRs"? |
08:48:00 | supakeen | If you tag them with invalid then Digital Ocean will not accept them. |
08:48:25 | supakeen | https://hacktoberfest.digitalocean.com/details#spam |
08:48:45 | FromDiscord | <Vindaar> oh, that's nice. Was actually not aware of that |
08:49:04 | narimiran | supakeen: now tagged with both 'invalid' and 'spam' |
08:49:19 | supakeen | Good :) |
08:49:56 | supakeen | I'm very sad about how Hacktoberfest is slowly turning into a Spamfest, it was a good thing when it was small. |
08:51:25 | FromDiscord | <mratsim> What people would do for a T-shirt |
08:51:57 | FromDiscord | <Varriount> I got to show off my Nim mug in an interview recently |
08:52:11 | supakeen | Nim mugs!? |
08:52:16 | FromDiscord | <Varriount> Nobody commented on it though. 😔 |
08:52:26 | narimiran | supakeen: yeah, for people who spam extra hard :P |
08:52:35 | * | supakeen prepares the PRs. |
08:52:42 | * | EastByte quit (*.net *.split) |
08:52:42 | * | apahl quit (*.net *.split) |
08:52:42 | * | voltist quit (*.net *.split) |
08:52:42 | * | silvernode[m] quit (*.net *.split) |
08:52:43 | * | OMGOMG quit (*.net *.split) |
08:52:47 | supakeen | I do need to extend that testcase thing. |
08:52:50 | * | mmohammadi9812 quit (Ping timeout: 256 seconds) |
08:53:06 | FromDiscord | <Varriount> I don't know if they're still available. dom96 set something up a couple years ago |
08:53:27 | supakeen | Nah, I wouldn't do it for the mug. At work I have a "Mr. Grumpy" mug and it suits me too well. |
08:54:12 | FromDiscord | <lqdev> mug |
08:54:33 | Araq | hmm Mr. Grumpy, does it have my face? |
08:54:54 | supakeen | :D |
08:55:20 | supakeen | https://external-content.duckduckgo.com/iu/?u=http%3A%2F%2Fimages.esellerpro.com%2F2243%2FI%2F148%2F40%2Fmr-grumpy-mug%2520(1).JPG&f=1&nofb=1 |
08:55:21 | supakeen | Is the mug. |
08:55:32 | Araq | yep, that's me |
08:55:36 | Araq | with a hat |
08:55:55 | FromDiscord | <lqdev> https://media.discordapp.net/attachments/371759389889003532/761149380492918814/mug_root_beer.jpg |
08:55:59 | FromDiscord | <lqdev> mug. |
08:57:29 | FromDiscord | <Rika> mug root beer is good |
09:10:11 | * | EastByte joined #nim |
09:10:11 | * | apahl joined #nim |
09:10:11 | * | voltist joined #nim |
09:10:11 | * | silvernode[m] joined #nim |
09:10:11 | * | OMGOMG joined #nim |
09:14:19 | * | mmohammadi9812 joined #nim |
09:24:24 | Araq | https://github.com/nim-lang/Nim/issues/15430 Hacktoberfest! |
09:24:27 | disbot | ➥ pop pragma takes invalid input ; snippet at 12https://play.nim-lang.org/#ix=2zmt |
09:28:50 | supakeen | I have not yet ascended. |
09:29:46 | * | Tanger quit (Quit: Leaving) |
09:31:21 | * | dv-^_^6 quit (Quit: Ping timeout (120 seconds)) |
09:31:39 | * | dv-^_^6 joined #nim |
09:55:55 | FromDiscord | <dom96> yesss, tag all the issues with Hacktoberfest |
09:58:50 | * | Vladar joined #nim |
10:04:53 | * | Trustable joined #nim |
10:14:53 | * | mmohammadi9812 quit (Quit: I quit (╯°□°)╯︵ ┻━┻) |
10:19:37 | FromDiscord | <fwsgonzo> has anyone written a CMake build function for nim c or cpp backend? |
10:19:54 | * | krux02 joined #nim |
10:20:36 | * | opal quit (Remote host closed the connection) |
10:21:51 | * | opal joined #nim |
10:22:07 | * | abm joined #nim |
10:27:41 | PMunch | zielmicha__, still not here? |
10:36:15 | Araq | hmm what do you guys do when you're hungry and Lunch is far away |
10:36:41 | FromDiscord | <Rika> nothing, it passes |
10:36:44 | FromDiscord | <Rika> at least for me... |
10:37:07 | Araq | hmm it used to be the same for me, I grew old |
10:37:58 | FromDiscord | <Vindaar> depends on how motivated I am to work. If I'm not, I'll have a coffee / tea and hope it lessens my hunger 🙂 |
10:39:05 | FromDiscord | <Rika> a candy works too |
10:39:51 | * | apahl quit (Ping timeout: 244 seconds) |
10:40:55 | * | apahl joined #nim |
10:47:18 | PMunch | An apple is a good choice |
10:51:04 | * | NimBot joined #nim |
10:51:45 | * | FromDiscord joined #nim |
11:03:21 | FromDiscord | <Kiloneie> Apples and milk :P |
11:38:38 | * | JustASlacker quit (Ping timeout: 260 seconds) |
11:50:22 | PMunch | Anyone got a good lib for doing terminal programs with options? |
11:51:56 | FromDiscord | <himu> Any good guide for circular dependencies? How to resolve them? |
11:53:41 | FromDiscord | <mratsim> @PMunch, confutils and cligen |
11:53:53 | FromDiscord | <exelotl> docopt |
11:54:20 | FromDiscord | <mratsim> @himu, use concepts or put your types in common files |
11:56:08 | FromDiscord | <exelotl> if you don't have mutually recursive types or whatever, you can often solve cyclic imports by moving the offending import further down in the file to the place where it's first needed. |
11:56:18 | PMunch | @exelotl, I like the idea of docopt, but the fact that it isn't more Nim-esque is a real shame |
11:57:57 | FromDiscord | <Vindaar> @PMunch agree with that. I still use docopt (and cligen for simple things), but not a fan of the implementation tbh |
11:59:58 | FromDiscord | <exelotl> ah, you mean e.g. it should have some compile-time capabilities? |
12:00:22 | FromDiscord | <exelotl> rather than putting everything into a generic table |
12:01:37 | FromDiscord | <Vindaar> yes, for one it should deviate a bit from the "docopt spec" and make use of our fancy compile time features and also it's one of the libraries with the biggest OOP focus Nim I'm aware of. Just not a fan of that 🙂 |
12:02:31 | FromDiscord | <Vindaar> Imo it should replace the "everything is string" approach with a mix of string (for doc), and a DSL to define the options |
12:02:47 | FromDiscord | <Vindaar> but I suppose then it's not docopt anymore and yeah |
12:04:01 | FromDiscord | <Vindaar> Or one could at least parse the string at CT and create typed information that way |
12:05:49 | PMunch | Yeah |
12:06:02 | * | supakeen quit (Quit: WeeChat 2.9) |
12:06:05 | PMunch | And subcommands should be parsed into an enum or procedure calls |
12:06:38 | * | supakeen joined #nim |
12:06:45 | FromDiscord | <Vindaar> good point |
12:06:47 | PMunch | I mean best case would be parse the subcommand as procedures, then read the signature of the procedure to decide the type information |
12:07:39 | PMunch | No changes to the docopt format, but now it supports types and automatic conversion/input handling and all you need to do is implement procedures for all the subcommands |
12:08:12 | PMunch | Could of course also have "setup"/"teardown" procedures for initialising state the is required across the various procedures |
12:13:02 | * | oculux joined #nim |
12:13:59 | * | lritter quit (Remote host closed the connection) |
12:14:52 | PMunch | I really don't like the help output format of cligen.. |
12:16:11 | FromDiscord | <Vindaar> guess you need to make more free time to build your version of docopt ❤️ |
12:16:15 | FromGitter | <iffy> I have some procs that operate on MyType. I also have a global singleton instance myType: MyType. How do I expose versions of the procs that work on the singleton instance without duplicating the proc signatures? Real example: https://github.com/iffy/nim-sentry/blob/master/src/sentry.nim#L154 |
12:17:00 | FromGitter | <iffy> In Python, I might do `init = myType.init` |
12:20:04 | * | PMunch quit (Remote host closed the connection) |
12:20:32 | * | PMunch joined #nim |
12:20:48 | PMunch | @Vindaar, to make more free time I think I'd have to quit my job :P |
12:21:05 | FromDiscord | <Vindaar> We all know the feeling I fear 😐 |
12:21:30 | * | PMunch quit (Remote host closed the connection) |
12:21:42 | FromDiscord | <mratsim> you mean you have `proc foo(T: type MyType, a: int, b: string)` and `proc foo(T: MyType, a: int, b: string)`? @iffy? |
12:23:10 | FromGitter | <iffy> mratsim, no I have `proc foo(m: MyType, a: int, b: string)` and I want to have `proc foo(a: int, b: string) = myType.foo(a, b)` without having to keep the 2 foo proc signatures synced |
12:24:04 | FromDiscord | <mratsim> sent a long message, see https://paste.rs/8EO |
12:24:13 | FromDiscord | <mratsim> the last one strategy can be adapted for what you want |
12:25:28 | FromDiscord | <mratsim> just make the body a `newCall(bindSym"yourProcSymbol", bindSym"singleton")` then a for loop to append all parameters |
12:26:07 | * | PMunch joined #nim |
12:26:49 | PMunch | Sorry, my IRC client was acting up.. |
12:30:09 | FromGitter | <iffy> mratsim: Okay, I was hoping for a built-in way, but I suppose writing a macro's not too bad. Thank you! |
12:45:53 | * | PMunch quit (Remote host closed the connection) |
12:46:40 | * | PMunch joined #nim |
12:52:10 | * | evilkhaoskat joined #nim |
13:07:33 | Prestige | PMunch: I'm here now |
13:10:43 | * | opal quit (Ping timeout: 240 seconds) |
13:13:25 | * | opal joined #nim |
13:16:32 | FromDiscord | <himu> How to catch and get a custom exception object? When I call `let e = getCurrentException()` I get `e` as `Exception` object and not my custom object. I have already done: `try: ... except ReturnError: ...` where `ReturnError` is my custom error object inherited from std `ValueError` object. What am I missing? |
13:16:52 | Araq | except ReturnError as e: |
13:17:54 | FromDiscord | <himu> Thanks that helped! |
13:19:43 | FromDiscord | <malfong> Hi, I have a question: what is the biggest advantage of Nim? Especially compared to game development and c/c++. |
13:20:02 | disruptek | it's easier to read. |
13:20:25 | Araq | it has a better type system that isn't confused about pointers and arrays or what 'bool' means |
13:20:32 | Prestige | And write ^ |
13:20:46 | disruptek | sympathetic memory management. |
13:21:34 | Araq | yeah with --gc:orc it's a game changer, custom MM works well with Nim's builtin solutions |
13:23:58 | disruptek | mangled names that never clash. |
13:24:17 | Araq | pff, implementation detail |
13:24:30 | PMunch | Prestige, I had a comment about nimdow, but I can't remember what it was :P |
13:24:33 | Araq | speaking of which ... want me to review your new mangling? |
13:24:51 | disruptek | i have a new suite of problems now. |
13:25:05 | disruptek | trying to remove first-proc-arg-is-inside-mangled-name. |
13:25:30 | Araq | don't talk about "problems", they are "challenges" and "opportunities" |
13:25:37 | Prestige | PMunch: oh :P well if you remember let me know. If it's a bug you can always write an issue, too |
13:25:46 | Araq | or even "excercises for the reader" |
13:25:55 | disruptek | terminal.setStyle() is a clash against set[terminal.Style]. so, that's fun. |
13:26:05 | Araq | XD |
13:26:26 | disruptek | but worse, the proc gets picked up first, so the type becomes _1 in some contexts and fails link. |
13:26:52 | disruptek | it's a total clusterfuck^Wopportunity. |
13:27:00 | PMunch | Prestige, will do |
13:27:12 | Araq | hmm interesting problem |
13:27:17 | PMunch | I think it might've just been something about the bar |
13:27:24 | Prestige | PMunch: I'm doing a small refactor to implement window tagging that should fix a few small bugs |
13:27:25 | Araq | you can use '__' vs '_' separators |
13:27:27 | disruptek | you mean, exercise for the reader. |
13:27:27 | Prestige | Hmm okay |
13:27:32 | disruptek | Araq: that's what i do now. |
13:27:46 | FromDiscord | <malfong> Thank you for answers!! I'll try it :)b |
13:27:54 | Araq | smart |
13:28:07 | * | hello joined #nim |
13:28:15 | disruptek | it's doesn't solve the second, and more disturbing part. |
13:28:22 | hello | hello |
13:28:32 | * | PMunch is now known as hi |
13:28:33 | hi | hi |
13:28:37 | * | hi is now known as PMunch |
13:29:02 | Prestige | @mailfong there are a few game engines/frameworks written in Nim as well - nico, nimgame2, etc |
13:29:05 | hello | why shud i use nim? |
13:29:14 | Prestige | hello: hello |
13:29:32 | PMunch | hello, depends on what you're doing to be honest |
13:29:38 | PMunch | But there are plenty of good reasons |
13:29:39 | * | hello quit (Remote host closed the connection) |
13:30:10 | Araq | I regard these questions as trolling tbh |
13:30:27 | Araq | "I cannot read anything, here I am, convince me" |
13:31:22 | disruptek | hello: why don't you want to use nim? |
13:32:03 | Araq | disruptek, he already left |
13:32:17 | FromDiscord | <Rika> kicked or left? |
13:32:21 | Araq | left |
13:32:29 | FromDiscord | <Rika> sounds like a troller to me |
13:32:41 | Araq | I didn't kick him. |
13:34:03 | FromDiscord | <Rika> well you just said that |
13:34:31 | FromDiscord | <Rika> i mean they sound like a troll because they left pretty much immediately after asking |
13:34:38 | disruptek | we just lost a promising new member of the community. nice goin'. |
13:35:11 | Araq | Rika: pretty sure it was a single person |
13:38:07 | * | waleee-cl joined #nim |
13:50:05 | * | arecacea1 quit (Remote host closed the connection) |
13:51:29 | * | arecacea1 joined #nim |
13:54:05 | PMunch | Hmm, is docopt broken in recent versions of Nim? |
13:54:50 | PMunch | Somewhere between 1.0.0 and 1.2.0 it seems |
13:55:13 | FromDiscord | <Yardanico> By the way, I didn't know until a week ago that `"_field"` actually works for json.to |
13:55:14 | FromDiscord | <Yardanico> https://play.nim-lang.org/#ix=2znm |
13:56:27 | FromDiscord | <lqdev> wat |
13:56:57 | * | PMunch quit (Remote host closed the connection) |
13:56:57 | Araq | yeah, sombody could document that... |
13:57:20 | disruptek | it's a pita for mangling and i'm done chasing that shit. |
13:57:22 | * | PMunch joined #nim |
13:57:44 | disruptek | because you can do `"foo__"` and set my world on fire. |
13:58:02 | disruptek | i assume these people know what they're doing. |
13:58:34 | * | PMunch quit (Remote host closed the connection) |
13:58:47 | * | apahl quit (Ping timeout: 240 seconds) |
13:58:47 | Araq | disruptek, you can mangle '_' to 'U' |
13:58:58 | Araq | and 'U' to '_U_' |
13:59:02 | * | PMunch joined #nim |
13:59:07 | disruptek | now yer talkin'. |
13:59:15 | Araq | mangling is so much fun, I hope to join you soon |
13:59:16 | disruptek | araq must have gotten a lot of sleep last night. |
13:59:22 | disruptek | he's full of good ideas today. 😉 |
13:59:26 | disruptek | lol |
13:59:58 | PMunch | http://ix.io/2znn <- this is the error I'm facing now |
14:00:05 | Araq | name mangling is the ultimate proof that everything-is-text is a the biggest design mistake in the history of computing |
14:00:08 | * | apahl joined #nim |
14:00:31 | FromDiscord | <exelotl> Araq: "they" is grammatically a valid way to refer to a person whose gender you don't know - doesn't always mean multiple people |
14:00:53 | Araq | nah, it's not |
14:01:15 | Araq | it's wrong English |
14:02:09 | PMunch | Araq, it's literally not though |
14:02:27 | PMunch | It's been used for ages to refer to non-gendered people |
14:02:39 | Araq | if what you said were true it would be 'they is going to the cinema', pronouns don't change the verb form |
14:03:07 | PMunch | Well not quite |
14:03:09 | FromDiscord | <exelotl> You still say "they are" when talking about 1 person |
14:03:22 | Araq | I use "he/she is" |
14:03:37 | Araq | because "they are" is plural |
14:03:49 | Araq | and you know it's plural because it is not "they is" |
14:04:11 | PMunch | "Examples of the singular "they" being used to describe someone features as early as 1386 in Geoffrey Chaucer's The Canterbury Tales and also in famous literary works like Shakespeare's Hamlet in 1599." - https://www.bbc.com/news/newsbeat-49754930 |
14:04:55 | PMunch | I'm sorry Araq, but on this you are simply just wrong. They (are) have been used for singular non-specified gendered for hundreds of years |
14:04:57 | disruptek | PMunch: ask them about the use of them. |
14:05:07 | Araq | and kings used "we" instead of "I" |
14:05:16 | Araq | and "we" is plural too |
14:05:31 | FromDiscord | <exelotl> It's weird but trust me I'm a native speaker and have been using singular "they" since I was like 6 years old. It's definitely valid English :P |
14:05:39 | PMunch | And if you try to apply logic rules like "are is plural" to english I have some bad news for you :P |
14:05:44 | PMunch | English is a hot mess |
14:06:24 | PMunch | We use the plural form here in Norway as well, I'm actually a bit surprised that German doesn't have a similar concept |
14:07:35 | Araq | I remain entirely unconvinced as pronouns do not change the verb form. In English or otherwise. |
14:08:03 | disruptek | i'm okay with that. |
14:08:46 | FromDiscord | <exelotl> It absolutely doesn't make sense if you sit down and think about it, but it *is* still how English works, and its the only way we have to express this besides "he or she" (which is awkward and arguably exclusionary) and "it" which is only considered acceptable when referring to pets/objects, not people |
14:08:51 | PMunch | Ah, updating to a newer version of the regex library fixed my issue with docopt |
14:08:53 | Araq | I am, you are, he/she/it is, we are, you are, they are. |
14:09:05 | Araq | is how everybody learns English. |
14:09:29 | PMunch | Yeah, and you can be both singular and plural |
14:09:30 | disruptek | i think maybe araq started a new medication. |
14:09:38 | PMunch | And it still uses "are" in both meaning |
14:11:04 | PMunch | Oh well, I'm heading home |
14:11:11 | * | PMunch quit (Quit: Leaving) |
14:11:32 | FromGitter | <topcheese> Who is this person you arguing with, because I believe THEY ARE right? |
14:12:07 | Araq | lol. |
14:12:29 | FromGitter | <topcheese> Sorry, hate to jump in like a lurker. I've been here before though. |
14:12:32 | Araq | yep, totally doesn't work, wrong English for me |
14:12:53 | disruptek | when he finishes nim, araq is going to work on English. |
14:13:06 | FromDiscord | <acek7> are we arguing about things |
14:13:11 | FromGitter | <topcheese> Whatever works for you, works for me. |
14:13:15 | Araq | and IMHO it's wrong for you too if you're honest about it. |
14:13:19 | disruptek | they are arguing about them, yes. |
14:13:31 | FromGitter | <topcheese> probably. |
14:13:42 | disruptek | them is arguing about they, rather. |
14:13:53 | narimiran | Araq pretending that there's no "Sie" in german ;) |
14:14:40 | FromDiscord | <acek7> ya know i took english almost every year in high school, still terrible at it |
14:14:52 | FromDiscord | <Rika> Man the fuck did I get back to |
14:15:03 | Araq | narimiran, that's comparable to English's "you" though |
14:15:05 | FromDiscord | <acek7> oh thank goodness |
14:15:13 | FromDiscord | <acek7> Rika get this straightened out |
14:15:23 | FromDiscord | <Rika> How |
14:15:42 | FromDiscord | <acek7> find something else for them to argue about |
14:15:43 | disruptek | we need a native english speaker. |
14:16:03 | FromDiscord | <hugogranstrom> is the dress white or blue? 😛 |
14:16:09 | disruptek | yes. |
14:16:09 | FromDiscord | <Rika> Define "native" |
14:16:16 | FromDiscord | <hobbledehoy> Is it pronounced gif or gif? |
14:16:19 | FromDiscord | <exelotl> I already used the "I'm a native speaker" argument and it didn't work :P |
14:16:22 | FromDiscord | <Rika> Gif |
14:16:44 | FromDiscord | <hobbledehoy> Wrong sadly |
14:16:45 | FromDiscord | <Yardanico> It's pronounced APNG |
14:16:50 | FromDiscord | <Rika> Webp |
14:17:00 | FromDiscord | <Yardanico> That's not animated |
14:17:14 | FromGitter | <topcheese> I know this one it's pronounced potato. |
14:17:18 | FromDiscord | <exelotl> Its pronounced hif with a hard H |
14:17:30 | disruptek | aiche? |
14:17:31 | Araq | sorry I developed my own feel for the language after decades |
14:17:35 | disruptek | or haiche? |
14:17:45 | FromDiscord | <Clyybber> It makes sense if you consider plural a superset of singular |
14:17:49 | FromDiscord | <Rika> @Yardanico https://media.discordapp.net/attachments/371759389889003532/761230390085550091/Screenshot_20201001-231735.jpg |
14:18:01 | disruptek | english doesn't make sense, unfortunately. |
14:18:03 | Araq | which also aligns well with how everybody is taught English world-wide, mind you. |
14:18:03 | FromDiscord | <Clyybber> But it truly doesn't make sense coming from german |
14:18:06 | FromGitter | <topcheese> I'm not the one to argue with a person who can create LANGUAGES. hahaha |
14:18:53 | disruptek | they is just being difficult. |
14:18:53 | FromDiscord | <Rika> English is not a strict set of rules |
14:18:56 | FromDiscord | <Rika> It changes |
14:19:09 | FromDiscord | <Rika> Languages change, if they don't, they're considered dead |
14:19:11 | FromDiscord | <Idefau> my pronouns are gnu/linux |
14:19:12 | FromGitter | <topcheese> Yessum massa |
14:19:18 | Araq | it doesn't change as quickly as you want it to change. |
14:19:20 | FromDiscord | <lqdev> @Yardanico that's where you're wrong, kiddo https://raw.githubusercontent.com/liquid600pgm/pan/master/hello.webp |
14:19:29 | FromDiscord | <Yardanico> well okay |
14:19:31 | FromDiscord | <Rika> It changes with the speakers |
14:19:32 | FromDiscord | <lqdev> (open in browser, discord doesn't like animated webp) |
14:19:37 | FromDiscord | <Yardanico> But apng |
14:19:46 | FromDiscord | <Rika> And if there are enough speakers that say that this is valid then it is |
14:19:47 | FromDiscord | <Clyybber> Araq: The native english speakers shall decide :) |
14:20:10 | FromDiscord | <exelotl> Regardless of what you think, you should get used to singular "they" so that you don't think someone is talking about multiple people when they're talking about one person. |
14:20:26 | FromDiscord | <acek7> wait who made a language |
14:20:34 | FromDiscord | <Idefau> the anglo saxons |
14:20:51 | FromGitter | <topcheese> Well it's your world, and I'm just a squirrel trying to get the nim. |
14:21:05 | FromDiscord | <acek7> we should all just learn to talk to each other in Nim |
14:21:16 | FromDiscord | <lqdev> idf04: the anglo klaxons? |
14:21:19 | FromDiscord | <Clyybber> echo "ok" |
14:21:36 | FromDiscord | <lqdev> sorry, i had to say that. |
14:21:39 | disruptek | assert false |
14:21:57 | FromDiscord | <Clyybber> x = not x |
14:22:27 | FromDiscord | <Idefau> `if true: return false else: return true` |
14:22:43 | FromDiscord | <exelotl> echo "echo is to English as emit is to C" |
14:23:01 | Araq | exelotl: I prefer to read correct English |
14:23:30 | FromDiscord | <acek7> Wait is Araq the guy that made Nim |
14:23:37 | FromDiscord | <Idefau> no i made nim |
14:23:39 | FromDiscord | <Clyybber> Araq: Well the oxford dictionary has it since 1998 |
14:24:09 | FromDiscord | <Clyybber> and just like we changed our spelling officially they can change their grammar officially |
14:24:15 | FromDiscord | <lqdev> idf04: that's what an impostor would say |
14:24:28 | FromDiscord | <Clyybber> idf04 was ejected. |
14:24:29 | FromDiscord | <Idefau> lqdev sus |
14:24:48 | Araq | yeah, that's exactly what doesn't really work. Spelling is very different from grammar |
14:24:49 | FromDiscord | <exelotl> Araq: what would it take for you to think that singular "they" is correct English? |
14:25:18 | Araq | it would take me an exelotl who says "they is" |
14:25:26 | FromDiscord | <Clyybber> Araq: Its not really grammar though |
14:25:31 | FromDiscord | <Clyybber> Its just meaning |
14:25:43 | FromDiscord | <Clyybber> Add: You can use they to refer to singular to your rules |
14:25:47 | FromDiscord | <Clyybber> no grammar changed |
14:26:02 | FromDiscord | <Clyybber> There is no "they is" it stays "they are" |
14:26:09 | FromDiscord | <Clyybber> the semantics changed but not the grammar |
14:26:15 | FromDiscord | <exelotl> I don't say "they is" in the same way I don't say "you is". |
14:26:21 | Araq | look, it's fine that you all don't understand pronouns nor grammar. But I do. |
14:26:27 | FromDiscord | <Clyybber> bruh |
14:26:32 | Araq | and for me that's the end of the dicussion. |
14:26:55 | FromGitter | <topcheese> Well from my understanding the English language isn't perfect. |
14:27:12 | FromDiscord | <Idefau> ok lets talk esperanto |
14:27:15 | FromDiscord | <Clyybber> Araq: Can you check telegram |
14:27:20 | FromDiscord | <acek7> so what is everyone working on today |
14:27:40 | FromDiscord | <Clyybber> Araq: Or this > we really need a hidden type parameter for lent/var/openArray for convienence :D |
14:28:16 | FromDiscord | <Idefau> im working on random issues for the hacktoberfest |
14:28:34 | FromDiscord | <Idefau> stdlib mostly |
14:29:20 | FromGitter | <topcheese> Well stay safe and take care! I'll be back when I start fiddling with Nim again. |
14:29:48 | Araq | exelotl: but 2nd person is not comparable because you cannot subsitute the 'you' for <Name here> |
14:29:48 | * | arecacea1 quit (Remote host closed the connection) |
14:30:12 | * | arecacea1 joined #nim |
14:30:23 | Araq | Mr Miller, would you like a coffe? - 2nd person. |
14:30:43 | Araq | would Mr Miller like a coffee? switched to 3rd person. |
14:31:30 | FromDiscord | <Idefau> Mr Miller is milling at his mill |
14:31:33 | Araq | would he like a coffee? 3rd person singular. |
14:31:41 | Araq | would they like a coffee? 3rd person plural. |
14:31:52 | disruptek | they is not drinking coffee today; they is arguing grammar in #nim instead. |
14:32:07 | FromDiscord | <Clyybber> Araq: Is your argument that its wrong? Its true by definition now, since the defacto spec of the english language includes it now :p |
14:32:12 | FromGitter | <topcheese> What do you mean. Mr Miller says to Peter, would Sally like a coffe? |
14:32:53 | Araq | not to mention that 'you' is super bad in English, you never know if it's one or many... |
14:32:57 | FromGitter | <topcheese> oops, you were saying you. |
14:33:27 | Araq | brave new world where singular forms got nuked |
14:33:29 | FromGitter | <topcheese> This is why I've been lurking instead. hahaha |
14:34:22 | FromDiscord | <Vindaar> cool, I always wanted #nim to turn into #EnglishGrammar. Btw, "haiche" master race, disruptek |
14:34:30 | FromGitter | <topcheese> I was waiting until I can contribute something good. |
14:34:50 | FromGitter | <topcheese> and I thought I was leaving. lol |
14:35:10 | FromDiscord | <Clyybber> lol |
14:35:15 | FromDiscord | <exelotl> Sure, 'you' and 'they' are both messy and ambigious in English, so you have to go by context. |
14:35:36 | FromDiscord | <exelotl> You can't logic you way to a solution :P |
14:36:01 | Araq | iirc they passed a law in Canada about 'se' for a gender neutral form |
14:36:14 | Araq | well I forgot the word |
14:36:57 | Araq | but by your logic that was all completely unnecessary because everybody can simply use 'they'. Apparently Canada doesn't understand English. |
14:37:23 | Prestige | using 'they' for a single person doesn't work in my brain |
14:37:38 | Araq | millions of native speakers, all not aware that 'they' is singular now... |
14:38:06 | Prestige | I can't tell if that's sarcasm |
14:38:39 | Araq | it is sarcasm. |
14:39:18 | Prestige | Good haha. Can't even tell with people on this subject, now |
14:39:59 | Araq | the truth is simply that 'they' is plural. In 2020, for most native speakers. Prove me wrong... |
14:41:02 | FromDiscord | <Idefau> can't |
14:41:41 | FromGitter | <topcheese> A good friend of mine passed away recently. They were good people ... if you're counting body AND soul. |
14:42:08 | FromDiscord | <hugogranstrom> Isn't these kinds of discussions perfect for <#371759607934353448>? ;P |
14:43:33 | Araq | Clyybber: I added it to the views spec |
14:43:59 | Araq | but here it is in a different form: |
14:44:41 | Araq | we need to add a lifetime parameter to the view type |
14:44:59 | FromGitter | <topcheese> ooh, but I'm glad I'm still here. what "views" spec, if you don't mind me asking? |
14:44:59 | Araq | a borrow then is a type inference of this lifetime parameter |
14:46:39 | FromDiscord | <acek7> is the guy who does the nim plugin for VSCode in here |
14:46:43 | Araq | https://nim-lang.github.io/Nim/manual_experimental.html#view-types |
14:48:13 | FromGitter | <topcheese> Thanks! |
14:51:59 | * | bung_ quit (Ping timeout: 260 seconds) |
14:53:04 | FromDiscord | <exelotl> > [...] for most native speakers. Prove me wrong...↵Typically these discussions start when 1 person misunderstands a message due to thinking "they" is only plural, and several other people explain that's not the case. So I'd be very doubtful that "most native speakers" think that the singular usage is invalid. I've never seen this argument happen IRL among native speakers. |
14:53:15 | FromDiscord | <XxDiCaprioxX> `continuations: Table[string, string]` `let continuationTypes = ["", "", ""]` `continuations: array[3, string]` `continuations.add(continuationTypes[i], continuations[i])` does anyone see the problem? |
14:55:08 | FromDiscord | <Rika> You redefined continuations |
14:55:55 | * | tane joined #nim |
14:56:14 | disruptek | ~views is https://nim-lang.github.io/Nim/manual_experimental.html#view-types |
14:56:14 | disbot | views: 11https://nim-lang.github.io/Nim/manual_experimental.html#view-types |
15:05:41 | FromDiscord | <Clyybber> Araq: Makes sense, but this is still algorithm internal right? |
15:05:52 | Araq | right |
15:06:07 | FromDiscord | <Clyybber> cool |
15:06:51 | disruptek | c-blake just wrote a new package manager for nim. |
15:07:21 | * | hnOsmium0001 joined #nim |
15:07:27 | Araq | disruptek, link? |
15:08:05 | disruptek | i'm sure he will publish it soon. |
15:08:26 | disruptek | he just emailed it to me for comments. |
15:09:12 | Araq | bah, should have told us after he made it public |
15:09:22 | Araq | maybe he didn't want us to know just yet |
15:09:39 | disruptek | he shouldn't have told me, then. |
15:09:46 | Araq | lol |
15:10:10 | Araq | good to know you're a trustworthy friend |
15:10:43 | disruptek | he's pretty verbose, and there's no mention of the secretive nature of package manager development. |
15:10:53 | disruptek | he wrote it as a forum post, originally. |
15:11:01 | disruptek | i'm pretty sure it's safe to disseminate. |
15:11:23 | Araq | alright |
15:11:41 | disruptek | just sayin'; it's good to have more package managers. |
15:12:01 | Araq | I'd rather have a single one that works well |
15:12:39 | Araq | but it's ok |
15:13:28 | disruptek | i feel bad that you can't install nimph, but not bad enough to try to debug windows for you. |
15:13:43 | Araq | er, I didn't tell you |
15:13:49 | Araq | but 'bump' crashes for me now |
15:13:54 | disruptek | lol why |
15:13:59 | Araq | dunno |
15:14:05 | FromDiscord | <Clyybber> bumped too hard |
15:14:06 | Araq | it's probably project specific |
15:14:21 | FromDiscord | <acek7> whats the benefit of having one good package manager over multiple |
15:14:33 | leorize | Araq: #15443 shouldn't change anything other than reducing code |
15:14:34 | disbot | https://github.com/nim-lang/Nim/pull/15443 -- 3koch: unify nimble building scripts [backport:1.4] |
15:14:49 | leorize | I made cloneDependency accept bundled directory recently |
15:14:53 | Prestige | I need to try nimph, still |
15:14:53 | FromDiscord | <Clyybber> @acek7 > one good package manager |
15:15:00 | Araq | leorize, hmmm |
15:15:40 | Araq | acek7: what's the benefit of one beautiful girlfriend over three ugly ones? |
15:15:49 | FromDiscord | <acek7> you got a point |
15:16:00 | FromDiscord | <acek7> also who ever made the nim logo did a damn fine job |
15:16:04 | disruptek | i think araq just called nimph ugly. |
15:16:09 | Prestige | lmao |
15:16:21 | FromDiscord | <Clyybber> Araq bad example, cheerleader effect :P |
15:16:54 | FromDiscord | <acek7> the nim logo gives me medieval ninja feels |
15:17:02 | disruptek | leorize: what is cloneDependency and what are bundled directories? |
15:17:03 | FromDiscord | <Clyybber> :nimrawr: |
15:17:28 | leorize | disruptek: it's a helper proc for koch to clone an external dep because araq hates submodules |
15:17:32 | Araq | disruptek, lol |
15:17:42 | Araq | leorize, alright merge it yourself |
15:17:54 | disruptek | he just doesn't understand them. they. it. is. whatever. |
15:18:13 | leorize | Araq: I don't have commiter permission lol |
15:21:07 | Araq | we should change that |
15:21:51 | FromDiscord | <acek7> Araq whatever happened to nimedit |
15:22:34 | Araq | people paid me for compiler development, not for crappy IDEs |
15:23:16 | FromDiscord | <acek7> another crappy IDE was just what i needed |
15:23:31 | Araq | feel free to create PRs |
15:23:35 | disruptek | and there are so few to choose from. |
15:23:56 | Prestige | I really need to contrib to nimlsp. |
15:24:23 | Araq | I really need to finish my nimsuggest reimplementation... |
15:26:01 | * | bung joined #nim |
15:26:31 | Prestige | Araq: Let's make it a race. First one done gets 1 million internet points |
15:26:40 | * | evilkhaoskat quit () |
15:27:51 | * | mmohammadi9812 joined #nim |
15:30:27 | * | bung quit (Ping timeout: 240 seconds) |
15:30:50 | leorize | Araq: no more project separation (on the user side) please :P |
15:31:11 | leorize | I can tell you that 70% of nim.nvim is dedicated to managing nimsuggest instances |
15:31:26 | leorize | I really just want to have exactly one |
15:32:06 | disruptek | one per each nvim instance? |
15:33:36 | disruptek | when you edit files in disparate environments, nimsuggest configuration needs to vary accordingly. so a suggestion server is really the right approach long-term. |
15:35:35 | leorize | yep |
15:35:59 | leorize | nimsuggest configuration is just an implementation detail tbh |
15:36:37 | disruptek | yes, but it's senseless to run multiple instances that share the same config, right? |
15:37:10 | leorize | yep, but nimsuggest can also be a server managing all different nimsuggest instances |
15:37:25 | leorize | then abstract the interface over them so that plugin writers don't have to care |
15:37:32 | disruptek | yeah, that's my point. |
15:38:39 | leorize | I'm waiting for PMunch's nimlsp to gain semantic highlighting to explore a direction for nim.nvim that lets me remove like 70% of the current code :P |
15:38:59 | disruptek | it would be good to unify those efforts, yes. |
15:39:11 | leorize | in the mean time I still have to write a logger module for nim.nvim... |
15:42:35 | * | JustASlacker joined #nim |
15:47:26 | * | JustASlacker quit (Ping timeout: 246 seconds) |
15:52:05 | * | FromDiscord quit (Remote host closed the connection) |
15:52:19 | * | FromDiscord joined #nim |
15:52:35 | * | FromDiscord quit (Remote host closed the connection) |
15:52:51 | * | FromDiscord joined #nim |
16:02:12 | FromDiscord | <himu> Is there something like `instanceof` in Nim? |
16:02:30 | disruptek | try `of` |
16:02:48 | * | dv-^_^6 quit (Quit: The Lounge - https://thelounge.chat) |
16:03:29 | Prestige | for type comparisons? |
16:05:23 | FromDiscord | <himu> Yeah. Related to inheritance. |
16:06:35 | FromDiscord | <himu> I am passing a parent object as parameter to a proc. Just wanted to check what is the type of the child inside the body of the proc |
16:06:44 | FromDiscord | <Rika> As disruptek said |
16:06:46 | FromDiscord | <Rika> Use of |
16:06:53 | FromDiscord | <himu> Yeah. It's working. |
16:06:55 | FromDiscord | <himu> Thanks |
16:07:11 | disruptek | weird. |
16:28:28 | reversem3 | Does anyone get nimsuggest errors when using neovim ? like example Process failed to start: too many open files |
16:28:43 | reversem3 | or this nimsuggest is only available to files on disk |
16:28:43 | reversem3 | Error detected while processing function nim#suggest#ProjectFindOrStart[4]..nim#suggest#ProjectStart[1]..ni |
16:28:43 | reversem3 | m#suggest#ProjectFileStart[7]..nim#suggest#manager#NewInstance[37]..<SNR>69_instance_start: |
16:34:57 | leorize | reversem3: are you on the latest nim.nvim? |
16:35:02 | leorize | what is your nimsuggest version? |
16:35:25 | leorize | and the "nimsuggest is only available to files on disk" is intentional :P |
16:35:37 | leorize | nimsuggest can't process files that are not on disk, unfortunately |
16:36:47 | FromDiscord | <kodkuce> hmm what you guys use for wrting stuff you so you dont froget, like writing on notebooks is bad i allwies lose them around house, i need like some note taking app like where i can post foramted code too and stuff |
16:37:00 | * | reversem3 sent a long message: < https://matrix.org/_matrix/media/r0/download/matrix.org/VpXetRbhPilJFXqsTqMqutgK/message.txt > |
16:37:09 | leorize | emacs diehard would use org-mode |
16:37:16 | leorize | I just write a bunch of markdown |
16:37:18 | FromDiscord | <kodkuce> anygood suggestion for this, i guess i can self host matrix too and send msg to myself |
16:37:41 | FromDiscord | <kodkuce> probbaly should asked in offtopick sorry |
16:37:43 | reversem3 | Use JoplinApp for all your notes |
16:37:48 | FromDiscord | <lqdev> @kodkuce synapse (the official matrix server) is really heavy because it's written in node.js |
16:37:52 | FromDiscord | <lqdev> so it's a bad idea |
16:38:01 | FromDiscord | <kodkuce> dont they have some new one |
16:38:03 | leorize | nah, synapse is a python app |
16:38:07 | leorize | it's even worse :P |
16:38:29 | leorize[m]1 | nixfreak: hmm that's weird, maybe try updating nim.nvim? |
16:38:31 | FromDiscord | <kodkuce> somthing named on D i think they sey that will be really light |
16:38:44 | leorize | dentrite is the new thing but it's not production ready yet |
16:38:54 | FromDiscord | <lqdev> leorize iirc when friends were setting up their own homeserver it used node.js |
16:39:13 | FromDiscord | <lqdev> waiting for npm packages to install |
16:39:18 | FromDiscord | <lqdev> at least |
16:39:29 | supakeen | The big matrix homeserver is Python I believe. |
16:39:31 | leorize | matrix bots are usually written in js |
16:39:42 | supakeen | Ah this was already said. |
16:39:42 | leorize | which is probably why your friends needed node |
16:39:45 | * | supakeen runs away |
16:39:45 | reversem3 | JoplinApp is really good , I have probably used the majority of note taking apps , including CLI and GUI based and JoplinApp is opensource , free, and you can encrypt everything , plus you can use a cli if you want also , I have home, work, all my notes on it now , uses MD, github flavor , latex and much much more |
16:40:19 | FromDiscord | <kodkuce> nice does it have some backup option too? |
16:40:26 | reversem3 | https://joplinapp.org |
16:41:24 | FromDiscord | <kodkuce> yep allredy reading |
16:41:35 | FromDiscord | <mratsim> Is there a reason why terminal.nim doesn't have gray/light gray? |
16:43:51 | disruptek | racist. |
16:44:35 | FromDiscord | <Avatarfighter> I don't know why I excepted more when I woke up |
16:45:14 | leorize | lol, the true reason is that those are not in ansi 16-color set iirc |
16:45:39 | FromDiscord | <lqdev> there's light black and normal white |
16:45:46 | leorize | 7 and 15 should be the values you're looking for, don't know if they have it in there though |
16:54:24 | reversem3 | leorize: thanks I had to do some updates with the Plug manager |
16:57:52 | reversem3 | Still get segmantation faults when saving but at least it works now |
16:58:11 | reversem3 | vi floats.nim [11:55:12] |
16:58:11 | reversem3 | [1] 99267 segmentation fault /usr/local/bin/nvim floats.nim |
16:58:51 | leorize[m]1 | Araq: re: views, are we gonna see a `borrow(x)` proc/tempate? |
16:59:01 | leorize[m]1 | or are you aiming for `lent` inferrence? |
16:59:12 | leorize[m]1 | template* |
17:00:07 | leorize[m]1 | reversem3: you might need to update your nvim if it segfault :P |
17:03:46 | disruptek | !requires cligen |
17:03:48 | disbot | cligen: 11jiro4989[iler,3termnovel,3coc-radar], 11snus-kin[3aggregate,3mmb], 11ikarino[3DeepTownOpt,3nimSCS], 11disruptek[3wet,3gully], 11yglukhov[3clurp,3gplay], 11cwpearson/3graph-datasets2, 11treeform/3fidget, 11jonasrauber/3norm, 11momeemt/3BlackvasCli, 11oxfordmmm/3catwalk, 11ba0f3/3rcon2tele, 11andreas-wilm/3lofreq3, 11ixalender/3dopic, 11gis-rpd/3fluidemux |
17:04:18 | reversem3 | I don't see in the style guid if you should use parenthesis for echo? Should I be using () when printing something to the screen or no? |
17:04:33 | reversem3 | * I don't see in the style guide if you should use parenthesis for echo? Should I be using () when printing something to the screen or no? |
17:04:39 | FromDiscord | <Rika> there is none afaik |
17:04:44 | FromDiscord | <Rika> use with or without if you want |
17:05:06 | disruptek | ()-free is called "command syntax" and it's equivalent and optional. |
17:06:04 | reversem3 | and this doesn't have any kind of performance impact , like the compiler has to do more computations because of parenthesis ? |
17:06:19 | disruptek | no. |
17:06:36 | reversem3 | kk thx |
17:06:57 | FromDiscord | <Rika> and if it did your project would need to be absolutely gargantuan to see enough of an impact |
17:09:17 | voidpi | '' |
17:09:24 | voidpi | sorry |
17:12:12 | * | natrys joined #nim |
17:14:29 | FromDiscord | <haxscramper> Is it possible to hide singe field for object when importing? Something `import X except Y` but for single object field |
17:19:49 | * | xace quit (Ping timeout: 246 seconds) |
17:26:57 | * | bung joined #nim |
17:27:07 | FromDiscord | <Rika> no |
17:27:16 | FromDiscord | <Rika> if its exported its exporte |
17:27:17 | FromDiscord | <Rika> (edit) 'exporte' => 'exported' |
17:31:03 | * | thomasross joined #nim |
17:32:54 | * | haxscramper joined #nim |
17:35:52 | * | bung quit (Ping timeout: 256 seconds) |
17:43:20 | * | vicfred quit (Quit: Leaving) |
17:48:35 | FromDiscord | <Yardanico> hacktoberfest spam already started lol |
17:48:39 | FromDiscord | <Yardanico> Saw these two PRs |
17:49:23 | * | opal quit (Ping timeout: 240 seconds) |
17:51:34 | FromDiscord | <Avatarfighter> Does nimble allow you to have a certain file in a project be a dependency? |
17:51:55 | FromDiscord | <Avatarfighter> i assume no but I feel bad borrowing a file from someone repo |
17:52:41 | * | opal joined #nim |
17:53:46 | FromDiscord | <Yardanico> just credit them |
17:53:52 | FromDiscord | <Yardanico> Link to the repo |
17:54:03 | FromDiscord | <Avatarfighter> Yeah I should probably just do that |
17:54:08 | FromDiscord | <Yardanico> and license |
17:54:20 | * | vicfred joined #nim |
17:54:34 | FromDiscord | <Yardanico> There's a problem by the way - if there's no license in a GitHub repo, it's technically "all rights reserved" and you can't use it |
17:54:46 | FromDiscord | <Avatarfighter> Ah |
17:54:52 | FromDiscord | <Avatarfighter> Well then I'll just pretend I didn't know |
17:54:59 | FromDiscord | <Avatarfighter> 🤷♂️ |
17:55:08 | FromDiscord | <Yardanico> so it's better to ask the creator although most of them just forget to add a license |
17:55:50 | FromDiscord | <Avatarfighter> Yeah ofc |
17:57:53 | FromDiscord | <Rika> ......unless the license is on the files themselves |
17:59:20 | FromDiscord | <Clyybber> Araq: https://github.com/nim-lang/Nim/commit/800d6204cd1e55919fb608ed8f151774894ee2b7 lol |
18:00:57 | * | EastByte quit (*.net *.split) |
18:00:57 | * | voltist quit (*.net *.split) |
18:00:57 | * | silvernode[m] quit (*.net *.split) |
18:00:57 | * | OMGOMG quit (*.net *.split) |
18:01:27 | FromDiscord | <Avatarfighter> hm I regret toggling nimble dark mode on |
18:01:38 | FromDiscord | <Yardanico> You should've made a PR @Clyybber |
18:01:41 | FromDiscord | <Yardanico> xdd |
18:01:44 | FromDiscord | <Avatarfighter> LMAO |
18:01:49 | FromDiscord | <Clyybber> heh, for the emojis |
18:02:00 | FromDiscord | <Yardanico> For hacktoberfest |
18:02:54 | FromDiscord | <Avatarfighter> This is crazy |
18:02:54 | FromDiscord | <Avatarfighter> https://nimble.directory/pkg/neel |
18:03:01 | FromDiscord | <Avatarfighter> I never knew that someone did this!! |
18:03:42 | FromDiscord | <Yardanico> It's very simple at the moment though |
18:03:58 | FromDiscord | <Yardanico> There are already nim bindings to webview and the like |
18:04:02 | FromDiscord | <Avatarfighter> Yes but just the fact that someone is interested in making such a library is very exciting |
18:05:25 | * | bung joined #nim |
18:07:47 | FromDiscord | <Yardanico> Found this look |
18:07:49 | FromDiscord | <Yardanico> Lol* |
18:07:54 | FromDiscord | <Yardanico> https://media.discordapp.net/attachments/371759389889003532/761288291966124083/IMG_20201001_210740_113.jpg |
18:08:13 | FromDiscord | <Avatarfighter> I wish the shirts for hacktoberfest were of better quality |
18:08:30 | FromDiscord | <Avatarfighter> I got one either last year or the year before and the quality was meh |
18:08:36 | FromDiscord | <Yardanico> Well, they're free |
18:08:41 | FromDiscord | <Avatarfighter> I know |
18:08:50 | FromDiscord | <Rika> tfw too picky with shirt cloth |
18:09:15 | FromDiscord | <Avatarfighter> The only reason I'm being picky is because getting a deal with a printing company isn't as hard as it seems lmao |
18:09:16 | FromDiscord | <Rika> my skin seems really sensitive to certain types of cloth |
18:09:17 | FromDiscord | <Yardanico> I have one from 2018 (chose the wrong size though) and its quality is pretty good |
18:09:37 | FromDiscord | <Rika> avatar i mean myself |
18:09:48 | FromDiscord | <Clyybber> @Yardanico lol |
18:10:01 | FromDiscord | <Avatarfighter> Rika: Ohhh that makes sense lmao |
18:10:19 | FromDiscord | <Clyybber> I don't want that t-shirt, probably produced with child labor |
18:10:21 | FromDiscord | <Avatarfighter> I thought I was being called picky I was ready to pack up all my `:)` PRs and typo fixes smh |
18:10:39 | FromDiscord | <Yardanico> @Clyybber you can plant a tree or something instead |
18:11:34 | * | bung quit (Ping timeout: 260 seconds) |
18:13:00 | FromDiscord | <Avatarfighter> is 18 cm a lot? |
18:13:03 | FromDiscord | <Clyybber> I'd rather do it myself |
18:13:08 | FromDiscord | <Yardanico> "T-shirts (or the option to plant a tree) will be awarded on a first-come, first-serve basis to the first 70,000 participants who successfully complete the Hacktoberfest challenge. We’ll start sending out emails with more details on redeeming T-shirts throughout the month, so stay tuned." |
18:13:13 | FromDiscord | <Clyybber> @Avatarfighter depends on what you are measuring lol |
18:13:16 | FromDiscord | <Yardanico> @Avatarfighter it depends on what you're measuring |
18:13:23 | FromDiscord | <Avatarfighter> Well |
18:13:25 | FromDiscord | <Rika> > is 18 cm a lot?↵@Avatarfighter are we gonna be whipping out the "is one hour long" rhetorical questions again |
18:13:33 | FromDiscord | <Avatarfighter> nono |
18:13:36 | FromDiscord | <Clyybber> nah its a dick contest |
18:13:37 | FromDiscord | <Rika> lol |
18:13:40 | FromDiscord | <Rika> DAMN |
18:13:45 | FromDiscord | <Avatarfighter> Im just trying to measure my e-peen smh |
18:13:51 | FromDiscord | <Yardanico> what |
18:13:59 | FromDiscord | <Rika> his electronic penis |
18:14:07 | FromDiscord | <Yardanico> yes, but what is that |
18:14:18 | FromDiscord | <juan_carlos> If someone makes all my tests and I never see him/her again, works for me. 🤷 |
18:14:30 | FromDiscord | <Yardanico> @disruptek we need your expert opinion |
18:14:35 | * | bung joined #nim |
18:14:45 | FromDiscord | <Clyybber> (edit) 'I'd' => 'I' |
18:14:51 | FromDiscord | <Avatarfighter> E-peen mean Online Penis |
18:15:00 | FromDiscord | <Avatarfighter> e-peen equates to your online ego |
18:15:07 | FromDiscord | <Avatarfighter> the bigger the e-peen the bigger the online ego |
18:15:13 | FromDiscord | <Rika> never knew the ego is stored in the penis |
18:15:25 | FromDiscord | <Avatarfighter> how else do you think ego on the internet is stored? |
18:15:25 | FromDiscord | <Rika> you learn new things every day |
18:15:34 | FromDiscord | <Rika> its just like how pee is stored in the balls right? |
18:15:42 | FromDiscord | <Avatarfighter> Yeah exactly |
18:15:59 | FromDiscord | <Rika> now that i think about it, do girls pee, or have egos |
18:16:16 | FromDiscord | <Avatarfighter> Ugh I need a ruler I can't tell if 18cm is tall or not for a case |
18:16:31 | FromDiscord | <Rika> for what case |
18:16:32 | FromDiscord | <Clyybber> wtf |
18:17:02 | FromDiscord | <Avatarfighter> I'm changing my NAS because the current SOC that I have is like 20 years old and it can barely do SMB |
18:17:20 | FromDiscord | <Avatarfighter> I also want to be able to run a nim webserver on it without it choking to death |
18:17:36 | FromDiscord | <Yardanico> Don't fuck [with] electronics |
18:17:53 | FromDiscord | <Avatarfighter> psh |
18:17:59 | FromDiscord | <Avatarfighter> I'm expert electronic man |
18:18:04 | FromDiscord | <Avatarfighter> with all the experience |
18:18:24 | FromDiscord | <Rika> man cases arent usually measured by the length of one side |
18:18:31 | FromDiscord | <Avatarfighter> I know |
18:18:45 | FromDiscord | <Avatarfighter> The actual dimensions are `D262mm * W187mm * H180mm` |
18:18:59 | FromDiscord | <Avatarfighter> I just was trying to figure out if the case was taller than my current NAS |
18:19:04 | * | bung quit (Ping timeout: 260 seconds) |
18:19:09 | FromDiscord | <Rika> dont you have a ruler or a measuring tape |
18:19:25 | FromDiscord | <Avatarfighter> I do now smh |
18:19:41 | FromDiscord | <Avatarfighter> the new case would be taller by 6cm ish |
18:19:44 | FromDiscord | <Avatarfighter> whatever though |
18:24:32 | * | bung joined #nim |
18:29:16 | disruptek | Araq: yeah, the cligen stuff is fixed in 1.8.22+. |
18:29:18 | * | bung quit (Ping timeout: 260 seconds) |
18:31:22 | * | vicfred quit (Quit: Leaving) |
18:32:23 | * | xace joined #nim |
18:33:21 | * | bung joined #nim |
18:37:58 | * | bung quit (Ping timeout: 258 seconds) |
18:40:31 | * | vicfred joined #nim |
18:44:16 | * | bung joined #nim |
18:45:21 | * | Vladar quit (Quit: Leaving) |
18:47:30 | * | EastByte joined #nim |
18:47:30 | * | voltist joined #nim |
18:47:30 | * | silvernode[m] joined #nim |
18:47:30 | * | OMGOMG joined #nim |
18:48:27 | * | bung quit (Ping timeout: 240 seconds) |
18:52:52 | * | bung joined #nim |
18:56:59 | * | bung quit (Ping timeout: 240 seconds) |
19:03:41 | * | bung joined #nim |
19:08:08 | * | bung quit (Ping timeout: 240 seconds) |
19:10:12 | * | bung joined #nim |
19:16:49 | * | bung quit (Ping timeout: 260 seconds) |
19:17:26 | haxscramper | How to launch X11 applications via `startProcess`? Aside from setting `DISPLAY` I couldn't find any examples on this. |
19:18:19 | haxscramper | Maybe not even in nim, example with `exec` (or alternative of `startProcess`) should also be sufficient |
19:20:48 | disruptek | same way you launch anything else. |
19:21:01 | disruptek | what problem have you found? |
19:23:18 | * | bung joined #nim |
19:23:28 | * | dv-^_^6 joined #nim |
19:28:25 | * | bung quit (Ping timeout: 264 seconds) |
19:28:56 | * | bung joined #nim |
19:33:41 | haxscramper | If I pass any non-default (non-nil) `env` value it cannot find connection to display even if I pass `DISPLAY=:0` as env. I actually haven't tested clean program starting (without env at all) earlier, so it must be due to some weird interactions of environment variables |
19:34:56 | disruptek | is your display on :0? |
19:35:09 | * | bung quit (Ping timeout: 240 seconds) |
19:35:41 | * | bung joined #nim |
19:36:13 | FromDiscord | <haxscramper> yes |
19:36:59 | Zevv | I never met anyone in real life whose display was not on :0 |
19:37:20 | disruptek | nonsense. |
19:37:22 | Prestige | I've never met anyone in real life that would know |
19:38:39 | disruptek | my display is on HDMI-A-2. |
19:39:40 | haxscramper | I just pass `env = {"DISPLAY" : ":0"}.newStringTable()` and it stops working. |
19:40:07 | * | bung quit (Ping timeout: 240 seconds) |
19:40:09 | disruptek | it probably needs other shit from your env, too. |
19:41:36 | * | bung joined #nim |
19:42:36 | haxscramper | Looks like using `setEnv`/`delEnv` is better idea for this kind of things in the end |
19:44:04 | FromDiscord | <Avatarfighter> Does anyone know of a good library for making terminal UIs? |
19:44:17 | FromDiscord | <haxscramper> !repo illwill |
19:44:18 | disbot | https://github.com/johnnovak/illwill -- 9illwill: 11 15 128⭐ 13🍴 & 1 more... |
19:44:23 | FromDiscord | <Avatarfighter> thanks |
19:44:26 | FromDiscord | <Avatarfighter> never heard of this 🙂 |
19:45:47 | * | bung quit (Ping timeout: 240 seconds) |
19:52:55 | * | bung joined #nim |
19:57:30 | * | bung quit (Ping timeout: 260 seconds) |
20:00:36 | * | bung joined #nim |
20:01:00 | FromDiscord | <Yardanico> Wow Hacktoberfest this year is so useful! Already tons of useful PRs to the Nim website repo! |
20:04:11 | FromDiscord | <mratsim> someone said it's a DOS against open-source maintainers |
20:04:51 | FromDiscord | <mratsim> this one takes the cake https://github.com/nim-lang/website/pull/218 |
20:04:52 | disbot | ➥ rename gem file to gamefile |
20:05:01 | * | bung quit (Ping timeout: 246 seconds) |
20:06:05 | FromDiscord | <Idefau> what the fuck haha |
20:06:16 | FromDiscord | <Idefau> you gotta appreciate tho, he explained his PR in the comments |
20:06:21 | FromDiscord | <Idefau> thats way more effort than the others |
20:06:51 | FromDiscord | <Yardanico> @mratsim it's mostly caused by Indian skids who have only recently got access to the internet and they're trying a lot of stuff |
20:07:02 | * | bung joined #nim |
20:07:04 | FromDiscord | <Yardanico> This "an amazing project" PR comes from https://youtu.be/v9902nonYas |
20:07:11 | FromDiscord | <Idefau> im the guy in the vid |
20:07:16 | FromDiscord | <Yardanico> Imagine promoting hurting open source |
20:07:24 | FromDiscord | <Yardanico> and they don't even realize |
20:07:40 | FromDiscord | <Idefau> their brain is set on the free tshirt part |
20:07:45 | FromDiscord | <Idefau> (edit) 'tshirt' => 'stuff' |
20:08:17 | FromDiscord | <Yardanico> exactly |
20:08:18 | * | Trustable quit (Remote host closed the connection) |
20:09:31 | FromDiscord | <Yardanico> I'm not saying Indian people are bad - no, there's a lot of cool Indian people, but since there are people (in the whole world) who don't realise that they're doing something bad - India has more of them on the absolute scale |
20:09:42 | FromDiscord | <Yardanico> And their internet access got much better in the last few years |
20:09:59 | FromDiscord | <Yardanico> There's also China, but they have GFW so we don't see Chinese people often |
20:10:56 | FromDiscord | <mratsim> seems like I submitted 4 PRs today xD |
20:11:04 | FromDiscord | <Idefau> damn that fast |
20:11:10 | FromDiscord | <Idefau> i only got one 😦 |
20:11:52 | FromDiscord | <Rika> i havent programmed in days now i think |
20:11:55 | FromDiscord | <Avatarfighter> not to flex but my personal projects have been getting PRs from myself 🥱 |
20:11:56 | * | bung quit (Ping timeout: 272 seconds) |
20:12:07 | FromDiscord | <Idefau> wait |
20:12:08 | FromDiscord | <Yardanico> That's totally okay |
20:12:12 | FromDiscord | <Yardanico> And allowed |
20:12:12 | FromDiscord | <Idefau> PRs to yourself count? |
20:12:14 | FromDiscord | <Avatarfighter> Yeah |
20:12:14 | FromDiscord | <Yardanico> yes |
20:12:16 | FromDiscord | <mratsim> sure |
20:12:16 | FromDiscord | <Yardanico> Of course |
20:12:20 | FromDiscord | <Idefau> ... |
20:12:24 | FromDiscord | <Rika> sounds like an exploit |
20:12:26 | FromDiscord | <Yardanico> Just don't tell the spammers |
20:12:28 | FromDiscord | <haxscramper> Can I add something to default proc parameter without writing default value again? Like in this https://play.nim-lang.org/#ix=2zpG |
20:12:29 | FromDiscord | <Avatarfighter> I just like to make valuable PRs to myself |
20:12:38 | FromDiscord | <mratsim> I did 5 PRs actually |
20:12:39 | FromDiscord | <Avatarfighter> I use branches anyways so I have free PRs 😛 |
20:12:50 | FromDiscord | <Yardanico> @haxscramper i don't think that this is possible |
20:13:38 | * | bung joined #nim |
20:14:20 | FromDiscord | <Idefau> meh i'll just work on random nim issues |
20:14:25 | FromDiscord | <Idefau> fun |
20:14:36 | FromDiscord | <Idefau> most of my current projects are in a finished state anyway |
20:14:46 | FromDiscord | <Rika> congrats |
20:14:52 | FromDiscord | <Rika> doing things most devs cannot do |
20:14:57 | FromDiscord | <Idefau> wowang |
20:14:58 | FromDiscord | <Idefau> thanks |
20:15:23 | FromDiscord | <Avatarfighter> that's super exciting |
20:15:48 | FromDiscord | <Idefau> i wish i didnt have these long homeworks |
20:15:54 | FromDiscord | <Idefau> so i can do epic PRs instead |
20:16:06 | * | narimiran quit (Ping timeout: 258 seconds) |
20:16:18 | FromDiscord | <haxscramper> The only thing you get for hacktoberfest is these shirts right? |
20:16:29 | FromDiscord | <Idefau> or you can plant a tree |
20:17:12 | FromDiscord | <dom96> wow, definitely a lot more spam for Hacktoberfest than in the past |
20:17:22 | FromDiscord | <Idefau> that's a good sign I guess |
20:17:27 | FromDiscord | <Idefau> means more popularity |
20:20:04 | FromDiscord | <dom96> hm, they've got 70k t-shirts |
20:20:10 | FromDiscord | <dom96> damn, I feel like that's gonna go quick |
20:20:18 | FromDiscord | <Avatarfighter> I don't think so tbh |
20:20:22 | FromDiscord | <dom96> AFAIK there was no limit in previous years |
20:20:42 | * | bung quit (Ping timeout: 258 seconds) |
20:21:12 | FromDiscord | <Avatarfighter> I wouldn't be surprised if many coders are timid about their abilities and are unsure to do PRs |
20:21:31 | FromDiscord | <Yardanico> @dom96 i think there was a 100k limit in 2019 |
20:21:59 | FromDiscord | <Yardanico> Or even earlier |
20:22:35 | Jjp137 | it was 50k in 2019 but my last PR last year was pretty late and I still got one |
20:23:08 | FromDiscord | <dom96> oh really, interesting |
20:23:11 | * | bung joined #nim |
20:23:19 | FromDiscord | <dom96> afaik I was pretty late too and got one nonetheless |
20:25:21 | FromDiscord | <demotomohiro> Im trying to wrap libnice with nimterop and libnice uses glib, gio and gobjects.↵Should I use oldgtk3 or gintro for this wrapper project?↵gintro seems newer better project but they doesn't have some types (guint, gpointer, etc) used in libnice.↵But oldgtk3 doesn't have g_networking_init proc that is used in example code of libnice. |
20:27:50 | * | bung quit (Ping timeout: 260 seconds) |
20:31:05 | disruptek | use the better code and improve it. |
20:31:46 | FromDiscord | <shashlick> There's a nimterop gtk wrapper on github gist |
20:32:01 | * | bung joined #nim |
20:32:08 | FromDiscord | <shashlick> But it's ridiculously huge |
20:32:14 | FromDiscord | <shashlick> The output |
20:32:38 | FromDiscord | <dom96> So my current Hacktoberfest plan: fix some choosenim bugs and maybe write a blog post about using Nim's async await |
20:33:03 | leorize[m]1 | @demotomohiro if libnice support gobject introspection you can use gintro to create a wrapper for it |
20:33:47 | FromDiscord | <shashlick> https://gist.github.com/genotrance/755a1aff57989840f867a03015592aa8 |
20:34:24 | FromDiscord | <shashlick> Maybe just copy paste the minimal stuff you need |
20:34:55 | leorize[m]1 | the way to wrap gtk is via gobject introspection |
20:35:24 | leorize[m]1 | the introspection system is a bunch of xml describing the native interface iirc |
20:35:32 | leorize[m]1 | and it's officially supported by gtk developers |
20:35:44 | disruptek | likely how gintro works, right? |
20:35:48 | leorize[m]1 | yep |
20:35:58 | disruptek | so use gintro and improve it. please. |
20:36:33 | FromDiscord | <demotomohiro> @leorize↵Thank you! I dont know about gobject-introspection, but it seems libnice build system have an option about gobject-introspection.↵https://github.com/libnice/libnice/blob/master/meson_options.txt |
20:36:42 | * | bung quit (Ping timeout: 260 seconds) |
20:37:32 | leorize[m]1 | I present you the change needed to wrap libnotify with gintro: https://github.com/StefanSalewski/gintro/commit/a4f845f987fed04316a941371c2e7e89ff2ab19a |
20:38:00 | FromDiscord | <Yardanico> lol |
20:38:46 | leorize[m]1 | I do wish that he made the generator into a proper library though, that would makes it easier for 3rd parties to wrap libraries (and maybe even add a high-level interface on top) |
20:38:47 | FromDiscord | <demotomohiro> gintro doesn't have some types used in libnice but I cannot simply add these type definition to the gintro code because they are generated from xml. |
20:39:00 | FromDiscord | <Yardanico> you don't need to |
20:39:06 | FromDiscord | <Yardanico> wouldn't it generate them automatically? |
20:40:28 | * | bung joined #nim |
20:40:41 | FromDiscord | <XxDiCaprioxX> When reading a string that goes `"foo \n bar"` from a json how do I make nim turn it into a multiline? |
20:40:58 | FromDiscord | <demotomohiro> I cannot find Guint or guint type in gintor/glib.nim.↵I think gintro uses cuint or uint as guint type. |
20:41:10 | leorize[m]1 | @XxDiCaprioxX it should be multiline by default |
20:41:28 | leorize[m]1 | @demotomohiro just try adding the library to the gintro generator |
20:41:46 | leorize[m]1 | gintro knows what it's doing :P |
20:42:00 | leorize[m]1 | it's unlikely that he wrapped the entirety of gtk without uint |
20:43:04 | FromDiscord | <XxDiCaprioxX> > @XxDiCaprioxX it should be multiline by default↵@leorize[Matrix]1#0000 nope. Maybe because string and multiline string are two different types? |
20:43:24 | leorize[m]1 | @XxDiCaprioxX can I see how you're doing it? |
20:43:33 | leorize[m]1 | and no, multiline string is not a type |
20:43:52 | FromDiscord | <XxDiCaprioxX> Give me a minute |
20:44:27 | FromDiscord | <demotomohiro> @leorize↵Thank you! I will try it but I need to learn how to do that. |
20:44:50 | FromDiscord | <XxDiCaprioxX> `"If you forget the rules of Chess don't worry... \n... you're allowed to check"` ```proc readJokes() =↵ let dbfile = parseFile(jokesPath)↵ for joke in dbFile["jokes"]:↵ jokes.add(unescape($joke))``` |
20:45:04 | FromDiscord | <Rika> leorize, i think they mean reading a json string that has the chars " \n " in it |
20:45:19 | FromDiscord | <Rika> they want to convert that into a newline |
20:45:26 | FromDiscord | <XxDiCaprioxX> Yes |
20:45:28 | FromDiscord | <XxDiCaprioxX> Exactly |
20:45:39 | leorize[m]1 | o no Yardanico what has your bot done to that message |
20:46:22 | FromDiscord | <Rika> dicap, you can always do the easy but naiive approach to do `theString.replace("\\n", "\n") |
20:46:23 | FromDiscord | <Rika> (edit) '"\n")' => '"\n")`' |
20:46:52 | leorize[m]1 | a replace table is how you should do it |
20:46:53 | FromDiscord | <XxDiCaprioxX> Oh okay |
20:46:59 | FromDiscord | <XxDiCaprioxX> What is that |
20:47:06 | leorize[m]1 | alternatively write your jokes in an actual format |
20:47:16 | leorize[m]1 | you can write those in json... |
20:47:25 | FromDiscord | <XxDiCaprioxX> Wdym by that |
20:48:29 | leorize[m]1 | I think we are going a bit too fast, what's the format of your jokes file? |
20:48:40 | FromDiscord | <XxDiCaprioxX> json |
20:48:57 | FromDiscord | <XxDiCaprioxX> And json does not support multiline strings |
20:49:15 | FromDiscord | <XxDiCaprioxX> Or let's say you have to use \n for new lines |
20:49:28 | leorize[m]1 | `s/unescape($joke)/joke.getStr()/` |
20:49:42 | FromDiscord | <XxDiCaprioxX> What is s/ ? |
20:49:59 | FromDiscord | <haxscramper> sed |
20:50:07 | * | mmohammadi9812 quit (Quit: I quit (╯°□°)╯︵ ┻━┻) |
20:50:10 | leorize[m]1 | it's a sed expression, tl;dr: `s/original/replaced/' |
20:50:22 | FromDiscord | <XxDiCaprioxX> Oh okay |
20:50:42 | FromDiscord | <XxDiCaprioxX> So I should write unescape($joke) with joke.getStr()? |
20:50:56 | leorize[m]1 | it means use joke.getStr() |
20:51:06 | leorize[m]1 | `$` on a JsonNode gives you the JSON representation of the node |
20:51:43 | * | NimBot joined #nim |
20:51:57 | leorize[m]1 | yep, Nim json parser already parsed the newline for you |
20:52:09 | leorize[m]1 | it just that by using `$` it has to encode it back into valid json |
20:52:27 | FromDiscord | <XxDiCaprioxX> Okay perfect, thank you |
21:03:24 | FromDiscord | <juan_carlos> http://hacktoberfail.com |
21:05:08 | leorize[m]1 | https://hacktoberfest.digitalocean.com/hacktoberfest-update |
21:05:17 | leorize[m]1 | they gave up it seems |
21:05:54 | leorize[m]1 | this is kinda stupid |
21:06:57 | leorize[m]1 | they made the competition to encourage open source contribution with a prize, then announce how to cheat your way to get the prize. |
21:07:18 | FromDiscord | <dom96> olwtf |
21:07:20 | FromDiscord | <dom96> (edit) 'olwtf' => 'lolwtf' |
21:07:31 | FromDiscord | <dom96> they are encouraging people to create PRs on their own repos? |
21:08:11 | leorize[m]1 | you read it right |
21:08:23 | FromDiscord | <Avatarfighter> ok who leaked the strategy we discussed here |
21:09:03 | leorize[m]1 | 70k shirts/trees are now officially worthless lol |
21:09:52 | FromDiscord | <dom96> Ugh, makes me trying to bother and create some quality PRs feel like I'm just wasting time and potentially losing the opportunity to get a t-shirt |
21:11:42 | disruptek | man, that's terrible. |
21:11:53 | FromDiscord | <Avatarfighter> imo what would be nice is if open source projects could opt in their projects to hacktoberfest |
21:12:46 | disruptek | it takes me like 10-15 years to kill a t-shirt. what i really need are socks. |
21:13:25 | FromDiscord | <Avatarfighter> you gotta get coding socks |
21:13:46 | leorize[m]1 | @Avatarfighter wdym? hacktoberfest is open to all |
21:13:58 | FromDiscord | <Avatarfighter> ik leorize, I meant to stop spam |
21:14:07 | FromDiscord | <Avatarfighter> have a way for repos to opt-in or out |
21:15:01 | leorize[m]1 | that sounds terrible though |
21:15:04 | FromDiscord | <haxscramper> Should opt-in so that only those maintainers who are willing to participate were affected to this |
21:18:20 | * | nature quit (Ping timeout: 256 seconds) |
21:29:36 | reversem3 | Don't use coc.nvim for neovim plugin , otherwise you will have nothing but issues , I just got rid of it and now everything is working with nim |
21:30:20 | FromGitter | <alehander92> man |
21:30:23 | FromGitter | <alehander92> what happened |
21:30:24 | FromGitter | <alehander92> today |
21:30:40 | * | Nimy joined #nim |
21:31:01 | FromDiscord | <Avatarfighter> alehander: disruptek enslaved the world today |
21:31:13 | FromDiscord | <lqdev> @dom96 how about we organize a nim hacktoberfest |
21:31:32 | FromDiscord | <lqdev> first 50 people to make a _useful_ contribution to the compiler get a nim hacktoberfest themed t-shirt |
21:31:57 | FromDiscord | <lqdev> problem is, who would be the sponsor 🤔 |
21:32:24 | FromDiscord | <dom96> if you can get someone to design a cool Nim hacktoberfest t-shirt then yes |
21:32:30 | FromDiscord | <dom96> but that's always the blocker |
21:35:31 | leorize | I think if we ask Status nicely they would sponsor for something like that :P |
21:36:01 | FromDiscord | <Avatarfighter> honestly mattering on how much the shirts cost I could sponsor it lol |
21:37:05 | reversem3 | I just saw post for Hackertoberfest for nim |
21:37:26 | reversem3 | its also on reddit |
21:37:56 | FromDiscord | <dom96> money isn't the problem |
21:37:59 | FromDiscord | <dom96> it's finding a good designer |
21:38:14 | FromDiscord | <Avatarfighter> im sure we have someone creative right? |
21:38:32 | FromDiscord | <dom96> reversem3: aw, you got me thinking it was on HN |
21:38:59 | FromDiscord | <dom96> it's not even on r/programming? |
21:39:21 | * | haxscramper quit (Remote host closed the connection) |
21:39:37 | FromDiscord | <dom96> also, no tweet, do I have to do everything myself? 😛 |
21:39:41 | reversem3 | no /r/nim |
21:39:48 | FromDiscord | <Avatarfighter> lmao |
21:40:08 | FromDiscord | <Avatarfighter> what repo is the nimble directory site on if anyone knows? |
21:40:10 | leorize | you're the head of marketing sir @dom96 :P |
21:40:32 | reversem3 | He's "deligating" |
21:40:59 | FromDiscord | <dom96> lol, I have a full-time job |
21:41:01 | reversem3 | Thats what they do at facebook (: j/k |
21:41:02 | FromDiscord | <dom96> Ain't getting paid for this |
21:41:26 | leorize | most of us aren't getting paid to work on nim :P it's done with love xd |
21:41:54 | reversem3 | I say the people w/o kids should do it |
21:43:01 | * | tane quit (Quit: Leaving) |
21:44:09 | FromDiscord | <dom96> https://twitter.com/nim_lang/status/1311783955440504835 |
21:45:14 | leorize | iirc narimiran was hired to manage the community, though I think now he covers a lot more than that |
21:46:12 | FromDiscord | <Avatarfighter> Wow Nim's Head of Nim Marketing sure is fast 😛 |
21:47:47 | * | Nimy quit (Remote host closed the connection) |
21:48:41 | FromGitter | <alehander92> Avatarfighter no |
21:48:48 | FromGitter | <alehander92> about the disruptek world thing |
21:48:52 | FromDiscord | <Avatarfighter> ahaha |
21:48:56 | FromDiscord | <Avatarfighter> what do you mean |
21:49:01 | FromDiscord | <Avatarfighter> its all true |
21:49:06 | FromGitter | <alehander92> i am anti enslavement |
21:49:08 | FromGitter | <alehander92> by people |
21:49:09 | FromGitter | <alehander92> meh |
21:49:28 | * | bung quit (Ping timeout: 272 seconds) |
21:49:49 | FromDiscord | <Elegant Beef> So by aliens is fine? |
21:51:10 | * | bung joined #nim |
21:51:20 | FromGitter | <alehander92> somehow worse |
21:52:34 | FromDiscord | <juan_carlos> Hacktoberfest for Nim socks, used socks |
21:55:59 | * | solitudesf quit (Read error: Connection reset by peer) |
21:57:37 | * | solitudesf joined #nim |
22:02:32 | * | bung quit (Ping timeout: 256 seconds) |
22:04:52 | FromDiscord | <demotomohiro> @leorize↵gintro/tests/gen.nim generated libnice wrapper code just by adding `main("Nice")` to gen.nim!↵I tried to add main("libnice") but that was wrong. |
22:05:35 | leorize | told you it's gonna be easy :) |
22:05:59 | FromDiscord | <Yardanico> Nice |
22:07:21 | FromDiscord | <demotomohiro> I will test it if it really works by rewriting example code in libnice with Nim. |
22:07:29 | * | bung joined #nim |
22:12:17 | * | bung quit (Ping timeout: 272 seconds) |
22:17:45 | FromDiscord | <Elegant Beef> I'm still trying to figure out who thought it'd end to reward people for commits 😄 |
22:18:22 | * | natrys quit (Ping timeout: 246 seconds) |
22:29:07 | * | solitudesf quit (Ping timeout: 240 seconds) |
22:30:42 | disruptek | committment never ends well. |
22:43:37 | FromDiscord | <Avatarfighter> my pull request to update my website failed CI because I forgot to run prettier on my file this is the saddest thing to ever happen to me |
22:43:51 | FromDiscord | <Avatarfighter> failed the CI tests* |
22:56:42 | FromDiscord | <dom96> So 3 issues in choosenim that I think are doable for someone new as part of hacktoberfest, https://github.com/dom96/choosenim/issues/123, https://github.com/dom96/choosenim/issues/141 and https://github.com/dom96/choosenim/issues/55. Anyone up for it? 🙂 |
22:56:43 | disbot | ➥ Allow custom branches on custom repo: `choosenim ~/projects/nim#mybranch` |
22:57:01 | FromDiscord | <dom96> the first link in particular is very simple |
23:01:01 | FromDiscord | <himu> any guidelines for naming files in nim? `common_utils.nim` vs `commonUtils.nim` vs `CommonUtils.nim`. What is the general preferred way? Or does everyone use whatever suits them? |
23:01:14 | disruptek | snake_case |
23:01:26 | FromDiscord | <himu> Cool! |
23:05:18 | FromDiscord | <dom96> commonutils.nim |
23:05:29 | FromDiscord | <dom96> or better yet, common/utils.nim |
23:05:52 | Prestige | @himu woah did I just talk to you in cordless? lol |
23:06:00 | Prestige | I'm Avahe |
23:06:08 | FromDiscord | <dom96> oh man, the Nim repo is really becoming inconsistent here |
23:06:18 | FromDiscord | <himu> About circular dependencies errors. Doesn't tree shaking make them go away? What causes them in the first place? |
23:07:18 | FromDiscord | <himu> @Prestige Yes. |
23:07:34 | disruptek | tree-shaking has nothing to do with it. |
23:07:58 | Prestige | Weird. |
23:08:09 | disruptek | maybe i'm not understanding the question, but tree-shaking is the removal of unused code. |
23:09:25 | disruptek | circular deps are a problem because we don't currently allow circular imports. |
23:12:02 | FromGitter | <Knaque> A non-Nim question: what are some flavors of Emacs worth looking at? |
23:12:03 | FromDiscord | <himu> I am assuming the imports in nim are like `import * from "module.js"` like in TypeScript or `use module::*` in Rust. In both the languages we import particular components/structs/types one by one most of the time. That kind of resolves circular dependencies. I guess. Because this is the first time I am worrying about something like this here. |
23:12:11 | disruptek | spacemacs |
23:13:20 | FromGitter | <Knaque> I'm aware of Spacemacs, but I'd like to see some other options too. |
23:18:41 | * | krux02 quit (Remote host closed the connection) |
23:19:53 | disruptek | ask krux02. |
23:54:57 | * | EastByte quit (*.net *.split) |
23:54:57 | * | voltist quit (*.net *.split) |
23:54:57 | * | silvernode[m] quit (*.net *.split) |
23:54:57 | * | OMGOMG quit (*.net *.split) |
23:57:04 | * | oculux quit (Ping timeout: 256 seconds) |