00:12:42 | * | abm joined #nim |
00:20:11 | * | stefanos82 quit (Remote host closed the connection) |
00:26:54 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
00:40:32 | * | abm quit (Ping timeout: 255 seconds) |
00:48:16 | ldlework | dom96: is the game open source? |
00:50:59 | * | Sembei quit (Excess Flood) |
00:52:06 | * | Sembei joined #nim |
01:02:32 | * | noeontheend quit (Ping timeout: 245 seconds) |
01:13:32 | ryukoposting | If I'm making a non-cryptographic hash function package, how would you all suggest I go about implementing 128/256/512 bit hashes |
01:15:51 | * | abm joined #nim |
01:19:09 | * | oculux joined #nim |
01:21:17 | * | oculuxe quit (Ping timeout: 245 seconds) |
01:31:46 | * | oculuxe joined #nim |
01:33:50 | * | oculux quit (Ping timeout: 272 seconds) |
01:39:07 | * | oculux joined #nim |
01:41:17 | * | oculuxe quit (Ping timeout: 245 seconds) |
01:43:11 | * | oculuxe joined #nim |
01:45:20 | * | oculux quit (Ping timeout: 255 seconds) |
01:46:37 | * | oculux joined #nim |
01:48:41 | * | oculux- joined #nim |
01:48:59 | * | oculuxe quit (Ping timeout: 246 seconds) |
01:51:11 | * | oculux quit (Ping timeout: 255 seconds) |
01:52:37 | * | oculux joined #nim |
01:54:44 | * | oculuxe joined #nim |
01:55:02 | * | oculux- quit (Ping timeout: 245 seconds) |
01:56:41 | * | oculux- joined #nim |
01:57:02 | * | oculux quit (Ping timeout: 255 seconds) |
01:57:10 | * | oculux| joined #nim |
01:58:56 | * | oculuxe quit (Ping timeout: 250 seconds) |
01:59:08 | * | oculux joined #nim |
02:00:52 | * | oculux- quit (Ping timeout: 245 seconds) |
02:01:32 | * | oculux| quit (Ping timeout: 255 seconds) |
02:07:19 | FromGitter | <slomp> Is there a pragma for specifying `--noMain` directly in the source? |
02:10:12 | * | oculuxe joined #nim |
02:12:51 | * | oculux quit (Ping timeout: 268 seconds) |
02:14:11 | * | Snircle joined #nim |
02:18:04 | * | nsf joined #nim |
02:26:27 | * | V-X quit (Ping timeout: 246 seconds) |
02:29:46 | ryukoposting | slomp I'm pretty sure there isn't, is there a definition that it injects that you could check e.g. when(noMain) |
02:35:51 | FromGitter | <slomp> I am trying to use nim as an "ad-hoc" build system for mixed C/C++ files using a combination of `passC`, `passL`, `compile`, `link`, etc. ⏎ Since one of the source files already have `main` routine implemented, I have to explicitly remember to pass `--noMain` to nim. ⏎ I tried a hack with `{.passC: "-Dmain=mainmain".}` and `{.passC: "-Umain".}` when `{.compile.}`ing the source file that contains main, but it did not |
02:35:51 | FromGitter | ... work. |
02:36:24 | * | Tyresc quit (Quit: WeeChat 2.5-dev) |
02:47:05 | * | V-X joined #nim |
02:47:32 | * | abm quit (Quit: Leaving) |
02:59:40 | * | arecaceae quit (Remote host closed the connection) |
02:59:58 | * | arecaceae joined #nim |
03:02:33 | * | banc quit (Quit: Bye) |
03:03:28 | * | couven92 quit (Quit: Client Disconnecting) |
03:11:04 | FromGitter | <matrixbot> `Juan Carlos` switch() ? |
03:12:32 | * | V-X quit (Ping timeout: 245 seconds) |
03:23:34 | * | banc joined #nim |
03:26:51 | ryukoposting | slomp interesting, not exactly sure where to go with that |
03:27:41 | ryukoposting | how big is the project? is a plain old makefile out of the question? |
03:31:38 | * | dddddd quit (Remote host closed the connection) |
03:35:34 | FromGitter | <slomp> @ryukoposting I am actually just working on a "proof-of-concept" to see how flexible managing builds like this can be. ⏎ For now, it is really just a toy project, compiling amalgamations of glfw, freeglut and imgui (I choose these 3 since they have different challenges when it comes to amalgamation). |
03:38:22 | * | vlad1777d quit (Ping timeout: 245 seconds) |
03:40:40 | * | vlad1777d joined #nim |
03:45:56 | * | vlad1777d quit (Ping timeout: 255 seconds) |
03:59:06 | FromGitter | <slomp> I must admit that despite this `--noMain` issue (and some `importcpp` mangling issues when using the C back-end, which is expected), I am pleasantly surprised as to how elegant and flexible nim can be as an ad-hoc build system! |
04:00:21 | ryukoposting | nice |
04:00:58 | ryukoposting | I wrote a makefile generator at work in nim (sadly that won't be leaving the office anytime soon), but hey it's all C code so I guess I could just use nimble instead lol |
04:09:53 | FromGitter | <slomp> Btw, if I am using the C back-end (`nim c`) and I need to call something from C++ through an `importcpp`, is there any way to get around the name mangling issues? ⏎ I was wondering if there's a way to have nim help me generate the necessary trampoline routines by using `{.emit.}` and such. |
04:11:01 | ryukoposting | I really wouldn't be the person to ask for that, I haven't used nim's FFI a whole lot |
04:11:47 | ryukoposting | idk how much you can mess with the C++ code, but could you just wrap them in extern "C" {}? |
04:11:47 | leorize | slomp: what do you mean? |
04:12:56 | FromGitter | <slomp> Yeah, I am sort of modifying the original C++ source and tagging the routines I want to import with `extern "C"`, but it would be nice to not have to modify those sources. |
04:15:00 | ryukoposting | it's gonna be really hard, if possible at all, to get around the extern "C" stuff |
04:15:17 | ryukoposting | that's something that's out of nim's control AFAIK |
04:15:40 | FromGitter | <slomp> @leorize suppose I have some `test.nim` file as follows: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ and I use the c back-end: ... [https://gitter.im/nim-lang/Nim?at=5c736beb85b7eb4569281dcd] |
04:16:00 | leorize | oh, you can't do it like that |
04:16:10 | leorize | `importcpp` can only work in cpp mode |
04:16:35 | ryukoposting | yeah you'd need to do importc for functions declared as extern "C" |
04:16:39 | FromGitter | <slomp> Yeah, I think there's not much nim can do in that regard without extern C. |
04:17:06 | ryukoposting | importcpp gets around name mangling, presumably |
04:17:13 | ryukoposting | otherwise it wouldn't have much of a purpose in life |
04:17:43 | FromGitter | <slomp> yes, but it will only get around name mangling when using the C++ backed ⏎ since nim cannot possibly know the mangling rules for each compiler |
04:19:20 | ryukoposting | that's fair. iirc clang mimick's gcc's way of doing it, but I could be wrong |
04:19:26 | ryukoposting | either way, not a safe assumption to make |
04:21:17 | leorize | yea, clang aims to be gcc-compatible |
04:22:18 | ryukoposting | I think your best bet is just the extern "C" stuff slomp. There's really not a good, portable way to do it unless you wanted to use the C++ backend |
04:23:56 | FromGitter | <slomp> mangling rules could potentially change between compiler versions ⏎ I think the only way would be to "inject" some `extern "C"` stub that references the cpp symbol, but this would have to be done in the same translation unit as the cpp file being compiled. |
04:24:44 | FromGitter | <slomp> No worries, I was just curious to know if someone else had tried something similar, or knew a trick to achieve that goal. |
04:25:03 | ryukoposting | it's an interesting idea |
04:25:36 | ryukoposting | nim would be really good as a glue between C libraries, though it's certainly a lot more than that |
04:25:49 | FromGitter | <slomp> now, having a pragma to specify/override nim compiler flags would be awesome, though. ⏎ dangerous, sure, but handy |
04:27:52 | ryukoposting | I can't say I'd be in favor of that feature, but I suppose it could be helpful |
04:28:43 | FromGitter | <slomp> I think that one way to help nim be more widespread is to show how it can coexist with and host existing c/c++ codebases |
04:29:41 | FromGitter | <slomp> `{.nim: "--noMain".}` :-D |
04:30:02 | leorize | before nimble tasks there was `nake`, which is a build system written in Nim |
04:38:55 | FromGitter | <slomp> Well, something like this works: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5c73715f1f1463042116f974] |
04:39:46 | ryukoposting | man, I just hope #10733 gets fixed |
04:40:26 | ryukoposting | my plan is to write macros that will generate bindings to the AWS SDK from amazon's json-formatted spec |
04:41:16 | FromGitter | <slomp> Basically, use `emit` to create/inject an extern "C" trampoline. ⏎ Since my goal was to avoid modifying the c/cpp source files, I can deal with that. ⏎ So long the cpp routine being wrapped is compatible with a lean and mean C interface, of course. |
04:42:52 | ryukoposting | leorize I faintly remember trying nim back when nake was a thing |
05:02:13 | * | NimBot joined #nim |
06:04:41 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
06:16:36 | * | volkov joined #nim |
06:25:04 | ryukoposting | https://itch.io/jam/7drl-challenge-2019 |
06:42:04 | * | volkov quit (Quit: volkov) |
06:53:04 | * | narimiran joined #nim |
07:05:59 | * | napalu joined #nim |
07:13:31 | * | krux02 joined #nim |
08:00:00 | * | gmpreussner quit (Quit: kthxbye) |
08:00:28 | * | PMunch joined #nim |
08:02:02 | * | napalu quit (Quit: Konversation terminated!) |
08:04:33 | * | gmpreussner joined #nim |
08:17:30 | * | Arlenx joined #nim |
08:27:28 | FromGitter | <kayabaNerve> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5c73a6efa7d733509dc11fa0] |
08:27:36 | FromGitter | <kayabaNerve> I want to give this... something |
08:27:40 | FromGitter | <kayabaNerve> Not a medal. Not a tweet. |
08:28:00 | FromGitter | <kayabaNerve> :thinking: It's so amazing and horrifying. |
08:28:07 | * | oculux joined #nim |
08:30:27 | * | oculuxe quit (Ping timeout: 246 seconds) |
08:36:04 | leorize | may I introduce you to this: |
08:36:06 | leorize | {.emit: "int mainmain(int, char**);".} |
08:36:08 | leorize | proc main2*(argc: cint, argv: cstringArray): cint {.importcpp: "mainmain(@)", exportc.} |
08:36:52 | leorize | actually that'll only work once some bug with exportc has been fixed :P |
08:39:06 | * | oculuxe joined #nim |
08:40:15 | * | oculux quit (Ping timeout: 246 seconds) |
08:50:41 | * | Vladar joined #nim |
09:00:09 | * | oculux- joined #nim |
09:02:07 | * | oculuxe quit (Ping timeout: 245 seconds) |
09:02:10 | * | oculux| joined #nim |
09:04:32 | * | oculux- quit (Ping timeout: 255 seconds) |
09:13:16 | * | floppydh joined #nim |
09:13:51 | * | JustASlacker joined #nim |
10:09:00 | * | neceve joined #nim |
10:10:21 | * | dddddd joined #nim |
10:23:43 | * | stefanos82 joined #nim |
10:41:43 | narimiran | ryukoposting: you here? |
10:44:10 | * | vlad1777d joined #nim |
10:47:33 | * | shashlick_ joined #nim |
10:49:00 | * | shashlick quit (Ping timeout: 268 seconds) |
10:49:15 | * | shashlick_ quit (Remote host closed the connection) |
11:09:12 | * | stefanos82 quit (Ping timeout: 258 seconds) |
11:28:29 | PMunch | Why is this showing up on the forum front page for me? forum.nim-lang.org/t/642 |
11:28:45 | PMunch | Last reply 4 years ago, says there was "activity" 20 hours ago |
11:29:02 | narimiran | PMunch: some spammer |
11:30:13 | * | smitop joined #nim |
11:30:33 | PMunch | But what is the "activity"? |
11:30:50 | narimiran | there was a post, which is now removed |
11:30:56 | narimiran | post = comment |
11:32:02 | smitop | I'm trying to install choosenim on my windows CI build on Travis CI |
11:32:03 | * | smitop https://pastebin.com/raw/fVVaHLwh |
11:32:19 | smitop | but this line is erroring |
11:34:38 | PMunch | narimiran, aah |
11:41:13 | FromDiscord | <Zireael> coming back to nim after failed tries a couple months ago, and I can't figure out how to upgrade my Nim install from 0.18.0 to 0.19.4 - I'm on windows if it matters, and installed manually (from zip) |
11:41:45 | Araq | remove the 0.18.0 dir and unzip 0.19.4 |
11:42:37 | FromDiscord | <Zireael> wow, it's that simple? thanks! |
11:42:39 | * | stefanos82 joined #nim |
11:43:25 | FromDiscord | <Zireael> I really don't understand why Nim doesn't have more projects on Github, it has easy syntax similar to popular dynamic languages (Python, Lua) and great speed |
11:52:12 | FromGitter | <matrixbot> `Juan Carlos` Github project lang algo is dumb, your Nim lib can end up as being C/C++/JS, because is so tiny code to wrap, and C/C++/JS, so verbose, that Github just flags your project as being JavaScript or C, same happens if you upload the HTML doc to the repo. |
11:53:12 | FromGitter | <matrixbot> `Juan Carlos` It should be a lang picker instead that you can choose instead of that algo. |
12:05:58 | FromGitter | <alehander42> hm what can lead to |
12:06:10 | FromGitter | <alehander42> undefined reference to NTI type |
12:06:14 | FromGitter | <alehander42> in linking |
12:06:56 | smitop | matrixbot: You can tell github's language detection system to ignore certain files: https://hackernoon.com/how-to-change-repo-language-in-github-c3e07819c5bb |
12:09:27 | FromGitter | <alehander42> hm it had something to do with casting an empty seq in a macro gen code |
12:09:38 | FromGitter | <alehander42> thank Lord, i can workaround it |
12:18:18 | PMunch | smitop, matrixbot is not an actual user. Well not on IRC at least. It's a user on Gitter that relay messages to Matrix from Juan Carlos.. |
12:18:26 | PMunch | Not sure how you would highlight him tbh |
12:21:18 | FromGitter | <matrixbot> `Juan Carlos` Interestin' :) |
12:29:57 | * | lritter joined #nim |
12:35:15 | * | Snircle joined #nim |
13:05:09 | FromDiscord | <++x;> @Zireael i made the best Nim project that will ever exist. |
13:05:28 | FromDiscord | <++x;> And i spammed it in Python & Nim reddit. |
13:05:29 | JustASlacker | bold claim |
13:07:03 | FromDiscord | <++x;> I am the first person to write a network sniffing tool in Nim. |
13:07:09 | FromDiscord | <++x;> Remember that. |
13:09:27 | FromDiscord | <++x;> All tools really are capable of being made from Nim, you shouldn't be focused on whether or not a lot of Nim related tools/programs/software are on github. You should be focused on using that advantage to write all the best programs you can from Nim. |
13:10:25 | FromDiscord | <++x;> You see unlike C++ & Python, Nim isn't crowded. |
13:10:36 | FromDiscord | <++x;> There's a pro and con to that. |
13:11:42 | FromDiscord | <++x;> The pro is that since it isn't crowded, you don't have to worry about anyone writing a program that will be similar to yours. |
13:11:46 | FromDiscord | <++x;> Most likely. |
13:11:53 | * | nimblepoultry joined #nim |
13:11:59 | FromDiscord | <++x;> The con is that. |
13:12:18 | FromDiscord | <++x;> Not many people will know about your program simply because it was written in Nim. |
13:13:13 | FromDiscord | <++x;> The pro is that since it isn't crowded, you don't have to worry about anyone already having a program out that you wanted to write. |
13:13:37 | FromDiscord | <++x;> Unless you decide to spam it in forums. |
13:13:51 | FromDiscord | <++x;> Or unless Nim happens to become more Popular. |
13:14:32 | nimblepoultry | I have a nimble that building two small binaries, but i need to change --out for one of the modules, how can I best go about that? I tried to do a after build: mvFile but it doesn't seem the hook is supported https://github.com/status-im/crvc/blob/master/crvc.nimble#L9 |
13:14:42 | Araq | I don't see how the number of people who know about a program is related to the programming language it happens to be written in. |
13:15:08 | FromDiscord | <++x;> Lol it wouldn't matter on github, yes. |
13:15:24 | FromDiscord | <++x;> Unless someone decided to lookup a specific topic which your github project is using. |
13:15:37 | FromDiscord | <++x;> That is low on population. |
13:15:41 | FromDiscord | <++x;> For example. |
13:15:53 | FromDiscord | <++x;> If you were to write a C++ project. |
13:15:58 | FromDiscord | <++x;> On github. |
13:16:31 | FromDiscord | <++x;> If someone were to scroll randomly in the C++ labeled projects. |
13:16:42 | FromDiscord | <++x;> Most likely they wouldn't spot yours. |
13:16:51 | FromDiscord | <++x;> Simply because C++ is crowded. |
13:17:12 | FromDiscord | <++x;> Unless they either decide to check the recent updated projects. |
13:17:24 | FromDiscord | <++x;> Or if they were looking at a topic, that you labled on your project. |
13:17:38 | FromDiscord | <++x;> Which the topic also has to be low populated. |
13:17:47 | Araq | "Moorhuhnjagd" used to be a popular game (if you can even call it that) but I don't know what it is was written in |
13:18:04 | FromDiscord | <++x;> So your project would be maybe the first thing they see. |
13:18:11 | FromDiscord | <++x;> When they go to the certain topic. |
13:18:28 | FromDiscord | <++x;> And Nim isn't crowded on github that much. |
13:18:43 | FromDiscord | <++x;> It's topic isn't even that crowded. |
13:19:08 | Araq | dunno, just give your program a website and make it do something useful and it'll get used. |
13:19:12 | FromDiscord | <++x;> And by "topic" i am referring to the tags. |
13:19:22 | FromDiscord | <++x;> That a person can put on their github project. |
13:19:47 | FromDiscord | <++x;> I mean giving it a website.. |
13:20:10 | FromDiscord | <++x;> Well. |
13:20:23 | livcd | what tool did you make ? |
13:20:29 | FromDiscord | <++x;> There's 2 options that will make the website successful. |
13:20:47 | FromDiscord | <++x;> Either if the website was also spammed in forums or whatever. |
13:20:59 | FromDiscord | <++x;> Or if the website just happened to be named something like. |
13:21:08 | FromDiscord | <++x;> "NimBlahblah.com" |
13:21:20 | FromDiscord | <++x;> So when someone look up "Nim" |
13:21:25 | FromDiscord | <++x;> Or "nim language" |
13:21:43 | FromDiscord | <++x;> Your website would possibly appear only if there isn't a more populated website that exists. |
13:21:50 | FromDiscord | <++x;> Like the offcial nim language website. |
13:21:57 | livcd | not bashing (given the resources and people keeping the ecosystem alive) but things break way too "often" |
13:23:15 | Araq | well right now I'm looking at RustFirefox and C++Chrome websites so you are right |
13:23:46 | Araq | always name your software after an implementation detail to get more popularity :-) |
13:24:08 | FromDiscord | <++x;> I'm confused as to how you guys are texting in here from an irc. |
13:24:14 | Calinou | it's a bridge :) |
13:24:22 | * | Araq opens TypeScript-VSCode and continues to work |
13:24:45 | FromDiscord | <++x;> Never seen anyone text in a discord chat from an irc. |
13:24:54 | FromGitter | <Clyybber> The future is now |
13:25:57 | Araq | livcd: we added popular Nimble packages to the testing process, what did break for you? |
13:26:40 | narimiran | Calinou: correction: it is a nimbridge! (connecting nimirc with nimdiscord and nimgitter) :D |
13:27:12 | Calinou | nice |
13:28:09 | FromDiscord | <++x;> Anyways. |
13:30:04 | FromDiscord | <++x;> Feels like I've been talking to myself every time that bot would say something. At first i thought it was relaying messages here that weren't sent live, but now apparently it sends live messages. |
13:30:10 | FromDiscord | <++x;> Like a live communication. |
13:30:18 | FromDiscord | <++x;> wait. |
13:30:29 | FromDiscord | <++x;> Real-time* communication. |
13:30:36 | FromDiscord | <++x;> Think that's a better way of saying it. |
13:31:36 | FromGitter | <Clyybber> Araq: Whats th reason `for` vars are handled differently when in a generic proc as deech pointed out here: https://github.com/nim-lang/Nim/issues/10727#issuecomment-466721179 |
13:31:38 | FromGitter | <Clyybber> ? |
13:31:43 | FromDiscord | <++x;> But i won't be connecting directly to the Nim irc for security reasons which i doubt myself of accomplishing. Last time i did a security measure on myself to join an irc. |
13:31:54 | FromDiscord | <++x;> I was able to still see my real IP from the whois. |
13:32:24 | FromDiscord | <++x;> Then like after a while. |
13:32:47 | FromDiscord | <++x;> It somehow decided to magically change into a VPN IP. |
13:33:00 | FromDiscord | <++x;> i fear ircs. |
13:34:08 | * | nc-x joined #nim |
13:34:20 | narimiran | we fear you too |
13:34:42 | FromDiscord | <++x;> Lol. |
13:34:44 | nc-x | @Clybber might be due to the following comment at the top of the file |
13:34:52 | nc-x | This implements the first pass over the generic body; it resolves some symbols. Thus for generics there is a two-phase symbol lookup just like in C++. |
13:35:08 | FromGitter | <matrixbot> `@juancarlospaco:matrix.org` To make Nim super popular just say its based on Blockchain. ;P |
13:35:16 | FromDiscord | <++x;> How does it look to you guys when i text? |
13:35:18 | Araq | nc-x: it is also covered in the manual |
13:35:24 | FromDiscord | <++x;> Like what appears. |
13:35:31 | Araq | ++x: Like shit. |
13:35:36 | FromDiscord | <++x;> Lol. |
13:35:40 | narimiran | it looks like lots of noise and no ontopic discussion |
13:36:39 | Araq | back to topic, livcd, please elaborate. We test more than anything ever and have bugfix-only releases |
13:37:20 | FromDiscord | <++x;> i'm pretty sure narimiran lowkey has a stick up their butt. |
13:39:13 | FromDiscord | <++x;> What happens if i send an image in here? Will it appear for you guys? |
13:39:38 | FromGitter | <Clyybber> Probably not |
13:39:41 | JustASlacker | in irc you mean? |
13:39:46 | JustASlacker | I dare say nope |
13:39:51 | FromGitter | <alehander42> nope |
13:40:00 | FromDiscord | <++x;> I see. |
13:40:03 | FromGitter | <Clyybber> Maybe a discorduser content whatever link |
13:40:21 | JustASlacker | a link to a picture |
13:40:25 | JustASlacker | by golly, that might work |
13:40:25 | FromDiscord | <++x;> Yeah. |
13:40:46 | FromDiscord | <++x;> Pretty sure ircs convert images to links by default. |
13:41:13 | FromDiscord | <++x;> Unless i'm mistaken. |
13:41:20 | * | nc-x quit (Quit: Page closed) |
13:42:01 | FromGitter | <Clyybber> irc doesn't do images |
13:42:06 | FromGitter | <Clyybber> IRC is just a protocol |
13:42:19 | FromDiscord | <++x;> And Jabber is just a protocol. |
13:42:26 | FromDiscord | <++x;> And i can send image on jabber. |
13:42:40 | FromDiscord | <++x;> And i can send images on jabber. |
13:43:18 | FromDiscord | <++x;> I'm also pretty sure jabber is more secure than an irc. |
13:43:35 | FromGitter | <Clyybber> In what sense? |
13:44:20 | Araq | it uses the MAC address directly, no IP, totally secure |
13:44:55 | FromDiscord | <++x;> Lol i'm not even going to dig myself deep in this topic. |
13:45:32 | * | vlad1777d quit (Remote host closed the connection) |
13:46:55 | * | vlad1777d joined #nim |
13:47:13 | FromDiscord | <++x;> Anyways. |
13:47:18 | * | neceve quit (Read error: Connection reset by peer) |
13:47:48 | FromDiscord | <++x;> Off-topic but speaking of Jabber. |
13:48:06 | FromDiscord | <++x;> Fortnite and league of legends both uses xmpp. |
13:48:11 | leorize | we have #nim-offtopic for that |
13:48:13 | livcd | Araq: jester broke the other day when i wanted to use it :D |
13:48:21 | leorize | bad thing is that it doesn't exists on discord |
13:48:26 | leorize | someone should bridge that as well |
13:48:36 | FromDiscord | <++x;> Oh. Yeah bridge it. |
13:48:57 | FromDiscord | <++x;> I LOVE YOU GUYS. |
13:49:03 | FromDiscord | <++x;> anyways I'll be back in like 5 mins. |
13:49:29 | Araq | livcd: ah, we don't test jester (yet) |
13:49:37 | Araq | what was the error message? |
13:49:37 | * | neceve joined #nim |
13:49:47 | livcd | Araq: i do not know i gave up |
13:50:00 | FromDiscord | <++x;> Never give up. |
13:50:04 | Araq | devel or 0.19.4? |
13:50:52 | livcd | i was on devel i think |
13:51:00 | * | neceve quit (Remote host closed the connection) |
13:51:03 | livcd | could have also been dom96's fault :D |
13:53:19 | Araq | well we'll have a look, thanks for telling us |
13:54:11 | * | neceve joined #nim |
13:55:57 | FromDiscord | <++x;> Also guys, i may write another program in Nim that hasn't been made yet(but you guys need to step up your game) so tomorrow i should be seeing tons of Nim related projects on github. But anyways me and a friend are planning on working on a botnet, which may be entirely written in Nim. And the machine-connecting functionality. He plans on doing something with JS or something to install rats into people devices. But there will be some other func |
13:56:17 | FromDiscord | <++x;> He wanted me to write those in Python but fuck Python. |
13:56:23 | FromDiscord | <++x;> Fuck the python fanboys. |
13:56:31 | JustASlacker | isnt any new program a program that "hasnt been made yet" |
13:56:35 | JustASlacker | gah |
13:56:40 | FromDiscord | <++x;> Lol. |
13:56:40 | JustASlacker | language is hard |
13:57:08 | FromDiscord | <++x;> Lol a "new program" can be anything from already made to not already made. |
13:57:26 | FromDiscord | <++x;> Depends on how you see fit. |
13:57:31 | JustASlacker | yeah |
13:57:39 | JustASlacker | I usually try to see things the right way |
13:57:47 | FromDiscord | <++x;> Good. |
13:57:50 | * | JustASlacker nods |
13:58:56 | FromDiscord | <++x;> What if there's a python fanboy in here that just happens to get butthurt over what i said LOOOOL. |
13:59:37 | narimiran | ++x; that would mean that somebody took you seriously |
13:59:37 | * | Perkol joined #nim |
14:00:06 | FromDiscord | <++x;> Damn. |
14:00:14 | FromDiscord | <++x;> Lol i see what you did there. |
14:00:43 | FromDiscord | <++x;> Why wouldn't anyone not take me seriously? |
14:00:57 | FromDiscord | <++x;> I'm am a serious matter. |
14:01:00 | FromGitter | <Clyybber> Error: Too many negations. Does not compute |
14:01:51 | FromDiscord | <++x;> For example when i tell you guys to step up your game that is a serious matter. |
14:02:53 | FromGitter | <Clyybber> Ugh, what do you mean? |
14:02:53 | FromDiscord | <++x;> Let's go look at the nimble libs. All together. And let's decide if you guys stepped up your game. I better be seeing some creative libs. |
14:03:13 | FromDiscord | <++x;> And some creative github programs written in Nim. |
14:03:22 | FromGitter | <Clyybber> "github programs" |
14:03:30 | FromDiscord | <++x;> Github repos. |
14:03:34 | FromDiscord | <++x;> Github projects. |
14:03:37 | FromDiscord | <++x;> Github programs. |
14:03:43 | FromDiscord | <++x;> Is there is issue? |
14:03:46 | FromDiscord | <++x;> Don't think so. |
14:03:51 | FromGitter | <Clyybber> :P |
14:04:18 | FromDiscord | <++x;> Anyways this is an issue that I've had with a few other programmers before. |
14:04:31 | FromDiscord | <++x;> Their creativity is on a inferior level. |
14:04:33 | FromDiscord | <++x;> Like. |
14:04:42 | FromDiscord | <++x;> I don't know how to explain it. |
14:04:42 | FromGitter | <alehander42> `++x;` i suggest you to do something more useful to people than "botnets" and to calm down a bit |
14:04:55 | FromDiscord | <++x;> Lmao. |
14:05:10 | FromDiscord | <++x;> My guy, most of my projects are for penetesting purposes. |
14:05:26 | FromDiscord | <++x;> And i am calm. |
14:05:41 | FromGitter | <alehander42> this didn't really seem obvious from your earlier explanation, but I hope so |
14:05:53 | FromGitter | <Clyybber> ++x; Do you have a link to the project? |
14:05:54 | FromDiscord | <++x;> And 2 days ago i applied for a github job. |
14:06:01 | FromGitter | <Clyybber> If it is on github? |
14:06:10 | FromGitter | <Clyybber> or any git hoster |
14:06:44 | FromDiscord | <++x;> Don't worry about my github link. I may or may not show it. After i change the bio of it. Perhaps. |
14:06:52 | FromGitter | <alehander42> if i am mistaken, i am sorry ++x |
14:06:55 | * | vlad1777d quit (Ping timeout: 246 seconds) |
14:07:00 | JustASlacker | I applied at github too! |
14:07:02 | FromGitter | <alehander42> but anyway, please try to not spam |
14:07:05 | JustASlacker | they need a new janitor |
14:07:14 | FromGitter | <alehander42> what kind of positions are github looking for |
14:07:32 | JustASlacker | somebodx to clean the toilets |
14:07:36 | narimiran | @alehander42 why do you feed the trolls? |
14:07:44 | FromDiscord | <++x;> I seen some software engeerning positions that are open. |
14:07:56 | FromDiscord | <++x;> And a technical support. |
14:08:05 | FromDiscord | <++x;> And a director support. |
14:08:32 | FromDiscord | <++x;> And a database developer positions. |
14:09:29 | FromGitter | <alehander42> well I hope they're not trolls, but just a little bit of too excited users |
14:09:33 | FromDiscord | <++x;> I don't meet the requisites of some things in the software engineering jobs. Like the years of experience. |
14:09:51 | FromDiscord | <++x;> Or the languages that may be used. |
14:10:19 | FromDiscord | <++x;> But i do happen to meet the requisite of the technical support job. |
14:10:45 | FromGitter | <Clyybber> ++x; Btw you can do shift+enter to enter a line break without sending the message on discord |
14:10:48 | FromGitter | <alehander42> are they still using ruby for most of their stack |
14:11:11 | * | solitudesf quit (Quit: ZNC - https://znc.in) |
14:11:17 | FromDiscord | <++x;> Yeah i think ruby was a language requirement for one of the software jobs. |
14:11:21 | FromDiscord | <++x;> And i don't know ruby. |
14:11:22 | FromDiscord | <++x;> So. |
14:11:35 | narimiran | but you have great communication skills |
14:11:40 | FromDiscord | <++x;> I do |
14:11:58 | * | theelous3 joined #nim |
14:12:08 | FromDiscord | <++x;> i like you narimiran. |
14:12:30 | livcd | Araq: sorry i dont have anything running in prod in Nim mainly because of the small community and small ecosystem. I appreciate all the hard work and all but cant justify the "investment" for now. |
14:12:47 | * | solitudesf joined #nim |
14:12:53 | FromDiscord | <++x;> I guarantee narimiran just blushed. |
14:13:25 | Araq | livcd: ugh :-/ |
14:13:30 | FromDiscord | <++x;> And btw i'm not a troll. I'm a person that likes to tell my opinions. |
14:13:33 | FromDiscord | <++x;> Is there a problem? |
14:13:41 | FromDiscord | <++x;> Don't think so. |
14:13:50 | livcd | Araq: my usage of Nim is mostly try something here and there if it's ok dont touch it if it does not work leave it like it is |
14:14:28 | FromDiscord | <++x;> Oh. |
14:14:41 | FromDiscord | <++x;> Yeah that's a smart move i suppose. |
14:14:56 | livcd | which also kinda explains why I do not report on things that do not work. I just wait it out as I dont need it and come back to later :/ |
14:15:38 | FromDiscord | <++x;> If i see something that don't work i will 100% report on it. |
14:15:47 | FromDiscord | <++x;> That's the whole point of making Nim functional. |
14:16:14 | FromDiscord | <++x;> Feedback is required unless you want Nim to be a trash can. |
14:16:51 | FromDiscord | <++x;> So even if you may not need it. |
14:16:58 | FromDiscord | <++x;> Be sure to still report on it. |
14:17:11 | FromDiscord | <++x;> Because other Nim users exist. |
14:17:15 | FromDiscord | <++x;> And not just yourself. |
14:17:23 | livcd | I know I know. I am sorry for that I just never have the need to make it working again |
14:17:51 | FromDiscord | <++x;> No need to apologize, i understand. |
14:18:09 | FromGitter | <Clyybber> c ya |
14:18:35 | FromDiscord | <++x;> I'm just saying that like maybe if you still reported it, the devs may fix it for future use for other nim users. |
14:20:35 | FromDiscord | <++x;> So when a new Nim user joins, they won't be dissatisfied because of the bugs, etc. |
14:20:45 | livcd | btw 2vg is doing another http server based on mofuw. yay! |
14:23:39 | FromDiscord | <++x;> And like. |
14:23:55 | FromDiscord | <++x;> I've seen programs where it's like the devs purposely added errors. |
14:24:03 | FromDiscord | <++x;> Not Nim programs but like. |
14:24:09 | FromDiscord | <++x;> Other programs. |
14:24:16 | FromDiscord | <++x;> And i just be like wtf is this shit. |
14:25:00 | FromDiscord | <++x;> They just be like "let me add a few errors so they can work for the success" and now that i think about it. |
14:26:06 | FromDiscord | <++x;> That may be a good way to actually teach a person, well not teach them but make them pretty much use their skills in a way that you can get better. |
14:26:11 | FromDiscord | <++x;> By correcting the mistakes. |
14:27:04 | FromDiscord | <++x;> And speaking of programs, there's this building system service i was using before. |
14:27:18 | FromDiscord | <++x;> Forgot the name of it but that shit was fucking trash. |
14:27:29 | FromDiscord | <++x;> Wait nvm. |
14:27:39 | FromDiscord | <++x;> Just remembered why i stopped using it. |
14:27:51 | * | FromDiscord joined #nim |
14:28:06 | FromDiscord | <++x;> hm. |
14:28:22 | narimiran | ++x; stop spamming!! |
14:28:55 | FromDiscord | <++x;> Sorry. |
14:29:37 | FromDiscord | <++x;> Sorry master. |
14:39:41 | * | smitop quit (Quit: Connection closed for inactivity) |
14:43:38 | * | Vladar quit (Remote host closed the connection) |
14:44:03 | * | Vladar joined #nim |
14:54:39 | * | PMunch quit (Remote host closed the connection) |
14:55:06 | * | PMunch joined #nim |
14:55:24 | * | PMunch quit (Remote host closed the connection) |
14:55:42 | * | PMunch joined #nim |
14:55:47 | * | PMunch quit (Remote host closed the connection) |
14:57:05 | * | PMunch joined #nim |
15:02:41 | * | Perkol quit (Quit: Leaving) |
15:11:31 | FromGitter | <alehander42> ugh Araq, is there a raw node |
15:11:34 | FromGitter | <alehander42> in PNode |
15:11:53 | FromGitter | <alehander42> i want to just add some raw code kind without nodes |
15:12:09 | Araq | no |
15:12:17 | Araq | what is "raw" code? |
15:12:36 | FromGitter | <alehander42> verbaitm |
15:12:56 | FromGitter | <alehander42> no need in my case actually sorry |
15:12:58 | FromGitter | <alehander42> but in general |
15:13:09 | FromGitter | <alehander42> it might be still useful when generating code |
15:17:00 | * | tefter joined #nim |
15:17:15 | * | PMunch quit (Remote host closed the connection) |
15:20:33 | * | abm joined #nim |
15:23:46 | Araq | http://repository.root-me.org/Exploitation%20-%20Syst%C3%A8me/Unix/EN%20-%20From%20collision%20to%20exploitation%3A%20Unleashing%20Use-After-Free%20vulnerabilities%20in%20Linux%20Kernel.pdf |
15:24:03 | Araq | LaTeX article detected ;-) |
15:25:04 | narimiran | Araq: section 3.3 triggered you? :) |
15:25:18 | narimiran | well, 2.1 too |
15:26:16 | Araq | 3.2 too |
15:27:48 | narimiran | for me, the funniest thing is that i've *never* seen stuff like that in the articles i read (and i've worked in academia :)), it is only in the articles you read and share :D |
15:28:11 | Araq | it's so terrible that it keeps fascinating me |
15:28:35 | Araq | it's like the tool's author never understood that paper doesn't have horizontal scrollbars |
15:29:43 | * | Snircle quit (Read error: Connection reset by peer) |
15:30:31 | * | Snircle joined #nim |
15:32:12 | Araq | and then they go on and drivel about Knuth's superior algorithm for layouting using dynamic programming and how much M$'s word sucks because it doesn't need a two phase compilation step nor a makefile |
15:46:10 | Zevv | hi araq, what would be the next step in this nim bounds proving experiment? |
15:46:51 | Araq | need to find the time to re-activate my branch |
15:48:54 | Zevv | hehe, I read "to re-activate my brain" :) |
15:52:35 | livcd | is there an iocp http server for Nim ? |
16:02:56 | * | smitop joined #nim |
16:03:19 | * | Trustable joined #nim |
16:04:30 | * | ng0 joined #nim |
16:04:42 | * | JustASlacker quit (Remote host closed the connection) |
16:18:21 | * | neceve quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) |
16:18:41 | * | UxerUospr joined #nim |
16:18:41 | * | neceve joined #nim |
16:19:51 | * | shpx joined #nim |
16:22:44 | FromGitter | <Varriount> What do you mean by IOCP? |
16:52:27 | * | shashlick joined #nim |
17:44:54 | * | neceve quit (Read error: Connection reset by peer) |
17:48:09 | FromGitter | <slomp> What's the official way to post a "feature request" (to start a conversation, at least) for nim? |
17:51:09 | * | zachk joined #nim |
17:51:18 | leorize | new issue in nim-lang/RFCs :) |
17:54:10 | * | shpx quit (Quit: shpx) |
17:57:11 | Araq | yeah, leorize is right |
17:59:11 | * | shpx joined #nim |
18:03:09 | FromGitter | <slomp> Thanks! |
18:03:49 | Zevv | am I the only one who has ever written a *proper* RFC by the rules :/ |
18:08:29 | ldlework | probably |
18:12:54 | Zevv | and then it even was rejected, boohoo |
18:14:12 | Araq | what was it? |
18:14:34 | Zevv | dropping the Future[T] on async procs |
18:18:27 | Araq | ah, sorry, but that still seems worse to me. |
18:19:44 | * | smitop quit (Quit: Connection closed for inactivity) |
18:21:17 | Zevv | Funny thing is: you were one of the three Yeas, against the Nays of dom and cheatfate :) |
18:22:33 | * | noeontheend joined #nim |
18:43:41 | FromDiscord | <sillibird> is there a standard way of writing formatted json to a file? system writeFile works but its not formatted nicely |
18:49:19 | * | nsf quit (Quit: WeeChat 2.4) |
18:50:03 | FromGitter | <matrixbot> `Juan Carlos` myjsonthing.pretty |
18:50:44 | FromDiscord | <sillibird> just found it as you said it, lol. thanks, pretty worked |
18:55:28 | FromGitter | <viell> hi guys |
18:56:00 | FromGitter | <viell> I have problem installing its compiler..who can help me? |
18:58:06 | Araq | Zevv: well I like the idea, but Future[Future[T]] would be confusing and made me change my mind |
18:58:21 | Araq | viell: what's the problem |
19:02:37 | FromDiscord | <sillibird> is there a way to remove the newline delimit on echo like you can in python |
19:03:12 | shashlick | stdout.write |
19:03:47 | FromDiscord | <sillibird> Thanks |
19:15:08 | FromGitter | <viell> @FromIRC I don't know how to compile it using a c compiler because it's written in nim and it's suffix is .nim and my c compiler doesn't recognize it. |
19:15:11 | FromGitter | <viell> @FromIRC I don't know how to compile it using a c compiler because it's written in nim and it's suffix is .nim and my c compiler doesn't recognize it. |
19:16:07 | FromGitter | <viell> :-( |
19:23:25 | FromGitter | <SolitudeSF> you can build it from https://github.com/nim-lang/csources first |
19:23:55 | FromGitter | <matrixbot> `Juan Carlos` *.nim files are compiled with nim, nim is written on nim. But for installing the best way is using Choosenim, depending whats your OS. |
19:42:12 | FromGitter | <viell> @SolitudeSF I already have...that's the problem.. Idk how to compile its compiler |
19:43:04 | FromGitter | <viell> @matrixbot yes but in case we are using Linux to develop codes...I'm a Windows user |
19:44:58 | Zevv | viell: on windows you'll need a C compiler first - Nim compiles to C, which then gets compiled to your native binaries by the C compiler |
19:52:01 | FromGitter | <viell> @FromIRC and how? cause my c compiler doesn't support its syntaxs |
19:52:35 | Zevv | I believe mingw is the way to go for Nim |
19:53:01 | FromGitter | <viell> @FromIRC yes already installed and added to my path ev |
19:58:34 | FromGitter | <matrixbot> `Juan Carlos` Docker for Windows is pretty cool too nowadays IMHO. |
20:03:00 | FromGitter | <SolitudeSF> there is a step by step instruction in the readme https://github.com/nim-lang/nim#compiling |
20:08:46 | FromGitter | <viell> @SolitudeSF already tried it.no help |
20:09:48 | FromGitter | <SolitudeSF> what does this mean? whats not working? |
20:10:39 | narimiran | @viell "FromIRC" is not an user, it is a bot which transfers messages between IRC and Gitter. try to reply to the name you see as a first part of the message |
20:11:12 | narimiran | and what exactly is the problem? what are you trying to do? |
20:11:12 | * | Arlenx quit (Quit: Leaving) |
20:23:19 | FromGitter | <matrixbot> `Juan Carlos` http://rosettacode.org Ded :( |
20:28:21 | FromGitter | <viell> @SolitudeSF I can not build from its code!!!!!! |
20:28:56 | FromGitter | <SolitudeSF> that explains exactly nothing |
20:29:45 | FromGitter | <viell> @FromIRC what should I do from the step of the c compiler? how I build the nim compiler with it? |
20:30:52 | FromGitter | <viell> @SolitudeSF my c compiler doesn't recognize the syntax of nim...the nim compiler folder files are written in nim |
20:31:11 | * | aguspiza joined #nim |
20:33:37 | FromGitter | <SolitudeSF> first you need to build nim compiler with your c compiler from c sources https://github.com/nim-lang/csources. its all written in here https://github.com/nim-lang/nim#compiling |
20:37:22 | * | sknebel quit (Ping timeout: 250 seconds) |
20:37:56 | FromGitter | <viell> @SolitudeSF that's the problem..I've already gone through the instructions in GitHub but no help...it can't be built..my c compiler is c lion. should I use another one? |
20:40:05 | * | Vladar quit (Remote host closed the connection) |
20:40:33 | * | Trustable quit (Remote host closed the connection) |
20:43:28 | * | PMunch joined #nim |
20:45:45 | * | narimiran_ joined #nim |
20:48:15 | * | narimiran quit (Ping timeout: 246 seconds) |
20:49:59 | * | floppydh quit (Quit: WeeChat 2.3) |
20:59:11 | * | arecaceae quit (Remote host closed the connection) |
20:59:29 | * | arecaceae joined #nim |
21:02:13 | FromDiscord | <exelotl> isn’t clion an IDE? |
21:02:45 | * | sknebel joined #nim |
21:06:06 | FromDiscord | <++x;> Yo guys. |
21:06:09 | FromDiscord | <++x;> Sup. |
21:10:24 | Elronnd | @exelotl yep |
21:10:48 | FromGitter | <viell> @FromIRC also a compiler |
21:21:50 | * | UxerUospr quit (Quit: Lost terminal) |
21:25:46 | * | narimiran_ quit (Ping timeout: 272 seconds) |
21:26:34 | FromGitter | <SolitudeSF> no, clion is ide, it just bundles mingw |
21:27:38 | FromGitter | <viell> @SolitudeSF but I downloaded it under the title of a compiler!!!what should I use, now? |
21:29:00 | FromGitter | <SolitudeSF> https://nim-lang.org/install_windows.html |
21:29:06 | FromGitter | <SolitudeSF> have you read this? |
21:29:21 | FromGitter | <viell> @SolitudeSF yup |
21:30:53 | * | m712 quit (Ping timeout: 244 seconds) |
21:33:34 | * | m712 joined #nim |
21:42:23 | * | shashlick quit (Remote host closed the connection) |
21:43:27 | * | shashlick joined #nim |
21:44:22 | * | aguspiza quit (Ping timeout: 246 seconds) |
21:45:04 | shashlick | is gcc in your path |
21:51:01 | * | shashlick quit (Remote host closed the connection) |
21:51:22 | * | shashlick joined #nim |
21:55:42 | krux02 | viell: mybe clion is not the right tool to use with nim. It is neat and everything I like jetbrains software. But it won't help you with Nim development |
21:55:49 | krux02 | at least not a lot |
21:56:24 | krux02 | visual studio code is as far as I know currently the road of least resistence |
22:09:54 | * | oculux joined #nim |
22:11:08 | * | oculux| quit (Ping timeout: 255 seconds) |
22:11:12 | ryukoposting | viell: MinGW (installed by CLion) likely created a directory somewhere that contains the binaries for the compiler. If you add that to your PATH, nim should be able to find it hypothetically |
22:11:41 | dom96 | Hey guys, what's new? |
22:12:02 | ryukoposting | iirc CLion uses a really, really old version of MinGW though, and you might be better served by installing GCC or clang |
22:12:14 | ryukoposting | hi dom, how goes it |
22:15:16 | dom96 | Things are going well :) |
22:15:33 | PMunch | Good to hear :) |
22:15:42 | ryukoposting | nice, what you guys working on? |
22:16:08 | ldlework | dom96: is your JS thing open source? |
22:16:37 | * | PMunch quit (Remote host closed the connection) |
22:16:47 | dom96 | ldlework: nope |
22:16:55 | ldlework | pls |
22:17:16 | dom96 | soz, but no |
22:17:23 | ldlework | pff |
22:17:30 | dom96 | I hope to actually make some money off of this game :P |
22:17:45 | ldlework | another greedy capitalist |
22:17:47 | ldlework | smh |
22:18:18 | ldlework | dom96: can you at least refactor out a project boilerplate for doing JS gamedev ffs? |
22:18:19 | ryukoposting | mfw https://i.imgur.com/pcgNiIV.jpg |
22:18:26 | ldlework | lmfao |
22:19:01 | dom96 | ldlework: There is literally a JS game written in Nim that's showcased on the Nim website that I wrote |
22:19:05 | dom96 | And it is open source: https://github.com/dom96/snake |
22:19:25 | ldlework | and does it use the same sauce as your new fancy secret implementation? |
22:19:35 | dom96 | pretty much |
22:19:39 | ldlework | and why should we take your word anyway |
22:19:43 | ldlework | https://i.imgur.com/pcgNiIV.jpg |
22:22:49 | dom96 | What I still find peculiar is how the game runs at 60fps in safari but in Firefox and Chrome it's more choppy (40fps and 30fps respectively) |
22:23:14 | dom96 | Apple must do some black magic to accelerate their browser |
22:23:25 | FromGitter | <Varriount> dom96 : I'm using afl-fuzz on a Nim library |
22:23:41 | FromGitter | <Varriount> Eventually I want to use it on the compiler |
22:23:42 | dom96 | cool |
22:24:06 | ryukoposting | krux02 hey, just want to make sure there's no hard feelings, I hope I didn't come off too heated on the issue threads |
22:24:33 | * | shpx quit (Quit: shpx) |
22:29:25 | krux02 | ryukoposting, I am fine don't worry |
22:29:37 | krux02 | I think you are right json parsing should work at compile time |
22:29:58 | ryukoposting | If nothing else, I think it makes the stdlib more consistent |
22:30:27 | krux02 | yes it does. |
22:31:06 | krux02 | I did a lot of programming with macros, and I can tell you, you use a very different set of the standard library during macro development that you do in your normal program development. |
22:31:16 | ryukoposting | thanks, man. This AWS thing is one of the more ambitious things I've done, but I'm gonna have some help with it by the sound of it |
22:31:37 | krux02 | mostly because you have to transfrom the AST a lot and here the general algorithms don't work or would be effective |
22:31:48 | ryukoposting | aaah, I see. That makes sense |
22:32:28 | ryukoposting | macros are a lot easier said than done, that's for sure |
22:33:22 | krux02 | yes, but they have a very short feedback loop |
22:33:29 | krux02 | small macros are almost instant |
22:33:57 | krux02 | dumpTree/treeRepr is really your friend |
22:34:04 | ryukoposting | yeah, I've never noticed any real differences in compile times where macros were the obvious cause |
22:34:12 | ryukoposting | dumpAstGen is my personal favorite |
22:34:27 | krux02 | that one is cool indeed. |
22:35:08 | krux02 | I tried to replace it with a better quoting system. |
22:35:16 | krux02 | but it didn't work out as I expected |
22:35:23 | ryukoposting | oh? |
22:35:41 | krux02 | https://github.com/nim-lang/Nim/pull/10446 |
22:36:27 | krux02 | read the proposal as well |
22:44:19 | ryukoposting | I really like this |
22:44:32 | * | shpx joined #nim |
22:49:05 | ryukoposting | a clean 'quote' would be extremely helpful |
22:49:36 | ryukoposting | I don't use the current one since it seems kind of flakey |
22:52:04 | krux02 | it is flakey |
22:53:04 | krux02 | I still use it as I know what it can do and what it can't do. |
22:53:58 | ryukoposting | I'll probably end up using it a bit in this json thing, since there's going to be a ton of macros |
22:54:46 | ryukoposting | but for small stuff, I just write some code, run it through dumpAstGen, copy the output into the macro, and go from there |
22:54:51 | krux02 | yes double check that the quote body does not contain any local variables as that really screws things up |
22:55:06 | * | shpx quit (Ping timeout: 244 seconds) |
22:55:19 | krux02 | and when you do, use them in backticks (explicitly) and make they they are of type NimNode (newLit) |
22:55:25 | ryukoposting | yeah and in nim it's really difficult to do name mangling because of style insensitivity |
22:55:37 | krux02 | with newLit you can create ast literals of any value |
22:55:52 | ryukoposting | oh neat |
22:55:54 | krux02 | it is overloaded for most use cases |
22:56:00 | ryukoposting | that could be very useful |
23:10:19 | * | vlad1777d joined #nim |
23:11:24 | FromDiscord | <Skaruts> hi |
23:11:24 | FromDiscord | <Skaruts> I'm having a bit of trouble wrapping my head around why Nim keeps complaining about different kinds of ints in arithmetic, and how to deal with this properly. For example: |
23:11:24 | FromDiscord | <Skaruts> ```Python |
23:11:24 | FromDiscord | <Skaruts> var time_now:uint32 = 0 |
23:11:24 | FromDiscord | <Skaruts> # (...) |
23:11:25 | FromDiscord | <Skaruts> proc main() = |
23:11:27 | FromDiscord | <Skaruts> time_now = get_ticks() / 1000 # type mismatch: got <uint32, int literal(1000)> but expected one of: (...) |
23:11:28 | FromDiscord | <Skaruts> ``` |
23:11:30 | FromDiscord | <Skaruts> get_ticks() is the `sdl2.get_ticks` function, which returns a uint32 |
23:12:06 | FromDiscord | <Skaruts> hi |
23:12:06 | FromDiscord | <Skaruts> I'm having a bit of trouble wrapping my head around why Nim keeps complaining about different kinds of ints in arithmetic, and how to deal with this properly. For example: |
23:12:07 | FromDiscord | <Skaruts> ```Python |
23:12:07 | FromDiscord | <Skaruts> var time_now:uint32 = 0 |
23:12:07 | FromDiscord | <Skaruts> # (...) |
23:12:07 | FromDiscord | <Skaruts> proc main() = |
23:12:09 | FromDiscord | <Skaruts> time_now = get_ticks() / 1000 # type mismatch: got <uint32, int literal(1000)> |
23:12:11 | FromDiscord | <Skaruts> # but expected one of: (...) |
23:12:13 | FromDiscord | <Skaruts> ``` |
23:12:15 | FromDiscord | <Skaruts> get_ticks() is the `sdl2.get_ticks` function, which returns a uint32 |
23:12:17 | FromDiscord | <Skaruts> hi |
23:12:20 | FromDiscord | <Skaruts> I'm having a bit of trouble wrapping my head around why Nim keeps complaining about different kinds of ints in arithmetic, and how to deal with this properly. For example: |
23:12:21 | FromDiscord | <Skaruts> ```Python |
23:12:22 | FromDiscord | <Skaruts> var time_now:uint32 = 0 |
23:12:24 | FromDiscord | <Skaruts> # (...) |
23:12:25 | FromDiscord | <Skaruts> proc main() = |
23:12:27 | FromDiscord | <Skaruts> time_now = get_ticks() / 1000 # type mismatch: got <uint32, int literal(1000)> |
23:12:29 | FromDiscord | <Skaruts> # but expected one of: (...) |
23:12:30 | FromDiscord | <Skaruts> ``` |
23:12:31 | ryukoposting | howdy |
23:12:32 | FromDiscord | <Skaruts> get_ticks() is the `sdl2.get_ticks` function, which returns a uint32 |
23:12:33 | FromDiscord | <Skaruts> hi |
23:12:36 | FromDiscord | <Skaruts> I'm having a bit of trouble wrapping my head around why Nim keeps complaining about different kinds of ints in arithmetic, and how to deal with this properly. For example: |
23:12:38 | FromDiscord | <Skaruts> ```Python |
23:12:39 | FromDiscord | <Skaruts> var time_now:uint32 = 0 |
23:12:40 | FromDiscord | <Skaruts> # (...) |
23:12:42 | FromDiscord | <Skaruts> proc main() = |
23:12:44 | FromDiscord | <Skaruts> time_now = get_ticks() / 1000 # type mismatch: got <uint32, int literal(1000)> |
23:12:46 | FromDiscord | <Skaruts> # but expected one of: (...) |
23:12:47 | FromDiscord | <Skaruts> ``` |
23:12:47 | ryukoposting | ok so once IRC stops exploding, I can help you |
23:12:49 | FromDiscord | <Skaruts> get_ticks() is the `sdl2.get_ticks` function, which returns a uint32 |
23:13:30 | * | theelous3 quit (Ping timeout: 246 seconds) |
23:13:38 | ryukoposting | would you mind putting the full compiler output in a pastebin? I'm not very familiar with SDL so I'd like to see the full error |
23:14:22 | ryukoposting | oooh wait nvm |
23:14:53 | ryukoposting | you gotta tell the compiler that '1000' is a uint32, it gets angry when you do math between signed and unsigned integers |
23:15:28 | FromDiscord | <Skaruts> like `1000'u32`? |
23:15:33 | ryukoposting | you can say 1000u32, 1000'u32, 1000.uint32, uint32(1000) but the first two are cleanest imo |
23:16:00 | FromDiscord | <Skaruts> it still complains... |
23:16:17 | ryukoposting | hmmm |
23:16:39 | ryukoposting | mind sending me the file the code is in, and the compiler output? Just stick it in a pastebin or somethin |
23:18:08 | FromDiscord | <Skaruts> sure 1 sec |
23:20:27 | * | lritter quit (Ping timeout: 240 seconds) |
23:20:38 | FromDiscord | <Skaruts> https://pastebin.com/VtXqXn7a |
23:20:52 | FromDiscord | <Skaruts> I'm still wrapping my head around Nim, so don't mind the mess |
23:21:18 | FromDiscord | <Skaruts> that's not the only file in the project though |
23:21:49 | ryukoposting | no worries, I'm relatively new to it compared to a lot of the people here too |
23:22:44 | ryukoposting | btw most markdown implementations I've seen that have syntax highlighting have support for nim |
23:23:58 | FromDiscord | <Skaruts> hmm, pastebins nim support seems rather monochrome |
23:24:01 | FromDiscord | <Skaruts> 😃 |
23:24:35 | ryukoposting | ooooh yeah, guess idk about pastebin lol |
23:26:23 | ryukoposting | can you send the error too? full compiler output preferably |
23:26:46 | FromDiscord | <Skaruts> well the same thing is happening in a test file that has nothing else but |
23:26:46 | FromDiscord | <Skaruts> ```Python |
23:26:47 | FromDiscord | <Skaruts> var x : uint32 = 0 |
23:26:47 | FromDiscord | <Skaruts> echo x / 1000'u32 |
23:26:47 | FromDiscord | <Skaruts> ``` |
23:27:02 | ryukoposting | ah cool |
23:28:01 | ryukoposting | oh, division is only implemented for int, float, and float32 |
23:28:03 | ryukoposting | wat |
23:28:14 | ryukoposting | like, I'm sure there's a reason for that, but wat |
23:28:26 | FromDiscord | <Skaruts> added the error to the pastebin file |
23:28:50 | FromDiscord | <Skaruts> I've had the same issue over and over with many types |
23:28:53 | ryukoposting | try this `x div 1000'u32` |
23:29:00 | ryukoposting | that'll do the job |
23:29:25 | ryukoposting | nim prefers to make the difference between integer division and floating-point division as clear as possible |
23:30:27 | FromDiscord | <Skaruts> ok yea that works |
23:30:29 | ryukoposting | I always forget about that for some reason lol |
23:30:45 | FromDiscord | <Skaruts> and btw you can drop the 'u32 part with div |
23:30:55 | ryukoposting | nice |
23:31:09 | FromDiscord | <Skaruts> thanks btw 😃 |
23:31:19 | ryukoposting | no problem :) |
23:36:29 | * | abm quit (Quit: Leaving) |
23:44:13 | * | leorize quit (Quit: WeeChat 2.3) |
23:46:45 | * | ng0 quit (Ping timeout: 256 seconds) |
23:52:34 | federico3 | https://sites.google.com/a/athaydes.com/renato-athaydes/posts/fearlessconcurrencyhowclojurerustponyerlanganddartletyouachievethat |
23:54:12 | * | Sembei quit (Read error: Connection reset by peer) |
23:54:33 | * | MyMind joined #nim |
23:55:16 | * | masterdonx quit (Ping timeout: 246 seconds) |
23:58:37 | * | masterdonx joined #nim |