Unit-threaded v0.4.0 released

2014-04-23 Thread Atila Neves via Digitalmars-d-announce
http://code.dlang.org/packages/unit-threaded . The @HiddenTest UDA now takes a compile-time string meant to be a bug id or other reason why the test is hidden. Unfortunately that means previous code using it needs to add a string or it'll fail to compile . The new @ShouldFail UDA also takes a

Re: Z80 Emulation Engine

2014-04-23 Thread Rory McGuire via Digitalmars-d-announce
Its because its viral that a lot of people avoid it. On Tue, Apr 22, 2014 at 4:33 PM, ketmar via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: If something's open source with no commercial intent, is there good reason not to use gpl? How hard is it to change later? i

Unencumbered V0.1.2: Write Cucumber step definitions in D

2014-04-23 Thread Atila Neves via Digitalmars-d-announce
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 they need from the regexp captures, as

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

2014-04-23 Thread Jacob Carlborg via Digitalmars-d-announce
On 23/04/14 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 they

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

2014-04-23 Thread Atila Neves via Digitalmars-d-announce
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 example). Cucumber automatically

Re: DIP60: @nogc attribute

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 23/04/14 06:33, Walter Bright wrote: I repeatedly said that it is not memory safe because you must employ escapes from it to get performance. Apparently you need that for the GC as well, that's why this thread was started to begin with. -- /Jacob Carlborg

Re: DIP60: @nogc attribute

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 22/04/14 20:48, Steven Schveighoffer wrote: I mean not like I can't because I don't want to or don't have time, but can't as in I lack the skill set :) It's interesting to debate, and I get the concepts, but I am not a CPU/cache guy, and these things are really important to get right for

Re: CT info about class' children

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 22/04/14 22:50, Yuriy wrote: Any way to do it without patching druntime? Not that I know of. -- /Jacob Carlborg

Re: What's the status of old-style operator overloads in D2?

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 22/04/14 20:06, Brian Schott wrote: We have alias a = b; and alias b a;, so there's precedent for having two ways of doing exactly the same thing. I believe that for aliasing function pointers only the latter syntax works. -- /Jacob Carlborg

Re: CT info about class' children

2014-04-23 Thread Daniel Murphy via Digitalmars-d
Yuriy wrote in message news:duumbptvbqwknucxg...@forum.dlang.org... Any way to do it without patching druntime? Patch the compiler.

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Dmitry Olshansky via Digitalmars-d
23-Apr-2014 01:00, Iain Buclaw via Digitalmars-d пишет: On 22 April 2014 21:43, Peter Alexander via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tuesday, 22 April 2014 at 18:09:12 UTC, Iain Buclaw wrote: Testing a 2.065 pre-release snapshot against GDC. I see that std.algorithm now

Re: Redesign of dlang.org

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 23/04/14 00:57, Nick Sabalausky wrote: Apparently they can't even manage make basic links work properly: http://getbootstrap.com/examples/starter-template/ How anyone can manage to fuck up a href=../a is beyond me. What's fucked up with the links? -- /Jacob Carlborg

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Walter Bright via Digitalmars-d
On 4/22/2014 11:33 PM, Dmitry Olshansky wrote: At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed if it leaks that much. I made a build of dmd with a collector in it. It destroyed the

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
http://getbootstrap.com/examples/starter-template/ How anyone can manage to fuck up a href=../a is beyond me. Nick what are you talking about? They referenced some anchors in their example page and that works.

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
Eww. Font size and image scaling should *not* be a function of window size. That's just...yuck. Let the system determine it's own appropriate base font size. And it's all in that horrible, ugly, giant sized, yet minimal content and maximal blank space style that's so inexplicably popular

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Dmitry Olshansky via Digitalmars-d
23-Apr-2014 10:39, Walter Bright пишет: On 4/22/2014 11:33 PM, Dmitry Olshansky wrote: At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed if it leaks that much. I made a build of dmd

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
I would use Foundation[1] instead of Bootstrap. [1] http://foundation.zurb.com/ Whatever gets the job done. I haven't yet worked with Foundation, but it looks reasonable. Maybe we can limit the SCSS dependency by checking in the rendered CSS, so only people working on the style would need

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
But I like to add fallback (that works even without JS, but better with JS) for that on old browsers which don't support that feature. You could make a poll on the newsgroup or ask Andrei if Google Analytics has some numbers about the User Agents used to visit our site. My guess is that we

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Kagamin via Digitalmars-d
On Wednesday, 23 April 2014 at 06:39:04 UTC, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Is it because of garbage collections? Then allow people configure collection threshold, say, collect garbage only when the heap is bigger than

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
On Saturday, 19 April 2014 at 10:56:07 UTC, Aleksandar Ruzicic wrote: Ok here's a mockup of search concept I would like to implement: http://krcko.net/dlang.org/dlang-search-concept.png Search suggestions feature would surely require JavaScript but IMHO it would be a really nice enhancement.

