00:01:44 | * | enthus1ast joined #nim |
00:02:59 | FromGitter | <krux02> yes |
00:05:16 | FromGitter | <krux02> and use the events iterator, that is pretty neat syntax sugar |
00:05:57 | CodeVance | lol |
00:06:29 | * | xkapastel joined #nim |
00:06:56 | CodeVance | wait. What events iterator |
00:07:35 | FromGitter | <krux02> for event in events(): |
00:07:54 | FromGitter | <krux02> it basically is just poll event |
00:08:09 | CodeVance | Oh I thought it was something complex |
00:08:13 | FromGitter | <krux02> no |
00:09:05 | CodeVance | gui in sdl/glfw |
00:09:06 | FromGitter | <krux02> CodeVance: take a look at my opengl examples here https://github.com/krux02/opengl-sandbox/blob/master/examples/hello_triangle.nim |
00:09:14 | FromGitter | <krux02> AntTweakBar |
00:09:26 | FromGitter | <krux02> (it's not for beauty just for debugging stuff) |
00:09:33 | CodeVance | krux02[m], I was going to try translating that to nim a moment ago |
00:09:59 | FromGitter | <krux02> translating what to nim? |
00:10:19 | FromGitter | <krux02> for matrix vector stuff, there is a glm port |
00:10:34 | FromGitter | <krux02> with full swizzling |
00:10:50 | FromGitter | <krux02> v.xxzz |
00:10:57 | FromGitter | <krux02> v.wwyx |
00:11:01 | FromGitter | <krux02> all fully supported |
00:11:22 | CodeVance | from C to nim |
00:11:48 | FromGitter | <krux02> but be aware my hello triange uses macros to generate all the fuzz for attribute uniform binding and shader compilation |
00:16:56 | FromGitter | <krux02> maybe you can try to run those examples if you are interested |
00:17:44 | CodeVance | I'll give it a go later this week. My data's low right now |
00:24:29 | * | leorize joined #nim |
00:24:57 | * | kunev quit (Ping timeout: 264 seconds) |
00:25:12 | * | kunev joined #nim |
00:29:51 | * | natrys quit (Ping timeout: 268 seconds) |
00:31:28 | * | enthus1a1t joined #nim |
00:33:27 | * | enthus1ast quit (Ping timeout: 240 seconds) |
00:39:35 | * | enthus1ast joined #nim |
00:40:01 | * | enthus1a1t quit (Ping timeout: 248 seconds) |
00:42:19 | * | natrys joined #nim |
00:48:24 | * | slmjkdbtl joined #nim |
00:48:31 | * | slmjkdbtl left #nim (#nim) |
00:49:50 | * | AndroUser joined #nim |
00:50:47 | * | AndroUser quit (Client Quit) |
00:51:05 | * | AndroUser joined #nim |
00:52:17 | * | vegax87 quit (Ping timeout: 276 seconds) |
00:53:31 | * | AndroUser is now known as haley |
00:53:39 | * | vegax87 joined #nim |
00:53:43 | * | haley is now known as hcphoenix |
00:55:28 | * | hcphoenix is now known as hcphx |
00:55:34 | * | hcphx left #nim (#nim) |
00:55:55 | * | hcphx joined #nim |
00:56:03 | * | natrys quit (Quit: natrys) |
00:57:27 | hcphx | testing... |
00:59:13 | CodeVance | was that the gitter bridge? |
01:08:13 | FromGitter | <gogolxdong> Is there any SignPKCS1v15 library in Nim? |
01:13:32 | hcphx | hi, this is my first time here! i want to get some more experience with OSS contributions this summer and i'm wondering if there are any projects where i'd be useful/welcome... |
01:15:39 | CodeVance | check if gitter is working. Gitter.im has been acting up |
01:16:50 | * | riidom quit (Remote host closed the connection) |
01:19:26 | * | enthus1a1t joined #nim |
01:21:37 | * | enthus1ast quit (Ping timeout: 248 seconds) |
01:26:10 | * | enthus1a1t quit (Ping timeout: 264 seconds) |
01:29:40 | * | enthus1ast joined #nim |
01:33:49 | * | CodeVance quit (Quit: Leaving) |
01:36:36 | * | CodeVance joined #nim |
01:41:06 | * | CodeVance quit (Client Quit) |
02:05:44 | shashlick | hcphx: welcome! |
02:06:15 | shashlick | We could always do with more help |
02:06:29 | shashlick | Have you used Nim before? |
02:34:20 | * | hcphx quit (Ping timeout: 276 seconds) |
02:58:04 | * | vivus quit (Quit: Leaving) |
03:05:52 | * | enthus1ast quit (Ping timeout: 268 seconds) |
03:07:30 | * | enthus1ast joined #nim |
03:52:34 | * | riidom joined #nim |
04:00:35 | * | leorize quit (Ping timeout: 240 seconds) |
04:39:23 | * | athenot joined #nim |
04:39:33 | * | athenot_ quit (Read error: Connection reset by peer) |
04:48:27 | * | Lord_Nightmare2 joined #nim |
04:50:09 | * | Lord_Nightmare quit (Ping timeout: 264 seconds) |
04:50:09 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
05:09:24 | * | darithorn quit (Quit: Leaving) |
05:12:20 | * | athenot quit (Read error: Connection reset by peer) |
05:12:40 | * | athenot joined #nim |
05:12:57 | * | yglukhov quit (Ping timeout: 264 seconds) |
05:14:01 | * | enthus1ast quit (Ping timeout: 265 seconds) |
05:14:29 | * | enthus1ast joined #nim |
05:16:26 | * | athenot quit (Remote host closed the connection) |
05:20:21 | * | enthus1a1t joined #nim |
05:22:57 | * | enthus1ast quit (Ping timeout: 240 seconds) |
05:23:13 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
05:24:55 | * | Lord_Nightmare joined #nim |
05:25:08 | * | nsf joined #nim |
06:13:07 | * | leorize joined #nim |
06:16:22 | * | pydsigner quit (Ping timeout: 265 seconds) |
06:16:32 | * | pydsigner joined #nim |
06:20:16 | * | Lord_Nightmare2 joined #nim |
06:23:37 | * | Lord_Nightmare quit (Ping timeout: 260 seconds) |
06:23:37 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
06:26:36 | * | jjido joined #nim |
06:27:07 | * | r3d9u11 joined #nim |
06:28:00 | * | Lord_Nightmare2 joined #nim |
06:28:40 | FromGitter | <gogolxdong> @PMunch How is your protobuf going? |
06:30:57 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
06:30:57 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
06:35:01 | * | Lord_Nightmare2 joined #nim |
06:36:21 | * | Lord_Nightmare quit (Ping timeout: 264 seconds) |
06:36:21 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
06:43:12 | * | PMunch joined #nim |
06:56:02 | FromGitter | <gogolxdong> We are going to adopt your nimble package in our project. |
07:02:02 | FromGitter | <Varriount> @gogolxdong How is the AWS code working? |
07:02:09 | * | r3d9u11 quit (Ping timeout: 264 seconds) |
07:02:14 | FromGitter | <Varriount> Or rather, have you encountered any issues with it? |
07:04:09 | FromGitter | <gogolxdong> works fine for now , and added XmlNode to JsonNode transformation. |
07:04:33 | FromGitter | <gogolxdong> works fine so far. |
07:06:35 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
07:07:24 | FromGitter | <gogolxdong> query string is hand-written should be sorted anyway. |
07:07:44 | * | Lord_Nightmare2 joined #nim |
07:07:46 | FromGitter | <gogolxdong> It's a potential issue. |
07:08:26 | FromGitter | <gogolxdong> Have you encountered any issues? |
07:09:00 | * | yglukhov joined #nim |
07:10:18 | * | yglukhov quit (Client Quit) |
07:10:33 | * | Lord_Nightmare quit (Ping timeout: 264 seconds) |
07:11:17 | * | Lord_Nig- joined #nim |
07:11:17 | * | Lord_Nig- is now known as Lord_Nightmare |
07:12:57 | * | Lord_Nightmare2 quit (Ping timeout: 256 seconds) |
07:14:06 | FromGitter | <gogolxdong> @PMunch |
07:14:12 | FromGitter | <gogolxdong> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5ae96544da323a7c04edebd5] |
07:14:38 | FromGitter | <gogolxdong> for your README.md example code. |
07:15:45 | * | r3d9u11 joined #nim |
07:15:55 | * | xkapastel quit (Quit: Connection closed for inactivity) |
07:21:38 | * | yglukhov joined #nim |
07:34:36 | PMunch | gogolxdong, whan README? |
07:35:21 | PMunch | Oh, I see on gitter that you sent a message before I logged on |
07:36:46 | PMunch | Well, it's a bit of a mixed bag really. The parser is slower than I would like, so I'll have to fix that at some point. And I'm struggling with making the optional fields work to my satisfaction |
07:38:13 | FromGitter | <gogolxdong> Will refactor or tweak ? How much slower? |
07:38:26 | PMunch | Currently they will just be left uninitialized, which is a problem since you won't know the difference between a zero and an uninitialized int. |
07:38:45 | PMunch | Plus it will also always write all fields.. |
07:39:27 | PMunch | I did play around with the options module, but it made the interface very clunky. Then I tried overloading the . and .= operators, but I couldn't quite get it to work.. |
07:40:42 | PMunch | gogolxdong, not sure how much refactoring or tweaking would help. It should probably be replaced with a more custom parser. Although I think much of the speed issues have to do with copying strings for error messages, so it might be possible to speed it up by making that more efficient. |
07:42:00 | FromGitter | <gogolxdong> replace combparser with a more custom parser? |
07:44:36 | FromGitter | <gogolxdong> you README.md should be the same with example2.nim ,or else won't work due to this line ``` |
07:44:56 | FromGitter | <gogolxdong> ```var msg: ExampleMessage``` ⏎ ⏎ var msg = new ExampleMessage [https://gitter.im/nim-lang/Nim?at=5ae96c7840f24c4304477436] |
07:45:37 | PMunch | Yeah, replace combparser. Or rewrite it's internal string handling |
07:46:05 | FromGitter | <gogolxdong> Does non-gc string help? |
07:46:08 | PMunch | Oh yeah, I changed those to references so you could have cyclic types. Completely forgot to change the docs |
07:46:41 | PMunch | gogolxdong, not really. The problem is that each piece of the parser keeps a copy of the input for error messages. |
07:47:54 | PMunch | So the entire input string get copied for every step of the parser, which I believe is in the hundred thousands of times range for a fairly simple protobuf file |
07:48:13 | FromGitter | <gogolxdong> understood. We will try your package and see what we can do. |
07:49:24 | PMunch | Knowing that someone actually uses this I might start working on this more frequently again :) |
07:49:28 | PMunch | Who are we by the way? |
07:50:19 | FromGitter | <gogolxdong> our team with Araq supporting. |
07:51:47 | PMunch | Oh cool |
07:57:26 | FromGitter | <gogolxdong> Would be the first project using Nim as backend released in public I think. It could be full-Nim stack probject when amending karax later. |
07:59:38 | PMunch | Doesn't play.nim-lang.org use Nim as it's backend? |
07:59:51 | PMunch | But I see what you mean |
08:13:02 | * | sendell joined #nim |
08:15:10 | * | yglukhov quit (Remote host closed the connection) |
08:15:43 | * | yglukhov joined #nim |
08:20:05 | * | yglukhov quit (Ping timeout: 240 seconds) |
08:20:12 | * | notdekka[m] quit (Ping timeout: 245 seconds) |
08:21:04 | FromGitter | <gogolxdong> @PMunch I'm compiling ipfs/merkledag.proto, it crashes. |
08:22:46 | PMunch | Link to the file and error message? |
08:22:49 | * | notdekka[m] joined #nim |
08:23:32 | FromGitter | <gogolxdong> https://gist.github.com/gogolxdong/aa58f6f52cba398389c9a71aa53ac1b4 |
08:24:00 | * | yglukhov joined #nim |
08:24:38 | PMunch | TBH, my implementation is probably a bit unstable. Have you tried with https://github.com/oswjk/nimpb ? |
08:24:58 | PMunch | It requires you to use the official protoc compiler, but it should be more robust |
08:25:49 | FromGitter | <gogolxdong> If you do not want to depend on the protoc compiler, check Peter Munch-Ellingsen's protobuf library. It handles parsing of the protobuf files in compile time which can make building simpler. |
08:25:56 | PMunch | Well, that file isn't a valid proto3 file |
08:26:10 | PMunch | It has optional markers which aren't used in proto3 |
08:26:36 | PMunch | But it appears to fail an the package line, so it doesn't even reach that far |
08:27:42 | PMunch | Oh, and it has to start with syntax = "proto3"; |
08:28:21 | PMunch | https://developers.google.com/protocol-buffers/docs/proto3 |
08:28:50 | PMunch | That is the spec that is supported |
08:37:25 | FromGitter | <gogolxdong> marked ,thanks ,will reach further. |
08:38:12 | * | floppydh joined #nim |
09:11:11 | FromGitter | <gogolxdong> @PMunch , https://gist.github.com/gogolxdong/2cbb212511e3dbbfd5362232068cbf42 |
09:17:03 | * | Lord_Nightmare quit (Ping timeout: 256 seconds) |
09:17:46 | * | Lord_Nightmare joined #nim |
09:20:52 | * | Lord_Nightmare2 joined #nim |
09:22:09 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
09:22:11 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
09:34:33 | * | sz0 quit (Quit: Connection closed for inactivity) |
09:37:55 | * | riidom quit (Remote host closed the connection) |
09:46:57 | * | riidom joined #nim |
09:47:45 | * | enthus1a1t quit (Ping timeout: 264 seconds) |
09:50:36 | FromGitter | <gogolxdong> How to do with this? |
09:51:19 | PMunch | Hmm, very strange |
09:51:21 | * | enthus1ast joined #nim |
09:56:28 | FromGitter | <mratsim> @gogolxdong are you working on blockchain as well? |
09:59:01 | FromGitter | <mratsim> I don’t think there is any SignPKCS1v15 in Nim at the moment. |
10:00:00 | * | leorize quit (Ping timeout: 256 seconds) |
10:00:42 | * | SenasOzys joined #nim |
10:01:48 | PMunch | Hmm, it seems to not like capital letters in the variable names.. |
10:03:35 | PMunch | Indeed, the token matcher appears to only accept lowercase then anything: https://github.com/PMunch/protobuf-nim/blob/master/src/protobuf/private/parse.nim#L78 |
10:04:00 | PMunch | That's not good.. |
10:05:28 | * | NimBot joined #nim |
10:07:47 | FromGitter | <gogolxdong> @mratsim just use merkledag and kademlia p2p , @PMunch which I also found the capital letters matter . and nested message type? |
10:08:23 | FromGitter | <mratsim> oh interesting nonetheless :) |
10:09:11 | PMunch | Yeah the lookup of non-nested message types seems to not be a bit wrong. If you add a dot in front of the type then it works as that means lookup from root level downwards, and not look up from here upwards |
10:14:09 | FromGitter | <gogolxdong> can you fix this up? |
10:17:28 | FromGitter | <gogolxdong> capital field and nested message type `Error: unhandled exception: Type not recognized: PBNode.PBLink` |
10:18:45 | * | xet7 joined #nim |
10:19:24 | FromGitter | <gogolxdong> your idea is great but the library is not ready I think. |
10:20:15 | PMunch | gogolxdong, just pushed a fix to both bugs |
10:20:20 | PMunch | And updated the README |
10:20:34 | FromGitter | <gogolxdong> ok |
10:21:54 | FromGitter | <gogolxdong> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5ae99142e2d30c2f045aafb7] |
10:23:12 | PMunch | Why are you trying to read with a message? |
10:25:03 | PMunch | http://ix.io/19dP/ |
10:37:29 | PMunch | Hmm, I really wish this stuff was easier to do in Nim: https://www.reddit.com/r/nim/comments/8g95zt/interfacing_with_a_scripting_language_written_in/ |
10:37:38 | PMunch | Don't think it would take much either |
10:49:43 | * | Vladar joined #nim |
10:56:11 | FromGitter | <gogolxdong> my fault. It works now. |
10:56:13 | * | CodeVance joined #nim |
10:59:57 | * | Lord_Nightmare2 joined #nim |
11:00:49 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
11:02:13 | * | yglukhov quit (Remote host closed the connection) |
11:02:47 | * | yglukhov joined #nim |
11:03:22 | * | Lord_Nightmare joined #nim |
11:03:48 | * | yglukhov quit (Remote host closed the connection) |
11:04:03 | * | yglukhov joined #nim |
11:05:10 | * | Lord_Nightmare2 quit (Ping timeout: 256 seconds) |
11:10:31 | * | yglukhov quit (Remote host closed the connection) |
11:11:04 | * | yglukhov joined #nim |
11:12:01 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
11:13:25 | * | Lord_Nightmare joined #nim |
11:15:05 | * | yglukhov quit (Ping timeout: 240 seconds) |
11:16:26 | * | Lord_Nightmare2 joined #nim |
11:17:53 | * | Lord_Nightmare quit (Ping timeout: 248 seconds) |
11:18:06 | * | Lord_Nightmare2 is now known as Lord_Nightmare |
11:26:30 | * | leorize joined #nim |
11:33:54 | * | yglukhov joined #nim |
11:34:27 | * | rokups joined #nim |
11:37:23 | * | yglukhov quit (Remote host closed the connection) |
11:37:39 | * | yglukhov joined #nim |
11:41:45 | FromGitter | <krux02> @Varriount there is chance that AST pattern matching will have support for partial matching. I will add it, if I need it. But not earlier. but for now you can use the `|=` operator to append arbitrary conditions. |
11:49:33 | FromGitter | <gogolxdong> @PMunch is stringstream the only way to read and write protobuf message? |
11:49:55 | PMunch | No, you can use any stream |
11:50:13 | PMunch | So if you want to use a file just create a file stream |
11:50:49 | PMunch | Or you can create your own stream |
11:56:02 | FromGitter | <gogolxdong> yes , approaching ,thanks for your clarification. |
11:56:33 | PMunch | No problem, maybe I should add that to the "docs"? |
11:57:02 | PMunch | It was just easier to use a string stream for the examples as I didn't need an external file |
12:00:38 | FromGitter | <gogolxdong> yes , if you'd like to. |
12:01:59 | FromGitter | <alehander42> @krux02 you around? |
12:03:02 | FromGitter | <alehander42> I had 1-2 questions about the lib but maybe I'll ask on private to not spam here |
12:07:44 | FromGitter | <gogolxdong> How to update windows Nim? protobuf-nim requires >= 0.18.1 |
12:09:00 | yglukhov | gogolxdong: 0.18.1 is not yet released afaik. ask the lib author to correct nimble file =) |
12:09:32 | yglukhov | otherwise, boot nim from source |
12:14:02 | PMunch | Reverted it to 0.18.0 |
12:14:23 | PMunch | I think there was a reason for it being 0.18.1, but both the examples worked without it so maybe not |
12:14:29 | PMunch | YMMV |
12:16:20 | FromGitter | <krux02> @alehander42 I am around |
12:22:57 | * | CodeVance quit (Ping timeout: 240 seconds) |
12:27:00 | * | CodeVance joined #nim |
12:33:47 | * | couven92 quit (Quit: Client disconnecting) |
12:43:43 | FromGitter | <gogolxdong> @PMunch , how to writeLine with fileStream? ⏎ var stream = newFileStream("db",fmReadWrite) ⏎ stream.writeLine(msg) |
12:44:16 | FromGitter | <gogolxdong> type mismatch: got <PBLink> |
12:50:36 | FromGitter | <Vindaar> @gogolxdong from what I can tell `msg` is of type `PBLink` in your case. `writeLine` expects a `string` though. Maybe just `$msg` as the arg |
12:52:02 | FromGitter | <gogolxdong> oh, it will add newline automatically when writing file. |
12:53:27 | FromGitter | <gogolxdong> between each data. |
12:54:43 | * | natrys joined #nim |
12:54:53 | FromGitter | <Vindaar> yeah, that's what `writeLine` is for. If you don't want that, just use `write` instead |
12:56:13 | * | CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
12:56:35 | * | CodeVance joined #nim |
13:02:02 | * | athenot joined #nim |
13:02:48 | * | SenasOzys quit (Ping timeout: 268 seconds) |
13:06:25 | FromGitter | <gogolxdong> @PMunch , how do I write file with fileStream and read each line with stringStream,like ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5ae9b7d100dc4888048c29db] |
13:10:08 | PMunch | Uhm |
13:10:14 | PMunch | Protobuf is a binary format |
13:10:27 | PMunch | So the write doesn't add any newlines.. |
13:12:06 | PMunch | https://developers.google.com/protocol-buffers/docs/techniques#streaming |
13:12:32 | * | CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
13:13:18 | PMunch | The generated read and write procs both have optional fields |
13:13:50 | PMunch | For the writer it's writeSize which defaults to false, if you set that to true it will write out the size of the message before the message itself |
13:15:08 | PMunch | For the read proc you have a maxSize parameter which default to 0 (read until end), if you set this it will stop reading after maxSize bytes (it can read more if the message isn't fully completed after maxSize bytes and a field extends the border). |
13:19:08 | * | sendell quit (Ping timeout: 276 seconds) |
13:19:11 | PMunch | Rewriting your example it would look like this: http://ix.io/19en/ |
13:21:00 | pqflx3[m] | Does nim have a function for globbing? |
13:21:01 | pqflx3[m] | E.g. let paths = glob(src_path, "**/*.c") |
13:21:02 | pqflx3[m] | os.walkFiles is kind of close but i maybe it doesnt handle ** |
13:22:10 | * | dddddd joined #nim |
13:23:53 | * | xkapastel joined #nim |
13:24:04 | FromGitter | <gogolxdong> exactly what I need. appreciate. |
13:25:38 | PMunch | Guess I should mention that somewhere in the docs as well |
13:27:13 | FromGitter | <gogolxdong> good point |
13:50:13 | * | leorize quit (Ping timeout: 265 seconds) |
13:50:40 | PMunch | Feel free to write a tutorial on how to use protobuf by the way as you're learning :) |
13:59:29 | FromGitter | <gogolxdong> I will |
14:00:23 | PMunch | I hae it on my todo list as well, to at least write something about protobuf-nim |
14:00:37 | PMunch | But my list of projects grows faster than my list of articles about my projects.. |
14:01:39 | * | vivus joined #nim |
14:06:40 | * | natrys quit (Quit: natrys) |
14:11:08 | * | athenot_ joined #nim |
14:11:15 | * | athenot quit (Read error: Connection reset by peer) |
14:11:45 | * | athenot_ quit (Client Quit) |
14:15:26 | * | athenot joined #nim |
14:15:33 | * | sendell joined #nim |
14:20:12 | * | leorize joined #nim |
14:24:23 | * | CodeVance joined #nim |
14:24:30 | * | athenot_ joined #nim |
14:26:09 | * | athenot quit (Ping timeout: 264 seconds) |
14:27:18 | * | nixfreak joined #nim |
14:41:41 | * | PMunch quit (Quit: Leaving) |
14:54:54 | * | nc-x joined #nim |
14:56:12 | nc-x | @dom96: Can you please delete my forum account? I don't use it. Forum username=ncx |
14:58:26 | * | athenot_ quit (Remote host closed the connection) |
14:59:05 | FromGitter | <Varriount> Look in the os module |
14:59:08 | * | athenot joined #nim |
14:59:22 | * | darithorn joined #nim |
15:01:21 | * | nc-x quit (Quit: Page closed) |
15:04:15 | * | CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
15:05:05 | * | leorize quit (Ping timeout: 248 seconds) |
15:07:56 | * | r3d9u11 quit (Remote host closed the connection) |
15:08:05 | * | SenasOzys joined #nim |
15:08:14 | * | SenasOzys quit (Remote host closed the connection) |
15:09:28 | * | sz0 joined #nim |
15:09:57 | * | lukas___ joined #nim |
15:20:36 | * | miran joined #nim |
15:25:28 | * | leru joined #nim |
15:32:44 | * | xkapastel quit (Quit: Connection closed for inactivity) |
15:35:11 | * | xkapastel joined #nim |
15:38:54 | * | CodeVance joined #nim |
15:41:38 | * | SenasOzys joined #nim |
15:45:17 | leru | I'm currently running nginx on my server with Lucee. How can I run nim and other applications parallel, without changing the port from 80 to different one? |
15:47:43 | * | Trustable joined #nim |
15:55:35 | FromGitter | <mratsim> @alehander42 for quicktest I think your last changes put back the debug mode by default: https://travis-ci.org/status-im/nim-stint/builds/373998993#L1039 |
15:56:14 | dom96 | leru: proxy_pass |
15:56:27 | dom96 | https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/ |
15:58:20 | * | floppydh quit (Quit: WeeChat 2.1) |
16:00:59 | * | yglukhov quit (Ping timeout: 276 seconds) |
16:01:03 | FromGitter | <alehander42> @mratsim removed them |
16:01:16 | FromGitter | <alehander42> does nimble care about git tags btw? |
16:03:29 | * | yglukhov joined #nim |
16:03:44 | FromGitter | <Vindaar> Pretty sure that's how it knows about different versions |
16:03:59 | dom96 | yep |
16:04:27 | FromGitter | <alehander42> so if my nimble version is different than my v0.x tag |
16:04:29 | FromGitter | <alehander42> what happens |
16:04:36 | FromGitter | <alehander42> package.nimble version * |
16:05:34 | dom96 | then Nimble will complain |
16:05:45 | dom96 | the tag name and version need to match |
16:05:54 | FromGitter | <alehander42> I really need to add a command to my fish then |
16:05:57 | FromGitter | <alehander42> to automate this |
16:06:14 | dom96 | Might be worth adding this to Nim |
16:06:18 | dom96 | *Nimble |
16:06:47 | dom96 | so that it verifies your .nimble file is correct |
16:06:51 | FromGitter | <alehander42> the problem is I don't want to make a separate commit "Increase version", so I'd include the git commit in my command |
16:06:58 | FromGitter | <alehander42> ah |
16:07:03 | FromGitter | <alehander42> yeah this would be useful |
16:12:54 | * | lukas___ quit (Ping timeout: 260 seconds) |
16:24:20 | * | lukas___ joined #nim |
16:32:03 | * | natrys joined #nim |
16:32:05 | * | PMunch joined #nim |
16:40:35 | * | CodeVance quit (Read error: Connection reset by peer) |
16:42:18 | FromGitter | <alehander42> how can I signify the nth argument in pattern? |
16:42:25 | FromGitter | <alehander42> #2 doesnt seem to work |
16:42:32 | FromGitter | <alehander42> `#1` * |
16:46:10 | PMunch | Nth argument as in nth runtime argument? |
16:46:29 | FromGitter | <alehander42> I mean importcpp sorry |
16:46:48 | FromGitter | <mratsim> ah, I had the same issue, I just used # |
16:46:53 | FromGitter | <alehander42> maybe that's impossible, I refactored it to not use importcpp anyway |
16:46:58 | FromGitter | <mratsim> and discard the unneeded part |
16:47:10 | FromGitter | <alehander42> yeah but what if you want to use twice |
16:47:12 | FromGitter | <alehander42> the same arg |
16:49:15 | FromGitter | <mratsim> I suppose you wrap your wrapper in a wrapper |
16:49:22 | * | CodeVance joined #nim |
17:01:09 | * | jrbrt joined #nim |
17:05:06 | * | yglukhov quit (Remote host closed the connection) |
17:15:57 | * | lukas___ quit (Ping timeout: 264 seconds) |
17:22:16 | * | sendell quit (Remote host closed the connection) |
17:30:30 | * | natrys quit (Ping timeout: 256 seconds) |
17:32:51 | * | lukas__ joined #nim |
17:44:18 | * | natrys joined #nim |
17:45:06 | * | jrbrt quit (Quit: jrbrt) |
17:45:33 | * | jrbrt joined #nim |
17:47:42 | * | lukas__ quit (Ping timeout: 268 seconds) |
17:47:46 | * | athenot quit (Remote host closed the connection) |
17:48:11 | * | athenot joined #nim |
17:48:17 | * | athenot quit (Remote host closed the connection) |
17:53:54 | * | athenot joined #nim |
17:59:30 | miran | when using search in docs, the results look like this: "module os, module os, module os, ...." and neither of these is a link to the module os, but to some anchor inside of it |
17:59:53 | miran | i think this has worked correctly before |
18:01:42 | * | jjido joined #nim |
18:02:20 | * | jjido quit (Client Quit) |
18:04:56 | * | SenasOzys quit (Quit: Leaving) |
18:09:01 | * | jrbrt quit (Quit: jrbrt) |
18:10:29 | * | athenot quit (Ping timeout: 255 seconds) |
18:11:06 | * | athenot joined #nim |
18:11:23 | * | r3d9u11 joined #nim |
18:17:25 | * | jjido_ joined #nim |
18:23:36 | * | jrbrt joined #nim |
18:37:34 | * | jrbrt quit (Quit: jrbrt) |
18:40:32 | * | lukas__ joined #nim |
18:45:37 | FromGitter | <abijahm> hello people is there a way to trigger an async event with user defined data or is it planed |
18:50:18 | * | arecaceae quit (Read error: Connection reset by peer) |
18:50:42 | * | arecaceae joined #nim |
18:51:04 | * | r3d9u11 quit (Remote host closed the connection) |
18:52:36 | * | jrbrt joined #nim |
18:57:23 | * | jrbrt quit (Client Quit) |
19:02:01 | * | jjido_ quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
19:03:04 | Araq | async events exist |
19:03:47 | * | robot joined #nim |
19:07:19 | FromGitter | <xmonader> @zacharycarter any updates on your nim playground? |
19:09:17 | FromGitter | <xmonader> I'd like a review on this https://github.com/xmonader/nim-linkcheck to lower the barrier of async in nim |
19:10:35 | * | robot quit (Quit: Leaving) |
19:10:52 | * | robot joined #nim |
19:21:54 | * | CodeVance quit (Ping timeout: 260 seconds) |
19:23:06 | * | CodeVance joined #nim |
19:23:21 | * | lukas__ quit (Ping timeout: 240 seconds) |
19:33:27 | * | rokups quit (Quit: Connection closed for inactivity) |
19:34:49 | FromGitter | <abijahm> ok i was using it wrong |
19:35:48 | * | krux02 joined #nim |
19:39:14 | * | lukas__ joined #nim |
19:39:18 | * | robot quit (Quit: Leaving) |
19:56:53 | * | jjido joined #nim |
20:04:45 | * | JStoker quit (Remote host closed the connection) |
20:09:09 | * | nsf quit (Quit: WeeChat 2.0.1) |
20:13:24 | leru | Is there a code style guide? Asking because of this: Should the last row of a proc be `result = doSomething(result)` or `return doSomething(result)`? |
20:15:38 | miran | you might even do it without 'return' and without 'result =' :) |
20:15:46 | * | Vladar quit (Quit: Leaving) |
20:15:55 | miran | there is https://nim-lang.org/docs/nep1.html, btw |
20:17:37 | leru | Oh, boy. It's so weird without anything |
20:17:52 | leru | I saw that file, but it seems so empty |
20:18:21 | miran | one more thing that needs some work ;) |
20:20:32 | * | JStoker joined #nim |
20:24:19 | * | miran quit (Ping timeout: 260 seconds) |
20:24:19 | * | jrbrt joined #nim |
20:28:34 | PMunch | leru, if you're used to functional programming, or if you've used Nims ternaries/inline if elses they are a bit more intuitive |
20:29:07 | * | PMunch quit (Quit: leaving) |
20:39:12 | * | jrbrt quit (Quit: jrbrt) |
20:40:26 | * | jrbrt joined #nim |
20:41:30 | * | CodeVance quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org) |
20:42:16 | * | natrys quit (Quit: natrys) |
20:43:17 | * | CodeVance joined #nim |
20:43:39 | Araq | use 'return' only for control flow, so it would be result = doSomething(result) |
20:48:27 | * | CodeVance quit (Ping timeout: 240 seconds) |
21:03:16 | * | CodeVance joined #nim |
21:07:24 | * | jrbrt quit (Quit: jrbrt) |
21:10:05 | * | Trustable quit (Remote host closed the connection) |
21:16:13 | * | jrbrt joined #nim |
21:30:05 | * | nixfreak quit (Ping timeout: 260 seconds) |
21:30:35 | * | krux02 quit (Ping timeout: 240 seconds) |
21:43:23 | * | jrbrt quit (Quit: jrbrt) |
21:45:08 | * | jrbrt joined #nim |
21:47:10 | dom96 | Another reason to use Nim https://news.ycombinator.com/item?id=16978932 :D |
21:53:16 | * | jrbrt quit (Quit: jrbrt) |
21:53:32 | * | CodeVance2 joined #nim |
21:54:07 | * | jrbrt joined #nim |
21:54:41 | * | CodeVance quit (Ping timeout: 256 seconds) |
21:55:29 | * | darithorn quit (Ping timeout: 255 seconds) |
21:55:43 | * | darithorn joined #nim |
21:56:52 | * | CodeVance2 quit (Client Quit) |
21:57:08 | * | CodeVance joined #nim |
21:59:04 | shashlick | nice thread - nim's already mentioned :D |
21:59:46 | * | dom96 mentions it some more :P |
22:00:42 | shashlick | how do you guys track your nim todo list |
22:01:01 | shashlick | mine's out of control and i'm barely doing much |
22:03:03 | dom96 | I sometimes abuse Nim's issue tracker as a todo list to Araq's dismay :) |
22:03:14 | * | jrbrt quit (Quit: jrbrt) |
22:03:27 | dom96 | For general todos I have my own `me` private repo, I abuse its issue tracker as a way to store ideas/todos/links |
22:03:36 | Araq | yeah, don't do this |
22:03:52 | Araq | the issue tracker is not a personal todo list. |
22:04:10 | Araq | especially if you don't "do" the "to do" items anyway. |
22:05:03 | lukas__ | Is it possible to deal with list with heterogenous data types like python's list in nim? |
22:05:40 | Araq | yeah but these are all pretty much isomorphic to "json.nim" |
22:05:50 | Araq | so just use that. |
22:08:31 | * | xet7 quit (Remote host closed the connection) |
22:09:48 | lukas__ | would be cool if I can cram in scheme AST inside something elegant but I guess json will do for now |
22:16:44 | * | jrbrt joined #nim |
22:18:43 | lukas__ | or should I just make array of references explicitly? would be nice if somebody already wrote module for this job |
22:18:58 | CodeVance | so json is the defacto dynamic variable? |
22:21:41 | * | leru quit (Remote host closed the connection) |
22:22:18 | * | jrbrt quit (Quit: jrbrt) |
22:25:30 | * | SenasOzys joined #nim |
22:26:07 | * | brainpro1 is now known as brainproxy |
22:31:45 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
22:31:45 | * | jrbrt joined #nim |
22:35:28 | * | CodeVance2 joined #nim |
22:35:43 | * | CodeVance2 quit (Remote host closed the connection) |
22:36:13 | * | CodeVance2 joined #nim |
22:37:32 | * | CodeVance quit (Ping timeout: 268 seconds) |
22:59:25 | * | CodeVance joined #nim |
23:02:05 | * | CodeVance2 quit (Ping timeout: 240 seconds) |
23:12:19 | * | Rush joined #nim |
23:13:55 | * | thor77_ joined #nim |
23:15:44 | * | Eyess joined #nim |
23:16:45 | * | endes[m] quit (*.net *.split) |
23:16:46 | * | libman[m] quit (*.net *.split) |
23:16:46 | * | Miguelngel[m] quit (*.net *.split) |
23:16:47 | * | SunDwarf quit (*.net *.split) |
23:16:47 | * | thor77 quit (*.net *.split) |
23:16:47 | * | RushPL quit (*.net *.split) |
23:16:47 | * | EastByte quit (*.net *.split) |
23:22:39 | * | libman[m] joined #nim |
23:22:58 | * | Miguelngel[m] joined #nim |
23:23:06 | * | endes[m] joined #nim |
23:23:38 | * | EastByte joined #nim |
23:32:44 | * | lukas__ quit (Ping timeout: 260 seconds) |
23:40:04 | * | CodeVance2 joined #nim |
23:40:52 | * | leorize joined #nim |
23:42:47 | * | CodeVance quit (Ping timeout: 265 seconds) |
23:50:59 | * | lukas__ joined #nim |
23:56:00 | * | jrbrt quit (Quit: jrbrt) |