Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Regan Heath via Digitalmars-d-announce
On Tue, 27 May 2014 22:40:00 +0100, Walter Bright newshou...@digitalmars.com wrote: On 5/27/2014 2:22 PM, w0rp wrote: I'm actually a native speaker of 25 years and I didn't get it at first. Natural language communicates ideas approximately. What bugs me is when people say: I could

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Regan Heath via Digitalmars-d-announce
On Thu, 29 May 2014 20:40:10 +0100, Walter Bright newshou...@digitalmars.com wrote: On 5/29/2014 11:25 AM, Dmitry Olshansky wrote: Agreed. The simple dream of automatically decoding UTF and staying Unicode correct is a failure. Yes. Attempting to hide the fact that strings are UTF-8 is

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Mike James via Digitalmars-d-announce
Walter Bright newshou...@digitalmars.com wrote in message news:lm5924$7r8$1...@digitalmars.com... http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: DGui is alive

2014-05-30 Thread Denis Shelomovskij via Digitalmars-d-announce
26.05.2014 23:08, Andre пишет: On Saturday, 24 May 2014 at 07:20:49 UTC, Denis Shelomovskij wrote: 20.05.2014 17:46, FrankLike пишет: DGui need some other controls,such as imageButton,DataView,GridViewe.t.c. There is no plan to add new controls and I don't see any lacking ones. One can

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/29/14, 9:21 PM, Jesse Phillips wrote: On Wednesday, 28 May 2014 at 07:21:56 UTC, dennis luehring wrote: woudl be nice to have some sort of example by example comparison or as an extension to the page http://dlang.org/cpptod.html I've got two posts complete[1]. Since C++ and D are exactly

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/30/14, 3:53 AM, Andrei Alexandrescu wrote: On 5/29/14, 9:21 PM, Jesse Phillips wrote: On Wednesday, 28 May 2014 at 07:21:56 UTC, dennis luehring wrote: woudl be nice to have some sort of example by example comparison or as an extension to the page http://dlang.org/cpptod.html I've got

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Chris via Digitalmars-d-announce
On Friday, 30 May 2014 at 09:07:54 UTC, Mike James wrote: Walter Bright newshou...@digitalmars.com wrote in message news:lm5924$7r8$1...@digitalmars.com... http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread safety0ff via Digitalmars-d-announce
On Friday, 30 May 2014 at 04:21:18 UTC, Jesse Phillips wrote: 1. http://he-the-great.livejournal.com/52333.html Note that in the following code: import core.memory : GC; int* pxprime = cast(int*)GC.malloc(int.sizeof); version(none) assert(pxprime); // possibly zero GC.malloc

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread w0rp via Digitalmars-d-announce
I received my copy this morning, earlier than I thought I would. I shall check it out over the weekend. I suspect I'll probably know a lot of the things in the book, but I'm the type who likes to watch introductory lectures because there's always something I didn't see before.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Chris via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:46:35 UTC, w0rp wrote: I received my copy this morning, earlier than I thought I would. I shall check it out over the weekend. I suspect I'll probably know a lot of the things in the book, but I'm the type who likes to watch introductory lectures because there's

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Steven Schveighoffer via Digitalmars-d-announce
On Thu, 29 May 2014 21:15:21 -0400, deadalnix deadal...@gmail.com wrote: On Thursday, 29 May 2014 at 19:06:15 UTC, Steven Schveighoffer wrote: Static if is certainly NOT an attribute, it doesn't make any sense. Well... it sorta does. static if does not introduce a new scope, even with {},

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:25:45 UTC, Chris wrote: If you already know D, you don't need to read it cover-to-cover. Just read the sexy bits :) Yea, I also tried to keep the dependencies on previous content to a minimum or at the least, explicit to make jumping around that much easier.

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:46:35 UTC, w0rp wrote: I received my copy this morning, earlier than I thought I would. I still haven't gotten my copies! Hopefully will be here today though. I suspect I'll probably know a lot of the things in the book Yea, especially if you're a regular on

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Chris via Digitalmars-d-announce
On Friday, 30 May 2014 at 13:25:28 UTC, Adam D. Ruppe wrote: On Friday, 30 May 2014 at 11:25:45 UTC, Chris wrote: If you already know D, you don't need to read it cover-to-cover. Just read the sexy bits :) Yea, I also tried to keep the dependencies on previous content to a minimum or at the

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Jesse Phillips via Digitalmars-d-announce
On Friday, 30 May 2014 at 10:56:30 UTC, Andrei Alexandrescu wrote: Nice! I'll post it tomorrow on reddit and friends. You have an unmatched brace after assert(a2[].all!(x = x == 0));. Andrei Actually a bunch of unmatched braces (formatter eats the closing one?) and at least one ;; instead

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Jesse Phillips via Digitalmars-d-announce
On Friday, 30 May 2014 at 11:31:18 UTC, safety0ff wrote: On Friday, 30 May 2014 at 04:21:18 UTC, Jesse Phillips wrote: 1. http://he-the-great.livejournal.com/52333.html Note that in the following code: import core.memory : GC; int* pxprime = cast(int*)GC.malloc(int.sizeof);

