<< 11-02-2019 >>

00:33:18*Jesin quit (Quit: Leaving)
00:38:22*abm quit (Ping timeout: 250 seconds)
01:27:09*sotrhraven joined #nim
01:27:17sotrhraveno/
01:32:35*sotrhraven quit (Quit: Leaving)
01:56:34*Snircle joined #nim
02:11:08FromGitter<brentp> @arnetheduck ( and Araq) : https://github.com/brentp/slivar/blob/dev/src/slivarpkg/siset.nim ⏎ if anyone wants to take that over/contribute, I'll pull it out to separate package. I just hacked it together instead of getting real work done and it's fast enough for now. ⏎ it's using the bitops package for pop count and trailing zeros.
02:14:38*thomasross quit (Remote host closed the connection)
02:31:28*Jesin joined #nim
02:37:12FromGitter<brentp> the intersection gets much faster using a fixed-sized array and a length instead of a seq, but that's less flexible.
02:37:28*Tyresc quit (Quit: WeeChat 2.4-dev)
02:38:55*rockcavera joined #nim
03:02:27*banc quit (Quit: Bye)
03:04:24*vlad1777d quit (Ping timeout: 250 seconds)
03:09:38*redlegion_ is now known as redlegion
03:09:38*redlegion quit (Changing host)
03:09:38*redlegion joined #nim
03:23:19*banc joined #nim
03:35:02*rnrwashere joined #nim
04:00:20*quantum2020 joined #nim
04:02:41quantum2020how does one contribute to nim?
04:02:50quantum2020ie_ help with documentation etc.
04:05:14FromDiscord_<juan_carlos> Contribute Documentation list of stuff to do here: https://github.com/nim-lang/Nim/issues/10330#issue-399758328
04:10:01quantum2020thanks
04:12:58FromDiscord_<juan_carlos> No problem, feel free to ask questions.
04:15:59*nsf joined #nim
04:34:08quantum2020is Nim in Action still a relevant book?
04:41:07FromDiscord_<juan_carlos> Yeah.
04:42:33quantum2020thanks Juan will read
05:00:39*rnrwashere quit (Remote host closed the connection)
05:01:34*rnrwashere joined #nim
05:05:47*rnrwashere quit (Ping timeout: 250 seconds)
05:15:15*rnrwashere joined #nim
05:16:46*rnrwashere quit (Remote host closed the connection)
05:24:18*dddddd quit (Remote host closed the connection)
05:40:38*abhijat joined #nim
05:43:14*Snircle quit (Remote host closed the connection)
05:44:07*abhijat quit (Client Quit)
06:59:45*narimiran joined #nim
07:12:44*disruptek quit (Quit: Bye)
07:17:24*krux02 joined #nim
07:32:10*disruptek joined #nim
07:59:56*kapil____ joined #nim
08:00:00*gmpreussner quit (Quit: kthxbye)
08:05:00*gmpreussner joined #nim
08:16:11*PMunch joined #nim
09:00:32*abm joined #nim
09:08:05*nastavnic joined #nim
09:08:34*floppydh joined #nim
09:10:37*nastavnic quit (Client Quit)
09:12:27*nastavnic joined #nim
09:12:38*nastavnic quit (Client Quit)
09:16:06*nastavnic joined #nim
09:17:10*nastavnic quit (Client Quit)
09:17:43*nastavnic joined #nim
09:17:52*nastavnic quit (Client Quit)
09:18:30*nastavnic joined #nim
09:18:36*nastavnic quit (Client Quit)
09:19:41*nastavnic joined #nim
09:19:42*nastavnic quit (Client Quit)
09:20:26*nastavnic joined #nim
09:22:22*solitudesf quit (Remote host closed the connection)
09:23:13*nastavnic quit (Client Quit)
09:23:28*nastavnic joined #nim
09:24:02*nastavnic quit (Client Quit)
09:25:14*nastavnic joined #nim
09:27:41*solitudesf joined #nim
09:33:03*Vladar joined #nim
09:36:06*nastavnic quit (Quit: WeeChat 2.3)
09:36:41*nastavnic joined #nim
09:37:07*nastavnic quit (Client Quit)
09:38:25*nastavnic joined #nim
09:38:54*nastavnic quit (Client Quit)
09:39:35*nastavnic joined #nim
09:40:07*nastavnic quit (Client Quit)
09:40:23*nastavnic joined #nim
09:44:32*nastavnic quit (Client Quit)
09:44:46*nastavnic joined #nim
09:45:14*nastavnic quit (Client Quit)
09:45:30*nastavnic joined #nim
09:53:37*nastavnic quit (Quit: WeeChat 2.3)
09:58:15*nastavnic joined #nim
10:02:55*stefanos82 joined #nim
10:03:04*nastavnic quit (Client Quit)
10:15:16FromDiscord_<juan_carlos> is the `` of asm bugged?. https://pastebin.com/tqTKcv8T
10:16:17FromDiscord_<juan_carlos> Using a literal integer it works ok, with the `` fails.
10:21:47*dom96_w joined #nim
10:24:35FromGitter<mratsim> @juan_carlos: works for me here: https://github.com/status-im/nim-constantine/blob/master/constantine/private/word_types_internal.nim#L16-L37
10:25:32FromGitter<mratsim> but I'm directly associating with registers, I don't know about immediates
10:28:36*neceve joined #nim
10:30:18FromDiscord_<juan_carlos> Maybe I dont understand how it works, I was thinking it kinda replaces the value in-place on the string and than passes it to asm statement.
10:30:18*banc quit (Ping timeout: 250 seconds)
10:36:40Araqthat's what it does, yes
10:37:04Araqdon't use asmNoStackFrame
10:37:09*banc joined #nim
10:37:51AraqasmNoStackFrame is for when you need to circumvent the calling convention
10:40:16*slugmatt joined #nim
10:44:42*gangstacat quit (Quit: Ĝis!)
10:51:29*Sentreen quit (Remote host closed the connection)
11:08:00*Sentreen joined #nim
11:48:52*kapil____ quit (Quit: Connection closed for inactivity)
11:57:07FromGitter<mratsim> By the way @alehander42 regarding comprehensions, you might like transducers and catamorphisms http://sixty-north.com/blog/deriving-transducers-from-first-principles.html and https://medium.com/@olxc/catamorphisms-and-f-algebras-b4e91380d134
11:57:27FromGitter<mratsim> cc @timotheecour, I'm pretty sure it relates with D-ranges as well
12:42:54*slugmatt quit (Remote host closed the connection)
12:45:26*nsf quit (Quit: WeeChat 2.3)
13:10:30*gangstacat joined #nim
13:15:35*slugmatt joined #nim
13:21:30*dddddd joined #nim
13:28:29*Snircle joined #nim
13:32:10FromGitter<mratsim> interesting too in that vein: https://yanniss.github.io/algebras-ecoop15.pdf
13:45:54*wildlander joined #nim
13:56:30*ng0 joined #nim
14:15:21*Vladar quit (Remote host closed the connection)
14:16:24*wildlander left #nim ("Konversation terminated!")
14:16:53*nsf joined #nim
14:18:31*vlad1777d joined #nim
14:48:07*ng0 quit (Ping timeout: 256 seconds)
14:51:30*ng0 joined #nim
14:59:08*PMunch quit (Remote host closed the connection)
15:00:24*rnrwashere joined #nim
15:00:30*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:02:03*dom96_w joined #nim
15:10:31*natrys joined #nim
15:17:46*rnrwashere quit (Remote host closed the connection)
15:17:50*Trustable joined #nim
15:23:19*shadowbane quit (Quit: Konversation terminated!)
15:25:39*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:26:19*d10n-work joined #nim
15:26:51*shadowbane joined #nim
15:45:58FromDiscord_<moerm> hello, Nimmers
15:47:02Araqhi
15:47:46FromDiscord_<moerm> I hate it when someone asks for help and doesn't provide all relevant info. grr.
15:48:45FromGitter<mratsim> Don't work at a support desk then
15:48:58FromGitter<mratsim> that happens 80% of the time.
15:49:14FromDiscord_<moerm> Hehe (I don't. But I try to help in our forum whenever I have a little time)
15:49:59*aguspiza joined #nim
15:51:07FromGitter<mratsim> I did and nothing like a trader calling you and telling you "it does not work, and all is going to hell in 5 min".
15:51:26FromDiscord_<moerm> Do I get it right that being at 19.9 means that 20.0 isn't far away and we're getting close to 1.0?
15:52:04leorizeyea, 19.9 means development version that will become 20.0
15:52:57narimiran@moerm correct, for some arbitrary definition of "close" :)
15:53:07FromDiscord_<moerm> mratsim I one worked for a big system house and I've heard about those cases. Like people saying "It doesn't work. What's wrong?" and no matter how hard you try you just don't get any reasonable information from them
15:53:53FromDiscord_<moerm> narimiran That's very, very, nice! I love to hear that
15:53:54FromGitter<mratsim> Actually in Finance it's not so bad because there is money and downtime has a very visible price so people do not sit around in meetings.
15:55:36FromDiscord_<moerm> I try to stay away as far as any possible from *end user* support anyway, no matter the area. But here (in our forum) I try to help when I can because it's colleagues and I (probably stupidly) expect a reasonable information level
15:56:54FromGitter<mratsim> just wait until Nim becomes popular and people coming are less patient (i.e. what happens/happened in technically involved distros like Gentoo or Arch)
15:57:14*rnrwashere joined #nim
15:57:22FromDiscord_<moerm> Now I have ugly pictures in my head ...
15:57:50*Trustable quit (Remote host closed the connection)
15:58:52leorizemratsim: Gentoo users are unlikely to be impatient imo :P
15:59:06FromGitter<mratsim> that's true :p
15:59:15*Trustable joined #nim
15:59:58narimirancan we also have arch-like wiki?
16:00:03*vlad1777d quit (Ping timeout: 245 seconds)
16:00:35FromGitter<mratsim> we can, that requires tremendous effort when starting
16:01:23FromGitter<mratsim> but if the search is good that's super helpful
16:01:26leorizewell, maybe we should improve the github wiki as a start?
16:02:11FromGitter<mratsim> Github wiki is quite poor tbh (not talking about our wiki specifically but as collaborative tool)
16:02:35narimiranleorize: yes, please
16:04:19leorizemratsim: any specific reasons?
16:04:41*dom96_w joined #nim
16:05:22FromGitter<mratsim> search
16:06:37*slugmatt quit (Remote host closed the connection)
16:07:27leorizemratsim: you can search with the normal github search
16:07:59*rnrwashere quit (Remote host closed the connection)
16:08:36FromGitter<mratsim> You have lots of extra clicks when you're looking into somethign in the wiki specifically with Github search.
16:08:41*slugmatt joined #nim
16:09:14FromGitter<kaushalmodi> could be a major issue if we sink deep into the Github wiki system: it's not mobile friendly
16:09:37FromGitter<kaushalmodi> when you visit Github repos on mobile, the Wiki tabs don't even show up
16:09:57FromGitter<kaushalmodi> you can do "show as desktop" but then the wikis are very unwieldy to access
16:10:06*rnrwashere joined #nim
16:10:22FromGitter<mratsim> Images in the wiki are also a huge pain.
16:10:59FromGitter<mratsim> right now I'm uploading images to a gist and then embed them with markdown link, it takes me 1 min at minimum
16:12:21FromDiscord_<moerm> ... "Github"? Strongly Opposed!
16:12:35FromDiscord_<moerm> If we want a wiki let's have our own
16:14:09FromGitter<mratsim> Yes, ownership and ease to backup/get out of the walled garden is also an issue.
16:15:01*slugmatt_ joined #nim
16:15:16*slugmatt quit (Read error: Connection reset by peer)
16:16:16*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:16:23FromGitter<mratsim> Github provides 2 strong advantages: Nim and many other languages syntax highlighting, and no hosting. There is also versioning using git (instead of database hacks) and most likely being spam-free.
16:18:01*dom96_w joined #nim
16:18:26FromGitter<mratsim> Our own wiki would have better search, not tied to a service, maybe better SEO/discoverability as well (most Linux questions have the Archwiki in the first page), better mobile layout.
16:20:15FromGitter<mratsim> Also it could grow and gather, tutorials, cookbooks, Nim history, internals with category/related sections without polluting the sidebar with all existing pages.
16:20:31FromGitter<mratsim> oh and images without pains
16:20:58narimiranand the most likely scenario? everything will stay as it is :'(
16:22:22FromGitter<mratsim> I don't mind helping with content on a new non-Github wiki.
16:25:27FromGitter<kaushalmodi> I can help with the content too (port most of my notes) if the wiki accepts Markdown
16:26:11FromGitter<kaushalmodi> but I am not used to using wikis, just Hugo static site generator
16:26:12CalinouGitHub wikis can easily be cloned locally, they aren't walled gardens really
16:26:21Calinougit clone https://github.com/organization/repository.wiki.git IIRC
16:26:24Calinou(add .wiki)
16:26:32FromGitter<kaushalmodi> Calinou: yep, that's correct
16:26:42Calinouso you can browse them offline and mirror them all you want :)
16:29:06*aguspiza quit (Ping timeout: 250 seconds)
16:29:35*icebattle joined #nim
16:30:44FromGitter<Vindaar> @Araq: here you go: https://github.com/nim-lang/Nim/pull/10637 Like I said, a little hacky (:
16:38:16*floppydh quit (Quit: WeeChat 2.3)
16:43:54*nsf quit (Quit: WeeChat 2.3)
16:49:33FromGitter<Varriount> @Vindaar Unfortunately, you still have to use Marshall for anything really large, due to the VMs loop limit
16:51:56Zevvimho the problem with wikis about subjects-in-flux such as Nim is page rot: tons of out of date pages with no ownership which will confuse users. For example, Lua has a sweet little wiki, of which two thirds does no longer apply to the latest version
16:55:37*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
16:55:38shashlickhow do I get the stack trace for a nim dll crash
16:56:00shashlicki can catch the exception but there's no details
16:56:37*Vladar joined #nim
17:00:34narimiranhas anybody used `osproc.startProcess`? i'm experiencing some strange issues with it
17:00:47narimiranthis one: https://nim-lang.github.io/Nim/osproc.html#startProcess%2Cstring%2Cstring%2CopenArray[string]%2CStringTableRef%2Cset[ProcessOption]
17:06:08*dom96_w joined #nim
17:06:47FromGitter<wasupwithuman> hi, nimnoob here, I had a question regarding the different types (object, ref). I bought the book nim in action. It stated that types created with the object keyword are created on the stack and ref are heap allocated, but when printing the repr() on both, the memory addresses are in the same area
17:07:00*Vladar quit (Remote host closed the connection)
17:07:21FromGitter<wasupwithuman> am I missing something, or is the address printed by repr() not the actual location address?
17:09:55FromGitter<Vindaar> @Varriount yes, I know. That was one of the reasons I didn't pursue this much further. I increased the limit, but then just realized it's way to slow for what I was trying
17:10:07FromGitter<Vindaar> *too
17:12:14leorizewasupwithuman: can you give me some example code?
17:13:22FromGitter<wasupwithuman> `type ⏎ ⏎ ```Person = object ⏎ name: string ⏎ age: int ⏎ sex: Sex ⏎ PersonRef = ref Person``` ⏎ ⏎ var sam = Person(name: "Sam", age: 30) ... [https://gitter.im/nim-lang/Nim?at=5c61ad325095f6660cd7c29b]
17:13:31FromGitter<wasupwithuman> well that's not code
17:15:33*slugmatt_ quit (Remote host closed the connection)
17:15:52*slugmatt_ joined #nim
17:17:06FromGitter<mratsim> you should repr sam and tasha, not their field
17:17:31narimirani think i solved the above problem with passing `poUsePath` to `options` parameter. i've lost too much time and nerves on that....
17:17:45FromGitter<mratsim> when you repr tasha's field it probably dereferences it and put it on the stack
17:18:53FromGitter<wasupwithuman> oh roger
17:19:16FromGitter<mratsim> ah no
17:19:23FromGitter<mratsim> string are heap allocated
17:19:30FromGitter<mratsim> that's why you see the same area
17:19:55FromGitter<mratsim> repr doesn't dereference and put on the stack
17:22:28FromGitter<deech> I'm pretty sure I'm missing something in the Nimble manual but how do I specify executable dependencies, eg. ensure `make` is in the path in some cross-platform way.
17:24:31FromGitter<mratsim> I don't think that exists
17:28:33*rnrwashere quit (Remote host closed the connection)
17:31:44*rnrwashere joined #nim
17:33:36*neceve quit (Remote host closed the connection)
17:36:56FromGitter<deech> Ok thanks!
17:37:39*nsf joined #nim
17:39:49leorizedeech: http://nim-lang.github.io/Nim/nimscript#findExe%2Cstring
17:40:02*nsf quit (Client Quit)
17:47:49*rnrwashere quit (Remote host closed the connection)
17:48:10*rnrwashere joined #nim
18:01:17FromGitter<deech> leorize: Thanks!
18:09:32*noonien quit (Quit: Connection closed for inactivity)
18:10:37FromDiscord_<juan_carlos> You can try find it and put {.warning.} when the executable is not found.
18:15:07*aguspiza joined #nim
18:21:48*stefanos82 quit (Remote host closed the connection)
18:34:42*dom96_w quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:45:31*Tyresc joined #nim
18:50:28*aguspiza quit (Ping timeout: 245 seconds)
19:00:52FromGitter<Varriount> Anyone know if there is a way to enable compiler optimizations for a single module?
19:01:37FromGitter<Varriount> My module makes use of nimcrypto, and tends to run incredibly slowly if the C compiler hasn't had optimizations enabled for it.
19:07:50FromDiscord_<moerm> Varriount: *Theoretically* from what I know push - passC <what you need> pop pragmas. Practically the switches one passes via passC are used for *all* modules it seems (at least as per 19.2 - maybe changed by now)
19:10:19*zachk joined #nim
19:11:30Araqmodulename.always.options = "-O3"
19:11:33Araqiirc
19:14:32*zachk quit (Changing host)
19:14:32*zachk joined #nim
19:18:49FromDiscord_<moerm> Side note: >Do *not* simply use O3 for crypto. It's almost always better to finetune the flags instead of the O3 hammer
19:19:03FromGitter<brentp> error messages are still linking to: https://nim-lang.org/docs/manual/var_t_return.html, which does not exist
19:21:07FromGitter<mratsim> @Varriount example: https://github.com/numforge/laser/blob/master/nim.cfg (this is completely undocumented)
19:25:01narimiran@brentp here is the correct link, i think: https://nim-lang.org/docs/manual.html#procedures-var-return-type
19:37:29FromGitter<brentp> @narimiran cheers
19:42:11FromGitter<Varriount> @mratsim Thanks!
19:51:21*Trustable quit (Remote host closed the connection)
19:58:58*slugmatt_ quit (Remote host closed the connection)
19:59:25*slugmatt_ joined #nim
20:32:37FromDiscord_<moerm> see you
20:37:25FromDiscord_<Geroro / Grey Ghost> Hi All! What's the best way to save a struct to a file and restore it later in nim?
20:37:53Zevvdepends on your definition of "best"
20:38:31FromDiscord_<Geroro / Grey Ghost> true, what is the nim way?
20:38:46ZevvI'd say: json
20:39:11Zevvif you want it fast and unsafe, just dump the binary contents.
20:39:31FromDiscord_<Geroro / Grey Ghost> I'll keep it safe, haha, thank you :)
20:44:25*rnrwashere quit (Remote host closed the connection)
20:52:12*noonien joined #nim
21:05:07*dorelix joined #nim
21:14:24*rnrwashere joined #nim
21:19:10*rnrwashere quit (Ping timeout: 268 seconds)
21:20:46*rnrwashere joined #nim
21:25:30*rnrwashere quit (Ping timeout: 272 seconds)
21:27:47*slugmatt_ quit (Quit: Leaving)
21:30:16*narimiran quit (Ping timeout: 250 seconds)
21:46:02zestyr~
21:46:54*hagna joined #nim
21:47:29hagnaSo proc main(argc: cint, argv: cstringArray): cint {.importc.} doesn't seem like the right way to declare int main(int argv, char* argv[]). Do you know what is?
21:50:33*rnrwashere joined #nim
21:57:59*rnrwashere quit (Remote host closed the connection)
22:10:34*Cthalupa quit (Ping timeout: 250 seconds)
22:13:04*Cthalupa joined #nim
22:13:59FromDiscord_<exelotl> `argv: ptr UncheckedArray[cstring]` maybe?
22:17:43*rnrwashere joined #nim
22:19:08*rnrwashere quit (Remote host closed the connection)
22:19:34*rnrwashere joined #nim
22:20:25*theelous3 joined #nim
22:21:00*rnrwashere quit (Read error: Connection reset by peer)
22:21:06*rnrwashere joined #nim
22:22:04*rnrwashere quit (Remote host closed the connection)
22:22:31*rnrwashere joined #nim
22:26:36*rnrwashere quit (Ping timeout: 246 seconds)
22:31:27*Cthalupa quit (Ping timeout: 240 seconds)
22:33:06*Cthalupa joined #nim
22:41:25*rnrwashere joined #nim
22:42:41*rnrwashere quit (Remote host closed the connection)
22:47:56FromDiscord_<Geroro / Grey Ghost> can I have a procedure that returns different types?
22:50:27FromDiscord_<Geroro / Grey Ghost> I am blind, its <any>, I looked for 20 minutes and couldn't find it
22:52:36*rnrwashere joined #nim
22:54:00*rnrwashere quit (Remote host closed the connection)
22:54:57*theelous3 quit (Ping timeout: 246 seconds)
22:55:33FromDiscord_<juan_carlos> auto ?
22:58:21*rnrwashere joined #nim
22:58:44FromDiscord_<Geroro / Grey Ghost> that looks better than any, thank you
22:58:57*natrys quit (Quit: natrys)
22:59:18*rnrwashere quit (Remote host closed the connection)
22:59:45*rnrwashere joined #nim
23:06:30*rnrwashere quit (Ping timeout: 246 seconds)
23:10:54*rnrwashere joined #nim
23:11:26*rnrwashere quit (Remote host closed the connection)
23:11:32*rnrwashere joined #nim
23:25:02*rnrwashere quit (Remote host closed the connection)
23:28:16*rnrwashere joined #nim
23:31:05*rnrwashere quit (Remote host closed the connection)
23:32:28*ghidrah joined #nim
23:35:49*rnrwashere joined #nim
23:36:59*solitude_sf joined #nim
23:39:02*bozaloshtsh_ joined #nim
23:45:09*bashbjorn joined #nim
23:45:29*Shoozza joined #nim
23:45:29*vegax87_ joined #nim
23:46:33*solitudesf quit (*.net *.split)
23:46:33*vegax87 quit (*.net *.split)
23:46:33*TheManiac[m] quit (*.net *.split)
23:46:33*Shoozza_ quit (*.net *.split)
23:46:33*rayman22201 quit (*.net *.split)
23:46:33*odc quit (*.net *.split)
23:46:33*bozaloshtsh quit (*.net *.split)
23:46:33*LyndsySimon quit (*.net *.split)
23:46:33*crashbjorn quit (*.net *.split)
23:46:54*rnrwashere quit (Remote host closed the connection)
23:52:24*rnrwashere joined #nim
23:57:27*leorize quit (Quit: WeeChat 2.3)
23:59:30*rnrwashere quit (Remote host closed the connection)