Re: DIP60: @nogc attribute

2014-04-23 Thread Manu via Digitalmars-d
On 22 April 2014 05:03, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 4/21/2014 10:57 AM, Steven Schveighoffer wrote: On Mon, 21 Apr 2014 13:28:24 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/21/2014 5:00 AM, Steven Schveighoffer wrote: Total

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Walter Bright via Digitalmars-d
On 4/22/2014 11:56 PM, Dmitry Olshansky wrote: Getting more practical - any chance to use it selectively in CTFE and related stuff that is KNOWN to generate garbage? Using it there only will require a rewrite of interpret.c.

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Walter Bright via Digitalmars-d
On 4/23/2014 12:20 AM, Kagamin wrote: On Wednesday, 23 April 2014 at 06:39:04 UTC, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Is it because of garbage collections? Then allow people configure collection threshold, say, collect

Re: DIP60: @nogc attribute

2014-04-23 Thread Walter Bright via Digitalmars-d
Manu, you obviously believe in ARC. I've made an attempt to do ARC, detailed in the other thread here. I failed. http://forum.dlang.org/thread/l34lei$255v$1...@digitalmars.com Michel Fortin also wants to bring iOS ARC to D. I suggest you get together with Michel and work out a detailed

Re: Redesign of dlang.org

2014-04-23 Thread Aleksandar Ruzicic via Digitalmars-d
On Wednesday, 23 April 2014 at 07:02:50 UTC, Martin Nowak wrote: I would use Foundation[1] instead of Bootstrap. [1] http://foundation.zurb.com/ Whatever gets the job done. I haven't yet worked with Foundation, but it looks reasonable. Maybe we can limit the SCSS dependency by checking in

Re: Redesign of dlang.org

2014-04-23 Thread Aleksandar Ruzicic via Digitalmars-d
On Wednesday, 23 April 2014 at 07:28:51 UTC, Martin Nowak wrote: On Saturday, 19 April 2014 at 10:56:07 UTC, Aleksandar Ruzicic wrote: Ok here's a mockup of search concept I would like to implement: http://krcko.net/dlang.org/dlang-search-concept.png Search suggestions feature would surely

Re: Redesign of dlang.org

2014-04-23 Thread Aleksandar Ruzicic via Digitalmars-d
On Wednesday, 23 April 2014 at 07:16:53 UTC, Martin Nowak wrote: But I like to add fallback (that works even without JS, but better with JS) for that on old browsers which don't support that feature. You could make a poll on the newsgroup or ask Andrei if Google Analytics has some numbers

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Dmitry Olshansky via Digitalmars-d
23-Apr-2014 12:12, Walter Bright пишет: On 4/23/2014 12:20 AM, Kagamin wrote: On Wednesday, 23 April 2014 at 06:39:04 UTC, Walter Bright wrote: I made a build of dmd with a collector in it. It destroyed the speed. Took it out. Is it because of garbage collections? Then allow people configure

Re: DIP60: @nogc attribute

