<< 25-07-2017 >>

00:09:23PMunchWhat is the best way in Nim to remove the last character of a string?
00:11:47PMunchAnd another question. I have many procs with the same signature (callbacks for Gtk signals), I create the callbacks as anonymous procs but it's getting tedious to write the signature out all the time. Is there a way (other than a template) to use a type definition to create a proc?
00:11:53*dankrad quit (Ping timeout: 240 seconds)
00:13:34*itseris quit (Quit: Konversation terminated!)
00:16:00PMunchOkay, so setLen can be used to remove a character.
00:16:43*adeohluwa joined #nim
00:27:36PMunchhttp://ix.io/yGg
00:27:55PMunchThat doesn't work, complains about that it expects an identifier but got (..
00:38:31PMunchNow my code looks like this: http://ix.io/yGh which isn't very nice
00:44:31FromGitter<Varriount> PMunch: Sounds like a job for a template
00:44:52PMunchYeah, I tried: http://ix.io/yGg
00:44:56PMunchBut it didn't like that
00:45:04PMunchComplains that the proc doesn't have a name..
00:45:43FromGitter<Varriount> Why aren't you giving the procedure a name?
00:45:59PMunchBecause it's anonymous
00:46:07PMunchhttp://ix.io/yGh
00:46:13PMunchThere you can see how I use it
00:47:27FromGitter<Varriount> Then why have s dirty template? Giving the procedure a name in the template when it's hygienic will result in hygienic identifiers
01:04:33*endragor joined #nim
01:09:07*endragor quit (Ping timeout: 260 seconds)
01:19:32PMunchBut I don't want to name the proc
01:19:37PMunchIt's meant to be anonymous
01:19:49PMunchOr rather it doesn't need a name
01:21:11PMunchAs you can see from my use-case all of these callbacks are simple anonymous procedures
01:25:45FromGitter<Varriount> If you define the procedure in a hygienic template, it's name will be a randomly generated identifier, which is virtually the same
01:27:16*endragor joined #nim
01:35:37*chemist69 quit (Ping timeout: 255 seconds)
01:46:44PMunchHmm
01:49:44*chemist69 joined #nim
01:50:11*dankrad joined #nim
01:55:31PMunchI can't get this to work at all..
02:00:51*yingjun joined #nim
02:01:32*Snircle_ joined #nim
02:03:16*Snircle quit (Ping timeout: 276 seconds)
02:04:52*dankrad quit (Ping timeout: 255 seconds)
02:23:57*PMunch quit (Quit: leaving)
02:29:13*rnrwashere joined #nim
02:29:14*rnrwashere quit (Max SendQ exceeded)
02:29:38*rnrwashere joined #nim
02:32:05*yingjun quit (Remote host closed the connection)
02:32:14*yingjun joined #nim
02:32:14*yingjun quit (Remote host closed the connection)
02:48:13*yingjun joined #nim
02:49:58mahtobis there any current code about dht?
02:50:33mahtoblike it https://github.com/savoirfairelinux/opendht
02:50:34mahtobor any
02:56:28*adeohluwa quit (Quit: Connection closed for inactivity)
02:58:27*jsgrant quit (Remote host closed the connection)
02:59:27*ShalokShalom quit (Ping timeout: 240 seconds)
03:02:25*jsgrant joined #nim
03:32:58*Snircle_ quit (Quit: Textual IRC Client: www.textualapp.com)
03:34:27FromGitter<zacharycarter> mahtob: I don't think so but I could be wrong, best to search the directory for nimble for something like it
03:34:57mahtoblemme
03:47:44*rnrwashere quit (Read error: No route to host)
03:52:25*yingjun quit (Remote host closed the connection)
03:52:35*yingjun joined #nim
03:53:58*yingjun quit (Remote host closed the connection)
03:57:23*mahtob quit (Remote host closed the connection)
04:01:45*jinshil joined #nim
04:20:08*yingjun joined #nim
04:43:48*yingjun quit (Remote host closed the connection)
04:43:58*yingjun joined #nim
04:47:47*yingjun quit (Remote host closed the connection)
04:47:56*yingjun joined #nim
04:48:02*yingjun quit (Remote host closed the connection)
04:54:05*yingjun joined #nim
04:55:42*rauss quit (Quit: WeeChat 1.9)
05:03:20*v17d joined #nim
05:14:48*yingjun quit (Remote host closed the connection)
05:15:22*yingjun joined #nim
05:19:23*yingjun quit (Ping timeout: 240 seconds)
05:21:50*tankfeeder joined #nim
05:24:20*jinshil quit (Quit: Good-bye!)
05:52:22*yingjun joined #nim
05:58:39*yingjun quit (Remote host closed the connection)
05:58:59*yingjun joined #nim
06:08:52*yingjun quit (Remote host closed the connection)
06:09:29*yingjun joined #nim
06:11:52*nsf joined #nim
06:22:53*joebo quit (Ping timeout: 240 seconds)
06:33:40*v17d quit (Ping timeout: 276 seconds)
06:50:00*joebo joined #nim
07:00:35*Vladar joined #nim
07:00:47*jsgrant quit (Quit: Peace Peeps. o/ If you need me asap, message me at msg[(at)]jsgrant.io & I'll try to get back to you within 24-36 hours.)
07:07:58*ShalokShalom joined #nim
07:22:54*yglukhov joined #nim
07:22:57*ShalokShalom quit (Ping timeout: 240 seconds)
07:25:08*yglukhov quit (Remote host closed the connection)
07:25:24*yglukhov joined #nim
07:49:35*yingjun quit (Remote host closed the connection)
08:06:31Araqreorder pass has arrived
08:06:37Araqadd this as the first line
08:06:39Araq{.noforward: on.}
08:06:49Araqand compile with -d:nimreorder
08:07:18Araqfeedback is highly appreciated
08:07:30*yingjun joined #nim
08:07:41couven92Araq, sounds interesting, what does it do?
08:08:37Araqit means you can declare your top level statements/procs in any order you like
08:09:45couven92Ah, so basically eliminates the need for prototypes when you want to call a proc that is declared later than where you're calling it?
08:10:34couven92(don't know what we call them in Nim, but in C, function declarations are called prototypes, right?)
08:15:00Araqyes
08:15:03Araqand yes.
08:19:18FromGitter<andreaferretti> nice to know!
08:19:29FromGitter<andreaferretti> not that I have some place where to use it
08:20:04FromGitter<andreaferretti> but maybe in next projects it will come useful :-)
08:26:53cremSome people like to write main function at top and all helpers under it.
08:30:39yglukhovAraq: is there some common pattern for debugging compiler, so that it will print its stack trace on errors?
08:31:20*arnetheduck joined #nim
08:31:45yglukhovi add assert(false) to localError but sometimes that doesn't help. asserts earlier than needed.
08:33:08*joebo quit (Ping timeout: 255 seconds)
08:33:36*d10n quit (Ping timeout: 268 seconds)
08:33:44*acidx quit (Ping timeout: 260 seconds)
08:34:49FromGitter<Varriount> Araq: How does the reorder pass affect macros and templates that generate procedures?
08:35:00cremthere's no native protobuf lib for nim, is there?
08:35:19FromGitter<Varriount> crem: Unfortunately, no.
08:35:52FromGitter<Varriount> However if there is a protbuf library for C (or C++) that can be wrapped.
08:37:20*Arrrr joined #nim
08:37:41*bodie_ quit (Quit: ZNC - http://znc.in)
08:37:53cremThat's not that nice as for C++ there is a .cpp file generated for every message, so it's not just an ordinary library wrapper.
08:38:51*d10n joined #nim
08:38:51*d10n quit (Changing host)
08:38:51*d10n joined #nim
08:41:23*bodie_ joined #nim
08:46:51*joebo joined #nim
08:48:28*acidx joined #nim
08:49:09*dom96|w joined #nim
08:51:57FromGitter<andreaferretti> you can use https://github.com/protobuf-c/protobuf-c to generate c structs and then c2nim to generate the corresponding c definitions
08:52:20FromGitter<andreaferretti> but yeah, it would be much nicer to have a complete solution for nim
08:58:35*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
08:59:51*dom96|w joined #nim
09:10:09*arnetheduck quit (Ping timeout: 255 seconds)
09:15:04*yingjun quit (Remote host closed the connection)
09:15:13*yingjun joined #nim
09:17:01*yingjun quit (Remote host closed the connection)
09:19:31*yingjun joined #nim
09:25:31*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
09:27:27*dom96|w joined #nim
09:51:38*tankfeeder quit (Quit: Connection closed for inactivity)
10:00:16*sz0 joined #nim
10:23:35*tankfeeder joined #nim
10:28:00cremThere's no find-substring proc (like string's find) for arbitrary sequence, is there? :-\
10:28:21cremHandling unicode string produces some boilerplate.
11:04:41*yglukhov quit (Remote host closed the connection)
11:07:14*ShalokShalom joined #nim
11:32:23*madmalik joined #nim
11:32:51*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
11:34:53*yglukhov joined #nim
11:39:27*bjz joined #nim
11:40:46*Snircle joined #nim
11:41:48*Tiberium joined #nim
11:42:01*yingjun quit (Remote host closed the connection)
11:46:30*Arrrr quit (Quit: Leaving.)
11:46:34*yingjun joined #nim
11:48:30*yglukhov quit (Remote host closed the connection)
11:53:07*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
12:00:10*yingjun quit (Remote host closed the connection)
12:00:51*Snircle joined #nim
12:02:30*dom96|w joined #nim
12:05:59*Tiberium quit (Ping timeout: 255 seconds)
12:09:48*Tiberium joined #nim
12:10:00*yingjun joined #nim
12:12:29subsetpark crem you can't write a generic for that?
12:20:26*yingjun quit (Remote host closed the connection)
12:29:52*yglukhov joined #nim
12:34:37*endragor quit (Remote host closed the connection)
12:35:04*yglukhov quit (Remote host closed the connection)
12:40:06*xet7 joined #nim
12:40:27*Jesin quit (Ping timeout: 240 seconds)
12:43:35*Tiberium quit (Remote host closed the connection)
12:44:27*impossible joined #nim
12:45:14*Jesin joined #nim
12:45:32*v17d joined #nim
12:46:12*endragor joined #nim
12:46:29*SusWombat quit (Remote host closed the connection)
12:46:49*SusWombat joined #nim
12:46:59*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
12:49:27SentreenThe reorder pass sounds really nice! The need for proc declarations was a major pain point for nim imo, even though it was relatively easy to work around.
12:54:36*yglukhov joined #nim
13:20:53*yingjun joined #nim
13:25:10*yingjun quit (Ping timeout: 240 seconds)
13:33:09*cspar_ joined #nim
13:33:58*MyMind joined #nim
13:35:01*cspar quit (Read error: Connection reset by peer)
13:35:01*Sembei quit (Read error: Connection reset by peer)
13:35:02*niv quit (Quit: Ping timeout (120 seconds))
13:35:02*oprypin quit (Quit: Bye)
13:35:35*oprypin joined #nim
13:35:43*SusWombat quit (Read error: Connection reset by peer)
13:39:10*rauss joined #nim
13:51:38*tankfeeder quit (Quit: Connection closed for inactivity)
13:57:49*PMunch joined #nim
14:18:11*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
14:21:37*Snircle quit (Ping timeout: 246 seconds)
14:22:48*ShalokShalom quit (Ping timeout: 240 seconds)
14:23:25*ShalokShalom joined #nim
14:24:49*Snircle joined #nim
14:25:31*arnetheduck joined #nim
14:27:41*ShalokShalom quit (Ping timeout: 246 seconds)
14:28:09*ShalokShalom joined #nim
14:29:51*impossible quit (Quit: Konversation terminated!)
14:49:27*endragor quit (Remote host closed the connection)
14:55:11*endragor joined #nim
14:58:34PMunchhttps://github.com/nim-lang/Nim/pull/5778
14:58:56PMunchThere Araq, created a test-case similar to the one in tdumptree.nim
14:59:09*PMunch quit (Quit: leaving)
14:59:15*nsf quit (Quit: WeeChat 1.9)
15:00:15*Snircle quit (Ping timeout: 268 seconds)
15:00:42*federico3 quit (Quit: WeeChat 1.7)
15:02:02*federico3 joined #nim
15:04:16*Snircle joined #nim
15:08:59*Snircle quit (Ping timeout: 246 seconds)
15:09:31*Snircle joined #nim
15:16:20*Snircle quit (Ping timeout: 246 seconds)
15:22:57*yingjun joined #nim
15:27:47*yingjun quit (Ping timeout: 260 seconds)
15:33:30*dom96|w joined #nim
15:35:53*niv joined #nim
15:38:48*Arrrr joined #nim
15:43:09*nhywyll joined #nim
15:50:14*Trustable joined #nim
16:05:56*mwbrown_ joined #nim
16:07:51*mwbrown quit (Quit: Exiting)
16:07:51*mwbrown_ is now known as mwbrown
16:09:16nivtype system/converter/template question: how can i make this work? https://gist.github.com/niv/9df6b6237c7a4573c906bf717ae7d871
16:12:47ArrrrI don't think converters work with generics
16:13:34nivawww, okay
16:13:36nivi figured.
16:17:08*ldleworker quit (Ping timeout: 260 seconds)
16:17:59*stefantalpalaru joined #nim
16:18:08*ldlework joined #nim
16:18:08*ldlework quit (Changing host)
16:18:08*ldlework joined #nim
16:20:02stefantalpalaru"./koch web" is broken in HEAD. Error message: asynchttpserver.nim(289, 27) template/generic instantiation from here asyncmacro.nim(43, 27) Error: type mismatch: got (FutureBase, proc (){.closure.})
16:21:26FromGitter<TiberiumN> Araq, wait, you mean that it removes the need for forward declarations? Hmm, I'll try to test it on some of my small projects (because I don't have big ones)
16:23:22*Trustable_2 joined #nim
16:23:22*Trustable quit (Read error: Connection reset by peer)
16:26:31*endragor quit (Remote host closed the connection)
16:28:51*Trustable_2 quit (Read error: Connection reset by peer)
16:29:50*Trustable joined #nim
16:34:35Araqcrem: system.find works for seqs
16:36:19Araqstefantalpalaru: only for OSX though, I think :-)
16:36:26Araqnoticed it too.
16:36:42FromGitter<TiberiumN> Araq: is it normal that some stdlib modules don't work with "{.noforward: on.}"?
16:36:57stefantalpalaruI see this on Linux
16:37:15Araqtravis tests 'koch web' and runs on Linux
16:37:52Araqoh wait, it doesn't... bummer
16:38:27AraqTiberiumN: which ones?
16:38:42FromGitter<TiberiumN> "times" module
16:38:52FromGitter<TiberiumN> if I add noforward pragma, I can't use "TimeInfo" type
16:39:09stefantalpalarunope. no "koch web" here: https://github.com/nim-lang/Nim/blob/devel/.travis.yml
16:39:10Araqbut yeah, I shouldn't have merged .noforward with the preorder pass, will change that
16:39:18Araqstefantalpalaru: yeah, bummer -.-
16:46:35*dankrad joined #nim
16:48:54*yglukhov quit (Remote host closed the connection)
16:50:12*yglukhov joined #nim
16:51:45*endragor joined #nim
16:51:49*itseris joined #nim
16:54:42*yglukhov quit (Ping timeout: 260 seconds)
17:03:48*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
17:05:27*dom96|w joined #nim
17:07:07*arnetheduck quit (Ping timeout: 255 seconds)
17:08:08*yuken joined #nim
17:08:10*yuken left #nim ("Leaving")
17:08:18*stefantalpalaru quit (Quit: Leaving)
17:16:52*dankrad quit (Ping timeout: 260 seconds)
17:18:24*dankrad joined #nim
17:22:14*Trustable quit (Remote host closed the connection)
17:25:53*endragor quit (Remote host closed the connection)
17:34:44*tankfeeder joined #nim
17:35:00*yglukhov joined #nim
17:36:54*krux02 joined #nim
17:37:52*nhywyll quit (Ping timeout: 260 seconds)
17:39:58*yglukhov quit (Ping timeout: 268 seconds)
17:40:22*Arrrr quit (Ping timeout: 240 seconds)
17:44:30*dankrad quit (Ping timeout: 260 seconds)
17:44:45*yglukhov joined #nim
17:46:04*dankrad joined #nim
17:50:00*Trustable joined #nim
17:51:57*nhywyll joined #nim
18:00:14*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:07:12*dom96|w joined #nim
18:16:37*ShalokShalom quit (Read error: Connection reset by peer)
18:21:43*krux02 quit (Remote host closed the connection)
18:22:09*ShalokShalom joined #nim
18:24:59*yingjun joined #nim
18:25:17*dom96|w quit (Quit: My Mac has gone to sleep. ZZZzzz…)
18:29:11*yingjun quit (Ping timeout: 246 seconds)
18:29:40*dankrad quit (Ping timeout: 260 seconds)
18:31:32*dankrad joined #nim
18:32:46*ShalokShalom_ joined #nim
18:33:04*Sentreen quit (Ping timeout: 255 seconds)
18:35:45*ShalokShalom quit (Ping timeout: 248 seconds)
18:36:06*ShalokShalom_ quit (Client Quit)
18:37:24*ShalokShalom joined #nim
18:37:56FromGitter<zacharycarter> o/ all
18:38:32*v17d quit (Ping timeout: 260 seconds)
18:38:49Araqzacharycarter, can you add URLs to the Nim playground?
18:39:06Araqwanted to share code via it recently and figured it's impossible
18:39:26*sz0 quit (Quit: Connection closed for inactivity)
18:40:45FromGitter<zacharycarter> Araq: you can already do it but it's not ideal
18:40:56FromGitter<zacharycarter> you have to pre url encode the code
18:41:02FromGitter<zacharycarter> I could add funcitonality to automate this pretty easily
18:41:33FromGitter<zacharycarter> but all you need to do presently is attach a query parameter with code as the key
18:41:36FromGitter<zacharycarter> so for example
18:42:55FromGitter<zacharycarter> https://play.nim-lang.org/?code=echo%20%22Hello%20World%22%0A%0Afor%20i%20in%200..%3C120%3A%0A%20%20echo%20i
18:43:36FromGitter<zacharycarter> what's the ideal / preferred way of doing this?
18:43:43FromGitter<zacharycarter> and I'll implement it
18:45:17euantorWould probably be better to create a hash of the code and save it in a DB or something
18:46:11*Sentreen joined #nim
18:46:46FromGitter<zacharycarter> I thought about that, but isn't it adding a lot of additional requirements to the app just for sharing snippets? dom96 suggested leveraging gist
18:47:05FromGitter<zacharycarter> https://play.rust-lang.org/
18:47:09FromGitter<zacharycarter> there's the rust playground for comparison
18:47:16euantorYeah, you could use gists
18:48:24FromGitter<zacharycarter> I'll play around with that
18:52:30*rauss quit (Quit: WeeChat 1.9)
18:53:07*rauss joined #nim
18:58:48*sz0 joined #nim
19:09:38*nsf joined #nim
19:14:55*Matthias247 joined #nim
19:26:30*ShalokShalom quit (Ping timeout: 240 seconds)
19:33:36*Trustable quit (Remote host closed the connection)
19:38:14*dankrad quit (Ping timeout: 255 seconds)
19:39:54FromGitter<TiberiumN> +1 for gists, since it wouldn't require a lot of additional requirements
19:40:52FromGitter<TiberiumN> You can read public gists and create them for anonymous users without a token; however, to read or write gists on a user's behalf the gist OAuth scope is required.
19:41:00FromGitter<TiberiumN> so no auth needed either
19:41:29FromGitter<TiberiumN> but I think that gists should be loaded on the user side, not on the server side :)
19:44:58*dankrad joined #nim
19:46:51FromGitter<zacharycarter> what do you mean by that last sentence?
19:47:45FromGitter<TiberiumN> I mean that they should be loaded in JS code in the browser
19:47:54FromGitter<TiberiumN> also - can we close this pointless PR? https://github.com/nim-lang/Nim/pull/6142
19:48:25FromGitter<zacharycarter> it's a zoo at my house
19:48:25FromGitter<zacharycarter> https://pbs.twimg.com/media/DFmuqdqW0AEkQ1y.jpg
19:49:40FromGitter<TiberiumN> the image doesn't load for me for some reason :(
19:49:49FromGitter<zacharycarter> https://pbs.twimg.com/media/DFmuqdqW0AEkQ1y.jpg
19:49:55FromGitter<zacharycarter> dunno
19:50:13FromGitter<zacharycarter> https://twitter.com/Hahaitsfunny/status/889934515682062336
19:50:14FromGitter<zacharycarter> twitter link
19:50:58FromGitter<zacharycarter> @TiberiumN I think the server should be responsible for creating the gists
19:51:21FromGitter<zacharycarter> but maybe I'm just mistunderstanding your sentiment
19:51:47FromGitter<TiberiumN> ah, I just didn't knew that there's anonymous gists on github
19:53:09FromGitter<zacharycarter> gotcha
19:53:48*rauss quit (Quit: WeeChat 1.9)
19:54:03*rauss joined #nim
19:55:19*rauss quit (Client Quit)
19:55:34*rauss joined #nim
20:01:51*Vladar quit (Quit: Leaving)
20:03:23*mahtob joined #nim
20:24:04*MonsterAbyss quit (Ping timeout: 260 seconds)
20:24:26*Lord_Nightmare2 joined #nim
20:24:27*MonsterAbyss joined #nim
20:26:12*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
20:26:14*Lord_Nightmare2 is now known as Lord_Nightmare
20:28:42FromGitter<TiberiumN> one more example of python/nim compatibility: https://gist.github.com/TiberiumN/a9128ee017ff5ff33f5dc6d953e6cd06
20:28:58FromGitter<TiberiumN> also I've used new reorder feature, and it works as expected
20:29:35FromGitter<TiberiumN> (probably this isn't the best implementation of the Nim game, but I don't know)
20:30:26FromGitter<TiberiumN> oh wait
20:30:35*der quit (Quit: No Ping reply in 180 seconds.)
20:31:51*derlafff joined #nim
20:31:55subsetparkThe ordering pass doesn't take care of mutual function calls, does it? I assume you still need to forward declare for that
20:32:53cremWhy wouldn't it? With functions it should be much easier than with types.
20:37:55*nhywyll quit (Quit: nhywyll)
20:47:27*bjz joined #nim
20:48:55Araqsubsetpark: correct, didn't implement forward decl generation
20:49:20subsetparkThat's sensible :) Not too much magic
20:49:38Araqseems complex and comes up rarely, I'd rather spend my time on cyclic module dependencies and/or types
20:50:18*nsf quit (Quit: WeeChat 1.9)
20:52:36*rauss quit (Quit: WeeChat 1.9)
21:06:31mahtobnimgame.nim(18, 11) Error: attempting to call undeclared routine: 'takeTurn'
21:06:42mahtobTiberiumN ?
21:12:32Araq-d:nimreorder
21:12:43Araqbut I'm changing this feature again now :P
21:13:06mahtobstill same erro
21:14:39FromGitter<TiberiumN> You need latest version of compiler
21:14:49FromGitter<TiberiumN> Or you can change the order of procedures
21:14:57FromGitter<TiberiumN> Or add forward declarations
21:16:56mahtobi have 0.17
21:17:56mahtobsorry but why we need to change order of functions
21:18:26mahtobcant nim recognize them.(internal ordering)
21:18:47mahtobs/functions/procedures
21:19:17FromGitter<TiberiumN> It already does with this new feature
21:19:39FromGitter<TiberiumN> You need latest compiler from github sources
21:22:13mahtobhttps://github.com/nim-lang/Nim/commit/ce341982a6b19def86744ed8ff080a7899ae148b
21:22:14mahtob?
21:22:15mahtobhm
21:22:53FromGitter<TiberiumN> Yep
21:23:02mahtobi use v0.17.0 in my distro
21:23:45FromGitter<TiberiumN> Ah, I use devel version almost always :)
21:23:51FromGitter<TiberiumN> Even on arch
21:24:26mahtobsorry but i still dont understand
21:24:47mahtobwhy we need manually order the procs?
21:25:19mahtobif takeTurn is a proc so nim dosnt recognize it?
21:25:24FromGitter<TiberiumN> Because compiler didn't had this feature?
21:25:29mahtobah ok
21:25:51FromGitter<TiberiumN> So takeTurn is used before it's declared
21:25:54mahtobwell which position should be Taketurn
21:27:00*yingjun joined #nim
21:27:06FromGitter<TiberiumN> before play
21:27:13FromGitter<TiberiumN> Oh
21:27:50FromGitter<TiberiumN> And display board should be before takeTurn
21:27:59FromGitter<TiberiumN> And
21:28:02mahtobroot [ ~/Masaüstü ]# ./nimgame
21:28:02mahtobPlayer 1's turn:
21:28:02mahtob5 : *****
21:28:02mahtob4 : ****
21:28:02mahtob3 : ***
21:28:04mahtob2 : **
21:28:06mahtob1 : *
21:28:08mahtob:)
21:28:12mahtobi ordered manually :)
21:28:31FromGitter<TiberiumN> Well i just ported it from python version
21:28:47mahtobhmm i understood clearly at now.
21:28:59mahtobif a proc is defined it should be before using
21:29:15mahtobit should be above
21:29:26*sz0 quit (Quit: Connection closed for inactivity)
21:31:11*yingjun quit (Ping timeout: 246 seconds)
21:33:27mahtobAraq when do you plan the put 0.18 ?
21:34:53mahtobor 0.17.x ?
21:38:40FromGitter<TiberiumN> Or 1.0 :)
21:39:47FromGitter<TiberiumN> (well, I know it wouldn't make much sense to release 1.0 now)
21:39:57*ipjk joined #nim
21:49:34*madmalik quit (Quit: Connection closed for inactivity)
21:50:54*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:53:19mahtobwhen i compile old nim projects
21:53:29mahtobit gives me :
21:53:30mahtobWarning: getContent is deprecated [Deprecated]
21:53:38mahtoblike this warnings.
21:53:49mahtobis ti important to run project?
21:53:53FromGitter<TiberiumN> Us
21:54:04FromGitter<TiberiumN> What do you mean?
21:54:31FromGitter<TiberiumN> This deprecated warning means that you should explicitly create http client instance
21:54:49FromGitter<TiberiumN> let client = newHttpClient()
21:55:00FromGitter<TiberiumN> client.getContent(...)
21:57:22mahtobhm ok
21:58:27*Sentreen quit (Ping timeout: 240 seconds)
21:59:07FromGitter<TiberiumN> But you can always ignore deprecated warnings (but it's better to fix them especially in your own projects)
21:59:31mahtob+1
22:01:25*rauss joined #nim
22:04:21*tankfeeder quit (Quit: Connection closed for inactivity)
22:11:47dom96Araq: AppVeyor increased our timeout to 90 mins
22:11:57*Sentreen joined #nim
22:12:20dom96Araq: All they replied was literally "We increased the timeout to 90 minutes!"
22:12:30dom96So I'm not sure whether they will be willing to increase it more later
22:12:34dom96:?
22:12:37dom96*:/
22:13:16Araqdom96: it still fails though for unknown reasons
22:35:16*PMunch joined #nim
22:36:15PMunchAraq, did you see https://github.com/nim-lang/Nim/pull/5778
22:36:20*Matthias247 quit (Read error: Connection reset by peer)
22:46:35*couven92 quit (Ping timeout: 240 seconds)
23:39:34*deep-book-gk_ joined #nim
23:42:37*deep-book-gk_ left #nim (#nim)