Re: Opinion of February 2012

2012-02-03 Thread Nick Sabalausky
"Nick Sabalausky" wrote in message news:jgij59$hc2$1...@digitalmars.com... > "Zachary Lund" wrote in message > news:jghpk4$26uk$1...@digitalmars.com... >> >> 2. Milestones and Organization > > This is non-corporate-backed OSS. People are free to work on what they > choose. We're not Bill Lumbe

Re: Opinion of February 2012

2012-02-03 Thread James Miller
>> However, there's no documentation > >We should have this, but like everything else, it requires somebody take the >time to do it. So true, I spent literally 5 hours writing documentation for a project I was releasing. It wasn't even that big. And I didn't write any reference documentation. I ma

Re: Opinion of February 2012

2012-02-03 Thread Nick Sabalausky
"Zachary Lund" wrote in message news:jghpk4$26uk$1...@digitalmars.com... > > 2. Milestones and Organization This is non-corporate-backed OSS. People are free to work on what they choose. We're not Bill Lumberg Waterfall Nazis here. > I cannot stand Windows. If Microsoft suddenly went bankrupt,

Re: Opinion of February 2012

2012-02-03 Thread Nick Sabalausky
"bearophile" wrote in message news:jght4f$2co0$1...@digitalmars.com... > > I don't know why Walter likes to use ".c" as suffix for those files, I > don't remember his answers on this topic, > In the most recent discussion he just dodged the question and joked about the "platform nobody uses" b

dmd Lexer and Parser in D

