00:00:59 | * | dmi00 quit (Ping timeout: 260 seconds) |
00:04:39 | * | Demos_ joined #nim |
00:07:03 | * | Demos quit (Ping timeout: 258 seconds) |
00:07:35 | * | yglukhov joined #nim |
00:08:16 | federico3 | how can I create object variants having the same attribute but with different types? |
00:10:46 | FromGitter | <ephja> it's not possible |
00:13:09 | federico3 | ephja: thanks. Alternatively, if I subclass "A" into "B" and "C" where both children have an attribute with the same name but different types, can I define a method that will use that attribute for both B and C without duplicating the code? |
00:15:09 | * | yglukhov quit (Ping timeout: 246 seconds) |
00:19:02 | FromGitter | <ephja> @federico3 I dunno |
00:23:05 | * | themagician quit () |
00:26:58 | * | dmi00 joined #nim |
00:30:58 | * | vlad1777d quit (Quit: Leaving) |
00:31:25 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:47:00 | * | chemist69 quit (Ping timeout: 246 seconds) |
00:55:04 | * | yglukhov joined #nim |
00:59:28 | * | yglukhov quit (Ping timeout: 250 seconds) |
01:05:23 | * | chemist69 joined #nim |
01:08:02 | Varriount|Phone | federico3: Perhaps concept types would help? |
01:11:53 | Varriount|Phone | Alternately, define the implementation of the method using a template, and call the template in methods for B and C |
01:29:57 | * | dmi00 quit (Ping timeout: 265 seconds) |
01:30:38 | * | dmi00 joined #nim |
01:31:18 | * | chemist69 quit (Ping timeout: 245 seconds) |
01:37:36 | * | yglukhov joined #nim |
01:41:45 | * | Demos_ quit (Read error: Connection reset by peer) |
01:42:20 | * | yglukhov quit (Ping timeout: 260 seconds) |
01:43:30 | * | Demos joined #nim |
01:53:11 | * | ybroze joined #nim |
01:54:05 | * | chemist69 joined #nim |
02:19:55 | * | yglukhov joined #nim |
02:24:43 | * | yglukhov quit (Ping timeout: 260 seconds) |
02:30:45 | * | couven92 quit (Quit: Client disconnecting) |
02:42:21 | * | chemist69 quit (Ping timeout: 260 seconds) |
02:48:49 | * | kulelu88 quit (Quit: Leaving) |
02:50:08 | * | [ui] joined #nim |
02:56:13 | * | chemist69 joined #nim |
02:58:47 | * | ftsf_ quit (Ping timeout: 258 seconds) |
03:02:21 | * | yglukhov joined #nim |
03:03:19 | FromGitter | <aaron-lebo> hi there |
03:03:39 | FromGitter | <aaron-lebo> trying to do some opengl stuff with nim, and can't get a very basic example to work |
03:03:51 | FromGitter | <aaron-lebo> https://github.com/aaron-lebo/nimgl |
03:04:16 | FromGitter | <aaron-lebo> this should display a red triangle, but something is not working and not getting any errors |
03:06:58 | * | yglukhov quit (Ping timeout: 268 seconds) |
03:09:04 | FromGitter | <ephja> @aaron-lebo it looks like the vertex array holds float64 elements |
03:09:35 | FromGitter | <ephja> append `'f32` to the first array literal |
03:10:49 | * | ftsf_ joined #nim |
03:11:05 | FromGitter | <ephja> float is basically float64 atm. replace instances of `float` with `float32` |
03:14:59 | * | Demos quit (Ping timeout: 268 seconds) |
03:19:10 | FromGitter | <ephja> are you supposed to delete the shaders at that particular moment? |
03:22:00 | FromGitter | <ephja> "If a shader object to be deleted is attached to a program object, it will be flagged for deletion, but it will not be deleted until it is no longer attached to any program object" |
03:50:47 | FromGitter | <aaron-lebo> @ephja thanks for the help.. those weren't apparently an issue but had notifced the float32/float64 issue earlier |
03:51:22 | * | yglukhov joined #nim |
03:55:53 | * | yglukhov quit (Ping timeout: 245 seconds) |
04:05:25 | * | chemist69 quit (Ping timeout: 260 seconds) |
04:06:49 | * | ybroze quit (Ping timeout: 260 seconds) |
04:08:36 | * | jivank_ quit (Ping timeout: 252 seconds) |
04:25:51 | * | chemist69 joined #nim |
04:27:37 | * | kunev quit (Ping timeout: 240 seconds) |
04:29:06 | * | kunev joined #nim |
04:30:07 | * | ybroze joined #nim |
04:33:50 | * | yglukhov joined #nim |
04:40:31 | * | yglukhov quit (Ping timeout: 256 seconds) |
04:44:39 | * | organick joined #nim |
04:44:49 | organick | big channel |
04:45:42 | organick | does anyone know if nim has anything similar to java annotations? |
05:02:37 | * | ftsf_ quit (Ping timeout: 240 seconds) |
05:05:24 | * | shodan45 joined #nim |
05:07:08 | * | dddddd quit (Read error: Connection reset by peer) |
05:12:09 | * | rynsin quit (Quit: rynsin) |
05:12:32 | Varriount|Phone | organick: Javadoc annotations? |
05:15:48 | * | ftsf_ joined #nim |
05:16:49 | * | organick quit (Ping timeout: 260 seconds) |
05:22:58 | * | chemist69 quit (Ping timeout: 245 seconds) |
05:31:41 | * | organick joined #nim |
05:36:05 | * | organick quit (Ping timeout: 248 seconds) |
05:37:17 | * | yglukhov joined #nim |
05:39:20 | * | ybroze quit (Ping timeout: 256 seconds) |
05:40:25 | * | ybroze joined #nim |
05:41:24 | * | chemist69 joined #nim |
05:41:42 | * | yglukhov quit (Ping timeout: 258 seconds) |
06:03:58 | * | vlad1777d joined #nim |
06:10:05 | * | Varriount|Phone quit (Ping timeout: 244 seconds) |
06:14:04 | * | Varriount|Phone joined #nim |
06:18:24 | * | chemist69 quit (Ping timeout: 250 seconds) |
06:18:30 | ftsf_ | =( nim on archlinux is now unmaintained |
06:19:46 | * | yglukhov joined #nim |
06:24:18 | * | yglukhov quit (Ping timeout: 265 seconds) |
06:25:06 | * | nsf joined #nim |
06:36:42 | * | chemist69 joined #nim |
06:38:46 | * | shodan45 quit (Remote host closed the connection) |
06:45:12 | * | bjz joined #nim |
06:46:51 | * | vlad1777d quit (Quit: Leaving) |
06:52:49 | * | chatter joined #nim |
06:59:36 | * | chatter quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
06:59:49 | * | chatter joined #nim |
07:00:06 | * | chatter quit (Client Quit) |
07:00:17 | * | chatter joined #nim |
07:01:30 | * | [ui] quit (Quit: Connection closed for inactivity) |
07:02:00 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
07:02:10 | * | yglukhov joined #nim |
07:02:52 | * | chatter quit (Client Quit) |
07:04:16 | * | ftsf_ quit (Quit: :q!) |
07:04:34 | * | byte512 joined #nim |
07:06:17 | * | yglukhov quit (Ping timeout: 240 seconds) |
07:07:15 | * | Demos joined #nim |
07:14:55 | * | bjz joined #nim |
07:23:18 | * | yglukhov joined #nim |
07:23:23 | * | Demos_ joined #nim |
07:26:21 | * | Demos quit (Ping timeout: 258 seconds) |
07:27:41 | * | yglukhov quit (Ping timeout: 252 seconds) |
07:28:25 | * | ybroze quit (Ping timeout: 260 seconds) |
07:32:57 | * | organick joined #nim |
07:34:51 | * | Matthias247 joined #nim |
07:37:13 | * | organick quit (Ping timeout: 252 seconds) |
07:54:26 | * | Matthias247 quit (Read error: Connection reset by peer) |
07:58:43 | * | Kingsquee quit (Excess Flood) |
07:58:58 | * | Kingsquee joined #nim |
08:18:46 | * | brechtm joined #nim |
08:20:42 | * | Trustable joined #nim |
08:24:10 | * | brechtm quit (Remote host closed the connection) |
08:24:48 | * | brechtm joined #nim |
08:34:29 | * | vlad1777d joined #nim |
08:39:40 | * | brechtm_ joined #nim |
08:43:00 | * | brechtm quit (Ping timeout: 246 seconds) |
08:44:28 | Varriount|Phone | Araq: Is there a way for one thread to "give" an object to another thread, without copying? |
08:44:45 | Araq | cast to ptr |
08:46:18 | Varriount|Phone | Araq: I meant in a safe way. |
08:48:59 | Araq | there is none. |
08:49:28 | * | Andris_zbx joined #nim |
08:52:07 | * | brechtm_ quit (Remote host closed the connection) |
08:52:42 | * | brechtm joined #nim |
09:08:45 | * | couven92 joined #nim |
09:09:51 | * | Demos_ quit (Ping timeout: 258 seconds) |
09:12:57 | * | organick joined #nim |
09:13:31 | * | nicanaca0 quit (Remote host closed the connection) |
09:17:20 | * | organick quit (Ping timeout: 260 seconds) |
09:19:04 | * | Arrrr joined #nim |
09:22:23 | * | PMunch joined #nim |
09:25:44 | * | rokups joined #nim |
09:29:58 | * | bjz_ joined #nim |
09:31:13 | * | bjz quit (Ping timeout: 256 seconds) |
09:41:09 | flyx | aaron-lebo: in line 47, you give `data.len` as size for glBufferData. this will only copy 9 bytes into the buffer, not the 9 * 8 bytes in `verts`. |
09:41:33 | flyx | use `data.len * sizeof(float)` |
09:49:06 | * | nicanaca0 joined #nim |
10:10:15 | * | xet7 quit (Quit: Leaving) |
10:13:33 | * | xet7 joined #nim |
10:19:46 | * | chemist69 quit (Ping timeout: 250 seconds) |
10:29:28 | * | dmi00 quit (Ping timeout: 256 seconds) |
10:31:41 | * | themagician joined #nim |
10:34:57 | * | kier quit (Ping timeout: 240 seconds) |
10:39:30 | * | chemist69 joined #nim |
10:44:21 | * | kier joined #nim |
11:28:01 | * | chemist69 quit (Ping timeout: 260 seconds) |
11:40:01 | * | yglukhov joined #nim |
11:44:50 | * | yglukhov quit (Ping timeout: 256 seconds) |
11:48:00 | * | chemist69 joined #nim |
12:10:12 | * | chemist69 quit (Ping timeout: 246 seconds) |
12:30:34 | * | chemist69 joined #nim |
12:36:53 | * | Trustable_2 joined #nim |
12:39:17 | * | couven92 quit (Read error: Connection reset by peer) |
12:39:57 | * | Trustable quit (Ping timeout: 240 seconds) |
12:41:21 | * | PMunch quit (Quit: leaving) |
12:46:19 | * | brechtm_ joined #nim |
12:49:03 | * | brechtm quit (Ping timeout: 246 seconds) |
12:56:02 | * | elrood joined #nim |
13:00:35 | vktec | What's the best way to inject proc parameters into template code blocks? |
13:00:59 | vktec | That's a confusing question, sorry |
13:01:01 | vktec | I'll make a gist |
13:03:24 | vktec | Huh. |
13:03:27 | vktec | It's working fine now |
13:03:40 | vktec | Must be an issue with my particular implementation. Debugging time \o/ |
13:04:12 | reactormonk | sorry, wrong button |
13:06:40 | * | AckZ quit () |
13:10:09 | vktec | Hmm... it appears my issue only happens with nested templates. https://gist.github.com/vktec/c3c7e96051b2f4f8bbe4870c0192bcbb |
13:10:21 | vktec | Wait... |
13:10:22 | vktec | Oops |
13:11:31 | vktec | Okay, I corrected my mistake, but same error |
13:16:26 | * | Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif) |
13:18:11 | Arrrr | dirty ? |
13:19:39 | vktec | Arrrr: I doubt that's the issue, since it works when the templates aren't nested, but I'll give it a try |
13:19:54 | flyx | dirty on the outer template works. |
13:20:17 | vktec | flyx: Indeed! |
13:20:18 | vktec | Thanks Arrrr |
13:24:08 | * | Arrrr quit (Quit: WeeChat 1.5) |
13:32:36 | * | chemist69 quit (Ping timeout: 250 seconds) |
13:47:46 | * | brechtm_ quit (Remote host closed the connection) |
13:48:24 | * | brechtm joined #nim |
13:50:54 | * | chemist69 joined #nim |
13:58:36 | * | Varriount|Phone quit (Ping timeout: 250 seconds) |
14:05:08 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
14:09:17 | * | jivank quit (Ping timeout: 260 seconds) |
14:23:46 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
14:36:41 | flyx | I think the forum needs some sort of notifications. „user xy replied to your post/thread“ or something. |
14:40:00 | * | yglukhov joined #nim |
14:40:00 | * | yglukhov quit (Remote host closed the connection) |
14:41:13 | * | yglukhov joined #nim |
14:47:31 | * | vlad1777d quit (Remote host closed the connection) |
14:47:40 | * | jivank joined #nim |
14:57:25 | * | Demos joined #nim |
14:57:40 | * | Varriount|Phone joined #nim |
15:02:36 | * | Demos_ joined #nim |
15:05:35 | * | Demos quit (Ping timeout: 258 seconds) |
15:40:28 | * | Demos_ quit (Ping timeout: 258 seconds) |
15:43:19 | * | krux02 joined #nim |
15:54:05 | * | Andris_zbx quit (Remote host closed the connection) |
16:01:44 | * | vktec quit (*.net *.split) |
16:01:44 | * | Calinou quit (*.net *.split) |
16:01:44 | * | TheManiac quit (*.net *.split) |
16:01:44 | * | jivank[m] quit (*.net *.split) |
16:01:44 | * | FromGitter quit (*.net *.split) |
16:01:44 | * | cyraxjoe quit (*.net *.split) |
16:01:45 | * | heinrich5991 quit (*.net *.split) |
16:01:45 | * | athie quit (*.net *.split) |
16:01:45 | * | ofelas quit (*.net *.split) |
16:01:45 | * | nim-buildbot quit (*.net *.split) |
16:01:56 | * | FromGitter joined #nim |
16:02:00 | * | vktec joined #nim |
16:02:07 | * | jivank[m] joined #nim |
16:02:10 | * | TheManiac joined #nim |
16:02:10 | * | ofelas joined #nim |
16:02:22 | * | Calinou joined #nim |
16:02:51 | * | athie joined #nim |
16:03:07 | * | yglukhov quit (Remote host closed the connection) |
16:03:18 | * | cyraxjoe joined #nim |
16:03:52 | * | Demos joined #nim |
16:03:56 | * | heinrich5991 joined #nim |
16:08:25 | * | kulelu88 joined #nim |
16:08:33 | * | libman joined #nim |
16:17:39 | * | Demos quit (Ping timeout: 258 seconds) |
16:19:00 | * | ybroze joined #nim |
16:21:53 | * | libman quit (Quit: Leaving.) |
16:22:06 | * | libman joined #nim |
16:27:10 | krux02 | I would like to know, if there is an option to use simd instructions with nim. |
16:27:23 | krux02 | (single instructions multiple data) |
16:29:45 | * | byte512 quit (Ping timeout: 260 seconds) |
16:34:25 | * | PMunch joined #nim |
16:35:14 | cheatfate | krux02, with gcc you can use assembler |
16:35:23 | cheatfate | or intrinsics |
16:36:53 | krux02 | cheatfate: It is not a priority right now, but I would really like to know how I could make SIMD instructions in Nim. If the solution would destroy portability I rather not use it. |
16:38:14 | cheatfate | krux02, it will destroy portability because x86 and arm are not compatible |
16:38:33 | krux02 | I would like to have a solution that can miplement this: proc `+`(a,b: array[4,float32]): array[4,float32] |
16:39:09 | krux02 | yes but as far as I know both have some kind of SIMD |
16:45:23 | * | Demos joined #nim |
16:45:49 | * | yglukhov joined #nim |
16:46:21 | * | Demos quit (Read error: Connection reset by peer) |
16:46:30 | cheatfate | krux02, you can try to implement it, and i think you can start from here http://www.linuxjournal.com/content/introduction-gcc-compiler-intrinsics-vector-processing |
16:47:34 | * | yglukhov quit (Remote host closed the connection) |
16:56:01 | libman | Just noticed that https://www.techempower.com/benchmarks published their big update. Nim MIA. :( |
17:01:54 | * | Varriount|Phone quit (Read error: Connection reset by peer) |
17:03:52 | * | ybroze quit (Ping timeout: 256 seconds) |
17:09:03 | cheatfate | even dont know how to interpret this benchmark, because looks like postgres (rdmbs) is faster then nosql mongodb |
17:09:20 | cheatfate | so what is better, framework, database or language? |
17:11:30 | cheatfate | also most of frameworks do not have support of windows, because there no windows benchmarks... how to interpret this? |
17:12:38 | libman | I just look at PostgreSQL results. |
17:13:07 | * | rynsin joined #nim |
17:13:13 | libman | Someone making the effort to write good implementations for their language is part of the benchmark. ;) |
17:13:15 | * | rokups quit (Quit: Connection closed for inactivity) |
17:16:11 | cheatfate | libman, and i have found `libreactor` as winner in plaintext results |
17:16:20 | cheatfate | how i can find wtf is `libreactor`? |
17:17:32 | cheatfate | because what i have found is not really usable... its just simple c code |
17:18:47 | * | Varriount|Phone joined #nim |
17:18:59 | libman | Interpreting those results takes a bit of skill. I ignore non-SQL results and one-win wonders. |
17:20:13 | cheatfate | libman, how i can find homepage of framework? |
17:20:17 | libman | Also, some tests (ex. fortunes, multiple queries) are more interesting than others. A well-designed Web App wouldn't use HTTP API's for anything that can be statically generated. |
17:21:12 | * | libman is still trying to make sense of https://github.com/TechEmpower/FrameworkBenchmarks/tree/master/frameworks/C/libreactor |
17:21:35 | * | rynsin quit (Quit: rynsin) |
17:22:37 | libman | It doesn't appear for the relevant tests, so I just ignore it. |
17:23:24 | libman | Just look at "multiple queries", "fortunes", and "data updates", and just with SQL DB. |
17:25:23 | libman | The real winner is Golang (fasthttp-postgresql-prefork). |
17:26:17 | * | libman quit (Quit: Leaving.) |
17:26:18 | * | rynsin joined #nim |
17:28:49 | * | ybroze joined #nim |
17:33:50 | * | rynsin quit (Quit: rynsin) |
17:34:00 | cheatfate | google benchmarks made this winner google language :) |
17:37:42 | * | rynsin joined #nim |
17:38:11 | Varriount|Phone | flyx: Your YAML library looks awesome! |
17:39:57 | * | rynsin quit (Max SendQ exceeded) |
17:40:43 | * | rynsin joined #nim |
17:44:20 | * | PMunch quit (Quit: leaving) |
17:45:04 | * | ybroze quit (Ping timeout: 260 seconds) |
17:51:42 | * | ybroze joined #nim |
18:02:29 | * | couven92 joined #nim |
18:06:14 | flyx | Varriount|Phone: thanks! |
18:10:44 | * | Sentreen quit (Ping timeout: 256 seconds) |
18:13:14 | * | rynsin quit (Quit: rynsin) |
18:14:43 | * | rynsin joined #nim |
18:16:04 | * | rynsin quit (Client Quit) |
18:23:00 | * | rynsin joined #nim |
18:23:39 | * | Sentreen joined #nim |
18:28:02 | * | brson joined #nim |
18:37:10 | * | rynsin quit (Quit: rynsin) |
18:39:05 | * | vlad1777d joined #nim |
18:40:24 | * | dddddd joined #nim |
18:48:03 | * | yglukhov joined #nim |
18:52:40 | * | yglukhov quit (Ping timeout: 256 seconds) |
18:59:00 | * | brechtm_ joined #nim |
19:01:56 | * | brechtm quit (Ping timeout: 250 seconds) |
19:02:41 | * | sean` joined #nim |
19:04:13 | * | yglukhov joined #nim |
19:04:52 | * | sean` is now known as seanhagen |
19:05:29 | * | seanhagen quit (Client Quit) |
19:05:41 | * | ybroze quit (Quit: WeeChat 1.5) |
19:07:41 | * | seanhagen joined #nim |
19:07:53 | Varriount|Phone | Araq: Is it supposed to be possible to use macros and templates as vision pragmas for types? |
19:13:34 | * | space-wizard joined #nim |
19:17:57 | * | yglukhov quit (Remote host closed the connection) |
19:18:17 | * | Calinou quit (Ping timeout: 240 seconds) |
19:29:08 | * | Calinou joined #nim |
19:31:44 | * | yglukhov joined #nim |
19:32:37 | * | Calinou quit (Remote host closed the connection) |
19:34:50 | * | brson quit (Read error: Connection reset by peer) |
19:34:57 | * | Varriount|Phone quit (Ping timeout: 240 seconds) |
19:36:01 | * | brson joined #nim |
19:37:38 | * | qwertfisch is now known as qwertunflauschig |
19:53:41 | * | yglukhov quit (Remote host closed the connection) |
19:56:38 | Araq | what is a vision pragma? |
20:01:46 | * | Varriount|Phone joined #nim |
20:09:38 | * | yglukhov joined #nim |
20:11:42 | FromGitter | <ephja> was anything going to change regarding the indexing operator? |
20:17:54 | Araq | works for me. |
20:19:09 | * | vlad1777d quit (Remote host closed the connection) |
20:21:56 | * | yglukhov quit (Remote host closed the connection) |
20:26:59 | * | dmi0 joined #nim |
20:32:21 | FromGitter | <tekjar> Is 4 space indentation considered to be bad nim style? Some how I feel my code to be very cluttered when looking at nested conditional statements. |
20:32:38 | * | yglukhov joined #nim |
20:32:56 | Araq | 2, 3, 4 are perfectly fine |
20:33:17 | FromGitter | <ephja> I agree. it's difficult to parse sometimes |
20:35:09 | Araq | I think 4 spaces are the norm, but nim and its stdlib started with 2 spaces and continue to use 2 spaces |
20:35:34 | FromGitter | <tekjar> Oh cool. Lot of 2 spaces in nimble. My eyes hurt sometimes :P |
20:36:06 | Araq | the best programmer I know uses 1 space :P |
20:36:59 | FromGitter | <tekjar> And who is that? |
20:37:36 | FromGitter | <ephja> they work alone? :p |
20:37:41 | Araq | number of spaces has a negative correlation to IQ :P |
20:37:48 | FromGitter | <tekjar> Hehehhh |
20:38:03 | FromGitter | <ephja> I like 10 spaces |
20:38:38 | FromGitter | <tekjar> Araq’s way of testing IQ :P |
20:39:06 | Araq | but seriously, don't you just adapt after some time? |
20:39:43 | Araq | I mean, I know I never adapted to curly braces :P |
20:39:57 | Araq | but I thought number of spaces are just never an issue |
20:40:00 | FromGitter | <tekjar> I didn’t write much nim. This might as well be because of seeing lot of python code. |
20:40:06 | Araq | except if you use more than 4 :P |
20:42:46 | FromGitter | <tekjar> I’m not sure how others feel? Am I the first to complain about indentation :sweat_smile: |
20:42:51 | FromGitter | <tekjar> ? |
20:44:18 | Araq | it comes up oocasionally |
20:46:06 | FromGitter | <tekjar> Oh. Ok |
20:46:37 | Araq | I don't know why editors cannot render indentation as pleased |
20:47:02 | Araq | millions of lines of code. which miss essential stuff. |
20:47:13 | Araq | in development for decades. |
20:53:26 | * | yglukhov quit (Remote host closed the connection) |
20:55:36 | * | tinAndi joined #nim |
20:55:45 | * | bjz_ joined #nim |
20:57:14 | * | yglukhov joined #nim |
21:06:03 | * | yglukhov quit (Remote host closed the connection) |
21:16:38 | * | nsf quit (Quit: WeeChat 1.6) |
21:20:06 | * | chemist69 quit (Ping timeout: 258 seconds) |
21:21:53 | * | chemist69 joined #nim |
21:24:36 | * | yglukhov joined #nim |
21:28:07 | * | dmi0 quit (Quit: ~) |
21:29:04 | * | yglukhov quit (Ping timeout: 256 seconds) |
21:30:01 | * | dmi0 joined #nim |
21:34:01 | * | bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:43:17 | * | Matthias247 joined #nim |
21:52:50 | * | yglukhov joined #nim |
21:57:26 | * | yglukhov quit (Ping timeout: 250 seconds) |
22:03:05 | FromGitter | <timeyyy> R.I.P \t, fwiw I am preferring 2 space indentation |
22:03:24 | * | tinAndi quit (Quit: ChatZilla 0.9.93 [Firefox 50.0/20161104212021]) |
22:09:01 | * | bjz joined #nim |
22:11:21 | * | SirCmpwn quit (Ping timeout: 260 seconds) |
22:13:55 | * | SirCmpwn joined #nim |
22:14:49 | * | rynsin joined #nim |
22:19:15 | * | couven92 quit (Quit: Client disconnecting) |
22:21:56 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:35:10 | * | yglukhov joined #nim |
22:38:24 | vktec | Is it possible to specify additions to the path using a pragma? |
22:39:12 | vktec | I'm importing stuff from compiler that requires $lib/packages/docutils to be in the path, but I'd rather not have to specify that as a compiler flag |
22:39:38 | * | yglukhov quit (Ping timeout: 250 seconds) |
22:41:12 | Araq | I don't think so and instead the compiler should use relative imports |
22:41:25 | * | Calinou joined #nim |
22:41:27 | Araq | the --path concept is already bad enough |
22:42:09 | Araq | let's not make it even harder to control |
22:42:47 | vktec | With import compiler/scriptconfig in my Nim file: /home/vktec/.nimble/pkgs/compiler-0.15.2/compiler/docgen.nim(16, 40) Error: cannot open 'rstast' |
22:43:09 | vktec | With --path:\$lib/packages/docutils it works fine |
22:44:52 | vktec | Araq: fwiw, this issue has been around a while, and --path is the fix you recommended for it. https://github.com/nim-lang/Nim/issues/3607 |
22:46:30 | Araq | I changed my mind. :P |
22:46:52 | Araq | the more people use the compiler as a library, the more useful it should be as a library |
22:47:36 | * | rynsin quit (Quit: rynsin) |
22:47:45 | vktec | Would replacing `import rstast` with `import packages/docutils/rstast` in compiler/docgen.nim work? |
22:47:52 | Araq | yes |
22:48:00 | vktec | Shall I submit a PR? |
22:48:08 | Araq | maybe more places need to be updated |
22:48:12 | Araq | but that's the general idea |
22:48:15 | Araq | PR welcome |
22:48:17 | * | vktec greps |
22:48:55 | Araq | maybe we should decide what to do with 'packages' though. oh well |
22:49:40 | * | rynsin joined #nim |
22:50:46 | vktec | The only place where rstgen specifically appears to be an issue is docgen.nim |
22:50:57 | * | PMunch joined #nim |
22:50:57 | vktec | There may be other modules with similar problems |
22:51:33 | vktec | I'll submit a PR for compiler/docgen.nim and see if I run into any similar issues later on |
22:52:30 | Araq | no, patch compiler/nim.cfg |
22:52:40 | Araq | and see if bootstrapping works |
22:53:01 | Araq | path:"$lib/packages/docutils" # remove this line |
22:53:52 | vktec | Bootstrapping fails |
22:54:11 | vktec | (with that line commented out) |
22:54:43 | Araq | well now you know. your fix is incomplete. |
22:56:03 | vktec | Yep |
22:56:31 | vktec | Right, it's compiling properly now, so it'll probably complete |
22:56:41 | vktec | Completed successfully |
22:58:13 | * | vendethiel quit (Ping timeout: 248 seconds) |
23:00:12 | * | elrood quit (Quit: Leaving) |
23:01:00 | Araq | vktec: if you feel adventureous, you can also patch condsyms to use the shared ModuleGraph thing instead of globals. needs nimble and nimsuggest patches too though. |
23:02:43 | vktec | Araq: I doubt I know my way around the code well enough to do that |
23:03:56 | Araq | remove some code and see what the Nim compiler tells you :-) |
23:04:25 | Araq | it's called software development by deleting code. |
23:05:30 | vktec | :D |
23:07:11 | vktec | This is my first time contributing to a large project, so I think I'll start off with things I know I can do, rather than jumping in at the deep end |
23:11:52 | * | rynsin quit (Quit: rynsin) |
23:19:20 | Araq | ugh, 43 failing tests on my sighashes branch |
23:19:33 | vktec | :-/ |
23:19:57 | * | libman joined #nim |
23:20:21 | vktec | Travis has been going for almost 15min on my PR, but I guess there are rather a lot of tests it has to do |
23:21:04 | * | rynsin joined #nim |
23:21:19 | Araq | we have a large test suite, yeah |
23:22:13 | vktec | That's a good thing |
23:22:33 | * | vktec wanders off to go write more unit tests for his own code |
23:25:00 | * | chemist69 quit (Ping timeout: 246 seconds) |
23:25:00 | * | aziz joined #nim |
23:27:46 | * | chemist69 joined #nim |
23:29:04 | vktec | Araq: Travis has now approved my PR, if you'd like to take a look at it: https://github.com/nim-lang/Nim/pull/5067 |
23:37:39 | * | Snircle joined #nim |
23:38:38 | * | arnetheduck quit (Ping timeout: 265 seconds) |
23:41:38 | * | Demos joined #nim |
23:44:15 | * | rynsin quit (Quit: rynsin) |
23:49:13 | * | seanhagen left #nim ("ERC (IRC client for Emacs 25.1.1)") |
23:50:11 | * | Trustable_2 quit (Remote host closed the connection) |