00:00:03 | * | yglukhov quit (Ping timeout: 246 seconds) |
00:57:54 | * | yglukhov joined #nim |
01:02:26 | * | yglukhov quit (Ping timeout: 252 seconds) |
01:03:27 | * | Matthias247 quit (Read error: Connection reset by peer) |
01:04:40 | FromGitter | <martinium> how would I use the mitems iterator on this for loop: ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5865b2a70730ce693724a52e] |
01:05:17 | Araq | no need to use it for JsonNodes, these are refs anyway |
01:05:53 | FromGitter | <martinium> is there anyway to iterate through jsonNodes faster than a for in loop? |
01:06:17 | Araq | I doubt it |
01:06:39 | FromGitter | <martinium> python implementation of this is faster on repeated requests |
01:07:28 | Araq | slow stdout? |
01:07:46 | Araq | btw you can use echo with multiple args and get rid of the &s |
01:08:00 | Araq | you can use 'let' instead of 'var' |
01:08:12 | Araq | and put the code in a proc if it isn't already |
01:08:17 | FromGitter | <martinium> it is |
01:08:28 | FromGitter | <martinium> this is just the for loop part |
01:08:40 | Araq | my guess is slow stdout |
01:08:51 | FromGitter | <martinium> wonder if let would be any faster |
01:08:58 | FromGitter | <martinium> than var since it is immutable |
01:09:09 | Araq | not in this case |
01:09:47 | FromGitter | <martinium> in this case how would you use echo with multiple arguments |
01:10:10 | FromGitter | <martinium> this is a program I converted to Nim for a friend and as a learning process |
01:11:51 | FromGitter | <martinium> nim version with no warm up is faster than python by over 4 seconds |
01:12:05 | FromGitter | <martinium> repeated requested stay in the 1.5 secs and less range |
01:12:36 | FromGitter | <martinium> python does about 4.6 secs for first request with repeated runs at 0.58 - 0.77 |
01:13:06 | FromGitter | <martinium> not that this is a performance critical app etc |
01:13:53 | Araq | echo "multiple ", "args ", "here" |
01:15:03 | FromGitter | <martinium> standard out does seem slow on this mac |
01:15:28 | FromGitter | <martinium> if I run it on my ubuntu desktop system it’ll more than like be much faster |
01:16:14 | Araq | setBufSize(stdout, ...) or something, can't remember. I don't 'echo' data, I use a database |
01:16:45 | FromGitter | <martinium> interesting |
01:16:52 | FromGitter | <martinium> you just gave me an idea |
01:17:04 | FromGitter | <martinium> write the results to a DB then grab from DB |
01:17:17 | FromGitter | <martinium> but then bottleneck will probably be DB speed |
01:17:20 | FromGitter | <martinium> I would use postgres |
01:28:03 | Araq | good night |
01:28:15 | FromGitter | <martinium> good night |
01:44:26 | * | arnetheduck joined #nim |
02:02:56 | * | martinium joined #nim |
02:14:28 | dom96 | Interesting post |
02:15:16 | dom96 | Hopefully everyone will agree with me on it: http://forum.nim-lang.org/t/2687/1#16626 |
02:23:11 | kulelu88 | in order to write Nim code, do I need to understand how pointers work? |
02:23:46 | dom96 | kulelu88: depends what you want to write |
02:24:09 | kulelu88 | dom96: well nothing mission-critical |
02:46:30 | * | chemist69 quit (Disconnected by services) |
02:46:34 | * | chemist69_ joined #nim |
02:47:09 | * | brson quit (Quit: leaving) |
03:04:17 | FromGitter | <vegansk> @kulelu88, you don't need it until you write some system or another low level stuff, integretions with c/c++ libraries, etc. But you can miss some critical moments if you are not familiar with them. It's better to understand how to work with memory even if you write java code :-) |
03:06:12 | kulelu88 | FromGitter: vegansk I was looking at Go for web programming and it seems that pointers are central to it, which confused me a bit |
03:06:13 | FromGitter | kulelu88, I'm a bot, *bleep, bloop*. I relay messages between here and https://gitter.im/nim-lang/Nim |
03:13:04 | * | PMunch joined #nim |
03:14:24 | * | Snircle quit (Write error: Broken pipe) |
03:15:48 | * | Pisuke quit (Max SendQ exceeded) |
03:16:57 | * | Pisuke joined #nim |
03:37:49 | FromGitter | <zetashift> there should be a solid introductory article/video about pointers somewhere on the internet right? Things like the stack and heap(hell even references) were also an enigma to be until I read a few really great articles |
04:00:32 | * | yglukhov joined #nim |
04:05:26 | * | yglukhov quit (Ping timeout: 264 seconds) |
04:11:00 | * | martinium quit (Ping timeout: 246 seconds) |
04:13:45 | PMunch | zetashift, there probable is to be honest |
04:18:15 | FromGitter | <zetashift> http://web.stanford.edu/~fringer/teaching/operating_systems_03/handouts/lecture9.pdf this one looks solid |
04:22:31 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
04:48:22 | * | devted quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
04:50:54 | * | chemist69_ quit (Ping timeout: 246 seconds) |
04:54:19 | * | dddddd quit (Remote host closed the connection) |
04:55:36 | * | chemist69 joined #nim |
05:52:14 | * | PMunch quit (Quit: leaving) |
06:00:58 | FromGitter | <Varriount> @zetashift It gets even more fun once you start looking at how virtual memory is implemented. >:D |
06:05:18 | FromGitter | <zetashift> @Varriount oh boy that's more homework haha |
06:16:08 | * | bjz joined #nim |
06:26:51 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
06:40:06 | * | Vladar joined #nim |
06:44:28 | * | bjz joined #nim |
07:53:22 | * | yglukhov joined #nim |
07:57:48 | * | yglukhov quit (Ping timeout: 246 seconds) |
07:59:24 | * | def-pri-pub quit (Quit: leaving) |
08:23:51 | * | rokups joined #nim |
08:24:48 | * | Vladar quit (Quit: Leaving) |
08:53:14 | * | vlad1777d joined #nim |
09:15:26 | * | vlad1777d quit (Ping timeout: 256 seconds) |
09:16:55 | * | yglukhov joined #nim |
09:24:37 | * | Arrrr joined #nim |
09:52:32 | * | chemist69 quit (Ping timeout: 258 seconds) |
09:57:54 | * | vlad1777d joined #nim |
10:01:31 | * | kulelu88 quit (Quit: Leaving) |
10:12:40 | * | bjz_ joined #nim |
10:13:37 | * | bjz quit (Ping timeout: 258 seconds) |
10:19:33 | * | chemist69 joined #nim |
10:40:44 | * | Trustable joined #nim |
10:51:05 | * | Matthias247 joined #nim |
10:55:09 | dom96 | Araq: So what about https://github.com/nim-lang/nimble/pull/283? Up for implementing it for next release? |
11:07:50 | Araq | dom96: well it needs to be tested |
11:08:22 | Araq | and I like to move distros.nim to the stdlib |
11:10:31 | * | krux02 joined #nim |
11:12:25 | Araq | *I'd like to |
11:13:16 | dom96 | Alright, just go for it. |
11:13:28 | dom96 | It's a cool feature |
11:20:25 | * | byte512 joined #nim |
11:35:11 | * | odc joined #nim |
12:04:03 | * | Snircle joined #nim |
12:04:06 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
12:05:01 | * | bjz joined #nim |
12:09:10 | * | Trustable quit (Remote host closed the connection) |
12:10:44 | * | Trustable joined #nim |
12:12:47 | * | Trustable quit (Remote host closed the connection) |
12:14:02 | * | Trustable joined #nim |
12:16:10 | * | Vladar joined #nim |
12:28:14 | Arrrr | Is 'setCommand "nop"' set by default? on nimscript? |
12:29:33 | Araq | I think so |
12:29:46 | Araq | that's not how it's implemented but the effect should be the same |
12:30:58 | Arrrr | Mm, ok thanks. |
12:35:03 | * | cnu- quit (Ping timeout: 258 seconds) |
12:35:30 | * | cnu- joined #nim |
12:35:31 | * | cnu- quit (Excess Flood) |
12:35:58 | * | cnu- joined #nim |
12:43:49 | * | Arrrr quit (Quit: WeeChat 1.5) |
12:48:52 | * | nsf quit (Quit: WeeChat 1.6) |
12:55:53 | * | couven92 joined #nim |
13:00:06 | * | yglukhov_ joined #nim |
13:01:25 | * | cnu- left #nim (#nim) |
13:03:02 | * | d10n quit (Ping timeout: 258 seconds) |
13:03:26 | * | yglukhov quit (Ping timeout: 258 seconds) |
13:04:13 | * | yglukhov_ quit (Ping timeout: 245 seconds) |
13:04:15 | odc | Hello there |
13:04:27 | odc | Issue #3838 can be closed |
13:04:34 | odc | it was fixed months ago |
13:05:51 | odc | Also, can someone explain to me why Nim's random() is not good enough and has to be replaced ? |
13:05:56 | * | yglukhov joined #nim |
13:07:57 | * | d10n joined #nim |
13:07:57 | * | d10n quit (Changing host) |
13:07:57 | * | d10n joined #nim |
13:10:20 | * | yglukhov quit (Ping timeout: 265 seconds) |
13:12:08 | dom96 | odc: thanks, closed. |
13:12:36 | odc | :) |
13:12:57 | dom96 | odc: This should answer your question https://github.com/nim-lang/Nim/issues/1506 |
13:13:24 | dom96 | it's fixed now I think |
13:16:24 | odc | Thanks! I didn't know nim was using the libc's rand before |
13:16:58 | odc | but then, the pull request from BlaXpirit should be closed isn't it ? |
13:17:28 | odc | he must be a little mad... |
13:19:02 | dom96 | which one? |
13:19:33 | odc | https://github.com/nim-lang/Nim/pull/5048 |
13:21:04 | odc | not sure why endragor says "current random module is unusable for something beyond a toy project" |
13:28:46 | Araq | because you cannot change the impl at runtime nor at compiletime. the old Nim problem. "It's not extensible". |
13:29:31 | Araq | personally I find Nim's simple stdlib with the patchFile mechanism superior to most other setups out there |
13:32:35 | Araq | patchFile is awesome, too bad not many know about it :-) |
13:34:48 | * | Matthias247 quit (Read error: Connection reset by peer) |
13:40:37 | odc | i don't know about it |
13:40:41 | odc | for now... |
13:41:39 | odc | google doesn't seem to know about it either :/ |
13:42:22 | dom96 | For anyone else still looking to get a discount on my book: https://twitter.com/nim_lang/status/814828867319959552 |
13:55:29 | * | yglukhov joined #nim |
13:59:46 | * | yglukhov quit (Ping timeout: 252 seconds) |
14:03:07 | krux02 | odc: I found this http://nim-lang.org/docs/nimscript.html#patchFile,string,string,string |
14:03:19 | krux02 | I didn't know about it until now |
14:04:12 | * | dom96 still has no idea how to use patchFile |
14:04:26 | odc | krux02: thanks! |
14:04:40 | dom96 | Araq: You keep saying "Too bad not many know about it", maybe it's time to change that? |
14:05:58 | Araq | I'm in IRC for these reasons |
14:06:56 | odc | it seems patchFile only works in nimscripts, right? |
14:32:15 | * | bjz quit (Ping timeout: 246 seconds) |
14:32:19 | * | bjz_ joined #nim |
14:40:14 | * | couven92 quit (Ping timeout: 265 seconds) |
14:44:36 | arnetheduck | hny |
14:48:21 | * | themagician joined #nim |
14:58:06 | krux02 | odc: I think it is for the build system. How it works is just an assumption, but I guess you use it in the build to change the behavior of some parts of the standard library. The documentation could definitely be improved on that. |
15:19:29 | * | vlad1777d_ joined #nim |
15:21:09 | * | dddddd joined #nim |
15:21:38 | * | vlad1777d quit (Ping timeout: 264 seconds) |
15:29:08 | * | synshroud quit (Quit: ZNC 1.6.3 - http://znc.in) |
15:30:43 | * | synshroud joined #nim |
15:36:15 | dom96 | Araq: and yet not answering any questions :P |
15:36:31 | dom96 | Don't make excuses, write some docs for this please. |
15:46:24 | * | pregressive joined #nim |
15:48:21 | * | Vladar quit (Ping timeout: 248 seconds) |
16:03:58 | * | chemist69 quit (Ping timeout: 258 seconds) |
16:05:41 | * | Ven joined #nim |
16:09:11 | * | chemist69 joined #nim |
16:15:41 | * | vlad1777d__ joined #nim |
16:19:17 | * | vlad1777d_ quit (Ping timeout: 248 seconds) |
16:29:57 | * | Ven quit (Ping timeout: 265 seconds) |
16:32:49 | * | Ven joined #nim |
16:44:32 | odc | and one more book ordered! @ dom96 |
16:44:41 | dom96 | odc: Thanks :D |
16:45:36 | * | Ven quit (Ping timeout: 246 seconds) |
16:52:38 | * | Ven joined #nim |
16:59:34 | * | Ven quit (Ping timeout: 258 seconds) |
17:32:53 | * | Ven joined #nim |
17:41:16 | * | pregressive quit (Remote host closed the connection) |
17:41:52 | * | pregressive joined #nim |
17:45:27 | * | Ven quit (Ping timeout: 246 seconds) |
17:46:20 | * | pregressive quit (Ping timeout: 258 seconds) |
17:52:54 | * | Ven joined #nim |
17:53:25 | * | space-wizard joined #nim |
18:01:33 | * | Ven quit (Ping timeout: 246 seconds) |
18:07:30 | * | vlad1777d__ quit (Quit: Leaving) |
18:12:14 | * | Ven joined #nim |
18:13:15 | * | Ven quit (Read error: Connection reset by peer) |
18:19:10 | * | def-pri-pub joined #nim |
18:31:33 | * | themagician quit (Ping timeout: 258 seconds) |
18:32:04 | * | Ven joined #nim |
18:45:30 | * | Ven quit (Ping timeout: 256 seconds) |
18:45:51 | * | Trustable quit (Remote host closed the connection) |
18:50:44 | * | byte512 quit (Ping timeout: 258 seconds) |
18:52:29 | * | Ven joined #nim |
19:01:18 | * | Ven quit (Ping timeout: 245 seconds) |
19:03:56 | * | Ven joined #nim |
19:05:36 | * | irrequietus joined #nim |
19:10:48 | * | brson joined #nim |
19:11:02 | federico3 | is there any macro/template to "cast" a JsonNode to an object? |
19:17:14 | * | Ven quit (Ping timeout: 256 seconds) |
19:23:06 | * | Ven joined #nim |
19:29:15 | * | Matthias247 joined #nim |
19:30:27 | * | Ven quit (Ping timeout: 246 seconds) |
19:32:17 | * | Matthias247 quit (Read error: Connection reset by peer) |
19:33:51 | * | Matthias247 joined #nim |
19:46:59 | krux02 | federico3: to what object? |
19:57:37 | * | devted joined #nim |
20:02:54 | * | Ven joined #nim |
20:16:39 | * | Ven quit (Ping timeout: 246 seconds) |
20:21:04 | * | Ven joined #nim |
20:46:07 | * | Ven quit (Ping timeout: 258 seconds) |
20:50:25 | * | Ven joined #nim |
21:01:18 | * | Ven quit (Ping timeout: 245 seconds) |
21:01:59 | * | rokups quit (Quit: Connection closed for inactivity) |
21:09:51 | * | Ven joined #nim |
21:13:54 | * | yglukhov joined #nim |
21:16:21 | * | Ven quit (Ping timeout: 260 seconds) |
21:30:20 | * | Ven joined #nim |
21:38:53 | def-pri-pub | Read all about it. stb_image wrapper for Nim: https://16bpp.net/blog/post/stb_image-wrapper-for-nim |
21:39:02 | def-pri-pub | (Shamless self promotion) |
22:02:26 | * | Ven quit (Ping timeout: 264 seconds) |
22:09:14 | * | Ven joined #nim |
22:17:18 | * | kulelu88 joined #nim |
22:17:24 | * | Ven quit (Ping timeout: 246 seconds) |
22:22:04 | * | yglukhov quit (Remote host closed the connection) |
22:28:44 | * | Ven joined #nim |
22:29:42 | * | Ven quit (Read error: Connection reset by peer) |
22:45:53 | * | krux02 quit (Quit: Verlassend) |
22:49:07 | * | Ven joined #nim |
22:52:42 | * | devted quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:53:17 | * | yglukhov joined #nim |
22:55:54 | * | devted joined #nim |
22:57:38 | * | yglukhov quit (Ping timeout: 264 seconds) |
23:01:30 | * | Ven quit (Ping timeout: 246 seconds) |
23:08:32 | * | Ven joined #nim |
23:08:55 | * | odc quit (Quit: Connection closed for inactivity) |
23:16:44 | * | Ven quit (Ping timeout: 252 seconds) |
23:19:06 | * | irrequietus quit () |
23:28:27 | * | Ven joined #nim |
23:29:40 | * | Ven quit (Read error: Connection reset by peer) |
23:38:57 | * | onionhammer quit (Ping timeout: 246 seconds) |
23:45:23 | * | nsf joined #nim |
23:48:19 | * | Ven joined #nim |
23:52:05 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:54:26 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:56:07 | * | Ven joined #nim |