00:23:39 | * | find0x90 joined #nim |
00:42:08 | * | krux02 quit (Remote host closed the connection) |
00:42:18 | * | find0x90 quit (Quit: find0x90) |
00:49:01 | * | lainon joined #nim |
00:51:56 | * | find0x90 joined #nim |
01:01:09 | * | find0x90 quit (Quit: find0x90) |
01:42:48 | FromGitter | <gogolxdong> How to send email in Nim? |
02:01:23 | * | shashlick quit (Ping timeout: 265 seconds) |
02:02:11 | FromGitter | <honewatson> best to use mailgun I think |
02:02:18 | FromGitter | <honewatson> or something similar |
02:02:30 | * | yglukhov[i] joined #nim |
02:03:15 | FromGitter | <honewatson> Generally if you try to use your own email server there are a lot of hoops to go through to avoid email going to spam |
02:04:03 | * | DarkArctic_ joined #nim |
02:04:42 | * | lain0n joined #nim |
02:05:05 | * | lain0n is now known as Guest21281 |
02:05:25 | * | lainon quit (Read error: Connection reset by peer) |
02:07:32 | * | DarkArctic quit (Ping timeout: 256 seconds) |
02:14:11 | * | shashlick joined #nim |
02:19:12 | * | Guest21281 is now known as lainon |
03:07:08 | FromGitter | <gogolxdong> @Varriount Can you help me to issue a request to AWS pricingList service with this http header ? |
03:07:15 | FromGitter | <gogolxdong> ```code paste, see link``` |
03:07:54 | FromGitter | <gogolxdong> I got `{"InvalidSignatureException":{"Message":"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."}}` |
03:12:19 | * | endragor joined #nim |
03:12:40 | FromGitter | <gogolxdong> The sample http header in AWS documentation has `Host` which was removed for EC2 sevice intentionally, and an additional `x-amz-target` ,for your information , https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_pricing_DescribeServices.html |
03:45:38 | FromGitter | <gogolxdong> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b160762b6eece791ddd1a0c] |
04:03:20 | FromGitter | <Varriount> @gogolxdong I'll see if I can sort that out tomorrow. It's almost bed time for me here. |
04:09:09 | * | rockcavera quit (Remote host closed the connection) |
04:12:42 | * | rockcavera joined #nim |
04:12:42 | * | rockcavera quit (Changing host) |
04:12:42 | * | rockcavera joined #nim |
04:13:13 | * | yglukhov[i] quit (Ping timeout: 260 seconds) |
04:21:01 | FromGitter | <gogolxdong> well ,thanks anyway. |
04:23:18 | FromDiscord | <2vg> This is the latest techempower's benchmark result, but in json test mofuw is in 24th place ;-; |
04:23:18 | FromDiscord | <2vg> |
04:23:18 | FromDiscord | <2vg> https://www.techempower.com/benchmarks/#section=test&runid=aad43f39-48a2-460c-a363-99cd543a772a&hw=ph&test=json |
04:23:31 | * | yglukhov[i] joined #nim |
04:35:56 | * | xkapastel quit (Quit: Connection closed for inactivity) |
04:49:16 | * | nc-x joined #nim |
04:50:36 | nc-x | vscode-nim plugin added support for nimpretty some time ago https://github.com/pragmagic/vscode-nim/issues/79 but isn't nimpretty not yet ready for prime time? |
04:57:13 | * | nc-x quit (Quit: Page closed) |
04:59:24 | * | miran joined #nim |
05:01:15 | * | yglukhov[i] quit (Ping timeout: 260 seconds) |
05:16:51 | * | nsf joined #nim |
05:25:41 | FromGitter | <Varriount> 2vg: I still wonder why jester performs so badly on that benchmark. |
05:46:00 | * | SenasOzys quit (Remote host closed the connection) |
06:00:41 | * | lainon left #nim ("Leaving") |
06:05:45 | * | yglukhov[i] joined #nim |
06:13:34 | * | miran quit (Ping timeout: 264 seconds) |
06:17:07 | * | Vladar joined #nim |
06:17:09 | * | yglukhov[i] quit (Ping timeout: 264 seconds) |
06:18:03 | * | craigger quit (Quit: bye) |
06:18:16 | * | craigger joined #nim |
06:18:55 | * | SenasOzys joined #nim |
06:27:23 | * | xkapastel joined #nim |
06:32:55 | Araq | 2vg: try packedjson ? |
06:37:36 | FromDiscord | <2vg> @Varriount jester seems to be using the old Nim x ( |
06:37:50 | * | yglukhov[i] joined #nim |
06:38:26 | FromDiscord | <2vg> @Araq ya, i will try it :3 |
06:57:43 | * | nsf quit (Quit: WeeChat 2.1) |
06:58:40 | * | nsf joined #nim |
07:22:52 | * | PMunch joined #nim |
07:52:46 | shashlick | if https://pastebin.com/JxVeANcZ and I have ```var test: CFileInStream```, does the object have any memory associated with it? |
07:54:36 | shashlick | yep it does, never mind |
08:03:57 | * | gmpreussner_ quit (Ping timeout: 256 seconds) |
08:05:08 | * | gmpreussner_ joined #nim |
08:24:26 | FromGitter | <data-man> @Varriount: Haha, I can't reopen #7415 :) Button "Reopen pull request" disabled for me. Welcome to M$ GitHub? :) |
08:25:25 | Yardanico | @data-man you probably can't do that because it was closed by Nim repository collaborator |
08:25:44 | Yardanico | You can probably reopen pull requests created by you or other people (who is not in the nim repository) |
08:27:09 | FromGitter | <data-man> @Yardanico: No. For other closed PRs the button is enabled. |
08:28:03 | Yardanico | ah |
08:28:09 | Yardanico | probably this branch was removed |
08:28:44 | Yardanico | it says " from unknown repository" |
08:29:28 | FromGitter | <data-man> See https://gitter.im/nim-lang/Nim?at=5b159cf122a05f5e71fe8f42 "That's odd... I didn't click close on that ticket. " :) |
08:43:34 | * | yglukhov[i] quit () |
08:49:14 | * | couven92 joined #nim |
08:54:58 | * | yglukhov[i] joined #nim |
09:11:50 | FromGitter | <mratsim> Apple deprecating OpenCL and OpenGL ... |
09:12:54 | Yardanico | yeah |
09:13:01 | Yardanico | but at least there's MoltenVK |
09:13:15 | Yardanico | @mratsim time to install Linux or Windows on your mac book :D |
09:13:17 | FromGitter | <survivorm> reading this news now :) |
09:13:30 | FromGitter | <mratsim> or just not update |
09:13:46 | Yardanico | well, I watched WWDC live |
09:13:49 | Yardanico | with dom :) |
09:14:03 | Yardanico | (we've talked in #nim-offtopic) |
09:14:31 | FromGitter | <mratsim> I already have a 2015 MBP with proper USB, HDMI, DisplayPort ports, updating to a touchbar Mac and carrying 4 dongles hum hum ... |
09:15:11 | FromGitter | <survivorm> Now they recommend this https://developer.apple.com/library/prerelease/ios/documentation/Miscellaneous/Conceptual/MTLProgGuide/Introduction/Introduction.html |
09:15:34 | Yardanico | yeah, but they're forcing developers to make hard decisions: |
09:15:39 | FromGitter | <mratsim> link is dead |
09:15:48 | FromGitter | <survivorm> hm |
09:15:49 | Yardanico | support one more framework or not support macOS at all |
09:16:10 | Yardanico | (or for some - support only this ml framework) |
09:16:17 | FromGitter | <survivorm> https://developer.apple.com/documentation/metal |
09:16:22 | FromGitter | <mratsim> Basically: Photos/Video applications/Suite/framework will have a lot of issue |
09:16:22 | FromGitter | <survivorm> this one's not |
09:16:40 | Yardanico | @mratsim there's MoltenVK and MoltenGL |
09:16:43 | FromGitter | <mratsim> Adobe must have a crisis meeting |
09:16:49 | Yardanico | sadly MoltenGL is not free |
09:16:52 | Yardanico | (but MoltenVK is FOSS) |
09:17:22 | Yardanico | And Valve already demonstrated that MoltenVK gives more FPS over OpenGL in dota 2 |
09:17:41 | Yardanico | MoltenVK is a Vulkan->Metal translator |
09:17:49 | FromGitter | <survivorm> @Yardanico if they've taken that cource, they may deprecate this things as well |
09:17:57 | * | Cthalupa quit (Ping timeout: 240 seconds) |
09:18:01 | FromGitter | <mratsim> but companies still didnโt switch to Vulkan itโs to new |
09:18:03 | Yardanico | what things? |
09:18:08 | Yardanico | MoltenVK is not made by apple |
09:18:20 | FromGitter | <survivorm> OpenGL is? |
09:18:35 | FromGitter | <survivorm> or OpenCL? |
09:18:48 | FromGitter | <mratsim> OpenGL Iโm not worried for games, Unity/Unreal supports them, will be ough for small indies though |
09:19:10 | FromGitter | <mratsim> tough* |
09:19:27 | Yardanico | Yeah, it's not an issue for games using big game engines |
09:20:17 | FromGitter | <mratsim> Anyway, companies like Blender, Maya, Maxthon (Cinema4D) will have to rewrite all their OpenCL code |
09:20:45 | Yardanico | I think someone will create MoltenCL :D |
09:21:09 | Yardanico | guys, btw, go to http://mentoring.exercism.io/ if you want to review Exercism solutions of other people |
09:21:18 | Yardanico | (Nim is available here too) |
09:21:27 | Yardanico | they will release Exercism v2 soon |
09:21:41 | FromGitter | <mratsim> Iโm not sure if there are CAD softwares on mac, but the whole engineering industry for aeronautical, structural and automotive engineering rely on OpenCL as well |
09:21:50 | FromGitter | <alehander42> what happened with codewars, wasnt there a nim track too? |
09:22:21 | Yardanico | there is AFAIK |
09:22:38 | FromGitter | <mratsim> (https://files.gitter.im/nim-lang/Nim/Yxs2/2018-06-05_11-22-30.png) |
09:22:40 | Yardanico | yeah, I just checked |
09:22:44 | FromGitter | <mratsim> > wait what? live longer? |
09:22:47 | Yardanico | @mratsim :D |
09:23:57 | FromGitter | <survivorm> I think they mean a lot of laugh in reading some code examples |
09:24:22 | Yardanico | currently there is only 2 mentors for Nim |
09:24:28 | FromGitter | <survivorm> Which prolongues your life :) |
09:24:37 | Yardanico | but OTOH, there's only 2 solutions in Nim every day |
09:25:01 | FromGitter | <survivorm> I might submit for that, but i'm not too skilled in nim |
09:25:01 | Yardanico | https://docs.google.com/spreadsheets/d/1M3K03UIkgfPV3-WWFprX-eBFoZ6mMdoLTtqhRNG3N3k/edit#gid=0 |
09:26:21 | Yardanico | and yeah, if you apply for mentor - they just approve you automatically and send you an invite to their slack |
09:29:52 | FromGitter | <mratsim> Not sure I want/have the time to commit to it. |
09:33:24 | Yardanico | well, I'm not forcing anyone, just in case you have like ~60mins a week and you want to spend it on helping people learn Nim :) |
09:36:07 | dom96 | Hrm, is that time commitment a requirement? |
09:36:18 | dom96 | It might be good to create a new forum thread about this ;) |
09:38:18 | PMunch | Hmm, maybe that would be fun |
09:44:20 | Yardanico | dom96 well, it's based on Nim stats |
09:44:26 | Yardanico | e.g. how many nim solutions are there per day |
09:44:44 | Yardanico | and estimated ~5 min per solution |
10:15:38 | Yardanico | it's sad that https://github.com/pragmagic/vscode-nim is not really actively developed :( |
10:16:22 | * | krux02 joined #nim |
10:19:47 | krux02 | Yardanico: well no ide for Nim is "actively" developed. |
10:20:04 | krux02 | they are all developed from time to time. |
10:20:38 | PMunch | We should start working on language-server.. |
10:21:39 | PMunch | Anyone know if @barcharcraz is still around? |
10:22:53 | * | xet7 joined #nim |
10:22:59 | * | codester joined #nim |
10:23:16 | codester | How to `-d:ssl` using .nimble file |
10:25:01 | Yardanico | codester you can add switch("define", "ssl") |
10:25:29 | Yardanico | add it somewhere in your nimble file (maybe after package name, version, etc and before nimble tasks) |
10:26:09 | PMunch | Or use a nim.cfg file |
10:26:16 | PMunch | Isn't that the "proper" way to do it? |
10:26:57 | Yardanico | modern way is to use .nims file :) |
10:27:46 | codester | Yardanico: switch(...) is not working. |
10:28:02 | Yardanico | well, create nim.cfg file then |
10:29:26 | codester | ๐ |
10:29:30 | * | codester quit (Quit: Page closed) |
10:44:09 | PMunch | From language-server-protocol specification: "The offsets are based on a UTF-16 string representation". Damn them and their silly love for UTF-16.. |
10:44:49 | Yardanico | Microsoft :D |
10:47:18 | krux02 | I already said it once, but I think it is funny how much Jonathan Blow hats lang server |
10:47:36 | Yardanico | https://github.com/Microsoft/language-server-protocol/issues/376 |
10:47:50 | krux02 | He thinks it will make programming miserable for forever. |
10:49:02 | PMunch | Why? |
10:49:09 | PMunch | I mean the idea is good enough |
10:49:47 | * | dddddd joined #nim |
10:50:05 | dom96 | I don't understand why Mr. Blow hates it so much |
10:50:22 | dom96 | IIRC I even read his tweets about it and I still didn't get it |
10:50:53 | dom96 | If somebody wants to create a lang server implementation then I'll love to help out |
10:51:10 | dom96 | I have a high-level idea of how it should work |
10:53:35 | krux02 | has something changed with "getTypeInst"? |
10:54:22 | PMunch | dom96, I'm looking into it |
10:54:41 | PMunch | Just created some issues in your 3yo jsonrpc library :P |
11:00:05 | FromGitter | <zetashift> Ditto on the langserver!! |
11:02:02 | Yardanico | well, at least nim will automatically get support in more editors with langserver |
11:04:25 | * | ftsf joined #nim |
11:13:30 | PMunch | It shouldn't be that hard to do, just a lot of work.. |
11:21:02 | * | yglukhov[i] quit (Ping timeout: 256 seconds) |
11:24:00 | * | yglukhov[i] joined #nim |
11:48:56 | * | endragor quit (Remote host closed the connection) |
11:49:22 | * | endragor joined #nim |
11:53:27 | * | endragor quit (Ping timeout: 240 seconds) |
11:57:31 | * | fvs joined #nim |
11:59:10 | * | nsf quit (Ping timeout: 264 seconds) |
12:08:39 | Yardanico | wait wtf |
12:08:43 | Yardanico | what happened with master branch? |
12:08:52 | Yardanico | https://github.com/nim-lang/Nim/issues/7958 |
12:09:21 | Yardanico | I don't see "master" branch on github either |
12:10:07 | PMunch | Oh shit.. |
12:10:13 | PMunch | That's not good |
12:12:58 | Yardanico | well, "master" still exists in my local copy |
12:13:05 | FromGitter | <mratsim> fat finger? |
12:13:09 | FromGitter | <mratsim> cat? |
12:13:58 | FromGitter | <mratsim> Microsoft conspiration? |
12:14:01 | Yardanico | Let's ping Araq |
12:14:04 | Yardanico | yeah, probably Microsoft |
12:20:50 | * | DarkArctic_ quit (Quit: Leaving) |
12:21:06 | * | DarkArctic joined #nim |
12:32:46 | dom96 | lol what |
12:34:56 | * | samhain joined #nim |
12:35:25 | Yardanico | dom96 idk, you can probably check who deleted it in https://github.com/organizations/nim-lang/settings/audit-log |
12:35:35 | Yardanico | (but I don't really show if it will show up there) |
12:35:42 | dom96 | yeah, I'm trying to find it |
12:35:49 | Yardanico | we should use this probably https://help.github.com/articles/about-protected-branches/ |
12:35:53 | Yardanico | (in the future) |
12:35:56 | dom96 | GitHub's search in this audit log is as shitty as its code search |
12:40:52 | dom96 | Should be easy to restore anyway |
12:41:07 | Yardanico | yeah, I think a lot of us have a local copy of it |
12:41:07 | dom96 | to be honest, the fact that these docs use `master` is bad |
12:41:14 | Yardanico | well, why? |
12:41:20 | Yardanico | these docs are made for stable releases |
12:41:22 | dom96 | It means all the older doc's links will be broken |
12:41:31 | dom96 | it should use the git tag |
12:41:37 | Yardanico | oh, probably yes |
12:43:22 | euantor | Regarding lang server, I was thinking of having a go at it, and just proxying back to nimsuggest since I believe it should already handle most of the hard work |
12:43:44 | Yardanico | yeah, maybe it just should be implemented as a part of nimsuggest? maybe Araq wouldn't agree |
12:44:21 | * | couven92 quit (Quit: Client disconnecting) |
12:45:10 | euantor | Well I was going to implement it separately so that it goes `editor -> proxy -> nimsuggest` |
12:45:28 | Yardanico | well, nimsuggest is not really stable sometimes :) |
12:45:50 | euantor | true, but there's a good chance that a brand new langserver wouldn't be stable at all for a while :P |
12:46:06 | Yardanico | also we should really make a new way to check for code errors in a file |
12:46:19 | Yardanico | currently I use a hack - run "nim check" on every save in vscode |
12:46:22 | Yardanico | and auto-save every 1ms |
12:46:24 | euantor | like a lint tool? |
12:46:33 | Yardanico | euantor like "nim check" but automatic checking |
12:46:54 | euantor | Ah, so it should watch files for changes? |
12:47:03 | Yardanico | yeah, maybe |
12:47:12 | Yardanico | idk if lang-server allows that |
12:47:26 | Yardanico | My point is - it should work even if file is not saved, maybe if it will be integrated into editor |
12:47:33 | euantor | No idea. Only time I've used it is with Rust |
12:47:51 | euantor | It works well enough, but the Rust one takes a couple of seconds after saving before it tells you what's wrong |
12:48:17 | Yardanico | oh, nim check does the same |
12:48:23 | Yardanico | (vscode nim plugin automatically calls nim check on every save) |
12:48:39 | dom96 | It shouldn't be part of nimsuggest |
12:48:47 | dom96 | it should manage nimsuggest |
12:49:02 | dom96 | restart it when necessary (high memory usage) |
12:49:18 | dom96 | and it should avoid nimsuggest in certain cases altogether |
12:49:20 | euantor | That's what I was suggesting by using it as a proxy @dom96 |
12:49:37 | dom96 | yep, good :) |
12:49:38 | euantor | It should have the option to either run NimSuggest as a child, or to proxy to an existing NimSuggest |
12:50:17 | PMunch | language-server gets a notification for each change |
12:50:25 | Yardanico | that's awesome |
12:50:25 | PMunch | And then it can respond with errors etc. |
12:55:51 | * | xkapastel quit (Quit: Connection closed for inactivity) |
13:03:09 | PMunch | Doesn't nimsuggest work on a file though? |
13:03:26 | PMunch | If so then we need to store a temporary file with the code |
13:03:33 | PMunch | Which might be slow... |
13:03:50 | PMunch | Not sure how often a language server will send the change command |
13:04:17 | PMunch | But rewriting a file on disk (assuming you don't have a tmpfs) for every character you write isn't optimal.. |
13:07:52 | * | nsf joined #nim |
13:20:38 | FromGitter | <mratsim> a good way to kill your SSD too |
13:29:59 | * | floppydh joined #nim |
13:36:28 | PMunch | Hmm, this language-protocol thing doesn't specify how it should communicate, only what data it will send.. |
13:36:57 | PMunch | I looked at some Python implementation and it had TCP and IO (which I assume is stdin/stdout) |
13:40:33 | PMunch | Should we spin it up in a thread and send it messages through a channel? |
13:43:25 | FromGitter | <survivorm> Did you see the panic: โ https://monitor.gitlab.net/dashboard/db/github-importer?orgId=1&from=now-90d&to=now |
13:44:01 | FromGitter | <survivorm> either someone parses github |
13:44:17 | FromGitter | <survivorm> or people begin to pack things |
13:48:27 | FromGitter | <matrixbot> `xomachine` It looks like the Nim repo mirror on gitlab has broken couple weeks ago (https://gitlab.com/nim-lang/nim) Are there plans to support it? |
13:51:42 | PMunch | survivorm, ouch that explains why GitLab was so slow yesterday :P |
13:52:28 | PMunch | xomachine, there was some talk about it yesterday. Not sure if they agreed on something but you can look it up in the logs: irclogs.nim-lang.org |
13:53:16 | Yardanico | PMunch I asked Araq about it (he's the owner of the mirrored repo) |
13:53:37 | FromGitter | <matrixbot> `xomachine` Oh, thanks |
13:56:36 | * | Vladar quit (Quit: Leaving) |
13:58:43 | PMunch | Would it be possible to shorten this? "<FromGitter> <matrixbot> `xomachine`" |
13:58:50 | PMunch | It's a bit excessive.. |
13:59:12 | PMunch | xomachine, by the way there is a matrix -> IRC direct bridge thingy |
13:59:18 | PMunch | No need to go through gitter |
14:14:28 | * | xomachine[m] joined #nim |
14:18:41 | PMunch | Nice xomachine[m] :) |
14:19:04 | xomachine[m] | Hm, the gitter room was the first thing I've found about Nim in the matrix. Now thing should be better |
14:21:18 | PMunch | Yeah that's better |
14:21:29 | PMunch | Matrix integrates really seamlessly from IRCs end |
14:22:04 | PMunch | When you connect through gitter it's the matrixbot which says all your messages, and they are then relayed to IRC through the FromGitter bot.. |
14:37:35 | * | PMunch quit (Quit: Leaving) |
14:39:44 | * | endragor joined #nim |
14:44:27 | * | endragor quit (Ping timeout: 260 seconds) |
14:46:07 | * | samhain quit (Remote host closed the connection) |
14:47:36 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
14:48:12 | * | yglukhov[i] joined #nim |
15:12:18 | * | xkapastel joined #nim |
15:13:04 | * | Trustable joined #nim |
15:25:42 | FromGitter | <Varriount> @dom96 Would it be ok for me to enable branch protection on devel? |
15:31:14 | * | DarkArctic_ joined #nim |
15:35:02 | Yardanico | @Varriount I think you should go for it |
15:35:13 | * | DarkArctic quit (Ping timeout: 256 seconds) |
15:35:33 | Yardanico | so who will restore master branch guys? |
15:41:58 | * | DarkArctic__ joined #nim |
15:42:16 | * | floppydh quit (Quit: WeeChat 2.1) |
15:44:36 | * | Guest89407 joined #nim |
15:44:39 | Guest89407 | Minere bitcoin BTC via CPU https://getcryptotab.com/718967 https://www.youtube.com/watch?v=luzqQN3kL4g&t=166s |
15:45:05 | Yardanico | dom96 again :( |
15:45:57 | * | DarkArctic_ quit (Ping timeout: 264 seconds) |
15:47:16 | FromGitter | <Varriount> Yardanico: I don't have an up-to-date version of master. |
15:51:00 | * | noonien joined #nim |
15:51:42 | * | NimBot joined #nim |
15:55:42 | * | DarkArctic__ quit (Quit: Leaving) |
15:55:58 | * | DarkArctic joined #nim |
16:11:27 | * | nsf quit (Quit: WeeChat 2.1) |
16:12:53 | dom96 | `master` == v0.18.0 |
16:13:59 | FromGitter | <kayabaNerve> You guys now Elixir? If we murder their devs, they'll become a dead language. More room for Nim :thinking: |
16:14:25 | FromGitter | <kayabaNerve> Damn lack of emojis. I don't blame IRC but I do blame Gitter. Also, this should've been in offtopic. Sorry |
16:14:41 | dom96 | Yeah... maybe let's not make plans to murder people |
16:15:04 | FromGitter | <kayabaNerve> dom96: What if they're an alien imposter of you threatening to push bad code to the master branch? |
16:15:31 | FromGitter | <kayabaNerve> I'd watch a movie of that |
16:17:04 | FromGitter | <kayabaNerve> Actual statement, How does a set of just a bool only have 1 byte? |
16:17:18 | FromGitter | <kayabaNerve> Aren't C bools 1 byte meaning both values = 2 bytes? |
16:17:44 | FromGitter | <kayabaNerve> Not that it can't be compressed to 1 bit |
16:17:49 | FromGitter | <kayabaNerve> But then it's 0.25 bytes |
16:22:46 | FromGitter | <zetashift> b-b-but I like elixir |
16:23:55 | FromGitter | <alehander42> I have contributed to elixir :D |
16:24:05 | FromGitter | <alehander42> dont kill me :D |
16:24:14 | FromGitter | <alehander42> otherwise are you talking about bitsets? |
16:24:24 | dom96 | alehander42: blasphemy |
16:25:17 | * | nc-x[m] joined #nim |
16:25:26 | FromGitter | <alehander42> it was four years ago, but I'll never forget that they left 5 hearts in different colors on my PR |
16:25:35 | FromGitter | <alehander42> later I found out they do this for most PR-s |
16:25:39 | FromGitter | <alehander42> :( |
16:26:00 | dom96 | I fixed master |
16:26:06 | Yardanico | @kayabaNerve just use plain emojis |
16:26:13 | Yardanico | without using gitter-specific ones |
16:26:21 | FromGitter | <Varriount> dom96: What happened? |
16:26:28 | Yardanico | like ๐ |
16:26:30 | dom96 | I have no idea |
16:26:48 | dom96 | Guessing someone with write access removed it by accident |
16:27:08 | Yardanico | dom96 can you protect master and devel branches? |
16:27:18 | Yardanico | so no one will be able to remove them or force-push to them |
16:27:25 | FromGitter | <Varriount> I protected development |
16:27:30 | Yardanico | ah ,ok |
16:27:33 | dom96 | Yeah, I protected master |
16:27:47 | nc-x[m] | @dom96 `master` = 0.18.0 + (1-2) PR's which as far as I remember were merged into master but not into devel |
16:28:13 | dom96 | master is supposed to be 0.18.0 |
16:28:20 | * | dddddd quit (Ping timeout: 276 seconds) |
16:28:23 | dom96 | if PRs were merged there then that was wrong |
16:28:29 | FromGitter | <alehander42> btw something like elixir's binary matching would be cool as a lib here |
16:28:52 | FromGitter | <alehander42> maybe @PMunch 's binary parse lib is actually a good equvalent |
16:29:42 | FromGitter | <zetashift> So the `<>` operator ? |
16:30:16 | * | Snircle joined #nim |
16:30:22 | FromGitter | <alehander42> do we have a good way to parse nim.cfg files btw ? |
16:30:28 | FromGitter | <alehander42> something in stdlib? |
16:30:34 | FromGitter | <alehander42> yeah `<.` |
16:30:36 | FromGitter | <alehander42> `<>` |
16:32:08 | nc-x[m] | @dom96 https://github.com/nim-lang/Nim/pulls?utf8=โ&q=is%3Apr+is%3Aclosed+base%3Amaster+ |
16:33:22 | dom96 | cool, we might have to ask people to redo them |
16:36:44 | Yardanico | nc-x[m] they're invalid anyway |
16:36:53 | Yardanico | all PRs should be created against devel branch |
16:37:01 | dom96 | True, but some look important |
16:37:04 | dom96 | and have been merged |
16:37:29 | dom96 | We need a bot that checks the base branch and rejects PRs on master |
16:37:31 | Yardanico | yeah |
16:37:38 | Yardanico | this is not in devel it seems? https://github.com/nim-lang/Nim/pull/7793/files |
16:38:15 | dom96 | Thoughts about this? https://github.com/nim-lang/website/pull/86 |
16:39:04 | Yardanico | dom96, well, I think there should be a button to go on github, but I'm fine with both choices (a ribbon or a counter) |
16:39:41 | Yardanico | dom96 so we should re-do all PRs made against master to devel? |
16:39:49 | Yardanico | PCRE is still PRCE in devel :D |
16:39:50 | nc-x[m] | Yeah. If they were merged to master maybe then master could have been merged to devel.. |
16:39:51 | nc-x[m] | But anyways, now the option is to redo the pr to devel or if git allows to pick commits manually and merge them, then that is also good. |
16:39:53 | FromGitter | <alehander42> I think the fork thing usually means exactly "this is my github repo, go there", people dont care it says "fork me" |
16:39:57 | dom96 | Yardanico: Not all, only the ones that have been merged |
16:40:10 | dom96 | and only if before v0.18.0 release date I guess |
16:40:41 | FromGitter | <alehander42> but I admit i've seen beginner people fork by mistake thinking it's starring |
16:40:55 | * | dddddd joined #nim |
16:41:42 | Yardanico | dom96 here you go: https://github.com/nim-lang/Nim/pulls?utf8=%E2%9C%93&q=base%3Amaster+merged%3A%3C2018-03-01+ |
16:41:57 | * | jjido joined #nim |
16:42:03 | Yardanico | (all PRs made before 0.18 to master) |
16:42:09 | nc-x[m] | Most people I have seen fork a repo as a bookmark, that I want to take a look at it later but don't have time right now |
16:42:11 | Yardanico | but there are some PRs made to master after 0.18.0 release |
16:44:46 | Yardanico | dom96 I've left comments on 4 most recent PRs which were merged to master |
16:44:57 | Yardanico | (because 5th is mine :D ) |
16:45:11 | dom96 | cool thanks |
16:46:55 | Yardanico | dom96 and yeah, as you said - why do we really need master? Is it required if we have release tags? |
16:47:35 | Yardanico | and yeah, people create PRs against master because links from docs go to master branch |
16:48:03 | dom96 | yeah, I don't think we need it |
16:48:12 | dom96 | for next release we should use the tag |
16:48:38 | dom96 | For the older docs I suppose I can quickly grep replace the 'master' URLs |
16:48:43 | * | gh0st[m] joined #nim |
16:50:19 | Yardanico | the only downside - if there's a link in stable docs to view source code of a specific proc, it can lead to some another proc (for example when this proc was moved/replaced) |
16:50:42 | Yardanico | tldr - line number can change |
16:51:00 | * | Guest89407 quit (Ping timeout: 260 seconds) |
16:52:10 | dom96 | it can't change |
16:52:21 | dom96 | Because the tag always stays put |
16:52:31 | Yardanico | oh, right |
17:33:31 | * | Trustable quit (Remote host closed the connection) |
17:38:55 | * | couven92 joined #nim |
17:40:15 | * | SenasOzys quit (Ping timeout: 256 seconds) |
17:41:49 | * | SenasOzys joined #nim |
17:43:00 | * | PMunch joined #nim |
17:50:46 | FromGitter | <zetashift> @survivorm you there by any chance? |
17:51:22 | * | arecaceae quit (Remote host closed the connection) |
17:51:48 | * | arecaceae joined #nim |
17:56:49 | * | couven92 quit (Quit: Client Disconnecting) |
17:59:12 | Yardanico | yahooo, https://github.com/nim-lang/Nim/pull/7770#event-1664356105 merged!!!!11 |
18:00:23 | PMunch | Nice |
18:00:37 | PMunch | Ey, the master branch is back as well :P |
18:00:48 | Yardanico | PMunch yeah, dom96 restored it :) |
18:00:57 | Yardanico | and both devel and master are now protected |
18:01:14 | PMunch | What happened to it? |
18:01:19 | PMunch | And what does protected mean? |
18:03:16 | shashlick | varriount: i've added the ability to rename files in nimgen, it's working for my 7z wrapper |
18:03:16 | Yardanico | PMunch protected branches (github feature) can't be deleted, or force-push can't be used to them |
18:04:09 | PMunch | Ah, makes sense I guess |
18:04:15 | Yardanico | PMunch and what happened to it - well, someone deleted it (probably by accident) |
18:04:58 | PMunch | Someone? How many people have write access to the repo? :P |
18:06:29 | Yardanico | PMunch more than 10 for sure |
18:06:58 | PMunch | Oh really? More than I would imagine |
18:11:23 | FromGitter | <kayabaNerve> I have pitchforks if we decide to go that route |
18:13:24 | PMunch | Huh, who are we pitchforking? |
18:16:24 | Yardanico | We should probably try to fix macOS builds on travis |
18:16:24 | Yardanico | https://travis-ci.org/nim-lang/Nim/jobs/388407266 |
18:17:24 | Yardanico | oh https://github.com/travis-ci/travis-ci/issues/9511 |
18:19:43 | * | Vladar joined #nim |
18:20:58 | PMunch | Hmm, do we have any JSON validation libraries? |
18:21:22 | PMunch | As in taking some JSON and a "schema" of sorts and checking if it matches |
18:21:29 | PMunch | Looking at https://microsoft.github.io/language-server-protocol/specification |
18:22:00 | PMunch | Would be nice to have a way to define the interfaces in a way that could give us some automatic checking |
18:24:38 | Araq | what is a pitchfork? |
18:24:50 | ldlework | an ok music festival |
18:26:17 | PMunch | It's the traditional disgruntled peasant tool used for moving hay and protesting |
18:26:45 | ldlework | back in the day, only disgruntled peasants moved hay |
18:27:16 | PMunch | Something like this: http://twoicefloes.com/wp-content/uploads/2016/11/the-mob-672x372.jpg |
18:27:31 | PMunch | ldlework, -_- |
18:29:16 | Araq | oh I see. |
18:29:24 | Araq | I thought it was some IT term. |
18:29:42 | PMunch | Oh haha, that makes sense |
18:29:53 | PMunch | Probably is tbh |
18:35:20 | Yardanico | yay, it seems to work (yes, a dirty unix hack found on github in travis issue tracker ) https://github.com/nim-lang/Nim/pull/7962 |
18:35:38 | Yardanico | but I'll wait until it will actually start running the test suite |
18:35:58 | * | natrys joined #nim |
18:36:50 | FromDiscord | <jos> hey |
18:36:53 | Yardanico | hello |
18:36:55 | FromDiscord | <jos> i think i asked this a while ago |
18:37:01 | FromDiscord | <jos> i finally ported over my |
18:37:04 | Yardanico | please don't paste your code in discord, use gist :) (just a precaution) |
18:37:12 | FromDiscord | <jos> uhh okay |
18:37:16 | FromDiscord | <jos> anyway |
18:37:41 | FromDiscord | <jos> does anybody know a semantic way to abstract a library from macos and linux |
18:38:02 | Yardanico | you mean separate implementations? |
18:38:05 | Yardanico | for macos and linux? |
18:38:15 | FromDiscord | <jos> i wrote two separate implementations, one for linux, and one for macos |
18:38:18 | FromDiscord | <jos> in c |
18:38:21 | FromDiscord | <jos> and i want to abstract the c implementation away |
18:38:48 | * | nsf joined #nim |
18:39:07 | Yardanico | Araq I fixed osx builds on travis ( https://travis-ci.org/nim-lang/Nim/jobs/388419737#L3411 ) with PR https://github.com/nim-lang/Nim/pull/7962 |
18:40:00 | Yardanico | basically this "rvm" overwrites system "cd" command |
18:40:37 | PMunch | jos, dynamic or static library? |
18:40:41 | Yardanico | I'll link a issue where I found this solutioin |
18:40:46 | FromDiscord | <jos> statically linked |
18:40:49 | FromDiscord | <jos> compiled together AOT |
18:41:07 | PMunch | Either way you can use a when statement to pick which one to load |
18:41:44 | PMunch | Assuming they have fairly similar interfaces it should be a pretty easy job |
18:42:12 | FromDiscord | <jos> i was curious if there was a semantic way |
18:44:00 | PMunch | What do you mean? |
18:45:12 | PMunch | Lot's of wrapped C libraries do this, declare all your procedures with the correct cdecl statements and then use a single when statement on the top to select which library to load |
18:46:14 | FromDiscord | <jos> right, but that's really lame |
18:46:24 | FromDiscord | <jos> i don't want to compile both files, or include two headers |
18:46:38 | PMunch | That's what the when statement is for.. |
18:46:51 | PMunch | It will select, on compile time, which header to use |
18:46:54 | FromDiscord | <jos> oh ok |
18:46:58 | FromDiscord | <jos> i assumed you were talking about the c files |
18:47:03 | FromDiscord | <jos> i guess nim has a preprocessor statement |
18:47:16 | PMunch | Not really pre-processor |
18:47:52 | PMunch | You can do lot's of crazy stuff on compile-time in Nim |
18:52:01 | FromDiscord | <jos> oh nice |
18:52:04 | FromDiscord | <jos> okay, i'll look at that |
18:52:10 | Yardanico | @jos a large subset of Nim can be used at compile-time |
18:52:14 | FromDiscord | <jos> perfect |
18:52:19 | FromDiscord | <jos> is there an example somewhere in a good library |
18:52:27 | Yardanico | for "when"? |
18:53:09 | Yardanico | @jos https://github.com/stefanos1316/Rosetta-Code-Research/blob/6f6f59f3118db5a692b9f46c04db77cbb273f0bd/Scripts/Task/metaprogramming/nim/metaprogramming-2.nim |
18:53:23 | PMunch | My protobuf library parses a file and creates code based on it, all on compile-time. If you are looking for a large example :P |
19:13:04 | FromDiscord | <jos> nice, awesome |
19:13:08 | FromDiscord | <jos> i just want an example that isn't whacky |
19:15:30 | FromGitter | <Varriount> jos: The question is, how deep do you want to go? Macros are essentially procedures that run at compile-time, but they aren't created too often. |
19:16:00 | FromGitter | <Varriount> Templates on the other hand, are *evaluated* at compile time, and used much more often. |
19:36:59 | * | Vladar quit (Quit: Leaving) |
19:47:30 | * | fvs left #nim ("ERC (IRC client for Emacs 25.3.1)") |
19:49:47 | FromGitter | <kayabaNerve> PMunch Do we want to pitchfork? If so, yes |
19:50:19 | PMunch | Pitchfork who? |
19:50:30 | Yardanico | elixir devs afaik |
19:50:42 | PMunch | Why? |
19:50:45 | FromGitter | <kayabaNerve> I was talking about whoever messed up the Git repo or whatever |
19:50:46 | Yardanico | maybe :) |
19:50:51 | Yardanico | oh |
19:50:56 | PMunch | Oh, haha :P |
19:51:00 | FromGitter | <kayabaNerve> PMunch: They're taking up room that belongs to Nim |
19:51:07 | Yardanico | I think crystal does |
19:51:10 | FromGitter | <kayabaNerve> No other languages means Nim can rise |
19:51:16 | PMunch | We still don't know who it was.. |
19:51:18 | Yardanico | well, that's a solid point |
19:51:19 | FromGitter | <kayabaNerve> We shall bring an era of language peave |
19:51:24 | FromGitter | <kayabaNerve> Never seen before |
19:51:26 | Yardanico | PMunch and we probably wouldn't |
19:51:28 | FromGitter | <kayabaNerve> It shall be imperial |
19:51:30 | FromGitter | <kayabaNerve> And we will prosper |
19:51:32 | Yardanico | because it seems that GitHub doesn't log that |
19:51:33 | FromGitter | <kayabaNerve> Nim or die |
19:51:39 | Yardanico | some communist ideas I see :) |
19:52:18 | FromGitter | <kayabaNerve> Yardanico Seize the means of coding! |
19:52:27 | FromGitter | <kayabaNerve> Comrade |
19:53:02 | Yardanico | yes, I'm actually from Russia, comrade |
19:53:25 | FromGitter | <kayabaNerve> Cyka blyat I'm busted. They know I'm a fraud |
19:53:40 | FromGitter | <kayabaNerve> *sorry for offending the Russians, it's a joke from the internet, please don't beat me up* |
19:53:54 | FromGitter | <kayabaNerve> Really from CS: GO... |
19:53:55 | * | Sembei joined #nim |
19:54:14 | Yardanico | @kayabaNerve yes, I know about it :) |
19:58:00 | * | thomasross joined #nim |
20:03:31 | FromGitter | <zetashift> As a dota2 player I also am well versed in the cyka and blyat |
20:03:59 | * | krux02 quit (Remote host closed the connection) |
20:05:49 | * | endragor joined #nim |
20:09:09 | * | leorize joined #nim |
20:10:20 | * | endragor quit (Ping timeout: 265 seconds) |
20:10:49 | FromGitter | <kayabaNerve> Oh really? |
20:11:22 | FromGitter | <kayabaNerve> @zetashift Please write a paper describing their linguistic origin and cultural effects on South Americans who have been exposed to these words via online gaming. |
20:11:34 | FromGitter | <kayabaNerve> You're not a true fan if you can't. |
20:12:03 | FromGitter | <kayabaNerve> You're only a true fan if: You have blades. You spin really fast. You cool people off. You aren't alive. |
20:13:32 | Yardanico | btw, we have #nim-offtopic |
20:13:39 | Yardanico | (it's nim-lang/twitch on Gitter AFAIK) |
20:13:56 | FromGitter | <zetashift> I'm not a true fan, I'm simply well versed hehe, putting this on topic by adding I'm a true fan of nim |
20:14:02 | Yardanico | :D |
20:14:17 | Yardanico | you can ask me if you need a native speaker |
20:16:17 | * | Sentreen quit (Remote host closed the connection) |
20:18:21 | * | jjido quit (Ping timeout: 240 seconds) |
20:20:15 | * | krux02 joined #nim |
20:36:52 | * | endragor joined #nim |
20:41:45 | * | endragor quit (Ping timeout: 265 seconds) |
20:43:41 | * | leorize quit (Quit: WeeChat 2.1) |
20:43:54 | * | Sentreen joined #nim |
20:52:56 | * | Vladar joined #nim |
20:54:05 | * | natrys quit (Ping timeout: 276 seconds) |
20:54:12 | * | jaco60 joined #nim |
20:54:22 | * | endragor joined #nim |
20:56:21 | FromGitter | <alehander42> is cyka blyat a popular meme in russia |
20:56:32 | FromGitter | <alehander42> oh i missed this convo |
20:56:34 | FromGitter | <alehander42> :D |
20:57:57 | FromGitter | <zetashift> it might continue one day in nim-offtopic who knows! |
20:58:35 | * | endragor quit (Ping timeout: 240 seconds) |
21:10:21 | * | noonien quit (Quit: Connection closed for inactivity) |
21:11:10 | * | xet7 quit (Remote host closed the connection) |
21:15:23 | * | endragor joined #nim |
21:20:03 | * | FromGitter quit (Remote host closed the connection) |
21:20:03 | * | oprypin quit (Quit: Bye) |
21:20:07 | * | endragor quit (Ping timeout: 256 seconds) |
21:20:20 | * | FromGitter joined #nim |
21:20:27 | * | oprypin joined #nim |
21:34:08 | * | Vladar quit (Quit: Leaving) |
21:37:01 | * | natrys joined #nim |
21:39:17 | FromGitter | <zetashift> Does rand(max: int) in the random module include the max number? |
21:39:47 | * | jaco60 quit (Quit: Textual IRC Client: www.textualapp.com) |
21:43:54 | FromGitter | <Vindaar> @zetashift as far as I can tell from the code https://github.com/nim-lang/Nim/blob/master/lib/pure/random.nim#L113 I'd say it does include the max value |
21:44:26 | FromGitter | <Vindaar> which fits to the documentation claiming it covers the range 0..max |
21:45:47 | * | nsf quit (Quit: WeeChat 2.1) |
21:49:08 | FromGitter | <zetashift> ah alright I wasn't sure when reading it and testing it on the nim playground wasn't effective.. |
21:50:21 | PMunch | Let's get this party going: https://github.com/PMunch/nimlsp.git |
21:51:32 | FromGitter | <alehander42> @PMunch oh lsp awesome |
21:51:56 | FromGitter | <alehander42> ping @zah about it too, I think he had some ideas about compiler support for it |
21:52:17 | PMunch | Compiler support? |
21:52:36 | FromGitter | <alehander42> I don't remember exactly, but it was about LSP too |
21:54:02 | FromGitter | <alehander42> I have to read a bit more, but iirc it wouldn't be easy to have a quallity lsp without a bit more support |
21:54:53 | PMunch | It's really just the humble beginnings though, all PRs and issues greatly appreciated. If I have to pull this load on my own it will probably take ages and/or not get done. But I was tired about everyone nodding their heads and saying "yes LSP would be great" but no-one doing anything about it :P |
21:55:09 | PMunch | s/about/of |
21:55:54 | PMunch | But now it's time for bed. One of your better contribute something while I'm asleep! jk (but not really) |
21:55:55 | * | PMunch quit (Quit: leaving) |
21:56:39 | FromGitter | <alehander42> :D absolutely, I guess you can get fat anyway! |
21:56:43 | FromGitter | <alehander42> far *** |
21:56:44 | FromGitter | <alehander42> oh man |
21:57:57 | FromGitter | <alehander42> which other lsp implementations do you use as inspiration? |
22:12:10 | * | natrys quit (Quit: natrys) |
22:15:02 | * | byte512 quit (Ping timeout: 265 seconds) |
22:16:05 | * | byte512 joined #nim |
22:30:44 | * | leorize joined #nim |
22:55:06 | * | arecaceae quit (Remote host closed the connection) |
22:55:32 | * | arecaceae joined #nim |
23:08:38 | * | leorize quit (Ping timeout: 260 seconds) |
23:09:42 | * | endragor joined #nim |
23:14:09 | * | endragor quit (Ping timeout: 264 seconds) |
23:59:02 | * | DarkArctic quit (Read error: Connection reset by peer) |
23:59:04 | * | DarkArctic_ joined #nim |