2014-04-23 Thread Manu via Digitalmars-d
On 23 April 2014 04:28, Steven Schveighoffer via Digitalmars-d digitalmars-d@puremagic.com wrote: On Tue, 22 Apr 2014 14:12:17 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/22/2014 6:18 AM, Steven Schveighoffer wrote: On Mon, 21 Apr 2014 19:02:53 -0400, Walter Bright

Re: DIP60: @nogc attribute

2014-04-23 Thread via Digitalmars-d
On Tuesday, 22 April 2014 at 19:42:20 UTC, Michel Fortin wrote: Objective-C isn't memory safe because it lets you play with raw pointers too. If you limit yourself to ARC-managed pointers (and avoid undefined behaviours inherited from C) everything is perfectly memory safe. I'm not convinced

Re: Redesign of dlang.org

2014-04-23 Thread via Digitalmars-d
On Wednesday, 23 April 2014 at 03:20:18 UTC, Andrei Alexandrescu wrote: Trying to be clever? Obviously not. I don't understand the motivation of this quip. You don't understand that it is offensive to respond to an intelligent question by posting a Google query? As a project maintainer you

Re: Redesign of dlang.org

2014-04-23 Thread Kagamin via Digitalmars-d
On Tuesday, 22 April 2014 at 20:01:27 UTC, Andrei Alexandrescu wrote: https://www.google.com/search?q=page%20width%20study#q=optimal+page+width+for+readingsafe=off The first link say 100 characters per line. If 100 characters equal to page width, then page width is the optimal line length.

Re: Ehem, ARM

2014-04-23 Thread Joakim via Digitalmars-d
On Friday, 21 March 2014 at 19:59:41 UTC, Joakim wrote: Been awhile since I updated on the Android effort: I'm now able to get all 38 druntime modules' unit tests to pass on Android/x86... under somewhat random conditions. It's finicky and some of the tests start failing and many segfaulting

Re: Ehem, ARM

2014-04-23 Thread Dejan Lekic via Digitalmars-d
On Thursday, 14 November 2013 at 14:47:47 UTC, Chris wrote: I know, I know, this question has been asked many times before. But it came up in a meeting the other day: is there any work being done on making D an ARM citizen so that _non-trivial_ D code can be ported to smartphones and the like?

Re: Redesign of dlang.org

2014-04-23 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 23 April 2014 at 06:47:58 UTC, Martin Nowak wrote: Yeah, let's have a page like Peter Norvig (http://norvig.com). It's all about the content after all and if that is good the rest doesn't matter. There's a middle ground here.

Re: DIP60: @nogc attribute

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 23/04/14 10:31, Walter Bright wrote: Manu, you obviously believe in ARC. I've made an attempt to do ARC, detailed in the other thread here. I failed. http://forum.dlang.org/thread/l34lei$255v$1...@digitalmars.com That conversation started out from the D/Objective-C conversations. To have

Re: Redesign of dlang.org

2014-04-23 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 22 April 2014 at 23:45:43 UTC, Aleksandar Ruzicic wrote: Wow, this looks really nice! It has variables, mixins, nested selectors and includes.. That's all I need! Yea, I wrote this several years ago before even knowing about sass based on what annoyed me about CSS and it looks

Re: Ehem, ARM

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 23/04/14 13:39, Joakim wrote: Alright, finally hacked dmd to produce something like packed TLS for ELF. I just ran the druntime unit tests on Android/x86 and all 38 modules passed, :) even after changing the number of TLS variables a couple times, which was causing segfaults with the native

Re: Redesign of dlang.org

2014-04-23 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 23 April 2014 at 04:08:20 UTC, Rikki Cattermole wrote: Any chance to get this separated out just for the css part of it? Hmm, you know, maybe that wouldn't be too hard. I thought it used dom.d's css parser but it actually doesn't! So I could probably write a little css module

Re: DIP60: @nogc attribute

2014-04-23 Thread Michel Fortin via Digitalmars-d
On 2014-04-23 09:50:57 +, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com said: On Tuesday, 22 April 2014 at 19:42:20 UTC, Michel Fortin wrote: Objective-C isn't memory safe because it lets you play with raw pointers too. If you limit yourself to ARC-managed pointers (and avoid