Re: DConf 2014 Opening Keynote: State of the struct address - Andrei Alexandrescu

2014-05-30 Thread florin via Digitalmars-d-announce
Hi, In the opening of your keynote you mentioned the need of redesigning dlang.org. I'm more of a webdesigner than programmer so maybe I can lend a hand here. Is there a place where this is being discussed?

Re: DConf 2014 Opening Keynote: State of the struct address - Andrei Alexandrescu

2014-05-30 Thread David Gileadi via Digitalmars-d-announce
On 5/30/14, 8:16 AM, florin wrote: Hi, In the opening of your keynote you mentioned the need of redesigning dlang.org. I'm more of a webdesigner than programmer so maybe I can lend a hand here. Is there a place where this is being discussed? Here's the thread where this was recently discussed

Re: DConf 2014 Opening Keynote: State of the struct address - Andrei Alexandrescu

2014-05-30 Thread florin via Digitalmars-d-announce
Thanks David, I will get the time to read that thread and I'll reply over there. Florin On Friday, 30 May 2014 at 15:25:17 UTC, David Gileadi wrote: Here's the thread where this was recently discussed (with a proposed design):

Re: Scott Meyers' DConf 2014 keynote The Last Thing D Needs

2014-05-30 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 5/29/14, 9:21 PM, Jesse Phillips wrote: On Wednesday, 28 May 2014 at 07:21:56 UTC, dennis luehring wrote: woudl be nice to have some sort of example by example comparison or as an extension to the page http://dlang.org/cpptod.html I've got two posts complete[1]. Since C++ and D are exactly

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Jonathan M Davis via Digitalmars-d-announce
On Fri, 30 May 2014 11:48:56 + Chris via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Friday, 30 May 2014 at 11:46:35 UTC, w0rp wrote: I received my copy this morning, earlier than I thought I would. I shall check it out over the weekend. I suspect I'll

Re: Adam D. Ruppe's D Cookbook now available!

2014-05-30 Thread Dejan Lekic via Digitalmars-d-announce
Walter Bright wrote: http://www.packtpub.com/discover-advantages-of-programming-in-d-cookbook/book http://www.amazon.com/D-Cookbook-Adam-D-Ruppe/dp/1783287217 http://www.reddit.com/r/programming/comments/26pn00/d_cookbook_officially_published_consists_of_d/ After watching Adam's most

Re: D Users Survey: Primary OS?

2014-05-30 Thread Rikki Cattermole via Digitalmars-d
On 30/05/2014 3:53 a.m., Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom Windows 7 for host

Re: D Language Version 3

2014-05-30 Thread Jonathan M Davis via Digitalmars-d
On Thu, 29 May 2014 06:30:05 + Vladimir Panteleev via Digitalmars-d digitalmars-d@puremagic.com wrote: On Wednesday, 28 May 2014 at 22:48:22 UTC, Jonathan M Davis via Digitalmars-d wrote: Please configure your email client to include a text/plain part. Your messages are unreadable to

Re: Web based NG/forum error Don't know how parse text/html message

2014-05-30 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 29 May 2014 at 07:08:06 UTC, w0rp wrote: You could possibly take the HTML and generate plaintext from that by removing tags, replacing unordered lists with * characters, and so on. That's how a lot of mail clients do it when people write their emails with a wysiwyg editor. Yes,

