<< 13-11-2018 >>

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:37FromGitter<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:54FromGitter<gogolxdong> @PMunch Is it possible to define optional fileds in parser?
02:57:43*sotrhraven joined #nim
02:58:43sotrhraveno/ first time on irc spend time on telegram group
02:59:16FromGitter<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:17krux02good morning
07:19:53Vladarmorning
07:22:57*kapil____ quit (Quit: Connection closed for inactivity)
07:23:05*mech422 joined #nim
07:34:37FromGitter<alehander42> ok, thanks to @jacereda and https://github.com/metacraft-labs/py2nim/pull/18/ py2nim works again with nim devel
07:36:09FromGitter<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:22FromGitter<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:48FromGitter<gogolxdong> Is there a way to translate the osErrorMsg in UTF8?
09:08:42leorizeI 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:44FromGitter<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:02FromGitter<gogolxdong> got -1 ⏎ Invalid argument
09:17:12FromGitter<gogolxdong> any insight of this issue?
09:21:36leorizehave you checked for the exact statement that caused the error?
09:22:02leorizeoh this is Nim, not C :P
09:22:06PMunchgogolxdong well there is a way to set an optional field
09:22:22Araqthe error message is in Utf-8
09:22:34PMunchYou need to create a custom parser, then use that to either read, or not read the field
09:22:54FromGitter<gogolxdong> Then it's the problem of vscode.
09:22:57PMunchLooking at this which you sent me: http://ix.io/1rK6
09:23:24PMunchYou 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:21FromGitter<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:47PMunchOh yeah, that also works .)
09:26:29FromGitter<gogolxdong> I'm trying to send packet to parse and see if it works well.
09:28:43FromGitter<gogolxdong> I guess the issue is out of casting frame from string to seq[byte].
09:32:22FromGitter<gogolxdong> Actually not sure which type to send, sendto requires point, so cstring or anything taking address?
09:32:44FromGitter<gogolxdong> pointer
09:36:49PMunchCasting from string to seq[byte] shouldn't actually be a problem
09:36:55PMunchThey share the same memory layout
09:37:24FromGitter<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:41FromGitter<gogolxdong> Have no idea which is the invalid arguments.
09:39:30PMunchAchalaSB, seems like you have gotten an extra main somehow
09:39:38PMunchMaybe you need to compile with --noMain?
09:39:56PMunchgogolxdong, do you have a full example?
09:41:15FromGitter<gogolxdong> http://ix.io/1rKr
09:41:27FromGitter<AchalaSB> @FromIRC Yes there are two mains in `.c`file which is generated during compilation. In my contract there is one main.
09:42:56PMunchAchalaSB, 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:59leorizegogolxdong: From Posix man page:
09:43:01leorize> EINVAL The dest_len argument is not a valid length for the address family.
09:43:10leorizefor sendto()
09:43:42PMunchAchalaSB: 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:37PMunchu1: headerType = 0x80
09:44:40PMunchThat won't work
09:44:55PMunchYou can't put a value that large in a one bit field
09:45:08FromGitter<gogolxdong> oh, yes, it's the sizeof sizeof(peer.ai_addrlen), should be peer.ai_addrlen directly.
09:45:34FromGitter<gogolxdong> sure, ignore that, haven't got a hand to make it right.
09:45:38PMunchI don't think this will work either: u8: dcid[if dcil != 0: dcil+3 else: 0]
09:45:50PMunchOr wait, maybe it does
09:46:08FromGitter<gogolxdong> it does, I tweaks your example like this.
09:46:09PMunchOh yeah, I think that should actually work
09:46:14PMunchCool :)
09:46:18FromGitter<gogolxdong> tweaked
09:46:41FromGitter<gogolxdong> I said have a feeling your binary parse beat them.
09:48:23FromGitter<cyberlis> why seconds have bigger range than minutes ⏎ ⏎ `````` [https://gitter.im/nim-lang/Nim?at=5bea9de7e0fd6b4360e6ccf8]
09:48:41FromGitter<cyberlis> ``` MinuteRange* = range[0..59] ⏎ SecondRange* = range[0..60]``` [https://gitter.im/nim-lang/Nim?at=5bea9df9d001b91720523ed3]
09:48:47PMunchWell, 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:50FromGitter<gogolxdong> make great progress in making headers ,frames , and parsing with binary parse
09:49:10FromGitter<cyberlis> from module `times.nim`
09:49:17PMunchProtobuf, cap'n proto, bson, and all the other binary formats are intended to be one common format
09:49:37PMunchcyberlis, leap seconds ;)
09:49:53FromGitter<cyberlis> :)
09:49:57FromGitter<gogolxdong> I would like to call it non-intrusive serialization.
09:50:05PMunchgogolxdong, yeah that's the idea :)
09:50:22PMunchJust define the memory layout, then just use it, no fuzz
09:54:20FromGitter<gogolxdong> You libraries are not only easy to use but also inspiring.
09:54:43PMunchHaha, thanks :)
09:54:51PMunchI'm just happy someone uses them
09:55:45PMunchI 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:08FromGitter<alehander42> yeah, the binary parsing dsl is elegant !
10:01:28FromGitter<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:04PMunchAchalaSB, well as you can see doBalance has been renamed to do_balance_E82kPpU5OcEfVOGiDsEd5g, so the other procedures have been similarly renamed
10:04:18FromGitter<cyberlis> oh, i've never thought about decorators in Nim. Do we have similar python syntax for decorators in standard Nim library?
10:04:41PMunchTo avoid this you need to use the exportc pragma: https://nim-lang.org/docs/manual.html#foreign-function-interface-exportc-pragma
10:05:18PMunchThat 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:16FromGitter<alehander42> @cyberlis we have pragmas which can be used kinda similarly sometimes
10:06:41FromGitter<alehander42> but user pragmas are defined as macros so you work with the AST of the function instead
10:07:15FromGitter<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:47FromGitter<cyberlis> but can I write absolutely the same decorator syntax as python one using macros ?
10:10:33FromGitter<AchalaSB> `do_balance` is the name of my `proc` Renaming of this no use getting same result for the new name
10:11:28FromGitter<alehander42> @cyberlis well no
10:11:57FromGitter<alehander42> what do you want to achieve?
10:12:08PMunchAchalaSB, 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:49PMunchSo basically "proc do_balance() {.exportc.}" will make it keeep the name "do_balance" in the C code as well.
10:13:09FromGitter<alehander42> oh yeah I forgot you can do exportc without arg
10:14:06PMunchYeah, the manual mentions it's optional, but doesn't show any example of this use case
10:22:01FromGitter<AchalaSB> Here is my proc ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=5beaa5c9f1b8753404bbb2d7]
10:25:30leorizewhat are the definitions of `getCallDataSize`, `revert`,... ?
10:26:25PMunchYeah, as you can see from the first line it now says "In function `do_balance`" instead of "In function `do_balance_E82kPpU5OcEfVOGiDsEd5g`"
10:26:34FromGitter<AchalaSB> No defination found for both
10:26:54leorizehow does that code even compiles?
10:27:03PMunchDo you have the code?
10:27:12FromGitter<AchalaSB> Yeah. but it still showing undefined reference
10:27:30leorizecan we have the full example?
10:27:36PMunchCan we have a look?
10:28:33FromGitter<AchalaSB> here is the code Im running ⏎ https://github.com/status-im/nim-eth-contracts/blob/master/examples/wrc20.nim
10:30:04leorizelooks like that's supposed to be imported from WASM runtime
10:30:08leorizehow are you compiling the code?
10:30:41FromGitter<AchalaSB> Using emscripten.
10:31:57FromGitter<AchalaSB> I dont want run using LLVM. so I choose Emscripten and changed the configuration for emscripten
10:32:03PMunchAchalaSB, are you running "nimble examples"?
10:32:09leorizethat's why it doesn't work
10:32:10PMunchAh..
10:32:44FromGitter<AchalaSB> Im running the command `nim c -d:release wrc20.nim`
10:32:48leorizeemscripten is a POSIX(?) environment built upon JS/WASM. It doesn't expose WASM directly
10:33:40PMunchhttps://github.com/status-im/nim-eth-contracts/blob/master/eth_contracts.nimble <- that's how he's compiling the examples
10:34:03leorizehttps://github.com/status-im/nim-eth-contracts/blob/master/examples/wrc20.nims <- this is how
10:35:29leorizeI 'spose "--allow-undefined" in the `.nims` file should get you through that error
10:45:30FromGitter<gogolxdong> http://ix.io/1rKG How about to construct the string stream from recvfrom ?
10:46:04PMunchThat doesn't work?
10:46:36FromGitter<gogolxdong> buf.len is 0
10:46:52PMunchOh yeah
10:46:59PMunchYou say you want to read buf.len bytes
10:47:22PMunchBut even though the capacity of the buffer is 1024, its length is 0
10:47:38FromGitter<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:22FromGitter<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:25PMunchYou're missing an include
10:50:58PMunchgogolxdong, maybe it tries to write to those nils?
10:52:31PMunchWait, which recvfrom is that?
10:52:46FromGitter<gogolxdong> trying to construct from string directly, used array before, and worked.
10:52:57FromGitter<gogolxdong> posix
10:52:59*kml joined #nim
10:55:02*kml quit (Client Quit)
10:59:04*Yardanico joined #nim
10:59:10FromGitter<AchalaSB> where i have misssed include?
11:04:07*Yardanico quit (Quit: Leaving)
11:07:19FromGitter<gogolxdong> @PMunch the received buff is total different with sent buff.
11:07:48*Yardanico_ joined #nim
11:08:59FromGitter<gogolxdong> http://ix.io/1rKK
11:10:14*Yardanico_ quit (Client Quit)
11:10:20*Yardanico joined #nim
11:13:06FromGitter<gogolxdong> the 2nd,3rd,4th,5th byte changes , as the 1st and 6th is always 136 ,127
11:13:25FromDiscord_<mischa_u> What is the difference between `nim doc` and `nim doc2`?
11:22:38FromGitter<narimiran> @mischa_u the difference is 2
11:22:48FromGitter<narimiran> sorry, couldn't help myself :D
11:25:04*anamok joined #nim
11:25:06anamokhi
11:25:39Yardanicolol 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:42anamokI 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:20FromGitter<alehander42> @AchalaSB maybe you can try to install gcc-multilib and g++-multilib
11:28:28FromGitter<alehander42> if you're on ubuntu or debian
11:28:33PMunchmischa_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:35FromGitter<alehander42> (I am not sure about the others)
11:29:03Yardanicoanamok, 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:29Yardanicoand you'll also need to import `sequtils`
11:29:34Yardanicoshorter (but the same) version would be numbers.mapIt($it)
11:30:08PMunchgogolxdong, sounds like network byte order vs native byte order
11:30:13anamokYardanico, with seq[Rune] it worked: "echo TEXT.toRunes.map(`$`)". I don't see the difference.
11:32:13anamokYardanico, OK, mapIt is fair enough
11:33:08anamokthanks
11:34:48Araqdon't use toRunes, unicode is a variable length encoding
11:34:57Araqsee graphemeLen
11:37:42FromGitter<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:58FromGitter<alehander42> changing declarations to default assignments and changing `Type(..)` to `{eventually f: default if not set}`
11:38:59FromGitter<alehander42> ?
11:39:18FromGitter<alehander42> `Type(..)` from `{}` to that *
11:40:31FromGitter<alehander42> I wonder after this is fixed (to be compatible with cgen), would it make sense to also default JsAssoc with `{}`
11:40:41FromGitter<narimiran> hey Yardanico! i don't see you here very often lately. what happened? where are you?
11:41:16Yardanicoyeah, I know! Everything is fine with me , I just been a bit busy :P
11:43:43Yardanicoi'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:28FromGitter<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:03FromDiscord_<mischa_u> Thanks Yardanico & PMunch (and narimiran a bit 😉
12:36:04anamokAraq: 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:40Yardanicoanamok, 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:12FromGitter<gogolxdong> lib/system.nim(207, 11) Error: undeclared identifier: 'is' ⏎ sh build_all.sh on master branch
13:18:11FromGitter<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:12shashlickAraq: 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:48Araqyeah
13:41:52shashlickreason 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:55shashlickand that breaks
13:42:43shashlicki map the typedef to `X* = object` but then Nim creates a separate data type for X
13:43:41*platoff_ joined #nim
13:43:59shashlickresults in https://pastebin.com/Eb68c8YQ
13:44:31shashlickif 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:54leorizeshashlick: tried `--gcc.linkerexe:"g++"`?
13:56:41shashlickoh - let me
13:56:49shashlickis it possible to put that in a pragma?
14:02:58shashlicknope, still uses gcc to link
14:05:03shashlickugh, typo - it worked! gosh was it really that easy!?
14:06:38shashlickleorize: thanks!
14:07:09leorizenp :) you can put it in a project config file if needed
14:14:26shashlickcool
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:29anamokYardanico, 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:59iffyHow 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:12PMunch#master I think
16:11:23PMunchSo nimble intsall somegitrepo#master
16:11:32*iffy is trying it
16:12:18iffyThat says "Error: 'hg' not in PATH."
16:12:46iffyis there some cache I can clear?
16:12:53PMunchhg?
16:13:00PMunchThat's a mercurial repo and not a git repo
16:13:06PMunchSo you need to install hg
16:13:19iffyno it's definitely a git repo :) https://github.com/Vladar4/sdl2_nim.git
16:15:13PMunchHmm, you might need to git clone and install then..
16:15:16iffyokay, 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:00PMunchhttps://github.com/nim-lang/nimble/issues/350
16:16:04leorizeiffy: `nimble install sdl2_nim@#head`
16:16:16PMunchAh apparently the syntax is.. yeah what leorize said
16:16:34iffyoh, 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:29shashlickhttps://github.com/genotrance/nimtreesitter
17:07:36shashlickthanks again leorize
17:16:49*iffy1 quit (Quit: Leaving.)
17:17:54*iffy joined #nim
17:19:25anamokbye
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:19FromGitter<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:53FromGitter<mrwonko> what's the Nimble equivalent of adding a `-d:ssl` to your compile command line?
17:54:40FromGitter<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:28shashlickyou can use a nim.cfg
18:10:10Yardanicofilename.nims is better :P
18:14:53narimiranYardanico: i've been hearing that a lot recently, but nobody convinced me with some comparison/example
18:15:26Yardaniconarimiran, well, with nims you can actually use part of nim stdlib because nims is NimScript
18:15:42Yardanicoe.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:06Yardanicoline 26
18:16:09narimiranYardanico: but why is that needed if all you do is define `-d:ssl` or `-d:release --hints:off`?
18:16:47Yardaniconarimiran, 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:12narimiranbtw, nice example, thanks. i'm starting to get it why y'all prefer .nims
18:19:38narimirancan you have one .nims for the whole project? like `nim.cfg`
18:20:43Yardanicoyes? you have one main file in your project, right?
18:20:51Yardaniconame it mainfilename.nims
18:21:12Yardanicowell, maybe config.nims will work too
18:21:19narimiranwhat if i don't have one main file, but 5 files which i would like to run?
18:21:46narimiranwith `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:11narimiran 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:51dom96So much for letting me stick to conventions https://forum.nim-lang.org/t/4374#27256
21:45:50*martin1__ joined #nim
21:47:14FromGitter<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:55FromGitter<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:47FromGitter<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:36FromDiscord_<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:31FromDiscord_<treeform> It makes it easy to transform c code to nim.
22:25:57shashlicki also like the idea of using the original wrapped lib's naming
22:26:08shashlicksince 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:48FromDiscord_<treeform> yes
22:58:02FromGitter<alehander42> well he's right, people have a choice after all
22:58:40FromGitter<alehander42> I also like consistency, but people should be free to do whatever they like
22:59:01FromGitter<alehander42> but I am still using A_B_C for constants ..
22:59:11FromGitter<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:30FromGitter<arnetheduck> some inspiration - a macro expander for rust: https://twitter.com/matthiasendler/status/1062266077101678593