00:12:42 | FromGitter | <gogolxdong> copy. There is still a lot to learn , Nim is profound. |
00:15:45 | * | arecacea1 quit (Remote host closed the connection) |
00:16:04 | * | arecacea1 joined #nim |
00:16:30 | * | Jesin quit (Quit: Leaving) |
00:18:58 | shashlick | Araq: Google also uses trunk based development |
00:18:59 | shashlick | https://m-cacm.acm.org/magazines/2016/7/204032-why-google-stores-billions-of-lines-of-code-in-a-single-repository/fulltext |
00:26:43 | * | dddddd quit (Remote host closed the connection) |
00:37:03 | * | stefanos82 quit (Quit: Quitting for now...) |
00:39:55 | * | craigger quit (Quit: bye) |
00:42:33 | * | craigger joined #nim |
01:02:54 | * | leorize quit (Ping timeout: 256 seconds) |
01:10:34 | * | mwbrown quit (Ping timeout: 264 seconds) |
01:11:35 | * | mwbrown joined #nim |
01:26:19 | FromGitter | <gogolxdong> @Varriount thanks for your snippet to demonstrate peg usage , will learn more about how to use peg, currently use `let reg = re"(CreateEnumType\(|CreateDataType\(|CreateManagedType\()+.*"` works well. |
01:29:43 | * | leorize joined #nim |
01:40:52 | * | Shivelight joined #nim |
01:50:39 | * | yglukhov[i] joined #nim |
01:51:08 | * | endragor joined #nim |
01:54:35 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
01:55:36 | * | endragor quit (Ping timeout: 256 seconds) |
02:05:30 | * | NimBot joined #nim |
02:18:32 | * | ieatnerds joined #nim |
02:38:32 | * | TheKing[m] quit (Ping timeout: 256 seconds) |
02:41:22 | * | Shivelight quit (Ping timeout: 256 seconds) |
02:41:22 | * | hitchhooker[m] quit (Ping timeout: 256 seconds) |
02:41:40 | * | Shivelight joined #nim |
02:41:42 | * | hitchhooker[m] joined #nim |
02:42:25 | * | TheKing[m] joined #nim |
02:52:23 | FromGitter | <Quelklef> ... Does a `try ... finally ...` catch all errors?? |
02:52:45 | FromGitter | <Quelklef> It seems to be catching or suppressing an IndexError for me |
02:53:11 | FromGitter | <Quelklef> Nope, wth |
02:55:00 | FromGitter | <Quelklef> oh it's because `-d:release` duh |
03:00:43 | * | ieatnerds quit (Ping timeout: 268 seconds) |
03:16:55 | * | Jesin joined #nim |
03:35:25 | shashlick | anyone gotten spacemacs to work with nim-mode? |
03:37:10 | FromGitter | <kaushalmodi> shashlick: I don't use spacemacs, but there shouldn't be much involved to get nim-mode to work. |
03:37:19 | FromGitter | <kaushalmodi> You just install and require it |
03:38:12 | FromGitter | <kaushalmodi> Here's all nim setup that I do: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-nim.el |
03:38:29 | shashlick | once I install it and open a nim file, it loads fine but it hangs |
03:39:15 | FromGitter | <kaushalmodi> nimsuggest is probably the culprit |
03:39:23 | FromGitter | <kaushalmodi> what happens if you don't enable nimsuggest-mode? |
03:40:05 | shashlick | will have to figure out how to disable it |
03:41:10 | FromGitter | <kaushalmodi> Don't add `nimsuggest-mode` to `nim-mode-hook` and also set `nim-nimsuggest-path` to nil or "" (haven't tried that) |
03:41:31 | shashlick | well, nimsuggest does load up in processes so its able to find it |
03:43:55 | FromGitter | <kaushalmodi> You can set nimsuggest-path to nil: https://github.com/nim-lang/nim-mode/blob/35f4b2cb2d4c142f6f7f0e3ffb06c87b81bb8c26/nim-vars.el#L137 |
03:45:11 | FromGitter | <kaushalmodi> ```(use-package nim-mode ⏎ :preface ⏎ (setq nimsuggest-path nil) ⏎ :defer t))``` ⏎ ⏎ Writing out of memory, but something like this should work [https://gitter.im/nim-lang/Nim?at=5b57f247db4bcb16e875e767] |
03:45:35 | shashlick | well, so this is spacemacs with a different way of doing everything |
03:45:50 | shashlick | thought I'd try it out again but there has to be some issue or the other |
03:45:58 | FromGitter | <kaushalmodi> I've heard you can dump in use-package forms or any regular elisp in private layers |
03:47:21 | FromGitter | <kaushalmodi> I did a light research on config in spacemacs to support one of the users of my ox-hugo package. This is what worked: https://ox-hugo.scripter.co/doc/usage/ |
03:50:00 | * | endragor joined #nim |
03:50:32 | * | Shivelight quit (Quit: Connection closed for inactivity) |
04:03:20 | * | NamPNQ joined #nim |
04:18:54 | shashlick | @kaushalmodi: so I've restarted from scratch, no spacemacs, pure emacs, installed evil, nim-mode and company |
04:18:59 | shashlick | how do I get completion to work? |
04:22:39 | FromGitter | <kaushalmodi> Look at company-mode |
04:23:05 | FromGitter | <kaushalmodi> Well, just read that you mentioned that already |
04:23:50 | FromGitter | <kaushalmodi> I don't use fancy completion, just `hippie-expand` (inbuilt) |
04:25:45 | FromGitter | <kaushalmodi> company-mode when enabled in any prog-mode should do the right thing (but I haven't used it) |
04:26:43 | shashlick | okay, I guess i'm feeling too lazy to bumble through Emacs setup for nim right now |
04:27:13 | * | nsf joined #nim |
04:31:26 | FromGitter | <kaushalmodi> Yeah, Emacs is not one of those editors that you configure for good in a day. It'll stick only if you realize its true power and use it. |
04:34:04 | shashlick | i'm that way with vim, but would be nice to have suggestions |
04:34:19 | shashlick | really liked vscode but don't want to use up all my RAM |
04:44:03 | ftsf | @dom96, trying to give Jester a try via nimble, requires nim>=0.18.1 which doesn't appear to have been released yet, should I be using an older version of jester instead? |
04:44:41 | FromGitter | <rayman22201> use Nim devel. It's stable |
04:45:59 | FromGitter | <rayman22201> devel is 0.18.1 btw |
04:47:04 | ftsf | ok |
04:47:42 | FromGitter | <Quelklef> "stable" |
04:47:47 | FromGitter | <Quelklef> depends on what features you're using |
04:47:53 | FromGitter | <Quelklef> stay away from Static[T] ;-) |
04:47:59 | FromGitter | <Quelklef> otherwise you'll be ok |
04:48:54 | ftsf | i'm deving on windows unfortunately so getting a devel build might be a challenge, but i'll give it a try |
04:48:57 | FromGitter | <rayman22201> lol, sorry @Quelklef I know you are having bad troubles with generics right now :-0 |
04:49:04 | ftsf | i miss linux =( |
04:49:14 | FromGitter | <Quelklef> haha |
04:49:30 | FromGitter | <Quelklef> to be fair, the thing I was trying to do with it was an optimization that'd remove, like, 0.0001% of runtime |
04:49:43 | FromGitter | <Quelklef> but *also* it'd make the code feel cleaner (to me) which I wanted |
04:49:57 | FromGitter | <Quelklef> I submitted a bug report, so hopefully it'll be fixed ;) |
04:50:00 | FromGitter | <Quelklef> :)* |
04:50:16 | FromGitter | <rayman22201> also, it's just a good idea to test the type system in weird ways. That's how we get a better compiler :-) |
04:50:36 | FromGitter | <Quelklef> true that |
04:50:46 | FromGitter | <Quelklef> Whenever I'm submitting a lot of bugs I feel like I'm being bad |
04:50:52 | FromGitter | <Quelklef> But then I'm like, wait, no, that's dumb |
04:53:47 | FromGitter | <rayman22201> Definitely not bad! creativity is never bad! |
04:54:14 | FromGitter | <Quelklef> How about abuse? |
04:54:27 | FromGitter | <Quelklef> I'm talkin' term-rewriting macros that change semantics, baby (not actually) |
04:55:12 | FromGitter | <rayman22201> it's called "Creative Quality Assurance" :-P |
04:55:22 | FromGitter | <rayman22201> @ftsf I think choosenim works on windows? |
04:55:32 | FromGitter | <rayman22201> though I haven't tried it recently |
04:55:39 | ftsf | @rayman22201 i tried that, but it's detected as a virus >_< |
04:56:25 | FromGitter | <rayman22201> get a better virus software :-P |
04:57:00 | ftsf | it's the inbuilt windows one |
04:57:45 | ftsf | maybe I can override it somehow |
04:57:48 | FromGitter | <rayman22201> I am trying it now, and I am not having any issues with virus detection |
04:58:12 | FromGitter | <rayman22201> I downloaded the zip release, and used `runme.bat` with powershell |
04:58:43 | FromGitter | <rayman22201> It's doing the fresh install of 0.18.0. I will try develop when it finishes |
04:58:47 | * | Shivelight joined #nim |
04:58:52 | ftsf | mmm i found a way to override it |
04:58:54 | ftsf | yay |
04:59:02 | FromGitter | <rayman22201> cool beans! |
04:59:14 | ftsf | except it's using mingw32, hopefully that won't be an issue |
04:59:27 | ftsf | (instead of 64) |
05:04:48 | ftsf | hmm "choosenim.exe devel" fails on trying to show a progress bar =( |
05:07:44 | FromGitter | <rayman22201> that is less helpful than what I get... which is a failure because I need to upgrade OpenSSL |
05:08:04 | FromGitter | <rayman22201> try this: ` .\.nimble\bin\choosenim.exe "#head"` |
05:08:19 | FromGitter | <rayman22201> the # needs to be quotes |
05:09:08 | FromGitter | <rayman22201> good news is, ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5b5805f432d98c2ed2b264f1] |
05:09:19 | FromGitter | <rayman22201> it is the 64-bit version of mingw |
05:10:03 | ftsf | yeah, same fails on progress bar |
05:14:35 | FromGitter | <rayman22201> hrmmm. what version of windows are you using, and are you use cmd or powershell? |
05:18:47 | ftsf | windows 10, git bash |
05:19:02 | ftsf | maybe that's why |
05:19:41 | * | xylef joined #nim |
05:19:52 | FromGitter | <rayman22201> yeah, git bash is based on cygwin isn't it? that could cause issues |
05:20:11 | FromGitter | <rayman22201> Nim works really well in WSL, if you want to go that route |
05:21:06 | ftsf | mmm it's all very confusing =) |
05:21:26 | ftsf | maybe I should just give up on windows |
05:21:47 | ftsf | that said, i just managed to manually build nim \o/ |
05:23:04 | * | leorize quit (Ping timeout: 260 seconds) |
05:24:56 | FromGitter | <rayman22201> lol. I just did the same |
05:25:04 | FromGitter | <rayman22201> the manual build process on windows seems to work fine |
05:26:08 | ftsf | yay now i can get back to trying jester |
05:26:21 | ftsf | thanks! |
05:26:49 | FromGitter | <rayman22201> 👍 |
05:28:05 | * | floppydh quit (Remote host closed the connection) |
05:28:06 | FromGitter | <rayman22201> *thinks to myself* not sure if I should report this as a bug on choosenim |
05:29:13 | * | floppydh joined #nim |
05:31:10 | FromGitter | <rayman22201> actually! @ftsf, something to note, I just remembered. The newest version of Jester is built on httpbeast, which is linux only. If you use it on windows it falls back to a slower http server. (I don't remember all the details.) |
05:32:46 | ftsf | cheers, i'm devving on windows, but gonna deploy to linux |
05:33:03 | ftsf | (why aren't I building on linux, derp) |
05:33:19 | ftsf | yay cross compiling fun |
05:37:53 | FromGitter | <rayman22201> cool. You are probably making life harder on yourself lol, but it's good to test the cross-compiling workflow :-) |
06:00:05 | * | Vladar joined #nim |
06:02:49 | * | leorize joined #nim |
06:05:01 | ftsf | definitely, i should just switch back to linux =) |
06:05:12 | * | yglukhov[i] joined #nim |
06:05:20 | ftsf | unfortunately I'm using Unity for some work stuff and the linux version is pretty unreliable |
06:06:04 | * | NamPNQ quit (Remote host closed the connection) |
06:09:47 | FromGitter | <Quelklef> Is there any shorthand for `nim c -r X; rm X`? |
06:09:49 | FromGitter | <Quelklef> built-in? |
06:10:00 | FromGitter | <Quelklef> I hate having my workspace cluttered with binary files |
06:15:35 | Araq | shashlick: I know |
06:15:46 | * | yglukhov[i] quit (Remote host closed the connection) |
06:23:43 | * | Sembei joined #nim |
06:26:04 | * | Pisuke quit (Ping timeout: 268 seconds) |
06:34:57 | FromGitter | <gogolxdong> How to assign in tuple or something like this ⏎ ⏎ ```(vmodlName,wsdlName,version,value) = (n[1].strVal, n[2].strVal,n[3].strVal, n[4])``` [https://gitter.im/nim-lang/Nim?at=5b581a11db4bcb16e8763f7e] |
06:56:07 | * | jjido joined #nim |
06:57:13 | * | ieatnerds joined #nim |
07:02:02 | * | ieatnerds quit (Ping timeout: 256 seconds) |
07:07:31 | * | yglukhov[i] joined #nim |
07:24:20 | ftsf | hmm nimPNG broken in devel =( |
07:26:11 | ftsf | seems to be caused by using ' in {foo, bar}' instead of ' in [foo, bar]' |
07:29:12 | Araq | ftsf: it's a regression, I will fix it tonight |
07:29:18 | ftsf | hurrah! |
07:30:31 | * | Shivelight quit (Quit: Connection closed for inactivity) |
07:31:09 | ftsf | also noticed filestream.write(foo.uint8) is trying to coerce it to a string rather than write the data now |
07:40:05 | * | NimBot joined #nim |
08:15:11 | * | amosbird quit (Quit: ZNC 1.7.0 - https://znc.in) |
08:15:27 | * | amosbird joined #nim |
08:16:17 | * | dddddd joined #nim |
08:23:57 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
08:26:56 | * | jjido quit (Ping timeout: 268 seconds) |
08:44:38 | * | ng0 joined #nim |
08:52:28 | FromGitter | <dom96> Ftsf: you can use jester 0.2.1 if you don't want to upgrade your Nim |
08:53:27 | * | yglukhov[i] joined #nim |
08:59:04 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
08:59:29 | * | ng0 joined #nim |
09:10:14 | * | dddddd quit (Ping timeout: 256 seconds) |
09:45:43 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
09:46:17 | * | yglukhov[i] joined #nim |
10:27:19 | * | abm joined #nim |
10:34:36 | FromGitter | <Yardanico> (https://files.gitter.im/nim-lang/Nim/TNx8/Screenshot_2.png) |
10:34:38 | FromGitter | <Yardanico> @dom96 new github dashboard (in beta, you can opt in) |
10:35:03 | FromGitter | <Yardanico> they finally changed it so it takes all space |
10:39:11 | * | dddddd joined #nim |
10:40:54 | dom96 | Looks nice |
10:48:34 | * | leorize quit (Ping timeout: 260 seconds) |
11:20:20 | FromGitter | <kaushalmodi> @Quelklef You can use the `--out` option to specify the output directory. |
11:22:42 | FromGitter | <Quelklef> `nim c --out /dev/nill -r X`? |
11:22:48 | FromGitter | <Quelklef> :thinking: |
11:22:58 | FromGitter | <Quelklef> but thank you! |
11:23:12 | FromGitter | <Quelklef> `/dev/null`* |
11:24:28 | * | ieatnerds joined #nim |
11:24:30 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
11:24:51 | * | yglukhov[i] joined #nim |
11:27:33 | FromGitter | <Quelklef> What's the algorithm for a `seq[i]`? |
11:27:41 | FromGitter | <Quelklef> that is, indexing into a seq? |
11:28:04 | FromGitter | <Quelklef> Does it start from 0 and increment or do something clever like start from the last index and search from there or anything |
11:29:57 | * | yglukhov_ joined #nim |
11:31:04 | * | dddddd quit (Quit: Hasta otra..) |
11:31:12 | * | yglukhov[i] quit (Ping timeout: 256 seconds) |
11:31:23 | * | dddddd joined #nim |
11:32:19 | FromGitter | <kaushalmodi> shashlick: About suggestions for emacs, I am a very small data point for auto-completion, etc. suggestions as I can suggest only what I am using. But I'd ask you to ping the #emacs IRC for better suggestions as you'll get a more collective response on various options. Also search/ask on r/emacs subreddit and the official Emacs help mailing list. Folks are really responsive on all those channels. |
11:35:17 | * | yglukhov_ quit (Ping timeout: 260 seconds) |
11:37:13 | * | yglukhov[i] joined #nim |
11:49:52 | * | xylef quit (Quit: WeeChat 2.2) |
11:52:35 | * | ieatnerds quit (Ping timeout: 276 seconds) |
11:55:15 | * | ieatnerds joined #nim |
11:58:47 | * | yglukhov_ joined #nim |
11:59:29 | * | yglukhov[i] quit (Ping timeout: 248 seconds) |
11:59:53 | * | yglukhov[i] joined #nim |
12:03:06 | * | yglukhov_ quit (Ping timeout: 244 seconds) |
12:09:26 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
12:10:24 | * | yglukhov_ joined #nim |
12:10:37 | * | livcd quit (Changing host) |
12:10:37 | * | livcd joined #nim |
12:23:04 | * | ieatnerds quit (Ping timeout: 260 seconds) |
12:36:02 | * | leorize joined #nim |
12:41:12 | * | endragor quit (Remote host closed the connection) |
12:47:11 | * | MyMind joined #nim |
12:47:49 | * | yglukhov[i] joined #nim |
12:48:33 | * | Sembei quit (Ping timeout: 248 seconds) |
12:50:45 | * | yglukhov_ quit (Ping timeout: 264 seconds) |
12:56:40 | * | endragor joined #nim |
12:56:56 | FromGitter | <citycide> my understanding is that `{.closure.}` procs are fairly expensive, but is that mitigated at all if they're also `{.inline.}` and used only once or twice? |
12:57:29 | FromGitter | <mratsim> you can’t inline a closure, it’s an object |
12:58:25 | FromGitter | <mratsim> you should instead use a closure more to offset the cost of its creation |
13:00:58 | * | endragor quit (Ping timeout: 244 seconds) |
13:01:09 | * | ieatnerds joined #nim |
13:01:43 | FromGitter | <citycide> @mratsim got it, thanks. I'm trying to reduce some code duplication but it's in an iterator that's kind of becoming monstrous. would also like to break it up but there's lots of parameters/state involved |
13:02:19 | * | stefanos82 joined #nim |
13:04:26 | * | yglukhov_ joined #nim |
13:06:16 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
13:06:48 | * | yglukhov[i] joined #nim |
13:08:56 | * | yglukho__ joined #nim |
13:08:57 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
13:09:38 | * | yglukhov_ quit (Read error: Connection reset by peer) |
13:11:31 | * | yglukhov[i] joined #nim |
13:12:31 | * | krux02 joined #nim |
13:12:43 | Calinou | https://github.com/tldr-pages/tldr/pull/2218 has been merged :) |
13:12:46 | Calinou | both nim and nimble are now in tldr |
13:14:13 | dom96 | yay |
13:14:21 | krux02 | Araq: https://github.com/krux02/Nim/blob/fix-alloc-type-signature/tests/system/talloc.nim |
13:15:01 | * | yglukhov_ joined #nim |
13:15:12 | krux02 | The reason you closed the PR that I made was that in that file I used to many cast operations. I just did that because that was the original way the test was written and all allocations were assigned to the same pointer. |
13:15:32 | * | yglukho__ quit (Ping timeout: 268 seconds) |
13:15:49 | krux02 | but because I changed the type signature the way I did, I could get rid of ever type casting that has been done in the file. |
13:16:42 | * | yglukho__ joined #nim |
13:16:42 | * | yglukhov_ quit (Read error: Connection reset by peer) |
13:18:08 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
13:21:25 | FromGitter | <kaushalmodi> Calinou: Awesome! I have just this one comment: https://github.com/tldr-pages/tldr/pull/2207#pullrequestreview-140306868 |
13:22:09 | * | yglukho__ quit (Ping timeout: 265 seconds) |
13:22:41 | * | yglukhov[i] joined #nim |
13:24:09 | Calinou | yeah, but according to the tldr style guide, full option names should be preferred |
13:24:19 | Calinou | https://github.com/tldr-pages/tldr/blob/master/contributing-guides/style-guide.md |
13:24:59 | Calinou | and https://github.com/tldr-pages/tldr/blob/master/CONTRIBUTING.md |
13:25:05 | Calinou | "Try to incorporate the spelled-out version of single-letter options in the example's description. The goal is to allow people to understand the syntax of the commands, not just memorize it." |
13:28:45 | FromGitter | <kaushalmodi> Calinou: where do they say that? Sorry, on phone, searched for long, full, found none. |
13:28:56 | Calinou | in CONTRIBUTING.md :) |
13:29:24 | FromGitter | <kaushalmodi> One of their own examples actually uses -f instead of --render. |
13:31:53 | FromGitter | <kaushalmodi> They also have ln -s in an example instead of ln --symbolic |
13:34:24 | FromGitter | <kaushalmodi> > Try to incorporate the spelled-out version of single-letter options in the example's description. |
13:34:33 | FromGitter | <kaushalmodi> Thanks, found the above. |
13:34:47 | Calinou | yeah, though they do make exceptions for common options |
13:34:55 | Calinou | they do say *options* and not subcommands :P |
13:35:47 | FromGitter | <kaushalmodi> But it's a grey area. I believe almost all would be using `nim c` all the time. It's as ubiquitous as `ln -s` (i.e. no one uses --symbolic, not even tldr :)) |
13:38:16 | * | ieatnerds quit (Ping timeout: 256 seconds) |
13:44:16 | dom96 | yeah, I agree about the 'c' |
13:46:36 | krux02 | I would add the option --debugger:native, too. |
13:48:08 | krux02 | Compile a source file with debug information: `nim compile --debugger:native {{file.nim}}` |
13:54:27 | * | nsf quit (Quit: WeeChat 2.1) |
13:55:47 | * | yglukhov_ joined #nim |
13:59:09 | * | yglukhov[i] quit (Ping timeout: 264 seconds) |
14:01:42 | * | yglukhov[i] joined #nim |
14:05:13 | * | yglukho__ joined #nim |
14:05:29 | * | yglukhov_ quit (Ping timeout: 268 seconds) |
14:08:04 | * | yglukhov[i] quit (Ping timeout: 260 seconds) |
14:11:10 | * | yglukhov[i] joined #nim |
14:11:14 | * | yglukho__ quit (Ping timeout: 244 seconds) |
14:12:35 | * | yglukhov_ joined #nim |
14:12:35 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
14:17:15 | * | yglukhov[i] joined #nim |
14:19:35 | * | yglukhov_ quit (Ping timeout: 240 seconds) |
14:24:31 | * | yglukhov_ joined #nim |
14:27:27 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
14:47:32 | * | yglukhov_ quit (Read error: Connection reset by peer) |
14:48:04 | * | yglukhov[i] joined #nim |
14:52:34 | * | drazan quit (Remote host closed the connection) |
14:54:27 | * | drazan joined #nim |
14:57:36 | * | dddddd quit (Remote host closed the connection) |
15:11:18 | * | xylef joined #nim |
15:12:56 | shashlick | krux02: did you have any luck getting auto-complete and suggestions to work with emacs + nim-mode |
15:23:27 | krux02 | shashlick, it worked for some time, yes |
15:24:02 | krux02 | but I disabled it, because nimsuggest froze too often for my personal tast and freezing emacs with it. |
15:25:41 | krux02 | shashlick, this is my nim mode init script http://ix.io/1ilP |
15:26:03 | krux02 | as you can see, I disable everything in nim |
15:27:42 | krux02 | shashlick, here I think this is everything in my config http://ix.io/1ilQ |
15:28:05 | * | stefanos82 quit (Ping timeout: 240 seconds) |
15:28:16 | krux02 | no guarantee that anything works |
15:29:25 | shashlick | krux02: thanks - I tried spacemacs but it just hangs so gave up on that, pure emacs, no suggestions or autocomplete works |
15:29:54 | krux02 | sometimes on pure emacs it also just hangs |
15:30:00 | krux02 | that's why i disabled so much |
15:30:14 | Araq | krux02: I don't care about this create stuff, sorry |
15:30:43 | Araq | this should have been project specific or in a separate module at least |
15:31:06 | Araq | pointless aliases. |
15:31:08 | krux02 | Araq what do you mean project specific? |
15:31:35 | Araq | they never should have been added to system.nim |
15:31:47 | krux02 | well that is true |
15:31:54 | krux02 | maybe in a memory.nim |
15:32:25 | Araq | or in lowlevelsugar.nim |
15:32:30 | krux02 | I generally like the idea that there is manual memory allocation |
15:33:07 | Araq | sure but that's called alloc/realloc/dealloc in Nim. |
15:33:48 | krux02 | so you would like the have only the ``pointer`` version in system.nim? |
15:34:44 | krux02 | s/the have/to have/ |
15:35:09 | Araq | or a typedesc version, proc alloc[T](what: typedesc[T]): T = cast[T](alloc sizeof(T)) |
15:35:54 | Araq | or rather proc alloc[T](what: typedesc[T]): ptr T = cast[ptr T](alloc sizeof(T)) |
15:36:08 | krux02 | but isn't that exactly what create does? |
15:36:32 | Araq | yeah but 'create' is not in our style guidelines |
15:37:16 | krux02 | well, wasn't it that manually managed stuff is initialized with createXXX? |
15:37:45 | krux02 | I think that is the idea behind this. |
15:37:49 | Araq | dunno but I simply don't like it |
15:38:21 | Araq | 'create' implies a high level action, not an alias for the first step of a creation |
15:38:49 | krux02 | that is true. |
15:39:45 | krux02 | I could rename them all to just be called alloc |
15:39:52 | krux02 | and allocShared |
15:41:23 | * | stefanos82 joined #nim |
15:42:32 | krux02 | so then there would only these families be left ``alloc, alloc0, allocShared, allowShared0`` |
15:42:48 | krux02 | but here I don't like that the non initialized version is shorter. |
15:43:03 | krux02 | yes it is faster, but it is not the recommended version. |
15:43:46 | krux02 | normally you want 0 memory, unless you know that you write to every field before you read from it. |
15:45:12 | * | erratic quit (Ping timeout: 256 seconds) |
15:55:28 | * | ieatnerds joined #nim |
16:05:51 | * | xylef quit (Quit: WeeChat 2.2) |
16:06:22 | * | krux02 quit (Remote host closed the connection) |
16:06:47 | * | xylef joined #nim |
16:10:48 | * | Trustable joined #nim |
16:31:13 | FromGitter | <Yardanico> what's the best way to throw a compile-time error? |
16:31:18 | FromGitter | <Yardanico> from my code :) |
16:33:18 | * | yglukhov_ joined #nim |
16:33:18 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
16:33:25 | FromGitter | <Quelklef> `static: assert X` |
16:35:47 | FromGitter | <Yardanico> @Quelklef thank you! |
16:49:20 | * | ftsf quit (Ping timeout: 244 seconds) |
16:55:22 | FromGitter | <Quelklef> Yup |
16:55:32 | FromGitter | <Quelklef> anytime |
16:56:15 | * | floppydh quit (Quit: WeeChat 2.1) |
16:56:57 | * | yglukhov_ quit (Read error: Connection reset by peer) |
16:57:50 | * | xylef quit (Quit: WeeChat 2.2) |
17:03:26 | * | xylef joined #nim |
17:09:18 | * | yglukhov[i] joined #nim |
17:13:35 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
17:14:30 | * | yglukhov[i] joined #nim |
17:22:07 | * | yglukhov[i] quit (Read error: Connection reset by peer) |
17:22:39 | * | yglukhov[i] joined #nim |
17:23:52 | shashlick | so no one here uses emacs/spacemacs with nim, with suggestions and autocomplete working? |
17:25:30 | * | xylef quit (Quit: WeeChat 2.2) |
17:33:10 | * | yglukhov[i] quit (Remote host closed the connection) |
17:33:46 | * | yglukhov[i] joined #nim |
17:37:57 | * | yglukhov[i] quit (Ping timeout: 240 seconds) |
17:50:35 | * | Ven`` joined #nim |
17:52:18 | dom96 | I don't even use VS Code with suggestions/autocomplete |
17:52:44 | dom96 | it just doesn't work at all anymore |
17:55:34 | * | Ven`` quit (Ping timeout: 260 seconds) |
17:56:44 | stefanos82 | dom96: I can see from Aporia that it has an autocomplete.vim that depends on nimsuggest |
17:57:10 | stefanos82 | in case you know, is nimsuggest the same as gocode semantically speaking? |
17:57:19 | dom96 | no idea |
17:57:32 | dom96 | Aporia's autocomplete.nim targets an older nimsuggest too |
17:57:39 | stefanos82 | ah I see |
17:57:39 | * | Ven`` joined #nim |
17:58:51 | stefanos82 | in case autocomplete could be used as a background process, it could be easy enough to use it with a variety of editors / IDEs |
17:59:16 | Araq | it is a background process |
18:01:37 | * | dorelix_ quit (Ping timeout: 248 seconds) |
18:08:17 | shashlick | so basically no functioning suggestions/autocomplete in any editor at this point? then i'd just continue working with vim |
18:09:19 | Araq | I'm sure nimsuggest would work for me (TM) |
18:09:27 | Araq | I'm on the wrong machine to test it though |
18:14:04 | * | Ven`` quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:17:10 | * | dorelix joined #nim |
18:18:00 | * | Ven`` joined #nim |
18:19:40 | shashlick | well it's one thing for nimsuggest to work and another to have an editor which can use it correctly |
18:21:09 | shashlick | nvim-nim hasn't been updated in a year |
18:21:23 | shashlick | and zah's plugin doesn't support nimsuggest |
18:21:33 | shashlick | now if even vscode isn't working then why bother movign |
18:22:27 | * | Ven`` quit (Ping timeout: 240 seconds) |
18:32:25 | * | arecacea1 quit (Remote host closed the connection) |
18:32:44 | * | arecacea1 joined #nim |
18:34:10 | * | Chainsawdomist joined #nim |
18:35:19 | dom96 | md5 not available in JS D: |
18:36:07 | Chainsawdomist | Anybody feel like handholding me with a problem lol |
18:36:26 | dom96 | Chainsawdomist: sure, ask away |
18:36:33 | FromGitter | <kayabaNerve> dom96: You mean a Nim lib's md5 impl doesn't work in JS? |
18:36:39 | dom96 | yep |
18:36:45 | FromGitter | <kayabaNerve> Which Nim lib? |
18:36:49 | dom96 | stdlib |
18:37:14 | FromGitter | <kayabaNerve> Ah |
18:38:01 | Chainsawdomist | It isn't specific to Nim, but I'm having trouble using Nake. Getting a "command not found" after installing it with Nimble on Windows and Mac. Should I be registering "nake" as a command somewhere? I'm sort of new to programming and that sort of thing |
18:38:30 | FromGitter | <kayabaNerve> Why is MD5 and SHA1 in the stdlib? |
18:39:01 | FromGitter | <kayabaNerve> Why not include a wider set of options that are still secure or just none at all so people are enticed to go to better places like nimcrypto? |
18:39:07 | dom96 | Chainsawdomist: add ~/.nimble/bin to your PATH |
18:39:58 | FromGitter | <kayabaNerve> https://shattered.io ⏎ https://en.wikipedia.org/wiki/MD5#Collision_vulnerabilities ⏎ ⏎ Reference ^^ [https://gitter.im/nim-lang/Nim?at=5b58c3fe07be4357bdecfe9b] |
18:40:44 | dom96 | kayabaNerve: md5 is commonly used, and the use cases often don't require security |
18:41:50 | FromGitter | <kayabaNerve> It is; it shouldn't be; I'm pretty sure 99% do, just not critically |
18:42:09 | FromGitter | <kayabaNerve> There's two modern uses. ⏎ 1) Verifying the file is what it says it is. ⏎ 2) Verifying the integrity of the file. |
18:43:12 | FromGitter | <kayabaNerve> Most downloads offer a hash to verify the file integrity. When hash collisions exist, you can upload a fake file, and claim it's the original. |
18:44:20 | FromGitter | <kayabaNerve> That's for security. You can also say it's to distinct against other files, but not to verify that file is that file versus different from other files (did I get the v1.0 or v1.1 download?). In that case, it's not for security, however I don't think most people use it like that and that's the 1%. |
18:44:46 | Chainsawdomist | That did the trick @dom96 . Thanks! |
18:45:02 | FromGitter | <kayabaNerve> And it's not critical to verify integrity but that's like allowing a Google login where you can make a typo on any letter of the password. It shouldn't be done. |
19:14:38 | * | Chainsawdomist quit (Quit: Page closed) |
19:19:30 | * | dddddd joined #nim |
19:25:43 | * | Ven`` joined #nim |
19:31:59 | * | Altarrel joined #nim |
19:35:16 | * | Ven`` quit (Ping timeout: 256 seconds) |
19:40:17 | * | Vladar quit (Quit: Leaving) |
19:45:03 | * | Jesin quit (Quit: Leaving) |
19:54:00 | * | yglukhov[i] joined #nim |
19:54:34 | * | ieatnerds quit (Quit: leaving) |
20:01:30 | * | icebattl1 joined #nim |
20:01:44 | * | icebattle quit (Quit: leaving) |
20:01:49 | * | icebattl1 quit (Client Quit) |
20:02:11 | * | icebattle joined #nim |
20:05:06 | * | icebattle quit (Client Quit) |
20:05:40 | * | icebattle joined #nim |
20:11:09 | * | drazan quit (Ping timeout: 264 seconds) |
20:13:09 | * | Altarrel left #nim (#nim) |
20:20:53 | * | nsf joined #nim |
20:25:08 | * | drazan joined #nim |
20:36:37 | * | erratic joined #nim |
20:36:57 | * | icebattle quit (Ping timeout: 240 seconds) |
20:37:14 | * | icebattle joined #nim |
20:37:36 | * | literal quit (Read error: Connection reset by peer) |
20:39:00 | * | literal joined #nim |
20:45:39 | * | Trustable quit (Remote host closed the connection) |
20:59:23 | * | nekits quit (Remote host closed the connection) |
20:59:49 | * | nekits joined #nim |
21:03:28 | * | yglukhov[i] quit (Remote host closed the connection) |
21:14:45 | * | nsf quit (Quit: WeeChat 2.1) |
21:39:57 | * | Altarrel joined #nim |
21:50:42 | Altarrel | I'm having trouble using c2nim on https://github.com/discordapp/discord-rpc. I have no C/C++ experience or knowledge and I have read through the Nim documentation and written a bit of code. Overally my experience in this area is minimal. I tried running c2nim on https://github.com/discordapp/discord-rpc/blob/master/include/discord_rpc.h but I get discord_rpc.h(76, 39) Error: token expected: ; |
22:13:11 | * | Pisuke joined #nim |
22:16:04 | * | MyMind quit (Ping timeout: 256 seconds) |
22:20:37 | * | Altarrel quit (Quit: Page closed) |
22:32:25 | * | tiorock joined #nim |
22:32:26 | * | tiorock quit (Changing host) |
22:32:26 | * | tiorock joined #nim |
22:32:26 | * | rockcavera is now known as Guest10129 |
22:32:26 | * | Guest10129 quit (Killed (weber.freenode.net (Nickname regained by services))) |
22:32:26 | * | tiorock is now known as rockcavera |
22:41:58 | FromGitter | <rayman22201> try using https://github.com/genotrance/nimgen |
22:45:59 | * | CcxWrk quit (Quit: ZNC 1.6.5 - http://znc.in) |
22:46:40 | * | CcxWrk joined #nim |
23:00:24 | * | icebattle quit (Ping timeout: 256 seconds) |
23:05:34 | * | ng0 quit (Quit: Alexa, when is the end of world?) |
23:06:01 | * | Cthalupa quit (Ping timeout: 265 seconds) |
23:07:03 | * | Cthalupa joined #nim |
23:25:05 | * | rayman22201 joined #nim |
23:49:57 | * | ftsf joined #nim |
23:54:40 | * | ftsf quit (Client Quit) |