Re: Twitter hashtag for D?

2011-04-17 Thread MIURA Masahiro
On 04/16/11 22:41, Spacen Jasset wrote: So what do people currently use for C and C++ then? Not sure, but both #cpp and #cplusplus seem to be popular. As for D, I think we have settled down in #d_lang.

Re: New look feel for std.algorithm

2011-04-06 Thread MIURA Masahiro
Looks clean and professional. I like it. A typo: In Cheat Sheet / Iteration / group, tuple(5, 1) is written twice.

Re: The X Macro

2010-06-24 Thread MIURA Masahiro
On 06/25/2010 07:10 AM, Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Interesting technique that I haven't heard of. However one of my friends, a lead programmer at Sega, says they use similar technique extensively in C++; actually they avoid overusing

Re: Price drop for TDPL on Amazon to $41.10eom

2010-06-15 Thread MIURA Masahiro
Received a collector's edition from Amazon Japan, here in Tokyo!

d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread MIURA Masahiro
Hi, Being happy to see issue 3415 (broken JSON format) fixed, I have written a utility to convert DMD2's JSON output to Exuberent Ctags format. This enables you to tagjump in Vim and other editors/IDEs. It's just 150+ lines, thanks to D2's powerful string handling. Enjoy!

Re: d2tags - converts DMD2's JSON output to Exuberant Ctags format

2010-05-06 Thread MIURA Masahiro
On 05/07/2010 01:48 AM, Andrei Alexandrescu wrote: I wonder if this is of enough general utility to warrant inclusion within the D distribution, along with rdmd. Thoughts? That's my pleasure, actually! One small suggestion, Masahiro: you may want to replace the file reading loop in main()

Re: [OT] Thunderbird 3 vs. 2

2010-03-10 Thread MIURA Masahiro
On 03/11/2010 09:42 AM, Andrei Alexandrescu wrote: The main reason why I went back to Thunderbird 2 is that version 3 eats too much of my precious screen space, displaying useless information such as the group a post was posted to. I couldn't find out how to get the brief subject-poster one line

Re: About switch case statements...

2009-11-16 Thread MIURA Masahiro
On 11/16/2009 02:49 AM, Chad J wrote: So, switch-case statements are a frequent source of nasty bugs. Fixing them (well) requires breaking backwards compatibility. Any chance this will happen for D2? If I remember correctly, one of D's design policies is that a D code that looks like C code

Re: About switch case statements...

2009-11-16 Thread MIURA Masahiro
On 11/16/2009 06:16 PM, Denis Koroskin wrote: If I remember correctly, one of D's design policies is that a D code that looks like C code should behave like C. Are we giving up that policy? Correction: either behave like C, or raise a compile-time error. Yes. I should have written a valid D

Re: About switch case statements...

2009-11-16 Thread MIURA Masahiro
On 11/16/2009 06:55 PM, Denis Koroskin wrote: Either I don't know C, or it breaks the switch, not the for-loop. In both languages. Before *and* after the proposed change. Arrrgh, please don't mind. My mistake. I'm sorry.

Re: About switch case statements...

2009-11-16 Thread MIURA Masahiro
On 11/16/2009 07:05 PM, KennyTM~ wrote: Check with you compiler. In C the inner break doesn't break the for loop. Yes that's right. My mistake.

Re: dmd 1.050 and 2.035 release

2009-10-15 Thread MIURA Masahiro
MIURA Masahiro wrote: I have built QtD r304 (latest) with DMD 2.050, Of course that's 2.035. I'm screwed by rapid releases :-) (I do welcome rapid releases, though)

Re: Communicating between in and out contracts

2009-10-15 Thread MIURA Masahiro
Andrei Alexandrescu wrote: void push(T value); in { auto oldLength = length(); } out { assert(value == top()); assert(length == oldLength + 1); } Another keyword abuse: void push(T value); in { auto in.oldLength = length(); } out { assert(value ==

Re: Revamped concurrency API

2009-10-13 Thread MIURA Masahiro
Jeremie Pelletier wrote: I also don't believe one model is ruling them all. Let me clarity this, just in case I have caused an unnecessary confusion: I think Sean's Erlang-like API is meant to coexist with the current core.thread, and that you can use one or both of them to build higher-level

Re: Revamped concurrency API

2009-10-12 Thread MIURA Masahiro
Sean Kelly wrote: void sendmsg(T)( Pid pid, T val ); final void recvmsg(T...)( Pid pid, T ops ); Pid spawn(T)( T fun ); spawn() is pretty limited so far in that it only spawns threads--I'd expect that function to end up with multiple overloads at some point. Interesting. Future spawn()

Re: dmd 1.048 and 2.033 releases

2009-10-06 Thread MIURA Masahiro
Walter Bright wrote: Please post to bugzilla. Done! http://d.puremagic.com/issues/show_bug.cgi?id=3368

Re: It's awfully quiet

2009-08-17 Thread MIURA Masahiro
Jason House wrote: I hope I'm not spoiling anything, but here are other things I know is going on: 1. An updated gdb patch was submitted. It was tested against the upcoming 2.032 release (and maybe the D1 equivalent?). Walter has made some tweaks to how debug info is written. 2. Bartosz

Re: reddit.com: first Chapter of TDPL available for free

2009-08-03 Thread MIURA Masahiro
Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/975ng/diving_into_the_d_programming_language_tdpl/ Thanks for sharing it! Typos: in section 1.1, there are inchPerFoot's and inchperfoot's.

Re: Twitter hashtag for D?

2009-07-30 Thread MIURA Masahiro
Walter Bright wrote: How about #d-lang ? #dpl ? I just tested those two. Although noone else uses #d-lang, it seems that twitter.com doesn't treat it as a hashtag (because it contains a dash?). #dpl gives a few false positives.

Twitter hashtag for D?

2009-07-29 Thread MIURA Masahiro
Is there a common Twitter hashtag for D? If there isn't any, how about #dlang? #D and #DMD give too many false positives, #D_programming_language is ridiculously too long. I guess that Twitter is not very popular among D fans

Re: dmd 1.046 and 2.031 releases

2009-07-06 Thread MIURA Masahiro
Thanks for the new release! Are case ranges limited to 256 cases? % cat -n foo.d 1 import std.conv; 2 import std.stdio; 3 4 void main(string[] args) 5 { 6 int i = to!int(args[0]); 7 8 switch (i) { 9 case int.min: .. case -1: //

Re: Andrei writes The Case for D

2009-06-29 Thread MIURA Masahiro
Japanese translation is up at: http://dusers.dip.jp/modules/wiki/?Learning%2FThe%20Case%20for%20D We appreciate Andrei's permission to publish the translation.

Re: Andrei writes The Case for D

2009-06-16 Thread MIURA Masahiro
Andrei Alexandrescu wrote: Konnichiwa! I hereby grant you permission to translate the article. Please let me know when you're done, I'll link to the translation. Thank you, I will contact you when finished. Turkish translation already done!? What a quick job.