Re: Hardware Traps for Integer Overflow

2014-05-30 Thread Marco Leise via Digitalmars-d
Am Thu, 29 May 2014 20:10:13 + schrieb John Colvin john.loughran.col...@gmail.com: On Thursday, 29 May 2014 at 20:01:25 UTC, Tobias Pankrath wrote: On Thursday, 29 May 2014 at 15:32:54 UTC, Wanderer wrote: I don't see any valid alternatives. What should ideally happen if you increment

Re: D Language Version 3

2014-05-30 Thread francesco cattoglio via Digitalmars-d
On Friday, 30 May 2014 at 06:14:15 UTC, Jonathan M Davis via Digitalmars-d wrote: Yeah, sorry about that. The web interface that I'm forced to use for e-mail when I'm at work just got changed, and it screwed with my settings - and clearly in a very nasty way. It should be fixed now though.

Re: Including Dub with D

2014-05-30 Thread Marco Leise via Digitalmars-d
Am Sat, 24 May 2014 21:32:04 +0200 schrieb Sönke Ludwig slud...@rejectedsoftware.com: * It may also be a good step to solve the chicken-egg issue here, where the argument is that because SDL isn't so common, it shouldn't be used. I think it's a really nice little format that deserves to get

Re: std.benchmark

2014-05-30 Thread David Nadlinger via Digitalmars-d
On Friday, 30 May 2014 at 05:10:31 UTC, Andrei Alexandrescu wrote: On 5/28/14, 10:28 AM, Dicebot wrote: I'd love to see Andrei comment about it to either update its status or remove from review queue. I will work on it but std.allocator takes precedence. If anyone is in a hurry, please take

Re: D Users Survey: Primary OS?

2014-05-30 Thread Atila Neves via Digitalmars-d
Arch Linux 64-bit. On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks.

Re: The GC and performance, but not what you expect

2014-05-30 Thread Atila Neves via Digitalmars-d
I tried modifying the runtime but unfortunately vibe.d doesn't compile with the latest dmd. I don't feel like fixing it or figuring out how to compile gdc either. As mentioned later, I wouldn't be able to claim to beat Java, but I would be able to see how much faster it would go without the lock,

Re: D Users Survey: Primary OS?

2014-05-30 Thread Daniel Kozak via Digitalmars-d
Arch Linux x86_64 On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks.

Re: std.benchmark

2014-05-30 Thread Russel Winder via Digitalmars-d
On Thu, 2014-05-29 at 22:07 -0700, Andrei Alexandrescu via Digitalmars-d wrote: […] It was a solid review cycle that prompted good things to fix and improve. std.benchmark will be part of std iff we make it so. -- Andrei Clearly the data about the things is in the email thread, but might it be

Re: D Users Survey: Primary OS?

2014-05-30 Thread simendsjo via Digitalmars-d
On 05/29/2014 05:53 PM, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom Arch Linux

Re: D Users Survey: Primary OS?

2014-05-30 Thread John via Digitalmars-d
I use Ubuntu 64-bit for my personal use, but my bread winner is always Windows. Though I use both Windows 64-bit and 32-bit, I wouldn't shed a tear if the 32-bit support is neglected or dropped entirely.

Re: The GC and performance, but not what you expect

2014-05-30 Thread Rainer Schuetze via Digitalmars-d
On 29.05.2014 12:09, Atila Neves wrote: The GC is preventing me from beating Java, but not because of collections. It's the locking it does to allocate instead! I don't know about the rest of you but I definitely didn't see that one coming. A lock should not be more than a CAS operation

Re: D Users Survey: Primary OS?

2014-05-30 Thread Jordi Sayol via Digitalmars-d
El 29/05/14 17:53, Tom Browder via Digitalmars-d ha escrit: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Linux Mint Debian Edition (64-bit) -- Jordi

Re: D Users Survey: Primary OS?

2014-05-30 Thread Philippe Sigaud via Digitalmars-d
Linux 64bits here also. In fact, contrary to the OP belief, it's mainly a Linux crowd here. People using Windows regularly complain about it, saying we don't see the way some tools are missing or not working as well on Windows.

Re: D Users Survey: Primary OS?

