body id='...'

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
Hello, I was looking at http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png, which includes an interesting comment: ID applied to body to allow for unique page styling without any additional markup. That sounds pretty interesting, so I plan to add id=$(TITLE) to the body tag of

post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread deadalnix via Digitalmars-d
This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ?

Re: body id='...'

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-17 09:22, Andrei Alexandrescu wrote: Hello, I was looking at http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png, which includes an interesting comment: ID applied to body to allow for unique page styling without any additional markup. That sounds pretty interesting, so I

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread Walter Bright via Digitalmars-d
On 1/17/2015 12:33 AM, deadalnix wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ? There was no known reason to.

Re: body id='...'

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 17 January 2015 at 08:22:19 UTC, Andrei Alexandrescu wrote: Hello, I was looking at http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png, which includes an interesting comment: ID applied to body to allow for unique page styling without any additional markup. That

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread zeljkog via Digitalmars-d
On 17.01.15 09:33, deadalnix wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ? I think it improves readability. A little :) Often user don't care to read if-part.

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Paolo Invernizzi via Digitalmars-d
On Friday, 16 January 2015 at 21:41:25 UTC, Andrei Alexandrescu wrote: Please help us work the kinks out! Walter will be proceeding with the opt-in implementation for quicker pipelining. http://wiki.dlang.org/DIP25 Andrei Congratulations to all, I like it, now: It's for sure an

Re: css minification

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-16 22:32, Vladimir Panteleev wrote: That's probably because HTTP caching is not configured. Ideally, you'd put the file's modification time in its path, e.g.: link rel=stylesheet type=text/css href=css/1421443851/style.css / Or a hash of the file content in the filename. --

Variadic templates - D section on wikipedia

