00:09:23 | PMunch | What is the best way in Nim to remove the last character of a string? |
00:11:47 | PMunch | And 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:00 | PMunch | Okay, so setLen can be used to remove a character. |
00:16:43 | * | adeohluwa joined #nim |
00:27:36 | PMunch | http://ix.io/yGg |
00:27:55 | PMunch | That doesn't work, complains about that it expects an identifier but got (.. |
00:38:31 | PMunch | Now my code looks like this: http://ix.io/yGh which isn't very nice |
00:44:31 | FromGitter | <Varriount> PMunch: Sounds like a job for a template |
00:44:52 | PMunch | Yeah, I tried: http://ix.io/yGg |
00:44:56 | PMunch | But it didn't like that |
00:45:04 | PMunch | Complains that the proc doesn't have a name.. |
00:45:43 | FromGitter | <Varriount> Why aren't you giving the procedure a name? |
00:45:59 | PMunch | Because it's anonymous |
00:46:07 | PMunch | http://ix.io/yGh |
00:46:13 | PMunch | There you can see how I use it |
00:47:27 | FromGitter | <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:32 | PMunch | But I don't want to name the proc |
01:19:37 | PMunch | It's meant to be anonymous |
01:19:49 | PMunch | Or rather it doesn't need a name |
01:21:11 | PMunch | As you can see from my use-case all of these callbacks are simple anonymous procedures |
01:25:45 | FromGitter | <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:44 | PMunch | Hmm |
01:49:44 | * | chemist69 joined #nim |
01:50:11 | * | dankrad joined #nim |
01:55:31 | PMunch | I 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:58 | mahtob | is there any current code about dht? |
02:50:33 | mahtob | like it https://github.com/savoirfairelinux/opendht |
02:50:34 | mahtob | or 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:27 | FromGitter | <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:57 | mahtob | lemme |
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:31 | Araq | reorder pass has arrived |
08:06:37 | Araq | add this as the first line |
08:06:39 | Araq | {.noforward: on.} |
08:06:49 | Araq | and compile with -d:nimreorder |
08:07:18 | Araq | feedback is highly appreciated |
08:07:30 | * | yingjun joined #nim |
08:07:41 | couven92 | Araq, sounds interesting, what does it do? |
08:08:37 | Araq | it means you can declare your top level statements/procs in any order you like |
08:09:45 | couven92 | Ah, 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:34 | couven92 | (don't know what we call them in Nim, but in C, function declarations are called prototypes, right?) |
08:15:00 | Araq | yes |
08:15:03 | Araq | and yes. |
08:19:18 | FromGitter | <andreaferretti> nice to know! |
08:19:29 | FromGitter | <andreaferretti> not that I have some place where to use it |
08:20:04 | FromGitter | <andreaferretti> but maybe in next projects it will come useful :-) |
08:26:53 | crem | Some people like to write main function at top and all helpers under it. |
08:30:39 | yglukhov | Araq: 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:45 | yglukhov | i 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:49 | FromGitter | <Varriount> Araq: How does the reorder pass affect macros and templates that generate procedures? |
08:35:00 | crem | there's no native protobuf lib for nim, is there? |
08:35:19 | FromGitter | <Varriount> crem: Unfortunately, no. |
08:35:52 | FromGitter | <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:53 | crem | That'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:57 | FromGitter | <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:20 | FromGitter | <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:00 | crem | There's no find-substring proc (like string's find) for arbitrary sequence, is there? :-\ |
10:28:21 | crem | Handling 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:29 | subsetpark | 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:27 | Sentreen | The 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:34 | PMunch | https://github.com/nim-lang/Nim/pull/5778 |
14:58:56 | PMunch | There 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:16 | niv | type system/converter/template question: how can i make this work? https://gist.github.com/niv/9df6b6237c7a4573c906bf717ae7d871 |
16:12:47 | Arrrr | I don't think converters work with generics |
16:13:34 | niv | awww, okay |
16:13:36 | niv | i 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:02 | stefantalpalaru | "./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:26 | FromGitter | <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:35 | Araq | crem: system.find works for seqs |
16:36:19 | Araq | stefantalpalaru: only for OSX though, I think :-) |
16:36:26 | Araq | noticed it too. |
16:36:42 | FromGitter | <TiberiumN> Araq: is it normal that some stdlib modules don't work with "{.noforward: on.}"? |
16:36:57 | stefantalpalaru | I see this on Linux |
16:37:15 | Araq | travis tests 'koch web' and runs on Linux |
16:37:52 | Araq | oh wait, it doesn't... bummer |
16:38:27 | Araq | TiberiumN: which ones? |
16:38:42 | FromGitter | <TiberiumN> "times" module |
16:38:52 | FromGitter | <TiberiumN> if I add noforward pragma, I can't use "TimeInfo" type |
16:39:09 | stefantalpalaru | nope. no "koch web" here: https://github.com/nim-lang/Nim/blob/devel/.travis.yml |
16:39:10 | Araq | but yeah, I shouldn't have merged .noforward with the preorder pass, will change that |
16:39:18 | Araq | stefantalpalaru: 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:56 | FromGitter | <zacharycarter> o/ all |
18:38:32 | * | v17d quit (Ping timeout: 260 seconds) |
18:38:49 | Araq | zacharycarter, can you add URLs to the Nim playground? |
18:39:06 | Araq | wanted to share code via it recently and figured it's impossible |
18:39:26 | * | sz0 quit (Quit: Connection closed for inactivity) |
18:40:45 | FromGitter | <zacharycarter> Araq: you can already do it but it's not ideal |
18:40:56 | FromGitter | <zacharycarter> you have to pre url encode the code |
18:41:02 | FromGitter | <zacharycarter> I could add funcitonality to automate this pretty easily |
18:41:33 | FromGitter | <zacharycarter> but all you need to do presently is attach a query parameter with code as the key |
18:41:36 | FromGitter | <zacharycarter> so for example |
18:42:55 | FromGitter | <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:36 | FromGitter | <zacharycarter> what's the ideal / preferred way of doing this? |
18:43:43 | FromGitter | <zacharycarter> and I'll implement it |
18:45:17 | euantor | Would 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:46 | FromGitter | <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:05 | FromGitter | <zacharycarter> https://play.rust-lang.org/ |
18:47:09 | FromGitter | <zacharycarter> there's the rust playground for comparison |
18:47:16 | euantor | Yeah, you could use gists |
18:48:24 | FromGitter | <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:54 | FromGitter | <TiberiumN> +1 for gists, since it wouldn't require a lot of additional requirements |
19:40:52 | FromGitter | <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:00 | FromGitter | <TiberiumN> so no auth needed either |
19:41:29 | FromGitter | <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:51 | FromGitter | <zacharycarter> what do you mean by that last sentence? |
19:47:45 | FromGitter | <TiberiumN> I mean that they should be loaded in JS code in the browser |
19:47:54 | FromGitter | <TiberiumN> also - can we close this pointless PR? https://github.com/nim-lang/Nim/pull/6142 |
19:48:25 | FromGitter | <zacharycarter> it's a zoo at my house |
19:48:25 | FromGitter | <zacharycarter> https://pbs.twimg.com/media/DFmuqdqW0AEkQ1y.jpg |
19:49:40 | FromGitter | <TiberiumN> the image doesn't load for me for some reason :( |
19:49:49 | FromGitter | <zacharycarter> https://pbs.twimg.com/media/DFmuqdqW0AEkQ1y.jpg |
19:49:55 | FromGitter | <zacharycarter> dunno |
19:50:13 | FromGitter | <zacharycarter> https://twitter.com/Hahaitsfunny/status/889934515682062336 |
19:50:14 | FromGitter | <zacharycarter> twitter link |
19:50:58 | FromGitter | <zacharycarter> @TiberiumN I think the server should be responsible for creating the gists |
19:51:21 | FromGitter | <zacharycarter> but maybe I'm just mistunderstanding your sentiment |
19:51:47 | FromGitter | <TiberiumN> ah, I just didn't knew that there's anonymous gists on github |
19:53:09 | FromGitter | <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:42 | FromGitter | <TiberiumN> one more example of python/nim compatibility: https://gist.github.com/TiberiumN/a9128ee017ff5ff33f5dc6d953e6cd06 |
20:28:58 | FromGitter | <TiberiumN> also I've used new reorder feature, and it works as expected |
20:29:35 | FromGitter | <TiberiumN> (probably this isn't the best implementation of the Nim game, but I don't know) |
20:30:26 | FromGitter | <TiberiumN> oh wait |
20:30:35 | * | der quit (Quit: No Ping reply in 180 seconds.) |
20:31:51 | * | derlafff joined #nim |
20:31:55 | subsetpark | The ordering pass doesn't take care of mutual function calls, does it? I assume you still need to forward declare for that |
20:32:53 | crem | Why 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:55 | Araq | subsetpark: correct, didn't implement forward decl generation |
20:49:20 | subsetpark | That's sensible :) Not too much magic |
20:49:38 | Araq | seems 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:31 | mahtob | nimgame.nim(18, 11) Error: attempting to call undeclared routine: 'takeTurn' |
21:06:42 | mahtob | TiberiumN ? |
21:12:32 | Araq | -d:nimreorder |
21:12:43 | Araq | but I'm changing this feature again now :P |
21:13:06 | mahtob | still same erro |
21:14:39 | FromGitter | <TiberiumN> You need latest version of compiler |
21:14:49 | FromGitter | <TiberiumN> Or you can change the order of procedures |
21:14:57 | FromGitter | <TiberiumN> Or add forward declarations |
21:16:56 | mahtob | i have 0.17 |
21:17:56 | mahtob | sorry but why we need to change order of functions |
21:18:26 | mahtob | cant nim recognize them.(internal ordering) |
21:18:47 | mahtob | s/functions/procedures |
21:19:17 | FromGitter | <TiberiumN> It already does with this new feature |
21:19:39 | FromGitter | <TiberiumN> You need latest compiler from github sources |
21:22:13 | mahtob | https://github.com/nim-lang/Nim/commit/ce341982a6b19def86744ed8ff080a7899ae148b |
21:22:14 | mahtob | ? |
21:22:15 | mahtob | hm |
21:22:53 | FromGitter | <TiberiumN> Yep |
21:23:02 | mahtob | i use v0.17.0 in my distro |
21:23:45 | FromGitter | <TiberiumN> Ah, I use devel version almost always :) |
21:23:51 | FromGitter | <TiberiumN> Even on arch |
21:24:26 | mahtob | sorry but i still dont understand |
21:24:47 | mahtob | why we need manually order the procs? |
21:25:19 | mahtob | if takeTurn is a proc so nim dosnt recognize it? |
21:25:24 | FromGitter | <TiberiumN> Because compiler didn't had this feature? |
21:25:29 | mahtob | ah ok |
21:25:51 | FromGitter | <TiberiumN> So takeTurn is used before it's declared |
21:25:54 | mahtob | well which position should be Taketurn |
21:27:00 | * | yingjun joined #nim |
21:27:06 | FromGitter | <TiberiumN> before play |
21:27:13 | FromGitter | <TiberiumN> Oh |
21:27:50 | FromGitter | <TiberiumN> And display board should be before takeTurn |
21:27:59 | FromGitter | <TiberiumN> And |
21:28:02 | mahtob | root [ ~/Masaüstü ]# ./nimgame |
21:28:02 | mahtob | Player 1's turn: |
21:28:02 | mahtob | 5 : ***** |
21:28:02 | mahtob | 4 : **** |
21:28:02 | mahtob | 3 : *** |
21:28:04 | mahtob | 2 : ** |
21:28:06 | mahtob | 1 : * |
21:28:08 | mahtob | :) |
21:28:12 | mahtob | i ordered manually :) |
21:28:31 | FromGitter | <TiberiumN> Well i just ported it from python version |
21:28:47 | mahtob | hmm i understood clearly at now. |
21:28:59 | mahtob | if a proc is defined it should be before using |
21:29:15 | mahtob | it should be above |
21:29:26 | * | sz0 quit (Quit: Connection closed for inactivity) |
21:31:11 | * | yingjun quit (Ping timeout: 246 seconds) |
21:33:27 | mahtob | Araq when do you plan the put 0.18 ? |
21:34:53 | mahtob | or 0.17.x ? |
21:38:40 | FromGitter | <TiberiumN> Or 1.0 :) |
21:39:47 | FromGitter | <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:19 | mahtob | when i compile old nim projects |
21:53:29 | mahtob | it gives me : |
21:53:30 | mahtob | Warning: getContent is deprecated [Deprecated] |
21:53:38 | mahtob | like this warnings. |
21:53:49 | mahtob | is ti important to run project? |
21:53:53 | FromGitter | <TiberiumN> Us |
21:54:04 | FromGitter | <TiberiumN> What do you mean? |
21:54:31 | FromGitter | <TiberiumN> This deprecated warning means that you should explicitly create http client instance |
21:54:49 | FromGitter | <TiberiumN> let client = newHttpClient() |
21:55:00 | FromGitter | <TiberiumN> client.getContent(...) |
21:57:22 | mahtob | hm ok |
21:58:27 | * | Sentreen quit (Ping timeout: 240 seconds) |
21:59:07 | FromGitter | <TiberiumN> But you can always ignore deprecated warnings (but it's better to fix them especially in your own projects) |
21:59:31 | mahtob | +1 |
22:01:25 | * | rauss joined #nim |
22:04:21 | * | tankfeeder quit (Quit: Connection closed for inactivity) |
22:11:47 | dom96 | Araq: AppVeyor increased our timeout to 90 mins |
22:11:57 | * | Sentreen joined #nim |
22:12:20 | dom96 | Araq: All they replied was literally "We increased the timeout to 90 minutes!" |
22:12:30 | dom96 | So I'm not sure whether they will be willing to increase it more later |
22:12:34 | dom96 | :? |
22:12:37 | dom96 | *:/ |
22:13:16 | Araq | dom96: it still fails though for unknown reasons |
22:35:16 | * | PMunch joined #nim |
22:36:15 | PMunch | Araq, 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) |