00:00:30 | * | Menche quit (Read error: Connection reset by peer) |
00:00:58 | * | Menche joined #nim |
00:05:03 | * | jholland quit (Quit: Connection closed for inactivity) |
00:12:42 | * | Jervac joined #nim |
00:36:47 | * | endragor joined #nim |
00:40:46 | * | endragor quit (Remote host closed the connection) |
00:59:07 | * | saml_ quit (Remote host closed the connection) |
01:04:24 | * | wb quit (Ping timeout: 245 seconds) |
01:04:32 | * | gsingh93 joined #nim |
01:20:17 | * | brson quit (Quit: leaving) |
01:27:23 | * | brson joined #nim |
01:38:43 | * | a5i joined #nim |
02:00:22 | * | mnemonikk quit (Ping timeout: 265 seconds) |
02:00:34 | * | mnemonikk joined #nim |
02:02:18 | * | pipeep quit (Ping timeout: 265 seconds) |
02:06:29 | * | BitPuffin quit (Ping timeout: 245 seconds) |
02:07:47 | * | pipeep joined #nim |
02:09:42 | * | wink-s quit (Quit: Page closed) |
02:27:02 | * | TEttinger joined #nim |
02:28:07 | * | brson quit (Quit: leaving) |
02:41:47 | * | darkf joined #nim |
02:43:16 | * | Jervac quit (Ping timeout: 246 seconds) |
02:43:17 | * | milosn quit (Ping timeout: 256 seconds) |
02:50:47 | * | milosn joined #nim |
03:06:55 | * | Demon_Fox joined #nim |
03:40:16 | * | endragor joined #nim |
03:43:00 | * | dhasenan quit (Read error: Connection reset by peer) |
03:44:27 | * | Menche quit (Quit: Leaving) |
05:56:07 | * | Menche joined #nim |
06:09:42 | * | HakanD joined #nim |
06:49:24 | * | endragor quit (Ping timeout: 245 seconds) |
06:52:34 | * | endragor joined #nim |
06:53:15 | * | a5i quit (Quit: Connection closed for inactivity) |
06:54:06 | * | Kingsquee quit (Quit: Konversation terminated!) |
07:01:19 | * | vendethiel joined #nim |
07:18:01 | * | BlaXpirit joined #nim |
07:18:15 | * | endragor quit (Remote host closed the connection) |
07:23:24 | * | gsingh93 quit (Ping timeout: 272 seconds) |
07:24:39 | * | MyMind joined #nim |
07:27:46 | * | Sembei quit (Ping timeout: 250 seconds) |
07:36:29 | * | lyrobot joined #nim |
07:36:33 | * | lyrobot quit (Remote host closed the connection) |
07:53:48 | * | lyro joined #nim |
08:06:31 | * | vendethiel quit (Ping timeout: 250 seconds) |
08:09:14 | * | Mewtwo joined #nim |
08:10:39 | * | Mewtwo quit (Remote host closed the connection) |
08:11:00 | * | Mewtwo joined #nim |
08:13:37 | * | Mewtwo quit (Remote host closed the connection) |
08:13:58 | * | Mewtwo joined #nim |
08:17:10 | * | Pisuke joined #nim |
08:29:23 | * | Sembei joined #nim |
08:29:39 | * | Pisuke quit (Read error: Connection reset by peer) |
08:39:09 | * | endragor joined #nim |
08:40:00 | * | Trustable joined #nim |
08:43:59 | * | Demon_Fox quit (Quit: Leaving) |
08:47:05 | * | milosn quit (Ping timeout: 256 seconds) |
09:07:54 | * | wb joined #nim |
09:09:23 | * | Ven joined #nim |
09:18:33 | federico3 | Araq: regarding #2490, when I tried to do logging in a multithreaded application I got a number of GcUnsafe warnings around the use of "handlers" |
09:21:11 | * | Sembei quit (Max SendQ exceeded) |
09:22:35 | * | Sembei joined #nim |
09:28:27 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:39:45 | * | milosn joined #nim |
09:42:41 | * | milosn quit (Read error: Connection reset by peer) |
09:43:22 | * | Sembei quit (Max SendQ exceeded) |
09:44:51 | * | milosn joined #nim |
09:46:00 | * | pafmaf joined #nim |
09:50:49 | * | pafmaf quit (Ping timeout: 264 seconds) |
09:55:33 | * | pafmaf joined #nim |
09:57:57 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:58:48 | * | Sembei joined #nim |
10:04:47 | * | Sembei quit (Max SendQ exceeded) |
10:06:47 | * | Sembei joined #nim |
10:10:33 | * | Sembei quit (Max SendQ exceeded) |
10:12:54 | * | Sembei joined #nim |
10:15:58 | * | repax joined #nim |
10:16:21 | * | Sembei quit (Max SendQ exceeded) |
10:22:03 | * | Sembei joined #nim |
10:25:01 | * | milosn quit (Ping timeout: 264 seconds) |
10:27:53 | * | Sembei quit (Excess Flood) |
10:27:53 | * | HakanD quit (Read error: Connection reset by peer) |
10:28:49 | * | pafmaf__ joined #nim |
10:29:49 | * | pafmaf quit (Ping timeout: 264 seconds) |
10:31:00 | * | Sembei joined #nim |
10:31:43 | * | pafmaf joined #nim |
10:33:25 | * | pafmaf__ quit (Ping timeout: 264 seconds) |
10:33:25 | * | Sembei quit (Max SendQ exceeded) |
10:35:27 | * | milosn joined #nim |
10:35:57 | * | HakanD joined #nim |
10:38:15 | * | milosn quit (Read error: Connection reset by peer) |
10:40:32 | * | milosn joined #nim |
10:41:25 | * | JinShil joined #nim |
10:50:31 | * | Sembei joined #nim |
10:53:35 | * | a5i joined #nim |
10:54:49 | * | Senketsu_ quit (Quit: Leaving) |
10:57:33 | * | Senketsu joined #nim |
10:57:50 | * | Sembei quit (Max SendQ exceeded) |
11:01:01 | * | lyro_ joined #nim |
11:01:04 | * | lyro quit (Remote host closed the connection) |
11:01:16 | * | lyro_ is now known as lyro |
11:01:43 | * | Sembei joined #nim |
11:05:41 | * | Sembei quit (Excess Flood) |
11:06:14 | * | pafmaf quit (Quit: This computer has gone to sleep) |
11:07:44 | * | untitaker quit (Ping timeout: 276 seconds) |
11:07:54 | * | jefus_ joined #nim |
11:11:34 | * | Sembei joined #nim |
11:11:35 | * | jefus quit (Ping timeout: 256 seconds) |
11:13:22 | * | untitaker joined #nim |
11:13:51 | * | lyro` joined #nim |
11:16:31 | * | emilsp joined #nim |
11:17:04 | * | Sembei quit (Max SendQ exceeded) |
11:17:13 | * | lyro` quit (Remote host closed the connection) |
11:20:41 | * | Sembei joined #nim |
11:21:29 | * | milosn quit (Ping timeout: 252 seconds) |
11:26:31 | * | Sembei quit (Max SendQ exceeded) |
11:27:08 | * | JinShil quit (Quit: Konversation terminated!) |
11:27:53 | * | Sembei joined #nim |
11:28:52 | * | repax quit (Quit: repax) |
11:47:51 | * | TEttinger quit (Ping timeout: 256 seconds) |
11:51:17 | * | pafmaf joined #nim |
11:54:22 | * | milosn joined #nim |
11:55:52 | * | Sembei quit (Ping timeout: 264 seconds) |
12:01:24 | * | Sembei joined #nim |
12:12:13 | * | milosn quit (Read error: Connection reset by peer) |
12:12:50 | * | BlaXpirit quit (Read error: Connection reset by peer) |
12:13:37 | * | BlaXpirit joined #nim |
12:13:52 | * | milosn joined #nim |
12:18:37 | * | Mewtwo quit (Remote host closed the connection) |
12:20:14 | * | Sembei quit (Ping timeout: 245 seconds) |
12:24:26 | * | Sembei joined #nim |
12:28:04 | * | repax joined #nim |
12:30:17 | * | Sembei quit (Ping timeout: 276 seconds) |
12:30:45 | * | milosn quit (Ping timeout: 248 seconds) |
12:34:20 | * | Sembei joined #nim |
12:37:04 | * | bjz joined #nim |
12:38:22 | * | milosn joined #nim |
12:42:15 | * | Sembei quit (Ping timeout: 256 seconds) |
12:44:13 | * | Sembei joined #nim |
12:51:19 | * | Sembei quit (Ping timeout: 256 seconds) |
12:53:12 | * | pafmaf quit (Quit: This computer has gone to sleep) |
13:01:25 | * | TEttinger joined #nim |
13:03:59 | * | HakanD quit (Read error: Connection reset by peer) |
13:07:02 | * | milosn quit (Ping timeout: 256 seconds) |
13:07:32 | * | HakanD joined #nim |
13:10:02 | * | LoneTech quit (Ping timeout: 250 seconds) |
13:11:58 | * | gokr joined #nim |
13:12:10 | Araq | federico3: are you on devel? |
13:12:12 | * | Sembei joined #nim |
13:16:16 | * | TEttinger quit (Ping timeout: 244 seconds) |
13:17:28 | * | milosn joined #nim |
13:24:50 | * | milosn quit (Ping timeout: 252 seconds) |
13:24:52 | federico3 | Araq: the branch of the compiler itself? No, I'm using 0.10.2 |
13:25:14 | Araq | federico3: logging is threadsafe in devel |
13:25:17 | * | Pisuke joined #nim |
13:25:27 | Araq | it still sucks as its thread local |
13:25:35 | Araq | but it's "safe" at least ;-) |
13:27:35 | * | Sembei quit (Ping timeout: 256 seconds) |
13:28:34 | federico3 | oh, speaking of which: are the docpages about the latest release or devel? They should have a version number |
13:29:08 | federico3 | and possibly keep every doc version around, e.g. http://nim-lang.org/<version>/times.html |
13:29:24 | * | pafmaf_ joined #nim |
13:32:09 | federico3 | I'll open an issue and see if I can contribute a patch |
13:32:15 | * | milosn joined #nim |
13:34:01 | * | Ven joined #nim |
13:34:54 | * | BitPuffin joined #nim |
13:35:49 | * | pafmaf_ quit (Ping timeout: 264 seconds) |
13:35:51 | Araq | that would be really awesome! |
13:36:05 | Araq | (I agree completely) |
13:36:23 | * | pafmaf joined #nim |
13:36:30 | federico3 | opening issue... |
13:36:32 | Araq | 0.10.4 is ready whenever varriount shows up here |
13:40:30 | federico3 | meh I can't use "<" ">" in issues |
13:40:38 | federico3 | #2492 |
13:41:10 | * | pafmaf__ joined #nim |
13:41:56 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
13:42:25 | * | pafmaf quit (Ping timeout: 264 seconds) |
13:43:25 | * | Pisuke quit (Read error: Connection reset by peer) |
13:44:37 | * | Pisuke joined #nim |
13:47:11 | renesac | Araq: commented on my pull request |
13:47:17 | renesac | on a related note |
13:48:19 | renesac | if we moved only | below & or & above | in the precedence table, we could fix the issue with bitwise operation precedence regarding comparison operators |
13:49:01 | * | mpthrapp_ joined #nim |
13:49:35 | * | Pisuke quit (Read error: Connection reset by peer) |
13:50:36 | * | mpthrapp quit (Ping timeout: 240 seconds) |
13:50:38 | renesac | xor would become an ugly |^, but at least it would be clear, to those who know the rules, that it is the same precedence than | |
13:50:43 | renesac | (or) |
13:56:23 | renesac | or better, I will open an issue for it |
14:02:13 | Araq | renesac: how so? |
14:02:27 | Araq | what has | and & to do with anything? |
14:02:51 | renesac | if we used them for bitwise operations |
14:04:38 | * | milosn quit (Read error: Connection reset by peer) |
14:04:43 | renesac | I'm writting a issue on github explaining better |
14:04:59 | * | milosn joined #nim |
14:05:12 | * | Sembei joined #nim |
14:05:53 | Araq | well you won't like that, but I think |< |> |& || |^ is kind of cute, | then means "bitwise" |
14:06:16 | renesac | || is already used for parallel |
14:06:41 | Araq | only as an iterator though, so there is no clash |
14:06:50 | Araq | well not an important clash anyway |
14:07:10 | renesac | and it would be nice if at least & is at an higher priority than the rest |
14:07:15 | renesac | but I do agree that it is cute |
14:07:24 | * | Sembei quit (Max SendQ exceeded) |
14:07:34 | renesac | |^ won't look as ugly then |
14:07:47 | Araq | why does & need a higher prio? |
14:08:05 | renesac | almost all languages give it higher priority |
14:08:09 | renesac | including nim |
14:08:30 | Araq | but in Nim it's not bitwise AND |
14:08:56 | renesac | but of course we can adopt the smalltalk way regarding that and parenthesis can be used in complex operations |
14:09:25 | * | Sembei joined #nim |
14:10:14 | renesac | well, it is bitwise AND, at least for now |
14:11:14 | Araq | for whom? for Nim it's concat in general |
14:11:41 | renesac | oh, I'm talking about the current relative priority of AND and OR |
14:11:44 | renesac | for bitwise |
14:11:58 | renesac | and that most languages adopt that |
14:12:17 | renesac | sometimes with XOR in an intermediate priority, sometimes in the same priority as OR |
14:12:36 | * | Sembei quit (Max SendQ exceeded) |
14:13:45 | * | ChrisMAN joined #nim |
14:14:09 | renesac | and |> is at least easier to type on a normal keyboard than *> (not as good as >> though ;) ) |
14:14:53 | renesac | but there are some keyboards (laptop ones especially) that likes to hide that key |
14:15:23 | * | Sembei joined #nim |
14:16:29 | * | milosn quit (Ping timeout: 245 seconds) |
14:18:33 | * | Sembei quit (Max SendQ exceeded) |
14:21:58 | Araq | what is a "normal keyboard"? :P |
14:22:15 | Araq | one without my precious äöüß ? |
14:22:19 | renesac | an ISO or american one |
14:22:29 | renesac | I don't know if your german keyboard moves the | |
14:22:44 | renesac | mine has ç |
14:23:00 | renesac | | is besides the Z |
14:23:04 | Araq | well actually | and < and > are all on the same key |
14:23:40 | renesac | oh |
14:23:52 | * | Sembei joined #nim |
14:24:10 | renesac | that is pretty weird |
14:24:10 | renesac | XD |
14:24:49 | renesac | ok, the * is also to the side, easier to reach |
14:28:36 | * | Sembei quit (Max SendQ exceeded) |
14:29:48 | saml | is juce.com good? |
14:39:54 | renesac | gotta go, I will post the issue latter |
14:40:08 | * | renesac is now known as renesac|away |
14:41:41 | * | Sembei joined #nim |
14:45:44 | federico3 | asciidoc <3 |
14:46:07 | * | Sembei quit (Max SendQ exceeded) |
14:51:46 | * | Sembei joined #nim |
14:55:23 | * | Sembei quit (Quit: WeeChat 1.1.1) |
14:56:41 | fowl | easier to type is a suckish reason to do anything |
14:57:03 | fowl | europeans hate typing []s because they have to hit shift |
14:58:02 | repax | or alt+8, alt+9 |
14:58:23 | saml | are we web yet? |
14:58:33 | saml | ready for fullstack web development on nim |
15:00:00 | * | LoneTech joined #nim |
15:04:12 | * | darkf quit (Quit: Leaving) |
15:04:22 | * | pafmaf__ quit (Quit: This computer has gone to sleep) |
15:05:00 | emilsp | can we websockets ? |
15:07:48 | * | jholland joined #nim |
15:08:14 | EXetoC | emilsp: there's only an unfinished lib |
15:09:23 | Joe-T | is there a good test file for testing regex split? |
15:11:29 | * | endragor quit (Ping timeout: 244 seconds) |
15:21:39 | HakanD | finally figured out the type system and how scoping works in nim |
15:22:17 | repax | All of it? |
15:22:38 | HakanD | programming with dynamically typed languages for a long time makes funny things to one's brain |
15:22:44 | HakanD | dunno (: |
15:23:28 | federico3 | HakanD: and viceversa |
15:23:48 | HakanD | hah, i guess so |
15:24:40 | * | pafmaf__ joined #nim |
15:37:35 | * | endragor joined #nim |
15:38:45 | * | milosn joined #nim |
15:41:05 | * | arnetheduck quit (Ping timeout: 252 seconds) |
15:44:41 | * | novist joined #nim |
15:50:39 | * | davidhq joined #nim |
15:53:15 | * | endragor quit (Remote host closed the connection) |
15:54:04 | * | Matthias247 joined #nim |
16:01:48 | * | vendethiel joined #nim |
16:07:50 | Joe-T | does this look ok? https://github.com/JosephTurner/Nim/commit/13e5a9ea6ca4eee1d2ff0e7fc9b3c1ceff7a31b4 |
16:08:12 | Joe-T | I still feel it could have been done cleaner though.. |
16:11:34 | * | drewsrem joined #nim |
16:13:15 | drewsrem | Any pointers how to translate bitfields in c-headers to nim code? - c2nim fails on them |
16:16:26 | Araq | Joe-T: it's better than no patch at all, please make a PR |
16:16:44 | Araq | drewsrem: use --header with c2nim and simply remove "colon bitsize" in the C code |
16:16:56 | drewsrem | Araq, will do, ty |
16:16:57 | Araq | that's the best you can do for now |
16:17:41 | * | repax quit (Quit: repax) |
16:31:46 | * | Ven joined #nim |
16:35:32 | drewsrem | Is there something to translate va_list to? |
16:37:01 | Araq | drewsrem: usually you don't translate the body of a C function |
16:37:12 | Araq | for the prototype ... becomes .varargs |
16:37:24 | drewsrem | Araq, thanks |
16:48:45 | * | endragor joined #nim |
16:54:02 | * | endragor quit (Remote host closed the connection) |
17:08:42 | * | Mewtwo joined #nim |
17:10:39 | flyx | is there a compiler option to show the generated AST after processing of all macros and templates? |
17:11:08 | * | Mewtwo quit (Remote host closed the connection) |
17:11:15 | * | jefus_ is now known as jefus |
17:11:27 | * | Mewtwo joined #nim |
17:13:36 | * | gsingh93 joined #nim |
17:21:05 | * | Mewtwo quit (Remote host closed the connection) |
17:23:26 | * | elbow_jason quit (Remote host closed the connection) |
17:24:58 | * | BitPuffin quit (Ping timeout: 245 seconds) |
17:29:32 | Araq | flyx: no. it used to do that with --verbosity:2 |
17:29:52 | Araq | but the number of expansions is insane and overwhelming |
17:30:02 | flyx | I can imagine that |
17:30:15 | Araq | you can output what you want via 'echo repr' inside a macro |
17:30:53 | * | brson joined #nim |
17:32:24 | flaviu | Araq: I think he's looking for something like a Nim backend for the compiler. |
17:33:01 | flaviu | ie, use the pretty printer instead of codegen at the end of the process |
17:36:35 | * | HakanD quit (Read error: Connection reset by peer) |
17:39:51 | Araq | flaviu: that's not particularly hard to do |
17:40:28 | Araq | but it never occured to me it's a useful tool to get into the compiler |
17:54:07 | * | pafmaf__ quit (Quit: Verlassend) |
18:00:40 | * | shodan45 joined #nim |
18:05:17 | * | pregressive joined #nim |
18:08:30 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
18:17:09 | * | drewsrem quit (Quit: Leaving) |
18:23:13 | * | pafmaf joined #nim |
18:26:58 | * | HakanD joined #nim |
18:40:42 | * | Ven joined #nim |
18:55:21 | dom96 | Araq: I shall fix my PR ASAP |
18:56:53 | * | brson quit (Quit: leaving) |
18:57:43 | * | brson joined #nim |
19:02:54 | Araq | dom96: no worries. I wonder where Varriount is |
19:03:06 | Araq | maybe I need to build the release on my own |
19:05:47 | * | johnsoft quit (Read error: Connection reset by peer) |
19:06:32 | * | johnsoft joined #nim |
19:07:45 | * | repax joined #nim |
19:09:22 | dom96 | Araq: done |
19:09:44 | Araq | well you also need to update news.txt |
19:09:46 | dom96 | no need to shadow _ |
19:10:30 | ldlework | lol |
19:11:44 | dom96 | Araq: done |
19:12:05 | Araq | dom96: how come? |
19:12:20 | Araq | the C codegen should pick the same name then for these _ |
19:13:19 | dom96 | likely because addInterfaceDecl is not called for them? |
19:15:41 | Araq | hrm |
19:16:09 | Araq | do you set sfGenSym for them? |
19:22:28 | dom96 | no |
19:25:13 | * | BitPuffin joined #nim |
19:26:00 | * | Mewtwo joined #nim |
19:28:37 | * | ChrisMAN quit (Ping timeout: 264 seconds) |
19:30:06 | Araq | well find out why it works please |
19:32:05 | dom96 | ugh, why? |
19:32:24 | dom96 | I want to work on something else now. |
19:34:18 | * | repax quit (Quit: repax) |
19:34:22 | Araq | because mankind seeks deep knowledge |
19:36:12 | dom96 | I'm assuming it's because _ never gets added to the resulting AST. |
19:37:00 | pigmej | hmm, what's the way to install nimsuggest ? |
19:37:37 | * | BitPuffin quit (Ping timeout: 264 seconds) |
19:37:40 | pigmej | nimble crashes with weird error about ast in compiler |
19:37:57 | pigmej | like this: http://wklej.to/cpDuD/text |
19:38:18 | pigmej | I saw some github issues about that but I havent undertand solution or something |
19:38:38 | dom96 | yeah, we need to fix that... |
19:38:51 | dom96 | can't install it via nimble currently |
19:39:18 | pigmej | then how? :-) |
19:39:21 | pigmej | clone of nimsuggest ? |
19:39:37 | dom96 | clone the Nim repo |
19:39:44 | dom96 | it's in the compiler dir |
19:39:46 | pigmej | done already :) |
19:39:49 | pigmej | ah |
19:39:52 | dom96 | or tools can't remember |
19:39:56 | dom96 | compile it there |
19:40:08 | pigmej | right |
19:40:22 | pigmej | compiler/nimsuggest |
19:40:41 | pigmej | ok works:) |
19:40:42 | pigmej | thx ;) |
19:40:56 | pigmej | I will try to integrate nimsuggest in emacs :) |
19:50:06 | * | Jervac joined #nim |
19:51:47 | * | user7181 joined #nim |
19:54:23 | * | Jervac quit (Quit: Page closed) |
19:56:31 | * | jefus quit (Quit: Leaving) |
19:56:56 | * | jefus joined #nim |
19:58:04 | * | Mewtwo quit (Remote host closed the connection) |
19:58:34 | * | Mewtwo joined #nim |
20:01:12 | * | Mewtwo quit (Remote host closed the connection) |
20:02:53 | * | Mewtwo joined #nim |
20:04:34 | * | Triplefox quit (Quit: No Ping reply in 180 seconds.) |
20:04:50 | * | Triplefox joined #nim |
20:05:07 | * | Mewtwo quit (Remote host closed the connection) |
20:06:04 | * | Mewtwo joined #nim |
20:13:15 | reactormonk | pigmej, also, please take a look at company too |
20:13:25 | reactormonk | I've had several people suggest using that instead of autocomplete |
20:13:45 | * | pafmaf quit (Quit: This computer has gone to sleep) |
20:14:32 | reactormonk | ... nevermind ^^ |
20:14:36 | pigmej | reactormonk: sure, company is awesome :) |
20:14:42 | pigmej | ac is hmm, 'hacky' |
20:14:55 | pigmej | ac have quite nice features which are non existent in company but... ;-) |
20:15:11 | pigmej | I will try to do company backend which uses nimsuggest |
20:15:14 | reactormonk | preferably you'd split the backend vs. the frontend |
20:15:19 | pigmej | sure |
20:15:51 | pigmej | similar like anaconda does for python |
20:15:53 | reactormonk | how exactly do you invoke nimsuggest? I've messed with nim serve before |
20:16:08 | pigmej | nimsuggest is client - server |
20:16:23 | pigmej | so preferably / probably emacs will open one nimsuggest for project |
20:16:33 | reactormonk | yup |
20:16:38 | pigmej | or maybe one global if it can handle different files |
20:16:43 | pigmej | (haven't checked yet) |
20:16:52 | pigmej | then elisp will talk to nimsuggest directly |
20:17:09 | reactormonk | kinda. you make a buffer where you store the communication in |
20:17:16 | pigmej | nimsuggest can communicate over stdin |
20:17:20 | reactormonk | exactly. |
20:17:25 | reactormonk | elisp works via buffers. |
20:17:32 | pigmej | yeah |
20:17:36 | pigmej | some hidden some not |
20:18:06 | reactormonk | preferably nimsuggest would talk in sexp ;-) |
20:18:29 | * | irrequietus joined #nim |
20:18:38 | * | irrequietus quit (Changing host) |
20:18:38 | * | irrequietus joined #nim |
20:18:59 | pigmej | reactormonk: I will try to base on anaconda mode :) |
20:19:25 | reactormonk | neat |
20:19:32 | pigmej | and / or / also alchemist for elixir ;) |
20:20:10 | reactormonk | choose one, fork it, go mess with the things that aren't nim |
20:20:29 | pigmej | almost all ;] |
20:20:36 | reactormonk | anaconda is only 550 loc |
20:21:10 | pigmej | yeah, but it has separate python server + jedi etc |
20:21:13 | reactormonk | and the word "python" only appears in the top quadrant |
20:21:28 | reactormonk | I don't see any code reference to jedi |
20:21:41 | reactormonk | ah, but it's required :-( |
20:21:45 | pigmej | ;-) |
20:21:47 | * | Jehan_ joined #nim |
20:22:12 | pigmej | jedi for python is completion, so let's say something like nimsuggest :) |
20:22:14 | pigmej | still good path |
20:22:23 | * | user7181 quit (Ping timeout: 256 seconds) |
20:22:25 | reactormonk | anaconda looks good to me, your pick |
20:22:36 | Jehan_ | Is there a way to either (1) efficiently set all elements in a set of type set[1..100] or (2) create the complement of such a set? |
20:22:41 | pigmej | yeah I use anaconda every day :) |
20:22:51 | reactormonk | go for that one then |
20:23:09 | pigmej | https://github.com/proofit404/anaconda-mode/blob/master/anaconda_mode.py maybe that would be the easiest way :) |
20:23:12 | reactormonk | Jehan_, write a literal? |
20:23:19 | Araq | Jehan_: {1..100} ? |
20:23:25 | Jehan_ | The problem is that when I use {1..100}, it's interpreted as a set[0..65535] and I don't seem to be able to cast it down to set[1..100]. |
20:23:34 | reactormonk | pigmej, yeah, but no python dependencies |
20:23:45 | Araq | type R = range[1..100] |
20:23:53 | Araq | {1.R .. 100.R} ? |
20:24:11 | Jehan_ | Hmm, this didn't work, either, but I may have screwed it up, let me try again. |
20:24:31 | Araq | maybe there is a bug in the compiler. |
20:24:42 | * | pafmaf joined #nim |
20:25:54 | Jehan_ | Ah, nevermind, got it. I forgot the range[] around the actual range. |
20:28:18 | Jehan_ | Still not pretty, but it works. |
20:29:24 | * | user7181 joined #nim |
20:30:00 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:31:32 | * | nande joined #nim |
20:33:06 | * | Ven joined #nim |
20:43:15 | * | a5i quit (Quit: Connection closed for inactivity) |
20:43:57 | * | Matthias247 quit (Read error: Connection reset by peer) |
20:46:29 | Joe-T | to add a test, should I create a new file in tests, and increment a number at the end of the file name? |
20:47:36 | Joe-T | or multiple tests in the existing file, and new lining the output: in the discard at the top of the file |
20:47:53 | reactormonk | Joe-T, which issue? |
20:48:10 | Joe-T | https://github.com/Araq/Nim/pull/2494 |
20:48:17 | Joe-T | the matching error |
20:48:37 | reactormonk | yeah, just add it to the bottom of the file in the when isMainModule part. |
20:48:56 | reactormonk | these statements will be executed by the tester as well. |
20:49:16 | Joe-T | oh I see, ok thanks |
20:53:29 | * | HakanD quit (Quit: Be back later ...) |
21:03:08 | * | davidhq quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
21:14:21 | * | nulpunkt quit (Read error: Connection reset by peer) |
21:14:29 | * | nulpunkt joined #nim |
21:15:11 | * | Mewtwo quit (Remote host closed the connection) |
21:18:41 | * | dhasenan joined #nim |
21:20:33 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
21:24:26 | * | Mewtwo_ joined #nim |
21:24:33 | * | Mewtwo_ quit (Remote host closed the connection) |
21:25:33 | * | Mewtwo_ joined #nim |
21:26:02 | * | Mewtwo_ quit (Remote host closed the connection) |
21:34:44 | * | Mat4 joined #nim |
21:34:45 | Mat4 | hello |
21:36:14 | * | user7181 quit (Ping timeout: 250 seconds) |
21:41:59 | * | Jervac joined #nim |
21:43:48 | * | user7181 joined #nim |
21:48:29 | * | pafmaf quit (Quit: This computer has gone to sleep) |
21:51:53 | * | Jervac left #nim ("Leaving") |
21:54:46 | * | a5i joined #nim |
21:58:23 | BlaXpirit | i'm trying to use nim js and I get https://github.com/Araq/Nim/blob/b48f9c4/lib/pure/os.nim#L862, 10 Error: undeclared identifier: 'File' |
21:59:10 | Araq | BlaXpirit: os is not available for JS |
21:59:14 | Araq | hi Mat4 |
21:59:19 | Mat4 | hi Araq |
21:59:22 | BlaXpirit | Araq, the thing is i'm not importing it |
22:00:56 | BlaXpirit | hm maybe i am |
22:02:25 | BlaXpirit | just unsigned, intsets, math |
22:03:16 | * | brson quit (Quit: leaving) |
22:03:51 | Araq | intsets imports os |
22:03:55 | Araq | for some reason |
22:04:02 | Araq | I think you can just remove that import |
22:04:40 | BlaXpirit | :| |
22:05:06 | Araq | btw the modules which support JS, do say so |
22:07:04 | * | brson joined #nim |
22:07:06 | reactormonk | Araq, https://github.com/Araq/Nim/pull/2494/files code checks out, tests works, do you like the code? |
22:07:36 | BlaXpirit | sigh |
22:08:34 | Araq | reactormonk: you need to document re.split changed behaviour |
22:08:37 | * | Jervac joined #nim |
22:08:49 | Araq | but apart from that, it's fine |
22:09:04 | a5i | how2 use nimbus again? |
22:09:06 | Araq | BlaXpirit: remove "os ," how hard can it be? |
22:09:13 | BlaXpirit | i removed it |
22:09:31 | Araq | good |
22:09:53 | * | BitPuffin joined #nim |
22:10:09 | * | pregressive quit () |
22:10:20 | reactormonk | Araq, how do you want it documented? The proc documentation has been changed. |
22:10:28 | Araq | news.txt |
22:10:38 | Araq | aka changelog for the upcoming release |
22:10:49 | EXetoC | .eval echo "a5i" |
22:10:52 | Mimbus | EXetoC: a5i |
22:11:46 | BlaXpirit | i assume iterators don't work in js |
22:12:29 | Araq | BlaXpirit: inline iterators do |
22:12:33 | reactormonk | Araq, make a new section on top and put it there? |
22:12:39 | BlaXpirit | not bad |
22:12:51 | Araq | reactormonk: read news.txt please |
22:13:11 | Araq | "Changes affecting backwards compatibility" |
22:13:11 | BlaXpirit | but seriously, how many pull requests will it take until `re` is good? |
22:13:15 | a5i | thx |
22:13:25 | Araq | BlaXpirit: 2-4 |
22:13:26 | a5i | .eval 1e100 |
22:13:27 | Mimbus | a5i: eval.nim(3, 0) Error: value of type 'float' has to be discarded |
22:13:45 | BlaXpirit | actually is exec |
22:13:57 | a5i | .exec 1e100 |
22:14:07 | BlaXpirit | uh sorry, that's not what i meant |
22:14:13 | a5i | o |
22:14:20 | BlaXpirit | anyhow, to try this thing out, you should go to #nim-offtopic |
22:15:08 | reactormonk | Araq, into "Changes affecting backwards compatibility" that's under "2015-03-01 Version 0.10.4 released"? Feels kinda wrong to me |
22:15:24 | Araq | no no no, ugh |
22:15:35 | Araq | there was no release of 0.10.4 |
22:15:54 | Araq | that date was just my wishful thinking |
22:15:59 | reactormonk | https://github.com/Araq/Nim/blob/devel/web/news.txt#L6 |
22:16:11 | BlaXpirit | Araq, why is `nre` not in standard library? |
22:16:40 | Araq | BlaXpirit: because we like to trim the stdlib, not bloat it |
22:16:51 | a5i | glad to see the Rust vs Nim clash from some trolls on both sides done for |
22:16:54 | BlaXpirit | you see, the problem we have is |
22:17:07 | EXetoC | a5i: echo is part of the code there. it's not an eval argument or anything, so use echo if you want to print something |
22:17:07 | BlaXpirit | the main criteria for stdlib is who got in there first |
22:17:12 | BlaXpirit | that's not wise |
22:17:20 | a5i | ohhh |
22:17:26 | a5i | .eval echo 1e100 |
22:17:28 | Mimbus | a5i: 1e+100 |
22:17:35 | a5i | same as Crystal |
22:17:43 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:17:44 | a5i | in Rust it goes 100000000000000000000000000231934935723875632894 |
22:20:17 | Araq | BlaXpirit: should we wait until we have 3 implementations until we decide? |
22:20:43 | BlaXpirit | we now have 1 good implementation |
22:22:06 | * | egrep quit (Ping timeout: 272 seconds) |
22:22:37 | Araq | we also have lots of projects which already use 're' |
22:22:48 | Araq | and nre is not compatible |
22:23:37 | Araq | it's not too much effort to fix re, it's just that people have better things to do |
22:24:00 | BlaXpirit | i'm being too obnoxious for sure |
22:24:13 | BlaXpirit | you're making some good points |
22:24:40 | BlaXpirit | the problem i have is people don't know about nre |
22:25:25 | flaviu | Another option might be to move almost everything out of the stdlib, and allow third parties to make decisions of merit. |
22:25:28 | BlaXpirit | if you don't want to include a lib but we know it's better, why not tell people about it |
22:28:49 | Araq | BlaXpirit: we have many people still using 0.10.2 and report bugs about it. that's the problem no 1 right now, we need to get 0.10.4 out. |
22:28:52 | federico3 | hm, koch web is failing to build in devel due to ../doc/exception_hierarchy_fragment.txt |
22:29:06 | BlaXpirit | Araq, that's a big problem, another one that i mentioned |
22:29:13 | BlaXpirit | but different than what we were just talking about |
22:29:25 | BlaXpirit | federico3, that's an old one |
22:29:55 | federico3 | BlaXpirit: an old file? an old version of koch? |
22:30:07 | BlaXpirit | an old version of nim had this fault |
22:30:12 | BlaXpirit | old, as in latest released version |
22:30:14 | BlaXpirit | (speak of the devil) |
22:31:19 | Araq | BlaXpirit: he said he is using devel |
22:31:43 | BlaXpirit | that can't be right. could it be an old devel? |
22:32:34 | federico3 | hm, let me see, ./bin/nim | grep Ver is 0.10.3 (branched today) |
22:33:48 | federico3 | I'm rebuilding koch making sure it's built with that version, than doing koch boot and koch web |
22:35:41 | federico3 | same; could it be that koch or nim are picking up stuff from a system-wide installed version? |
22:36:27 | BlaXpirit | yes |
22:36:29 | BlaXpirit | federico3, yes, it does |
22:36:41 | BlaXpirit | that's exactly the problem, if you don't have devel nim in path |
22:36:58 | BlaXpirit | i discovered this just now, should've thought |
22:37:49 | federico3 | aha |
22:38:08 | federico3 | and if I set PATH='.' it won't find gcc then :-/ |
22:38:23 | * | vendethiel quit (Ping timeout: 250 seconds) |
22:38:28 | BlaXpirit | well don't replace your PATH |
22:38:30 | BlaXpirit | add to it |
22:39:13 | BlaXpirit | PATH=".:$PATH" ./koch web |
22:39:36 | federico3 | I'd rather isolate it completely from the system path |
22:40:08 | BlaXpirit | tough luck |
22:40:21 | BlaXpirit | well of course you could investigate and fix this |
22:40:33 | Araq | I think you can call nim /path/to/it/nim too and then things work as long as everything is in /path/to/it |
22:40:54 | Araq | which shouldn't be /usr/bin then of course |
22:41:05 | Araq | /opt comes to mind |
22:42:54 | Mat4 | or you can simply use a more recent CLI which automatical include the current directory to the search path |
22:43:04 | BlaXpirit | i can't seem to emit in nim js? |
22:43:06 | federico3 | it's building (and taking quite some time) |
22:43:07 | Mat4 | something other than Bash |
22:43:37 | BlaXpirit | Mat4, that's nonstandard. you can't present it as an advantage. |
22:43:58 | BlaXpirit | by "something other than Bash" you probably mean "that one obscure shell i use" |
22:43:58 | * | Joe-T quit (Quit: ZNC - http://znc.in) |
22:45:57 | federico3 | PATH=".:./bin" ./koch web does the trick, after symlinking gcc and ld locally |
22:46:30 | Araq | BlaXpirit: you can use .emit |
22:46:32 | Mat4 | this feature was only a script away even in the original C shell way back to ... the 70's |
22:47:20 | fowl | federico3, i usually symlink nim into $PATH |
22:47:29 | fowl | the binary |
22:50:23 | dhasenan | I wonder if Nim's output is C++11 compatible. |
22:51:42 | * | bcinman joined #nim |
22:54:58 | Mat4 | ciao |
22:55:04 | * | Mat4 left #nim ("Verlassend") |
22:56:05 | def- | dhasenan: the C++ backend? why not? |
22:56:37 | * | banister joined #nim |
22:58:30 | * | BitPuffin quit (Ping timeout: 250 seconds) |
22:59:32 | dhasenan | def-: there's always the chance of something getting broken with a new C++ standard. I didn't suspect anything bad, though. |
23:01:20 | dhasenan | So, I have in C++: template<typename T, typename U> class Map { struct Iterator {}; }; |
23:01:24 | dhasenan | How do I wrap that in Nim? |
23:01:34 | dhasenan | I should probably ask this on stackoverflow, actually... |
23:02:58 | fowl | dhasenan, you want an generic type that holds no data? ;P |
23:03:20 | dhasenan | fowl: I don't want to paste 500 lines of code into IRC. |
23:04:42 | dhasenan | But I can if you want! |
23:04:55 | BlaXpirit | {.emit: "lol".} nim js - no "lol" to be seen in generated JS |
23:05:19 | def- | BlaXpirit: asm "lol" works? |
23:05:37 | Araq | oh yeah |
23:05:41 | BlaXpirit | yes, Araq |
23:05:43 | Araq | I confused .emit with asm |
23:05:55 | BlaXpirit | well apparently i confused them too |
23:05:59 | BlaXpirit | what's the difference? |
23:06:15 | Araq | dhasenan: c2nim can wrap that. kind of. |
23:07:58 | * | jefus_ joined #nim |
23:11:21 | dhasenan | Oh, nim has nested types? |
23:11:30 | * | jefus quit (Ping timeout: 272 seconds) |
23:12:04 | dhasenan | Ah, I see. c2nim gives me something that doesn't compile precisely because nim doesn't have nested types. |
23:13:47 | Araq | he yeah |
23:14:10 | fowl | dhasenan, you can use importcpp |
23:14:24 | * | nande quit (Remote host closed the connection) |
23:14:33 | fowl | well im not sure that would work since it would be Map<t,u>::Iterator |
23:14:38 | * | Joe-T joined #nim |
23:19:46 | * | Trustable quit (Remote host closed the connection) |
23:20:13 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:20:43 | * | user7181 quit (Quit: leaving) |
23:21:20 | dhasenan | And I can't do something in C++ like `template<typename T> using Foo = Map<T>::Iterator;` -- that simply doesn't work. |
23:21:45 | * | banister joined #nim |
23:23:24 | BlaXpirit | dude |
23:23:26 | dhasenan | I've got a non-templated base class, and I don't actually need to use this class, so I can use that. |
23:23:30 | BlaXpirit | my lib `random` runs on js now |
23:24:17 | BlaXpirit | at least partially, gotta try irt out properly |
23:25:20 | BlaXpirit | nvm. gen: unknown node type: nkUInt32Lit |
23:30:28 | Araq | BlaXpirit: JS doesn't support unsigned |
23:35:26 | BlaXpirit | yeah, what was i thinking |
23:42:09 | * | banister quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:43:12 | BlaXpirit | oh come on |
23:45:03 | * | jholland quit (Quit: Connection closed for inactivity) |
23:54:08 | * | HakanD joined #nim |
23:54:08 | flaviu | Is there a reason for it not to support unsigned? |
23:54:30 | flaviu | There are 53 bits + 1 sign bit to use on the JS backend. |
23:54:45 | BlaXpirit | flaviu, it's a lot of work, i assume |
23:55:17 | BlaXpirit | oh but... 64 bit integers |
23:55:23 | BlaXpirit | loool |
23:55:40 | BlaXpirit | ok JS is a joke, i should just move on |
23:58:31 | * | TEttinger joined #nim |
23:58:33 | * | HakanD quit (Ping timeout: 250 seconds) |
23:58:44 | * | reactormonk quit (Ping timeout: 250 seconds) |
23:59:01 | * | reactormonk joined #nim |