2015-01-17 Thread Douglas Peterson via Digitalmars-d
https://en.wikipedia.org/wiki/Variadic_template Isn't it a pity that the first language supporting them hasn't even a section over there ? I invite any expert interested into the task to write the missing D section.

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-16 21:44, Andrei Alexandrescu wrote: Look for a champion after $(X) days? It looks like once a pull request is open it's impossible to close it. There's got to be some garbage collection somehow :o). -- Andrei It's always possible to add a label to the pull request. -- /Jacob

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-16 18:49, Andrei Alexandrescu wrote: I agree that a hamfisted policy would do more harm than good. That's why it's so hard to define! I'm thinking of something like: if there's $(legitimate) request for changes but the author is dormant for more than $(X) days, then close. Does

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-16 20:23, Walter Bright wrote: Arbitrarily closing them means they get lost forever. How so? -- /Jacob Carlborg

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-17 00:49, H. S. Teoh via Digitalmars-d wrote: Does github have that option? If so, can somebody who has the rights make this change? Not as far as I can see. The settings page for a project doesn't contain much. -- /Jacob Carlborg

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-16 19:50, deadalnix wrote: It is better to have some kind of bot that comment on the PR after a while. Like hey, this PR is hanging, can someone make thing go forward or I'll close in 2 more month. That generate activity on the PR and is often a wake up call for people. Ruby on

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Jacob Carlborg via Digitalmars-d
On 2015-01-17 00:01, Andrei Alexandrescu wrote: On 1/16/15 2:52 PM, Daniel Kozak wrote: P.S. I like this DIP, but I do not like way how things are done :( Please participate to improving how things are done. How can we do that when you're just saying things like Time to move forward, it's

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Manu via Digitalmars-d
On 17 January 2015 at 07:41, Andrei Alexandrescu via Digitalmars-d digitalmars-d@puremagic.com wrote: Please help us work the kinks out! Walter will be proceeding with the opt-in implementation for quicker pipelining. http://wiki.dlang.org/DIP25 Andrei So when handling ref-related edge

Re: css minification

2015-01-17 Thread Mengu via Digitalmars-d
don't know if it's already said but if you are using nginx, there's a plugin for minification and builtin support for compressing html pages or static assets. therefore, nobody needs a third-party dependency for building the docs.

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread aldanor via Digitalmars-d
On Saturday, 17 January 2015 at 11:52:03 UTC, Jacob Carlborg wrote: On 2015-01-16 19:50, deadalnix wrote: It is better to have some kind of bot that comment on the PR after a while. Like hey, this PR is hanging, can someone make thing go forward or I'll close in 2 more month. That generate

Re: 10 Tips for Better Pull Requests

2015-01-17 Thread Laeeth Isharc via Digitalmars-d
Informative is fine. Basing decisions on metrics unleavened by contextual judgement isn't going to work well. It isn't just one metric. I've personally seen it multiple times with various metrics, and regularly read in the news about counterproductive results obtained by using metrics

Re: dlang.org should do it in style

2015-01-17 Thread Mathias LANG via Digitalmars-d
On Saturday, 17 January 2015 at 00:12:18 UTC, Andrei Alexandrescu wrote: On 1/16/15 3:05 PM, Mathias LANG wrote: On Friday, 16 January 2015 at 23:02:21 UTC, Andrei Alexandrescu wrote: On 1/16/15 2:38 PM, David Soria Parra via Digitalmars-d wrote: Andrei Alexandrescu via Digitalmars-d

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 08:33:49 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ? the first is easier to parse, and i it's looking better.

Re: dlang.org should do it in style

2015-01-17 Thread MattCoder via Digitalmars-d
On Saturday, 17 January 2015 at 15:28:57 UTC, Mathias LANG wrote: http://w0rp.com:8010/ I don't know about others but for me the layout above looks more attractive than the actual one. In fact yesterday I was showing the main page for a friend on his smartphone (Moto G), and the code

Re: css minification

2015-01-17 Thread via Digitalmars-d
On Friday, 16 January 2015 at 22:32:07 UTC, Steven Schveighoffer wrote: On 1/16/15 5:23 PM, Andrei Alexandrescu wrote: On 1/16/15 1:44 PM, Steven Schveighoffer wrote: On an embedded product we have with a dead-simple web server, there is terrible network performance. Adding gzip support saved

Re: css minification

2015-01-17 Thread via Digitalmars-d
On Friday, 16 January 2015 at 22:02:27 UTC, Kiith-Sa wrote: Also, -1 for CSS minification, if I'll ever want to make any CSS contibutions I'll start by looking at the CSS in the browser. You'd use the DOM inspectors in this case, no? They don't care about the formatting of the CSS file.

Re: css minification

2015-01-17 Thread via Digitalmars-d
Another cheap addition, down to 11577 bytes: cat style.css | tr '\n' ' ' | sed 's/\/\*[^*]*\*\///g' | sed 's/\s\+/ /g' | sed 's/ \?\([(){},;]\) \?/\1/g | sed 's/;}/}/g'

Re: Cross compiler for embedded microcontrollers ?

