Re: dmd and C++11

2012-01-02 Thread Mail Mantis
2012/1/2 Adam D. Ruppe > On Monday, 2 January 2012 at 01:14:43 UTC, Mail Mantis wrote: > >> If I undestood you correctly... >> Potentially, yes, But, from syntactical point of view, is there any [...] >> > > http://drdobbs.com/blogs/**tools/229401068 > >

Re: Better distinguishing reference and value in the syntax?

2012-01-02 Thread Alex Rønne Petersen
On 02-01-2012 06:25, Gou Lingfeng wrote: D's definitions of "is" and "==" have so much redundency. That might indicate some flaw. If references and values (for classes and arrays) could be clearly distinguished in the syntax, the "is" operator is not necessary at all. Of course it is. 'is' is s

Re: dmd and C++11

2012-01-02 Thread Alex Rønne Petersen
On 02-01-2012 01:15, Sean Cavanaugh wrote: On 12/29/2011 10:16 AM, Trass3r wrote: On Thursday, 29 December 2011 at 16:00:47 UTC, Vladimir Panteleev wrote: On Thursday, 29 December 2011 at 15:58:55 UTC, Trass3r wrote: What's the stance on using C++11 features in the dmd source code in the futur

std.math.abs(int.min) == int.min?

2012-01-02 Thread Jens Mueller
Hi, in 2's complement the value T.min is special because its inverse is itself. I'm using std.math.abs which computes the inverse using the unary operator -. That's why it holds assert(std.math.abs(int.min) == int.min) Which is on one hand a bit strange because I'd expect the absolute of a negati

Discussion on D at archlinux.org

2012-01-02 Thread Andrei Alexandrescu
https://bbs.archlinux.org/viewtopic.php?pid=1034979 Andrei

Re: Database developer's gentle view on D.

2012-01-02 Thread bls
On 01/01/2012 10:49 AM, Adam D. Ruppe wrote: On Sunday, 1 January 2012 at 04:28:45 UTC, bls wrote: WEB Development is for sure doable in D, reusable Frameworks are nevertheless AFAIK not available. What kind of features did you have in mind for this? Hi Adam, first of all: A happy and succe

Re: Database developer's gentle view on D.

2012-01-02 Thread bls
On 01/01/2012 07:02 AM, Steve Teale wrote: On Sat, 31 Dec 2011 20:28:43 -0800, bls wrote: Not yet available. In case that Steve Teale (and he did a dammed good Job, as well as Piotr) will add std.database this will not change the situation significantly. 'Cause std.database will contain ju

Re: Database developer's gentle view on D.

2012-01-02 Thread bls
On 01/01/2012 12:22 AM, Jimmy Cao wrote: GUI library for Windows. Pretty easy to use. ... and should be named Forms4D I definitely like this library. Pretty straight OOP, Each DOTNET Forms developer will immediately feel at home. New liberal license. Just cool!

Re: Happy New Year in 2012....

2012-01-02 Thread bls
On 12/31/2011 09:34 PM, Andrei Alexandrescu wrote: to the entire D community! Andrei And from France. A successful new year to all of you. Bjoern

dmd testsuite naming scheme

2012-01-02 Thread Trass3r
Is there any pattern in the testsuite organization? There are loads of test[0-9]+. files etc. And folders are only used to group compilable/runnable... I honestly wouldn't know where to add or search for a test case.

Names of C functions exported from a dll

2012-01-02 Thread Martin Drasar
Hi everybody, I wanted to ask if there is any specific reason why the name of the first C function exported from a dll starts with underscore and any subsequesnt name does not. Regards, Martin Disclaimer: I have already posted this as a subquestion in one D-Learn thread, but it did not get

Re: Discussion on D at archlinux.org

2012-01-02 Thread bls
On 01/02/2012 08:15 AM, Andrei Alexandrescu wrote: https://bbs.archlinux.org/viewtopic.php?pid=1034979 Andrei "C will reign supreme forever." Feedback : -> Oh cool, a talking dinosaur :) Thanks man.

Re: Names of C functions exported from a dll

2012-01-02 Thread Martin Nowak
On Mon, 02 Jan 2012 14:06:36 +0100, Martin Drasar wrote: Hi everybody, I wanted to ask if there is any specific reason why the name of the first C function exported from a dll starts with underscore and any subsequesnt name does not. Regards, Martin Disclaimer: I have already posted t

Re: Names of C functions exported from a dll

2012-01-02 Thread Rainer Schuetze
I think this is a linker bug: http://d.puremagic.com/issues/show_bug.cgi?id=3956 A workaround is to list the names in the linker definition file. On 02.01.2012 14:06, Martin Drasar wrote: Hi everybody, I wanted to ask if there is any specific reason why the name of the first C function export

