<< 18-02-2016 >>

00:01:10Araqldlework: but that should be possible for you to fix. edit compiler/vm.nim
00:01:31Araqand when the error message is generated throw in a typeToString(n.typ) or something
00:05:09*Matthias247_ quit (Read error: Connection reset by peer)
00:22:39ldleworkdom96: My questions were around how to ship non-code assets in nimble packages
00:22:53ldleworkWe should probably have a .nims filename that is the default
00:23:04ldleworkwhere in if you name your nims file that, you don't have to specify it on the commandline
00:23:06ldleworkyou can just do
00:23:09ldleworknim taskname
00:28:56*akiradeveloper joined #nim
00:31:02*akiradeveloper quit (Client Quit)
00:39:16ldleworkthe vm seems buggy sometimes :(
00:41:07ldleworkIf you look at this file: https://gist.github.com/dustinlacewell/c13f1a6998abac8c37e1
00:41:23ldleworkbuild_path is assigned ONLY ONCE in the whole program
00:41:26ldleworkat the start
00:41:33ldleworkto a path that ends with "gh_pages"
00:41:40ldleworkno where else in the program is that name assigned to ever
00:41:47ldleworkand yet, when we run the script you can see in the output
00:41:56ldleworkthat build_path's value has totally changed inexplicable
00:42:05ldleworkBuild path:
00:42:07ldlework/home/dlacewell/nim/dadren/docs/overview.rst
00:42:09ldleworkmakes no sense
00:43:41ldleworkjust gonna use a Makefile
00:48:04dom96ldlework: pretty sure that's how it works currently? (re: .nims)
00:49:12ldleworkdom96: what is how it works currently?
00:49:30dom96what you said after you highlighted me
00:49:40ldleworkwhat is the default filename?
00:50:57ldleworkah config.nims
00:51:07ldleworktoo bad the vm has bad memory safety apparently :(
01:01:13*jaco60 quit (Ping timeout: 240 seconds)
01:04:26Araq build_path = root_path / "gh_pages"
01:04:41Araqldlework: workaround: make build_path a local var or a 'const'
01:05:12ldleworkAraq: what?
01:05:17ldleworkwhy would this value ever change?!
01:05:29ldleworkI don't know why you pasted that line, are you pointing out something I did wrong or?
01:05:53Araqno. I agree with you, just trying to help you.
01:06:13ldleworkI know, I was just confused what you were saying.
01:06:31ldleworkAraq: is it a known bug or does it need an issue?
01:06:50Araqit surely is a showstopper bug
01:07:26Araqplease report it but since it's personally annoying me it's pretty safe to assume I will fix it anyway
01:07:38ldleworkdoing const doesn't fix it btw
01:08:26Araqinteresting
01:11:26ldleworkhttps://github.com/nim-lang/Nim/issues/3876
01:12:06ldleworkAraq: making it a local variable... same behavor.
01:13:18ldleworkI mentioned that in the issue.
01:14:06AraqI think something else is going on here
01:14:11Araqbut I'll investigate
01:22:31ldleworkAraq: are you interested in something like Sphinx documentation generator for Nim?
01:23:11Araqno. I like my docgen and the missing things won't be any easier with Sphinx
01:23:23ldleworkI like our docgen too
01:23:28ldleworkI meant for non-api documentation
01:23:49ldleworkone thing I miss from sphinx is for hand-written docs the way it knows how to aggregate and generate table of contents
01:24:53ldleworkAraq: you know?
01:26:22ldleworkthe nim auto-doc thing is really good, but I can't figure out how to effectively write hand-written documentation
01:26:31ldleworkwithout painfully doing table of contents manually
01:27:06ldleworkI wonder if Nim's rst engine has the ability to support directive extensions
01:27:35Araqlook at nim's manual
01:27:48Araqlast time I checked it has a table of contents
01:28:01Araqgenerated by .. toc:: or whatever
01:30:14ldleworkAraq: manually curated.
01:31:24ldleworkalso achieved by include not toc
01:36:35ldleworkhttp://www.sphinx-doc.org/en/stable/markup/toctree.html
01:36:48ldleworkSince reST does not have facilities to interconnect several documents, or split documents into multiple output files, Sphinx uses a custom directive to add relations between the single files the documentation is made of, as well as tables of contents. The toctree directive is the central element.
01:37:05ldleworkIs there anyway to add directives to Nim's rst support?
01:50:15Araqldlework: feel free to add that feature to Nim's RST parser :-)
01:53:14*apotheon_ joined #nim
01:54:11*apotheon quit (Ping timeout: 265 seconds)
01:57:02*brson quit (Quit: leaving)
01:58:32*awsteele joined #nim
01:59:12awsteeleI vaguely recall a warning in the manual that do notation's future was unclear, but that warning is no longer there. Does that mean I can feel confident using it?
02:00:25Araqawsteele: I think so, yeah.
02:00:55awsteelegreat :) obviously we can't predict the future, but a lack of warning for now is good enough for me
02:06:34awsteeleNow that nre is part of the stdlib, does it no longer compile its own PCRE (the github repo says so)? I'm getting "could not import: pcre_free_study" unless I install the system lib
02:10:42Araqyeah something like that.
02:16:04ldlework Hrm, the rst .. include: directive isnt' working :(
02:16:47*apotheon_ is now known as apotheon
02:17:27*apotheon quit (Changing host)
02:17:27*apotheon joined #nim
02:23:47Araq.. include:: with two ::
02:24:03Araqand it does work, the stdlib uses it!
02:34:23*pregressive joined #nim
02:40:01*pregressive quit (Ping timeout: 255 seconds)
03:11:09ldleworkI have no idea why include doesn't work for me
03:12:35ldleworkah there we go
03:21:07*dthrvr quit (Ping timeout: 248 seconds)
03:21:42*dthrvr joined #nim
03:25:02*mog quit (Quit: im quiting!)
03:27:23*mog joined #nim
03:31:37ldleworkAraq: sweet, http://dadren.github.io/theindex.html
03:31:45ldleworkor rather, http://dadren.github.io/
04:07:59*apotheon quit (Ping timeout: 240 seconds)
04:12:52*lompik quit (Ping timeout: 248 seconds)
04:13:10*desophos_ joined #nim
04:14:49*desophos quit (Ping timeout: 244 seconds)
04:15:56*apotheon joined #nim
04:16:36*pilne quit (Quit: Quitting!)
04:52:47*lompik joined #nim
05:26:30*endragor joined #nim
05:48:11*yglukhov joined #nim
05:52:37*yglukhov quit (Ping timeout: 255 seconds)
05:57:14*cyraxjoe joined #nim
06:03:37*lompik quit (Ping timeout: 240 seconds)
06:04:20*lompik joined #nim
06:09:20VarriountAraq: Where is the type definition for an openarray? Or rather, what is it's structure?
06:14:20*darkf quit (Ping timeout: 250 seconds)
06:15:19*darkf joined #nim
06:17:13*darkf_ joined #nim
06:19:59*darkf quit (Ping timeout: 240 seconds)
06:20:20*darkf_ is now known as darkf
06:33:37*gokr joined #nim
06:53:51*Amun_Ra quit (Quit: WeeChat 1.0.1)
06:54:36*cyraxjoe quit (Quit: Farewell my friend... farewell)
07:10:39*cyraxjoe joined #nim
07:27:27endragorVarriount: it seems compiler expands openarray into two arguments: pointer and length of the array
07:39:54endragorAraq: why does NIM_INTBITS have to be defined as hardcoded constant instead of sizeof(void*)? nimbase.h then has an assert anyway that it is equal to sizeof(void*)
07:40:58endragor(sizeof(void*) * 8)
07:43:30*toaoMgeorge joined #nim
07:52:45*endragor quit (Remote host closed the connection)
07:55:08*Amun_Ra joined #nim
08:00:20*nande quit (Remote host closed the connection)
08:06:01*Amun_Ra quit (Quit: WeeChat 1.0.1)
08:06:29*Amun_Ra joined #nim
08:16:14*endragor joined #nim
08:23:22*toaoMgeorge quit (Read error: Connection reset by peer)
08:26:01*toaoMgeorge joined #nim
08:27:46Varriountendragor: Is it to ensure that the compiler throws an error when Nim disagrees with pointer size?
08:30:41endragorVarriount: the assert is there to ensure that, yes, but my question was why define NIM_INTBITS as a constant in the first place.
09:01:00*coffeepot joined #nim
09:13:13*Trustable joined #nim
09:13:54*cyraxjoe_ joined #nim
09:13:57*cyraxjoe_ quit (Remote host closed the connection)
09:15:24*cyraxjoe_ joined #nim
09:19:36*Guest40798 is now known as wuehlmaus
09:21:02*cyraxjoe quit (Quit: Farewell my friend... farewell)
09:21:06*cyraxjoe_ is now known as cyraxjoe
09:24:52*Demon_Fox quit (Quit: Leaving)
09:30:38gokrendragor: I suspect because using options to the compiler like ... --cpu:arm - Nim will decide "aha, then its 32 bits".
09:31:06endragoryeah, but so will C/C++ compiler for sizeof(void*)
09:31:14endragorwith specific --arch flag
09:32:18gokrBut... if NIM_INTBITS is set to what the C compiler thinks, then... that is not necessarily what I told the Nim compiler.
09:32:24gokrPerhaps I am missing something here.
09:33:10gokrI would however change the message you get - because... most of us have no clue what it means.
09:34:28gokrIf it said "Hint: You may need some more options for your C compiler so that it uses XX bits for pointers." that ... would probably be more enlightening.
09:37:19endragorit's always the same as what the C compiler thinks because of the assert. The code will not compile if C compiler thinks different.
09:48:28*jaco60 joined #nim
09:54:51gokrendragor: I may be daft, but if you define NIM_INTBITS to what the C compiler things (using sizeof) and then remove the obviously not needed assert - then... you are not at all checking anything.
09:56:46endragorwhy would you? Let's see what Araq says - perhaps we are not seeing something
09:57:57*desophos_ quit (Read error: Connection reset by peer)
10:00:56flyxbetter be safe than sorry? just assuming that the C compiler's sizeof(void*) always equals what Nim thinks it equals seems a bit bold
10:02:34Araqwhen sizeof(int) == 4: ... # Nim and the C compiler better agree on the size of an integer
10:12:06*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
10:22:53endragorAraq: not sure I understood the answer... The question is why have "#define NIM_BITS 64" and then "assert(NIM_INTBITS == sizeof(void*) * 8)" instead of just having "#define NIM_INTBITS (sizeof(void*) * 8)"
10:23:33Araqbecause that would make the entire check completely pointless
10:25:10endragorwell, yes, that's the point, isn't it?
10:25:26Araqwe need the check.
10:27:20endragorthat still sounds weird to me... are you talking about the check of NIM_INTBITS being equal to bits in a pointer or some other check?
10:28:39endragorsizeof(int) could return (NIM_INTBITS / 8) regardless of how NIM_INTBITS is defined
10:29:07Araqno it cannot
10:29:49Araqsizeof(int) is a constant that you can use in a when statement
10:32:41Araqwhat's the problem with the check anyway? why get rid of it? we used to have no such check but crashes instead
10:33:58*nthxw quit (Quit: leaving)
10:34:06endragorI was not trying to get rid of the check, check is not the origin here. The hardcoded number in every source file seemed weird to me, given that it is anyway checked for being equal to (sizeof(void *) * 8).
10:36:08*awsteele quit (Quit: My Mac has gone to sleep. ZZZzzz…)
10:43:32*darkf quit (Quit: Leaving)
10:59:58*PMunch joined #nim
11:08:54Araqwell it's generated code. nobody cares about "hardcoded" numbers in there.
11:34:36*toaoMgeorge quit (Ping timeout: 250 seconds)
11:39:29*jaco60 quit (Ping timeout: 240 seconds)
11:52:01*PMunch quit (Ping timeout: 240 seconds)
12:00:33*arnetheduck joined #nim
12:10:14*yglukhov joined #nim
12:47:38*dfan joined #nim
12:52:55*filcuc joined #nim
12:52:55*filcuc quit (Client Quit)
12:53:12*filcuc joined #nim
12:55:36*SShrike joined #nim
12:56:29*SShrike quit (Quit: SShrike)
13:09:34*AckZ quit ()
13:13:46*BitPuffin joined #nim
13:58:54*RGeisel joined #nim
14:03:29*RGeisel quit (Client Quit)
14:21:29vega_nskAraq, hi! Can you tell me please what's wrong with the deepCopy call in another thread when using standard gc? The example is here : http://forum.nim-lang.org/t/2052/1#12754
14:22:23*sepisoad joined #nim
14:23:07sepisoadhi, how to update local nim repo and build the new version withouth getting csources
14:23:33sepisoadi just did git pull (devel repo)
14:26:54vega_nsksepisoad: ./koch boot -d:release
14:27:08Araqvega_nsk: that code is so wrong on so many levels :P
14:27:25vega_nskAraq: Oh, no!
14:27:50vega_nskAraq: And for boehmgc too?
14:27:52sepisoadAraq, what to do then?
14:28:10Araqdunno, could be fine for Boehm
14:30:32vega_nskAraq: Is it wrong to use ``deepCopy`` for the refs from another thread
14:30:43*gokr quit (Quit: Leaving.)
14:31:03*PMunch joined #nim
14:34:24vega_nskAraq: I'm just trying to understand the Nim's memory model limitations, and I want to create somthing like an actors model as it was in scala
14:34:58Araqactors.nim exists
14:35:13Araqwe deprecated it because it was crap ;-)
14:35:56Araq1. you have converters from and to ptr with casts. in other words, I am not really willing to review your code.
14:36:28Araq2. you cannot use a LinkedList because that internally uses refs aka thread local objects
14:37:10Araqyou communication channel is created out of multiple heaps. cannot work.
14:38:00Araq3. the stdlib's Channel is easily more efficient than your solution.
14:38:43Araq4. you don't need to optimize the deepCopy to an ordinary assignment. the compiler does that for you. (iirc)
14:43:31vega_nskAraq: Thanks! What do you think if i add a PR with a ``peekMsg`` that returns the top message from the channel?
14:46:05*sepisoad_ joined #nim
14:49:03*sepisoad quit (Ping timeout: 240 seconds)
14:54:49*PMunch quit (Ping timeout: 240 seconds)
14:57:13*PMunch joined #nim
14:58:32Araqdon't we have that already?
15:03:05vega_nskAraq: No, ``peek`` returns the message count in the channel
15:03:41AraqtryRecv ?
15:04:45vega_nskAraq: ``peekMsg`` will optionally return the top message in the channel, but without removing it from the channel
15:05:16Araqinteresting. why is that necessary?
15:08:22*arnetheduck quit (Ping timeout: 255 seconds)
15:23:36*pregressive joined #nim
15:25:29vega_nskAraq: It's for something like a Java's aspect for an actor. We can do something without modifiyng an actor
15:29:22*Jesin quit (Quit: Leaving)
15:39:51Araqvega_nsk: fine with me then, but I prefer something that gets an int index
15:40:16Araq-1 would be the last entry in the channel, 0 the first
15:40:27Araqdefault value should be -1
16:03:46*jaco60 joined #nim
16:10:35*gokr joined #nim
16:10:36*gokr quit (Read error: Connection reset by peer)
16:10:50*gokr joined #nim
16:24:29*brson joined #nim
16:33:03*sepisoad_ quit (Ping timeout: 240 seconds)
16:35:24*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:36:20*coffeepot joined #nim
16:38:57*gokr quit (Quit: Leaving.)
16:47:52*dfan quit (Ping timeout: 250 seconds)
16:51:36*BitPuffin quit (Read error: Connection reset by peer)
16:53:38*BitPuffin joined #nim
16:56:22*apotheon quit (Read error: Connection reset by peer)
17:01:59*apotheon joined #nim
17:21:12*PMunch quit (Ping timeout: 244 seconds)
17:24:33*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
17:25:37*yglukhov quit (Ping timeout: 255 seconds)
17:41:13vega_nskAraq: Got it.
17:43:41dom96def-: GSoC application going ok?
17:44:14*dfan joined #nim
17:53:12*dfan quit (Ping timeout: 276 seconds)
18:07:39*filcuc quit (Read error: Connection reset by peer)
18:10:47*dfan joined #nim
18:12:47*yglukhov joined #nim
18:14:55*endragor_ joined #nim
18:17:03*yglukhov quit (Ping timeout: 240 seconds)
18:18:32*endragor quit (Ping timeout: 244 seconds)
18:19:18*endragor_ quit (Ping timeout: 250 seconds)
18:20:01*pilne joined #nim
18:24:16*yglukhov joined #nim
18:24:49*brson quit (Ping timeout: 240 seconds)
18:26:04*dfan quit (Ping timeout: 240 seconds)
18:29:12*Demon_Fox joined #nim
18:29:50*endragor joined #nim
18:34:21*endragor quit (Remote host closed the connection)
18:45:17*gokr joined #nim
18:54:33*nsf quit (Quit: WeeChat 1.4)
18:57:08dom96The GSoC website is really nice this year.
18:58:40*dfan joined #nim
19:00:26*brson joined #nim
19:06:52Araqis it too late to change the proposals?
19:09:57dom96Araq: the ideas?
19:10:04dom96Nope.
19:10:16dom96It doesn't look like def- had a chance to edit it much
19:10:29dom96I hope he submitted the application
19:19:30*Demon_Fox quit (Quit: Leaving)
19:19:31def-dom96: Yes, I did. We can still do changes to the proposals until tomorrow 19:00 UTC officially
19:19:36*Jesin joined #nim
19:20:29dom96def-: ahh awesome.
19:20:39dom96def-: I was thinking of adding some Nimble tasks
19:21:03dom96and I need to add my name under some of the existing tasks I guess
19:21:06def-dom96: I also invited you and Araq as organization admins, I think Araq accepted, you didn't
19:21:24dom96def-: which email did you use? (please pm it)
19:22:19dom96hrm, yeah, the @picheta.me email is a bit iffy sometimes.
19:22:42dom96Got it now, thanks :)
19:23:50dom96Wish Google stopped putting Material design everywhere.
19:26:39*toaoMgeorge joined #nim
19:38:08dom96def-: hope you don't mind if I edit some of your answers in the application?
19:38:33def-dom96: sure, go ahead
19:39:41*nsf joined #nim
19:53:16*pregressive quit (Read error: Connection reset by peer)
19:53:23*pregressive joined #nim
19:53:26dom96def-: I think Google will definitely be looking at something more for the "How will you keep mentors engaged with their students?" question
19:53:33dom96*looking for
19:53:42dom96Any ideas what we could do?
19:53:45dom96Araq: ^
20:01:56dom96I updated it
20:02:18dom96(Basically wrote that we will have a "meeting of mentors" every week, hope that's alright with you guys)
20:05:12dom96okay, please check my changes and let me know what you think.
20:05:58Araqsure. the meetings are sponsored by Google, right?
20:07:03*toaoMgeorge quit (Ping timeout: 244 seconds)
20:07:49dom96Araq: Maybe :P
20:08:16dom96def-: Did you get zahary's ok for being a mentor? His name is still on some projects.
20:09:01def-dom96: nope, we should probably ask him or remove his name (didn't see him around)
20:09:16dom96Araq: Got any way to contact zahary?
20:09:57Araqhmmm I think I got his confirmation via skype
20:10:03Araqlet me check
20:11:25*regtools_ joined #nim
20:12:02*CcxCZ quit (Ping timeout: 255 seconds)
20:12:03*regtools quit (Ping timeout: 255 seconds)
20:12:05*mountaingoat quit (Ping timeout: 255 seconds)
20:12:08*allan0 quit (Ping timeout: 255 seconds)
20:12:08*pigmej quit (Ping timeout: 255 seconds)
20:13:22*toaoMgeorge joined #nim
20:13:56*allan0 joined #nim
20:14:27*mountaingoat joined #nim
20:14:34*pigmej joined #nim
20:15:13*CcxCZ joined #nim
20:15:19dom96Let's hope they select more orgs this time around.
20:34:30*brson quit (Ping timeout: 250 seconds)
20:35:40*pregressive quit (Remote host closed the connection)
20:35:55*pregressive joined #nim
20:41:04*Ven joined #nim
20:43:15*BitPuffin quit (Ping timeout: 248 seconds)
20:43:53*awsteele joined #nim
20:48:02*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:49:02*dfan quit (Quit: ERC (IRC client for Emacs 24.5.1))
20:49:37*nsf quit (Quit: WeeChat 1.4)
21:00:44*yglukhov quit (Remote host closed the connection)
21:01:05*yglukhov joined #nim
21:01:10*Ven joined #nim
21:06:25*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:06:36dom96Araq: did he confirm?
21:06:52Araqhe is still away
21:08:10*Ven joined #nim
21:14:28*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:27:06*Jesin quit (Quit: Leaving)
21:30:46*brson joined #nim
21:34:38*yglukhov quit (Remote host closed the connection)
21:36:40*Ven joined #nim
21:38:46*yglukhov joined #nim
21:49:17*darkf joined #nim
21:52:53*yglukhov quit (Remote host closed the connection)
21:53:18*yglukhov joined #nim
21:56:14*Matthias247 joined #nim
22:04:04*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
22:04:21*Ven joined #nim
22:09:07*Ven quit (Ping timeout: 248 seconds)
22:10:58*Demon_Fox joined #nim
22:14:39*nsf joined #nim
22:15:09*toaoMgeorge quit (Quit: Bye)
22:15:26*toaoMgeorge joined #nim
22:19:29*toaoMgeorge quit (Ping timeout: 240 seconds)
22:20:05*toaoMgeorge joined #nim
22:24:33*toaoMgeorge quit (Ping timeout: 240 seconds)
22:25:05*toaoMgeorge joined #nim
22:25:28*Kingsquee joined #nim
22:48:02*pregressive quit (Read error: Connection reset by peer)
22:48:33*pregressive joined #nim
22:55:38*pregressive quit (Remote host closed the connection)
22:59:22Araqdom96: he confirmed he'll be a mentor
22:59:46dom96Araq: great
23:02:08*yglukhov_ joined #nim
23:02:08*yglukhov quit (Read error: Connection reset by peer)
23:06:10*Trustable quit (Quit: Leaving)
23:13:12ldleworkCan we write C++ bindings?
23:13:49ldleworkIs a binding to this, http://neogfx.org/ possible?
23:27:41*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
23:29:25*yglukhov_ quit (Remote host closed the connection)
23:30:49*Jesin joined #nim
23:33:01Araqldlework: yup. c2nim can parse C++ too.
23:33:18ldleworkneat
23:35:52*lokien_ joined #nim
23:45:31*nsf quit (Quit: WeeChat 1.4)
23:50:04*PMunch joined #nim
23:50:43*yglukhov joined #nim
23:57:13*toaoMgeorge quit (Ping timeout: 240 seconds)
23:57:34*toaoMgeorge joined #nim