Re: Redesign of dlang.org

2014-04-23 Thread Rikki Cattermole via Digitalmars-d
On Wednesday, 23 April 2014 at 13:22:02 UTC, Adam D. Ruppe wrote: On Wednesday, 23 April 2014 at 04:08:20 UTC, Rikki Cattermole wrote: Any chance to get this separated out just for the css part of it? Hmm, you know, maybe that wouldn't be too hard. I thought it used dom.d's css parser but it

Re: DIP60: @nogc attribute

2014-04-23 Thread Michel Fortin via Digitalmars-d
On 2014-04-23 04:33:00 +, Walter Bright newshou...@digitalmars.com said: On 4/22/2014 12:42 PM, Michel Fortin wrote: On 2014-04-22 19:02:05 +, Walter Bright newshou...@digitalmars.com said: Memory safety is not a strawman. It's a critical feature for a modern language, and will

Discusssion on the Discussion of the Design for a new GC

2014-04-23 Thread Orvid King via Digitalmars-d
So, in order to get the ball rolling on the new GC I intend to implement for D, I want to facilitate a lively discussion of the design of it, so that it can be designed to be both robust and free of design flaws. To keep the discussion from getting derailed, I want to lay out a few guidelines,

Re: CT info about class' children

2014-04-23 Thread Steven Schveighoffer via Digitalmars-d
On Wed, 23 Apr 2014 02:34:52 -0400, Daniel Murphy yebbliesnos...@gmail.com wrote: Yuriy wrote in message news:duumbptvbqwknucxg...@forum.dlang.org... Any way to do it without patching druntime? Patch the compiler. Did you type that with a straight face? -Steve

Re: What's the status of old-style operator overloads in D2?

2014-04-23 Thread Steven Schveighoffer via Digitalmars-d
On Tue, 22 Apr 2014 18:54:41 -0400, Meta jared...@gmail.com wrote: On Tuesday, 22 April 2014 at 21:35:31 UTC, Meta wrote: Does this work if test is in a different module from main? struct test { private int opBinary(string op: *)(test other) { return 3; } public alias opMul =

Run Doc Examples

2014-04-23 Thread Faux Amis via Digitalmars-d
What is stopping us from making all the code in the docs runnable like the code on the front page? http://dlang.org/ vs http://dlang.org/phobos/std_algorithm.html Import, setup and output code can be hidden until the user selects the code box.

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Steven Schveighoffer via Digitalmars-d
On Wed, 23 Apr 2014 02:39:05 -0400, Walter Bright newshou...@digitalmars.com wrote: On 4/22/2014 11:33 PM, Dmitry Olshansky wrote: At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed

Re: CT info about class' children

2014-04-23 Thread Daniel Murphy via Digitalmars-d
Steven Schveighoffer wrote in message news:op.xerz7jcceav7ka@stevens-macbook-pro-2.local... Did you type that with a straight face? :)

Re: DIP60: @nogc attribute

2014-04-23 Thread Steven Schveighoffer via Digitalmars-d
On Wed, 23 Apr 2014 05:14:44 -0400, Manu via Digitalmars-d digitalmars-d@puremagic.com wrote: On 23 April 2014 04:28, Steven Schveighoffer via Digitalmars-d ARC does not equal guaranteed memory safety. So NO, it cannot replace the GC for D @safe code. That doesn't make it useless. Why

Re: DIP60: @nogc attribute

2014-04-23 Thread Steven Schveighoffer via Digitalmars-d
On Wed, 23 Apr 2014 02:11:38 -0400, Jacob Carlborg d...@me.com wrote: On 22/04/14 20:48, Steven Schveighoffer wrote: I mean not like I can't because I don't want to or don't have time, but can't as in I lack the skill set :) It's interesting to debate, and I get the concepts, but I am not a

Re: Redesign of dlang.org

