Re: Less free underscores in number literals

2010-10-24 Thread Jimmy Cao
I don't know about the Japanese, but Chinese people read like 12亿,3456万,7890. (simplified, traditional version would be exactly the same writing as Japanese). I've never seen it separated with commas though, I always see 1234567890. On Sun, Oct 24, 2010 at 6:59 PM, Jesse Phillips > wrote: > Rai

Re: Quick question about target patforms . . .

2010-10-25 Thread Jimmy Cao
I was talking to a guy about D earlier. He said that C++ has too much momentum, whilst D is just standing still. I'm sure if D were to gain this platform, it would be able to gain serious momentum. Operation Overlord, indeed. On Mon, Oct 25, 2010 at 5:58 PM, Walter Bright wrote: > Peter Alexande

Re: Simulating Multiple Inheritance

2010-10-28 Thread Jimmy Cao
Well, you can't have multiple alias this's right? So then, wouldn't it still only limit to 2 base classes?

Re: GCC 4.6

2010-10-30 Thread Jimmy Cao
On Sat, Oct 30, 2010 at 11:22 PM, Gary Whatmore wrote: > > You could study without interrupting Walter. > > Interrupting? Breaks do interrupt work time, but that's the point. We all need a break, and so does Walter once in a while (I hope). > We should punish the third group more with useless

Re: Marketing D [ was Re: GCC 4.6 ]

2010-10-31 Thread Jimmy Cao
Interestingly, what goes along with the discussion about the perception of D as a language is what happened to IronPython and IronRuby. Microsoft initially showed a whole lot of support for those two languages, and assembled teams to work on both. That caused a big surge in their popularities. O

Re: problems playing audio with mciSendString

2010-11-02 Thread Jimmy Cao
I see a lot of á's which take the place of spaces. On Tue, Nov 2, 2010 at 6:57 PM, Tyro[a.c.edwards] wrote: > Hello all, > > >> I would really appreciate some assistance on this. The intent is to > > create a vocabulary/flashcard program with proper pronunciations. > > Pronunciations are saved a

Re: Spec#, nullables and more

2010-11-05 Thread Jimmy Cao
On Fri, Nov 5, 2010 at 4:31 PM, Denis Koroskin <2kor...@gmail.com> wrote: > On Fri, 05 Nov 2010 23:44:58 +0300, Walter Bright < > newshou...@digitalmars.com> wrote: > >> >> To eliminate null pointers is the same as shooting the canary in your coal >> mine because its twitter annoys you. >> > > I'm

Re: why a part of D community do not want go to D2 ?

