00:10:19 | * | jrbrt quit (Quit: jrbrt) |
00:50:43 | * | CodeVance joined #nim |
01:53:33 | * | CodeVance quit (Read error: Connection reset by peer) |
01:53:37 | * | CodeVance_ joined #nim |
01:56:54 | * | skrylar joined #nim |
02:06:59 | * | darithorn joined #nim |
02:09:48 | * | CodeVance_ quit (Quit: Leaving) |
02:42:37 | * | gokr quit (Quit: Leaving.) |
02:49:23 | * | dddddd quit (Remote host closed the connection) |
02:50:59 | * | leorize quit (Read error: Connection reset by peer) |
02:51:22 | * | leorize joined #nim |
02:56:16 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
02:57:30 | skrylar | i have to say, that protobuf is significantly easier to handle than flatbuffers |
02:57:43 | skrylar | just added protobuf serialization to the lib |
03:34:33 | * | citycide quit (Remote host closed the connection) |
03:54:32 | FromGitter | <gogolxdong> @Varriount How do you implement the sorting of AWS query parameters? |
04:02:56 | * | leorize quit (Ping timeout: 246 seconds) |
04:28:34 | * | leorize joined #nim |
04:36:20 | * | xkapastel quit (Quit: Connection closed for inactivity) |
04:36:34 | * | darithorn quit (Remote host closed the connection) |
04:47:24 | * | leorize quit (Read error: Connection reset by peer) |
04:51:38 | * | leorize joined #nim |
04:54:59 | FromGitter | <Varriount> @gogolxdong Could you be more specific? Is there something wrong with the query parameter sorting? |
04:55:44 | FromGitter | <Varriount> The algorithm uses a "flattened" string of all the query parameters, combined with a sequence of index groups. |
05:04:48 | * | skrylar quit (Remote host closed the connection) |
05:30:35 | * | leorize quit (Read error: Connection reset by peer) |
05:31:08 | * | nsf joined #nim |
05:34:56 | * | leorize joined #nim |
05:45:08 | * | leorize quit (Ping timeout: 246 seconds) |
05:47:23 | * | leorize joined #nim |
05:49:20 | * | def- quit (Quit: -) |
05:52:06 | * | def- joined #nim |
05:53:42 | * | CodeVance joined #nim |
05:56:24 | * | Sembei joined #nim |
05:56:45 | * | leorize quit (Ping timeout: 255 seconds) |
05:57:21 | FromGitter | <gogolxdong> QueryString is hard coded in the previous version you show me . |
05:58:18 | FromGitter | <gogolxdong> How do you sort and encode the query parameters if any? |
05:59:24 | * | CodeVance quit (Quit: Leaving) |
06:06:53 | FromGitter | <gogolxdong> My solution is put them in a OrderedTable and sort like as ` payload.sort(proc (x, y: (string, string)) :int = cmp(x[0], y[0]))` |
06:08:52 | * | NimBot joined #nim |
06:13:04 | * | CodeVance joined #nim |
06:17:00 | * | leorize joined #nim |
06:42:22 | * | PMunch joined #nim |
06:51:20 | * | PMunch quit (Quit: Leaving) |
07:04:35 | FromGitter | <Varriount> @gogolxdong It's my understanding that original query parameters don't need to be sorted, only the data used internally to generate the signatures. |
07:05:35 | FromGitter | <Varriount> The signing code does sort the given query string, when it is calculating the signature. However I don't believe the actual query parameters need to be sorted. |
07:06:57 | FromGitter | <Varriount> That is, the query parameters sent as part of the http data |
07:07:30 | FromGitter | <gogolxdong> orderSegments? |
07:08:17 | * | tersec quit (Ping timeout: 248 seconds) |
07:08:27 | FromGitter | <Varriount> Yes, that performs the ordering internally. |
07:08:30 | * | PMunch joined #nim |
07:10:36 | FromGitter | <gogolxdong> Do you know why change the region cause AWS was not able to validate the provided access credentials? |
07:11:05 | FromGitter | <Varriount> Was the region valid? |
07:11:21 | * | tersec joined #nim |
07:11:41 | FromGitter | <gogolxdong> yes, change it from us-east-2 to ap-southeast-1 |
07:12:13 | FromGitter | <Varriount> Can you tell me what version of the signing code you are using? |
07:12:23 | FromGitter | <Varriount> Or rather, show me? |
07:12:27 | FromGitter | <gogolxdong> version4, the code you gave me. |
07:13:42 | FromGitter | <gogolxdong> https://gist.github.com/gogolxdong/97b236ef11008a0b76242e0462fa360e |
07:16:38 | FromGitter | <Varriount> No, I don't know. |
07:20:33 | PMunch | Are you signing AWS requests gogolxdong? |
07:20:50 | FromGitter | <gogolxdong> yes. |
07:21:14 | PMunch | I remember I had to do that in flash once back in the days :P |
07:21:22 | FromGitter | <Varriount> @gogolxdong Are you sure the endpoint is correct? |
07:22:53 | FromGitter | <gogolxdong> yes, let me see. |
07:23:35 | FromGitter | <Varriount> Make sure the service you are trying to use is available in that region. |
07:29:23 | FromGitter | <gogolxdong> @PMunch why do you have to do this? |
07:31:53 | PMunch | I was uploading data to an EC3 instance IIRC |
07:33:19 | PMunch | Now that I think about it I can't actually quite remember, but I think I was moving data from one storage to another. And I didn't want to download all the data onto my own machine, so I had to push code into the users apps that would migrate their data, or something like that. |
07:34:09 | FromGitter | <gogolxdong> yes S3 storage, interoperate with others. |
07:35:31 | * | xet7 joined #nim |
07:36:01 | FromGitter | <Varriount> @gogolxdong The most recent version of the code is here: https://gist.github.com/Varriount/edfaf064fa17658f2d88c1d740a7070b |
07:36:21 | FromGitter | <Varriount> I believe I fixed some bugs, so perhaps that will work? |
07:39:44 | * | gokr joined #nim |
07:42:46 | FromGitter | <gogolxdong> Sure, I would rather use this more robust code but the invalid access credentials comes from the query string parameters passed in which I have figured out. |
07:50:37 | FromGitter | <gogolxdong> where is addUriEncoded. |
07:55:51 | * | clemens3_ joined #nim |
08:11:39 | * | yglukhov joined #nim |
08:18:06 | * | sz0 quit (Quit: Connection closed for inactivity) |
08:28:14 | * | xkapastel joined #nim |
08:49:48 | * | federico3 quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
08:52:16 | * | federico3 joined #nim |
08:57:37 | * | CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
09:20:53 | FromGitter | <gogolxdong> @PMunch Do you know how to solve the compilation problem on windows? |
09:20:58 | FromGitter | <gogolxdong> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af2bd796f9af87e0453c4e8] |
09:27:53 | * | yglukhov quit (Remote host closed the connection) |
09:28:58 | * | yglukhov joined #nim |
09:33:22 | * | yglukhov quit (Ping timeout: 250 seconds) |
09:41:00 | PMunch | @gogolxdong, sorry it was someone else who did the Windows compilation of wxWidgets.. |
09:41:43 | PMunch | But it might be your wxWidgets version, IIRC it was tested against 3.0.2 |
09:41:50 | PMunch | You seem to be running 3.1.1 |
09:45:38 | PMunch | And I assume you followed the instructions in the README? |
09:48:54 | FromGitter | <gogolxdong> yes |
09:55:30 | PMunch | Then I guess you just have to try with 3.0.2 |
09:57:03 | * | leorize quit (Ping timeout: 255 seconds) |
10:03:10 | FromGitter | <gogolxdong> alright. |
10:03:47 | * | derlafff quit (Remote host closed the connection) |
10:04:12 | * | derlafff joined #nim |
10:07:22 | dom96 | So it seems Rust didn't end up using macros for its async/await https://github.com/rust-lang/rfcs/blob/master/text/2394-async_await.md |
10:12:08 | euantor | Interesting. I wonder if it's because their current macro implementation can't achieve what they wanted, or whether this way is simply easier? |
10:13:27 | dom96 | This section explains it a little https://github.com/rust-lang/rfcs/blob/master/text/2394-async_await.md#final-syntax-for-the-await-expression |
10:15:23 | euantor | Async closures look pretty nice |
10:15:54 | euantor | Their async/await looks like it'll work a little differently too, eg: `When an async function is called, it does not enter the body immediately. Instead, it evaluates to an anonymous type which implements Future. As that future is polled, the function is evaluated up to the next await or return point inside of it (see the await syntax section next).` |
10:16:22 | euantor | In Nim I think the function will be evaluated up to the first await or return point straight away, won't it? |
10:16:50 | dom96 | IIRC Yes, although I have been thinking of changing this. |
10:16:59 | dom96 | (and I might have already done so and forgot :)) |
10:17:51 | dom96 | hrm, but I can see a problem with doing that. |
10:18:20 | euantor | I can see it causing quite a lot of confusion, I don't think any other implementations behave that way though I could be wrong |
10:18:35 | euantor | async blocks also look pretty cool |
10:20:01 | dom96 | Which way? The way Rust's behaves or Nim's? |
10:20:31 | euantor | The Rust way |
10:21:00 | dom96 | Problem with the Nim approach is that the futures are tied to the dispatcher implicitly |
10:21:13 | euantor | THough it's hard to tell how it would actually work without seeing something more than a function that prints something to the console |
10:21:21 | dom96 | and that the immediate execution of an async proc might create an exception |
10:21:45 | dom96 | so: var fut = asyncProc(); echo(fut.failed); might raise. |
10:22:09 | dom96 | which is my main motivation for wanting to change it |
10:22:19 | euantor | https://github.com/rust-lang/rfcs/blob/master/text/2394-async_await.md#initialization-pattern |
10:22:57 | euantor | The initialisation pattern discussed there seems to be their way around the problems I'm thinking about, and it doesn't look too bad |
10:24:09 | dom96 | ahh, to have the luxury to write RFCs like this and discuss the design thoroughly. |
10:24:13 | euantor | I can't see any mention of anything like `asyncCheck` in their RFC either, but I'd guess there must be a way to achieve that kind of thing |
10:24:31 | dom96 | It's probably a case of: dispatcher.run(future) |
10:25:53 | dom96 | Written by a Mozilla employee of course: https://github.com/rust-lang/rfcs/pull/2394 |
10:29:08 | dom96 | All in all, I think our implementation is pretty good in comparison |
10:29:16 | dom96 | We just need streams (which they haven't implemented either) |
10:31:33 | * | derlafff quit (Remote host closed the connection) |
10:31:49 | * | derlafff joined #nim |
10:34:01 | euantor | Yep, streams would be very nice, but I'm happy with everything else async wise so far |
10:53:24 | * | CodeVance joined #nim |
11:02:55 | * | Vladar joined #nim |
11:05:02 | * | rockcavera quit (Remote host closed the connection) |
11:09:01 | * | leru joined #nim |
11:24:22 | gokr | I am daft sometimes but... say I have a uint64 - and I want it as a string (the bytes of it - not a visual representation). So basically a "cast". |
11:28:06 | FromGitter | <narimiran> something like `import strutils; let a = 31; echo a.toBin(16)` ? |
11:28:38 | dom96 | cast[cstring](addr yourUint) |
11:29:26 | dom96 | or better yet: cast[array[size, char](yourUint) |
11:30:06 | gokr | thanks |
11:30:43 | FromGitter | <narimiran> btw, why `toBin` doesn't work with uint? (it expects `BiggestInt`) |
11:30:49 | dom96 | This is pretty unsafe though, why do you need this? |
11:31:06 | dom96 | narimiran: nobody bothered to create an overload for uint |
11:32:50 | * | yglukhov joined #nim |
11:33:08 | FromGitter | <narimiran> ok, i might add those and make PR (if i don't forget when i get home) |
11:35:29 | * | leorize joined #nim |
11:35:51 | FromGitter | <narimiran> i guess changing `BiggestInt` to `SomeInteger` should do the trick, right? |
11:36:07 | dom96 | Possibly |
11:36:14 | dom96 | You can always submit that change as a reminder :) |
11:36:31 | * | yglukhov quit (Remote host closed the connection) |
11:41:00 | FromGitter | <zah> Our team has released some interesting Nimble packages today: ⏎ https://github.com/status-im/nim-stint/ # a very optimized library for dealing with fixed-size big integers ⏎ https://github.com/status-im/nim-chronicles # a library for structured logging with an API that's possible only in Nim |
11:41:50 | gokr | dom96: well, I have a prng giving me a uint64 and I want to stuff it into a hash function that want's a string (just bytes). |
11:42:33 | dom96 | gokr: I see |
11:43:27 | dom96 | zah: Nice :O |
11:46:06 | dom96 | What is it about Chronicles' API that is only possible in Nim? |
11:51:36 | PMunch | dom96, I'm guessing the stuff about logScope would be hard in many other languages |
11:55:08 | * | CodeVance2 joined #nim |
11:55:20 | * | CodeVance quit (Read error: Connection reset by peer) |
11:55:33 | dom96 | Seems to me like it would be possible for any language with macros |
11:59:39 | enthus1ast | can we write hex chars somehow? '0x16' or '\0x16' ? |
11:59:59 | FromGitter | <zah> @dom96 , the whole magic about automatically logged properties specified per lexical scope. |
12:00:35 | dom96 | enthus1ast: \x16 |
12:01:39 | enthus1ast | ahh thanks dom96 |
12:04:28 | * | leru_ joined #nim |
12:08:27 | * | leru quit (Ping timeout: 255 seconds) |
12:16:16 | FromGitter | <gogolxdong> @PMunch successfully compiled on Linux , as for windows I think it's `-IC:\Users\lxdon\.choosenim\toolchains\nim-0.18.0\lib` that triggers `g++.exe: error: /IC:\wxWidgets-3.0.4\include\lib\gcc_lib\mswu: Invalid argument` , have installed 3.0.4 version rather than 3.0.2. |
12:18:02 | FromGitter | <gogolxdong> 1) 0.2 is the same. |
12:18:03 | PMunch | Possibly, this was done on an old version of Nim |
12:18:41 | PMunch | And the guy who compiled for Windows did some stuff with mingw |
12:19:07 | PMunch | It looks like it is given an invalid path though |
12:19:43 | PMunch | If you ever see couven92 on he is the one who did it |
12:19:55 | PMunch | I'll let him know that you're having trouble |
12:20:31 | FromGitter | <gogolxdong> Thanks! |
12:21:14 | * | dddddd joined #nim |
12:21:16 | * | DarkArctic__ quit (Quit: Leaving) |
12:21:36 | * | DarkArctic joined #nim |
12:27:44 | * | athenot joined #nim |
12:28:00 | FromGitter | <couven92> PMunch said someone is having trouble with wxWidgets on Windows? |
12:29:16 | FromGitter | <couven92> (I'll try to help, but I'm not at my computer right now, so I'll have to do this from memory...) |
12:29:27 | * | athenot_ joined #nim |
12:30:12 | FromGitter | <couven92> @gogolxdong what compiler are you using for wxWidgets? |
12:31:37 | FromGitter | <matrixbot> `xomachine` Recently I found that NESM fails to compile its tests with 0.18.1 due to 'undeclared routine' error. The routine that causes the error is being bound inside the compileTime proc via `quote` macro. Was the binding rules changed? |
12:32:11 | * | athenot quit (Ping timeout: 246 seconds) |
12:52:37 | * | DarkArctic_ joined #nim |
12:56:19 | * | DarkArctic quit (Ping timeout: 260 seconds) |
12:56:37 | leru_ | Is there an easy way in nim to ensure a program is always and forever running? |
12:57:12 | FromGitter | <couven92> while true? |
12:58:35 | leru_ | Not like that. If it crashes it should be restored. Like forever in node.js. |
12:59:13 | leorize | you need a process supervisior |
12:59:20 | leorize | supervisor* |
13:00:30 | PMunch | You could basically use a small wrapper that calls your actual program and blocks until it completes. Then have while true within the program and restart it if it ever completes. |
13:03:32 | leru_ | This sounds exactly like what I'm looking for. Any hint for what to look out in the docs? |
13:04:02 | dom96 | This isn't something a programming language provides |
13:04:13 | dom96 | What system are you on? |
13:04:23 | leru_ | linux |
13:04:35 | dom96 | Then you most likely want to set up a systemd service |
13:04:41 | Araq | use systemd |
13:04:49 | leru_ | Ok, thanks |
13:08:01 | PMunch | zah, this chonicles thing looks really cool |
13:09:14 | * | dmi0 joined #nim |
13:10:17 | * | DarkArctic__ joined #nim |
13:12:46 | FromGitter | <gogolxdong> @couven92 g++ for windows ,judging from the compile error. |
13:13:46 | FromGitter | <gogolxdong> I am on the subway home. relying on memory too. |
13:13:51 | FromGitter | <couven92> Hmm... I only ever tried with VCC |
13:14:33 | * | DarkArctic_ quit (Ping timeout: 268 seconds) |
13:14:40 | FromGitter | <gogolxdong> mingw-g++ works? |
13:19:50 | * | dmi0_ joined #nim |
13:21:57 | * | dmi0 quit (Ping timeout: 240 seconds) |
13:26:27 | FromGitter | <couven92> Don't know... Never tried |
13:27:02 | PMunch | Doesn't the README use mingw? |
13:29:53 | PMunch | zah, does chronicles have a log-level setting so that it can prune irrelevant log messages on compile-time? |
13:30:25 | PMunch | Ah, never mind |
13:30:28 | FromGitter | <zah> PMunch, sure, check out the documentation |
13:31:34 | PMunch | Yeah I found it :P |
13:37:05 | * | yglukhov joined #nim |
13:41:27 | * | yglukhov quit (Ping timeout: 240 seconds) |
13:49:45 | * | yglukhov joined #nim |
13:52:57 | * | jxy quit (Ping timeout: 240 seconds) |
13:54:40 | * | jxy joined #nim |
13:57:35 | * | DarkArctic__ quit (Quit: Leaving) |
13:57:39 | FromGitter | <mratsim> @dom96: cabhishek post is invisible: https://forum.nim-lang.org/t/3805 or maybe it was deleted? |
13:57:53 | * | DarkArctic joined #nim |
13:58:23 | dom96 | Fixed |
13:59:06 | PMunch | Wow, I didn't realize how old that VM bug I (re)discovered was :P |
13:59:14 | PMunch | Reported 4 years ago :P |
13:59:54 | * | leorize quit (Ping timeout: 260 seconds) |
14:00:13 | leru_ | have anyone tried compiling nim under windows under the linux subsystem? |
14:03:41 | leru_ | I get this funny message https://pastebin.com/SRjsShiS |
14:05:24 | PMunch | Maybe try to add --threads:on? |
14:05:32 | leru_ | *compiling nim code. not nim itself. that worked well |
14:08:26 | Yardanico | leru_, is Nim installed in WSL or in Windows? |
14:10:30 | * | Ieatnerds joined #nim |
14:11:42 | leru_ | Yardanico, both |
14:12:02 | Yardanico | leru_, it may be a problem that WSL calls Nim which is installed on Windows side |
14:12:43 | Yardanico | try to call nim via full path, like /home/leru/nim/bin/nim c myfile.nim |
14:12:50 | Yardanico | (full path to the nim binary) |
14:12:53 | leru_ | Yardanico, I already checked that |
14:13:39 | leru_ | I manually added "export PATH=/home/leru/.nimble/bin:$PATH" to my .bashrc |
14:14:05 | leru_ | Before that nim wasn't found |
14:15:03 | * | leorize joined #nim |
14:22:25 | * | dmi0_ quit (Ping timeout: 248 seconds) |
14:24:28 | shashlick | Why don't we ship with tcc as a starter compiler for Windows? I know there's no c++ support but seems super fast and easy to setup |
14:27:36 | * | leorize quit (Ping timeout: 250 seconds) |
14:29:04 | * | girvo quit (Ping timeout: 260 seconds) |
14:29:14 | * | leorize joined #nim |
14:29:31 | * | girvo joined #nim |
14:29:56 | * | dmi0 joined #nim |
14:32:57 | * | leru_ quit (Quit: Leaving) |
14:33:10 | FromGitter | <leruu> Another thing I was trying is cross compilation. But it didn't work either ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5af306a55cf0b830046ad287] |
14:35:24 | FromGitter | <leruu> Does this even work? Probably I should just compile on my server. Would be way easyier... |
14:38:24 | * | yglukhov quit (Remote host closed the connection) |
14:39:54 | Ieatnerds | Quick question as I haven't done it in awhile. is the best way to clear the terminal of text to just use execCmd "clear"? or is there a better way? |
14:40:25 | PMunch | Ieatnerds, look in the terminal module in the stdlib |
14:40:45 | PMunch | It should have a cross-platform clear procedure |
14:42:43 | Ieatnerds | Thank you. Dont know why I didnt even think of that, was on rosetta code and the example for nim just uses execCmd from the osproc module |
14:44:46 | * | PMunch quit (Quit: Leaving) |
14:45:03 | * | miran joined #nim |
14:47:26 | * | aziz joined #nim |
14:47:50 | * | aziz quit (Client Quit) |
14:48:23 | * | aziz joined #nim |
14:48:35 | * | aziz quit (Client Quit) |
14:52:48 | * | clemens3_ quit (Quit: WeeChat 2.1) |
14:57:23 | * | yglukhov joined #nim |
14:59:38 | Yardanico | leruu: idk really, nim works fine for me on any system |
15:00:03 | Yardanico | and to cross-compile for linux you need to have c compiler which outputs linux binaries |
15:00:06 | Yardanico | and has linux headers |
15:03:31 | * | nsf quit (Quit: WeeChat 2.1) |
15:04:50 | * | athenot_ quit (Remote host closed the connection) |
15:05:40 | * | athenot joined #nim |
15:09:52 | * | yglukhov quit (Remote host closed the connection) |
15:11:04 | * | leorize quit (Ping timeout: 260 seconds) |
15:12:52 | * | leorize joined #nim |
15:19:56 | * | leorize quit (Quit: WeeChat 2.1) |
15:20:14 | * | darithorn joined #nim |
15:23:51 | * | dmi0_ joined #nim |
15:26:27 | * | dmi0 quit (Ping timeout: 255 seconds) |
15:26:54 | * | ryan_ford joined #nim |
15:33:37 | * | xcm quit (Killed (orwell.freenode.net (Nickname regained by services))) |
15:34:01 | * | fredrik92 quit (Read error: Connection reset by peer) |
15:34:59 | * | xcm joined #nim |
15:54:19 | * | Trustable joined #nim |
16:03:04 | * | rockcavera joined #nim |
16:07:42 | * | yglukhov joined #nim |
16:09:08 | dom96 | gotta love sqlite |
16:09:20 | dom96 | Gives an "out of memory" error for pretty much all errors |
16:15:54 | * | yglukhov quit (Remote host closed the connection) |
16:16:19 | * | dmi0__ joined #nim |
16:19:06 | * | dmi0_ quit (Ping timeout: 255 seconds) |
16:29:40 | * | ryan_ford left #nim ("WeeChat 1.4") |
16:30:55 | * | Trustable quit (Remote host closed the connection) |
16:34:28 | * | nsf joined #nim |
16:42:19 | FromGitter | <Varriount> dom96: Is that because it's actually out of memory? |
16:42:24 | dom96 | nope |
16:42:44 | dom96 | in this case it was because I didn't initialise the connection properly |
16:45:10 | shashlick | dom96: why does choosenim download a different mingw package than finish or what's posted on the Windows install page |
16:45:31 | dom96 | Does it? |
16:45:37 | FromGitter | <Varriount> At least it didn't try to allocate all the memory |
16:47:24 | * | jjido joined #nim |
16:52:46 | * | kunev quit (Quit: е те!) |
16:54:37 | shashlick | Ya they are different urls |
16:58:42 | shashlick | https://nim-lang.org/download/mingw32-6.3.0.7z on the website and finish, http://nim-lang.org/download/mingw32.tar.gz in choosenim |
16:59:34 | * | jjido quit (Ping timeout: 260 seconds) |
17:01:19 | * | jjido joined #nim |
17:05:20 | shashlick | i'd much rather leave it to the user to install the C compiler and have finish/choosenim detect what's installed and adjust nim.cfg |
17:05:32 | shashlick | provide guidance and recommendations on the install website |
17:07:00 | shashlick | it will also be better to run regular builds/tests on vcc, clang and a few other popular compilers |
17:08:57 | * | dmi0_ joined #nim |
17:09:14 | * | Ieatnerds quit (Ping timeout: 250 seconds) |
17:11:32 | * | dmi0__ quit (Ping timeout: 256 seconds) |
17:12:16 | * | jjido quit (Ping timeout: 250 seconds) |
17:14:19 | * | jrbrt joined #nim |
17:25:30 | * | Ieatnerds joined #nim |
17:33:15 | * | Ieatnerds quit (Remote host closed the connection) |
17:33:41 | * | Ieatnerds joined #nim |
17:52:32 | * | citycide joined #nim |
17:59:07 | * | athenot quit (Quit: Textual IRC Client: www.textualapp.com) |
18:00:53 | * | dmi0__ joined #nim |
18:01:29 | * | athenot joined #nim |
18:03:30 | * | dmi0_ quit (Ping timeout: 255 seconds) |
18:24:12 | * | vuLgAr quit (Ping timeout: 250 seconds) |
18:24:39 | * | athenot_ joined #nim |
18:25:41 | * | athenot quit (Ping timeout: 246 seconds) |
18:32:51 | * | yglukhov joined #nim |
18:37:15 | * | yglukhov quit (Ping timeout: 255 seconds) |
18:37:29 | * | nsf quit (Quit: WeeChat 2.1) |
18:41:18 | * | athenot_ quit (Ping timeout: 255 seconds) |
18:42:02 | * | athenot joined #nim |
18:50:45 | * | Ieatnerds quit (Ping timeout: 255 seconds) |
18:52:27 | * | yglukhov joined #nim |
18:53:18 | * | dmi0_ joined #nim |
18:54:58 | * | yglukhov quit (Read error: Connection reset by peer) |
18:55:17 | * | yglukhov joined #nim |
18:56:38 | * | dmi0__ quit (Ping timeout: 255 seconds) |
19:01:12 | * | NimBot joined #nim |
19:01:57 | * | dmi0_ quit (Quit: Leaving) |
19:17:44 | * | athenot quit (Remote host closed the connection) |
19:18:28 | * | athenot joined #nim |
19:29:25 | CodeVance2 | Does nim need a space between around each operator |
19:29:54 | Yardanico | !eval 1+2 |
19:29:56 | NimBot | Compile failed: in.nim(1, 2) Error: expression '3' is of type 'int literal(3)' and has to be discarded |
19:30:02 | Yardanico | !eval echo(1+2) |
19:30:04 | NimBot | 3 |
19:31:38 | CodeVance2 | !eval echo "1234567890"[1..-1] |
19:31:39 | NimBot | Compile failed: in.nim(1, 20) Error: undeclared identifier: '..-' |
19:32:42 | shashlick | !eval echo "1234567890"[1 .. -1] |
19:32:45 | NimBot | <no output> |
19:32:53 | shashlick | !eval echo "1234567890"[1 .. ^1] |
19:32:55 | NimBot | 234567890 |
19:33:07 | CodeVance2 | !eval var s = "1234567890"; s[1 .. -1] |
19:33:08 | NimBot | Compile failed: in.nim(1, 24) Error: expression 's[1 .. -1]' is of type 'string' and has to be discarded |
19:33:22 | shashlick | use ^1 not -1, that's python |
19:33:23 | CodeVance2 | !eval var s = "1234567890"; echo s[1 .. -1] |
19:33:25 | NimBot | <no output> |
19:33:41 | CodeVance2 | !eval var s = "1234567890"; echo s[1 .. ^1] |
19:33:43 | NimBot | 234567890 |
19:33:47 | FromGitter | <alehander42> !eval import os |
19:33:50 | NimBot | <no output> |
19:33:58 | FromGitter | <alehander42> hmm |
19:33:59 | CodeVance2 | !eval var s = "1234567890"; echo s[1 .. ^2] |
19:34:02 | NimBot | 23456789 |
19:34:16 | CodeVance2 | okay seems fine |
19:34:23 | FromGitter | <alehander42> !eval 4 ^ 2 |
19:34:24 | NimBot | Compile failed: in.nim(1, 3) Error: type mismatch: got <int literal(4), int literal(2)> |
19:35:03 | CodeVance2 | but you have to insert spaces between the operator |
19:35:15 | CodeVance2 | around* |
19:35:18 | shashlick | !eval var s = "1234567890"; echo s[1..^1] |
19:35:21 | NimBot | 234567890 |
19:35:32 | shashlick | without spaces |
19:37:10 | CodeVance2 | https://scripter.co/notes/string-fns-nim-vs-python/ |
19:37:21 | CodeVance2 | Said add sacees |
19:37:41 | Yardanico | CodeVance2, this person can be wrong, it's not an official article :) |
19:38:27 | CodeVance2 | Just linked from the nim wiki :P |
19:38:39 | Yardanico | CodeVance2, https://github.com/nim-lang/Nim/issues/6216 - relevant |
19:38:57 | Yardanico | basically without spaces you use `..^` operator |
19:39:04 | Yardanico | and with spaces you use `..` and `^` operators |
19:41:08 | * | vivus joined #nim |
19:42:03 | FromGitter | <mratsim> !eval import math; 4 ^ 2 |
19:42:04 | NimBot | Compile failed: in.nim(1, 16) Error: expression '4 ^ 2' is of type 'int' and has to be discarded |
19:42:20 | FromGitter | <mratsim> !eval import math; echo 4 ^ 2 |
19:42:23 | NimBot | 16 |
19:43:53 | * | CodeVance2 quit (Read error: Connection reset by peer) |
19:43:57 | FromGitter | <mratsim> For the scientists here, Arraymancer can now load and write Numpy files =). |
19:47:44 | * | CodeVance joined #nim |
19:54:11 | * | Vladar quit (Quit: Leaving) |
19:57:37 | * | jjido joined #nim |
20:06:14 | * | Ieatnerds joined #nim |
20:06:32 | * | Ieatnerds quit (Remote host closed the connection) |
20:06:58 | * | Ieatnerds joined #nim |
20:10:27 | * | DarkArctic_ joined #nim |
20:12:50 | * | ARCADIVS joined #nim |
20:14:00 | * | DarkArctic quit (Ping timeout: 255 seconds) |
20:15:34 | * | DarkArctic_ quit (Ping timeout: 250 seconds) |
20:16:44 | * | rauss quit (Ping timeout: 260 seconds) |
20:17:00 | shashlick | I want to set tlsEmulation:on for tcc by default, i tried in nim.cfg with an @if gcc or tcc block but it doesn't work |
20:26:22 | * | yglukhov quit (Remote host closed the connection) |
20:28:31 | * | nsf joined #nim |
20:29:52 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:32:03 | * | rauss joined #nim |
20:33:44 | * | yglukhov joined #nim |
20:39:22 | * | yglukhov quit (Read error: Connection reset by peer) |
20:39:58 | * | yglukhov joined #nim |
20:49:58 | * | CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
20:51:48 | * | miran quit (Ping timeout: 255 seconds) |
20:58:45 | * | CodeVance joined #nim |
21:12:38 | FromGitter | <Varriount> zah: Isn't the downside of using template based scoping |
21:13:01 | FromGitter | <Varriount> That the scope are determined at compile time? |
21:28:10 | * | nsf quit (Quit: WeeChat 2.1) |
21:32:20 | * | rockcavera quit (Remote host closed the connection) |
21:41:31 | FromDiscord | <awr> was looking at the nim-stint thing; I didn't know RISC-V hardware had existed yet |
21:47:43 | yglukhov | @awr https://www.sifive.com/products/hifive-unleashed/ |
21:55:27 | FromDiscord | <awr> that's pretty cool |
21:56:08 | FromDiscord | <awr> i wonder how far-off RISC-V smartphones would be |
21:59:18 | yglukhov | pretty far i'm guessing... :) |
22:06:15 | * | rockcavera joined #nim |
22:10:56 | * | Senketsu joined #nim |
22:10:58 | shashlick | I see nim tests populates the testresults directory |
22:11:05 | shashlick | is there a tool to parse the output? |
22:12:13 | * | citycide quit (Quit: leaving) |
22:12:28 | * | citycide joined #nim |
22:13:24 | shashlick | tests\testament\tester html |
22:18:10 | shashlick | really need help to have tlsemulation always on for tcc, any suggestions on how to update nim.cfg for tcc appreciated |
22:28:42 | shashlick | okay never mind, looks like the test cases hard code --tlsEmulation:off and so are failing with tcc |
22:33:37 | * | athenot_ joined #nim |
22:34:51 | * | athenot quit (Ping timeout: 255 seconds) |
22:35:32 | * | sz0 joined #nim |
23:35:21 | * | xet7 quit (Remote host closed the connection) |
23:43:01 | * | leorize joined #nim |
23:49:41 | * | jrbrt quit (Quit: jrbrt) |