2014-05-30 Thread Regan Heath via Digitalmars-d
Windows 7 x64

Re: Hardware Traps for Integer Overflow

2014-05-30 Thread John Colvin via Digitalmars-d
On Friday, 30 May 2014 at 07:00:58 UTC, Marco Leise wrote: Am Thu, 29 May 2014 20:10:13 + schrieb John Colvin john.loughran.col...@gmail.com: On Thursday, 29 May 2014 at 20:01:25 UTC, Tobias Pankrath wrote: On Thursday, 29 May 2014 at 15:32:54 UTC, Wanderer wrote: I don't see any valid

Re: D Users Survey: Primary OS?

2014-05-30 Thread Alix Pexton via Digitalmars-d
On 29/05/2014 4:53 PM, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? Win7 64bit A...

Re: D Users Survey: Primary OS?

2014-05-30 Thread Jacob Carlborg via Digitalmars-d
On 2014-05-30 00:13, Kiith-Sa wrote: Or if you're working on tools, don't make them for $OS, make them cross-platform. (I boycott non-crossplatform tools by default) That's not so easy, depending on what you're doing. Some things are done in completely different ways depending on the

Re: D Users Survey: Primary OS?

2014-05-30 Thread Jacob Carlborg via Digitalmars-d
On 2014-05-29 17:53, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. OS X. -- /Jacob Carlborg

Re: The GC and performance, but not what you expect

2014-05-30 Thread Marco Leise via Digitalmars-d
Am Fri, 30 May 2014 10:29:58 +0200 schrieb Rainer Schuetze r.sagita...@gmx.de: On 29.05.2014 12:09, Atila Neves wrote: The GC is preventing me from beating Java, but not because of collections. It's the locking it does to allocate instead! I don't know about the rest of you but I

Re: D Users Survey: Primary OS?

2014-05-30 Thread simendsjo via Digitalmars-d
On 05/30/2014 10:52 AM, Philippe Sigaud via Digitalmars-d wrote: Linux 64bits here also. In fact, contrary to the OP belief, it's mainly a Linux crowd here. People using Windows regularly complain about it, saying we don't see the way some tools are missing or not working as well on Windows.

Re: std.experimental – DConf?

2014-05-30 Thread ponce via Digitalmars-d
On Thursday, 29 May 2014 at 19:41:48 UTC, Wyatt wrote: On Thursday, 29 May 2014 at 19:15:29 UTC, ponce wrote: Now you have another problem, how do you know that something looks good from a design point of view for inclusion in std.experimental? Reviews like for Phobos inclusion? Especially

Re: The GC and performance, but not what you expect

2014-05-30 Thread Nordlöw
On the topic of perf, I found a stupid trick the other day and wrote it down on the wiki: http://wiki.dlang.org/Perf Great tip! Now I want bash completion for it. But I can't seem to get it by reusing _kill in bash-completion:

Re: std.experimental – DConf?

2014-05-30 Thread David Nadlinger via Digitalmars-d
On Friday, 30 May 2014 at 05:20:57 UTC, Andrei Alexandrescu wrote: Also please don't analyze this to death. It's meant to reduce friction, not increase this. I'm not sure whether your comment was just targeted at the naming discussions, but in general, I find it very valid to discuss the

Re: std.experimental – DConf?

2014-05-30 Thread Andrei Alexandrescu via Digitalmars-d
On 5/30/14, 3:35 AM, David Nadlinger wrote: Personally, I rather like the idea of std.experimental being a staging area for libraries that already passed some initial round of review (be it in the form of a dub package or otherwise) to get more widespread attention before being set in stone.

Re: GC experiments. Writing my own GC.

2014-05-30 Thread Nordlöw
Existing GC code: 15700ms (average) My GC code: 500ms (Average) This sounds almost to good to be true! What remains to be fixed before a pull request can be made? /Per

Re: std.experimental – DConf?

2014-05-30 Thread w0rp via Digitalmars-d
On Friday, 30 May 2014 at 10:35:57 UTC, David Nadlinger wrote: On Friday, 30 May 2014 at 05:20:57 UTC, Andrei Alexandrescu wrote: Also please don't analyze this to death. It's meant to reduce friction, not increase this. I'm not sure whether your comment was just targeted at the naming

