00:01:23 | apense | i mean there *should* be no need. i don't think the windows sections use gtk2 or glib anywhere in there |
00:03:34 | apense | but that would make it a windows-only module if you don't pull external code, which wouldn't make sense |
00:06:24 | Xe | filwit: IIRC it prefers using GCC by default |
00:07:05 | jackv | apense, yeah, but on non-windows stuff dialogs is broken without installing gtk2 from nimble |
00:07:33 | apense | yeah i understand. i think your idea to remove it is good |
00:07:35 | Xe | if it has been good enough for ubuntu, gentoo, freebsd (until version 10), openbsd (until ~5.4), netbsd and nearly every other linux distribution, there's probably not a reason to worry :) |
00:08:40 | filwit | Xe: i know i has been, but I just compiled with --parallelBuild:1 on and saw that my code is compiling with clang unless I explicitly set it to gcc.. wonder if I have some .cfg in a root folder that I'm not aware of.. |
00:08:56 | Xe | filwit: which gcc |
00:08:59 | Xe | as in |
00:09:01 | Xe | $ which gcc |
00:09:07 | Xe | ...wait |
00:09:09 | filwit | eh? |
00:09:12 | Xe | what platform are you on? |
00:09:18 | filwit | arch linux |
00:09:21 | filwit | so gcc 5+ |
00:09:27 | Xe | you can just say linux |
00:09:30 | Xe | but hmm |
00:09:32 | filwit | no.. |
00:09:34 | Xe | is gcc aliased to clang? |
00:09:40 | filwit | debian uses gcc 4.6 still... |
00:09:42 | jackv | apense, actually, since tools/nimrepl.nim requires it, I think that maybe gtk2 should be re-added to the stdlib, at least on non-windows systems |
00:09:55 | filwit | no, gcc is not aliased to clang |
00:10:02 | Xe | okay |
00:10:04 | filwit | it's probably just some config file |
00:10:06 | apense | jackv, ohhh gotcha. sounds good |
00:10:31 | Xe | look in your nim root/config/nim.cfg |
00:10:42 | filwit | i'm compiling code in a test folder of a larger project of mine, one I know has some compiler setting configs.. i just didn't realize they where actually being taken into account |
00:10:54 | Xe | mine is ~/prefix/nim/config/nim.cfg |
00:16:00 | * | doxavore quit (Quit: I said good day, sir.) |
00:18:27 | * | boop is now known as boopisaway |
00:50:40 | * | brson quit (Quit: leaving) |
01:06:52 | * | tennix joined #nim |
01:07:09 | * | johnsoft quit (Ping timeout: 264 seconds) |
01:07:40 | * | johnsoft joined #nim |
01:10:00 | * | BitPuffin|osx joined #nim |
01:25:09 | * | vvvvv quit (Quit: Page closed) |
01:25:55 | * | no_name quit (Ping timeout: 256 seconds) |
01:25:55 | * | devzerp quit (Ping timeout: 256 seconds) |
01:29:08 | * | Demon_Fox_ quit (Ping timeout: 246 seconds) |
01:30:09 | * | Demon_Fox joined #nim |
01:30:53 | * | devzerp joined #nim |
01:30:53 | * | no_name joined #nim |
01:31:21 | * | jaco60 quit (Ping timeout: 265 seconds) |
01:34:35 | * | yglukhov______ joined #nim |
01:39:35 | * | filwit quit (Quit: Leaving) |
01:40:02 | * | yglukhov______ quit (Ping timeout: 265 seconds) |
01:58:47 | * | darkf joined #nim |
01:59:52 | * | Demon_Fox quit (Quit: Leaving) |
02:04:46 | * | ErikBjare_ quit (Ping timeout: 265 seconds) |
02:07:17 | * | Demon_Fox joined #nim |
02:08:21 | * | ErikBjare_ joined #nim |
02:10:10 | * | devzerp quit (Ping timeout: 276 seconds) |
02:10:10 | * | no_name quit (Ping timeout: 276 seconds) |
02:12:37 | * | devzerp joined #nim |
02:12:40 | * | no_name joined #nim |
02:49:00 | * | Joe-T quit (Ping timeout: 276 seconds) |
02:59:18 | * | Senketsu joined #nim |
03:29:18 | * | xenagi joined #nim |
03:30:50 | xenagi | list comprehensions don't seem to be working with generic procedures |
03:31:05 | xenagi | is this known? or am i probably doing it wrong? |
03:32:00 | reactormonk | xenagi, b) |
03:32:21 | dtscode | thats a weird smiley reactormonk |
03:32:48 | reactormonk | dtscode, it's b), as opposed to a) |
03:33:09 | dtscode | iwasjoking.jpg |
03:33:43 | reactormonk | xenagi, oh, this is nim. probably a) |
03:36:01 | xenagi | for example, something like this http://pastebin.com/nYCgis2b |
03:38:10 | * | apense_ joined #nim |
03:40:44 | * | apense quit (Ping timeout: 272 seconds) |
03:48:08 | * | vikaton quit (Quit: Connection closed for inactivity) |
03:56:13 | * | dtscode is now known as SovietUnion |
03:56:19 | * | SovietUnion is now known as dtscode |
04:12:22 | * | Jesin quit (Quit: Leaving) |
04:12:54 | * | Joe-T joined #nim |
04:14:37 | * | rgv151 joined #nim |
04:16:54 | * | BitPuffin|osx quit (Ping timeout: 256 seconds) |
04:18:05 | * | rgv151 quit (Client Quit) |
04:18:42 | * | xenagi quit (Quit: Leaving) |
04:22:04 | * | rgv151 joined #nim |
04:30:00 | * | vikaton joined #nim |
04:35:43 | * | tennix quit (Remote host closed the connection) |
04:36:34 | * | tennix joined #nim |
04:41:18 | * | tennix quit (Ping timeout: 265 seconds) |
04:41:19 | * | tennix_ joined #nim |
04:52:18 | * | gour joined #nim |
04:58:36 | * | dtscode is now known as agent_dtscode |
05:13:06 | * | lokulin quit (Max SendQ exceeded) |
05:21:17 | * | lokulin joined #nim |
05:23:21 | * | skroll1 quit (Ping timeout: 264 seconds) |
05:23:57 | * | skroll1 joined #nim |
05:42:11 | * | nande joined #nim |
05:53:32 | * | tennix_ quit (Remote host closed the connection) |
05:54:10 | * | tennix joined #nim |
06:19:11 | * | gour quit (Ping timeout: 252 seconds) |
06:22:59 | * | gour joined #nim |
06:39:05 | * | TEttinger joined #nim |
06:40:18 | * | tennix quit (Remote host closed the connection) |
06:41:17 | * | jszymanski joined #nim |
06:41:27 | * | TEttinger quit (Client Quit) |
06:43:12 | * | tennix joined #nim |
06:52:09 | apense_ | nick apense |
06:52:18 | apense_ | haha |
06:52:52 | * | tennix quit (Remote host closed the connection) |
06:53:09 | * | apense_ is now known as apense |
06:57:00 | * | tennix joined #nim |
07:03:43 | * | lokulin quit (Changing host) |
07:03:43 | * | lokulin joined #nim |
07:19:18 | * | nande quit (Remote host closed the connection) |
07:20:30 | * | yglukhov_______ joined #nim |
07:28:29 | * | rgv151 quit (Ping timeout: 252 seconds) |
07:30:24 | * | gour quit (Quit: Using Circe, the loveliest of all IRC clients) |
07:32:08 | * | Trustable joined #nim |
07:33:32 | * | darkf quit (Ping timeout: 256 seconds) |
07:36:45 | * | gour joined #nim |
07:48:08 | * | vikaton quit (Quit: Connection closed for inactivity) |
07:49:05 | * | pleiosaur quit (Remote host closed the connection) |
07:54:42 | * | pleiosaur joined #nim |
08:02:04 | * | darkf joined #nim |
08:13:48 | * | coffeepot joined #nim |
08:14:51 | * | sepisoad joined #nim |
08:37:55 | * | Ven joined #nim |
08:42:24 | * | rgv151 joined #nim |
08:44:56 | * | Demon_Fox quit (Quit: Leaving) |
08:50:51 | * | gour quit (Quit: Using Circe, the loveliest of all IRC clients) |
08:51:15 | * | kas joined #nim |
08:52:16 | * | gour joined #nim |
08:56:56 | * | gour quit (Client Quit) |
09:03:19 | * | gour joined #nim |
09:05:45 | * | kas quit (Ping timeout: 265 seconds) |
09:09:28 | * | dddddd joined #nim |
09:11:18 | * | jaco60 joined #nim |
09:31:58 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:56:18 | * | kas joined #nim |
09:58:55 | * | Ven joined #nim |
10:04:01 | * | xcombelle joined #nim |
10:16:35 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
10:26:25 | * | gour quit (Remote host closed the connection) |
10:32:42 | * | gour joined #nim |
10:58:15 | * | infinity0 quit (Ping timeout: 256 seconds) |
11:01:07 | * | JinShil joined #nim |
11:02:58 | * | filcuc joined #nim |
11:06:28 | * | ozra quit (Ping timeout: 246 seconds) |
11:08:50 | avsej | apense, Araq: https://github.com/nim-lang/nim/pull/2954 |
11:09:18 | avsej | ``foo``bar - is not valid in reST |
11:09:57 | avsej | ``proc``-s is okay, but I think just ``proc``, ``template`` etc. will be okay too there |
11:11:31 | * | infinity0 joined #nim |
11:13:38 | * | boopisaway quit (Ping timeout: 246 seconds) |
11:15:31 | * | gour quit (Remote host closed the connection) |
11:23:01 | * | tennix quit (Remote host closed the connection) |
11:29:15 | * | Ven joined #nim |
11:30:57 | * | gour joined #nim |
11:33:43 | * | filcuc quit (Remote host closed the connection) |
11:36:32 | * | BitPuffin|osx joined #nim |
11:38:59 | * | zahary quit (Remote host closed the connection) |
11:48:23 | * | zahary joined #nim |
11:48:52 | * | sepisoad quit (Quit: Leaving) |
11:51:05 | * | Jehan` joined #nim |
12:00:19 | * | xcombelle quit (Remote host closed the connection) |
12:04:33 | * | boop joined #nim |
12:40:09 | * | BitPuffin|osx quit (Remote host closed the connection) |
12:40:21 | * | BitPuffin|osx joined #nim |
12:41:16 | Araq | OnO: the new compiler output breaks tests/macros/ttryparseexpr.nim |
12:42:33 | * | kas quit (Ping timeout: 264 seconds) |
12:43:49 | * | Ven quit (Read error: Connection reset by peer) |
12:45:31 | OnO | okay, I'll have a look in couple of minutes |
12:56:54 | * | OnO is now known as ono |
13:08:40 | Araq | though actually it might have been an earlier refactoring ... |
13:11:27 | * | kas joined #nim |
13:14:03 | Araq | ono: er what? gNotesFromConst is broken, but using NotesVerbosityConst[0] directly works? o.O |
13:19:58 | ono | Araq: yeah, kind of funny, isn't it? |
13:20:29 | Araq | var |
13:20:30 | Araq | i = 0 |
13:20:31 | Araq | gNotesFromConst: TNoteKinds = NotesVerbosityConst[i] # works |
13:20:45 | Araq | var |
13:20:47 | Araq | gNotesFromConst: TNoteKinds = NotesVerbosityConst[0] # fails |
13:21:55 | ono | 2nd is compile time [ ] |
13:21:59 | ono | 1st is runtime [ ] |
13:23:02 | Araq | yup |
13:25:14 | ono | Araq: "the new compiler output breaks tests/macros/ttryparseexpr.nim" <- you mean code in current devel or in verbosity-map PR ? |
13:27:18 | Araq | devel |
13:30:59 | ono | just tried on vanilla Nim devel: got PASS: ttryparseexpr.nim |
13:31:16 | ono | shall I try on Windows ? |
13:34:24 | Araq | yeah |
13:37:07 | ono | brw. since we renamed build.sh to bootstrap.sh the readme.md is completely outdated |
13:38:08 | ono | or not |
13:38:20 | ono | sorry, it was build.sh in csources |
13:38:37 | ono | still would be nice then to have bootstrap.bar too : |
13:39:57 | ono | oh well... it asks for gcc compiler, the fun begins |
13:43:04 | ono | okay, so how do I compile Nim using MSVC? |
13:46:40 | Araq | cc:vcc |
13:47:05 | Araq | but i don't think this works for build.bat |
13:47:14 | * | ozra joined #nim |
13:51:08 | * | JinShil quit (Quit: Konversation terminated!) |
14:12:53 | federico3 | koch pdf on a freshly built Nim stops and ask for fonts |
14:18:15 | Araq | federico3: that's just LaTeX at work? |
14:19:17 | federico3 | yep, sigh. I'm creating a list of required packages to make tex build |
14:27:12 | federico3 | finally |
14:27:42 | * | Arrrr joined #nim |
14:29:18 | federico3 | Araq: the build worked. How about publishing the PDFs on the website on every new release? |
14:33:45 | * | bjz joined #nim |
14:35:29 | Araq | sure, everything that makes releases more work is fine with me ... :P |
14:43:41 | * | Jehan` quit (Quit: Leaving) |
14:44:01 | * | gour quit (Ping timeout: 265 seconds) |
14:59:57 | flaviu | Why isn't there a one-click make release script? |
15:00:25 | yglukhov_______ | Araq, I'm not sure if I explained the problem clearly. Just feel free to ask more questions ;) |
15:01:38 | ono | Araq: so how do I build with MSVC, is it even possible? |
15:01:39 | * | BitPuffin joined #nim |
15:02:00 | ono | I don't want to skip this opportunity using amazing M$ compiler ;) |
15:04:44 | Araq | flaviu: mostly because on windows I have no exec bits, and on linux I have no NSIS installer support |
15:05:03 | Araq | so ... how do you run a single script on 2 different OSes? |
15:05:11 | flaviu | Write it in Nim :P |
15:06:39 | ono | Araq: msys bash emulates exec bits depending on Shebang, so it is okay to ./bootstrap.sh |
15:07:01 | * | UberLambda joined #nim |
15:12:04 | * | _UberLambda_ joined #nim |
15:12:11 | * | UberLambda quit (Quit: GTG) |
15:12:11 | * | _UberLambda_ quit (Remote host closed the connection) |
15:12:38 | ono | WTF on Windows tester fails to start because of missing sqlite3.dll |
15:12:44 | ono | shouldn't it be optional somehow? |
15:12:45 | * | UberLambda joined #nim |
15:14:43 | * | UberLambda quit (Client Quit) |
15:15:06 | * | UberLambda joined #nim |
15:19:09 | * | yglukhov_______ quit (Ping timeout: 264 seconds) |
15:19:28 | ono | just put sqlite3.dll next to tester.exe and it still complains about no sqlite3.dll |
15:21:05 | * | strcmp1 quit (Ping timeout: 246 seconds) |
15:25:46 | Araq | ono: you need a 64bit dll then |
15:26:36 | Araq | flaviu: that doesn't solve the problem, I like to run 1 thing on 1 OS and then upload the generated stuff |
15:26:49 | Araq | and not switch between OSes |
15:27:08 | flaviu | Araq: http://gwyddion.net/documentation/user-guide-en/installation-cross-mingw32.html |
15:27:20 | ono | Windows is amazing, no way to display whether the dll is 32-bit or 64-bit |
15:27:41 | flaviu | Specifically, the part under "Wine". |
15:29:25 | * | Ven joined #nim |
15:32:24 | Araq | ono: dumpbin? |
15:33:00 | Araq | flaviu: I know about Wine, thanks. |
15:33:51 | * | strcmp1 joined #nim |
15:34:10 | ono | hmm... now complains on missing pcre.dll |
15:41:06 | Araq | ono: btw you don't need to run the tester anyway |
15:41:40 | Araq | nim c -r tests\macros\ttryparseexpr.nim |
15:41:51 | Araq | and see that the output is not what is required |
15:42:55 | * | gokr quit (Quit: Leaving.) |
15:44:38 | * | darkf quit (Quit: Leaving) |
15:44:55 | ono | seems like it is adding some unnecessary space at the end |
15:44:59 | ono | on Windows |
15:45:07 | ono | or new line in fact |
15:45:25 | * | gyeates quit (Ping timeout: 264 seconds) |
15:45:37 | Araq | nah oh |
15:45:56 | Araq | very weird, I wasn't on up to date when I tested this |
15:46:06 | Araq | and with your most recent changes it does work again |
15:46:11 | Araq | sorry for the noise |
15:50:32 | ono | aha.... ok, at least had opportunity to play a little with Windows hehe |
15:51:33 | ono | okay, going home, bbl |
15:51:57 | Araq | ozra: oh btw it's weird that the tester now requires both pegs and re ... |
15:57:00 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
16:00:09 | * | key_ quit (Quit: Konversation terminated!) |
16:00:51 | * | jszymanski quit (Quit: computer sleeps...) |
16:08:25 | * | gyeates joined #nim |
16:10:38 | apense | avsej, thanks. i always forget to set up sublime to remove the trailing spaces. i think there's actually an unclosed parentheses in there somewhere, but I forget where. I'll look now |
16:17:47 | * | coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) |
16:20:37 | apense | avsej, ``nnkIdent``s should go to ``nnkIdent`` right? |
16:26:36 | * | fowl quit (Remote host closed the connection) |
16:26:54 | apense | Found it finally. Submitting a PR. also finally got my trailing whitespace fixed :D |
16:31:18 | * | yglukhov________ joined #nim |
16:36:14 | * | fowl joined #nim |
16:36:14 | * | fowl quit (Changing host) |
16:36:14 | * | fowl joined #nim |
16:36:14 | * | fowl quit (Excess Flood) |
16:45:18 | * | fowl joined #nim |
16:46:40 | * | jszymanski joined #nim |
16:53:00 | * | solidsnack joined #nim |
17:05:51 | * | Matthias247 joined #nim |
17:05:59 | * | solidsnack quit (Ping timeout: 252 seconds) |
17:28:27 | * | Roin quit (Ping timeout: 276 seconds) |
17:33:04 | * | BitPuffin quit (Ping timeout: 256 seconds) |
17:50:31 | * | gour joined #nim |
17:55:09 | * | Roin joined #nim |
17:57:19 | * | Jesin joined #nim |
18:03:31 | * | rgv151` joined #nim |
18:04:52 | rgv151` | how to find index of a Rune in an unicode string? |
18:18:02 | * | gyeates quit (Ping timeout: 252 seconds) |
18:18:13 | apense | rgv151`, you could use the runes iterator. not sure there's a built-in proc |
18:19:50 | Araq | don't use runes, use strings ;-) |
18:20:12 | rgv151` | oops |
18:20:27 | apense | yeah that's more sensible. Nim's strings are unicode by default, right? |
18:20:51 | rgv151` | i'm messing w/ runes |
18:21:28 | rgv151` | runes iterator is working fine, but runeAt proc isn't |
18:23:43 | rgv151` | i have a string w/ ascii and unicode chars mix'ed |
18:24:40 | apense | shouldn't `find` in strings be part of the stdlib? |
18:24:54 | Araq | apense: well ... yeah. it's a bit more complex, but if you use --taintMode:on the compiler makes you perform input validation which subsumes utf-8 validation |
18:25:39 | apense | Araq, ohh |
18:26:06 | rgv151` | unicode chars' len is 2 bytes, is this right? |
18:26:33 | Araq | rgv151`: that sounds like utf-16 |
18:27:04 | rgv151` | that's my problem |
18:30:38 | Araq | you can use newWideCString(x) to get it into utf-16 and WideCString's $ to turn it into a Nim string |
18:30:58 | Araq | runes are utf-32 ... |
18:31:30 | Araq | apense: find works for strings just fine? |
18:33:16 | apense | Araq, it sort of does. I'm running into this: https://github.com/nim-lang/Nim/issues/2956 |
18:33:37 | apense | I made an issue because Unicode pasting is nasty in my HexChat |
18:34:49 | Araq | "It works fine if you import strutils, but it feels like something strange is happening." |
18:35:05 | Araq | no. it works as expected. |
18:35:18 | ozra | rgv151`: unicode chars are 1-x bytes... |
18:35:36 | apense | Araq, why does it think I'm passing a char? |
18:35:42 | ozra | eh, I mean utf8 |
18:36:30 | ozra | Araq: Yeah, I added re for the output-matching. You want it out? |
18:38:10 | Araq | apense: cause it tries to use system.find and in there == |
18:38:16 | ozra | Haven't used pegs, but could look into it later to ditch that dep... |
18:38:27 | Araq | but it doesn't report "instantiation from here" for some reason ... |
18:38:37 | Araq | strange |
18:39:02 | Araq | but maybe that's printed in a color that I cannot see? |
18:39:24 | Araq | or it got refactored away because colors are more important than content :P |
18:39:58 | apense | ah. thanks Araq . didn't think through what `items` was doing |
18:40:08 | reactormonk | Araq, I'd kick you for trolling if I could |
18:40:44 | Araq | reactormonk: and yet I'm right |
18:40:49 | Araq | it does report the line |
18:41:07 | Araq | but the warning message disappeared. yay |
18:41:23 | reactormonk | Araq, that's the beauty of good trolling. ;-) |
18:42:11 | rgv151` | Araq: my Nim don't have newWideCString proc :-? |
18:42:20 | reactormonk | So is there a way to diff test result outputs in a meaningful way? |
18:42:31 | Araq | reactormonk: yes |
18:42:42 | reactormonk | Araq, then how do you do it? |
18:42:42 | rgv151` | i'm using 0.11.2 |
18:43:52 | Araq | tester html [commit] generate testresults.html from the database; uses |
18:43:54 | Araq | the latest |
18:43:55 | Araq | commit or a specific one (use -1 for the commit |
18:43:57 | Araq | before latest etc) |
18:44:37 | reactormonk | do you need to pass it the commit ID or do branches work too? |
18:45:42 | apense | rgv151`, it's part of systems. is it giving you an error? |
18:45:55 | apense | var m = newWideCString("hello") should just work |
18:46:22 | Araq | reactormonk: it needs to find it in its database |
18:46:36 | reactormonk | Araq, so no branches I Assume |
18:46:48 | rgv151` | yes apense, test.nim(7, 14) Error: undeclared identifier: 'newWideCString' |
18:46:49 | Araq | it doesn't care about branches |
18:47:32 | Araq | reactormonk: the tester runs the tests, asks for git's commit and stores stuff under that commit |
18:47:40 | Araq | later you commit things, rerun the tester |
18:47:50 | Araq | the tester uses git's commit again etc |
18:49:54 | * | brson joined #nim |
18:52:20 | reactormonk | Araq, https://github.com/nim-lang/Nim/commit/0d40fd7552e826aa6ce860d101a5bd49548ed785 ? |
18:54:23 | Araq | reactormonk: --print opens the HTML for you iirc |
18:54:40 | reactormonk | ./koch html --print $DEVEL_COMMIT |
18:54:42 | reactormonk | ? |
18:55:41 | Araq | tester --print html $Commit |
18:55:50 | Araq | or: tester --print html -1 |
18:55:52 | Araq | or: tester --print html -2 |
18:56:10 | * | johnsoft quit (Ping timeout: 252 seconds) |
18:57:46 | Araq | rgv151`: wide string support is only active on windows |
18:58:04 | Araq | because unix generally uses utf-8 anyway |
18:58:16 | Araq | where do you get the utf-16 from? |
18:59:42 | Araq | aha, when I redirect the output to a file I can read the "template/generic instantiation from here" |
18:59:44 | rgv151` | https://gist.github.com/rgv151/712051d4d6939e1b2075 |
19:00:04 | reactormonk | Araq, I'll probably just hit merge in a week or two on that PR |
19:00:06 | rgv151` | hmm, windows only.. |
19:00:32 | Araq | reactormonk: which one? |
19:00:56 | reactormonk | Araq, https://github.com/nim-lang/Nim/pull/2930 |
19:01:31 | * | kas quit (Ping timeout: 250 seconds) |
19:01:32 | rgv151` | Araq: my string is "àáảãạaằắẳẵặăầấẩẫậâèéẻẽẹeềếểễệêìíỉĩịiòóỏõọoồốổỗộôờớởỡợơùúủũụuừứửữựưỳýỷỹỵy" |
19:01:38 | Araq | rgv151`: well if you just use string literals, you don't have utf-16 |
19:01:52 | Araq | just use a normal string and runeLen |
19:02:37 | Araq | reactormonk: well it needs to be added to the website. |
19:02:59 | Araq | so ... pull it, but that's not enough :P |
19:03:07 | reactormonk | Araq, nah, it'll poke in your eye at the top whenever you create an issue / pull request |
19:03:17 | Araq | you need me to get online |
19:03:21 | Araq | *to get it |
19:05:34 | * | vendethiel joined #nim |
19:05:40 | rgv151` | Araq: `runes` iterator works for me, but if I use `for i in 0..s.runeLen-1: echo s.runeAt(i)` it prints some wierd chars |
19:06:25 | Araq | yeah well that's expected |
19:06:48 | * | vendethiel- quit (Ping timeout: 252 seconds) |
19:07:02 | Araq | just because the rune length is N that doesn't mean 0..N-1 are the valid rune starting positions |
19:07:23 | * | vikaton joined #nim |
19:07:38 | rgv151` | i see |
19:08:24 | * | vendethiel- joined #nim |
19:08:44 | rgv151` | i still dont know why i'm getting utf-16 instead of utf-8 |
19:08:58 | Araq | you don't get utf-16 |
19:09:25 | Araq | you get a something that takes 2 bytes to encode in utf-8 |
19:09:49 | * | vendethiel quit (Ping timeout: 245 seconds) |
19:16:50 | Araq | ozra: just use a peg instead of 're' for this feature |
19:18:23 | ozra | Sure. I'll do that after the deep-earth-digging :) |
19:19:41 | rgv151` | ozra: pegs is very cool :) |
19:20:03 | * | key_ joined #nim |
19:21:45 | reactormonk | Araq, should I just be done with it and pull or wait for some comments? |
19:22:07 | Araq | already told you that I'll rewrite it in ReST |
19:22:25 | Araq | I'm still hoping you might do it |
19:23:17 | Araq | a ReST file I could integrate easily with the rest of the website ... |
19:23:45 | Araq | plus I don't have to worry about my editor removing trailing whitespace -- breaking the markdown file |
19:24:10 | Araq | (that's my favorite argument against markdown now :D ) |
19:27:29 | * | gour left #nim ("Using Circe, the loveliest of all IRC clients") |
19:27:39 | reactormonk | that you have a shitty editor? I though you said editors should solve all tooling problems. |
19:28:35 | reactormonk | rst is http://docutils.sourceforge.net/rst.html ? |
19:28:58 | Araq | no i said, nobody should ever have to care about "trailing whitespace" |
19:29:20 | Araq | but git is a dick about it, so my editor adapted and now removes it |
19:29:44 | Araq | nice try though. |
19:31:45 | reactormonk | Thanks, I'm learning from the best ;-) |
19:36:31 | rgv151` | bed time, i will get this thing out of my head tmr |
19:36:37 | rgv151` | thanks guys |
19:37:54 | * | jszymanski quit (Quit: computer sleeps...) |
19:38:09 | * | rgv151` quit (Quit: rcirc on GNU Emacs 24.5.1) |
19:47:17 | * | miglo joined #nim |
19:48:01 | * | BitPuffin joined #nim |
19:48:53 | * | brson quit (Remote host closed the connection) |
19:49:28 | * | brson joined #nim |
19:49:43 | miglo | Hello! Has anyone integrated nim support into his vi/vim? I've tried this one "https://github.com/zah/nim.vim" but I've got an error message like: unknown function nim#init in .vim/ftplugin/nim.vim |
19:52:47 | Araq | miglo: with a bit of luck zahary will awake |
19:53:59 | miglo | thanks, I've notice that I've forgot to integrate more files into my .vim folder |
19:56:02 | miglo | ok, it's working now |
19:56:34 | miglo | Now, it's time to learn nim :-) |
20:01:05 | * | Arrrr quit (Quit: WeeChat 1.2) |
20:08:18 | * | johnsoft joined #nim |
20:11:13 | miglo | I'm wondering about the output the nim compiler provides when I'm compiling a simple example with few lines of code: 9094 lines compiled; 0.225 sec total; 14.143MB; Debug Build |
20:12:15 | miglo | where are these 9094 lines are coming from and the size of 14MB? |
20:13:29 | fowl | Maybe add --deadcodeelim:on -d:release --opt:size |
20:13:41 | Araq | miglo: the stdlib, in particular system.nim |
20:18:29 | reactormonk | Araq, https://github.com/nim-lang/Nim/commit/69ceede3fb363312b0a39042b4887ae2c52d3846 |
20:21:22 | * | BitPuffin quit (Ping timeout: 256 seconds) |
20:35:47 | reactormonk | Araq, https://github.com/nim-lang/Nim/blob/contributing-guide/contributing.rst doesn't eat the links as it should according to the rst manual |
20:42:56 | fowl | ooo the compiler has pretty colors |
20:43:59 | reactormonk | Araq, see? |
20:44:06 | reactormonk | fancy colors => happy users |
20:46:46 | Araq | reactormonk: doesn't apply to our website though :P |
20:46:52 | reactormonk | Araq, ah fuck |
20:49:00 | reactormonk | stop poking holes into my theories. |
20:49:40 | * | filcuc joined #nim |
20:53:02 | * | elbow_jason joined #nim |
20:59:16 | * | filcuc_ joined #nim |
20:59:16 | * | filcuc quit (Read error: Connection reset by peer) |
20:59:29 | * | filcuc_ quit (Client Quit) |
20:59:48 | flaviu | reactormonk: nah, your theory is good, just not phrased properly: http://i.imgur.com/6yOK0hC.png |
21:01:58 | miglo | is it not allowed to have a property name starting with an underscore? I've tried to use this for properties that should not be public as I know it from C++ |
21:03:41 | Araq | miglo: no, nim doesn't like underscore based ascii art |
21:03:47 | miglo | the tutorial mentions the prefix 'F', but for what does 'F' stand for? |
21:08:21 | Araq | oh yeah we should remove that, nobody uses it |
21:08:27 | Araq | it stands for 'Field' |
21:08:43 | * | elbow_jason quit (Quit: Leaving) |
21:14:10 | miglo | I found the following sentence from the second tutorial a little bit confusing: "Adding a method to a class the programmer has no control over is impossible or needs ugly workarounds." |
21:15:44 | miglo | so, what is the preferred naming for properties that are not public? |
21:16:14 | flaviu | miglo: Same as properties that are public -- just don't export them. |
21:17:13 | miglo | but if I provide getter and setter methods the property must have then for my understanding a different name |
21:17:55 | reactormonk | miglo, not sure why people are obsessed with getters/setters - I've never used one in a serious project |
21:18:56 | miglo | a range check could be part of a setter method |
21:19:35 | * | dtscode joined #nim |
21:19:35 | reactormonk | You can have a range check in your type system |
21:19:59 | * | dtscode is now known as Guest51359 |
21:20:13 | reactormonk | Can't remember the syntax for nim though :-/ |
21:20:23 | * | Guest51359 quit (Client Quit) |
21:20:47 | Araq | reactormonk: range[a..b] |
21:21:24 | Araq | miglo: your getters and setters can have the same name as the field |
21:21:25 | reactormonk | perfect |
21:24:10 | miglo | cool |
21:24:27 | reactormonk | miglo, might just be me, but I've usually found data structure with internal mutable state ugly to debug |
21:24:48 | miglo | then, the tutorial should also mention this and the example changed |
21:25:28 | reactormonk | miglo, https://github.com/nim-lang/Nim/blob/devel/doc/tut1.txt hit the little pen saying "edit this file" |
21:27:34 | miglo | reactormonk: do maybe know how to properly correct this sentence: Adding a method to a class the programmer has no control over is impossible or needs ugly workarounds |
21:28:03 | miglo | ...over, or its ... |
21:28:25 | reactormonk | miglo, "It is not possible to add methods to a class the programmer has no control over." |
21:28:43 | reactormonk | Araq, how exactly is "no control over" defined? |
21:29:30 | * | milosn_ joined #nim |
21:29:47 | miglo | maybe: the programmer cannot add additional methods to a class |
21:29:59 | * | milosn quit (Read error: Connection reset by peer) |
21:30:29 | reactormonk | ... defined in an external file? |
21:34:35 | Araq | reactormonk: interesting that this has never been touched. Just remove it, I don't care. |
21:34:38 | * | milosn_ is now known as milosn |
21:34:52 | reactormonk | Araq, "this"? |
21:35:03 | * | Demon_Fox joined #nim |
21:37:25 | * | solidsnack joined #nim |
21:45:26 | * | agent_dtscode quit (Quit: ZNC - 1.6.0 - http://znc.in) |
21:45:35 | miglo | it would be nice for newbeis like me to read about some advantages of multi-methods or what makes them superior compared to what most people know about class methods |
21:46:38 | * | mint_ joined #nim |
21:47:12 | miglo | the reader should get more appetite for nim |
21:48:39 | * | solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
21:50:52 | * | mint_ is now known as dtscode |
21:53:41 | * | solidsnack joined #nim |
21:55:07 | * | solidsnack quit (Client Quit) |
21:55:59 | federico3 | miglo: that you can write a.foo(b) or foo(a, b) |
21:57:12 | * | solidsnack joined #nim |
21:59:30 | * | Trustable quit (Remote host closed the connection) |
22:00:38 | * | UberLambda quit (Quit: GTG) |
22:08:34 | Araq | miglo: functional programming is the hype these days ;-) the tutorial should perhaps show how to do that instead |
22:11:01 | * | solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:11:25 | * | gyeates joined #nim |
22:14:02 | * | askatasuna joined #nim |
22:14:31 | * | solidsnack joined #nim |
22:14:59 | * | solidsnack quit (Client Quit) |
22:18:06 | * | solidsnack joined #nim |
22:20:04 | * | Matthias247 quit (Read error: Connection reset by peer) |
22:26:36 | * | solidsnack quit (Quit: My Mac has gone to sleep. ZZZzzz…) |
22:27:16 | * | BitPuffin joined #nim |
22:27:36 | * | anthgur joined #nim |
22:28:10 | dom96 | ozra: any news on the syntax highlighting on github? |
22:29:35 | * | solidsnack joined #nim |
22:29:35 | * | solidsnack quit (Client Quit) |
22:38:47 | ozra | According to varriount the NimLime highlighting and GitHub does _not_ have a connection, so I've no clue unfortunately. |
22:38:52 | ozra | dom96: ^ |
22:39:29 | reactormonk | dom96, does ./koch tests c <folder name> work? |
22:39:55 | Araq | reactormonk: not really, after the 'c' a category follows |
22:40:42 | dom96 | ozra: well shit. Could you contact github and ask them for me what is going on with their syntax highlighting? :) |
22:41:50 | ozra | dom96: I don't know anymore about that than you I'm afraid. So just holler them. I'm deep in debugging atm. |
22:42:44 | dom96 | ozra: ok, i'll do it. |
22:43:54 | reactormonk | Does args|"all" mean "args, or if args empty, "all""? |
22:44:28 | Araq | exactly |
22:45:07 | Araq | it's declared in koch.nim btw |
22:45:23 | reactormonk | ./koch tests all --failing |
22:45:27 | reactormonk | ^ correct usage? |
22:45:35 | Araq | ./koch tests --failing all |
22:45:44 | reactormonk | And what's pedantic exactly? |
22:45:54 | reactormonk | works both btw |
22:48:06 | reactormonk | dom96, ok, it's in |
22:49:37 | * | jackv quit (Ping timeout: 264 seconds) |
22:49:57 | * | mahlon quit (Read error: Connection reset by peer) |
22:53:06 | Araq | reactormonk: it does stuff with the precious exit code |
22:53:16 | reactormonk | like what? |
22:53:29 | * | mahlon joined #nim |
22:54:18 | Araq | exits with 1 if a test failed |
22:54:23 | * | jackv joined #nim |
22:55:00 | reactormonk | why doesn't it do that by default? |
22:55:17 | * | brson quit (*.net *.split) |
22:55:20 | * | strcmp1 quit (*.net *.split) |
22:55:20 | * | zahary quit (*.net *.split) |
22:55:20 | * | apense quit (*.net *.split) |
22:55:20 | * | S_Walker quit (*.net *.split) |
22:55:20 | * | fold quit (*.net *.split) |
22:55:20 | * | r-ku quit (*.net *.split) |
22:57:29 | * | no_name quit (Ping timeout: 246 seconds) |
22:57:34 | * | yglukhov________ quit (Quit: Be back later ...) |
22:58:10 | * | devzerp quit (Ping timeout: 276 seconds) |
22:59:52 | Araq | cause tests always fail |
23:00:42 | * | devzerp joined #nim |
23:00:55 | * | no_name joined #nim |
23:06:10 | * | apense joined #nim |
23:06:10 | * | brson joined #nim |
23:06:10 | * | strcmp1 joined #nim |
23:06:10 | * | zahary joined #nim |
23:06:10 | * | S_Walker joined #nim |
23:06:10 | * | fold joined #nim |
23:06:10 | * | r-ku joined #nim |
23:13:37 | * | BitPuffin quit (Ping timeout: 264 seconds) |
23:24:01 | * | dtscode is now known as agent_dtscode |
23:26:25 | * | Gordin quit (Quit: WeeChat 1.3-dev) |
23:33:12 | miglo | is it possible to create from an existing sequence a new one but only with a subset of the values? |
23:36:01 | miglo | ok, got it |
23:40:25 | reactormonk | miglo, slicing? |
23:42:46 | miglo | I did the following: var x = @[1, 2, 3, 4] ; var y = @x[1..x.high] |
23:43:50 | miglo | you are right, it's called slicing |
23:44:24 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
23:45:07 | * | bjz joined #nim |
23:49:20 | * | bjz quit (Ping timeout: 256 seconds) |
23:56:33 | miglo | is there anything like "myseq.empty" to prevent an "if myseq.len <= 0:"? |