2014-04-23 Thread Dicebot via Digitalmars-d
On Tuesday, 22 April 2014 at 21:21:13 UTC, Aleksandar Ruzicic wrote: On Tuesday, 22 April 2014 at 12:27:23 UTC, Dicebot wrote: On Tuesday, 22 April 2014 at 06:53:41 UTC, Jacob Carlborg wrote: On 21/04/14 23:33, Dicebot wrote: I think it is very important to dogfood here and add any currently

Re: CT info about class' children

2014-04-23 Thread Yuriy via Digitalmars-d
Ok, i've added a pull request to be discussed. It expands RTInfo capability as Jacob suggested. What do you think? https://github.com/D-Programming-Language/druntime/pull/775

Re: What's the status of old-style operator overloads in D2?

2014-04-23 Thread bearophile via Digitalmars-d
Jacob Carlborg: I believe that for aliasing function pointers only the latter syntax works. It's a bug that needs to be fixed before the deprecation of old style alias syntax... Bye, bearophile

Re: Redesign of dlang.org

2014-04-23 Thread Andrei Alexandrescu via Digitalmars-d
On 4/23/14, 4:30 AM, Kagamin wrote: On Tuesday, 22 April 2014 at 20:01:27 UTC, Andrei Alexandrescu wrote: https://www.google.com/search?q=page%20width%20study#q=optimal+page+width+for+readingsafe=off The first link say 100 characters per line. If 100 characters equal to page width, then page

Re: Redesign of dlang.org

2014-04-23 Thread Andrei Alexandrescu via Digitalmars-d
On 4/23/14, 3:13 AM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Wednesday, 23 April 2014 at 03:20:18 UTC, Andrei Alexandrescu wrote: Trying to be clever? Obviously not. I don't understand the motivation of this quip. You don't understand that it is offensive to

Re: DIP60: @nogc attribute

2014-04-23 Thread Jacob Carlborg via Digitalmars-d
On 2014-04-23 17:57, Steven Schveighoffer wrote: Sure, but there are things I CAN do with my limited time, that I do have the expertise for. I've already been schooled by the likes of you and Michel Fortin on my knowledge of ref counting implementation. That's completely different. I've felt

Re: Redesign of dlang.org

2014-04-23 Thread Dicebot via Digitalmars-d
On Wednesday, 23 April 2014 at 16:13:37 UTC, Andrei Alexandrescu wrote: ... first hit is http://graphicdesign.stackexchange.com/questions/13724/recommended-column-width-for-text-reading-digital-vs-printed pointing to a study indicating 95 characters per line as optimal for on-screen reading

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

2014-04-23 Thread Joakim via Digitalmars-d
On Wednesday, 23 April 2014 at 15:33:36 UTC, Orvid King wrote: So, in order to get the ball rolling on the new GC I intend to implement for D, I want to facilitate a lively discussion of the design of it, so that it can be designed to be both robust and free of design flaws. To keep the

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Daniel Murphy via Digitalmars-d
Dmitry Olshansky wrote in message news:lj7mrr$1p5s$1...@digitalmars.com... At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed if it leaks that much. Or you know, switch to D and use

Re: Redesign of dlang.org

2014-04-23 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 23, 2014 at 04:28:30PM +, Dicebot via Digitalmars-d wrote: [...] Gosh now I finally know what researches to blame for my eyes bleeding upon most web site restylings (Facebook *caugh-caugh*). If anything it just shows that overall reading skills are decreasing and no one care

Re: Redesign of dlang.org

2014-04-23 Thread Andrei Alexandrescu via Digitalmars-d
On 4/23/14, 9:28 AM, Dicebot wrote: Gosh now I finally know what researches to blame for my eyes bleeding upon most web site restylings (Facebook *caugh-caugh*). If anything it just shows that overall reading skills are decreasing and no one care about visitors with small fonts (me). But current

Re: DIP60: @nogc attribute