2012-02-03 Thread Zach Tollen
Greetings! I am a rather new programmer and while this is my first post I wanted to say that I did some work on the ddmd project at dsource.org, which was kind of a big hairy mess. My fork of this project is at: https://github.com/zachthemystic/ddmd-clean The point is, I cleaned out the crappi

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Marco Leise
Am 04.02.2012, 02:54 Uhr, schrieb Martin Nowak : If override were mandatory in implementation classes we could easily allow implementations in interfaces. Do you have a good example? Mine are currently all solvable with final methods in interfaces, like interface ... {

Re: libphobos.so libdruntime.so

2012-02-03 Thread Marco Leise
Am 03.02.2012, 20:28 Uhr, schrieb Trass3r : The same has to happen with druntime and Phobos2 or otherwise our programs will break with every new release that deprecates or changes non-template functions. That would probably be *every* release at the moment, so it could look like this: /usr

Re: Opinion of February 2012

2012-02-03 Thread Daniel Murphy
"H. S. Teoh" wrote in message news:mailman.347.1328315188.25230.digitalmar...@puremagic.com... > I'd like to help. My D coding skills are still not up to snuff for > fixing the hard stuff, since I only just started learning D. But doc > comments I can do. However, there's no documentation that I

Re: Function template arg promotion

2012-02-03 Thread Daniel Murphy
Ah ok, I just guessed. It sounds like you've hit http://d.puremagic.com/issues/show_bug.cgi?id=4953 "Artur Skawina" wrote in message news:mailman.343.1328308873.25230.digitalmar...@puremagic.com... > On 02/03/12 17:39, Daniel Murphy wrote: >> void set_from_4ub(dummy = int)(ubyte red, ubyte gre

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread Manfred Nowak
dennis luehring wrote: > that means i can't hide an interface inside a module? I cannot find the definition of members of modules. Therefore this conclusion might or might not be true. The docs say something about "Member Templates" thow: http://www.d-programming-language.org/template-comparis

Re: Deprecated language features

2012-02-03 Thread Steven Schveighoffer
On Thu, 02 Feb 2012 12:53:38 -0500, bearophile wrote: Ali: I think foreach_reverse and the associated opApplyReverse member function. I use it now and then. A possible replacement: foreach (i; 10 .. 0 : -1) {} foreach_reverse is fine to keep for builtins and range specifiers, but I'd

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Martin Nowak
On Fri, 03 Feb 2012 08:30:31 +0100, dennis luehring wrote: like: public interface test { public static void blub(); } static class test_static: test { private static void blub() { int i = 10; } } int main() { test_static.blub(); return 0; } any idea why static cou

Re: Opinion of February 2012

2012-02-03 Thread Artur Skawina
On 02/04/12 01:28, H. S. Teoh wrote: > I agree with this. Based on current documentation, I didn't even know > the GC can be replaced at compile-time until someone mentioned it. And > up to now I still don't know how exactly to do this, since I couldn't > find any docs for it. There's nothing spec

Re: Unique vs. shared return values

2012-02-03 Thread Steven Schveighoffer
On Thu, 02 Feb 2012 18:23:13 -0500, Ali Çehreli wrote: strings provide opportunities for optimization. For example, std.string.leftJustify() returns - either a slice of the entire input string when the field is shorter than the string (this is an optimization) - or a new string when the

Re: Opinion of February 2012

2012-02-03 Thread Martin Nowak
Documentation is much more important than feature implementation. Contribution highly welcome at: https://github.com/D-Programming-Language/d-programming-language.org

Re: Opinion of February 2012

2012-02-03 Thread H. S. Teoh
On Fri, Feb 03, 2012 at 05:12:08PM -0600, Zachary Lund wrote: > Here are some things I'm unhappy with currently. > > 1. Documentation > > I find certain things, of which I will start writing down and > writing patches for, in the documentation that are unsatisfactory. > Two in particular is the c

Re: Opinion of February 2012

2012-02-03 Thread bearophile
Zachary Lund: > The .c extensions on C++ files... need I say more? That itself is a joke > and seems to have been ignored when complaints about it came up. I've > just recently been told that DMD was mostly implemented in C which is > false. This situation is needlessly frustrating. Aren't les

Re: Java memory efficiency and column-oriented data

2012-02-03 Thread bearophile
Timon Gehr: > I like it and I think it would be a valuable addition to Phobos, Marco Leise has asked for some benchmarks first, and I think he's right. > as well as a nice showcase for Ds templates and string mixins. Phobos is meant to be first of all _useful_ :-) > You didn't > specify wha

Re: Function template arg promotion

2012-02-03 Thread Timon Gehr
On 02/03/2012 04:10 PM, Artur Skawina wrote: void set_from_4ub_f(ubyte red, ubyte green, ubyte blue, ubyte alpha) { } void set_from_4ub()(ubyte red, ubyte green, ubyte blue, ubyte alpha) { } void f() { set_from_4ub_f(0x

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Timon Gehr
On 02/03/2012 11:40 AM, Paulo Pinto wrote: From OO design it does not make any sense. I was even't aware that this is possible in D. Static methods are intented to be used as what is commonly known as class methods in Smalltalk. Methods that are attached to the class class, usually known as met

Re: Java memory efficiency and column-oriented data

2012-02-03 Thread Timon Gehr
On 02/03/2012 01:21 AM, bearophile wrote: Through Reddit I've found this good and long slides pack, it's about using Java data structures to increase memory efficiency of programs: http://domino.research.ibm.com/comm/research_people.nsf/pages/sevitsky.pubs.html/$FILE/oopsla08%20memory-efficient

Opinion of February 2012

2012-02-03 Thread Zachary Lund
Here are some things I'm unhappy with currently. 1. Documentation I find certain things, of which I will start writing down and writing patches for, in the documentation that are unsatisfactory. Two in particular is the current situation with memory management and CTFE. "delete" is planned fo

Re: Gdc & avr

2012-02-03 Thread Manu
On 3 February 2012 23:15, Martin Nowak wrote: > On Fri, 03 Feb 2012 17:13:04 +0100, Iain Buclaw > wrote: > > On 3 February 2012 08:47, Andrea Fontana wrote: >> >>> Is it possible to compile for avr (atmel) platform using gdc? It would be >>> interesting for arduino development... >>> >> It's u

Re: Function template arg promotion

2012-02-03 Thread Artur Skawina
On 02/03/12 17:39, Daniel Murphy wrote: > void set_from_4ub(dummy = int)(ubyte red, ubyte green, ubyte blue, ubyte > alpha) { } > ?? > > (not tested) That doesn't change anything; the issue is: the "int" literals wont implicitly convert to ubyte, even when there is no better match and an assign

Re: std.uuid is ready for review

2012-02-03 Thread Johannes Pfau
Am Fri, 03 Feb 2012 09:54:32 +0100 schrieb Jacob Carlborg : > On 2012-02-02 22:26, Johannes Pfau wrote: > > Hi, > > > > std.uuid is ready to be reviewed. As far as I know there's nothing > > being reviewed right now, so we could start the review as soon as > > a review manager has been found. > >

Re: libphobos.so libdruntime.so

2012-02-03 Thread Johannes Pfau
Am Fri, 03 Feb 2012 21:46:49 +0100 schrieb Trass3r : > > But things like shared libraries that will become necessary once it > > becomes mainstream. Lack of shared library support is one of the > > barriers to it becoming mainstream (among many other things). > > Support for that is almost ready

Re: Deimos projects for Clang and Ruby

2012-02-03 Thread Martin Nowak
On Fri, 03 Feb 2012 17:32:42 +0100, David Nadlinger wrote: On 2/3/12 1:49 PM, Jacob Carlborg wrote: I think it would be useful to have Ruby bindings in Deimos. I don't see how it can be negative at all, to have in Deimos. If the library in question is reasonably well known, I don't think t

Re: Gdc & avr

2012-02-03 Thread Martin Nowak
On Fri, 03 Feb 2012 17:13:04 +0100, Iain Buclaw wrote: On 3 February 2012 08:47, Andrea Fontana wrote: Is it possible to compile for avr (atmel) platform using gdc? It would be interesting for arduino development... It's unlikely that D will run on systems without a MMU. gdc actually as

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread Martin Nowak
On Fri, 03 Feb 2012 13:27:34 +0100, dennis luehring wrote: repost from d.learn is it a bug? protection attributes on interfaces/abstracts have no effect outside modules? module types; private interface itest { public void blub2(); private void blub3(); } private class test {

Re: libphobos.so libdruntime.so

2012-02-03 Thread Trass3r
But things like shared libraries that will become necessary once it becomes mainstream. Lack of shared library support is one of the barriers to it becoming mainstream (among many other things). Support for that is almost ready even in dmd. You were talking about making phobos shared and that's

Re: Gdc & avr

2012-02-03 Thread Iain Buclaw
On 3 February 2012 19:32, Manu wrote: > On 3 February 2012 16:45, Paulo Pinto wrote: >> >> The only language without runtime is pure assembly. > > > And C.. there's no requirement to link the CRT in a C app. In fact, in many > of my projects, I don't. > I frequently find that the ONLY function I

Re: libphobos.so libdruntime.so

2012-02-03 Thread H. S. Teoh
On Fri, Feb 03, 2012 at 08:28:04PM +0100, Trass3r wrote: [...] > Why do people always treat D like a mainstream language? It isn't. But things like shared libraries that will become necessary once it becomes mainstream. Lack of shared library support is one of the barriers to it becoming mainstrea

Re: Gdc & avr

2012-02-03 Thread Manu
On 3 February 2012 16:45, Paulo Pinto wrote: > The only language without runtime is pure assembly. > And C.. there's no requirement to link the CRT in a C app. In fact, in many of my projects, I don't. I frequently find that the ONLY function I use from the CRT is sprintf... which I really sho

Re: libphobos.so libdruntime.so

2012-02-03 Thread Trass3r
The same has to happen with druntime and Phobos2 or otherwise our programs will break with every new release that deprecates or changes non-template functions. That would probably be *every* release at the moment, so it could look like this: /usr/lib64/libphobos2.so (link to /usr/lib64/l

Re: libphobos.so libdruntime.so

2012-02-03 Thread Jérôme M. Berger
Marco Leise wrote: > As time goes by the D runtime will have it's place on Unix systems next > to the C runtime. The upcoming support for PIC is the next step. Now I > just want to quickly raise awareness for "sonames". For any library, > there may be several incompatible versions installed, since

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread dennis luehring
Am 03.02.2012 18:44, schrieb Manfred Nowak: dennis luehring wrote: why can i see a private interface in different module? The docs online define protections for member sof the module. -manfred that means i can't hide an interface inside a module?

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread Manfred Nowak
dennis luehring wrote: > why can i see a private interface in different module? The docs online define protections for member sof the module. -manfred

Re: opCmp

2012-02-03 Thread Gor Gyolchanyan
http://d.puremagic.com/issues/show_bug.cgi?id=7430 Please vote on this, so it would get some attention. On Fri, Feb 3, 2012 at 8:45 PM, Daniel Murphy wrote: > Bug! > > "Ali Çehreli" wrote in message > news:jgh2nb$rtv$1...@digitalmars.com... >> On 02/03/2012 06:44 AM, Gor Gyolchanyan wrote: >> >

Re: opCmp

2012-02-03 Thread Gor Gyolchanyan
How do I overload the unordered comparison operators? do I overload them one by one? If I do what happens if I also define the opCmp? On Fri, Feb 3, 2012 at 8:41 PM, Ali Çehreli wrote: > On 02/03/2012 06:44 AM, Gor Gyolchanyan wrote: >> Good day. >> >> There's a problem in how opCmp works. >> >>

Re: opCmp

2012-02-03 Thread Daniel Murphy
Bug! "Ali Çehreli" wrote in message news:jgh2nb$rtv$1...@digitalmars.com... > On 02/03/2012 06:44 AM, Gor Gyolchanyan wrote: > > Good day. > > > > There's a problem in how opCmp works. > > > > I have a structure, that represents an element of a range. Let's say a > > character. That character ca

Re: opCmp

2012-02-03 Thread Ali Çehreli
On 02/03/2012 06:44 AM, Gor Gyolchanyan wrote: > Good day. > > There's a problem in how opCmp works. > > I have a structure, that represents an element of a range. Let's say a > character. That character can be invalid. > I need all comparison operators to return false of at least one of the > ope

Re: Function template arg promotion

2012-02-03 Thread Daniel Murphy
void set_from_4ub(dummy = int)(ubyte red, ubyte green, ubyte blue, ubyte alpha) { } ?? (not tested)

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread David Nadlinger
Assuming that DMD and DigitalMars make are on your PATH, just »cd src; make -f win32.mak dmd«, resp. »make -f win32.mak« in the root directory for druntime/Phobos. David On 2/3/12 5:33 PM, dennis luehring wrote: Am 03.02.2012 16:54, schrieb Daniel Murphy: "dennis luehring" wrote in message

Re: Deimos projects for Clang and Ruby

2012-02-03 Thread David Nadlinger
On 2/3/12 1:49 PM, Jacob Carlborg wrote: I think it would be useful to have Ruby bindings in Deimos. I don't see how it can be negative at all, to have in Deimos. If the library in question is reasonably well known, I don't think there should be any doubt at all as to whether we want headers i

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread dennis luehring
Am 03.02.2012 16:54, schrieb Daniel Murphy: "dennis luehring" wrote in message news:jggue2$ksn$1...@digitalmars.com... Am 03.02.2012 15:56, schrieb Daniel Murphy: is there something like an github build or do i need to build from source? From source I'm afraid. And because they all ge

Re: Deimos projects for Clang and Ruby

2012-02-03 Thread Iain Buclaw
On 3 February 2012 12:49, Jacob Carlborg wrote: > On 2012-02-03 13:36, Jakob Øvrum wrote: >> >> On Friday, 3 February 2012 at 09:38:38 UTC, Jacob Carlborg wrote: >>> >>> Ruby: >>> http://www.ruby-lang.org >>> "A dynamic, open source programming language with a focus on >>> simplicity and productiv

Re: Deimos projects for Clang and Ruby

2012-02-03 Thread Ludovic Silvestre
If I'm not mistaken, your wrapper already uses the pure Lua C bindings, the modules in the luad.c package. If that's the case, you could divide your project into 2 sub-projects: - Pure Lua C bindings (deimos.lua instead of luad.c) - High-level D wrapper (luad) On Friday, 3 February 2012 at 12:

Re: Gdc & avr

2012-02-03 Thread Iain Buclaw
On 3 February 2012 08:47, Andrea Fontana wrote: > Is it possible to compile for avr (atmel) platform using gdc? It would be > interesting for arduino development... gdc actually asserts that the target it is building for is either 32bit or 64bit, anything greater or less than will fail to compile

Re: Gdc & avr

2012-02-03 Thread Iain Buclaw
On 3 February 2012 10:36, Alex Rønne Petersen wrote: > On 03-02-2012 11:33, Andrea Fontana wrote: >> >> How much work is needed to support atmel in your opinion? >> >> Il giorno ven, 03/02/2012 alle 10.40 +0100, Alex Rønne Petersen ha >> scritto: >>> >>> On 03-02-2012 09:47, Andrea Fontana wrote:

Re: [xmlp] the recent garbage collector performance improvements

2012-02-03 Thread H. S. Teoh
On Fri, Feb 03, 2012 at 09:30:36AM +0100, Jacob Carlborg wrote: [...] > The GC is already swappable during linking. [...] Is there documentation for this? T -- No! I'm not in denial!

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread Daniel Murphy
"dennis luehring" wrote in message news:jggue2$ksn$1...@digitalmars.com... > Am 03.02.2012 15:56, schrieb Daniel Murphy: >> > > is there something like an github build or do i need to build from source? >From source I'm afraid. And because they all get changed in tandem you'll need to build dr

Re: Gdc & avr

2012-02-03 Thread Danni Coy
One can use C without an OS on any of the Atmel microcontroller range... why would D need an OS to support it? On Sat, Feb 4, 2012 at 12:45 AM, Paulo Pinto wrote: > The only language without runtime is pure assembly. > > All high level languages require a runtime library, even C, despite what

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread dennis luehring
Am 03.02.2012 15:56, schrieb Daniel Murphy: Another bug. Although there have been some bugfixes in that area since the last release, it might be fixed in the github version. "dennis luehring" wrote in message news:jggp8k$c1n$1...@digitalmars.com... Am 03.02.2012 14:53, schrieb Daniel Murphy:

Function template arg promotion

2012-02-03 Thread Artur Skawina
void set_from_4ub_f(ubyte red, ubyte green, ubyte blue, ubyte alpha) { } void set_from_4ub()(ubyte red, ubyte green, ubyte blue, ubyte alpha) { } void f() { set_from_4ub_f(0x00, 0x00, 0x00, 0xff); // Works. set_from_4ub

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread Daniel Murphy
Another bug. Although there have been some bugfixes in that area since the last release, it might be fixed in the github version. "dennis luehring" wrote in message news:jggp8k$c1n$1...@digitalmars.com... > Am 03.02.2012 14:53, schrieb Daniel Murphy: >> C.blub4 - yes, it looks like a bug >> >>

Re: Gdc & avr

2012-02-03 Thread Paulo Pinto
The only language without runtime is pure assembly. All high level languages require a runtime library, even C, despite what many people think. Now in this case what would be nice would be the possibility to generate code that runs on top of the arduino without any real OS. This is a common use

opCmp

2012-02-03 Thread Gor Gyolchanyan
Good day. There's a problem in how opCmp works. I have a structure, that represents an element of a range. Let's say a character. That character can be invalid. I need all comparison operators to return false of at least one of the operands is invalid. with opCmp, the expression a @ b is rewritte

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread deadalnix
Le 03/02/2012 14:12, dennis luehring a écrit : Am 03.02.2012 13:55, schrieb deadalnix: Le 03/02/2012 13:02, Jonathan M Davis a écrit : On Friday, February 03, 2012 09:03:21 dennis luehring wrote: Am 03.02.2012 08:40, schrieb Jonathan M Davis: On Friday, February 03, 2012 08:30:31 dennis lueh

Re: Gdc & avr

2012-02-03 Thread Andrea Fontana
That's my point! Arduino use c++, dmd syntax will be a really good alternative. We just need a subset of druntime and we need to port arduino/wiring library... Il giorno sab, 04/02/2012 alle 00.48 +1100, Daniel Murphy ha scritto: > It probably wouldn't be too hard (if you could get the cross comp

Re: Gdc & avr

2012-02-03 Thread Nick Sabalausky
"Daniel Murphy" wrote in message news:jggok5$b5i$1...@digitalmars.com... > The syntax improvement would alone would make it a great alternative to c. > Abolutely. I'd love to see a "Lean D" for such uses.

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread dennis luehring
Am 03.02.2012 14:53, schrieb Daniel Murphy: C.blub4 - yes, it looks like a bug A.blub3 - I've seen a bug about this somewhere in bugzilla, and it's debatable whether it's a bug or not. Private functions are not virtual, so it doesn't override anything, it just uses the same name as an interface

Re: Gdc & avr

2012-02-03 Thread Manu
On 3 February 2012 15:37, Alex_Dovhal wrote: > ** > >Andrea Fontana" wrote: > >In this case can we hope for a d frontend? > That depends if it's MCU or MPU. If it will be MCU(like ARM7TDMI), which > means Harvard Architecture (where Program code and RAM are physically > different). Also internal

Re: is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread Daniel Murphy
C.blub4 - yes, it looks like a bug A.blub3 - I've seen a bug about this somewhere in bugzilla, and it's debatable whether it's a bug or not. Private functions are not virtual, so it doesn't override anything, it just uses the same name as an interface method. Allowing override here is probabl

Re: Gdc & avr

2012-02-03 Thread Daniel Murphy
Heh, I didn't realize that. I actually build an fpga clone of atmega64 last year and would love to get D compiling on it, but other things tend to take priority. It probably wouldn't be too hard (if you could get the cross compiler working) to stub out most of druntime and get it to compile.

Re: Gdc & avr

2012-02-03 Thread Alex_Dovhal
>Andrea Fontana" wrote: >In this case can we hope for a d frontend? That depends if it's MCU or MPU. If it will be MCU(like ARM7TDMI), which means Harvard Architecture (where Program code and RAM are physically different). Also internal RAM of a few KB and no Linux. If it'll be MCU then it can h

Re: Gdc & avr

2012-02-03 Thread Andrea Fontana
In this case can we hope for a d frontend? Il giorno ven, 03/02/2012 alle 22.33 +1000, Danni Coy ha scritto: > 32bit version will be arm architecture >

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread dennis luehring
Am 03.02.2012 13:55, schrieb deadalnix: Le 03/02/2012 13:02, Jonathan M Davis a écrit : On Friday, February 03, 2012 09:03:21 dennis luehring wrote: Am 03.02.2012 08:40, schrieb Jonathan M Davis: On Friday, February 03, 2012 08:30:31 dennis luehring wrote: any idea why static could mak

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread dennis luehring
Am 03.02.2012 13:38, schrieb Jacob Carlborg: On 2012-02-03 13:24, dennis luehring wrote: Am 03.02.2012 13:10, schrieb dennis luehring: Am 03.02.2012 13:02, schrieb Jonathan M Davis: C++ doesn't have interfaces, and C# and Java don't allow function implementations of any kind on interfaces.

Re: killer App for D? (was: State of D on iOS/Android)

2012-02-03 Thread J Arrizza
On Thu, Feb 2, 2012 at 7:18 AM, Iain Buclaw wrote: > On 2 February 2012 14:50, J Arrizza wrote: > > > > So... Will D and Android GUI libraries be able to replace Java in the > next > > two years? Is there a commitment or direction towards that end? > > > Not replace, but it is my goal to certain

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread deadalnix
Le 03/02/2012 13:02, Jonathan M Davis a écrit : On Friday, February 03, 2012 09:03:21 dennis luehring wrote: Am 03.02.2012 08:40, schrieb Jonathan M Davis: On Friday, February 03, 2012 08:30:31 dennis luehring wrote: any idea why static could makes sense in an interface? any example? The s

Re: Deimos projects for Clang and Ruby

2012-02-03 Thread Jacob Carlborg
On 2012-02-03 13:36, Jakob Øvrum wrote: On Friday, 3 February 2012 at 09:38:38 UTC, Jacob Carlborg wrote: Ruby: http://www.ruby-lang.org "A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write."

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread dennis luehring
Am 03.02.2012 13:34, schrieb bls: On 02/03/2012 04:00 AM, Jonathan M Davis wrote: D interfaces_do_ allow for function implementations under certain circumstances. - Jonathan M Davis A code snippet please. http://dlang.org/interface.html interface D { void bar() { } // error, implemen

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Jacob Carlborg
On 2012-02-03 13:24, dennis luehring wrote: Am 03.02.2012 13:10, schrieb dennis luehring: Am 03.02.2012 13:02, schrieb Jonathan M Davis: C++ doesn't have interfaces, and C# and Java don't allow function implementations of any kind on interfaces. The same is not true for D. but as you can see

Re: Deimos projects for Clang and Ruby

2012-02-03 Thread Jakob Øvrum
On Friday, 3 February 2012 at 09:38:38 UTC, Jacob Carlborg wrote: Ruby: http://www.ruby-lang.org "A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write." If the Ruby API is suitable for Deimo

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread bls
On 02/03/2012 04:00 AM, Jonathan M Davis wrote: D interfaces_do_ allow for function implementations under certain circumstances. - Jonathan M Davis A code snippet please.

Re: Gdc & avr

2012-02-03 Thread Danni Coy
32bit version will be arm architecture

is it a bug? protection attributes on interfaces/abstracts have no effect outside module?

2012-02-03 Thread dennis luehring
repost from d.learn is it a bug? protection attributes on interfaces/abstracts have no effect outside modules? module types; private interface itest { public void blub2(); private void blub3(); } private class test { protected abstract void blub4(); public abstract void blub5();

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread dennis luehring
Am 03.02.2012 13:10, schrieb dennis luehring: Am 03.02.2012 13:02, schrieb Jonathan M Davis: C++ doesn't have interfaces, and C# and Java don't allow function implementations of any kind on interfaces. The same is not true for D. but as you can see in my example - my static function isn't im

Re: Gdc & avr

2012-02-03 Thread Alex_Dovhal
"Daniel Murphy" wrote: >There are 32 bit avrs. Search for 'AVR32'. Thanks, I know :) But Arduino uses 8-bit.

Re: Gdc & avr

2012-02-03 Thread Alex_Dovhal
>"Manu" wrote: >I think you'll find that most arduino projects are using a much more >capable avr chip, probably avr32 chips. Never used Arduino but it's site and wikipedia mentiones only 8-bit AVR's http://en.wikipedia.org/wiki/Arduino Here http://arduino.cc/en/Main/Hardware also all AVR's are

Re: Gdc & avr

2012-02-03 Thread Alex_Dovhal
>"Manu" wrote: >I think you'll find that most arduino projects are using a much more >capable avr chip, probably avr32 chips. Never actually used arduino, but it's site and wikipedia mentiones 8-bit devices http://en.wikipedia.org/wiki/Arduino . Here also http://arduino.cc/en/Main/Hardware - all

Re: Gdc & avr

2012-02-03 Thread Danni Coy
also do Arm based 32bit microcontrollers... On Fri, Feb 3, 2012 at 10:10 PM, Danni Coy wrote: > Atmel also Arm based 32bit microcontrollers > >

Re: Gdc & avr

2012-02-03 Thread Danni Coy
Atmel also Arm based 32bit microcontrollers On Fri, Feb 3, 2012 at 9:44 PM, Daniel Murphy wrote: > ** > There are 32 bit avrs. Search for 'AVR32'. > > "Alex_Dovhal" wrote in message > news:jgggnk$2vev$1...@digitalmars.com... > "Andrea Fontana" wrote: > >Is it possible to compile for avr (atme

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread dennis luehring
Am 03.02.2012 13:02, schrieb Jonathan M Davis: C++ doesn't have interfaces, and C# and Java don't allow function implementations of any kind on interfaces. The same is not true for D. but as you can see in my example - my static function isn't implemented in the interface scope interface tes

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Jonathan M Davis
On Friday, February 03, 2012 09:03:21 dennis luehring wrote: > Am 03.02.2012 08:40, schrieb Jonathan M Davis: > > On Friday, February 03, 2012 08:30:31 dennis luehring wrote: > >> any idea why static could makes sense in an interface? any example? > > > > The same reason it makes sense in a class

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Jonathan M Davis
On Friday, February 03, 2012 11:40:53 Paulo Pinto wrote: > From OO design it does not make any sense. I was even't aware that this is > possible in D. > > Static methods are intented to be used as what is commonly known as class > methods in Smalltalk. Methods > that are attached to the class clas

Re: Gdc & avr

2012-02-03 Thread Daniel Murphy
There are 32 bit avrs. Search for 'AVR32'. "Alex_Dovhal" wrote in message news:jgggnk$2vev$1...@digitalmars.com... "Andrea Fontana" wrote: >Is it possible to compile for avr (atmel) platform using gdc? It would be interesting for arduino development... AVR is 8-bit harward architectu

Re: Gdc & avr

2012-02-03 Thread Manu
On 3 February 2012 13:34, Alex_Dovhal wrote: > ** > "Andrea Fontana" wrote: > >Is it possible to compile for avr (atmel) platform using gdc? It would be > interesting for arduino development... > > AVR is 8-bit harward architecture while D is designed for at least 32 > bits. Besides that AVR's h

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread deadalnix
Le 03/02/2012 11:40, Paulo Pinto a écrit : From OO design it does not make any sense. I was even't aware that this is possible in D. Static methods are intented to be used as what is commonly known as class methods in Smalltalk. Methods that are attached to the class class, usually known as met

Re: Gdc & avr

2012-02-03 Thread Alex_Dovhal
"Andrea Fontana" wrote: >Is it possible to compile for avr (atmel) platform using gdc? It would be >interesting for arduino development... AVR is 8-bit harward architecture while D is designed for at least 32 bits. Besides that AVR's have from (less then 1) to (a few) kB of RAM so it needs an

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread Paulo Pinto
From OO design it does not make any sense. I was even't aware that this is possible in D. Static methods are intented to be used as what is commonly known as class methods in Smalltalk. Methods that are attached to the class class, usually known as metaclass. These methods are then transversal

Re: Gdc & avr

2012-02-03 Thread Alex Rønne Petersen
On 03-02-2012 11:33, Andrea Fontana wrote: How much work is needed to support atmel in your opinion? Il giorno ven, 03/02/2012 alle 10.40 +0100, Alex Rønne Petersen ha scritto: On 03-02-2012 09:47, Andrea Fontana wrote: > Is it possible to compile for avr (atmel) platform using gdc? It would >

Re: Gdc & avr

2012-02-03 Thread Andrea Fontana
How much work is needed to support atmel in your opinion? Il giorno ven, 03/02/2012 alle 10.40 +0100, Alex Rønne Petersen ha scritto: > On 03-02-2012 09:47, Andrea Fontana wrote: > > Is it possible to compile for avr (atmel) platform using gdc? It would > > be interesting for arduino development.

Re: Gdc & avr

2012-02-03 Thread Alex Rønne Petersen
On 03-02-2012 09:47, Andrea Fontana wrote: Is it possible to compile for avr (atmel) platform using gdc? It would be interesting for arduino development... Not currently. We don't even have a standard version identifier for that platform. -- - Alex

Deimos projects for Clang and Ruby

2012-02-03 Thread Jacob Carlborg
I would like to open two Deimos projects, one for Clang and one for Ruby. Actually it would be for libclang and libruby. Clang: http://clang.llvm.org/ "A C language family frontend for LLVM" Ruby: http://www.ruby-lang.org "A dynamic, open source programming language with a focus on simplicity

Re: std.uuid is ready for review

2012-02-03 Thread Jacob Carlborg
On 2012-02-02 22:26, Johannes Pfau wrote: Hi, std.uuid is ready to be reviewed. As far as I know there's nothing being reviewed right now, so we could start the review as soon as a review manager has been found. About std.uuid (copied from the module documentation): - This i

Re: libphobos.so libdruntime.so

2012-02-03 Thread Jacob Carlborg
On 2012-02-03 02:33, Jonathan M Davis wrote: On Friday, February 03, 2012 02:29:20 Marco Leise wrote: As time goes by the D runtime will have it's place on Unix systems next to the C runtime. The upcoming support for PIC is the next step. Now I just want to quickly raise awareness for "sonames".

Gdc & avr

2012-02-03 Thread Andrea Fontana
Is it possible to compile for avr (atmel) platform using gdc? It would be interesting for arduino development...

Re: [xmlp] the recent garbage collector performance improvements

2012-02-03 Thread Jacob Carlborg
On 2012-02-03 05:01, H. S. Teoh wrote: On Thu, Feb 02, 2012 at 08:48:20PM -0600, Robert Jacques wrote: [...] So to answer your question, yes, someone has made one of these types of GC for D called CDGC. No, it doesn't look like Windows will support this anytime soon. And cloning GCs, don't solv

Re: what is a usage pattern for "static" in an interface?

2012-02-03 Thread dennis luehring
Am 03.02.2012 08:40, schrieb Jonathan M Davis: On Friday, February 03, 2012 08:30:31 dennis luehring wrote: any idea why static could makes sense in an interface? any example? The same reason it makes sense in a class. I don't see any difference. that also my first thought - but why do c#,

  1   2   >