Ideas for runtime loading of shared libraries.

2012-01-02 Thread Martin Nowak
I think that I'll defer the support for runtime loading of shared library (plugins) in favor of getting linked shared library support done now. There are several issues that require more thoughts. - Per-thread initialization of modules is somewhat tricky. Doing it in Runtime.loadLibrary req

Re: Ideas for runtime loading of shared libraries.

2012-01-02 Thread Jacob Carlborg
On 2012-01-02 20:20, Martin Nowak wrote: I think that I'll defer the support for runtime loading of shared library (plugins) in favor of getting linked shared library support done now. There are several issues that require more thoughts. - Per-thread initialization of modules is somewhat tricky.

Re: Happy New Year in 2012....

2012-01-02 Thread Nick Sabalausky
I'm a day late, but Happy Hangover Day!

Re: The God Language

2012-01-02 Thread Nick Sabalausky
"maarten van damme" wrote in message news:mailman.1985.1325157846.24802.digitalmar...@puremagic.com... >I think it would be an object oriented language, I'm a believer in the > string theory :) I heard on the Science Channel that M-theory was becoming favored over string therory. (Not that I wo

Re: The God Language

2012-01-02 Thread Jonathan M Davis
On Thursday, December 29, 2011 12:23:47 maarten van damme wrote: > I think it would be an object oriented language, I'm a believer in the > string theory :) Well, if you want to discuss string theory... http://xkcd.com/171/ http://xkcd.com/397/ :) - Jonathan M Davis

Re: System programming in D (Was: The God Language)

2012-01-02 Thread Nick Sabalausky
"Andrei Alexandrescu" wrote in message news:jdilar$k66$1...@digitalmars.com... > On 12/29/11 2:29 PM, Walter Bright wrote: >> On 12/29/2011 11:47 AM, Walter Bright wrote: >>> On 12/29/2011 3:19 AM, Vladimir Panteleev wrote: I'd like to invite you to translate Daniel Vik's C memcpy imple

D Feed Feature request : Message SuperDan ification

2012-01-02 Thread bls
Maybe it's just me but I really miss SuperDan ... respective all his incarnations. SuperDanification is indeed not a piece of cake. I think we could see this as "Natural language to DSL translation problem" Which could lead us, (being positive this year) to a programming paradigm not yet p

Re: Ideas for runtime loading of shared libraries.

2012-01-02 Thread Martin Nowak
On Mon, 02 Jan 2012 20:38:50 +0100, Jacob Carlborg wrote: On 2012-01-02 20:20, Martin Nowak wrote: I think that I'll defer the support for runtime loading of shared library (plugins) in favor of getting linked shared library support done now. There are several issues that require more thoughts

Re: The God Language