2014-04-23 Thread Walter Bright via Digitalmars-d
On 4/23/2014 6:10 AM, Jacob Carlborg wrote: That conversation started out from the D/Objective-C conversations. To have ARC in D and be compatible with the one in Objective-C you don't have many choices. I'm not sure but I don't think your proposal was not compatible with ARC in Objective-C.

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Walter Bright via Digitalmars-d
On 4/23/2014 2:00 AM, Dmitry Olshansky wrote: If the prime reason compilation is fast is because we just throw away memory, we must be doing something wrong, very wrong. I've tried adding a collector to DMD with poor results. If you'd like to give it a try as well, please do so. The thing

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Dmitry Olshansky via Digitalmars-d
23-Apr-2014 20:56, Daniel Murphy пишет: Dmitry Olshansky wrote in message news:lj7mrr$1p5s$1...@digitalmars.com... At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed if it leaks that

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Ary Borenszweig via Digitalmars-d
On 4/23/14, 1:56 PM, Daniel Murphy wrote: Dmitry Olshansky wrote in message news:lj7mrr$1p5s$1...@digitalmars.com... At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not homebrew stuff) and be done with it. Speed? There is no point in speed if it leaks that

Re: Redesign of dlang.org

2014-04-23 Thread Gary Willoughby via Digitalmars-d
On Wednesday, 23 April 2014 at 16:28:32 UTC, Dicebot wrote: *caugh-caugh*). If anything it just shows that overall reading skills are decreasing and no one care about visitors with small fonts (me). But current HTML/CSS standards don't provide way to express sizes as percentage of screen width

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Dmitry Olshansky via Digitalmars-d
23-Apr-2014 21:16, Walter Bright пишет: On 4/23/2014 2:00 AM, Dmitry Olshansky wrote: If the prime reason compilation is fast is because we just throw away memory, we must be doing something wrong, very wrong. I've tried adding a collector to DMD with poor results. If you'd like to give it a

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Steve Teale via Digitalmars-d
On Wednesday, 23 April 2014 at 17:16:40 UTC, Walter Bright wrote: On 4/23/2014 2:00 AM, Dmitry Olshansky wrote: If the prime reason compilation is fast is because we just throw away memory, we must be doing something wrong, very wrong. I've tried adding a collector to DMD with poor results.

Re: Redesign of dlang.org

2014-04-23 Thread Walter Bright via Digitalmars-d
On 4/23/2014 10:02 AM, H. S. Teoh via Digitalmars-d wrote: On the contrary, I find almost all websites have broken layouts because I enforce a minimal font size of 16pt (I have a high-resolution screen) -- they insist on font sizes that are far too small. This is why teams need some old

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Messenger via Digitalmars-d
On Wednesday, 23 April 2014 at 15:46:00 UTC, Steven Schveighoffer wrote: The time it takes to compile a program where the compiler consumes 2G of ram on a 2G machine is infinite ;) (nitpick: not necessarily given good swap behaviour!)

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

2014-04-23 Thread Messenger 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

Get-together on Friday

2014-04-23 Thread Andrei Alexandrescu via Digitalmars-d
Hello, Sean and I are meeting in Menlo Park, CA for breakfast on Friday morning at 9:15 AM PST. If you are in the area, are a regular of this group, and would like to get together with us please email me. Thanks, Andrei

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Nordlöw
tl;dr: allocation is a critical speed issue with dmd. Using the bump-pointer method is very fast, and it matters. What about packing DMD structure members such as integers and enums more efficiently? We could start with making enums __attribute__((packed)). Is there any free static/dynamic

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Peter Alexander via Digitalmars-d
On Wednesday, 23 April 2014 at 19:54:29 UTC, Nordlöw wrote: tl;dr: allocation is a critical speed issue with dmd. Using the bump-pointer method is very fast, and it matters. What about packing DMD structure members such as integers and enums more efficiently? We could start with making

Re: Redesign of dlang.org