Re: D Users Survey: Primary OS?

2014-05-30 Thread Mengu via Digitalmars-d
On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom

Re: D Users Survey: Primary OS?

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 09:25:40 UTC, Jacob Carlborg wrote: On 2014-05-30 00:13, Kiith-Sa wrote: Or if you're working on tools, don't make them for $OS, make them cross-platform. (I boycott non-crossplatform tools by default) That's not so easy, depending on what you're doing. Some things

Re: D Users Survey: Primary OS?

2014-05-30 Thread Bruno Medeiros via Digitalmars-d
On 29/05/2014 23:13, Kiith-Sa wrote: But seriously, why does this question keep coming up every few months? Every few months? When was the last time such as survey was made? I don't remember it. -- Bruno Medeiros https://twitter.com/brunodomedeiros

Re: D Users Survey: Primary OS?

2014-05-30 Thread Kagamin via Digitalmars-d
On Friday, 30 May 2014 at 08:53:16 UTC, Philippe Sigaud via Digitalmars-d wrote: People using Windows regularly complain about it I see no issue with that. If people don't like the way some modules integrate with OS, they write their own, but pure D code works just fine.

[OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
Reading through Adam's book at home made me think about how much time I've spent reading / learning / thinking about programs outside the office. I read TDPL in my spare time. I checked out things in the D Cookbook in my spare time and applied them the next day, like loads of other things

Re: D Users Survey: Primary OS?

2014-05-30 Thread Bruno Medeiros via Digitalmars-d
On 29/05/2014 16:53, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom Windows 7 x64

Re: Hardware Traps for Integer Overflow

2014-05-30 Thread Wanderer via Digitalmars-d
Actually such instructions exist since MMX on Intel CPUs. The question is: Can these new SSE instructions replace integer math seemlessly? My opinion is no. When you increment an integer value (any value), you at least expect its lower bit to change. All cryptographic algorithms would crash

Re: [OT] Extra time spent

2014-05-30 Thread Wyatt via Digitalmars-d
On Friday, 30 May 2014 at 11:35:19 UTC, Chris wrote: Are we mad or just passionate? Yes.

Re: GC experiments. Writing my own GC.

2014-05-30 Thread Wanderer via Digitalmars-d
On Friday, 30 May 2014 at 10:45:14 UTC, Nordlöw wrote: Existing GC code: 15700ms (average) My GC code: 500ms (Average) This sounds almost to good to be true! For allocations of less than 128 bytes, each thread is allocated memory from it's own memory pool to avoid false sharing on the

Re: D Users Survey: Primary OS?

2014-05-30 Thread Dicebot via Digitalmars-d
On Friday, 30 May 2014 at 13:27:10 UTC, Bruno Medeiros wrote: On 29/05/2014 22:12, Dicebot wrote: When similar question was asked during one of DConf talks vast majority raised their hands as Linux users ;) It is not that surprising considering D currently is most mature for all kinds of

Performance

2014-05-30 Thread Thomas via Digitalmars-d
I made the following performance test, which adds 10^9 Double’s on Linux with the latest dmd compiler in the Eclipse IDE and with the Gdc-Compiler also on Linux. Then the same test was done with C++ on Linux and with Scala in the Java ecosystem on Linux. All the testing was done on the same

Re: D Users Survey: Primary OS?

2014-05-30 Thread MrSmith via Digitalmars-d
On Thursday, 29 May 2014 at 18:24:57 UTC, Tom Browder via Digitalmars-d wrote: Has anyone done a survey of the primary OS of D users? I (a D newbie) use Debian Linux (64-bit), but I get the feeling that many (if not most) users are on some version of Windows. Thanks. Best regards, -Tom

Re: Performance

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 30 May 2014 at 13:35:59 UTC, Thomas wrote: return (format(%s %f,plus\nLast: , sum) ); I haven't actually run this but my guess is that the format function is the slowish thing here. Did you create a new string in the C version too? gdc ./source/perf/testperf.d -frelease -o

Re: D Users Survey: Primary OS?

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 13:37:47 UTC, Dicebot wrote: On Friday, 30 May 2014 at 13:27:10 UTC, Bruno Medeiros wrote: On 29/05/2014 22:12, Dicebot wrote: When similar question was asked during one of DConf talks vast majority raised their hands as Linux users ;) It is not that surprising

