Re: Reflection?

2010-10-26 Thread Rory McGuire
To get some basic runtime reflection one could use dmd's json dump. and then use import("filename.json") to get the json into the executable. Then make a class which makes it more usable as a reflection system. You can try it out by compiling this code twice, first time with a dummy jsontest.js

Re: Aligning data in memory

2011-09-19 Thread Rory McGuire
surely you would have to use movaps XMM0, v.v; because the alignment would only happen inside the struct? On Sat, Sep 17, 2011 at 8:11 PM, Adam D. Ruppe wrote: > Perhaps: > > void foo() { >struct V { align(16) float[4] v = [1.0f, 2.0f, 3.0f, 4.0f]; } >V v; >asm { >

Re: Should unreachable code be considered an error?

2011-09-20 Thread Rory McGuire
Perhaps a warning, there are to many ways to make "unreachable" code reachable. In other words, it is surely too much work to implement currently. Plus I find it annoying in Java when that happens, because often I'm just quickly testing a different return. -Rory On Mon, Sep 19, 2011 at 2:06 AM, S

Re: Aligning data in memory

2011-09-21 Thread Rory McGuire
Would that even be true in the case where you specify a alignment ( keeping in mind that the alignment is for that specific variable)? On Tue, Sep 20, 2011 at 7:25 PM, Peter Alexander < peter.alexander...@gmail.com> wrote: > On 19/09/11 9:17 AM, Rory McGuire wrote: > >> sur

Re: Anonymous function syntax

2011-09-22 Thread Rory McGuire
Perhaps bearofile refers to this: import std.stdio; string getit(alias runme)() { return runme("b","da"); } string getit2(string delegate(string,string) dg) { return dg("b", "da"); } void main() { writefln("this is a %s", getit!((a,b){ return "lam"~a~b; })()); /+

Re: dmd for ARM

2011-09-28 Thread Rory McGuire
Awesome!!! On Wed, Sep 28, 2011 at 6:33 AM, dsimcha wrote: > On 9/27/2011 11:52 PM, Jesse Phillips wrote: > >> GDC is only one release behind DMD: >> https://bitbucket.org/goshawk/**gdc/ >> wiki/Home >> > > Actually, that wiki is outdated. GDC is fully up to

Re: std.getopt suggestion

2011-09-29 Thread Rory McGuire
+1 On Wed, Sep 28, 2011 at 9:44 PM, Jonathan M Davis wrote: > Okay. I have a suggestion for an improvement to std.getopt that I think > merits > a bit of discussion. There's currently a pull request with some > improvements > for getopt which are mostly internal changes rather than API changes (

Re: I'm holding it in my hands

2010-06-10 Thread Rory McGuire
I cancelled my order with amazon and bought it on informit. Its already shipped. and I bought it yesturday. On Wed, 09 Jun 2010 23:37:20 +0200, filgood wrote: It's worse in the UK: Not yet dispatched Dispatch Estimate: 28 July 2010 - 29 July 2010 Delivery Estimate: 3 Aug 2010 - 6 Aug 201

Re: Price drop for TDPL on Amazon to $41.10

2010-06-14 Thread Rory McGuire
I cancelled with amazon last week and ordered with informit. Got it this morning. On Mon, 14 Jun 2010 11:21:40 +0200, filgood wrote: Although the price is very good on Amazon, one needs to wait till August to get a copy of the book. I've followed the advice from some other people on the NG, c

Re: Price drop for TDPL on Amazon to $41.10

2010-06-14 Thread Rory McGuire
On Mon, 14 Jun 2010 11:59:41 +0200, Rory McGuire wrote: I cancelled with amazon last week and ordered with informit. Got it this morning. On Mon, 14 Jun 2010 11:21:40 +0200, filgood wrote: Although the price is very good on Amazon, one needs to wait till August to get a copy of the book

Re: Review: std.msgpack

2010-06-18 Thread Rory McGuire
On Fri, 18 Jun 2010 06:29:50 +0200, Andrei Alexandrescu wrote: There's one larger submission that needs review - Masahiro Nakagawa's std.msgpack. I think it would be great if this community established a review process. To do so, we should abstract away starting from at least one review

Re: Review: std.msgpack

2010-06-18 Thread Rory McGuire
On Fri, 18 Jun 2010 06:29:50 +0200, Andrei Alexandrescu wrote: There's one larger submission that needs review - Masahiro Nakagawa's std.msgpack. I think it would be great if this community established a review process. To do so, we should abstract away starting from at least one revie

Re: Where will D be in 2015 in the programming language ecosphere?

2010-06-21 Thread Rory McGuire
On Sat, 19 Jun 2010 15:04:21 +0200, Justin Johansson wrote: Me thinks this both a polite question and a question due of realistic answers. How doth thou respond? Not sure, but what I do think is: If D ran on ARM it would be a favorite for mobile devices, often programs are just too slo

Re: A web server with D

2010-06-21 Thread Rory McGuire
On Sun, 20 Jun 2010 13:54:26 +0200, Mengu wrote: Hi, I have been interested in and learning D for a while and currently developing a web development IDE with it. I can say that I have a middle level knowledge that I have been trying to increase. Anyway. I want to develop a web server fo

Re: enforce()?

2010-06-21 Thread Rory McGuire
On Mon, 21 Jun 2010 06:08:01 +0200, Leandro Lucarella wrote: Walter Bright, el 20 de junio a las 19:32 me escribiste: Leandro Lucarella wrote: >Why will you assume I'm so dumb that I won't use your >interface correctly? Windows has had major legacy compatibility issues because critical thir

Re: finding a circular dependency

2010-06-22 Thread Rory McGuire
On Mon, 21 Jun 2010 20:51:01 +0200, Steven Schveighoffer wrote: I've been trying to get a modified version of std.process to compile (with Lars K's changes) for windows, and phobos finally compiled. So I built a little test program, compiled it, and I get the following error message: o

Re: Latest string_token Code

2010-06-22 Thread Rory McGuire
I think sizeof is a property, e.g. char.sizeof or: struct A { int a; char[10] b; } A.sizeof A a; a.sizeof you get the picture. (Have I got it?) -Rory On Tue, 22 Jun 2010 12:07:37 +0200, Ben Hanson wrote: Hi there, I've basically got the string_token class working no

Re: finding a circular dependency

2010-06-22 Thread Rory McGuire
On Tue, 22 Jun 2010 13:02:53 +0200, Steven Schveighoffer wrote: On Tue, 22 Jun 2010 03:14:38 -0400, Rory McGuire wrote: On Mon, 21 Jun 2010 20:51:01 +0200, Steven Schveighoffer wrote: I've been trying to get a modified version of std.process to compile (with Lars K's ch

Re: Latest string_token Code

2010-06-22 Thread Rory McGuire
"the string"w gives you 16bit I believe. postfix with a 'd' should give you 32bit. On Tue, 22 Jun 2010 15:13:06 +0200, Ben Hanson wrote: Here's the latest with naming convention (hopefully) followed. I've implemented my own squeeze() function and used sizeof in the memmove calls. How

Re: Latest string_token Code

2010-06-22 Thread Rory McGuire
On Tue, 22 Jun 2010 15:31:14 +0200, Ben Hanson wrote: == Quote from Rory McGuire (rmcgu...@neonova.co.za)'s article On Tue, 22 Jun 2010 15:13:06 +0200, Ben Hanson wrote: > Here's the latest with naming convention (hopefully) followed. I've > implemented my > own squ

Re: Latest string_token Code

2010-06-22 Thread Rory McGuire
On Tue, 22 Jun 2010 16:37:38 +0200, Ben Hanson wrote: == Quote from Rory McGuire (rmcgu...@neonova.co.za)'s article On Tue, 22 Jun 2010 15:31:14 +0200, Ben Hanson wrote: > == Quote from Rory McGuire (rmcgu...@neonova.co.za)'s article >> On Tue, 22 Jun 2010 15:13:0

Re: Latest string_token Code

2010-06-23 Thread Rory McGuire
On Tue, 22 Jun 2010 22:59:55 +0200, Ben Hanson wrote: == Quote from bearophile (bearophileh...@lycos.com)'s article Ben Hanson: Even if you are an expert C++ programmer, I can express few more comments about your code, to show how to program in D (here I comment only the first example of

Re: Errors in TDPL

2010-06-23 Thread Rory McGuire
On Tue, 22 Jun 2010 23:37:59 +0200, Andrei Alexandrescu wrote: Walter, can we require a semicolon please? +1 With the semi colon missing its as bad as: for (;i<100;i++); writeln(i); esp. with large amount of code Andrei Rory

Re: GUI Library for D2+Phobos

2010-06-25 Thread Rory McGuire
On Wed, 23 Jun 2010 23:30:16 +0200, Trass3r wrote: http://www.dsource.org/projects/qtd ! When I wanted to make a shaped window application on linux qtd was the only lib that worked easily.

Re: The X Macro

2010-06-25 Thread Rory McGuire
On Fri, 25 Jun 2010 15:11:53 +0200, Justin Johansson wrote: Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Even though D doesn't have a text macro preprocessor, this can be done using string mixins and a bit of CTFE. Very cool article. Thanks Walter, I

Re: The X Macro

2010-06-26 Thread Rory McGuire
On Fri, 25 Jun 2010 15:35:30 +0200, Justin Johansson wrote: Rory McGuire wrote: On Fri, 25 Jun 2010 15:11:53 +0200, Justin Johansson wrote: Walter Bright wrote: http://www.drdobbs.com/blog/archives/2010/06/the_x_macro.html Even though D doesn't have a text macro preprocessor, thi

Re: Renaming std.conv

2010-06-28 Thread Rory McGuire
On Mon, 28 Jun 2010 17:36:15 +0200, Sean Kelly wrote: Andrei Alexandrescu Wrote: We haven't reached consensus on where to put enforce() and friends. Any other ideas? Of the above, I like std.checks. Better yet, how about defining std.exception that includes a host of exception-related func

Re: Renaming std.conv

2010-06-28 Thread Rory McGuire
On Mon, 28 Jun 2010 18:01:55 +0200, Sean Kelly wrote: Rory McGuire Wrote: On Mon, 28 Jun 2010 17:36:15 +0200, Sean Kelly wrote: > Andrei Alexandrescu Wrote: >> >> We haven't reached consensus on where to put enforce() and friends. Any >> other ideas? Of th

Re: change mixins

2010-06-29 Thread Rory McGuire
On Tue, 29 Jun 2010 16:05:26 +0200, BCS wrote: Hello Simen, Walter Bright wrote: Right now, mixins are defined and used as: template foo(T) { declarations... } mixin foo!(int) handle; The proposal is to switch it around: mixin template foo(T) { declarations... } foo!(int) handle; Wh

Re: mangle

2010-07-02 Thread Rory McGuire
On Fri, 02 Jul 2010 18:17:03 +0200, Ellery Newcomer wrote: On 07/01/2010 08:16 PM, Adam Ruppe wrote: http://dpldocs.info/std.demangle import std.demangle; import std.stdio; void main(){ writeln(demangle("_D3std6random156__T11RandomCoverTAiTS3std6random98__T21MersenneTwisterEngineTkVi32V

Re: What are AST Macros?

2010-07-11 Thread Rory McGuire
On Sun, 11 Jul 2010 15:29:36 +0200, Michel Fortin wrote: On 2010-07-11 08:47:26 -0400, "Lars T. Kyllingstad" said: On Sun, 11 Jul 2010 14:26:51 +0200, Philippe Sigaud wrote: That's interesting. Do you have a link or any text I could read on that? String mixins sure are powerful, but

Re: What are AST Macros?

2010-07-11 Thread Rory McGuire
On Sun, 11 Jul 2010 21:55:30 +0200, Philippe Sigaud wrote:On Sun, Jul 11, 2010 at 18:58, Rory McGuire <rmcgu...@neonova.co.za> wrote: On Sun, 11 Jul 2010 15:29:36 +0200, Michel Fortin <michel.for...@michelf.com> wrote:        int num = 1;        string result = substitute!&

Re: getNext

2010-07-12 Thread Rory McGuire
On Tue, 13 Jul 2010 06:38:55 +0200, Andrei Alexandrescu wrote: On 07/12/2010 11:21 PM, Jonathan M Davis wrote: On Monday 12 July 2010 20:48:05 Andrei Alexandrescu wrote: I think I figured out a comfortable and all-encompassing means to define a simplified interface for an input range. Cu

Re: Why will the delete keyword be removed?

2010-07-15 Thread Rory McGuire
On Thu, 15 Jul 2010 09:08:24 +0200, Vladimir Panteleev wrote: On Thu, 15 Jul 2010 04:00:49 +0300, Jonathan M Davis wrote: Ideally, you'd want things to blow up when such an object was used, with it clearly indicating that it was because you used an object which isn't supposed to exist an

Re: C++ Stylistics

2010-07-19 Thread Rory McGuire
On Sun, 18 Jul 2010 23:21:14 +0200, BLS wrote: On 18/07/2010 11:42, Justin Johansson wrote: bearophile wrote: A Google talk in 2008 by Kevlin Henney, "C++ Stylistics": http://www.youtube.com/watch?v=zh8W4ZglOlw Some of the limits/problems of C++ he talks about are patched by Qt, like signals

Re: C++ Stylistics

2010-07-19 Thread Rory McGuire
On Mon, 19 Jul 2010 10:52:51 +0200, Rory McGuire wrote: On Sun, 18 Jul 2010 23:21:14 +0200, BLS wrote: On 18/07/2010 11:42, Justin Johansson wrote: bearophile wrote: A Google talk in 2008 by Kevlin Henney, "C++ Stylistics": http://www.youtube.com/watch?v=zh8W4ZglOlw Some of

Re: C++ Stylistics

2010-07-19 Thread Rory McGuire
On Mon, 19 Jul 2010 20:33:59 +0200, BLS wrote: On 19/07/2010 10:58, Rory McGuire wrote: template isProperty(alias func) if (isCallable!(func)) { enum isProperty = (functionAttributes!(func) & FunctionAttribute.PROPERTY)==0 ? false : true; } THANKS Rory isProperty() should be

Re: Higher level built-in strings

2010-07-20 Thread Rory McGuire
On Tue, 20 Jul 2010 01:51:51 +0200, Jesse Phillips wrote: What about: struct String { string items; alias items this; } And add the needed functions you wish to have in string and it will still work in existing functions that operate on immutable(char)[] You shouldn't ne

Re: Higher level built-in strings

2010-07-20 Thread Rory McGuire
On Tue, 20 Jul 2010 16:08:06 +0200, Jesse Phillips wrote: But then you can't overload operators. On Tue, Jul 20, 2010 at 12:54 AM, Rory McGuire wrote: On Tue, 20 Jul 2010 01:51:51 +0200, Jesse Phillips wrote: What about: struct String { string items; alias items

Re: Higher level built-in strings

2010-07-20 Thread Rory McGuire
On Tue, 20 Jul 2010 16:51:57 +0200, Rory McGuire wrote: On Tue, 20 Jul 2010 16:08:06 +0200, Jesse Phillips wrote: But then you can't overload operators. On Tue, Jul 20, 2010 at 12:54 AM, Rory McGuire wrote: On Tue, 20 Jul 2010 01:51:51 +0200, Jesse Phillips wrote: What

Re: Higher level built-in strings

2010-07-20 Thread Rory McGuire
On Tue, 20 Jul 2010 18:35:12 +0200, Simen kjaeraas wrote: Rory McGuire wrote: [snip] Rory, is there something wrong with your newsreader? I keep seeing your posts as replies only to the top post. I'm using opera mail. Any suggestions for Linux+Windows, excluding thunderbird(slow)?

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory McGuire
On Wed, 21 Jul 2010 03:58:33 +0200, bearophile wrote: Andrei Alexandrescu: emplace(), defined in std.conv, is relatively new. I haven't yet added emplace() for class objects, and this is as good an opportunity as any: http://www.dsource.org/projects/phobos/changeset/1752 Thank you, I have

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory Mcguire
Rory McGuire wrote: > On Wed, 21 Jul 2010 03:58:33 +0200, bearophile > wrote: > >> Andrei Alexandrescu: >> >>> emplace(), defined in std.conv, is relatively new. I haven't yet added >>> emplace() for class objects, and this is as good an opp

Re: dsource down?

2010-07-21 Thread Rory Mcguire
Mike James wrote: > Is the dsource site down for maintenance? > > -=mike=- Sometimes its just inaccessible, been like that for years now.

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory Mcguire
bearophile wrote: > Rory Mcguire: >> Takes 5m26.776s in Python. >> Takes 0m1.008s in Java. > > (I suggest you to round away milliseconds, they are never significant in > such benchmarks.) Python 2.7 uses its GC a bit better, so it can be a bit > faster. Your Java cod

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory Mcguire
Rory Mcguire wrote: > bearophile wrote: > >> Rory Mcguire: >>> Takes 5m26.776s in Python. >>> Takes 0m1.008s in Java. >> >> (I suggest you to round away milliseconds, they are never significant in >> such benchmarks.) Python 2.7 uses its GC a bit

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory Mcguire
Dmitry Olshansky wrote: > now replace the orignal while loop with this: > while (i < N) { > auto testObject = Scoped!Test(i, i, i, i, i, i); > //assuming we have aforementioned evil function func(Test t), > that keeps global reference to t. > //fun(testObject); //uncoment to get an compile error -

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory Mcguire
Andrei Alexandrescu wrote: > On 07/21/2010 01:59 PM, Rory Mcguire wrote: >> Dmitry Olshansky wrote: >> >>> now replace the orignal while loop with this: >>> while (i< N) { >>> auto testObject = Scoped!Test(i, i, i, i, i, i); >>> //ass

Re: emplace, scope, enforce [Was: Re: Manual...]

2010-07-21 Thread Rory Mcguire
Andrei Alexandrescu wrote: > Here's the code I used for testing: > My timings with your code, I included the one without -inline because I havn't been using -inline in my other tests: $ dmd -O -release -inline program1_2.d $ time ./program1_2 real0m0.526s user0m0.520s sys 0m0.00

Phobos2 networking

2010-07-21 Thread Rory Mcguire
Hi, Who is working on the phobos2 networking code? Is there somewhere I can get it from to try it? -Rory

Re: GC & IRC Server

2010-07-27 Thread Rory Mcguire
Sean Kelly wrote: > Mengu Wrote: > >> Hi all, >> >> I was reading an IRC server's codes which was C++ and thought how >> possible it was with D and started a discussion in the #d room in >> freenode. Yet I'm very confused right now. Please go ahead and read the >> logs here: http://pastie.org/10

Re: FFT Lib?

2010-07-27 Thread Rory Mcguire
dsimcha wrote: > I'm going to need an FFT library to perform some convolutions at some > point > soon. Two absolute, non-negotiable requirements are that it be written in > pure D and that it be Boost or compatibly (i.e. zlib or public domain) > licensed. I also prefer "simple and good enough" o

Re: GC & IRC Server

2010-07-29 Thread Rory Mcguire
Sean Kelly wrote: > Rory Mcguire Wrote: >> >> Surely all programs that have logging use the GC extensively? I have had >> a problem with Java and log4j where the entire heap gets used up and its >> mostly because of unfreed concatenation of strings for logging e.g.:

Unfortunately delete is a keyword

2010-07-29 Thread Rory Mcguire
Inspired by the recent thread "Proposal for dual memory management" I wondered how long it would take to change scoped into heaped. Now I wish I could call the free method delete. I didn't put the full test source here because I had to copy some stuff from phobos svn. Please let me know what you

Re: Interest in std.algorithm.joiner?

2010-07-29 Thread Rory Mcguire
Andrei Alexandrescu wrote: > Steven Schveighoffer wrote: >> On Tue, 27 Jul 2010 14:12:34 -0400, Andrei Alexandrescu >> wrote: >> >>> Steven Schveighoffer wrote: On Tue, 27 Jul 2010 11:21:08 -0400, Andrei Alexandrescu wrote: > We have std.algorithm.splitter which splits a rang

Re: Unfortunately delete is a keyword

2010-07-29 Thread Rory Mcguire
Kagamin wrote: > Rory Mcguire Wrote: > >> Inspired by the recent thread "Proposal for dual memory management" I >> wondered how long it would take to change scoped into heaped. > > You can also try to implement switch, for and while statements in a >

Re: A working backtrace for linux

2010-08-04 Thread Rory Mcguire
Thanks!! The code at the start of this thread didn't work at all for me but what you've done works. David Bryant wrote: > Ok, > > I've added -L--export-dynamic to dmd.conf and done a copy/modify of > DefaultTraceInfo from runtime.d to include demangling and catch certain > signals. My backtra

Re: Andrei's Google Talk

2010-08-04 Thread Rory Mcguire
Leandro Lucarella wrote: > BCS, el 3 de agosto a las 16:04 me escribiste: >> The video is up: >> >> http://www.youtube.com/watch?v=RlVpPstLPEc > > Nice talk, I think the guy that asked what is the biggest application > written in D deserved a book. I'm suffering the lack of D applications > for

Re: Andrei's Google Talk

2010-08-04 Thread Rory Mcguire
Andrei Alexandrescu wrote: > BCS wrote: >> The video is up: >> >> http://www.youtube.com/watch?v=RlVpPstLPEc > > Per popular demand, I uploaded the slides here: > http://erdani.com/d/three-cool-things-about-d.pdf > > > Andrei Shouldn't your file copy example have used File.tmpfile()?

Re: Andrei's Google Talk

2010-08-04 Thread Rory Mcguire
Leandro Lucarella wrote: > Rory Mcguire, el 4 de agosto a las 12:37 me escribiste: >> Leandro Lucarella wrote: >> >> > BCS, el 3 de agosto a las 16:04 me escribiste: >> >> The video is up: >> >> >> >> http://www.youtube.com/watch?v=

Re: How Garbage Collector works?

2010-08-12 Thread Rory Mcguire
Borneq wrote: > Użytkownik "Lars T. Kyllingstad" napisał w > wiadomości news:i40dhi$55...@digitalmars.com... >> Since the GC keeps track of the length of the memory block, it can also >> tell whether the pointer is inside the memory block. >> if (pointer >= startOfBlock && pointer < startOfBlock

Re: range chunks

2010-08-18 Thread Rory Mcguire
Peter Alexander wrote: > On 7/08/10 3:06 PM, bearophile wrote: >> Peter Alexander: >>> (I just Googled for "quicksort pseudocode" and sure enough, all of the >>> top 10 entries that actually contained code defined a partition function >>> that does what std.algorithm.partition does). >> >> Yes, it

Re: How does D handle null pointers?

2010-08-22 Thread Rory Mcguire
Adam B wrote: > Hello all, > > Yesterday I started playing with D for the first time, (I'm a Java & > C++ programmer by day and a python programmer by night). In my first > experiments I wanted to prove that: > > 1) Exceptions have stack traces (so you can tell *where* the error > occurred!) 2)

Re: RPC and Dynamic function call

2009-11-21 Thread Rory McGuire
"Denis Koroskin" <2kor...@gmail.com> wrote: > "Denis Koroskin" <2kor...@gmail.com> wrote: > ... cut > ... Why did you use asm etc...? I made a de/serializer that just uses templates and static ifs. it doesn't do serialization of delegates etc... but I don't know that moving executable code

Re: RPC and Dynamic function call

2009-11-22 Thread Rory McGuire
"Denis Koroskin" <2kor...@gmail.com> wrote: > On Sat, 21 Nov 2009 12:42:35 +0300, Rory McGuire > wrote: > >> "Denis Koroskin" <2kor...@gmail.com> wrote: >> >>> "Denis Koroskin" <2kor...@gmail.com> wrote: >&

Re: Should masked exceptions be an error?

2009-11-24 Thread Rory McGuire
Andrei Alexandrescu wrote: > Consider: > > try { > ... > } catch (Exception) { > ... > } catch (StdioException) { > ... > } > > The second handler never matches because StdioException is a subclass of > Exception, so the first handler will always match whatever the second > match

Re: should postconditions be evaluated even if Exception is thrown?

2009-12-02 Thread Rory McGuire
Walter Bright wrote: > Andrei Alexandrescu wrote: >> If a function throws a class inheriting Error but not Exception (i.e. an >> unrecoverable error), then the postcondition doesn't need to be satisfied. >> >> I just realized that postconditions, however, must be satisfied if the >> function

Re: Kitchener Wants You...r programmer friends who don't know D

2009-12-09 Thread Rory McGuire
Andrei Alexandrescu wrote: > TDPL is entering a review stage where a collection of coders from all > walks of programming life will have one month to submit feedback that > will shape the final version of the book. > > The book has been blessed with feedback from people who already know D >

Re: Rust's simple download script

2015-11-13 Thread Rory McGuire via Digitalmars-d
On Tue, Nov 10, 2015 at 6:56 PM, Steven Schveighoffer via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > > I've been using dvm, and do like it a lot. But I couple issues: > > 1. Every time I type dvm use, my path adds another directory. Couldn't you > just replace the existing dvm path? > 2

Re: Deprecating Allocating Functions In std.string

2015-11-13 Thread Rory McGuire via Digitalmars-d
On Thu, Nov 5, 2015 at 2:02 AM, Jonathan M Davis via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > > We've been adding lazy versions of functions for years now, and we've > never removed the eager versions. And I'm pretty sure that Walter and > Andrei have generally been opposed to the ide

Re: Playing around with aliasthis

2016-01-26 Thread Rory McGuire via Digitalmars-d
On Tue, Jan 26, 2016 at 8:20 AM, Rory via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > Hi, > > I need some help understanding dmd and I'm wondering where I should ask. > > I have made a multiple aliasthis implementation that currently only works > for structs. If I try to use a class then

Re: DMD front-end can be used as a library with Dub

2016-09-01 Thread Rory McGuire via Digitalmars-d
I didn't see your announcement, but... AWESOME!! This could be the basis for some really good tutorials on making compiler backends etc... We need more little teaser examples like the one you posted in the beginning of this thread. PS: I did already check the code out on github because I watch c

Re: DMD front-end can be used as a library with Dub

2016-09-01 Thread Rory McGuire via Digitalmars-d
Thanks, for the GC stub, that will be great for playing with whether or not a little dmd app crashes after gc_annihilate(true). Did I understand that right? R On Thu, Sep 1, 2016 at 6:16 PM, Cauterite via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Monday, 29 August 2016 at 10:42:

Re: CompileTime performance measurement

2016-09-06 Thread Rory McGuire via Digitalmars-d
On Tue, Sep 6, 2016 at 7:42 PM, Stefan Koch via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Tuesday, 6 September 2016 at 10:42:00 UTC, Martin Nowak wrote: > >> On Sunday, 4 September 2016 at 00:04:16 UTC, Stefan Koch wrote: >> >>> I recently implemented __ctfeWriteln. >>> >> >> Nice,

Re: Return type deduction

2016-09-07 Thread Rory McGuire via Digitalmars-d
On Mon, Sep 5, 2016 at 11:59 AM, Andrea Fontana via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > I asked this some time (years?) ago. Time for a second try :) > > Consider this: > > --- > > T simple(T)() { return T.init; } > > > void main() > { > int test = simple!int(); // it com

Re: D, ZeroMQ, Nanomsg

2016-10-05 Thread Rory McGuire via Digitalmars-d
I also chose Ilya's nanomsg over zeromq, there were some fundamental flaws in ZMQ that it addresses, and it is more flexible. On Fri, Sep 30, 2016 at 3:42 PM, Laeeth Isharc via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Thursday, 29 September 2016 at 04:18:55 UTC, Nikolay wrote: > >

Re: Examples Wanted: Usages of "body" as a Symbol Name

2016-10-05 Thread Rory McGuire via Digitalmars-d
On Wed, Oct 5, 2016 at 5:32 PM, angel via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Wednesday, 5 October 2016 at 02:11:14 UTC, Meta wrote: > >> I'm currently writing up a DIP to propose removing `body` as a keyword to >> allow it to be used for variable names, functions, etc. I'm lo