2014-04-23 Thread via Digitalmars-d
On Wednesday, 23 April 2014 at 16:13:37 UTC, Andrei Alexandrescu wrote: So I'd dlang.org to foster a behavior depending on the available real estate, as follows: * Cap cpl at e.g. 110 on very large screens. * As the available width decreases, reduce cpl up to 60. * If cpl with sidebar falls

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Nordlöw
Maybe we should investigate where the memory is going first before planning our attack :-) I agree. Tool anyone?

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Nordlöw
I agree. Tool anyone? https://stackoverflow.com/questions/23255043/finding-unexercised-bits-of-allocated-data Massif may give some clues.

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Iain Buclaw via Digitalmars-d
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 process and merge them all. I'll post an update in the morning.

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 2:12 PM, Walter Bright wrote: On 4/23/2014 10:02 AM, H. S. Teoh via Digitalmars-d wrote: On the contrary, I find almost all websites have broken layouts because I enforce a minimal font size of 16pt (I have a high-resolution screen) -- they insist on font sizes that are far too

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 2:47 AM, Martin Nowak wrote: Eww. Font size and image scaling should *not* be a function of window size. That's just...yuck. Let the system determine it's own appropriate base font size. And it's all in that horrible, ugly, giant sized, yet minimal content and maximal blank space

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 9:11 AM, Adam D. Ruppe wrote: On Tuesday, 22 April 2014 at 23:45:43 UTC, Aleksandar Ruzicic wrote: Wow, this looks really nice! It has variables, mixins, nested selectors and includes.. That's all I need! Yea, I wrote this several years ago before even knowing about sass based on

Re: Redesign of dlang.org

2014-04-23 Thread John Colvin via Digitalmars-d
On Tuesday, 22 April 2014 at 23:08:45 UTC, Adam D. Ruppe wrote: I wrote a css expander that has a little bit of SASS features. Previously it was hidden in my html.d on my misc. github, but I just now made it a standalone program in a separate repo: https://github.com/adamdruppe/cssexpand

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 2:34 AM, Jacob Carlborg wrote: On 23/04/14 00:57, Nick Sabalausky wrote: Apparently they can't even manage make basic links work properly: http://getbootstrap.com/examples/starter-template/ How anyone can manage to fuck up a href=../a is beyond me. What's fucked up with

Re: Redesign of dlang.org

2014-04-23 Thread Nick Sabalausky via Digitalmars-d
On 4/23/2014 5:55 PM, John Colvin wrote: On Tuesday, 22 April 2014 at 23:08:45 UTC, Adam D. Ruppe wrote: I wrote a css expander that has a little bit of SASS features. Previously it was hidden in my html.d on my misc. github, but I just now made it a standalone program in a separate repo:

Re: Redesign of dlang.org

2014-04-23 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 23, 2014 at 05:32:00PM -0400, Nick Sabalausky via Digitalmars-d wrote: On 4/23/2014 2:12 PM, Walter Bright wrote: On 4/23/2014 10:02 AM, H. S. Teoh via Digitalmars-d wrote: On the contrary, I find almost all websites have broken layouts because I enforce a minimal font size of

Re: CT info about class' children

2014-04-23 Thread Martin Nowak via Digitalmars-d
On Wednesday, 23 April 2014 at 16:06:58 UTC, Yuriy wrote: Ok, i've added a pull request to be discussed. It expands RTInfo capability as Jacob suggested. What do you think? https://github.com/D-Programming-Language/druntime/pull/775 Looks fairly interesting, because it partly solves the

Re: Redesign of dlang.org

2014-04-23 Thread via Digitalmars-d
On Wednesday, 23 April 2014 at 16:13:42 UTC, Andrei Alexandrescu wrote: On 4/23/14, 3:13 AM, Ola Fosheim Grøstad You don't understand that it is offensive to respond to an intelligent question by posting a Google query? As a project maintainer you should know better. As a project

Re: Redesign of dlang.org

2014-04-23 Thread Adam D. Ruppe via Digitalmars-d
On Wednesday, 23 April 2014 at 22:12:08 UTC, 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. The funny thing is I wrote this thing a few years ago, 2011 I

Re: Redesign of dlang.org

