Re: Programming in D book, Parallelism chapter

2012-02-20 Thread Jordi Sayol
Congratulations! Is a very educational book. Cheers! -- Jordi Sayol

Re: D forums now live!

2012-02-20 Thread Kapps
On Tuesday, 14 February 2012 at 22:13:42 UTC, Vladimir Panteleev wrote: On Tuesday, 14 February 2012 at 22:00:06 UTC, Walter Bright wrote: http://forum.dlang.org/ This should replace the old miserable web interface to the forums. Thanks to Vladimir Panteleev for an awesome job writing this!

Re: D forums now live!

2012-02-20 Thread Stewart Gordon
On 19/02/2012 20:46, Vladimir Panteleev wrote: snip The forum starts looking bad for me when I make the browser window smaller than 730 pixels in width. Sorry, but I don't think anyone designs web pages for resolutions lower than 800x600 today. Mobile devices still have screens much smaller

Re: D forums now live!

2012-02-20 Thread Regan Heath
On Sun, 19 Feb 2012 18:53:55 -, Vladimir Panteleev vladi...@thecybershadow.net wrote: On Sunday, 19 February 2012 at 16:16:29 UTC, bearophile wrote: I don't understand how you can claim that it takes up vertical space when it's alongside the post. The only case where it would waste

Re: D forums now live!

2012-02-20 Thread Stewart Gordon
On 19/02/2012 14:22, Vladimir Panteleev wrote: On Thursday, 16 February 2012 at 13:22:43 UTC, bearophile wrote: A screen grab: http://oi39.tinypic.com/2s7e1dy.jpg I'm not quite sure what browser or configuration you're using, but the screenshot does not represent the intended look of the

CWrap - higher abstraction level for calling C functions

2012-02-20 Thread Denis Shelomovskij
D has complete (IMHO) compiler support for calling C functions (using extern(C)). But there is a lack of library support. Microsoft .NET Framework has such support, but it's poor (see previous thread about CWrap in digitalmars.D NG). Once original function is properly described in IDL, CWrap

Re: D forums now live!

2012-02-20 Thread Kagamin
May I ask why you don't like the current behavior? http://tinypic.com/r/2ch9ykj/5

Re: D forums now live!

2012-02-20 Thread Vladimir Panteleev
On Monday, 20 February 2012 at 12:50:19 UTC, Regan Heath wrote: I've not see a web forum do this yet, but I guess ideally the message text would flow around the image as you often see in newspapers and magazines. That way lines of message text below the bottom of the image would be full width

Re: D forums now live!

2012-02-20 Thread Vladimir Panteleev
On Monday, 20 February 2012 at 14:55:18 UTC, Kagamin wrote: May I ask why you don't like the current behavior? http://tinypic.com/r/2ch9ykj/5 That's part of the set of problems when using non-standard font sizes.

Re: CWrap - higher abstraction level for calling C functions

2012-02-20 Thread Gour
On Mon, 20 Feb 2012 18:02:49 +0400 Denis Shelomovskij verylonglogin@gmail.com wrote: Hello Denis, D has complete (IMHO) compiler support for calling C functions (using extern(C)). But there is a lack of library support. I'm glad you're working on (another) bindings tool being aware that

Re: D forums now live!

2012-02-20 Thread Vladimir Panteleev
On Monday, 20 February 2012 at 09:14:19 UTC, Kapps wrote: Definitely looks great so far. I'm more than a little surprised that it's so fast despite the server being in France and me being in Canada. One thing that annoys me though is that there is no easy way (short of the back button) to go

Please try rdmd on large projects

2012-02-20 Thread Andrei Alexandrescu
Hello, I just submitted (https://github.com/D-Programming-Language/tools/commit/c77b870fdc5674d7434b03d1767ba831eaac25b1) a change to rdmd that runs one thread per stat when comparing file dates, using David's excellent std.parallelism. In my experiment the change introduces no additional

Re: D forums now live!

2012-02-20 Thread James Miller
As a web-dev-for-food, I can say that trying to design a site that works on all browsers, all the time, is an impossible task. You think that a few odd settings producing this: http://tinypic.com/r/2ch9ykj/5 or this: http://oi39.tinypic.com/2s7e1dy.jpg is horrible. Try using a browser that doesn't

Minimal port of xfbuild to D2

2012-02-20 Thread SiegeLord
I have recently done a minimal port of the xfbuild utility (minimal in the sense that it still uses Tango) to D2. I am aware that Andrej Mitrovic has also done a port of it to D2, but I was scared off by it's alpha status. My port should, in principle, have no new bugs over the original (it seems

Re: Please try rdmd on large projects

2012-02-20 Thread Juan Manuel Cabo
GOOD! Is the missing chmod problem fixable? So that the binary has the same permissions as the D file? If my D file is not readable or runnable by 'other', the binary shouldn't be either. (the cached .deps should have the same readability as the D file too perhaps). I think that this is the big

Re: Please try rdmd on large projects

2012-02-20 Thread Juan Manuel Cabo
Doing: ltrace -e open dmd -deps=outdeps.txt example.d and: ltrace -e read dmd -deps=outdeps.txt example.d shows that dmd opens and reads a lot of phobos and druntime to generate the dependencies of: import std.stdio; void main() { writeln(something);} --jm On 02/21/2012 02:02

Re: Programming in D book, Parallelism chapter

2012-02-20 Thread Ali Çehreli
On 02/20/2012 03:36 AM, David wrote: I've found a type: To simulate long-lasting operations, the following examples call Thread.sleep() from the std.thread module. Thread.sleep is in core.thread (you imported the correct module in the example-code) Thanks! Just fixed. Ali

Re: D forums now live!

2012-02-20 Thread Jacob Carlborg
On 2012-02-21 01:53, James Miller wrote: As a web-dev-for-food, I can say that trying to design a site that works on all browsers, all the time, is an impossible task. You think that a few odd settings producing this: http://tinypic.com/r/2ch9ykj/5 or this: http://oi39.tinypic.com/2s7e1dy.jpg is