Re: std.containers - WAT

2012-03-28 Thread Jonathan M Davis
On Wednesday, March 28, 2012 08:37:30 Andrei Alexandrescu wrote: > On 3/27/12 10:58 PM, Alex Rønne Petersen wrote: > >> I think one more thing that needs some changing is the usability of > >> the documentation, right now you get a dense list at the top, in > >> mostly-alphabetical order (I think i

Re: Documentation Layout

2012-03-28 Thread Jakob Ovrum
On Thursday, 29 March 2012 at 05:41:30 UTC, James Miller wrote: On 29 March 2012 18:26, Jakob Ovrum wrote: There is a simple project called cuteDoc (name comes from the old candyDoc theme) which has a demo using the Phobos documentation:    http://robik.github.com/phobos/ Project home page:

Re: Documentation Layout

2012-03-28 Thread James Miller
On 29 March 2012 18:26, Jakob Ovrum wrote: > There is a simple project called cuteDoc (name comes from the old candyDoc > theme) which has a demo using the Phobos documentation: > >    http://robik.github.com/phobos/ > > Project home page: > >    https://github.com/robik/cuteDoc It looks ok, stil

Re: Documentation Layout

2012-03-28 Thread Jakob Ovrum
On Wednesday, 28 March 2012 at 06:20:57 UTC, James Miller wrote: In another thread (http://forum.dlang.org/thread/CAMfGmZsNX3GsOFVyUaCX79E4H8eTBXqDmUJtm41JSzRNtME=r...@mail.gmail.com) I raged about std.container's documentation, then Teoh pointed out that a lot of Phobos documentation needs imp

Re: Documentation Layout

2012-03-28 Thread H. S. Teoh
On Thu, Mar 29, 2012 at 02:52:17PM +1300, James Miller wrote: [...] > Exactly my point. There is a line between "code must be self > documenting" and "I need to read the code to understand what this > does". Self documenting code is more about removing the cognitive > stress of reading code. Actual

Re: Annoyances with traits

2012-03-28 Thread RivenTheMage
On Wednesday, 28 March 2012 at 22:23:51 UTC, Manu wrote: Although I'm not sure why you distinguish 'metainfo' from 'meta'? To me, it's consistent with .typeinfo and .classinfo properties.

Re: Documentation Layout

2012-03-28 Thread James Miller
On 29 March 2012 13:58, Nathan M. Swan wrote: > On Wednesday, 28 March 2012 at 22:43:19 UTC, foobar wrote: >> >> Categories - worst idea ever. >> >> What's better: >> int a; // this is size >> OR >> int size; >> >> Same thing applies here - code MUST be self documenting as much as >> possible. > >

Re: Documentation Layout

2012-03-28 Thread Nathan M. Swan
On Wednesday, 28 March 2012 at 22:43:19 UTC, foobar wrote: Categories - worst idea ever. What's better: int a; // this is size OR int size; Same thing applies here - code MUST be self documenting as much as possible. But categories are still useful, e.g., when you want a function in std.alg

Re: Annoyances with traits

2012-03-28 Thread F i L
On Wednesday, 28 March 2012 at 17:01:50 UTC, RivenTheMage wrote: My proposal: http://www.digitalmars.com/d/archives/digitalmars/D/Yet_another_compile-time_reflection_revisited_proposal_150309.html I like this idea more than the one I purposed.

Re: Documentation Layout

2012-03-28 Thread Brad Anderson
On Wed, Mar 28, 2012 at 6:32 PM, Matt Peterson wrote: > On Wednesday, 28 March 2012 at 07:00:58 UTC, Brad Anderson wrote: > >> [...] >> >> I've been trying to generate parsable ddoc output for use in an >> autocomplete for the search box (symbol names + short documentation >> excerpts for context

Re: Documentation Layout

2012-03-28 Thread Matt Peterson
On Wednesday, 28 March 2012 at 07:00:58 UTC, Brad Anderson wrote: [...] I've been trying to generate parsable ddoc output for use in an autocomplete for the search box (symbol names + short documentation excerpts for context). I had some luck but couldn't strip it down to the bare minimum info

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Kevin Cox
On Wed, Mar 28, 2012 at 7:35 PM, Jesse Phillips wrote: > Seems the old timers are less representative now (142 votes). > > Nice poll, thanks. > I was factoring out the different number of years in each category. I'm gonna try to create a bar graph with normalized years. 1 - == 2

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Jesse Phillips
On Wednesday, 28 March 2012 at 20:57:25 UTC, Kevin Cox wrote: Looks like a fairly even spread so far, (27 votes). The higher bracket is low, but it is also 6-10 years, D hasn't been around much longer than that <.< -- James Miller I like the spread. Most new users and a gradual decline u

Re: Documentation Layout

2012-03-28 Thread Adam D. Ruppe
On Wednesday, 28 March 2012 at 22:43:19 UTC, foobar wrote: Categories - worst idea ever. I was just trying to copy what std.algorithm does, which is ok by me. Though, my implementation allows multiple categories; it is more of a tagging system (which is how my search program works too, it puts

Re: Documentation Layout

2012-03-28 Thread foobar
On Wednesday, 28 March 2012 at 16:40:19 UTC, Nathan M. Swan wrote: On Wednesday, 28 March 2012 at 14:47:53 UTC, Adam D. Ruppe wrote: On Wednesday, 28 March 2012 at 06:20:57 UTC, James Miller wrote: 1. The "Jump To" index. I did a little program called improveddoc that builds nicer tables: ht

Re: Annoyances with traits

2012-03-28 Thread Manu
On 28 March 2012 20:01, RivenTheMage wrote: > My proposal: > http://www.digitalmars.com/d/**archives/digitalmars/D/Yet_** > another_compile-time_**reflection_revisited_proposal_**150309.html

Re: Poll of the week - How long have you been in the D world?

2012-03-28 Thread Kevin Cox
> > Looks like a fairly even spread so far, (27 votes). The higher bracket > is low, but it is also 6-10 years, D hasn't been around much longer > than that <.< > > -- > James Miller > I like the spread. Most new users and a gradual decline until we get to 6+ where a group of people are sitting.

Re: How to use D for cross platform development?

2012-03-28 Thread Nick Sabalausky
"H. S. Teoh" wrote in message news:mailman.1199.1332962802.4860.digitalmar...@puremagic.com... > > ( [...] ( [...] ( [...] (Gah, I'm starting to Lisp, better stop now! > lol :)

Re: New hash

2012-03-28 Thread H. S. Teoh
On Wed, Mar 28, 2012 at 09:44:59PM +0200, Andrej Mitrovic wrote: > On 3/24/12, Andrej Mitrovic wrote: > > snip > > I've noticed this: > > // FIXME: this shouldn't be duplicated for every template instance. > static immutable size_t[] prime_list = [ > > I think you can make this an enum. You're

Re: New hash

2012-03-28 Thread Andrej Mitrovic
On 3/24/12, Andrej Mitrovic wrote: > snip I've noticed this: // FIXME: this shouldn't be duplicated for every template instance. static immutable size_t[] prime_list = [ I think you can make this an enum.

Re: How to use D for cross platform development?

2012-03-28 Thread H. S. Teoh
On Wed, Mar 28, 2012 at 03:13:01PM -0400, Nick Sabalausky wrote: [...] > Some basic things are tied into druntme/phobos. The GC is definitely > one of them. AIUI, Arrays and AAs have been moving to a druntime-based > implementation, and the Object class is implemented there. > > Technically, you c

Re: How to use D for cross platform development?

2012-03-28 Thread Nick Sabalausky
"Iain Buclaw" wrote in message news:mailman.1198.1332955673.4860.digitalmar...@puremagic.com... > On 28 March 2012 16:31, Bennie Copeland wrote: >> On Monday, 26 March 2012 at 10:46:39 UTC, Chris W. wrote: >>> >>> I am using D for cross platform development. I recently implemented C >>> wrappers

Re: Documentation Layout

2012-03-28 Thread Jacob Carlborg
On 2012-03-28 19:34, Ary Manzana wrote: On 3/28/12 2:20 PM, James Miller wrote: Ok, so I'm going to say this: I like the Java documentation. There, I said it. I like it too. http://downloads.dsource.org/projects/descent/ddoc/phobos/ http://downloads.dsource.org/projects/descent/ddoc/tango/ A

Re: How to use D for cross platform development?

2012-03-28 Thread Nick Sabalausky
"Bennie Copeland" wrote in message news:mizfgcnxjpbfbclcs...@forum.dlang.org... > On Sunday, 25 March 2012 at 16:20:51 UTC, Alex Rønne Petersen wrote: >> >> About ARM support: That's not strictly true. D on ARM should work fine at >> this point in time if you build druntime/phobos in GDC >> wit

Re: How to use D for cross platform development?

2012-03-28 Thread Jacob Carlborg
On 2012-03-28 17:23, Bennie Copeland wrote: I'm still new at low level programming topics like ABI's etc, so I'll betray my ignorance. Is the druntime only required for providing an interface between the executable and OS resources like IO, or is it inseparable from the language? For example, if

Re: Documentation Layout

2012-03-28 Thread Ary Manzana
On 3/28/12 2:20 PM, James Miller wrote: Ok, so I'm going to say this: I like the Java documentation. There, I said it. I like it too. http://downloads.dsource.org/projects/descent/ddoc/phobos/ http://downloads.dsource.org/projects/descent/ddoc/tango/ And cross-references are not hard at all.

Re: How to use D for cross platform development?

2012-03-28 Thread Iain Buclaw
On 28 March 2012 16:31, Bennie Copeland wrote: > On Monday, 26 March 2012 at 10:46:39 UTC, Chris W. wrote: >> >> I am using D for cross platform development. I recently implemented C >> wrappers for D. It works fine (Mac OS X). I could also create a Python >> module that consists of both D and C c

Re: Annoyances with traits

2012-03-28 Thread RivenTheMage
My proposal: http://www.digitalmars.com/d/archives/digitalmars/D/Yet_another_compile-time_reflection_revisited_proposal_150309.html

Re: Documentation Layout

2012-03-28 Thread Nathan M. Swan
On Wednesday, 28 March 2012 at 14:47:53 UTC, Adam D. Ruppe wrote: On Wednesday, 28 March 2012 at 06:20:57 UTC, James Miller wrote: 1. The "Jump To" index. I did a little program called improveddoc that builds nicer tables: http://arsdnet.net/d-web-site/improveddoc.d makes: http://arsdnet.ne

Re: How to use D for cross platform development?

2012-03-28 Thread Bennie Copeland
On Monday, 26 March 2012 at 10:46:39 UTC, Chris W. wrote: I am using D for cross platform development. I recently implemented C wrappers for D. It works fine (Mac OS X). I could also create a Python module that consists of both D and C code (the C code is really just the wrapper for the module'

Re: How to use D for cross platform development?

2012-03-28 Thread Bennie Copeland
On Sunday, 25 March 2012 at 16:20:51 UTC, Alex Rønne Petersen wrote: About ARM support: That's not strictly true. D on ARM should work fine at this point in time if you build druntime/phobos in GDC with -fno-section-anchors (there is even some experimental Android support). But indeed, no iOS

git dmd broken for posix?

2012-03-28 Thread Trass3r
The autotester has been showing a broken dmd testsuite for a while: http://d.puremagic.com/test-results/ Any bugzilla entry/pull request I may have missed?

Re: Documentation Layout

2012-03-28 Thread Adam D. Ruppe
On Wednesday, 28 March 2012 at 06:20:57 UTC, James Miller wrote: 1. The "Jump To" index. I did a little program called improveddoc that builds nicer tables: http://arsdnet.net/d-web-site/improveddoc.d makes: http://arsdnet.net/d-web-site/std_stdio.html It does post-processing on the dom to

Re: std.containers - WAT

2012-03-28 Thread Andrei Alexandrescu
On 3/27/12 10:58 PM, Alex Rønne Petersen wrote: I think one more thing that needs some changing is the usability of the documentation, right now you get a dense list at the top, in mostly-alphabetical order (I think it puts caps first, then lower case) and then you get a massive list of classes a

Re: Proposal: user defined attributes

2012-03-28 Thread Jacob Carlborg
On 2012-03-28 03:41, Martin Nowak wrote: Just showing this because it never comes up that one can already implement runtime reflection using ModuleInfo.xgetMembers and TypeInfo_Struct.xgetMembers. module a; import std.stdio, std.variant; void main() { foreach(m; ModuleInfo) { if (m.name != "b"

Re: Annoyances with traits

2012-03-28 Thread Johannes Pfau
Am Wed, 28 Mar 2012 06:29:30 +0200 schrieb "F i L" : > I find myself using __traits(hasMember, T, "member") a lot. > It's really basic feature of meta-programming. > We already had this discussion 3 years ago, there's even a bug report: http://d.puremagic.com/issues/show_bug.cgi?id=3702 http://

Re: Annoyances with traits

2012-03-28 Thread Manu
On 28 March 2012 07:29, F i L wrote: > I find myself using __traits(hasMember, T, "member") a lot. > It's really basic feature of meta-programming. > > I'm not a fan of the "__usedByCompiler" syntax, but that's a > whole different discussion. __traits() is fine (besides the fact > that first-argu

Re: Array ops give sharing violation under Windows 7 64 bit?

2012-03-28 Thread Don
On 27.03.2012 00:42, Andrej Mitrovic wrote: On 3/26/12, Walter Bright wrote: On 3/25/2012 2:50 PM, Kagamin wrote: Microsoft has antivirus bundled with windows. Go to security center and see whether Windows Defender is working. Well, I'll be hornswoggled. That did the trick! I really don't

Re: std.containers - WAT

2012-03-28 Thread Brad Anderson
On Tue, Mar 27, 2012 at 10:00 PM, H. S. Teoh wrote: > On Wed, Mar 28, 2012 at 02:46:19PM +1300, James Miller wrote: > > In helping someone in D.learn, I ended up looking through the > > documentation and code for std.containers. > > > > There is a lot wrong with whats going on there right now. >

Re: Documentation Layout

2012-03-28 Thread Brad Anderson
On Wed, Mar 28, 2012 at 12:20 AM, James Miller wrote: > In another thread > ( > http://forum.dlang.org/thread/CAMfGmZsNX3GsOFVyUaCX79E4H8eTBXqDmUJtm41JSzRNtME=r...@mail.gmail.com > ) > I raged about std.container's documentation, then Teoh pointed out > that a lot of Phobos documentation needs im