Re: Unencumbered V0.1.2: Write Cucumber step definitions in D

2014-04-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 23/04/14 19:17, Atila Neves wrote: Thanks. :) The examples directory (which actually only contains one example) shows what is the bare minimum needed. You need: 1. A file with the .wire extension with the host and port for cucumber to connect to in features/step_definitions (just like the

Re: Unencumbered V0.1.2: Write Cucumber step definitions in D

2014-04-24 Thread Atila Neves via Digitalmars-d-announce
Aha, their they are. I didn't noticed the step definitions before. Especially confusing since you do have a step_definitions directory. I think I had to create that directory to put the .wire file in there. I can't remember. Cool. Have you considered embedding Ruby in some executable and

Re: Unencumbered V0.1.2: Write Cucumber step definitions in D

2014-04-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 24/04/14 09:19, Atila Neves wrote: I did, yeah, that's why I asked that question recently about calling D from Ruby. Right, that was you. I also thought of using Thrift and played about with it but in the end decided that the simplest option is to just use the wire protocol. It even

Re: Unencumbered V0.1.2: Write Cucumber step definitions in D

2014-04-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-04-23 15:24, Atila Neves wrote: Like testing with Cucumber? Wish you could call native D code with it? Now you can! http://code.dlang.org/packages/unencumbered https://github.com/atilaneves/unencumbered I especially like registering functions that take the parameters with the types

Re: Unencumbered V0.1.2: Write Cucumber step definitions in D

2014-04-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 2014-04-23 15:24, Atila Neves wrote: Like testing with Cucumber? Wish you could call native D code with it? Now you can! http://code.dlang.org/packages/unencumbered https://github.com/atilaneves/unencumbered I especially like registering functions that take the parameters with the types

Re: DScanner is ready for use

2014-04-24 Thread Brian Schott via Digitalmars-d-announce
On 04/22/2014 07:08 PM, bearophile wrote: This code gives four problems to Dscanner: void main() { auto x = float(5); This is not valid. DMD and the grammar spec both do not allow this. auto r = 1. + 2; Fixed. (https://issues.dlang.org/show_bug.cgi?id=12623) int items[5]; I

Re: DScanner is ready for use

2014-04-24 Thread bearophile via Digitalmars-d-announce
Brian Schott: This is not valid. DMD and the grammar spec both do not allow this. This was changed weeks ago. Now D accepts that code. int items[5]; I don't support C-style declarations. DMD doesn't really support them either. (https://issues.dlang.org/show_bug.cgi?id=953) Then I

Re: DScanner is ready for use

2014-04-24 Thread Brian Schott via Digitalmars-d-announce
On Thursday, 24 April 2014 at 21:36:24 UTC, bearophile wrote: This was changed weeks ago. Now D accepts that code. You want tooling to support language features that aren't released? Then I suggest DScanner to support the half-C-declarations, because D compilers digests them just fine and

Re: DScanner is ready for use

2014-04-24 Thread Dicebot via Digitalmars-d-announce
On Thursday, 24 April 2014 at 22:19:29 UTC, Brian Schott wrote: Then I suggest DScanner to support the half-C-declarations, because D compilers digests them just fine and they are very common in D code you will find in the wild. A code analyzer has to accept the real world code people write,

Re: DScanner is ready for use

2014-04-24 Thread bearophile via Digitalmars-d-announce
Brian Schott: You want tooling to support language features that aren't released? I think it's nice for a language tool to try to follow closely the improvements in the language. But you are right, the update rhythms of DScanner are left to you. Several people have indicated that they

Re: DScanner is ready for use

2014-04-24 Thread Jos van Uden via Digitalmars-d-announce
On 28-7-2013 0:27, Brian Schott wrote: DScanner is a tool for analyzing D source code. It has the following features: * Prints out a complete AST of a source file in XML format. * Syntax checks code and prints warning/error messages * Prints a listing of modules imported by a source file *

Re: DIP60: @nogc attribute

2014-04-24 Thread Jacob Carlborg via Digitalmars-d
On 23/04/14 19:12, Walter Bright wrote: Too many double negatives for me to be sure what you're saying. But it is clear to me that with Michel's experience with ARC in iOS combined with Manu's enthusiasm for it suggests that they are the right team to come up with a workable proposal, where

Re: CT info about class' children

2014-04-24 Thread Jacob Carlborg via Digitalmars-d
On 24/04/14 00:29, Martin Nowak wrote: Looks fairly interesting, because it partly solves the issue to allow custom rtinfo. I don't like this solution for custom RTInfo. It requires you to change your type. I would rather modify the compiler to do something like this: * Add a UDA to

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Rainer Schuetze via Digitalmars-d
On 23.04.2014 20:35, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and committing the starting API. So, is there something I’m missing? Am I overlooking

Deprecating a module

2014-04-24 Thread Jon Giddy via Digitalmars-d
Is there a good way to deprecate a module? The deprecated attribute only applies to declarations, so doesn't appear to work for the module header. As a particular example, to solve problems with mismatched module names and pathnames, I moved some files to new locations. To support anyone

Re: Compile-time memory footprint of std.algorithm

2014-04-24 Thread Jacob Carlborg via Digitalmars-d
On 23/04/14 08:39, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Isn't that bad advertisement for the GC in D? Or has it something to do with DMD not being designed with a GC in mind? -- /Jacob Carlborg

Re: Poll - How long have you been in D?

2014-04-24 Thread bytedruid via Digitalmars-d
On Monday, 7 April 2014 at 02:34:59 UTC, Kapps wrote: These results are a bit disappointing. Ideally you'd see a massive bias towards new users, but we see the opposite :( Perhaps this poll isn't public enough? On reddit and stuff? I don't imagine many new users read these forums frequently,

Re: Redesign of dlang.org

2014-04-24 Thread Jacob Carlborg via Digitalmars-d
On 24/04/14 00:12, Nick Sabalausky wrote: SCSS has always been more interesting to me than SASS, but yea, this seems to pretty much be an independently-developed equivalent to SCSS, which is pretty cool. Technically, Sass is the name of the language. It provides two syntaxes, SASS and SCSS.

Re: Redesign of dlang.org

2014-04-24 Thread Jacob Carlborg via Digitalmars-d
On 24/04/14 00:08, Nick Sabalausky wrote: They don't work. But...maybe they're only intended to be single-page-only examples? (Now that I think about it...) Yes. Bootstrap won't touch your links with JavaScript, unless you tell it to. If so, then I must have misunderstood the examples.

Re: Compile-time memory footprint of std.algorithm

2014-04-24 Thread Iain Buclaw via Digitalmars-d
On 23 April 2014 22:24, Iain Buclaw ibuc...@gdcproject.org wrote: On 23 April 2014 21:55, Nordlöw digitalmars-d@puremagic.com wrote: Maybe we should investigate where the memory is going first before planning our attack :-) I agree. Tool anyone? I'm using valgrind - may take a while to

Re: CT info about class' children

2014-04-24 Thread Yuriy via Digitalmars-d
On Thursday, 24 April 2014 at 06:08:11 UTC, Jacob Carlborg wrote: On 24/04/14 00:29, Martin Nowak wrote: Looks fairly interesting, because it partly solves the issue to allow custom rtinfo. I don't like this solution for custom RTInfo. It requires you to change your type. I would rather

python vs d

2014-04-24 Thread Suliman via Digitalmars-d
I am following discussions about GC and some other 'critical' improves in D language for a long time. I see a lot of arguments and heaps of code, that often hard to understand (for example Templates) even more complicated to use it. I like D, but more and more I am playing with Python, and

Re: CT info about class' children

2014-04-24 Thread Yuriy via Digitalmars-d
I guess this could be done without modifying the compiler, just extend RTInfo(T) to support this UDA, but there's a problem with attributes. They don't propagate to class' children, thus they can't solve the main question of this topic. But as an additional feature such UDA might be useful.

Re: Compile-time memory footprint of std.algorithm

2014-04-24 Thread Kagamin via Digitalmars-d
On Wednesday, 23 April 2014 at 08:12:42 UTC, Walter Bright wrote: tl;dr: allocation is a critical speed issue with dmd. Using the bump-pointer method is very fast, and it matters. Alternatively we could replace heap on size threshold.

Re: CT info about class' children

2014-04-24 Thread Yuriy via Digitalmars-d
Also, this whole thing is not only about RT registration, it may be used differently. The next usage that comes to mind after RT is validating proper inheritance. E.g. Some root class wants it's subclasses to always have a default ctor available, which again can be verified in CT.

Re: python vs d

2014-04-24 Thread bytedruid via Digitalmars-d
On Thursday, 24 April 2014 at 06:38:42 UTC, Suliman wrote: I am following discussions about GC and some other 'critical' improves in D language for a long time. I see a lot of arguments and heaps of code, that often hard to understand (for example Templates) even more complicated to use it.

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Mike via Digitalmars-d
On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and committing the starting API. So, is there something I’m missing? Am I overlooking the obvious? Is there a more practical

Re: Redesign of dlang.org

2014-04-24 Thread via Digitalmars-d
On Wednesday, 23 April 2014 at 23:25:43 UTC, Andrei Alexandrescu wrote: 1. you don't use a monofont and have to figure out what cpl is in em or rem. I'm talking averages. It varies with the font used. :-P And if you use a webfont the rendering will be less legible than when you use a

Re: Poll - How long have you been in D?

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/24/2014 2:17 AM, bytedruid wrote: (Side note: I entered a fake email address, is that a no-no one this list?) It's fine, many of us do that. Look at mine ;)

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
(Argh! Accidentally emailed this to digitalmars-d@puremagic.com twice! Actually posting to NG now...) On 4/23/2014 6:48 PM, H. S. Teoh via Digitalmars-d wrote: until sometime in the last few years I got so sick of JS eating up CPU, memory, causing needless browser slowdowns, popping up

Re: python vs d

2014-04-24 Thread bearophile via Digitalmars-d
Suliman: It would be very nice to add to dlang wiki comparison woth Python, to show that D code can be easy as Python. In the Rosettacode site there are around one thousand Python-D comparisons. Bye, bearophile

Re: python vs d

2014-04-24 Thread Suliman via Digitalmars-d
Most of my D code looks nothing like what you see posted on these lists. I likely don't write code in the idiomatic D way, but it still works and is a lot easier on the eyes than my C++ code. I think improving the library documentation and some parts of the library (ie. XML, JSON a few

Re: Redesign of dlang.org

2014-04-24 Thread Martin Nowak via Digitalmars-d
On Wednesday, 23 April 2014 at 23:17:02 UTC, Adam D. Ruppe wrote: On Wednesday, 23 April 2014 at 21:55:48 UTC, John Colvin wrote: If it could be put on code.dlang.org that would be awesome. http://code.dlang.org/packages/cssexpand Nice, thanks a lot. How much effort would it be to turn this

Re: Redesign of dlang.org

2014-04-24 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 6:19 PM, H. S. Teoh via Digitalmars-d wrote: On Wed, Apr 23, 2014 at 05:32:00PM -0400, Nick Sabalausky via Digitalmars-d wrote: I certainly won't disagree that small fonts can be hard to read, but on the other end, I've seen a lot of newer websites with gigantic fonts, and I find

Re: python vs d

2014-04-24 Thread Rikki Cattermole via Digitalmars-d
On Thursday, 24 April 2014 at 08:05:53 UTC, Suliman wrote: Most of my D code looks nothing like what you see posted on these lists. I likely don't write code in the idiomatic D way, but it still works and is a lot easier on the eyes than my C++ code. I think improving the library

Re: python vs d

2014-04-24 Thread Craig Dillabaugh via Digitalmars-d
On Thursday, 24 April 2014 at 06:38:42 UTC, Suliman wrote: I am following discussions about GC and some other 'critical' improves in D language for a long time. I see a lot of arguments and heaps of code, that often hard to understand (for example Templates) even more complicated to use it.

Re: Redesign of dlang.org

2014-04-24 Thread Dicebot via Digitalmars-d
On Thursday, 24 April 2014 at 08:06:18 UTC, Alix Pexton wrote: On 23/04/2014 5:28 PM, Dicebot wrote: Gosh now I finally know what researches to blame for my eyes bleeding upon most web site restylings (Facebook *caugh-caugh*). Are you sure that your eyes aren't bleeding because your fonts

Re: Redesign of dlang.org

2014-04-24 Thread Alix Pexton via Digitalmars-d
On 23/04/2014 5:28 PM, Dicebot wrote: Gosh now I finally know what researches to blame for my eyes bleeding upon most web site restylings (Facebook *caugh-caugh*). Are you sure that your eyes aren't bleeding because your fonts are too small? A...

Re: CT info about class' children

2014-04-24 Thread Martin Nowak via Digitalmars-d
On Thursday, 24 April 2014 at 06:08:11 UTC, Jacob Carlborg wrote: On 24/04/14 00:29, Martin Nowak wrote: Looks fairly interesting, because it partly solves the issue to allow custom rtinfo. I don't like this solution for custom RTInfo. It requires you to change your type. I would rather

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Andrej Mitrovic via Digitalmars-d
On 4/23/14, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: It might help if you put forth a tentative proposal, that the D goons can then proceed to destroy... I mean, critically evaluate. Btw guys, what's stopping us from simply porting over Leandro's CDGC to D2? I've looked at

Re: Deprecating a module

2014-04-24 Thread Andrej Mitrovic via Digitalmars-d
On 4/24/14, Jon Giddy via Digitalmars-d digitalmars-d@puremagic.com wrote: Is there a good way to deprecate a module? It's a filed enhancement: https://issues.dlang.org/show_bug.cgi?id=12567 As a current workaround you can use a deprecated block: - module bar; deprecated: void test() { }

Re: Deprecating a module

2014-04-24 Thread Andrej Mitrovic via Digitalmars-d
On 4/24/14, Jon Giddy via Digitalmars-d digitalmars-d@puremagic.com wrote: Is there a good way to deprecate a module? Also, please ask these types of questions in D.learn in the future. Thanks!

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Kagamin via Digitalmars-d
On Wednesday, 23 April 2014 at 18:35:26 UTC, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and committing the starting API. So, is there something I’m

Re: Deprecating a module

2014-04-24 Thread Dicebot via Digitalmars-d
On Thursday, 24 April 2014 at 06:13:31 UTC, Jon Giddy wrote: The file uses a static module constructor to display a run-time warning. Since the file simply imports the new module, there isn't anywhere to hang a deprecated attribute, to trigger a compile-time warning/error. I don't know of a

Re: Poll - How long have you been in D?

2014-04-24 Thread Kagamin via Digitalmars-d
On Thursday, 24 April 2014 at 06:18:01 UTC, bytedruid wrote: I'd say D is looking pretty good, now if it just hand a standard GUI library... There were reports on an ongoing work on Qt bindings, you might want to help with that. On Thursday, 24 April 2014 at 09:06:13 UTC, Nick Sabalausky

Re: Compile-time memory footprint of std.algorithm

2014-04-24 Thread Ary Borenszweig via Digitalmars-d
On 4/24/14, 3:16 AM, Jacob Carlborg wrote: On 23/04/14 08:39, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Isn't that bad advertisement for the GC in D? Or has it something to do with DMD not being designed with a GC in mind? dmd

Re: Static Analysis Tooling / Effective D

2014-04-24 Thread Artur Skawina via Digitalmars-d
On 04/24/14 04:56, Marco Leise via Digitalmars-d wrote: But »1 size_t« doesn't always yield an int result! Compare to It does. That expression *always* yields an int [1]. Assigning the result to a wider type does not affect the value (the overflow has already happened by then). size_t x = 1

Re: Redesign of dlang.org

2014-04-24 Thread via Digitalmars-d
On Thursday, 24 April 2014 at 08:58:13 UTC, Nick Sabalausky wrote: I agree. Unfortunately though, browsers haven't always has reasonable defaults, so people had to work around, so now it's all pretty much screwed. Maybe what we need is a CSS for sane-size-defaults: on; which would provide a

Re: Do non-member functions improve encapsulation in D?

2014-04-24 Thread Nick Treleaven via Digitalmars-d
On 21/04/2014 09:49, Lars T. Kyllingstad wrote: I often wish private meant class private in D. I know, the usual argument against this is that someone who writes a module usually has full control of that module, but again, Phobos is an example of the contrary. Each module has at least a dozen

Re: Do non-member functions improve encapsulation in D?

2014-04-24 Thread Dicebot via Digitalmars-d
On Tuesday, 22 April 2014 at 06:39:47 UTC, Jacob Carlborg wrote: On 21/04/14 10:49, Lars T. Kyllingstad wrote: Ok, so any number was poorly phrased. What I meant was a large number, because in my experience, modules tend to be quite large. Specifically, they are rarely limited to containing

Re: Static Analysis Tooling / Effective D

2014-04-24 Thread Marco Leise via Digitalmars-d
Am Thu, 24 Apr 2014 13:11:18 +0200 schrieb Artur Skawina via Digitalmars-d digitalmars-d@puremagic.com: `size_t x = 1 shiftAmount` is definitely not something that should be recommended, see above. Just use the correct type on the lhs of shift operators. auto x = cast(size_t) 1 shiftAmount;

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Orvid King via Digitalmars-d
On Wednesday, 23 April 2014 at 18:35:26 UTC, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and committing the starting API. So, is there something I’m

Re: CT info about class' children

2014-04-24 Thread Yuriy via Digitalmars-d
rtInfo through attributes implemented. Jacob, have i done it the way you wanted? https://github.com/D-Programming-Language/druntime/pull/775#issuecomment-41278520

Re: DIP60: @nogc attribute

2014-04-24 Thread bearophile via Digitalmars-d
Walter Bright: http://wiki.dlang.org/DIP60 Start on implementation: https://github.com/D-Programming-Language/dmd/pull/3455 Currently this code doesn't compile because the lambda allocates the closure on the heap: void main() @nogc { import std.algorithm: map; int[3] data = [1,

Re: Static Analysis Tooling / Effective D

2014-04-24 Thread Artur Skawina via Digitalmars-d
On 04/24/14 14:49, Marco Leise via Digitalmars-d wrote: Am Thu, 24 Apr 2014 13:11:18 +0200 schrieb Artur Skawina via Digitalmars-d digitalmars-d@puremagic.com: `size_t x = 1 shiftAmount` is definitely not something that should be recommended, see above. Just use the correct type on the

Re: Redesign of dlang.org

2014-04-24 Thread Kagamin via Digitalmars-d
On Thursday, 24 April 2014 at 08:17:15 UTC, Nick Sabalausky wrote: As if b hasn't always implied the semantics of emphasis anyway...not that anyone's ever had any real use for semantic which text is emphasized? for any purpose besides Should this text be rendered in bold/italic or not? Funny

Re: Redesign of dlang.org

2014-04-24 Thread Adam D. Ruppe via Digitalmars-d
Another thing that kills me about the new big picture up top, scroll to gigantic say-nothing text below fad The text below sounds like there might be some more learning to do. So I try to click on the headers nothing happens. No see more link. Apparently Feature rich: we have more

Re: Compile-time memory footprint of std.algorithm

2014-04-24 Thread Iain Buclaw via Digitalmars-d
On 24 April 2014 12:01, Ary Borenszweig via Digitalmars-d digitalmars-d@puremagic.com wrote: On 4/24/14, 3:16 AM, Jacob Carlborg wrote: On 23/04/14 08:39, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Isn't that bad advertisement

Re: Redesign of dlang.org

2014-04-24 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 24 April 2014 at 07:59:20 UTC, Martin Nowak wrote: Nice, thanks a lot. How much effort would it be to turn this into a full SCSS compiler? Hmm, looking at the sass webpage, I think I could do some of the features but prolly not all and with a different syntax. So it wouldn't

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Orvid King via Digitalmars-d
On Thursday, 24 April 2014 at 10:14:07 UTC, Kagamin wrote: On Wednesday, 23 April 2014 at 18:35:26 UTC, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Dicebot via Digitalmars-d
On Thursday, 24 April 2014 at 14:15:45 UTC, Orvid King wrote: On Thursday, 24 April 2014 at 10:14:07 UTC, Kagamin wrote: On Wednesday, 23 April 2014 at 18:35:26 UTC, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base

Re: Static Analysis Tooling / Effective D

2014-04-24 Thread Steven Schveighoffer via Digitalmars-d
On Wed, 23 Apr 2014 23:15:01 -0400, Marco Leise marco.le...@gmx.de wrote: Am Wed, 23 Apr 2014 22:56:27 -0400 schrieb Steven Schveighoffer schvei...@yahoo.com: On Wed, 23 Apr 2014 22:56:54 -0400, Marco Leise marco.le...@gmx.de wrote: Am Tue, 21 Jan 2014 04:34:56 + schrieb Brian Schott

Re: Redesign of dlang.org

2014-04-24 Thread Adam D. Ruppe via Digitalmars-d
On Thursday, 24 April 2014 at 03:59:00 UTC, Rikki Cattermole wrote: Can we have it as a library? css.d in there has the lib code now with my other html stuff stripped out so it has fewer dependencies. Can dub just use it without using the little main file? Note btw that this code is

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 04:58:06AM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/23/2014 6:19 PM, H. S. Teoh via Digitalmars-d wrote: [...] Usually when I run into a site with (1) microscopic fonts, (2) giant (often multicolored) fonts, (3) no whitespace, or (4) has more ads/filler

Re: Redesign of dlang.org

2014-04-24 Thread via Digitalmars-d
On Thursday, 24 April 2014 at 14:59:36 UTC, H. S. Teoh via Digitalmars-d wrote: On Thu, Apr 24, 2014 at 04:58:06AM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/23/2014 6:19 PM, H. S. Teoh via Digitalmars-d wrote: [...] Usually when I run into a site with (1) microscopic fonts, (2)

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Orvid King via Digitalmars-d
On Thursday, 24 April 2014 at 07:09:27 UTC, Mike wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base draft of the design of the GC, along with opening the PRs and committing the starting API. So, is there something I’m missing? Am

Re: Redesign of dlang.org

2014-04-24 Thread Rikki Cattermole via Digitalmars-d
On Thursday, 24 April 2014 at 14:42:44 UTC, Adam D. Ruppe wrote: On Thursday, 24 April 2014 at 03:59:00 UTC, Rikki Cattermole wrote: Can we have it as a library? css.d in there has the lib code now with my other html stuff stripped out so it has fewer dependencies. Can dub just use it

Re: Redesign of dlang.org

2014-04-24 Thread via Digitalmars-d
On Thursday, 24 April 2014 at 15:55:36 UTC, Sönke Ludwig wrote: Am 24.04.2014 17:34, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: According to the CCS 2.1 standard 1 px == 0.75pt. http://www.w3.org/TR/CSS21/syndata.html#length-units Thus: 16pt = 12px = 3.1mm at a reading

Re: Redesign of dlang.org

2014-04-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.04.2014 16:42, schrieb Adam D. Ruppe: On Thursday, 24 April 2014 at 03:59:00 UTC, Rikki Cattermole wrote: Can we have it as a library? css.d in there has the lib code now with my other html stuff stripped out so it has fewer dependencies. Can dub just use it without using the little

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Orvid King via Digitalmars-d
On Thursday, 24 April 2014 at 14:22:17 UTC, Dicebot wrote: On Thursday, 24 April 2014 at 14:15:45 UTC, Orvid King wrote: Ah, I hadn't realized he had actually implemented the concurrent GC he gave a talk on, I will make sure to look over the code before writing out the design. I was also

Re: Redesign of dlang.org

2014-04-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.04.2014 17:34, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: According to the CCS 2.1 standard 1 px == 0.75pt. http://www.w3.org/TR/CSS21/syndata.html#length-units Thus: 16pt = 12px = 3.1mm at a reading distance of 71 cm. 16pt = 21.3px

Re: Redesign of dlang.org

2014-04-24 Thread Sönke Ludwig via Digitalmars-d
Am 24.04.2014 17:59, schrieb Sönke Ludwig: Am 24.04.2014 16:42, schrieb Adam D. Ruppe: On Thursday, 24 April 2014 at 03:59:00 UTC, Rikki Cattermole wrote: Can we have it as a library? css.d in there has the lib code now with my other html stuff stripped out so it has fewer dependencies. Can

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Leandro Lucarella via Digitalmars-d
On Thursday, 24 April 2014 at 14:22:17 UTC, Dicebot wrote: On Thursday, 24 April 2014 at 14:15:45 UTC, Orvid King wrote: On Thursday, 24 April 2014 at 10:14:07 UTC, Kagamin wrote: On Wednesday, 23 April 2014 at 18:35:26 UTC, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid

Re: python vs d

2014-04-24 Thread Andrei Alexandrescu via Digitalmars-d
On 4/24/14, 2:20 AM, bearophile wrote: Suliman: It would be very nice to add to dlang wiki comparison woth Python, to show that D code can be easy as Python. In the Rosettacode site there are around one thousand Python-D comparisons. Bye, bearophile Guess we could link from dlang.org to

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 03:59:17PM +, via Digitalmars-d wrote: On Thursday, 24 April 2014 at 15:55:36 UTC, Sönke Ludwig wrote: Am 24.04.2014 17:34, schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: According to the CCS 2.1 standard 1 px == 0.75pt.

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Leandro Lucarella via Digitalmars-d
On Thursday, 24 April 2014 at 14:15:45 UTC, Orvid King wrote: On Thursday, 24 April 2014 at 10:14:07 UTC, Kagamin wrote: On Wednesday, 23 April 2014 at 18:35:26 UTC, Messenger wrote: On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: After all of that, I intend to include a base

Re: python vs d

2014-04-24 Thread Meta via Digitalmars-d
On Thursday, 24 April 2014 at 16:23:22 UTC, Andrei Alexandrescu wrote: Guess we could link from dlang.org to some. -- Andrei It would be neat to have some of the shorter Rosetta Code examples on rotation... Do they allow the examples to be displayed outside of RC?

Re: python vs d

2014-04-24 Thread Meta via Digitalmars-d
On Thursday, 24 April 2014 at 16:23:22 UTC, Andrei Alexandrescu wrote: Guess we could link from dlang.org to some. -- Andrei It would be neat to have some of the shorter Rosetta Code examples on rotation... Do they allow the examples to be displayed outside of RC?

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Brian Rogoff via Digitalmars-d
On Thursday, 24 April 2014 at 06:10:00 UTC, Rainer Schuetze wrote: On 23.04.2014 20:35, Messenger wrote: What is the state of Rainer Schütze's precise gc? Duplication of effort and all that. The implementation relies on correct RTInfo generation, but that still doesn't work as this pull

Re: Compile-time memory footprint of std.algorithm

2014-04-24 Thread monarch_dodra via Digitalmars-d
On Thursday, 24 April 2014 at 06:16:05 UTC, Jacob Carlborg wrote: On 23/04/14 08:39, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Isn't that bad advertisement for the GC in D? Or has it something to do with DMD not being designed

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Kagamin via Digitalmars-d
On Thursday, 24 April 2014 at 17:10:20 UTC, Brian Rogoff wrote: The implementation relies on correct RTInfo generation, but that still doesn't work as this pull request is sitting there for 8 months now without getting much review: https://github.com/D-Programming-Language/dmd/pull/2480 So

Re: python vs d

2014-04-24 Thread bearophile via Digitalmars-d
Andrei Alexandrescu: Guess we could link from dlang.org to some. -- Andrei A simpler solution is to to just link to this page, that contains the links to all pages that contain D entries: http://rosettacode.org/wiki/Category:D Bye, bearophile

Re: python vs d

2014-04-24 Thread Gary Willoughby via Digitalmars-d
On Thursday, 24 April 2014 at 06:38:42 UTC, Suliman wrote: I am following discussions about GC and some other 'critical' improves in D language for a long time. I see a lot of arguments and heaps of code, that often hard to understand (for example Templates) even more complicated to use it.

Re: Do non-member functions improve encapsulation in D?

2014-04-24 Thread Gary Willoughby via Digitalmars-d
On Tuesday, 22 April 2014 at 06:39:47 UTC, Jacob Carlborg wrote: I'm almost exclusively organizing with one class per module and a deeper hierarchy of packages. Not saying that is the ideal solution. That's what i've started to do in a recent project and then use the special 'package.d' file

Re: python vs d

2014-04-24 Thread Andrei Alexandrescu via Digitalmars-d
On 4/24/14, 10:30 AM, bearophile wrote: Andrei Alexandrescu: Guess we could link from dlang.org to some. -- Andrei A simpler solution is to to just link to this page, that contains the links to all pages that contain D entries: http://rosettacode.org/wiki/Category:D Bye, bearophile

Re: DIP60: @nogc attribute

2014-04-24 Thread Walter Bright via Digitalmars-d
On 4/24/2014 6:35 AM, bearophile wrote: Currently this code doesn't compile because the lambda allocates the closure on the heap: Pointing out these issues is exactly what @nogc is designed to do. void main() @nogc { import std.algorithm: map; int[3] data = [1, 2, 3];

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Messenger via Digitalmars-d
On Thursday, 24 April 2014 at 17:33:08 UTC, Kagamin wrote: Another issue is that in 64-bit address space precise GC gives no advantage as false pointers have low probability, so precise GC seems to be not worth the effort. Except a precise gc is type-aware, no? And you could basically ask it

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread safety0ff via Digitalmars-d
On Thursday, 24 April 2014 at 17:33:08 UTC, Kagamin wrote: Another issue is that in 64-bit address space precise GC gives no advantage as false pointers have low probability, so precise GC seems to be not worth the effort. I disagree, in the current state of things there is benefit for 64

Re: Redesign of dlang.org

2014-04-24 Thread Jacob Carlborg via Digitalmars-d
On 2014-04-24 16:19, Adam D. Ruppe wrote: Hmm, looking at the sass webpage, I think I could do some of the features but prolly not all and with a different syntax. So it wouldn't work for a full scss compiler. Sass really has some advanced features. It's possible to create a function in Ruby

Re: DIP60: @nogc attribute

2014-04-24 Thread bearophile via Digitalmars-d
Walter Bright: Pointing out these issues is exactly what @nogc is designed to do. Right. Can't is a bit strong of a word. Needing a workaround that is perhaps a bit ugly is more accurate. For your example, enum int x = 3; will solve the issue. In most cases that x is a run-time

Re: Discusssion on the Discussion of the Design for a new GC

2014-04-24 Thread Kagamin via Digitalmars-d
On Thursday, 24 April 2014 at 18:39:34 UTC, Messenger wrote: Except a precise gc is type-aware, no? And you could basically ask it to please print out everything that you have currently allocated so I can debug what's allocating. Depends on the implementation. One would want to not store data

Re: DIP60: @nogc attribute

2014-04-24 Thread Walter Bright via Digitalmars-d
On 4/24/2014 11:49 AM, bearophile wrote: Walter Bright: Can't is a bit strong of a word. Needing a workaround that is perhaps a bit ugly is more accurate. For your example, enum int x = 3; will solve the issue. In most cases that x is a run-time value, as in my example. You can make

Re: Redesign of dlang.org

2014-04-24 Thread Alix Pexton via Digitalmars-d
On 24/04/2014 9:44 AM, Dicebot wrote: Considering the very same size 9 fonts are used as default everywhere else in my desktop system and it feels just fine.. yeah, you must be right. It must be small font and not weirdly scaled UI with 2/3 of screen space blank. Sure. We must just be

Re: python vs d

2014-04-24 Thread Suliman via Digitalmars-d
On Thursday, 24 April 2014 at 16:23:22 UTC, Andrei Alexandrescu wrote: On 4/24/14, 2:20 AM, bearophile wrote: Suliman: It would be very nice to add to dlang wiki comparison woth Python, to show that D code can be easy as Python. In the Rosettacode site there are around one thousand

Re: Static Analysis Tooling / Effective D

2014-04-24 Thread Marco Leise via Digitalmars-d
Am Thu, 24 Apr 2014 10:26:48 -0400 schrieb Steven Schveighoffer schvei...@yahoo.com: On Wed, 23 Apr 2014 23:15:01 -0400, Marco Leise marco.le...@gmx.de wrote: Am Wed, 23 Apr 2014 22:56:27 -0400 schrieb Steven Schveighoffer schvei...@yahoo.com: On Wed, 23 Apr 2014 22:56:54 -0400, Marco

Re: Redesign of dlang.org

2014-04-24 Thread Alix Pexton via Digitalmars-d
On 24/04/2014 9:44 AM, Dicebot wrote: Considering the very same size 9 fonts are used as default everywhere else in my desktop system and it feels just fine.. yeah, you must be right. It must be small font and not weirdly scaled UI with 2/3 of screen space blank. Sure. We must just be

Re: Redesign of dlang.org

2014-04-24 Thread H. S. Teoh via Digitalmars-d
On Thu, Apr 24, 2014 at 08:21:04PM +0100, Alix Pexton via Digitalmars-d wrote: On 24/04/2014 9:44 AM, Dicebot wrote: Considering the very same size 9 fonts are used as default everywhere else in my desktop system and it feels just fine.. yeah, you must be right. It must be small font and not

Re: Static Analysis Tooling / Effective D

2014-04-24 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 24 Apr 2014 15:40:23 -0400, Marco Leise marco.le...@gmx.de wrote: Am Thu, 24 Apr 2014 10:26:48 -0400 schrieb Steven Schveighoffer schvei...@yahoo.com: On Wed, 23 Apr 2014 23:15:01 -0400, Marco Leise marco.le...@gmx.de wrote: Am Wed, 23 Apr 2014 22:56:27 -0400 schrieb Steven

Re: python vs d

2014-04-24 Thread bearophile via Digitalmars-d
Suliman: It's much better to add best examples at wiki.dlang.org I am updating the examples on Rosettacode almost daily (example: I am currently modifying tens of entries to use @nogc). So you Suliman do you want to keep updating the dwiki to follow the very frequent changes in the

Re: python vs d

2014-04-24 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 24 Apr 2014 17:08:40 -0400, bearophile bearophileh...@lycos.com wrote: Suliman: It's much better to add best examples at wiki.dlang.org I am updating the examples on Rosettacode almost daily (example: I am currently modifying tens of entries to use @nogc) I don't think this is

  1   2   3   >