<< 18-06-2015 >>

00:01:23apensei mean there *should* be no need. i don't think the windows sections use gtk2 or glib anywhere in there
00:03:34apensebut that would make it a windows-only module if you don't pull external code, which wouldn't make sense
00:06:24Xefilwit: IIRC it prefers using GCC by default
00:07:05jackvapense, yeah, but on non-windows stuff dialogs is broken without installing gtk2 from nimble
00:07:33apenseyeah i understand. i think your idea to remove it is good
00:07:35Xeif 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:40filwitXe: 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:56Xefilwit: which gcc
00:08:59Xeas in
00:09:01Xe$ which gcc
00:09:07Xe...wait
00:09:09filwiteh?
00:09:12Xewhat platform are you on?
00:09:18filwitarch linux
00:09:21filwitso gcc 5+
00:09:27Xeyou can just say linux
00:09:30Xebut hmm
00:09:32filwitno..
00:09:34Xeis gcc aliased to clang?
00:09:40filwitdebian uses gcc 4.6 still...
00:09:42jackvapense, 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:55filwitno, gcc is not aliased to clang
00:10:02Xeokay
00:10:04filwitit's probably just some config file
00:10:06apensejackv, ohhh gotcha. sounds good
00:10:31Xelook in your nim root/config/nim.cfg
00:10:42filwiti'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:54Xemine 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:50xenagilist comprehensions don't seem to be working with generic procedures
03:31:05xenagiis this known? or am i probably doing it wrong?
03:32:00reactormonkxenagi, b)
03:32:21dtscodethats a weird smiley reactormonk
03:32:48reactormonkdtscode, it's b), as opposed to a)
03:33:09dtscodeiwasjoking.jpg
03:33:43reactormonkxenagi, oh, this is nim. probably a)
03:36:01xenagifor 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:09apense_nick apense
06:52:18apense_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:50avsejapense, Araq: https://github.com/nim-lang/nim/pull/2954
11:09:18avsej``foo``bar - is not valid in reST
11:09:57avsej``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:16AraqOnO: 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:31OnOokay, I'll have a look in couple of minutes
12:56:54*OnO is now known as ono
13:08:40Araqthough actually it might have been an earlier refactoring ...
13:11:27*kas joined #nim
13:14:03Araqono: er what? gNotesFromConst is broken, but using NotesVerbosityConst[0] directly works? o.O
13:19:58onoAraq: yeah, kind of funny, isn't it?
13:20:29Araqvar
13:20:30Araq i = 0
13:20:31Araq gNotesFromConst: TNoteKinds = NotesVerbosityConst[i] # works
13:20:45Araqvar
13:20:47Araq gNotesFromConst: TNoteKinds = NotesVerbosityConst[0] # fails
13:21:55ono2nd is compile time [ ]
13:21:59ono1st is runtime [ ]
13:23:02Araqyup
13:25:14onoAraq: "the new compiler output breaks tests/macros/ttryparseexpr.nim" <- you mean code in current devel or in verbosity-map PR ?
13:27:18Araqdevel
13:30:59onojust tried on vanilla Nim devel: got PASS: ttryparseexpr.nim
13:31:16onoshall I try on Windows ?
13:34:24Araqyeah
13:37:07onobrw. since we renamed build.sh to bootstrap.sh the readme.md is completely outdated
13:38:08onoor not
13:38:20onosorry, it was build.sh in csources
13:38:37onostill would be nice then to have bootstrap.bar too :
13:39:57onooh well... it asks for gcc compiler, the fun begins
13:43:04onookay, so how do I compile Nim using MSVC?
13:46:40Araqcc:vcc
13:47:05Araqbut 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:53federico3koch pdf on a freshly built Nim stops and ask for fonts
14:18:15Araqfederico3: that's just LaTeX at work?
14:19:17federico3yep, sigh. I'm creating a list of required packages to make tex build
14:27:12federico3finally
14:27:42*Arrrr joined #nim
14:29:18federico3Araq: the build worked. How about publishing the PDFs on the website on every new release?
14:33:45*bjz joined #nim
14:35:29Araqsure, 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:57flaviuWhy isn't there a one-click make release script?
15:00:25yglukhov_______Araq, I'm not sure if I explained the problem clearly. Just feel free to ask more questions ;)
15:01:38onoAraq: so how do I build with MSVC, is it even possible?
15:01:39*BitPuffin joined #nim
15:02:00onoI don't want to skip this opportunity using amazing M$ compiler ;)
15:04:44Araqflaviu: mostly because on windows I have no exec bits, and on linux I have no NSIS installer support
15:05:03Araqso ... how do you run a single script on 2 different OSes?
15:05:11flaviuWrite it in Nim :P
15:06:39onoAraq: 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:38onoWTF on Windows tester fails to start because of missing sqlite3.dll
15:12:44onoshouldn'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:28onojust 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:46Araqono: you need a 64bit dll then
15:26:36Araqflaviu: that doesn't solve the problem, I like to run 1 thing on 1 OS and then upload the generated stuff
15:26:49Araqand not switch between OSes
15:27:08flaviuAraq: http://gwyddion.net/documentation/user-guide-en/installation-cross-mingw32.html
15:27:20onoWindows is amazing, no way to display whether the dll is 32-bit or 64-bit
15:27:41flaviuSpecifically, the part under "Wine".
15:29:25*Ven joined #nim
15:32:24Araqono: dumpbin?
15:33:00Araqflaviu: I know about Wine, thanks.
15:33:51*strcmp1 joined #nim
15:34:10onohmm... now complains on missing pcre.dll
15:41:06Araqono: btw you don't need to run the tester anyway
15:41:40Araqnim c -r tests\macros\ttryparseexpr.nim
15:41:51Araqand 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:55onoseems like it is adding some unnecessary space at the end
15:44:59onoon Windows
15:45:07onoor new line in fact
15:45:25*gyeates quit (Ping timeout: 264 seconds)
15:45:37Araqnah oh
15:45:56Araqvery weird, I wasn't on up to date when I tested this
15:46:06Araqand with your most recent changes it does work again
15:46:11Araqsorry for the noise
15:50:32onoaha.... ok, at least had opportunity to play a little with Windows hehe
15:51:33onookay, going home, bbl
15:51:57Araqozra: 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:38apenseavsej, 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:37apenseavsej, ``nnkIdent``s should go to ``nnkIdent`` right?
16:26:36*fowl quit (Remote host closed the connection)
16:26:54apenseFound 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:52rgv151`how to find index of a Rune in an unicode string?
18:18:02*gyeates quit (Ping timeout: 252 seconds)
18:18:13apensergv151`, you could use the runes iterator. not sure there's a built-in proc
18:19:50Araqdon't use runes, use strings ;-)
18:20:12rgv151`oops
18:20:27apenseyeah that's more sensible. Nim's strings are unicode by default, right?
18:20:51rgv151`i'm messing w/ runes
18:21:28rgv151`runes iterator is working fine, but runeAt proc isn't
18:23:43rgv151`i have a string w/ ascii and unicode chars mix'ed
18:24:40apenseshouldn't `find` in strings be part of the stdlib?
18:24:54Araqapense: 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:39apenseAraq, ohh
18:26:06rgv151`unicode chars' len is 2 bytes, is this right?
18:26:33Araqrgv151`: that sounds like utf-16
18:27:04rgv151`that's my problem
18:30:38Araqyou can use newWideCString(x) to get it into utf-16 and WideCString's $ to turn it into a Nim string
18:30:58Araqrunes are utf-32 ...
18:31:30Araqapense: find works for strings just fine?
18:33:16apenseAraq, it sort of does. I'm running into this: https://github.com/nim-lang/Nim/issues/2956
18:33:37apenseI made an issue because Unicode pasting is nasty in my HexChat
18:34:49Araq"It works fine if you import strutils, but it feels like something strange is happening."
18:35:05Araqno. it works as expected.
18:35:18ozrargv151`: unicode chars are 1-x bytes...
18:35:36apenseAraq, why does it think I'm passing a char?
18:35:42ozraeh, I mean utf8
18:36:30ozraAraq: Yeah, I added re for the output-matching. You want it out?
18:38:10Araqapense: cause it tries to use system.find and in there ==
18:38:16ozraHaven't used pegs, but could look into it later to ditch that dep...
18:38:27Araqbut it doesn't report "instantiation from here" for some reason ...
18:38:37Araqstrange
18:39:02Araqbut maybe that's printed in a color that I cannot see?
18:39:24Araqor it got refactored away because colors are more important than content :P
18:39:58apenseah. thanks Araq . didn't think through what `items` was doing
18:40:08reactormonkAraq, I'd kick you for trolling if I could
18:40:44Araqreactormonk: and yet I'm right
18:40:49Araqit does report the line
18:41:07Araqbut the warning message disappeared. yay
18:41:23reactormonkAraq, that's the beauty of good trolling. ;-)
18:42:11rgv151`Araq: my Nim don't have newWideCString proc :-?
18:42:20reactormonkSo is there a way to diff test result outputs in a meaningful way?
18:42:31Araqreactormonk: yes
18:42:42reactormonkAraq, then how do you do it?
18:42:42rgv151`i'm using 0.11.2
18:43:52Araqtester html [commit] generate testresults.html from the database; uses
18:43:54Araqthe latest
18:43:55Araq commit or a specific one (use -1 for the commit
18:43:57Araq before latest etc)
18:44:37reactormonkdo you need to pass it the commit ID or do branches work too?
18:45:42apensergv151`, it's part of systems. is it giving you an error?
18:45:55apensevar m = newWideCString("hello") should just work
18:46:22Araqreactormonk: it needs to find it in its database
18:46:36reactormonkAraq, so no branches I Assume
18:46:48rgv151`yes apense, test.nim(7, 14) Error: undeclared identifier: 'newWideCString'
18:46:49Araqit doesn't care about branches
18:47:32Araqreactormonk: the tester runs the tests, asks for git's commit and stores stuff under that commit
18:47:40Araqlater you commit things, rerun the tester
18:47:50Araqthe tester uses git's commit again etc
18:49:54*brson joined #nim
18:52:20reactormonkAraq, https://github.com/nim-lang/Nim/commit/0d40fd7552e826aa6ce860d101a5bd49548ed785 ?
18:54:23Araqreactormonk: --print opens the HTML for you iirc
18:54:40reactormonk./koch html --print $DEVEL_COMMIT
18:54:42reactormonk?
18:55:41Araqtester --print html $Commit
18:55:50Araqor: tester --print html -1
18:55:52Araqor: tester --print html -2
18:56:10*johnsoft quit (Ping timeout: 252 seconds)
18:57:46Araqrgv151`: wide string support is only active on windows
18:58:04Araqbecause unix generally uses utf-8 anyway
18:58:16Araqwhere do you get the utf-16 from?
18:59:42Araqaha, when I redirect the output to a file I can read the "template/generic instantiation from here"
18:59:44rgv151`https://gist.github.com/rgv151/712051d4d6939e1b2075
19:00:04reactormonkAraq, I'll probably just hit merge in a week or two on that PR
19:00:06rgv151`hmm, windows only..
19:00:32Araqreactormonk: which one?
19:00:56reactormonkAraq, https://github.com/nim-lang/Nim/pull/2930
19:01:31*kas quit (Ping timeout: 250 seconds)
19:01:32rgv151`Araq: my string is "àáảãạaằắẳẵặăầấẩẫậâèéẻẽẹeềếểễệêìíỉĩịiòóỏõọoồốổỗộôờớởỡợơùúủũụuừứửữựưỳýỷỹỵy"
19:01:38Araqrgv151`: well if you just use string literals, you don't have utf-16
19:01:52Araqjust use a normal string and runeLen
19:02:37Araqreactormonk: well it needs to be added to the website.
19:02:59Araqso ... pull it, but that's not enough :P
19:03:07reactormonkAraq, nah, it'll poke in your eye at the top whenever you create an issue / pull request
19:03:17Araqyou need me to get online
19:03:21Araq*to get it
19:05:34*vendethiel joined #nim
19:05:40rgv151`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:25Araqyeah well that's expected
19:06:48*vendethiel- quit (Ping timeout: 252 seconds)
19:07:02Araqjust 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:38rgv151`i see
19:08:24*vendethiel- joined #nim
19:08:44rgv151`i still dont know why i'm getting utf-16 instead of utf-8
19:08:58Araqyou don't get utf-16
19:09:25Araqyou get a something that takes 2 bytes to encode in utf-8
19:09:49*vendethiel quit (Ping timeout: 245 seconds)
19:16:50Araqozra: just use a peg instead of 're' for this feature
19:18:23ozraSure. I'll do that after the deep-earth-digging :)
19:19:41rgv151`ozra: pegs is very cool :)
19:20:03*key_ joined #nim
19:21:45reactormonkAraq, should I just be done with it and pull or wait for some comments?
19:22:07Araqalready told you that I'll rewrite it in ReST
19:22:25AraqI'm still hoping you might do it
19:23:17Araqa ReST file I could integrate easily with the rest of the website ...
19:23:45Araqplus I don't have to worry about my editor removing trailing whitespace -- breaking the markdown file
19:24:10Araq(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:39reactormonkthat you have a shitty editor? I though you said editors should solve all tooling problems.
19:28:35reactormonkrst is http://docutils.sourceforge.net/rst.html ?
19:28:58Araqno i said, nobody should ever have to care about "trailing whitespace"
19:29:20Araqbut git is a dick about it, so my editor adapted and now removes it
19:29:44Araqnice try though.
19:31:45reactormonkThanks, I'm learning from the best ;-)
19:36:31rgv151`bed time, i will get this thing out of my head tmr
19:36:37rgv151`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:43migloHello! 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:47Araqmiglo: with a bit of luck zahary will awake
19:53:59miglothanks, I've notice that I've forgot to integrate more files into my .vim folder
19:56:02miglook, it's working now
19:56:34migloNow, it's time to learn nim :-)
20:01:05*Arrrr quit (Quit: WeeChat 1.2)
20:08:18*johnsoft joined #nim
20:11:13migloI'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:15miglowhere are these 9094 lines are coming from and the size of 14MB?
20:13:29fowlMaybe add --deadcodeelim:on -d:release --opt:size
20:13:41Araqmiglo: the stdlib, in particular system.nim
20:18:29reactormonkAraq, https://github.com/nim-lang/Nim/commit/69ceede3fb363312b0a39042b4887ae2c52d3846
20:21:22*BitPuffin quit (Ping timeout: 256 seconds)
20:35:47reactormonkAraq, 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:56fowlooo the compiler has pretty colors
20:43:59reactormonkAraq, see?
20:44:06reactormonkfancy colors => happy users
20:46:46Araqreactormonk: doesn't apply to our website though :P
20:46:52reactormonkAraq, ah fuck
20:49:00reactormonkstop 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:48flaviureactormonk: nah, your theory is good, just not phrased properly: http://i.imgur.com/6yOK0hC.png
21:01:58miglois 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:41Araqmiglo: no, nim doesn't like underscore based ascii art
21:03:47miglothe tutorial mentions the prefix 'F', but for what does 'F' stand for?
21:08:21Araqoh yeah we should remove that, nobody uses it
21:08:27Araqit stands for 'Field'
21:08:43*elbow_jason quit (Quit: Leaving)
21:14:10migloI 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:44migloso, what is the preferred naming for properties that are not public?
21:16:14flaviumiglo: Same as properties that are public -- just don't export them.
21:17:13miglobut if I provide getter and setter methods the property must have then for my understanding a different name
21:17:55reactormonkmiglo, not sure why people are obsessed with getters/setters - I've never used one in a serious project
21:18:56migloa range check could be part of a setter method
21:19:35*dtscode joined #nim
21:19:35reactormonkYou can have a range check in your type system
21:19:59*dtscode is now known as Guest51359
21:20:13reactormonkCan't remember the syntax for nim though :-/
21:20:23*Guest51359 quit (Client Quit)
21:20:47Araqreactormonk: range[a..b]
21:21:24Araqmiglo: your getters and setters can have the same name as the field
21:21:25reactormonkperfect
21:24:10miglocool
21:24:27reactormonkmiglo, might just be me, but I've usually found data structure with internal mutable state ugly to debug
21:24:48miglothen, the tutorial should also mention this and the example changed
21:25:28reactormonkmiglo, https://github.com/nim-lang/Nim/blob/devel/doc/tut1.txt hit the little pen saying "edit this file"
21:27:34migloreactormonk: 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:03miglo...over, or its ...
21:28:25reactormonkmiglo, "It is not possible to add methods to a class the programmer has no control over."
21:28:43reactormonkAraq, how exactly is "no control over" defined?
21:29:30*milosn_ joined #nim
21:29:47miglomaybe: the programmer cannot add additional methods to a class
21:29:59*milosn quit (Read error: Connection reset by peer)
21:30:29reactormonk... defined in an external file?
21:34:35Araqreactormonk: 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:52reactormonkAraq, "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:35migloit 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:12miglothe 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:59federico3miglo: 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:34Araqmiglo: 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:10dom96ozra: any news on the syntax highlighting on github?
22:29:35*solidsnack joined #nim
22:29:35*solidsnack quit (Client Quit)
22:38:47ozraAccording to varriount the NimLime highlighting and GitHub does _not_ have a connection, so I've no clue unfortunately.
22:38:52ozradom96: ^
22:39:29reactormonkdom96, does ./koch tests c <folder name> work?
22:39:55Araqreactormonk: not really, after the 'c' a category follows
22:40:42dom96ozra: well shit. Could you contact github and ask them for me what is going on with their syntax highlighting? :)
22:41:50ozradom96: I don't know anymore about that than you I'm afraid. So just holler them. I'm deep in debugging atm.
22:42:44dom96ozra: ok, i'll do it.
22:43:54reactormonkDoes args|"all" mean "args, or if args empty, "all""?
22:44:28Araqexactly
22:45:07Araqit's declared in koch.nim btw
22:45:23reactormonk ./koch tests all --failing
22:45:27reactormonk^ correct usage?
22:45:35Araq./koch tests --failing all
22:45:44reactormonkAnd what's pedantic exactly?
22:45:54reactormonkworks both btw
22:48:06reactormonkdom96, 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:06Araqreactormonk: it does stuff with the precious exit code
22:53:16reactormonklike what?
22:53:29*mahlon joined #nim
22:54:18Araqexits with 1 if a test failed
22:54:23*jackv joined #nim
22:55:00reactormonkwhy 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:52Araqcause 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:12miglois it possible to create from an existing sequence a new one but only with a subset of the values?
23:36:01miglook, got it
23:40:25reactormonkmiglo, slicing?
23:42:46migloI did the following: var x = @[1, 2, 3, 4] ; var y = @x[1..x.high]
23:43:50migloyou 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:33miglois there anything like "myseq.empty" to prevent an "if myseq.len <= 0:"?