2012-01-02 Thread Simen Kjærås
On Thu, 29 Dec 2011 21:08:29 +0100, FeepingCreature wrote: On 12/29/11 19:27, Walter Bright wrote: On 12/29/2011 2:15 AM, Caligo wrote: If there is a God (I'm not saying there isn't, and I'm not saying there is), what language would he choose to create the universe? Mathematics. Fan

Re: Names of C functions exported from a dll

2012-01-02 Thread Martin Drašar
Dne 2.1.2012 19:52, Martin Nowak napsal(a): Do you mean exported by dmd? AFAIK on Windows cdecl function names are prefixed with an underscore. Yes, dmd v2.057 This code: import std.c.windows.windows; import core.sys.windows.dll; export extern (C) void fn1() {} export extern (C) void fn2() {

Re: Names of C functions exported from a dll

2012-01-02 Thread Martin Drašar
Dne 2.1.2012 20:02, Rainer Schuetze napsal(a): I think this is a linker bug: http://d.puremagic.com/issues/show_bug.cgi?id=3956 A workaround is to list the names in the linker definition file. Hi, thanks for the answer. It really looks like that bug... Am I the only one who regularly has mai

Re: System programming in D (Was: The God Language)

2012-01-02 Thread Nick Sabalausky
"Timon Gehr" wrote in message news:jdlbpq$2b7e$1...@digitalmars.com... > > What the template 'X' currently achieves is an improvement in syntax: > > string generated = "foo!\""~x~"\"(\""~bar(y)~"\")"; > Ewww, who in the world uses double-quote strings for code containing quotes? That's not a fa

Re: System programming in D (Was: The God Language)

2012-01-02 Thread Timon Gehr
On 01/02/2012 11:07 PM, Nick Sabalausky wrote: "Timon Gehr" wrote in message news:jdlbpq$2b7e$1...@digitalmars.com... What the template 'X' currently achieves is an improvement in syntax: string generated = "foo!\""~x~"\"(\""~bar(y)~"\")"; Ewww, who in the world uses double-quote strings f

Re: The God Language

2012-01-02 Thread Timon Gehr
On 01/02/2012 09:00 PM, Nick Sabalausky wrote: "maarten van damme" wrote in message news:mailman.1985.1325157846.24802.digitalmar...@puremagic.com... I think it would be an object oriented language, I'm a believer in the string theory :) I heard on the Science Channel that M-theory was becomi

Re: The God Language

2012-01-02 Thread Caligo
On Mon, Jan 2, 2012 at 4:29 PM, Timon Gehr wrote: > On 01/02/2012 09:00 PM, Nick Sabalausky wrote: > >> "maarten van damme" wrote in message >> news:mailman.1985.1325157846.**24802.digitalmars-d@puremagic.**com... >> >>> I think it would be an object oriented language, I'm a believer in the >>>

Re: System programming in D (Was: The God Language)

2012-01-02 Thread Jonathan M Davis
On Monday, January 02, 2012 23:19:19 Timon Gehr wrote: > What if the code contains both " and `? Using `` strings for code that > contains quotes is not a general solution. True. But it's a solution that works most of the time. - Jonathan M Davis

Vim syntax file for the D programming language

2012-01-02 Thread Andrei Alexandrescu
Just found this: http://pastebin.com/XPHS845M Andrei

Re: Vim syntax file for the D programming language

2012-01-02 Thread Andrej Mitrovic
Just found this: https://github.com/he-the-great/d.vim

Re: Database developer's gentle view on D.

2012-01-02 Thread Walter Bright
On 1/1/2012 7:02 AM, Steve Teale wrote: Even being retired does not mean there's nothing else to do but D library components. Steve, Happy New Year! Now get back to work!

Re: dmd testsuite naming scheme

2012-01-02 Thread Walter Bright
On 1/2/2012 9:58 AM, Trass3r wrote: Is there any pattern in the testsuite organization? No. There are loads of test[0-9]+. files etc. And folders are only used to group compilable/runnable... I honestly wouldn't know where to add or search for a test case. It doesn't really matter where the

Re: Happy New Year in 2012....

2012-01-02 Thread Walter Bright
On 12/31/2011 9:34 PM, Andrei Alexandrescu wrote: to the entire D community! New Zealand Tanzania Japan Russia France U.S. D is taking over zee vorld!!! Mua-hah-ha-ha!

Re: Happy New Year in 2012....

2012-01-02 Thread Walter Bright
On 1/1/2012 8:02 AM, Don wrote: Just one or two more merged pull requests would have pushed Walter below 50%. Awesome. KIRK: I’m losing command. I’m losing the Enterprise. The ship is sailing on and on. I’m alone. Alone. Alone. I’m losing command. http://www.theviewscreen.com/and-the-child

Re: Happy New Year in 2012....

2012-01-02 Thread Brad Roberts
On Sun, 1 Jan 2012, Don wrote: > On 01.01.2012 09:40, Caligo wrote: > > > > Top 10 Authors: > > Walter Bright1440 (50.07%) > > Don Clugston541 (18.81%) > > Brad Roberts402 (13.98%) > > k-hara221 (7.68%) > > Daniel Murphy70 (2.43%) > > dawg63 (2.19%) > > KennyTM~29 (1.01%) > > Shahid19 (0.66%) > >

Incompatible libphobos2.a?

2012-01-02 Thread Andre Tampubolon
I just built both 32 & 64 bit DMD. The 32 bit works fine, but the 64 bit not. I always get this: /usr/bin/ld: skipping incompatible /home/anta40/Digital-Mars/dmd-dev/lib64/libphobos2.a when searching for -lphobos2 Every time I build 64 bit phobos, I always make sure that it is the 64 bit dmd that

Re: D1 & D2 discrepancy

2012-01-02 Thread Jesse Phillips
On Sat, 24 Dec 2011 01:45:56 +0100, Łukasz Wrzosek wrote: > writefln should be replaced with writeln and it works on d2 too. D1 does not have a writeln function: http://digitalmars.com/d/1.0/phobos/std_stdio.html

Re: Cannot find libphobos2.a ?

2012-01-02 Thread Jesse Phillips
On Tue, 27 Dec 2011 21:29:26 +0700, Andre Tampubolon wrote: > I just successfully built dmd, druntime, and phobos from the git tree. > > Later I tried using this command to build a simple D program, and > failed: ~/Digital-Mars/dmd/src/dmd -I~/Digital-Mars/druntime/import > -I~/DigitalMars/phobos

Re: SCons support for D

2012-01-02 Thread Danni Coy
Premake has good support for cross compilation - Which makes it possible to use it to build executables for game consoles for instance. CMake can't really do this (with some ugly hacks you can get close). On the other hand Premake doesn't handle installation on a Linux/BSD system really at all - It

Re: Better distinguishing reference and value in the syntax?

2012-01-02 Thread Gou Lingfeng
On Mon, 2012-01-02 at 13:18 +0100, Alex Rønne Petersen wrote: > On 02-01-2012 06:25, Gou Lingfeng wrote: > > D's definitions of "is" and "==" have so much redundency. That might > > indicate some flaw. If references and values (for classes and arrays) > > could be clearly distinguished in the synta

Re: Better distinguishing reference and value in the syntax?

2012-01-02 Thread Timon Gehr
On 01/03/2012 06:10 AM, Gou Lingfeng wrote: On Mon, 2012-01-02 at 13:18 +0100, Alex Rønne Petersen wrote: On 02-01-2012 06:25, Gou Lingfeng wrote: D's definitions of "is" and "==" have so much redundency. That might indicate some flaw. If references and values (for classes and arrays) could be

Re: Better distinguishing reference and value in the syntax?

2012-01-02 Thread Chad J
On 01/03/2012 12:10 AM, Gou Lingfeng wrote: > On Mon, 2012-01-02 at 13:18 +0100, Alex Rønne Petersen wrote: >> On 02-01-2012 06:25, Gou Lingfeng wrote: >>> D's definitions of "is" and "==" have so much redundency. That might >>> indicate some flaw. If references and values (for classes and arrays)

Re: Better distinguishing reference and value in the syntax?

2012-01-02 Thread Gou Lingfeng
On Tue, 2012-01-03 at 06:43 +0100, Timon Gehr wrote: > On 01/03/2012 06:10 AM, Gou Lingfeng wrote: > > On Mon, 2012-01-02 at 13:18 +0100, Alex Rønne Petersen wrote: > >> On 02-01-2012 06:25, Gou Lingfeng wrote: > >>> D's definitions of "is" and "==" have so much redundency. That might > >>> indicat

Re: The God Language

2012-01-02 Thread J Arrizza
> > and I'm pretty sure there is no garbage collector included in gods > language :p > Are you sure? There is good evidence he strongly prefers gc's. Consider almost all insects; consider dung beetles specifically. Consider super novas, gravity and accretion disks. Consider Disney and the Circle

Re: Ideas for runtime loading of shared libraries.

2012-01-02 Thread Jacob Carlborg
On 2012-01-02 21:57, Martin Nowak wrote: Then also unload all this when the library is unloaded. It seems that libraries can't be unloaded deterministically, because GC finalization still references them. Could you elaborate this, I guess I'm not really familiar with the GC finalization. -

Re: Ideas for runtime loading of shared libraries.

2012-01-02 Thread Jacob Carlborg
On 2012-01-02 21:57, Martin Nowak wrote: On Mon, 02 Jan 2012 20:38:50 +0100, Jacob Carlborg wrote: On 2012-01-02 20:20, Martin Nowak wrote: I think that I'll defer the support for runtime loading of shared library (plugins) in favor of getting linked shared library support done now. There are

Re: SCons support for D

2012-01-02 Thread Gour
On Tue, 3 Jan 2012 14:37:36 +1000 Danni Coy wrote: > Premake has good support for cross compilation - Which makes it > possible to use it to build executables for game consoles for > instance. CMake can't really do this (with some ugly hacks you can > On the other hand Premake doesn't handle ins

Re: The God Language

2012-01-02 Thread Gour
On Mon, 02 Jan 2012 23:29:17 +0100 Timon Gehr wrote: > God cannot be omnipotent. If he was, he could invent a task he cannot > solve. Wrong. He is not static, but dynamic, so He can invent a task he cannot solve, but in the next moment he can solve it. ;) Sincerely, Gour -- When your intell

Re: The God Language

2012-01-02 Thread Timon Gehr
On 01/03/2012 08:26 AM, Gour wrote: On Mon, 02 Jan 2012 23:29:17 +0100 Timon Gehr wrote: God cannot be omnipotent. If he was, he could invent a task he cannot solve. Wrong. He is not static, but dynamic, so He can invent a task he cannot solve, but in the next moment he can solve it. ;) Si

Re: The God Language

2012-01-02 Thread Gour
On Tue, 03 Jan 2012 08:31:33 +0100 Timon Gehr wrote: > I meant he can invent a task he will never be able to solve. ;) Nah...those are just side-effects, iow. noise. :-D Sincerely, Gour -- But those who, out of envy, disregard these teachings and do not follow them are to be considered ber