2015-01-17 Thread Jens Bauer via Digitalmars-d
Thank you both Mike and Timo for clearing these things up. :) (I had the impression that multilib replaced glibcc, not the other way round - but clearly that's not what it was about). I've spent around 3 years on getting my toolchain working (!) -This is because I'm on a PowerPC based Mac. I

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread deadalnix via Digitalmars-d
On Saturday, 17 January 2015 at 16:02:16 UTC, ketmar via Digitalmars-d wrote: On Sat, 17 Jan 2015 08:33:49 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread deadalnix via Digitalmars-d
On Saturday, 17 January 2015 at 10:05:29 UTC, Walter Bright wrote: On 1/17/2015 12:33 AM, deadalnix wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ? There was no known reason to. Is that possible to

DIP70

2015-01-17 Thread Zach the Mystic via Digitalmars-d
I've now created DIP70 for this issue: http://wiki.dlang.org/DIP70 Maybe a more sophisticated linking mechanism will make DIP70 unnecessary, but it should fuel the discussion nonetheless. Also, the wiki refused all of my attempts to insert the following links, saying they were non-canonical,

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread via Digitalmars-d
On Saturday, 17 January 2015 at 01:51:25 UTC, Steven Schveighoffer wrote: On 1/16/15 8:18 PM, Andrei Alexandrescu wrote: On 1/16/15 4:56 PM, Steven Schveighoffer wrote: On 1/16/15 6:01 PM, Andrei Alexandrescu wrote: On 1/16/15 2:52 PM, Daniel Kozak wrote: Why DIP says: Last Modified:

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 16:55:31 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 17 January 2015 at 16:02:16 UTC, ketmar via Digitalmars-d wrote: On Sat, 17 Jan 2015 08:33:49 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: This is

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread via Digitalmars-d
On Friday, 16 January 2015 at 21:55:13 UTC, Zach the Mystic wrote: On Friday, 16 January 2015 at 21:41:25 UTC, Andrei Alexandrescu wrote: Please help us work the kinks out! Walter will be proceeding with the opt-in implementation for quicker pipelining. http://wiki.dlang.org/DIP25 Andrei

Eliminate comparison.html?

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
In https://github.com/D-Programming-Language/dlang.org/pull/778 I'm proposing replacing http://dlang.org/comparison.html with http://erdani.com/d/comparison.html The silly one-column comparison was a vestige of a multi-column comparison that did more harm than good. I replaced it with a

Re: body id='...'

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 2:16 AM, Sebastiaan Koppe wrote: On Saturday, 17 January 2015 at 08:22:19 UTC, Andrei Alexandrescu wrote: Hello, I was looking at http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png, which includes an interesting comment: ID applied to body to allow for unique page styling

Re: body id='...'

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 1:29 AM, Jacob Carlborg wrote: On 2015-01-17 09:22, Andrei Alexandrescu wrote: Hello, I was looking at http://css-tricks.com/examples/CleanCode/Beautiful-HTML.png, which includes an interesting comment: ID applied to body to allow for unique page styling without any additional

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread deadalnix via Digitalmars-d
On Saturday, 17 January 2015 at 17:08:12 UTC, ketmar via Digitalmars-d wrote: sure i have. i made alot of patches to the parser, so i know how it is written. to make this work parser need to be changed not less than to accept '@' before `pure`, `nothrow` and so on, and this change was

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 4:40 AM, Manu via Digitalmars-d wrote: I guess we'll need another annoying __traits or something so I can pipe that information into my mixins that deal with ref mess... Yes. -- Andrei

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 3:56 AM, Jacob Carlborg wrote: On 2015-01-17 00:01, Andrei Alexandrescu wrote: On 1/16/15 2:52 PM, Daniel Kozak wrote: P.S. I like this DIP, but I do not like way how things are done :( Please participate to improving how things are done. How can we do that when you're just

Re: Variadic templates - D section on wikipedia

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 3:34 AM, Douglas Peterson wrote: https://en.wikipedia.org/wiki/Variadic_template Isn't it a pity that the first language supporting them hasn't even a section over there ? I invite any expert interested into the task to write the missing D section. Good idea. I created

Re: dlang.org page is missing

2015-01-17 Thread Paul O'Neil via Digitalmars-d
On 01/16/2015 09:15 PM, ketmar via Digitalmars-d wrote: Hello. there is a link in side menu: downloadtools-debugger. it leads to http://dlang.org/debugger.html which is missing. There's a debugger.html in the dlang.org repository, so it looks to me like something on the uploading end. --

Re: css minification

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 4:58 AM, Mengu wrote: don't know if it's already said but if you are using nginx, We use Apache as far as I know. there's a plugin for minification and builtin support for compressing html pages or static assets. therefore, nobody needs a third-party dependency for building the

Re: Eliminate comparison.html?

2015-01-17 Thread Mathias LANG via Digitalmars-d
On Saturday, 17 January 2015 at 17:32:43 UTC, Andrei Alexandrescu wrote: In https://github.com/D-Programming-Language/dlang.org/pull/778 I'm proposing replacing http://dlang.org/comparison.html with http://erdani.com/d/comparison.html The silly one-column comparison was a vestige of a

Re: dlang.org should do it in style

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 7:28 AM, Mathias LANG wrote: Quick question: how's the website synced ATM ? Is it some post-commit hook, manual, cron job ? make rebase -j make clean make rsync -j make clean is a complete bear. All - please make dub generation better. The redesign use a Vibe.d webserver. I'm

Re: dlang.org should do it in style

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 8:32 AM, MattCoder wrote: On Saturday, 17 January 2015 at 15:28:57 UTC, Mathias LANG wrote: http://w0rp.com:8010/ I don't know about others but for me the layout above looks more attractive than the actual one. I agree. In fact yesterday I was showing the main page for a friend

Re: css minification

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 8:44 AM, Marc =?UTF-8?B?U2Now7x0eiI=?= schue...@gmx.net wrote: On Friday, 16 January 2015 at 22:32:07 UTC, Steven Schveighoffer wrote: On 1/16/15 5:23 PM, Andrei Alexandrescu wrote: On 1/16/15 1:44 PM, Steven Schveighoffer wrote: On an embedded product we have with a dead-simple

Re: Eliminate comparison.html?

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 9:51 AM, Mathias LANG wrote: On Saturday, 17 January 2015 at 17:32:43 UTC, Andrei Alexandrescu wrote: In https://github.com/D-Programming-Language/dlang.org/pull/778 I'm proposing replacing http://dlang.org/comparison.html with http://erdani.com/d/comparison.html The silly

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Zach the Mystic via Digitalmars-d
On Saturday, 17 January 2015 at 17:08:42 UTC, Marc Schütz wrote: On Friday, 16 January 2015 at 21:55:13 UTC, Zach the Mystic I'm working on an article/DIP which actually goes further than the new DIP25, but is nonetheless completely compatible with it. I'll have the article in a day or two.

Re: css minification

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Friday, 16 January 2015 at 17:40:40 UTC, Andrei Alexandrescu wrote: I just added https://github.com/D-Programming-Language/dlang.org/pull/770, which generates minified css files. This is because in the near future css files will become heftier (more documentation comments, more detailed

Re: Variadic templates - D section on wikipedia

2015-01-17 Thread Mathias LANG via Digitalmars-d
On Saturday, 17 January 2015 at 17:42:08 UTC, Andrei Alexandrescu wrote: On 1/17/15 3:34 AM, Douglas Peterson wrote: https://en.wikipedia.org/wiki/Variadic_template Isn't it a pity that the first language supporting them hasn't even a section over there ? I invite any expert interested into

Getting a safe path for a temporary file

2015-01-17 Thread via Digitalmars-d-learn
Is it currently possible to get the path to a safe temporary file, i.e. one that is guaranteed to be freshly created and will not override another existing file? There's `std.file.tempDir`, which doesn't create a unique file. Then there's `std.stdio.tmpfile()`, which does, but it returns a

Re: Getting a safe path for a temporary file

2015-01-17 Thread Laeeth Isharc via Digitalmars-d-learn
On Saturday, 17 January 2015 at 13:47:39 UTC, Marc Schütz wrote: Is it currently possible to get the path to a safe temporary file, i.e. one that is guaranteed to be freshly created and will not override another existing file? There's `std.file.tempDir`, which doesn't create a unique file.

Re: Getting a safe path for a temporary file

2015-01-17 Thread via Digitalmars-d-learn
On Saturday, 17 January 2015 at 14:37:00 UTC, Laeeth Isharc wrote: On Saturday, 17 January 2015 at 13:47:39 UTC, Marc Schütz wrote: Is it currently possible to get the path to a safe temporary file, i.e. one that is guaranteed to be freshly created and will not override another existing file?

Re: Getting a safe path for a temporary file

2015-01-17 Thread Tobias Pankrath via Digitalmars-d-learn
On Saturday, 17 January 2015 at 16:55:42 UTC, Marc Schütz wrote: On Saturday, 17 January 2015 at 14:37:00 UTC, Laeeth Isharc wrote: On Saturday, 17 January 2015 at 13:47:39 UTC, Marc Schütz wrote: Is it currently possible to get the path to a safe temporary file, i.e. one that is guaranteed to

Re: [WORK] Backtick dat code?

2015-01-17 Thread Joseph Rushton Wakeling via Digitalmars-d
On 16/01/15 21:58, Vladimir Panteleev via Digitalmars-d wrote: On Friday, 16 January 2015 at 20:50:22 UTC, Andrei Alexandrescu wrote: Now that Adam's work on transforming `code` into $(D code) is in, who'd want to write the glorious sed --in-place expression that transforms Phobos? Or should we

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread Walter Bright via Digitalmars-d
On 1/17/2015 8:56 AM, deadalnix wrote: On Saturday, 17 January 2015 at 10:05:29 UTC, Walter Bright wrote: On 1/17/2015 12:33 AM, deadalnix wrote: This is accepted : auto fun(T)(T T) inout if(...) { ... } This is not : auto fun(T)(T T) if(...) inout { ... } Is there a reason ? There was no

[Issue 13996] New: Function for returning a temporary file with a randomly generated name where the name can be accessed

2015-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13996 Issue ID: 13996 Summary: Function for returning a temporary file with a randomly generated name where the name can be accessed Product: D Version: D2 Hardware: All

[Issue 13995] New: Alias type stringof decay to alias type stringof

2015-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13995 Issue ID: 13995 Summary: Alias type stringof decay to alias type stringof Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: enhancement

Re: Deadcode: A code editor in D

2015-01-17 Thread MattCoder via Digitalmars-d-announce
On Saturday, 17 January 2015 at 16:54:32 UTC, Jonas Drewsen wrote: It you have thoses dependencies already then why not use gtksourceview for the editor stuff? Sure, but then I'd miss all the fun, as you said below: It took me quite some time to do that ie. undo/redo system, text layout,

Re: dlang.org should do it in style

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 10:39 AM, MattCoder wrote: On Saturday, 17 January 2015 at 17:59:07 UTC, Andrei Alexandrescu wrote: In fact yesterday I was showing the main page for a friend on his smartphone (Moto G), and the code example at main page looks awful, since it's all wrapped on mobile. Here is an

Re: dlang.org should do it in style

2015-01-17 Thread MattCoder via Digitalmars-d
On Saturday, 17 January 2015 at 19:35:01 UTC, Andrei Alexandrescu wrote: A tested PR would be great. Who can take this? -- Andrei A last note about this: using width:1024px will fix the mobile wrap-text problem, but the site will look like this on higher resolutions:

Re: css minification

2015-01-17 Thread Sebastiaan Koppe via Digitalmars-d
On Saturday, 17 January 2015 at 18:23:45 UTC, Andrei Alexandrescu wrote: On 1/17/15 10:01 AM, Sebastiaan Koppe wrote: A seasoned JS programmer can rewrite that stuff in about 6kb, if not less. Great. You forgot to link to your pull request :o). Wait, one step back. I was still in assessment

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Meta via Digitalmars-d
On Friday, 16 January 2015 at 21:41:25 UTC, Andrei Alexandrescu wrote: Please help us work the kinks out! Walter will be proceeding with the opt-in implementation for quicker pipelining. http://wiki.dlang.org/DIP25 Andrei It seems to me that once this DIP is implemented, it should be safe

Re: css minification

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 12:00 PM, Sebastiaan Koppe wrote: On Saturday, 17 January 2015 at 18:23:45 UTC, Andrei Alexandrescu wrote: On 1/17/15 10:01 AM, Sebastiaan Koppe wrote: I'm not an expert or an ideologist in the area. It was added by others who obviously have a different opinion from yours. Well,

Struggling with shared objects

2015-01-17 Thread Mike via Digitalmars-d-learn
Hey, all. I have just started using D and I'm really loving it, but I have been caught on a problem. I am trying to share my Client class to a new thread, and after a bit of struggling: I finally got the code to compile! Now I am having a new problem: the moment I call client.receive(buf) I get

Re: typescript plugin for vibe.d diet templates

2015-01-17 Thread Fatih Kadir Akin via Digitalmars-d-announce
First, creating temporary files with predictable names is a bad idea, because it opens the door for symlink attacks. Unfortunately, I don't know of an alternative way to do this safely using only the standard library; it seems, this crucial functionality is missing. I've asked here:

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread ketmar via Digitalmars-d
On Sat, 17 Jan 2015 17:34:21 + deadalnix via Digitalmars-d digitalmars-d@puremagic.com wrote: On Saturday, 17 January 2015 at 17:08:12 UTC, ketmar via Digitalmars-d wrote: sure i have. i made alot of patches to the parser, so i know how it is written. to make this work parser need

Re: Heady House Hunting with D

2015-01-17 Thread Meta via Digitalmars-d-announce
On Wednesday, 14 January 2015 at 03:46:39 UTC, Philpax wrote: Hey everyone, I recently wrote a blog post about how I used D/vibe.d to help find a new house. I haven't publicized it anywhere else yet, so I'm looking forward to what the D community has to say! You can check it out here:

Re: http://wiki.dlang.org/DIP25 has been preliminarily approved for 2.067

2015-01-17 Thread Walter Bright via Digitalmars-d
On 1/17/2015 4:40 AM, Manu via Digitalmars-d wrote: So when handling ref-related edge cases, do we now have to handle 3 cases? not-ref, ref, and return-ref right? How do I know if some argument is return-ref? I guess we'll need another annoying __traits or something so I can pipe that

Re: dlang.org should do it in style

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 2:24 PM, H. S. Teoh via Digitalmars-d wrote: On Sat, Jan 17, 2015 at 08:04:56PM +, MattCoder via Digitalmars-d wrote: On Saturday, 17 January 2015 at 19:35:01 UTC, Andrei Alexandrescu wrote: A tested PR would be great. Who can take this? -- Andrei A last note about this: using

Re: Struggling with shared objects

2015-01-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, January 17, 2015 21:56:56 Mike via Digitalmars-d-learn wrote: Ha, I am so stupid! I forgot to call the socket member before receive! Thank you for the help. I have also removed the pointers. I am now getting this: C:\Users\Michael\Documents\Projects\StompBroker\StompBrokerdmd

Re: css minification

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 10:01 AM, Sebastiaan Koppe wrote: On Friday, 16 January 2015 at 17:40:40 UTC, Andrei Alexandrescu wrote: I just added https://github.com/D-Programming-Language/dlang.org/pull/770, which generates minified css files. This is because in the near future css files will become heftier

Re: Variadic templates - D section on wikipedia

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 10:08 AM, Mathias LANG wrote: On Saturday, 17 January 2015 at 17:42:08 UTC, Andrei Alexandrescu wrote: On 1/17/15 3:34 AM, Douglas Peterson wrote: https://en.wikipedia.org/wiki/Variadic_template Isn't it a pity that the first language supporting them hasn't even a section over

Re: dlang.org should do it in style

2015-01-17 Thread MattCoder via Digitalmars-d
On Saturday, 17 January 2015 at 17:59:07 UTC, Andrei Alexandrescu wrote: In fact yesterday I was showing the main page for a friend on his smartphone (Moto G), and the code example at main page looks awful, since it's all wrapped on mobile. Here is an example what I'm talking about:

Is there major problem to implement 13995 ?

2015-01-17 Thread deadalnix via Digitalmars-d
Context: https://issues.dlang.org/show_bug.cgi?id=13995 This is a recurring and VERY annoying problem. Basically, you'll run continuously into it if you manipulate bitfields. Is there any major technical problem in DMD that would prevent to change the behavior ?

Re: Struggling with shared objects

2015-01-17 Thread Vlad Levenfeld via Digitalmars-d-learn
That's real weird. In D:\D\dmd2\src\phobos\std\concurrency.d(13,13) 13,13 isn't a line number and static assertions should go off during compilation, not runtime.

[Issue 13995] Alias type stringof decay to alias type stringof

2015-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13995 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: Variadic templates - D section on wikipedia

2015-01-17 Thread Douglas Peterson via Digitalmars-d
On Saturday, 17 January 2015 at 11:34:25 UTC, Douglas Peterson wrote: https://en.wikipedia.org/wiki/Variadic_template Isn't it a pity that the first language supporting them hasn't even a section over there ? I invite any expert interested into the task to write the missing D section.

Re: Struggling with shared objects

2015-01-17 Thread anonymous via Digitalmars-d-learn
On Saturday, 17 January 2015 at 21:00:34 UTC, Mike wrote: Hey, all. I have just started using D and I'm really loving it, but I have been caught on a problem. I am trying to share my Client class to a new thread, and after a bit of struggling: I finally got the code to compile! Now I am

Re: Struggling with shared objects

2015-01-17 Thread Mike via Digitalmars-d-learn
Ha, I am so stupid! I forgot to call the socket member before receive! Thank you for the help. I have also removed the pointers. I am now getting this: C:\Users\Michael\Documents\Projects\StompBroker\StompBrokerdmd main.d main.d(11): Error: None of the overloads of 'receive' are callable

[Issue 13995] Alias type stringof decay to alias type stringof

2015-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13995 --- Comment #2 from deadalnix deadal...@gmail.com --- (In reply to Walter Bright from comment #1) Please have a compilable example. alias T = int; void main() { writeln(T.stringof); } Here you go. This should print T, not int. --

Re: css minification

2015-01-17 Thread H. S. Teoh via Digitalmars-d
On Sat, Jan 17, 2015 at 12:52:29PM -0800, Andrei Alexandrescu via Digitalmars-d wrote: I know I am imposing on somebodies else's work here, but compressing resources should really be done. Our webmaster got back. He said compression is more CPU work and on a fat pipe (which we do have) that

Re: dlang.org should do it in style

2015-01-17 Thread H. S. Teoh via Digitalmars-d
On Sat, Jan 17, 2015 at 08:04:56PM +, MattCoder via Digitalmars-d wrote: On Saturday, 17 January 2015 at 19:35:01 UTC, Andrei Alexandrescu wrote: A tested PR would be great. Who can take this? -- Andrei A last note about this: using width:1024px will fix the mobile wrap-text problem,

[Issue 13995] Alias type stringof decay to alias type stringof

2015-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13995 --- Comment #3 from deadalnix deadal...@gmail.com --- Alternatively : enum StringOf(T) = T.stringof; void main() { writeln(StringOf!uint); } This should also print T. --

Re: Eliminate comparison.html?

2015-01-17 Thread Walter Bright via Digitalmars-d
On 1/17/2015 10:04 AM, Andrei Alexandrescu wrote: On 1/17/15 9:51 AM, Mathias LANG wrote: On Saturday, 17 January 2015 at 17:32:43 UTC, Andrei Alexandrescu wrote: In https://github.com/D-Programming-Language/dlang.org/pull/778 I'm proposing replacing http://dlang.org/comparison.html with

Re: css minification

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
I know I am imposing on somebodies else's work here, but compressing resources should really be done. Our webmaster got back. He said compression is more CPU work and on a fat pipe (which we do have) that may make things actually worse. Also, how would this work if we switch to vibe.d? --

Re: Getting a safe path for a temporary file

2015-01-17 Thread Jonathan M Davis via Digitalmars-d-learn
On Saturday, January 17, 2015 13:47:37 via Digitalmars-d-learn wrote: Is it currently possible to get the path to a safe temporary file, i.e. one that is guaranteed to be freshly created and will not override another existing file? There's `std.file.tempDir`, which doesn't create a unique

Re: Struggling with shared objects

2015-01-17 Thread Mike via Digitalmars-d-learn
On Saturday, 17 January 2015 at 21:12:34 UTC, Vlad Levenfeld wrote: That's real weird. In D:\D\dmd2\src\phobos\std\concurrency.d(13,13) 13,13 isn't a line number and static assertions should go off during compilation, not runtime. It is during compilation. When I run dmd myself, I get this:

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread bearophile via Digitalmars-d
Walter Bright: Sure, but you'll need a rationale that is better than why not :-) Often in a language it's a good idea to have only one way to do something. To have two places to put those attributes generates the question: where do you want to put them? And it's a question that wastes

Re: Struggling with shared objects

2015-01-17 Thread Mike via Digitalmars-d-learn
Oh, I said the moment I call I should have reworded that. I meant that the moment I add that line to the code, I get the error. Sorry!

Re: Heady House Hunting with D

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 1/17/15 12:18 PM, Meta wrote: On Wednesday, 14 January 2015 at 03:46:39 UTC, Philpax wrote: Hey everyone, I recently wrote a blog post about how I used D/vibe.d to help find a new house. I haven't publicized it anywhere else yet, so I'm looking forward to what the D community has to say!

Re: dlang.org should do it in style

2015-01-17 Thread via Digitalmars-d
On Sat, Jan 17, 2015 at 02:24:48PM -0800, H. S. Teoh via Digitalmars-d wrote: Also, I am skeptical of a single style that will work for both desktop and mobile browsers. Isn't that what mobile stylesheets are for? If you do your html and style right in the first place, it will be mostly the

Re: dlang.org should do it in style

2015-01-17 Thread H. S. Teoh via Digitalmars-d
On Sat, Jan 17, 2015 at 02:36:03PM -0800, Andrei Alexandrescu via Digitalmars-d wrote: On 1/17/15 2:24 PM, H. S. Teoh via Digitalmars-d wrote: [...] I rather that we use font-based metrics (e.g. 40em) instead of pixel sizes. That way the layout won't break or look horrible if the user changes

Re: post qualifier and template constraint limitation, is there a reason ?

2015-01-17 Thread Walter Bright via Digitalmars-d
On 1/17/2015 4:06 PM, deadalnix wrote: Because I can never remember which one it is and run into the wrong case 50% of the time. I'd assume that I'm not the only one, but, as I have done for ages, do not consider this as an issue big enough to complain. This is the kind of thing that drain you

Re: css minification

2015-01-17 Thread Adam D. Ruppe via Digitalmars-d
On second thought this way works better: http://stackoverflow.com/questions/7509501/how-to-configure-mod-deflate-to-serve-gzipped-assets-prepared-with-assetsprecom though that's some ugly configuration, I hate apache. But I just tested that locally and it all worked from a variety of user

Re: Eliminate comparison.html?

2015-01-17 Thread MattCoder via Digitalmars-d
On Sunday, 18 January 2015 at 01:13:53 UTC, H. S. Teoh via Digitalmars-d wrote: Maybe it can be replaced with one of the frames from: http://eusebeia.dyndns.org/~hsteoh/tmp/mascot.png :-) Well I can see a pattern there: http://i.imgur.com/k0FpgIn.png PS: I hope Walter don't mind! :)

Re: Please help me with improving dlang.org

2015-01-17 Thread weaselcat via Digitalmars-d
On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu wrote: What do you all think? colors feel very geocities-like :) I'm not a designer so I couldn't give any color tips, but I like the functionality of the new design.

