00:02:02 | * | snowolf joined #nim |
00:06:16 | * | snowolf quit (Ping timeout: 250 seconds) |
00:16:53 | * | zachk quit (Quit: Leaving) |
00:18:45 | * | snowolf joined #nim |
00:37:15 | * | snowolf quit (Ping timeout: 264 seconds) |
00:39:13 | * | snowolf joined #nim |
00:45:38 | * | gangstacat quit (Quit: Ĝis!) |
00:50:11 | * | snowolf quit (Ping timeout: 260 seconds) |
00:53:47 | * | darithorn quit () |
01:02:13 | * | Aareon_ quit (Ping timeout: 250 seconds) |
01:10:42 | * | Aareon_ joined #nim |
01:25:33 | * | hyp3rbor3ax joined #nim |
01:25:37 | FromGitter | <yyyc514> exercism.io/ could use more Nim mentors if anyone has teh time or inclination |
01:25:56 | * | hyp3rbor3ax quit (Remote host closed the connection) |
01:27:05 | * | vlad1777d quit (Ping timeout: 244 seconds) |
01:44:20 | * | gangstacat joined #nim |
01:45:03 | * | snowolf joined #nim |
02:41:54 | FromGitter | <gogolxdong> @PMunch Is it possible to define optional fileds in parser? |
02:57:43 | * | sotrhraven joined #nim |
02:58:43 | sotrhraven | o/ first time on irc spend time on telegram group |
02:59:16 | FromGitter | <gogolxdong> please check this if you see, http://ix.io/1rIK |
03:05:19 | * | sotrhraven quit (Quit: -a- IRC for Android 2.1.45) |
03:05:30 | * | banc quit (Quit: ZNC - http://znc.in) |
03:06:25 | * | dddddd quit (Remote host closed the connection) |
03:17:50 | * | smt quit (Read error: Connection reset by peer) |
03:21:45 | * | banc joined #nim |
03:35:33 | * | endragor joined #nim |
04:01:47 | * | platoff quit (Read error: Connection reset by peer) |
04:53:47 | * | kapil____ joined #nim |
05:08:02 | * | nsf joined #nim |
05:13:04 | * | jken quit (Ping timeout: 272 seconds) |
05:14:55 | * | jken joined #nim |
05:34:48 | * | vlad1777d joined #nim |
05:56:48 | * | tiorock joined #nim |
05:56:48 | * | tiorock quit (Changing host) |
05:56:48 | * | tiorock joined #nim |
05:56:48 | * | rockcavera quit (Killed (hitchcock.freenode.net (Nickname regained by services))) |
05:56:48 | * | tiorock is now known as rockcavera |
06:00:49 | * | stefanos82 joined #nim |
06:20:56 | * | snowolf quit (Ping timeout: 276 seconds) |
06:23:51 | * | snowolf joined #nim |
06:50:37 | * | snowolf quit (Ping timeout: 250 seconds) |
06:54:57 | * | Aareon_ quit (Ping timeout: 250 seconds) |
06:56:15 | * | Aareon_ joined #nim |
07:03:16 | * | mech422_ quit (Ping timeout: 272 seconds) |
07:06:20 | * | Lord_Nightmare quit (Ping timeout: 246 seconds) |
07:17:15 | * | krux02 joined #nim |
07:17:45 | * | Vladar joined #nim |
07:18:17 | krux02 | good morning |
07:19:53 | Vladar | morning |
07:22:57 | * | kapil____ quit (Quit: Connection closed for inactivity) |
07:23:05 | * | mech422 joined #nim |
07:34:37 | FromGitter | <alehander42> ok, thanks to @jacereda and https://github.com/metacraft-labs/py2nim/pull/18/ py2nim works again with nim devel |
07:36:09 | FromGitter | <alehander42> @PMunch no problem, I am just cleaning up my sublime anyway: I had 400 open views! |
07:39:08 | * | snowolf joined #nim |
07:48:22 | FromGitter | <gogolxdong> http://ix.io/1rK6 @PMunch |
07:52:42 | * | Jesin quit (Ping timeout: 264 seconds) |
07:54:16 | * | Jesin joined #nim |
08:18:40 | * | mech422_ joined #nim |
08:19:54 | * | mech422 quit (Ping timeout: 244 seconds) |
08:23:39 | * | mech422 joined #nim |
08:25:36 | * | mech422_ quit (Ping timeout: 272 seconds) |
08:28:55 | * | Lord_Nightmare joined #nim |
08:31:55 | * | mech422_ joined #nim |
08:33:42 | * | mech422 quit (Ping timeout: 250 seconds) |
08:39:17 | * | mech422 joined #nim |
08:40:48 | * | mech422_ quit (Ping timeout: 272 seconds) |
08:52:01 | * | mech422_ joined #nim |
08:52:17 | * | Vladar quit (Remote host closed the connection) |
08:52:58 | * | mech422 quit (Ping timeout: 244 seconds) |
09:04:48 | FromGitter | <gogolxdong> Is there a way to translate the osErrorMsg in UTF8? |
09:08:42 | leorize | I don't think any OS out there have primitives to translate os error messages |
09:13:31 | * | floppydh joined #nim |
09:14:23 | * | PMunch joined #nim |
09:14:44 | FromGitter | <gogolxdong> cannot read the error message on windows, I'm on ubuntu now. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bea9603d001b91720521161] |
09:15:02 | FromGitter | <gogolxdong> got -1 ⏎ Invalid argument |
09:17:12 | FromGitter | <gogolxdong> any insight of this issue? |
09:21:36 | leorize | have you checked for the exact statement that caused the error? |
09:22:02 | leorize | oh this is Nim, not C :P |
09:22:06 | PMunch | gogolxdong well there is a way to set an optional field |
09:22:22 | Araq | the error message is in Utf-8 |
09:22:34 | PMunch | You need to create a custom parser, then use that to either read, or not read the field |
09:22:54 | FromGitter | <gogolxdong> Then it's the problem of vscode. |
09:22:57 | PMunch | Looking at this which you sent me: http://ix.io/1rK6 |
09:23:24 | PMunch | You set version to 0x0, this means that when you run get it won't be read in as a field, and will just be checked against that value |
09:25:21 | FromGitter | <gogolxdong> Yes, I tweaked your myparser example and got optional data field according to the hex value of size read earlier. If I write 0 size, data field will be empty sequence. |
09:25:47 | PMunch | Oh yeah, that also works .) |
09:26:29 | FromGitter | <gogolxdong> I'm trying to send packet to parse and see if it works well. |
09:28:43 | FromGitter | <gogolxdong> I guess the issue is out of casting frame from string to seq[byte]. |
09:32:22 | FromGitter | <gogolxdong> Actually not sure which type to send, sendto requires point, so cstring or anything taking address? |
09:32:44 | FromGitter | <gogolxdong> pointer |
09:36:49 | PMunch | Casting from string to seq[byte] shouldn't actually be a problem |
09:36:55 | PMunch | They share the same memory layout |
09:37:24 | FromGitter | <AchalaSB> Im trying to run Nim contract to wasm using emscripten. ⏎ Facing some error. ⏎ Anyone face this issue? Have an idea to solve this. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5bea9b54bb88787474bfd36c] |
09:38:41 | FromGitter | <gogolxdong> Have no idea which is the invalid arguments. |
09:39:30 | PMunch | AchalaSB, seems like you have gotten an extra main somehow |
09:39:38 | PMunch | Maybe you need to compile with --noMain? |
09:39:56 | PMunch | gogolxdong, do you have a full example? |
09:41:15 | FromGitter | <gogolxdong> http://ix.io/1rKr |
09:41:27 | FromGitter | <AchalaSB> @FromIRC Yes there are two mains in `.c`file which is generated during compilation. In my contract there is one main. |
09:42:56 | PMunch | AchalaSB, yeah Nim generates a main by default. If you compile with --noMain it won't create this, meaning you have to specify your own (which it seems like you do) |
09:42:59 | leorize | gogolxdong: From Posix man page: |
09:43:01 | leorize | > EINVAL The dest_len argument is not a valid length for the address family. |
09:43:10 | leorize | for sendto() |
09:43:42 | PMunch | AchalaSB: My name is PMunch by the way, FromIRC is just the IRC <-> Gitter bot. So if you want to ping me you'll need to use PMunch :) |
09:44:37 | PMunch | u1: headerType = 0x80 |
09:44:40 | PMunch | That won't work |
09:44:55 | PMunch | You can't put a value that large in a one bit field |
09:45:08 | FromGitter | <gogolxdong> oh, yes, it's the sizeof sizeof(peer.ai_addrlen), should be peer.ai_addrlen directly. |
09:45:34 | FromGitter | <gogolxdong> sure, ignore that, haven't got a hand to make it right. |
09:45:38 | PMunch | I don't think this will work either: u8: dcid[if dcil != 0: dcil+3 else: 0] |
09:45:50 | PMunch | Or wait, maybe it does |
09:46:08 | FromGitter | <gogolxdong> it does, I tweaks your example like this. |
09:46:09 | PMunch | Oh yeah, I think that should actually work |
09:46:14 | PMunch | Cool :) |
09:46:18 | FromGitter | <gogolxdong> tweaked |
09:46:41 | FromGitter | <gogolxdong> I said have a feeling your binary parse beat them. |
09:48:23 | FromGitter | <cyberlis> why seconds have bigger range than minutes ⏎ ⏎ `````` [https://gitter.im/nim-lang/Nim?at=5bea9de7e0fd6b4360e6ccf8] |
09:48:41 | FromGitter | <cyberlis> ``` MinuteRange* = range[0..59] ⏎ SecondRange* = range[0..60]``` [https://gitter.im/nim-lang/Nim?at=5bea9df9d001b91720523ed3] |
09:48:47 | PMunch | Well, as I said it's not really a defined format. It's just intended to read/write any kind of binary data, you have to provide the format yourself |
09:48:50 | FromGitter | <gogolxdong> make great progress in making headers ,frames , and parsing with binary parse |
09:49:10 | FromGitter | <cyberlis> from module `times.nim` |
09:49:17 | PMunch | Protobuf, cap'n proto, bson, and all the other binary formats are intended to be one common format |
09:49:37 | PMunch | cyberlis, leap seconds ;) |
09:49:53 | FromGitter | <cyberlis> :) |
09:49:57 | FromGitter | <gogolxdong> I would like to call it non-intrusive serialization. |
09:50:05 | PMunch | gogolxdong, yeah that's the idea :) |
09:50:22 | PMunch | Just define the memory layout, then just use it, no fuzz |
09:54:20 | FromGitter | <gogolxdong> You libraries are not only easy to use but also inspiring. |
09:54:43 | PMunch | Haha, thanks :) |
09:54:51 | PMunch | I'm just happy someone uses them |
09:55:45 | PMunch | I write most of them because it's stuff I want/need for something. Binaryparse was written after work where I had been creating and parsing binary data in C, I knew there had to be a better way :P |
09:58:08 | FromGitter | <alehander42> yeah, the binary parsing dsl is elegant ! |
10:01:28 | FromGitter | <AchalaSB> I changed main but getting ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ It is not reading the functions [https://gitter.im/nim-lang/Nim?at=5beaa0f8f1b8753404bb93cc] |
10:01:34 | * | Aareon_ quit (Remote host closed the connection) |
10:01:48 | * | Aareon_ joined #nim |
10:04:04 | PMunch | AchalaSB, well as you can see doBalance has been renamed to do_balance_E82kPpU5OcEfVOGiDsEd5g, so the other procedures have been similarly renamed |
10:04:18 | FromGitter | <cyberlis> oh, i've never thought about decorators in Nim. Do we have similar python syntax for decorators in standard Nim library? |
10:04:41 | PMunch | To avoid this you need to use the exportc pragma: https://nim-lang.org/docs/manual.html#foreign-function-interface-exportc-pragma |
10:05:18 | PMunch | That way you can specify the name of the generated procedure, or if no name is given it will just be the same as the Nim name |
10:06:16 | FromGitter | <alehander42> @cyberlis we have pragmas which can be used kinda similarly sometimes |
10:06:41 | FromGitter | <alehander42> but user pragmas are defined as macros so you work with the AST of the function instead |
10:07:15 | FromGitter | <alehander42> but you can still do whatever you would be able to with decorators (by adding the code you need to the body) and more |
10:08:47 | FromGitter | <cyberlis> but can I write absolutely the same decorator syntax as python one using macros ? |
10:10:33 | FromGitter | <AchalaSB> `do_balance` is the name of my `proc` Renaming of this no use getting same result for the new name |
10:11:28 | FromGitter | <alehander42> @cyberlis well no |
10:11:57 | FromGitter | <alehander42> what do you want to achieve? |
10:12:08 | PMunch | AchalaSB, yes do_balance is the name in nim, but when it compiles to C it will change it to avoid symbol collision. To avoid this renaming you must mark it with exportc as described in the link I sent |
10:12:49 | PMunch | So basically "proc do_balance() {.exportc.}" will make it keeep the name "do_balance" in the C code as well. |
10:13:09 | FromGitter | <alehander42> oh yeah I forgot you can do exportc without arg |
10:14:06 | PMunch | Yeah, the manual mentions it's optional, but doesn't show any example of this use case |
10:22:01 | FromGitter | <AchalaSB> Here is my proc ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5beaa5c9f1b8753404bbb2d7] |
10:25:30 | leorize | what are the definitions of `getCallDataSize`, `revert`,... ? |
10:26:25 | PMunch | Yeah, as you can see from the first line it now says "In function `do_balance`" instead of "In function `do_balance_E82kPpU5OcEfVOGiDsEd5g`" |
10:26:34 | FromGitter | <AchalaSB> No defination found for both |
10:26:54 | leorize | how does that code even compiles? |
10:27:03 | PMunch | Do you have the code? |
10:27:12 | FromGitter | <AchalaSB> Yeah. but it still showing undefined reference |
10:27:30 | leorize | can we have the full example? |
10:27:36 | PMunch | Can we have a look? |
10:28:33 | FromGitter | <AchalaSB> here is the code Im running ⏎ https://github.com/status-im/nim-eth-contracts/blob/master/examples/wrc20.nim |
10:30:04 | leorize | looks like that's supposed to be imported from WASM runtime |
10:30:08 | leorize | how are you compiling the code? |
10:30:41 | FromGitter | <AchalaSB> Using emscripten. |
10:31:57 | FromGitter | <AchalaSB> I dont want run using LLVM. so I choose Emscripten and changed the configuration for emscripten |
10:32:03 | PMunch | AchalaSB, are you running "nimble examples"? |
10:32:09 | leorize | that's why it doesn't work |
10:32:10 | PMunch | Ah.. |
10:32:44 | FromGitter | <AchalaSB> Im running the command `nim c -d:release wrc20.nim` |
10:32:48 | leorize | emscripten is a POSIX(?) environment built upon JS/WASM. It doesn't expose WASM directly |
10:33:40 | PMunch | https://github.com/status-im/nim-eth-contracts/blob/master/eth_contracts.nimble <- that's how he's compiling the examples |
10:34:03 | leorize | https://github.com/status-im/nim-eth-contracts/blob/master/examples/wrc20.nims <- this is how |
10:35:29 | leorize | I 'spose "--allow-undefined" in the `.nims` file should get you through that error |
10:45:30 | FromGitter | <gogolxdong> http://ix.io/1rKG How about to construct the string stream from recvfrom ? |
10:46:04 | PMunch | That doesn't work? |
10:46:36 | FromGitter | <gogolxdong> buf.len is 0 |
10:46:52 | PMunch | Oh yeah |
10:46:59 | PMunch | You say you want to read buf.len bytes |
10:47:22 | PMunch | But even though the capacity of the buffer is 1024, its length is 0 |
10:47:38 | FromGitter | <AchalaSB> When I was running `nimble example` got some error so I moved to emscripten ⏎ Here is the error ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5beaabca3102f145219475c9] |
10:49:22 | FromGitter | <gogolxdong> change to 1024 , got ⏎ Traceback (most recent call last) ⏎ server.nim(20) server ⏎ SIGSEGV: Illegal storage access. (Attempt to read from nil?) [https://gitter.im/nim-lang/Nim?at=5beaac324e7ca145209af3b4] |
10:49:25 | PMunch | You're missing an include |
10:50:58 | PMunch | gogolxdong, maybe it tries to write to those nils? |
10:52:31 | PMunch | Wait, which recvfrom is that? |
10:52:46 | FromGitter | <gogolxdong> trying to construct from string directly, used array before, and worked. |
10:52:57 | FromGitter | <gogolxdong> posix |
10:52:59 | * | kml joined #nim |
10:55:02 | * | kml quit (Client Quit) |
10:59:04 | * | Yardanico joined #nim |
10:59:10 | FromGitter | <AchalaSB> where i have misssed include? |
11:04:07 | * | Yardanico quit (Quit: Leaving) |
11:07:19 | FromGitter | <gogolxdong> @PMunch the received buff is total different with sent buff. |
11:07:48 | * | Yardanico_ joined #nim |
11:08:59 | FromGitter | <gogolxdong> http://ix.io/1rKK |
11:10:14 | * | Yardanico_ quit (Client Quit) |
11:10:20 | * | Yardanico joined #nim |
11:13:06 | FromGitter | <gogolxdong> the 2nd,3rd,4th,5th byte changes , as the 1st and 6th is always 136 ,127 |
11:13:25 | FromDiscord_ | <mischa_u> What is the difference between `nim doc` and `nim doc2`? |
11:22:38 | FromGitter | <narimiran> @mischa_u the difference is 2 |
11:22:48 | FromGitter | <narimiran> sorry, couldn't help myself :D |
11:25:04 | * | anamok joined #nim |
11:25:06 | anamok | hi |
11:25:39 | Yardanico | lol xD @mischa_u there's no difference actually - doc is now doc2 by default and "doc2" only exists for backwards compatibility https://github.com/nim-lang/Nim/blob/devel/changelogs/changelog_0_18_1.md#tool-changes |
11:26:42 | anamok | I want to convert a seq[int] to a seq[string], but it gives an error: "let numbers = @[2, 6, 3, 8]; echo numbers.map(`$`)" . What is wrong here? |
11:28:20 | FromGitter | <alehander42> @AchalaSB maybe you can try to install gcc-multilib and g++-multilib |
11:28:28 | FromGitter | <alehander42> if you're on ubuntu or debian |
11:28:33 | PMunch | mischa_u, as Yardanico said doc2 in now the same as doc. Previously there was a difference, but the old doc got moved to doc0. |
11:28:35 | FromGitter | <alehander42> (I am not sure about the others) |
11:29:03 | Yardanico | anamok, hello, if you want to use map to convert seq of ints to seq of ints, you'll need to do it like docs say: echo numbers.map(proc(x: int): string = $x) |
11:29:29 | Yardanico | and you'll also need to import `sequtils` |
11:29:34 | Yardanico | shorter (but the same) version would be numbers.mapIt($it) |
11:30:08 | PMunch | gogolxdong, sounds like network byte order vs native byte order |
11:30:13 | anamok | Yardanico, with seq[Rune] it worked: "echo TEXT.toRunes.map(`$`)". I don't see the difference. |
11:32:13 | anamok | Yardanico, OK, mapIt is fair enough |
11:33:08 | anamok | thanks |
11:34:48 | Araq | don't use toRunes, unicode is a variable length encoding |
11:34:57 | Araq | see graphemeLen |
11:37:42 | FromGitter | <alehander42> Araq, what would be the best way to automatically assign `@[]` / `""` to seq/string fields in jsgen |
11:38:01 | * | Vladar joined #nim |
11:38:58 | FromGitter | <alehander42> changing declarations to default assignments and changing `Type(..)` to `{eventually f: default if not set}` |
11:38:59 | FromGitter | <alehander42> ? |
11:39:18 | FromGitter | <alehander42> `Type(..)` from `{}` to that * |
11:40:31 | FromGitter | <alehander42> I wonder after this is fixed (to be compatible with cgen), would it make sense to also default JsAssoc with `{}` |
11:40:41 | FromGitter | <narimiran> hey Yardanico! i don't see you here very often lately. what happened? where are you? |
11:41:16 | Yardanico | yeah, I know! Everything is fine with me , I just been a bit busy :P |
11:43:43 | Yardanico | i'm very sad that I didn't actively participate in nim community for the last six months, but I hope this will improve |
11:44:28 | FromGitter | <narimiran> glad to hear that everything is fine |
12:16:03 | * | rockcavera quit (Remote host closed the connection) |
12:22:02 | * | rockcavera joined #nim |
12:33:52 | * | pwntus quit (Read error: Connection reset by peer) |
12:34:03 | FromDiscord_ | <mischa_u> Thanks Yardanico & PMunch (and narimiran a bit 😉 |
12:36:04 | anamok | Araq: how to iterate over a string that contains special (non-ASCII) characters too? |
12:44:38 | * | vlad1777d quit (Ping timeout: 272 seconds) |
12:45:58 | * | dddddd joined #nim |
12:50:17 | * | pwntus joined #nim |
12:50:17 | * | pwntus quit (Changing host) |
12:50:17 | * | pwntus joined #nim |
12:53:40 | Yardanico | anamok, either use `runes` or `utf8` iterators from `unicode` |
13:00:50 | * | platoff joined #nim |
13:04:31 | * | endragor quit (Remote host closed the connection) |
13:13:12 | FromGitter | <gogolxdong> lib/system.nim(207, 11) Error: undeclared identifier: 'is' ⏎ sh build_all.sh on master branch |
13:18:11 | FromGitter | <gogolxdong> after checkout from devel to master |
13:23:48 | * | platoff quit (Ping timeout: 245 seconds) |
13:25:20 | * | platoff joined #nim |
13:29:19 | * | endragor joined #nim |
13:29:47 | * | stefanos82 quit (Quit: Quitting for now...) |
13:33:39 | * | endragor quit (Ping timeout: 252 seconds) |
13:40:12 | shashlick | Araq: how do you compile a project with a mix of C and C++ {.compile.} files? can you have a specific file compiled with gcc but linked overall with g++? |
13:40:36 | * | snowolf quit (Ping timeout: 252 seconds) |
13:40:48 | Araq | yeah |
13:41:52 | shashlick | reason I ask is that a `typedef struct X X;` syntax works fine in C (and nim c) but since the project has a c++ file as well, I have to compile with nim cpp |
13:41:55 | shashlick | and that breaks |
13:42:43 | shashlick | i map the typedef to `X* = object` but then Nim creates a separate data type for X |
13:43:41 | * | platoff_ joined #nim |
13:43:59 | shashlick | results in https://pastebin.com/Eb68c8YQ |
13:44:31 | shashlick | if i compile with nim c, everything compiles but fails on link step since std::X stuff isn't linked in |
13:46:06 | * | platoff quit (Ping timeout: 252 seconds) |
13:48:54 | leorize | shashlick: tried `--gcc.linkerexe:"g++"`? |
13:56:41 | shashlick | oh - let me |
13:56:49 | shashlick | is it possible to put that in a pragma? |
14:02:58 | shashlick | nope, still uses gcc to link |
14:05:03 | shashlick | ugh, typo - it worked! gosh was it really that easy!? |
14:06:38 | shashlick | leorize: thanks! |
14:07:09 | leorize | np :) you can put it in a project config file if needed |
14:14:26 | shashlick | cool |
14:21:46 | * | platoff_ quit (Quit: Textual IRC Client: www.textualapp.com) |
14:21:56 | * | platoff_ joined #nim |
14:22:25 | * | smt joined #nim |
14:24:22 | * | krux02 quit (Remote host closed the connection) |
14:39:15 | * | Vladar quit (Remote host closed the connection) |
14:40:23 | * | nsf quit (Quit: WeeChat 2.3) |
14:49:32 | * | Vladar joined #nim |
15:02:00 | * | Aareon_ quit (Ping timeout: 252 seconds) |
15:15:29 | anamok | Yardanico, thanks |
15:21:58 | * | Aareon_ joined #nim |
16:00:43 | * | shadowbane quit (Quit: Konversation terminated!) |
16:01:46 | * | snowolf joined #nim |
16:04:32 | * | shadowbane joined #nim |
16:09:02 | * | Trustable joined #nim |
16:10:14 | * | iffy joined #nim |
16:10:59 | iffy | How do I get `nimble install somegitrepo` to install the latest master. It keeps installing an older version (even when I do `nimble remove thepackage` first) |
16:11:12 | PMunch | #master I think |
16:11:23 | PMunch | So nimble intsall somegitrepo#master |
16:11:32 | * | iffy is trying it |
16:12:18 | iffy | That says "Error: 'hg' not in PATH." |
16:12:46 | iffy | is there some cache I can clear? |
16:12:53 | PMunch | hg? |
16:13:00 | PMunch | That's a mercurial repo and not a git repo |
16:13:06 | PMunch | So you need to install hg |
16:13:19 | iffy | no it's definitely a git repo :) https://github.com/Vladar4/sdl2_nim.git |
16:15:13 | PMunch | Hmm, you might need to git clone and install then.. |
16:15:16 | iffy | okay, when I run with `--debug` it says "Cloning latest tagged version: v2.0.9.0" |
16:15:19 | * | platoff_ quit (Read error: Connection reset by peer) |
16:16:00 | PMunch | https://github.com/nim-lang/nimble/issues/350 |
16:16:04 | leorize | iffy: `nimble install sdl2_nim@#head` |
16:16:16 | PMunch | Ah apparently the syntax is.. yeah what leorize said |
16:16:34 | iffy | oh, yep; there it is; thank you! |
16:17:51 | * | PMunch quit (Quit: Leaving) |
16:20:06 | * | narimiran joined #nim |
17:02:04 | * | iffy1 joined #nim |
17:04:27 | * | iffy quit (Ping timeout: 240 seconds) |
17:07:29 | shashlick | https://github.com/genotrance/nimtreesitter |
17:07:36 | shashlick | thanks again leorize |
17:16:49 | * | iffy1 quit (Quit: Leaving.) |
17:17:54 | * | iffy joined #nim |
17:19:25 | anamok | bye |
17:19:29 | * | anamok quit (Quit: Leaving) |
17:27:16 | * | Aareon_ quit (Quit: Quit) |
17:27:24 | * | Aareon_ joined #nim |
17:28:04 | * | Aareon_ is now known as Aareon |
17:29:47 | * | leorize quit (Ping timeout: 250 seconds) |
17:36:19 | FromGitter | <mrwonko> This `while True: try randomly guessing a valid result` algorithm for multipart data encoding feels fishy https://github.com/nim-lang/Nim/blob/master/lib/pure/httpclient.nim#L463..L472 – but apparently that's not what I need for application/x-www-form-urlencoded anyway, so I don't have to worry about it |
17:53:53 | FromGitter | <mrwonko> what's the Nimble equivalent of adding a `-d:ssl` to your compile command line? |
17:54:40 | FromGitter | <mrwonko> I see I can also do `nimble build -d:ssl`, but since I know I'll always need it I'd like to add it to my `.nimble` file |
18:05:59 | * | nif quit (Quit: ...) |
18:09:28 | shashlick | you can use a nim.cfg |
18:10:10 | Yardanico | filename.nims is better :P |
18:14:53 | narimiran | Yardanico: i've been hearing that a lot recently, but nobody convinced me with some comparison/example |
18:15:26 | Yardanico | narimiran, well, with nims you can actually use part of nim stdlib because nims is NimScript |
18:15:42 | Yardanico | e.g. in https://github.com/Yardanico/nickel/blob/master/src/nickel.nims I used a bit of nimscript to find mingw binary on both linux/macos |
18:16:06 | Yardanico | line 26 |
18:16:09 | narimiran | Yardanico: but why is that needed if all you do is define `-d:ssl` or `-d:release --hints:off`? |
18:16:47 | Yardanico | narimiran, well, I think that it's better to just use one configuration format, not both at the same time - that may cause some confusing |
18:18:12 | narimiran | btw, nice example, thanks. i'm starting to get it why y'all prefer .nims |
18:19:38 | narimiran | can you have one .nims for the whole project? like `nim.cfg` |
18:20:43 | Yardanico | yes? you have one main file in your project, right? |
18:20:51 | Yardanico | name it mainfilename.nims |
18:21:12 | Yardanico | well, maybe config.nims will work too |
18:21:19 | narimiran | what if i don't have one main file, but 5 files which i would like to run? |
18:21:46 | narimiran | with `nim.cfg`, all those 5 files will use settings defined there |
18:30:35 | * | Anonymus joined #nim |
18:33:01 | * | theelous3_ joined #nim |
18:33:36 | * | nif joined #nim |
18:37:37 | * | Anonymus quit (Ping timeout: 256 seconds) |
18:42:11 | narimiran | just checked, `config.nims` works for all the files in the folder. just what i need |
18:43:52 | * | nif quit (Quit: ...) |
18:44:29 | * | nif joined #nim |
18:50:27 | * | nsf joined #nim |
19:02:11 | * | zachk joined #nim |
19:14:26 | * | floppydh quit (Quit: WeeChat 2.3) |
19:18:38 | * | stefanos82 joined #nim |
19:25:59 | * | zachk quit (Changing host) |
19:25:59 | * | zachk joined #nim |
19:43:45 | * | iffy left #nim (#nim) |
20:07:06 | * | platoff_ joined #nim |
20:24:39 | * | abm joined #nim |
20:27:55 | * | kapil____ joined #nim |
20:36:30 | * | yonson joined #nim |
20:37:14 | * | Trustable quit (Remote host closed the connection) |
20:55:06 | * | Aareon_ joined #nim |
20:58:51 | * | Aareon quit (Ping timeout: 264 seconds) |
21:18:42 | * | nsf quit (Quit: WeeChat 2.3) |
21:19:00 | * | Vladar quit (Remote host closed the connection) |
21:27:51 | dom96 | So much for letting me stick to conventions https://forum.nim-lang.org/t/4374#27256 |
21:45:50 | * | martin1__ joined #nim |
21:47:14 | FromGitter | <zetashift> the author of wNim explains it as: " ⏎ English is not my mother tongue, I often have no idea how to name an object or a function. So I borrow wxWidgets' names to develop my own framework." |
21:47:55 | FromGitter | <kayabaNerve> proc1 ⏎ proc2 ⏎ proc3 ⏎ ⏎ If you can't remember what each number means, you don't deserve to use my library. [https://gitter.im/nim-lang/Nim?at=5beb468bbb88787474c470b2] |
21:48:47 | FromGitter | <kayabaNerve> BTW proc 85, 86, and 88 are SHA256, SHA512, and SHA3-512, but 87 wipes your drive. |
22:04:55 | * | martin1__ quit (Ping timeout: 246 seconds) |
22:06:26 | * | brainproxy quit (Read error: Connection reset by peer) |
22:07:09 | * | brainproxy joined #nim |
22:13:22 | * | narimiran quit (Ping timeout: 272 seconds) |
22:23:36 | FromDiscord_ | <treeform> I kind of get it for wxWidgets, or openGL, if I search for `glFrustum` I will find what I am looking for, but if I search for `frustum` I will not. |
22:24:50 | * | Aareon_ quit (Ping timeout: 250 seconds) |
22:25:31 | FromDiscord_ | <treeform> It makes it easy to transform c code to nim. |
22:25:57 | shashlick | i also like the idea of using the original wrapped lib's naming |
22:26:08 | shashlick | since all documentation only exists for that and there's no native nim docs |
22:26:26 | * | Aareon_ joined #nim |
22:29:49 | * | stefanos82 quit (Quit: Quitting for now...) |
22:32:07 | * | krux02 joined #nim |
22:36:57 | * | mech422__ joined #nim |
22:40:40 | * | mech422_ quit (Ping timeout: 268 seconds) |
22:41:37 | * | yonson quit (Quit: WeeChat 2.3) |
22:42:50 | * | yonson joined #nim |
22:45:18 | * | vlad1777d joined #nim |
22:48:48 | FromDiscord_ | <treeform> yes |
22:58:02 | FromGitter | <alehander42> well he's right, people have a choice after all |
22:58:40 | FromGitter | <alehander42> I also like consistency, but people should be free to do whatever they like |
22:59:01 | FromGitter | <alehander42> but I am still using A_B_C for constants .. |
22:59:11 | FromGitter | <alehander42> really hard to break that habit |
23:09:59 | * | NimBot joined #nim |
23:18:55 | * | voiceftp quit (Remote host closed the connection) |
23:19:21 | * | voiceftp joined #nim |
23:25:10 | * | ftsf joined #nim |
23:27:03 | * | kapil____ quit (Quit: Connection closed for inactivity) |
23:31:30 | FromGitter | <arnetheduck> some inspiration - a macro expander for rust: https://twitter.com/matthiasendler/status/1062266077101678593 |