2014-04-23 Thread H. S. Teoh via Digitalmars-d
On Wed, Apr 23, 2014 at 06:08:52PM -0400, Nick Sabalausky via Digitalmars-d wrote: [...] But I have noticed a lot of the sites that use anchor links to switch to completely different pages are basically broken. Since the very *beginning* of HTML, links have always been downright trivial to

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
Yeah, let's have a page like Peter Norvig (http://norvig.com). It's all about the content after all and if that is good the rest doesn't matter. I didn't say style was irrelevent. I only said that there should actually *be* content. Sorry for the irony :), indeed fluffy sites without

Re: Redesign of dlang.org

2014-04-23 Thread Martin Nowak via Digitalmars-d
Maybe we can limit the SCSS dependency by checking in the rendered CSS, so only people working on the style would need a sass compiler. I was thinking of that too, but I used this approach on one of previous projects (both, SCSS and generated CSS files were under git) and it just gave me

Re: Redesign of dlang.org

2014-04-23 Thread Adam D. Ruppe via Digitalmars-d
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

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Jussi Jumppanen via Digitalmars-d
On Wednesday, 23 April 2014 at 20:04:09 UTC, Peter Alexander wrote: Maybe we should investigate where the memory is going first before planning our attack :-) FWIW one hint might be found in the DCD project found here: https://github.com/Hackerpilot/DCD/ In that project compiling the

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Brian Schott via Digitalmars-d
On Wednesday, 23 April 2014 at 23:19:20 UTC, Jussi Jumppanen wrote: In that project compiling the lexer.d file causes a massive increase in compiler memory usage. The code is actually located here: https://github.com/Hackerpilot/Dscanner If you want to make DMD cry, compile it with -O

Re: Redesign of dlang.org

2014-04-23 Thread Andrei Alexandrescu via Digitalmars-d
On 4/23/14, 1:53 PM, Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com wrote: On Wednesday, 23 April 2014 at 16:13:37 UTC, Andrei Alexandrescu wrote: So I'd dlang.org to foster a behavior depending on the available real estate, as follows: * Cap cpl at e.g. 110 on very large screens. *

Re: Compile-time memory footprint of std.algorithm

2014-04-23 Thread Marco Leise via Digitalmars-d
Am Wed, 23 Apr 2014 21:23:17 +0400 schrieb Dmitry Olshansky dmitry.o...@gmail.com: 23-Apr-2014 20:56, Daniel Murphy пишет: Dmitry Olshansky wrote in message news:lj7mrr$1p5s$1...@digitalmars.com... At a times I really don't know why can't we just drop in a Boehm GC (the stock one, not

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

2014-04-23 Thread Marco Leise via Digitalmars-d
Am Wed, 23 Apr 2014 18:35:25 + schrieb Messenger d...@shoot.me: What is the state of Rainer Schütze's precise gc? Duplication of effort and all that. +1. And I hope you know what you are up to :D. Some people may expect a magic pill to emerge from your efforts that makes the GC approx. as

Re: [OT] from YourNameHere via Digitalmars-d

2014-04-23 Thread Marco Leise via Digitalmars-d
Am Tue, 22 Apr 2014 20:47:13 +1000 schrieb Manu via Digitalmars-d digitalmars-d@puremagic.com: On 22 April 2014 19:00, Walter Bright via Digitalmars-d digitalmars-d@puremagic.com wrote: On 4/21/2014 10:49 PM, Manu via Digitalmars-d wrote: I like gmail. I've been using it for the better

Re: Package permission and symbol resolution

2014-04-23 Thread Marco Leise via Digitalmars-d
Am Tue, 22 Apr 2014 18:07:21 +1000 schrieb Manu via Digitalmars-d digitalmars-d@puremagic.com: extern (C) void func(const(char)* pString); By the way: What about adding nothrow there? -- Marco

Re: Static Analysis Tooling / Effective D

2014-04-23 Thread Marco Leise via Digitalmars-d
Am Tue, 21 Jan 2014 04:34:56 + schrieb Brian Schott briancsch...@gmail.com: There's a small feature wishlist in the project's README, but I'd like to get some opinions from the newsgroup: What kinds of errors have you seen in your code that you think a static analysis tool could help

  1   2   3   >