Re: D Users Survey: Primary OS?

2014-05-30 Thread flamencofantasy via Digitalmars-d
On Friday, 30 May 2014 at 13:37:47 UTC, Dicebot wrote: On Friday, 30 May 2014 at 13:27:10 UTC, Bruno Medeiros wrote: On 29/05/2014 22:12, Dicebot wrote: When similar question was asked during one of DConf talks vast majority raised their hands as Linux users ;) It is not that surprising

Re: Performance

2014-05-30 Thread anonymous via Digitalmars-d
On Friday, 30 May 2014 at 13:35:59 UTC, Thomas wrote: I made the following performance test, which adds 10^9 Double’s on Linux with the latest dmd compiler in the Eclipse IDE and with the Gdc-Compiler also on Linux. Then the same test was done with C++ on Linux and with Scala in the Java

Re: Performance

2014-05-30 Thread bearophile via Digitalmars-d
On Friday, 30 May 2014 at 13:35:59 UTC, Thomas wrote: I made the following performance test, which adds 10^9 Double’s on Linux with the latest dmd compiler in the Eclipse IDE and with the Gdc-Compiler also on Linux. Then the same test was done with C++ on Linux and with Scala in the Java

Re: D Users Survey: Primary OS?

2014-05-30 Thread Kagamin via Digitalmars-d
On Friday, 30 May 2014 at 13:37:47 UTC, Dicebot wrote: Also native platform tools being open-source greatly helps in building D ones on top. Source code as a documentation? Yeah, been there, done that.

Re: [OT] Extra time spent

2014-05-30 Thread Kagamin via Digitalmars-d
On Friday, 30 May 2014 at 11:35:19 UTC, Chris wrote: The issue is that most employers don't really appreciate this. Your employer doesn't appreciate professional growth?

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:26:46 UTC, Kagamin wrote: On Friday, 30 May 2014 at 11:35:19 UTC, Chris wrote: The issue is that most employers don't really appreciate this. Your employer doesn't appreciate professional growth? My point was that they are not aware of the fact that we spend a

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:31:26 UTC, Chris wrote: On Friday, 30 May 2014 at 14:26:46 UTC, Kagamin wrote: On Friday, 30 May 2014 at 11:35:19 UTC, Chris wrote: The issue is that most employers don't really appreciate this. Your employer doesn't appreciate professional growth? My point was

Re: Performance