2010-11-06 Thread Jimmy Cao
On Sat, Nov 6, 2010 at 6:11 PM, bioinfornatics < bioinfornat...@fedoraproject.org> wrote: > hello, > I have a question (i would like understand), they are many important people > of D community who do not want go to D2, why ? > > thanks for answer > Large amount of bugs? (That's one of the many

Re: nullable done right, was #Spec

2010-11-07 Thread Jimmy Cao
On Sun, Nov 7, 2010 at 2:53 PM, BLS wrote: > The following code does not fail at compile-time or run-time because the if > statement proves that the call is safe: > class Foo > >def bar(s as String?) >if s # same as "if s is not nil" >print Utils.countChars(s, c'x') > > >

Re: Kill implicit joining of adjacent strings

2010-11-11 Thread Jimmy Cao
Freshly added to the normal-priority queue! Thank goodness. On Thu, Nov 11, 2010 at 6:11 PM, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > On 11/11/10 3:33 PM, bearophile wrote: > >> Now this discussion seems settled enough, so I may summarize its results a >> little (please fix t

Re: Error 42: Symbol Undefined __d_throwc

2010-11-20 Thread Jimmy Cao
I can't reproduce it on Windows 7 with dmd 2.050. On Sat, Nov 20, 2010 at 12:45 AM, Tyro[a.c.edwards] wrote: > The following: > > import std.regex; > > void main() > { >string s = "$,"; >replace(s, regex("$",","), ""); // Is this possible? If so, what is > the propper way to do

Re: Explicitly unimplemented computed gotos

2010-11-25 Thread Jimmy Cao
Good suggestion for a D3 feature. Wikipedia says this is also called an "Assigned Goto." It could make writing interpreters more efficient. On Thu, Nov 25, 2010 at 9:55 PM, bearophile wrote: > When I have suggested to add "computed gotos" (similar to the ones of GCC) > to D, Walter has answered t

Re: http://d-programming-language.org/ 404 & small proposal

2010-12-11 Thread Jimmy Cao
I think bold instead of all caps would be better. Either way is fine, though. On Fri, Dec 10, 2010 at 4:05 PM, Lutger Blijdestijn < lutger.blijdest...@gmail.com> wrote: > Andrei Alexandrescu wrote: > > > On 12/9/10 8:04 PM, Andrej Mitrovic wrote: > >> The D website is 404'ing for the library pag

Re: SWIG 4 D2 How To : namespace, friend, operator()

2010-12-12 Thread Jimmy Cao
On Sun, Dec 12, 2010 at 2:13 PM, BLS wrote: > > Last question is about : operator() > > f.i.bool operator()(HWND const a, const HWND b) const > > Klickverbot suggests to use the SWIG's %rename. But how that would look > like in practice ? > > Beside, I guess this is what opImplicitCast shoul

Re: Why is D slower than LuaJIT?

2010-12-23 Thread Jimmy Cao
I hope that in the future more implementations in D can be compared for performance against their equivalent Lua translations. It seems that LuaJIT is a super speedy dynamic language, and it is specifically designed to break into the performance ranges of optimized static languages, which makes it

Re: What's the problem in opensourcing htod?

2010-12-23 Thread Jimmy Cao
On Thu, Dec 23, 2010 at 10:29 AM, Andrej Mitrovic < andrej.mitrov...@gmail.com> wrote: > I think you just need to pass a flag to SWIG when building it to get > D2 support. I've done it a few days ago.. > > On 12/23/10, BLS wrote: > > On 23/12/2010 05:34, Mariusz Gliwiński wrote: > >> wig looks in

Re: D vs C++

2010-12-28 Thread Jimmy Cao
On Mon, Dec 27, 2010 at 11:58 AM, bearophile wrote: > we could type with a few additional keystrokes: > > COMObj objDoc = COMObj.create("Word.Application"); > objDoc.invoke("Open", new COMData[] { new COMString(strFilename) }; > > Now that it's been mentioned, dynamic typing abilities within D wo

Re: D vs C++

2010-12-28 Thread Jimmy Cao
On Tue, Dec 28, 2010 at 3:03 AM, Don wrote: > bearophile wrote: > >> Je'rome M. Berger: >> >> I have almost never used inline assembler even in languages that support >>> it. Of course, this is only a sub-point of your point 6: using inline >>> assembly in a language as slow as Python would be c

Re: const - Best practices

2010-12-31 Thread Jimmy Cao
I'm wondering about this, too.

Re: D for game development

2011-01-01 Thread Jimmy Cao
Right now I'm trying out the approach of making existing C++ 3D engines available for D. SWIG is very instrumental in the process. I hope that after the 64-bit issues are worked out, some special attention can be applied to the D language issue(s) that make it harder for SWIG to effectively genera

Re: Who here actually uses D?

2011-01-01 Thread Jimmy Cao
On Sat, Jan 1, 2011 at 7:10 PM, Adam D. Ruppe wrote: > Robert Clipsham wrote: > > Don't suppose you've got a test case which will reproduce this? > > === > import std.variant; > > void main() { >string a, b; >Variant[string] v; > >v[a] = b; > } > === > > I'm almost certain

Re: Advocacy (Was: Who here actually uses D?)

2011-01-01 Thread Jimmy Cao
On Sun, Jan 2, 2011 at 12:38 AM, Caligo wrote: > > I agree with you on this. For example, Linus Torvald hates C++ and > probably for good reasons. > I think he hates C++ because it's messier than C. Many things are messier than C, including D.

Re: Who here actually uses D?

2011-01-03 Thread Jimmy Cao
On Mon, Jan 3, 2011 at 12:18 PM, Nick Sabalausky wrote: > > Also, as I haven't followed this real closely, what's the current state of > SWIG for D? Fully-usable? > > > It's usable (but not without a little bit of work in writing the .i files.) Take a look at the thing I've been working on in my

Re: eliminate junk from std.string?

2011-01-09 Thread Jimmy Cao
I think the tr, replace, and translate functions are a bit awkward.

Re: Learning D

2011-01-14 Thread Jimmy Cao
Well, if you don't want to get TDPL, you can also learn some other way. I managed to learn some D by just reading the specification and trying things out. Took a bit more time, but it was during the summer and I had hours of free time every single day.

Re: etc.curl

2011-10-17 Thread Jimmy Cao
2011/10/16 simendsjo > On 17.10.2011 02:28, Brad Roberts wrote: > >> What's the state of etc.curl? Where is it in the review queue? >> >> Thanks, >> Brad >> > > And as a side note: Is anyone using it on Windows? > DMD doesn't ship with the necessary libraries, and I cannot find the > correct ver

Re: Vote on std.regex (FReD)

2011-10-23 Thread Jimmy Cao
Yes

Re: RFC curl

2011-11-09 Thread Jimmy Cao
2011/11/9 Brad Anderson > On Wed, Nov 9, 2011 at 9:31 PM, Kapps wrote: > >> Windows is generally a place where people expect to not have to go and >> install other external packages for things like this, but rather have it >> bundled with the installer (zip in this case). Whereas on Linux, you c

Re: Phobos Wish List/Next in Review Queue?

2011-11-20 Thread Jimmy Cao
2011/11/20 Johannes Pfau > > > A replacement for std.json > The biggest thing impairing std.json imo is this bug: http://d.puremagic.com/issues/show_bug.cgi?id=2962

Re: Website message overhaul, pass 2

2011-11-20 Thread Jimmy Cao
2011/11/20 Robert Clipsham > On 20/11/2011 21:49, Vladimir Panteleev wrote: > >> The D Programming Language: Modern Convenience, Modeling Power, Native >>> Efficiency >>> >> >> I'm not sure about the capitalization >> > > Too many capitals! > > The D Programming Language: Modern convenience, mode

Re: Website message overhaul, pass 2

2011-11-20 Thread Jimmy Cao
2011/11/20 Jonathan M Davis > On Sunday, November 20, 2011 23:47:42 Robert Clipsham wrote: > > On 20/11/2011 21:49, Vladimir Panteleev wrote: > > >> The D Programming Language: Modern Convenience, Modeling Power, Native > > >> Efficiency > > > > > > I'm not sure about the capitalization > > > > T

Re: Website message overhaul, pass 2

2011-11-21 Thread Jimmy Cao
2011/11/21 Andrei Alexandrescu > On 11/21/11 12:50 PM, Jonathan M Davis wrote: > >> On Monday, November 21, 2011 12:33:19 Andrei Alexandrescu wrote: >> >>> On 11/21/11 11:56 AM, Robert Clipsham wrote: >>> On my laptop's screen (1280x800, not the smallest) the title doesn't fit on one li

Re: Website message overhaul, pass 2

2011-11-23 Thread Jimmy Cao
2011/11/23 Andrei Alexandrescu > On 11/23/11 11:40 AM, Andrei Alexandrescu wrote: > >> On 11/23/11 11:23 AM, Andrej Mitrovic wrote: >> >>> Please, *please* don't make the website narrow like this: >>> http://www.d-programming-**language.org/new/phobos/std_**algorithm.html

Re: A real Forum for D

2011-11-27 Thread Jimmy Cao
2011/11/27 Nick Sabalausky > "alex" wrote in message > news:jatsnd$f71$1...@digitalmars.com... > > Hi folks, > > > > I just wondered why there still is this uncomfortable and obviously > > outdated newsgroup software in use. > > > > old != outdated > > NGs are better. > > Seriously, what's with

Re: CURL Wrapper: Vote Thread

2011-12-17 Thread Jimmy Cao
YES! Finally an easy way to do SMTP.

Re: *sigh*

2011-12-27 Thread Jimmy Cao
2011/12/27 Caligo > At the moment I don't see how anything serious can be done with D. In the > past few weeks, while working on a _toy_ project, I've encountered several > bugs that have caused a lot of problems and wasted a lot of time. Sorry, > but it's just frustrating. it's gotten to the

Re: Database developer's gentle view on D.

2012-01-01 Thread Jimmy Cao
2012/1/1 Gour > On Sat, 31 Dec 2011 20:28:43 -0800 > bls wrote: > > > A Database independent, ORM based library module is not even matter of > > discussion. That's a pity. > > That would be nice, indeed. > > > Well for us Windoze is the only interesting Desktop platform. > > A _reasonable_ GUI

Re: wxWidgets good news

2012-01-20 Thread Jimmy Cao
2012/1/20 bls > As you may have noticed, SWIG has D support. Means : No need to manually > re-create C++ classes in D. > > Holy crap. > > Ah, kudos to David Nadlinger.

Re: [Newbie!!] can I embed a file in my ecutable?

2011-05-14 Thread Jimmy Cao
Write a .rc file, and compile it with rcc (from Digital Mars). That gives you a .res file. So, for example, let's say you want to embed yolk.zip into an exe. First, write yolk.rc with one line: 300 RCDATA "yolk.zip" Then run this: rcc yolk.rc Then do this: dmd egg.d yolk.res Then the egg.exe s

Re: Curl wrapper

2011-05-16 Thread Jimmy Cao
It looks nice. I plan to use this soon. I hope it can be in phobos soon.

Re: What to do about implicit linking with D DLLs that import Phobos modules?

2011-05-20 Thread Jimmy Cao
Why is it that if you do this: dmd -ofmydll.dll mydll.d dll.d -H then, dmd -lib mydll.d dll.d finally, dmd driver.d mydll.d It works?

Re: Another Log implementation

2011-05-28 Thread Jimmy Cao
I like this design. Can you add an HTTPLogEngine to send data using POST/GET? That would be useful. Perhaps EmailLogEngine should be renamed to SMTPLogEngine.

Re: Curl wrapper

2011-05-29 Thread Jimmy Cao
Is there any reason why this code (using SMTP + Curl): https://gist.github.com/998214 segfaults on Windows but not on Fedora 15? I found an easy fix, but it looks like a bug somewhere that I can't figure out.

Re: Curl wrapper

2011-05-30 Thread Jimmy Cao
On Mon, May 30, 2011 at 12:38 PM, jdrewsen wrote: > Den 30-05-2011 01:16, Jimmy Cao skrev: > > Is there any reason why this code (using SMTP + Curl): >> https://gist.github.com/998214 segfaults on Windows but not on Fedora 15? >> >> I found an easy fix, but it looks

Re: Optional name mangling

2012-07-21 Thread JImmy Cao
On Saturday, 21 July 2012 at 21:17:17 UTC, Stuart wrote: On Saturday, 21 July 2012 at 19:56:37 UTC, Alex Rønne Petersen wrote: Shouldn't you be using extern (Windows) ? Yeah. I changed it to (System) in the hope it'd try *not* mangling the name; and didn't bother changing it back when I disc

Re: Optional name mangling

2012-07-21 Thread JImmy Cao
On Saturday, 21 July 2012 at 23:53:01 UTC, Stuart wrote: On Saturday, 21 July 2012 at 22:51:14 UTC, Adam D. Ruppe wrote: On Saturday, 21 July 2012 at 22:38:32 UTC, Stuart wrote: Attempts to bind to a function called _PathRenameExtension. Which is, naturally, of no use whatsoever. That is the

Re: DIP11: Automatic downloading of libraries

2011-06-14 Thread Jimmy Cao
On Tue, Jun 14, 2011 at 5:25 PM, Andrej Mitrovic wrote: > What is dmdz? > http://www.digitalmars.com/d/archives/digitalmars/D/dmdz_107472.html http://www.digitalmars.com/d/archives/digitalmars/D/dmdz_take_2_110937.html

Re: Implementing Pure Functions

2011-06-16 Thread Jimmy Cao
On Thu, Jun 16, 2011 at 6:07 AM, Kagamin wrote: > Walter Bright Wrote: > > > http://drdobbs.com/blogs/tools/230700070 > > import std.stdio; > > int square_debug(int x) > { >writefln("square(%d)", x); >return x * x; > } > > pure alias int function(int) fp_t; > > pure int square(int x) > {

Re: [upforgrabs] tools/update

2011-06-17 Thread Jimmy Cao
On Fri, Jun 17, 2011 at 11:07 AM, Jacob Carlborg wrote: > > * A particular feature and the most important that I needed was to easy > download files via HTTP, Tango makes this very easy. Now Phobos is getting a > curl wrapper which should make it as easy, don't know the status of that > though. I

Re: Why does toStringz return an immutable(char)*?

2011-06-18 Thread Jimmy Cao
A function with a const(char)* argument can take an immutable(char)* just fine. On Sat, Jun 18, 2011 at 3:36 AM, Jonathan M Davis wrote: > The main purpose of toStringz is to turn a string into a char* which can be > passed to a C function. C doesn't have immutable, and I don't see any gain > in

Re: Curl wrapper round two

2011-06-18 Thread Jimmy Cao
Would an SMTP protocol struct be beneficial? This looks great, thanks for you work. On Sat, Jun 18, 2011 at 3:36 PM, jdrewsen wrote: > Hi, > > I've finally got through all the very constructive comments from the last > review of the curl wrapper and performed the needed changes. > > Here is t

Re: Curl wrapper round two

2011-06-18 Thread Jimmy Cao
Also, why the bool dummy argument in the Curl struct constructor? On Sat, Jun 18, 2011 at 3:52 PM, Jimmy Cao wrote: > > > On Sat, Jun 18, 2011 at 3:36 PM, jdrewsen wrote: > >> Hi, >> >> I've finally got through all the very constructive comments from the

Re: Curl wrapper round two

2011-06-18 Thread Jimmy Cao
On Sat, Jun 18, 2011 at 4:16 PM, jdrewsen wrote: > Den 18-06-2011 22:52, Jimmy Cao skrev: > > Would an SMTP protocol struct be beneficial? >> > > My immediate goal is to provide HTTP support and basic FTP support through > libcurl. I believe these are the most impor

Re: Curl wrapper round two

2011-06-19 Thread Jimmy Cao
On Sun, Jun 19, 2011 at 5:29 AM, jdrewsen wrote: > Very nice. A couple of things I believe would help: > 1, Get rid of MailMessageData and use curl.onSend() and a delegate that > keeps a reference to the message. That way you don't have to use the lower > level Curl.set(infile/readfunction) calls

Re: Curl wrapper round two

2011-06-19 Thread Jimmy Cao
On Sun, Jun 19, 2011 at 3:03 PM, jdrewsen wrote: > Den 19-06-2011 17:57, Jimmy Cao skrev: > >> On Sun, Jun 19, 2011 at 5:29 AM, jdrewsen > >> <mailto:jdrew...@nospam.com>> wrote: >> >>Very nice. A couple of things I believe would help: >>1

Re: DIP11: Automatic downloading of libraries

2011-06-21 Thread Jimmy Cao
On Tue, Jun 21, 2011 at 1:01 PM, Jacob Carlborg wrote: > On 2011-06-21 19:36, Jonathan M Davis wrote: > >> On 2011-06-21 10:17, Jacob Carlborg wrote: >> >>> Maybe I was a bit too harsh saying that std.benchmark maybe wasn't worth >>> adding. On the other hand isn't this what the review process is

Re: Here's a sneaky little bug

2011-06-24 Thread Jimmy Cao
On Fri, Jun 24, 2011 at 1:28 PM, Andrej Mitrovic wrote: > import std.stdio; > > void main() > { >bool state = false; >writeln("state is: " ~ state ? "true" : "false"); > } > > writes: > true > > Whoa, what happened? Well, this should explain things: > >bool state = false; >auto st

Re: Why I'm hesitating to switch to D

2011-06-28 Thread Jimmy Cao
On Tue, Jun 28, 2011 at 5:49 PM, James Fisher wrote: > > Though the site at http://www.dsource.org/projects/tango gives no > indication of that and still evangelizes migration from Phobos to Tango. > Are there people that would disagree with your assessment? > The tango homepage will never say s

Re: 7z (Was: 64 bit DMD binary on the Mac)

2011-06-28 Thread Jimmy Cao
On Tue, Jun 28, 2011 at 9:05 PM, Andrew Wiley wrote: > On Tue, Jun 28, 2011 at 3:13 PM, Nick Sabalausky wrote: > >> "Michel Fortin" wrote in message >> news:iudhf9$2dr9$1...@digitalmars.com... >> > On 2011-06-28 15:39:42 -0400, Walter Bright > > >> > said: >> > >> >> On 6/28/2011 12:13 PM, Jacob

Re: 7z (Was: 64 bit DMD binary on the Mac)

2011-06-28 Thread Jimmy Cao
The 7-Zip archiver supports it. On Tue, Jun 28, 2011 at 11:40 PM, Andrew Wiley wrote: > On Tue, Jun 28, 2011 at 9:17 PM, Jimmy Cao wrote: > >> On Tue, Jun 28, 2011 at 9:05 PM, Andrew Wiley >> wrote: >> >>> On Tue, Jun 28, 2011 at 3:13 PM, Nick Sabalausky wrote

Re: Why I'm hesitating to switch to D

2011-06-29 Thread Jimmy Cao
I think that's a great idea (the common font, colors, logo(?)) We also need a list of tutorials and wikis. Here's the tutorial/wiki I'm working on: http://en.wikibooks.org/wiki/D_(The_Programming_Language) I also think that ddoc isn't as good as many other alternatives, but I don't think it's eas

Re: std.process.system and white spaces

2011-06-29 Thread Jimmy Cao
Try this: std.process.system("cmd /c \"c:\\Program Files\\some program.exe\" > \"c:\\file name\""); If that doesn't work then you may have to do it like this: http://msdn.microsoft.com/en-us/library/ms682499(VS.85) On Wed, Jun 29, 2011 at 5:58 AM, s4mmael wrote: > Hi all! > > I'm trying to run

Re: std.process.system and white spaces

2011-06-30 Thread Jimmy Cao
It's not Phobos' fault, I tried it in Python's os.system on Windows and I got the same result. It's just a quirk I guess. On Thu, Jun 30, 2011 at 3:08 AM, Nick Sabalausky wrote: > "s4mmael" wrote in message > news:iuf0gk$1g5r$1...@digitalmars.com... > > Hi all! > > > > I'm trying to run the fol

Re: D brand identity repository

2011-06-30 Thread Jimmy Cao
On Thu, Jun 30, 2011 at 5:55 AM, Walter Bright wrote: > On 6/30/2011 12:38 AM, James Fisher wrote: > >> (For the moment, I'm leaving the can of worms I've opened in the other >> thread, >> in favour of getting something done.) >> >> I'm proposing that D needs some form of official brand identity.

Re: D brand identity repository

2011-06-30 Thread Jimmy Cao
It looks really good. Try opening it with a web browser like Firefox or Chrome. On Thu, Jun 30, 2011 at 3:05 PM, Walter Bright wrote: > On 6/30/2011 12:35 PM, Mafi wrote: > >> This is my try. >> What do you guys think about it? >> > > Can't render svg files. >

Re: D brand identity repository

2011-06-30 Thread Jimmy Cao
On Thu, Jun 30, 2011 at 3:58 PM, Mafi wrote: > > PS: I license these images with CC-0. > Now on Wikimedia Commons (CC-0): http://commons.wikimedia.org/wiki/File:Dlogo-mafi.png

Re: D brand identity repository

2011-06-30 Thread Jimmy Cao
Those are too shiny. The current logo looks faded to me (would give me the impression that D is a non-serious for-fun language). On Thu, Jun 30, 2011 at 10:45 PM, Caligo wrote: > I like the current D logo, but I found these two: >

Re: D brand identity repository

2011-07-02 Thread Jimmy Cao
What about this? http://i.imgur.com/toykT.png The main problem with the current logo is the gradient/faded background. When the D letter is in white, the extra white in the background just makes the whole thing look too bright and non-solid. On Sat, Jul 2, 2011 at 11:21 AM, bearophile wrote: >

Re: D brand identity repository

2011-07-02 Thread Jimmy Cao
, Jul 2, 2011 at 5:59 PM, James Fisher wrote: >>> >>>> You'll find descriptions of D at the bottom of >>>> http://eegg.github.com/d-brand/. I'd appreciate anyone with a knack >>>> for editing or promotion to contribute. >>>> >>>> >>>> On Sat, Jul 2, 2011 at 5:52 PM, bearophile wrote: >>>> >>>>> Jimmy Cao: >>>>> >>>>> > What about this? >>>>> > >>>>> > http://i.imgur.com/toykT.png >>>>> >>>>> The white border around the biggest moon is too much thin, I think >>>>> (just as before). >>>>> >>>>> Bye, >>>>> bearophile >>>>> >>>> >>>> >>> >> >

Re: D brand identity repository

2011-07-03 Thread Jimmy Cao
On Sun, Jul 3, 2011 at 9:52 AM, Andrei Alexandrescu < seewebsiteforem...@erdani.org> wrote: > On 7/3/11 7:15 AM, James Fisher wrote: > >> >> >> On Sun, Jul 3, 2011 at 11:47 AM, Jacob Carlborg > >> > wrote: >> >>On 2011-07-02 23:01, James Fisher wrote: >> >>So, here'

Re: D Programming Language Specification ebook

2011-07-03 Thread Jimmy Cao
I think free is best. D is seriously lacking free learning resources. And free does not necessarily mean crap, although the current specification needs a bit of fixing here and there. On Sun, Jul 3, 2011 at 9:11 PM, Walter Bright wrote: > I think it would be a good move to make a kindle ebook out

Re: What library functionality would you most like to see in D?

2011-07-31 Thread Jimmy Cao
On Sun, Jul 31, 2011 at 6:13 AM, simendsjo wrote: > On 31.07.2011 07:27, Jonathan M Davis wrote: > >> I think that it would be useful to query the community for what piece of >> library functionality they don't currently have in D and would most like >> to >> see. For instance, there is no offici

Re: What library functionality would you most like to see in D?

2011-08-02 Thread Jimmy Cao
2011/8/2 so > On Tue, 02 Aug 2011 03:51:56 +0300, Brad Roberts < > bra...@slice-2.puremagic.com> wrote: > > I don't think that any gui library belongs in phobos because there's >> essentially no agreement about what cross-platform library is standard. >> Pick any random 10 gui developers about w

Re: What library functionality would you most like to see in D?

2011-08-02 Thread Jimmy Cao
On Tue, Aug 2, 2011 at 11:34 AM, Marco Leise wrote: > Am 02.08.2011, 17:35 Uhr, schrieb Jimmy Cao : > > 2011/8/2 so >> >> On Tue, 02 Aug 2011 03:51:56 +0300, Brad Roberts < >>> bra...@slice-2.puremagic.com> wrote: >>> >>> I don't t

Re: Next to review: Curl Wrapper? (Was: Review Queue Update?)

2011-08-12 Thread Jimmy Cao
On Fri, Aug 12, 2011 at 7:53 AM, dsimcha wrote: > On 8/10/2011 9:22 AM, dsimcha wrote: > >> The review of the new std.path is drawing to a close and it looks like >> another success! (Congratulations, Lars.) Lately, though, the queue of >> stuff to review has been getting rather long, admittedly

Re: CURL review request

2011-08-16 Thread Jimmy Cao
On Tue, Aug 16, 2011 at 10:08 AM, David Nadlinger wrote: > Seems like the reviews are already coming in steadily, but we still have no > review manager – if nobody else steps up until tomorrow, I'd volunteer so we > can get the formal review process going. > > David > > > > On 8/16/11 1:48 PM, Jon

Re: CURL review request

2011-08-17 Thread Jimmy Cao
On Wed, Aug 17, 2011 at 10:41 PM, dsimcha wrote: > On 8/16/2011 7:48 AM, Jonas Drewsen wrote: > >> Hi all, >> >> This is a review request for the curl wrapper. Please read the "known >> issues" in the top of the source file and if possible suggest a solution. >> >> We also need somebody for runni

Re: etc.curl: Formal review begin

2011-08-23 Thread Jimmy Cao
On Tue, Aug 23, 2011 at 4:33 PM, Walter Bright wrote: > > 5. I'd like an NNTP interface so I can get and post newsgroup messages from > D, though I suspect that is beyond the scope of etc.curl. > libcurl doesn't have NNTP support (yet). If someone can write it and contribute to libcurl, that woul

Re: D in the TIOBE top

2011-09-13 Thread Jimmy Cao
I trust Tiobe. Tiobe has recently been correct about Objective-C and C#, in regard to their popularity increase. Why would it not be correct about D'? On Tue, Sep 13, 2011 at 3:07 PM, Sean Kelly wrote: > On Sep 13, 2011, at 8:07 AM, Steven Schveighoffer wrote: > > > On Mon, 12 Sep 2011 20:11:57

Re: Tart language

2011-09-15 Thread Jimmy Cao
On Wed, Sep 14, 2011 at 9:34 PM, Timon Gehr wrote: > > No ctfe. No string mixins. D wins. > > It has macros though: http://docs.tart.googlecode.com/hg/intro/macros.html

Re: Lazy list/range comprehensions

2010-10-03 Thread Jimmy Cao
The Python version: sum(item * item for item in sequence) can be translated to English as: "Sum of (item * item) foreach item in sequence" While the D version: reduce!("a+b")(map!("a*a")(sequence), 0); looks to me like: Reduce! a plus b map! a times a (sequence) (and a random 0 here). On

Re: phobos is failure

2010-10-05 Thread Jimmy Cao
Are you using a translator to translate from Chinese to English? "Read-understand“ doesn't mean "understand" in English, only in Chinese :). Phobos2 is being worked on right now. I think it's getting better. On Tue, Oct 5, 2010 at 5:11 AM, dolive wrote: > Yao G. 写到: > > > On Tue, 05 Oct 2010

Re: What would you rewrite in D?

2010-10-06 Thread Jimmy Cao
Yes! When I was trying to get D to work with HTTPS, it took me a long time to figure out how to do it. I ended up using GnuTLS, somehow, with someone's help. On Wed, Oct 6, 2010 at 9:53 PM, Seth Hoenig wrote: > > Open SSL > http://www.peereboom.us/assl/assl/html/openssl.html > > >

Re: What do people here use as an IDE?

2010-10-12 Thread Jimmy Cao
I'm by no means an "actual D programmer" but I like to use Code::Blocks. I've heard VisualD and Descent are also very nice. There's also a guy working on D.dev ( http://d-dev-ide.blogspot.com/2010/07/ddev-progress-july-2010.html). On Tue, Oct 12, 2010 at 8:57 PM, Michael Stover wrote: > Elephant

Re: What do people here use as an IDE?

2010-10-12 Thread Jimmy Cao
On Tue, Oct 12, 2010 at 9:11 PM, Michael Stover wrote: > Descent is a dead project, replaced by DDT which doesn't have a release. > Also, I'm running Linux at home and Mac at work, so VisualD won't do for > me. Poseidon is also Windows-only. > > Do you use a plugin for Code::Blocks specific for D

Re: What do people here use as an IDE?

2010-10-12 Thread Jimmy Cao
Perhaps it's just like D 1.0 and it's only in maintenance mode, until DDT officially releases. On Tue, Oct 12, 2010 at 9:20 PM, Eric Poggel wrote: > On 10/12/2010 10:11 PM, Michael Stover wrote: > >> Descent is a dead project, replaced by DDT which doesn't have a release. >> Also, I'm running Li

Re: What do people here use as an IDE?

2010-10-12 Thread Jimmy Cao
2010/10/12 so > Don't take it personal but this is one of those : > "if D really wants to compete, a is essential." > > C doesn't have one, neither C++, nor assembly. There are IDE's for them yes > but again, these languages don't have an actual IDE, IDE's are useful mostly > for form based or c

Re: What do people here use as an IDE?

2010-10-12 Thread Jimmy Cao
I agree with you very much here. GUI libraries and IDE support are very low priority items for D. It would be a sad day for everyone if the people working on the dmd and Phobos dropped their current work and started working on an IDE. So, low priority doesn't mean it can't be done until the higher

Re: What do people here use as an IDE?

2010-10-13 Thread Jimmy Cao
Seems to be mainly for Java development. On Wed, Oct 13, 2010 at 6:43 PM, retard wrote: > Wed, 13 Oct 2010 16:24:12 -0700, Jonathan M Davis wrote: > > > On Wednesday, October 13, 2010 16:06:18 sybrandy wrote: > >> On 10/12/2010 09:57 PM, Michael Stover wrote: > >> > Elephant appears dead. Posei

Re: [nomenclature] systems language

2010-10-14 Thread Jimmy Cao
I think that would be too broad. You can write an operating system in Python if you wanted to. http://unununium.org/ On Thu, Oct 14, 2010 at 10:57 AM, Paulo Pinto wrote: > I would consider a systems programming language any language that you > can use to build operating systems, even if a little

Re: zero-copy API

2010-10-14 Thread Jimmy Cao
Just click Download Original in the File menu. And also, in my opinion Google Docs Viewer is an amazing piece of art. I use it as my default PDF opener on Chrome. On Thu, Oct 14, 2010 at 6:33 PM, Nick Sabalausky wrote: > "Andrei Alexandrescu" wrote in message > news:i982i6$kc...@digitalmars.co

Re: duck!

2010-10-15 Thread Jimmy Cao
It doesn't matter if it sounds unintuitive to you right now, eventually if you keep using it, the word will stick. duck! is a nice name, so I'm fine with the idea. On Fri, Oct 15, 2010 at 4:46 PM, JimBob wrote: > > "Andrei Alexandrescu" wrote in message > news:i9ae2n$k9...@digitalmars.com... >

Re: duck!

2010-10-16 Thread Jimmy Cao
I think it's safe to say this is pretty much duck-typing in D (?) So then, if duck! is used, it puts emphasis on what the function allows D to do (duck-typing), while if as! is used, it sounds more intuitive (kinda like ".respond_to?" in Ruby) . So going with my previous statement, if you keep usi

Re: duck!

2010-10-16 Thread Jimmy Cao
According to wikipedia, duck typing is a style of dynamic typing where an object's methods/properties determine what i can do. On Sat, Oct 16, 2010 at 2:14 PM, Kagamin wrote: > Michel Fortin Wrote: > > > The problem is that D doesn't have duck-typing. The adapter pattern > > isn't duck-typing. D

Re: duck!

2010-10-16 Thread Jimmy Cao
Haha! But many people consider the interface system in Go as duck-typing, so imo duck! is a very suitable name. On Sat, Oct 16, 2010 at 2:25 PM, Adam D. Ruppe wrote: > > The problem is that D doesn't have duck-typing. > > But it does and it has for a long time: > > void func(A)(A a) { > a.quack

Re: duck!

2010-10-16 Thread Jimmy Cao
The very important principle here for the naming is making it obvious that D supports an element of duck-typing. Naming it duck! does just that. Advertisability is not what I would use to describe it. How about clarity, articulateness, and lucidity? On Sat, Oct 16, 2010 at 4:52 PM, Michael Chen

Re: log(n) amortized growth for containers

2015-12-13 Thread Jimmy Cao via Digitalmars-d
On Friday, 11 December 2015 at 03:55:27 UTC, Andrei Alexandrescu wrote: Does anyone know of a plotter that supports logarithmic integral? Of course better ideas about all of the above are welcome! Yes, my go-to for my university plotting needs is SageMath. Here is the plot of the two functi

Re: log(n) amortized growth for containers

2015-12-13 Thread Jimmy Cao via Digitalmars-d
On Friday, 11 December 2015 at 03:55:27 UTC, Andrei Alexandrescu wrote: To figure a growth schedule that leads to log(n) work per element, a differential equation must be solved: s(n) / s'(n) = log(x) where s(n) will be the (continuous extension of the) growth schedule's sum, i.e. s(n) = f(1)

Re: Need DUB pull request reviewers

2015-12-16 Thread Jimmy Cao via Digitalmars-d
On Tuesday, 15 December 2015 at 08:12:59 UTC, Sönke Ludwig wrote: We have a current shortage of reviewers for the DUB repository [1]. Martin is more or less the only one apart from me, but we are both currently too busy to get this done in a timely manner. If anyone can spare a few minutes (may

Re: Trying to build dlang.org - what am I doing wrong

2015-12-17 Thread Jimmy Cao via Digitalmars-d
On Thursday, 17 December 2015 at 08:48:21 UTC, wobbles wrote: So - the conversation about the website/documentation piqued my interest a bit and I decided to have a go at making the documentation more readable. However, reading the instructions from: http://wiki.dlang.org/Starting_as_a_Contrib

  1   2   >