Re: GSOC - Holiday Edition

2015-01-17 Thread Craig Dillabaugh via Digitalmars-d
On Saturday, 3 January 2015 at 03:33:29 UTC, Rikki Cattermole wrote: On 3/01/2015 3:59 p.m., Craig Dillabaugh wrote: On Saturday, 3 January 2015 at 00:15:42 UTC, Rikki Cattermole wrote: On 3/01/2015 4:30 a.m., Craig Dillabaugh wrote: On Thursday, 1 January 2015 at 06:19:14 UTC, Rikki

[Issue 13999] New: Associative array literal with static array keys must now have matching key lengths

2015-01-17 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13999 Issue ID: 13999 Summary: Associative array literal with static array keys must now have matching key lengths Product: D Version: D2 Hardware: All OS: All

Re: Please help me with improving dlang.org

2015-01-17 Thread Israel via Digitalmars-d
On Sunday, 18 January 2015 at 04:44:56 UTC, Israel wrote: On Sunday, 18 January 2015 at 02:18:16 UTC, Andrei Alexandrescu wrote: I took the better part of today working on this: https://github.com/D-Programming-Language/dlang.org/pull/780. See demo at http://erdani.com/d/. What do you all

Re: Please help me with improving dlang.org

2015-01-17 Thread Andrei Alexandrescu via Digitalmars-d
On 1/17/15 8:57 PM, Kapps wrote: Oh, looks like it's different in Chrome vs Firefox. In Chrome it's a subtle red tint at the bottom, in Firefox it's an extremely bright red covering most of the button. Ugh. No idea where that comes from, but the original

  1   2   >