2014-05-30 Thread bearophile via Digitalmars-d
double plus(in uint nSteps) pure nothrow @safe /*@nogc*/ { enum double p0 = 0.0045; enum double p1 = 1.00045452-p0; double tot = 1.346346; auto b = true; foreach (immutable i; 0 .. nSteps) { final switch (b) { case true: tot += p0;

Re: D Users Survey: Primary OS?

2014-05-30 Thread Dicebot via Digitalmars-d
On Friday, 30 May 2014 at 14:07:23 UTC, Chris wrote: Do you have a link to Walter's article? Thanks. I remember reading it on Dr. Dobbs but don't see it right now in Walters article list :(

Re: [OT] Extra time spent

2014-05-30 Thread bearophile via Digitalmars-d
Chris: My point was that they are not aware of the fact that we spend a lot of our spare time learning and improving things. Every programmer worth the job (and even most that are not worth it) uses some time every day or every week to learn. The employer should be aware of this. Otherwise

Re: Performance

2014-05-30 Thread bearophile via Digitalmars-d
This C++ code: double plus(const unsigned int nSteps) { const double p0 = 0.0045; const double p1 = 1.00045452-p0; double tot = 1.346346; bool b = true; for (unsigned int i = 0; i nSteps; i++) { switch (b) { case true: tot += p0;

Re: [OT] Extra time spent

2014-05-30 Thread Etienne via Digitalmars-d
On 2014-05-30 7:35 AM, Chris wrote: Reading through Adam's book at home made me think about how much time I've spent reading / learning / thinking about programs outside the office. I read TDPL in my spare time. I checked out things in the D Cookbook in my spare time and applied them the next

Re: New opportunities for D = ASM.js

2014-05-30 Thread Marco Leise via Digitalmars-d
Am Tue, 13 May 2014 13:38:43 -0400 schrieb Etienne etci...@gmail.com: Also, nothing says a thread pool won't be in the works if it becomes necessary. Besides that JavaScript is single-threaded. That could be a bit of a show stopper. -- Marco

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:35:45 UTC, bearophile wrote: Chris: My point was that they are not aware of the fact that we spend a lot of our spare time learning and improving things. Every programmer worth the job (and even most that are not worth it) uses some time every day or every week

Re: [OT] Extra time spent

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d
I've actually been doing a lot less programming lately than I used to. Even though programming is my day job, I actually write pretty little code; I think I spend more time in meetings talking about direction (or worse yet, reading third party docs, ugh*) than I do actually coding. *

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:45:22 UTC, Etienne wrote: On 2014-05-30 7:35 AM, Chris wrote: Reading through Adam's book at home made me think about how much time I've spent reading / learning / thinking about programs outside the office. I read TDPL in my spare time. I checked out things in

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 14:56:49 UTC, Adam D. Ruppe wrote: I've actually been doing a lot less programming lately than I used to. Even though programming is my day job, I actually write pretty little code; I think I spend more time in meetings talking about direction (or worse yet, reading

Re: [OT] Extra time spent

2014-05-30 Thread Etienne via Digitalmars-d
On 2014-05-30 10:56 AM, Adam D. Ruppe wrote: I kinda want to get back into writing stuff on my spare time, especially now that the book is done, but eh, I'm just so lazy and if given the choice to, for example, go clean up the side of the road with the missionaries or sitting here reading more

Re: New opportunities for D = ASM.js

2014-05-30 Thread via Digitalmars-d
On Friday, 30 May 2014 at 14:49:09 UTC, Marco Leise wrote: Besides that JavaScript is single-threaded. That could be a bit of a show stopper. I think the most promising idea is to support PNACL+JS. If you can write a whole app in only one language and keep the GC high level stuff in

Re: Performance

2014-05-30 Thread Russel Winder via Digitalmars-d
On Fri, 2014-05-30 at 13:35 +, Thomas via Digitalmars-d wrote: I made the following performance test, which adds 10^9 Double’s on Linux with the latest dmd compiler in the Eclipse IDE and with the Gdc-Compiler also on Linux. Then the same test was done with C++ on Linux and with Scala

Re: [OT] Extra time spent

2014-05-30 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 30 May 2014 at 15:09:00 UTC, Chris wrote: Plus, if there's a bug, you're stuck. I like to re-invent the wheel too, because existing wheels might not be fit for your purpose. Aye. But I don't like the term reinvent the wheel because writing new code isn't really an invention most

Re: [OT] Extra time spent

2014-05-30 Thread Chris via Digitalmars-d
On Friday, 30 May 2014 at 15:26:00 UTC, Adam D. Ruppe wrote: On Friday, 30 May 2014 at 15:09:00 UTC, Chris wrote: Plus, if there's a bug, you're stuck. I like to re-invent the wheel too, because existing wheels might not be fit for your purpose. Aye. But I don't like the term reinvent the

Re: The GC and performance, but not what you expect

2014-05-30 Thread via Digitalmars-d
On Friday, 30 May 2014 at 09:46:10 UTC, Marco Leise wrote: simplicity. But as soon as I added a single CAS I was already over the time that TCMalloc needs. That way I learned that CAS is not as cheap as it looks and the fastest allocators work thread local as long as possible. 22 cycles

Re: Ref counting for CTFE?

2014-05-30 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 29 May 2014 23:11:25 -0400, Puming zhaopum...@gmail.com wrote: On Thursday, 29 May 2014 at 20:44:43 UTC, Dicebot wrote: I'd love to see command-line flag that enables garbage collection in compiler (disabled by default). It does not matter how fast compiler is if it crashes on big

Re: Performance

2014-05-30 Thread Orvid King via Digitalmars-d
On 5/30/2014 9:30 AM, bearophile wrote: double plus(in uint nSteps) pure nothrow @safe /*@nogc*/ { enum double p0 = 0.0045; enum double p1 = 1.00045452-p0; double tot = 1.346346; auto b = true; foreach (immutable i; 0 .. nSteps) { final switch (b) { case

Re: The GC and performance, but not what you expect

2014-05-30 Thread via Digitalmars-d
This is also one of many good reasons to not make allocators library based, but do it in the compiler and backend. That also allows you do allocate multiple objects in a single CAS. (i.e. the compiler collects multiple allocs calls and replace it with one)

Re: [OT] Extra time spent

2014-05-30 Thread currysoup via Digitalmars-d
On Friday, 30 May 2014 at 14:45:22 UTC, Etienne wrote: On 2014-05-30 7:35 AM, Chris wrote: Reading through Adam's book at home made me think about how much time I've spent reading / learning / thinking about programs outside the office. I read TDPL in my spare time. I checked out things in

Re: std.experimental – DConf?

2014-05-30 Thread Steven Schveighoffer via Digitalmars-d
On Thu, 29 May 2014 20:27:00 -0400, Marco Leise marco.le...@gmx.de wrote: Am Thu, 29 May 2014 18:35:49 +0200 schrieb Joseph Rushton Wakeling via Digitalmars-d digitalmars-d@puremagic.com: On 29/05/14 16:47, Steven Schveighoffer via Digitalmars-d wrote: javax was the experimental branch for

Re: The GC and performance, but not what you expect

2014-05-30 Thread Brad Anderson via Digitalmars-d
On Friday, 30 May 2014 at 05:45:52 UTC, Andrei Alexandrescu wrote: Thing is the allocation patterns in D and Java are mightily different. Java does need a good GC because it allocates everywhere for everything. I think we need to come up with our own measurements and statistics when it comes

Re: D Users Survey: Primary OS?

2014-05-30 Thread H. S. Teoh via Digitalmars-d
On Fri, May 30, 2014 at 02:37:28PM +, Dicebot via Digitalmars-d wrote: On Friday, 30 May 2014 at 14:07:23 UTC, Chris wrote: Do you have a link to Walter's article? Thanks. I remember reading it on Dr. Dobbs but don't see it right now in Walters article list :( Is it this one?

Re: [OT] Extra time spent

2014-05-30 Thread Ary Borenszweig via Digitalmars-d
On 5/30/14, 12:08 PM, Chris wrote: On Friday, 30 May 2014 at 14:56:49 UTC, Adam D. Ruppe wrote: I've actually been doing a lot less programming lately than I used to. Even though programming is my day job, I actually write pretty little code; I think I spend more time in meetings talking about

Re: [OT] Extra time spent

2014-05-30 Thread H. S. Teoh via Digitalmars-d
On Fri, May 30, 2014 at 03:25:59PM +, Adam D. Ruppe via Digitalmars-d wrote: On Friday, 30 May 2014 at 15:09:00 UTC, Chris wrote: Plus, if there's a bug, you're stuck. I like to re-invent the wheel too, because existing wheels might not be fit for your purpose. That's why I swore off

Re: std.experimental – DConf?

2014-05-30 Thread H. S. Teoh via Digitalmars-d
On Fri, May 30, 2014 at 12:06:34PM -0400, Steven Schveighoffer via Digitalmars-d wrote: [...] By saying up front this is experimental, expect breakage, the policy is clear, and complaints are shrugged off, nobody has anyone to blame but themselves. You may argue Yeah, but javax was supposed

Re: std.experimental – DConf?

2014-05-30 Thread Chris Williams via Digitalmars-d
On Friday, 30 May 2014 at 01:39:26 UTC, Jonathan M Davis via Digitalmars-d wrote: On Thu, 29 May 2014 20:55:32 + Dicebot via Digitalmars-d digitalmars-d@puremagic.com wrote: I have discussed this with Andrei shortly after he has merged PR that adds `std.experimental` to Phobos. Looks like

Re: D Language Version 3

2014-05-30 Thread Jonathan M Davis via Digitalmars-d
On Fri, 30 May 2014 07:02:33 + francesco cattoglio via Digitalmars-d digitalmars-d@puremagic.com wrote: On Friday, 30 May 2014 at 06:14:15 UTC, Jonathan M Davis via Digitalmars-d wrote: Yeah, sorry about that. The web interface that I'm forced to use for e-mail when I'm at work just

  1   2   >