Re: path tracing benchmark

2011-08-10 Thread Trass3r
LDC does have -O4 and -O5 switches but they probably don't work?! Had a quick look at the source, no indications that -O4 and O5 do anything more than -O3.

Re: path tracing benchmark

2011-08-10 Thread Trass3r
Am 10.08.2011, 14:54 Uhr, schrieb bearophile : Trass3r: Is there a more convenient way to get LTO with LDC? This is the best/only one I have found for LDC1. Feel free to search for something better/shorter (and tell me if you find it, please). Well, obviously you need to install the

Re: path tracing benchmark

2011-08-10 Thread Trass3r
If I compile it with with LDC1 with Link Time Optimization + Interning: ldc -O3 -release -inline -output-bc smallpt2_d.d opt -std-compile-opts smallpt2_d.bc > smallpt2_do.bc llvm-ld -native -ltango-base-ldc -ltango-user-ldc -ldl -lm -lpthread -internalize-public-api-list=_Dmain -o=smallpt2_do

Re: PSP emulator written in D

2011-08-10 Thread Trass3r
The garbage collector is something that still needs work. My current project has several second stalls every once in a while due to the GC (indies might be happy to miss a frame or two (30-60ms) but AAA developers won't, so you either don't use the GC, or it has to collect in under a couple

Re: Any D developer at GDC europe next week ?

2011-08-09 Thread Trass3r
Hi perhaps there is a chance to talk about D in the game industry ?! I will be there. Convince Crytek to switch to D ;)

arrays and .sizeof

2011-08-09 Thread Trass3r
I've encountered this problem several times now and almost always it takes hours or days to reduce crashes down to this. The sizeof property works as expected for static arrays, but as soon as you change the array to a dynamic one (e.g. cause it became too big to stay on the stack) .sizeof do

path tracing benchmark

2011-08-07 Thread Trass3r
I ported smallpt to D some time ago and now that I've working versions of LDC2 and GDC2 I did a quick comparison: Original code: http://kevinbeason.com/smallpt/explicit.cpp D version: https://bitbucket.org/trass3r/smallptd/src C++ -- g++ -O3 explicit.cpp: Rendering (4 spp) 100.00%

Re: Post-ctor ctor

2011-08-07 Thread Trass3r
this(int this.a, int this.b, int this.c, int this.d) { sum = a + b + c + d; average = (a + b + c + d) / 4; } Can't express how awkward this is.

Re: From a C++/JS benchmark

2011-08-07 Thread Trass3r
Anyways, I've tweaked the GDC codegen, and program speed meets that of C++ now (on my system). Implementation: http://ideone.com/0j0L1 Command-line: gdc -O3 -mfpmath=sse -ffast-math -march=native -frelease g++ bench.cc -O3 -mfpmath=sse -ffast-math -march=native Best times: G++-32bit: 114

Re: From a C++/JS benchmark

2011-08-05 Thread Trass3r
I'd like to know why the GCC back-end is able to produce a more efficient binary from the C++ code (compared to the D code), but now the problem is not large, as before. I attached both asm versions ;) cppver.s Description: Binary data dver.s Description: Binary data

Re: From a C++/JS benchmark

2011-08-05 Thread Trass3r
Am 04.08.2011, 04:07 Uhr, schrieb Trass3r : C++: Skinned vertices per second: 4866 C++ no SIMD: Skinned vertices per second: 4242 D dmd: Skinned vertices per second: 159046 D gdc: Skinned vertices per second: 2345 D ldc: Skinned vertices per second: 3791 ldc2 -O3

Re: From a C++/JS benchmark

2011-08-05 Thread Trass3r
If you want to go on with this exploration, then I suggest you to find a way to disable bound tests. Ok, now I get up to 3293 skinned vertices per second. Still a bit worse than LDC.

Re: ldc and gdc

2011-08-04 Thread Trass3r
I don't know... the gdc itself wasn't so bad (aside from taking forever, just waiting on tar zxf for gcc was a huge huge wait) but the Make sure you only download the gcc-core package to avoid all the other frontends. instructions didn't even mention the runtime and phobos. I had some weird

Re: Building GtkD app on Win32 results in 111 MiB file mostly from zeroes (compressed size - 324 KiB)

2011-08-04 Thread Trass3r
dmd -oftestGtkD.exe -release -IgtkD-1.4.1-release\headers main.d gtkD-1.4.1-release\library.lib Gives the same result. Ok, could you try with Unilink to see if it's a linker problem? ftp://ftp.styx.cabel.net/pub/UniLink/ http://www.digitalmars.com/d/archives/digitalmars/D/learn/Need_OMF_MySQL

Re: ldc and gdc

2011-08-04 Thread Trass3r
Am 04.08.2011, 16:17 Uhr, schrieb Trass3r : Compiling GDC on Linux is really straightforward, just follow the build instructions. Don't know if there's a need for prebuilt packages. Also I guess most people would expect a proper Linux package like a PPA for Ubuntu with automat

Re: ldc and gdc

2011-08-04 Thread Trass3r
Are there binary packages available for their D2 builds, complete with phobos and druntime, for both Windows and Linux? I'd really like to see binary zips of them comparable to dmd in ease of use. GDC packages are available for Windoze thx to Daniel Green (and that's really helpful, compiling

Re: From a C++/JS benchmark

2011-08-04 Thread Trass3r
e you able and willing to show me the asm produced by gdc? There's a problem there. bla.rar Description: application/rar-compressed

Re: Generating OMF DLL implibs on Windows – reliable?

2011-08-04 Thread Trass3r
I've never had problems with import libraries on Windoze. I think I always needed to pass the /system switch to implib though. coffimplib also works good if a COFF import library already exists. Only PITA is static linking of external code.

Re: Building GtkD app on Win32 results in 111 MiB file mostly from zeroes (compressed size - 324 KiB)

2011-08-04 Thread Trass3r
doCompile.bat: dmd -c -release -IgtkD-1.4.1-release\headers main.d doLink.bat: link main,"testGtkD.exe",,"gtkD-1.4.1-release\library.lib"+user32+kernel32/noi; Don't invoke optlink directly like that. Just use something like 'dmd -release main.obj gtkD-1.4.1-release\library.lib -oftestGtkD'

Re: From a C++/JS benchmark

2011-08-03 Thread Trass3r
C++: Skinned vertices per second: 4866 C++ no SIMD: Skinned vertices per second: 4242 D dmd: Skinned vertices per second: 159046 D gdc: Skinned vertices per second: 2345 D ldc: Skinned vertices per second: 3791 ldc2 -O3 -release -enable-inlining dver.d

Re: From a C++/JS benchmark

2011-08-03 Thread Trass3r
C++: Skinned vertices per second: 4866 C++ no SIMD: Skinned vertices per second: 4242 D dmd: Skinned vertices per second: 159046 D gdc: Skinned vertices per second: 2345 Compilers: gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) g++ -s -O3 -mfpmath=sse -ffast-math -march=nativ

Re: From a C++/JS benchmark

2011-08-03 Thread Trass3r
Looks like a spiteful joke... In other words: WTF?! JavaScript is about 10 times faster than D in floating point calculations!? Please, tell me that I'm mistaken. I'm afraid not. dmd's backend isn't good at floating point calculations.

Re: pi benchmark on ldc and dmd

2011-08-02 Thread Trass3r
Am 02.08.2011, 22:38 Uhr, schrieb Walter Bright : L2E:inc R11 lea R9D,[00h][RSI*2] mov R9,R9 ... mov R9,RAX mov R9,R9 ... mov R12,RDX mov R12,R12

Re: pi benchmark on ldc and dmd

2011-08-02 Thread Trass3r
Am 02.08.2011, 05:38 Uhr, schrieb Adam D. Ruppe : I was waiting over an hour just for gcc+gdc to compile! In the time it takes for gcc's configure script to run, you can make clean, build dmd, druntime and phobos. Make sure you disable bootstrapping. Compiling gdc works pleasantly fast for m

Re: Out-of-date minit.obj in 2.054 zip

2011-07-31 Thread Trass3r
Can't we finally get rid of that asm file?

Re: Clang static analysis results for dmd

2011-07-29 Thread Trass3r
Here's another one: T* p; ... if (A) p = &t; ... if (B) ... *p ... B is true if and only if A is true. B can even be the same expression as A, such as a->b->c. Clang complains on the *p that p is "uninitialized". ... At what point does this cease to be fixi

Anybody working on GTK+ 3 for GtkD?

2011-07-29 Thread Trass3r
Just curious.

LDC at 2.054 as well

2011-07-27 Thread Trass3r
LDC was updated as well.

Re: Clang static analysis results for dmd

2011-07-27 Thread Trass3r
Am 27.07.2011, 10:22 Uhr, schrieb Don : Here's a clang bug: http://octarineparrot.com/assets/dmd/report-vtxpYt.html#EndPath 3436 if (!exp) <9> Taking false branch 3437fd->nrvo_can = 0; 3438 3439if (exp) <10> Taking false branch 3440{ That is, (!exp

Re: Can't compile DFL Program

2011-07-24 Thread Trass3r
Ok I tried rdmd, it crashed. xfBuild crashed too with: object.Exception: module 'Module1.d' needs module header. The message says it all. xfBuild requires you to add a module declaration.

Re: Can't compile DFL Program

2011-07-22 Thread Trass3r
I thought C:\dmd\import\dfl was the DFL library? Or do I need to reference it some other way? Just the files. The library isn't automatically compiled. You might want to try a build tool like rdmd (included in dmd package) or xfBuild. But note that rdmd might currently not work due to a nasty

Re: What is the stance on partial initializers when declaring multiple variables of the same type?

2011-07-22 Thread Trass3r
Am 21.07.2011, 21:55 Uhr, schrieb Andrej Mitrovic : On 7/21/11, Jacob Carlborg wrote: How about you create a new type, that can be implicitly converted to float and is initialized to 0.0. Ha, never thought about that! When I think about it, most of the time I want my floats to be 0-initial

Re: Can't compile DFL Program

2011-07-21 Thread Trass3r
How do you compile it?

Re: Building gtkD

2011-07-21 Thread Trass3r
It was mainly a comment on what happened to me when I read the instructions. It really shouldn't be necessary to edit those version()'s. They are still in the svn version and I compiled with vanilla 2.054 and it worked fine. So I guess it is caused by your dmd package somehow. Give me a br

Re: Building gtkD

2011-07-21 Thread Trass3r
I really don't know what you're doing. Running 'make -f GNUmakefile -j' works flawlessly with dmd 2.054 and svn gtkD.

Re: Building gtkD

2011-07-21 Thread Trass3r
Too bad the makefile is for linux and I have to stick with dsss which is practically abondoned. See the similar thread in D.learn on how to compile your program with rdmd. I still don't get why dmd -lib -O -release -inline -I.. -I../../srcgl -I../../srcsv -I../../srcgda gtkD.d completely fails

Re: RDMD is broken on Windows7

2011-07-19 Thread Trass3r
See here: http://comments.gmane.org/gmane.comp.lang.d.dmd.beta/788 Well Walter states that adding printf's would make it work. But I think simendsjo added printfs and it still crashed.

Re: RDMD is broken on Windows7

2011-07-19 Thread Trass3r
Yep. See thread 'gtkD doesn't compile on windows' in D.learn. " If I compile rdmd (with my patch, haven't tried the original) without -g, it crashes when trying to compile anything... Does this also happen if you compile it with -g and then run cv2pdb on it? I cannot compile anything witho

Re: Has anyone ever tested CDGC (Concurrent D GC)?

2011-07-19 Thread Trass3r
I have heard this by "A Real-Time Garbage Collection for Java using Snapshot Algorithm". I understand a basic mechanism(above article uses a thread instead of fork()). Hmm... I want to see a comparison of fork() and thread. Well someone has to implement it ;)

Re: Has anyone ever tested CDGC (Concurrent D GC)?

2011-07-19 Thread Trass3r
I am interested in Concurrent GC. But, I have a question about CDGC. AFAIK, other language runtimes use thread for concurrent processing. Why use fork()? What is the merit of fork() approach? I don't know. On Windows you can't use fork anyway and we have to figure out an alternative way. Ma

Re: Has anyone ever tested CDGC (Concurrent D GC)?

2011-07-19 Thread Trass3r
I made sure it was functional back when I added the branch. The runtime code is horribly out of date though. What needs to happen is for the branch to be re-created from main. I also need to see if Leandro has updated his CDGC since the branch was created. What we really need is to put

Has anyone ever tested CDGC (Concurrent D GC)?

2011-07-17 Thread Trass3r
I have just come to know that there is an experimental branch in druntime with a concurrent GC: https://github.com/D-Programming-Language/druntime/tree/CDGC I really wonder why this wasn't announced here so people actually try it out, find bugs etc. Has anyone tried it yet?

Re: Why do template mixins have their own scope?

2011-07-17 Thread Trass3r
The bug fix is to just search for constructors in mixin scopes too. It isn't limited to constructors. Overload resolution for any function needs to be fixed.

Re: Why do template mixins have their own scope?

2011-07-16 Thread Trass3r
I know but what is so bad about issuing an error message and you rename one of the two. As I said it doesn't work out as soon as functions are involved.

Re: Why do template mixins have their own scope?

2011-07-16 Thread Trass3r
Am 16.07.2011, 20:41 Uhr, schrieb Timon Gehr : Trass3r wrote: I guess this is the cause for http://d.puremagic.com/issues/show_bug.cgi?id=3332 It makes it practically impossible to mixin constructors because overload resolution doesn't work. mixin template foo(){ immutable

Why do template mixins have their own scope?

2011-07-16 Thread Trass3r
I guess this is the cause for http://d.puremagic.com/issues/show_bug.cgi?id=3332 It makes it practically impossible to mixin constructors because overload resolution doesn't work.

Re: std.getopt

2011-07-16 Thread Trass3r
The following just came to my mind: What about having getopt also generate a "Usage" string which you can output if any cmdline argument parsing error occured? Of course this would require adding a third field containing the description. (which would also be self-documenting)

std.getopt

2011-07-15 Thread Trass3r
Why doesn't std.getopt support standard unix style like 'make -j 4'? "uint timeout; getopt(args, "timeout|t", &timeout); To set timeout to 5, use either of the following: --timeout=5, --timeout 5, --t=5, --t 5, or -t5. Forms such as -t 5 and -timeout=5 will be not accepted." Also it doesn't

Re: d-p-l.org statement.html

2011-07-15 Thread Trass3r
Also at http://www.d-programming-language.org/phobos/std_getopt.html I get Depending on the type of the pointer being bound, getopt recognizes the following kinds of options: (OL // <--- Boolean options. These are the simplest options; all they do is set a Boolean to true:

Re: D2 & Web-Framework

2011-07-15 Thread Trass3r
One of the paradigm shifts incurred when I moved to Unix from Windows was how incredibly cheap it was to create processes on Unix, and how many great idioms derive from that. In Windows one gets used to thinking creating a process is a big deal, which requires a fair amount of unlearning.

Re: Coding Standards

2011-07-15 Thread Trass3r
Am 15.07.2011, 09:53 Uhr, schrieb Jonathan M Davis : The brace on its own line and the line length limit need to be added as notes for Phobos, but I'm not sure that they really need to be put in the guide Brace on its own line really should be put there. It adds a lot to the readability of n

Re: simplistic package/build tool

2011-07-14 Thread Trass3r
It can't: - build import graphs and do partial rebuilds (waste of time with D) dmd, not D! ;)

Re: d-p-l.org statement.html

2011-07-14 Thread Trass3r
While speaking of the website, how come "http://d-programming-language.org/language_reference.html"; just redirects one instantly to the lexical section? Yep, that's broken too.

Re: D2 & Web-Framework

2011-07-14 Thread Trass3r
http://arsdnet.net/dcode/

Is private import broken as well?

2011-07-13 Thread Trass3r
We all know that public, selective and static imports are broken (http://d.puremagic.com/issues/show_bug.cgi?id=314) Also private imports are broken in some special cases: http://d.puremagic.com/issues/show_bug.cgi?id=313 & http://d.puremagic.com/issues/show_bug.cgi?id=1161 But apart from t

Re: dmd linux makefile

2011-07-13 Thread Trass3r
It's not, use MODEL=32 or MODEL=64 if you want to switch between the compiler being compiled as 32-bit or 64-bit. Ah true, always forget that way to set variables.

dmd linux makefile

2011-07-13 Thread Trass3r
Why is it still necessary to edit the linux makefile in order to switch between release and debug or 32 vs. 64 bit? The windows one has had proper targets at least for the former issue for ages.

Re: dmd linux makefile

2011-07-13 Thread Trass3r
Oh and any reason why it only uses -O2 in release mode?

Re: Any companies using D?

2011-07-13 Thread Trass3r
Am 13.07.2011, 13:55 Uhr, schrieb Thomas Mader : I think it would be very helpful if there would be a better way to handle such questions than to post on a forum or newsgroup. Wouldn't it be nice to have a central point where people can search for people interested or proficient in D in a given

Re: Anyone want to run this through dmc?

2011-07-13 Thread Trass3r
seems DMC is broke too, but it's debatable if this test case is of value to DMD. Yep, is dmc's backend still updated with improvements made in dmd's backend?

Re: Anyone want to run this through dmc?

2011-07-12 Thread Trass3r
Doing this on Windows is a nightmare. After finally getting csmith to run, it produced code that apparently is invalid. (since also gcc reports errors) The included perl script doesn't work at all.

Re: Time for Phobos CTFE-ability unittests...right? RIGHT?

2011-07-12 Thread Trass3r
Am 13.07.2011, 01:24 Uhr, schrieb Johann MacDonagh : On 7/12/2011 7:17 PM, Andrej Mitrovic wrote: I don't understand what strip() could be doing to break CTFE anyway? I believe a lot of the std.string functionality was modified to use routines in druntime in this latest release. The defau

Re: Time for Phobos CTFE-ability unittests...right? RIGHT?

2011-07-12 Thread Trass3r
I totally agree. At least simple functions like string manipulation need to be available at compile-time to use string mixins properly. 2.051 broke replace(), then it was fixed. 2.052 broke it again by moving it into std.array and changing the implementation. Now with 2.054 toUpper() is br

Re: Complete floating point literals

2011-07-11 Thread Trass3r
.5 3. And require to write them like this: 0.5 3.0 +1 (Daniel Murphy suggests to allow 1.f and 1.L (and maybe .2f and .2L too) but I think this is a special case). -1

Re: The issue with libraries that use Windows API prototypes

2011-07-10 Thread Trass3r
2) We devise some plan to incorporate WindowsAPI into Phobos itself. This way library users don't have to waste time fetching dependencies, and library authors don't have to waste time prototyping functions since the majority of this work will be already incorporated into Phobos. Long overdue in

Any plans to support .sort in CTFE?

2011-07-10 Thread Trass3r
The builtin .sort property doesn't work so far: Error: _adSort cannot be interpreted at compile time, because it has no available source code algorithm's sort does neither: dmd: interpret.c:2680: Expression* BinExp::interpretAssignCommon(InterState*, CtfeGoal, Expression* (*)(Type*, Express

Re: GitHub or dsource?

2011-07-07 Thread Trass3r
At least for code hosting you should use github.

Is there a tool like c++filt for D?

2011-07-06 Thread Trass3r
Would be really useful to do stuff like objdump -d file | dfilt...

Re: D brand identity repository

2011-06-30 Thread Trass3r
Am 30.06.2011, 17:38 Uhr, schrieb James Fisher : https://github.com/eegg/d-brand/raw/master/d-logo-1.png More playing around. The additional planet rather looks like a crescent and thus like something religious.

Re: Some Clang static analyser results

2011-06-28 Thread Trass3r
Have you run it over dmd's source code?

Re: Why I'm hesitating to switch to D

2011-06-28 Thread Trass3r
Am 29.06.2011, 00:49 Uhr, schrieb James Fisher : On Tue, Jun 28, 2011 at 10:09 PM, Walter Bright 2. The "two standard libraries" debacle it pretty much in the past now. D2 going forward has one standard library, Phobos. Fair enough. Though the site at http://www.dsource.org/projects/tango

Re: DDMD

2011-06-28 Thread Trass3r
According to a quick look at the changeset page ( http://hg.dsource.org/projects/ddmd/ ), the other contributors to DDMD, besides me and Denis, are Trass3r, Eldar Insafutdinov, and Jacob Carlborg. I've done a few upgrades to newer frontend versions back then but don't work on ddmd anymore.

Re: Overloading const member function

2011-06-23 Thread Trass3r
Am 23.06.2011, 10:11 Uhr, schrieb Nub Public : Why doesn't overloading of const member functions work? struct S { int a, b; int A() const { return a; } ref int A() { return a; } int min() const { return A() < b ? A() : b; } } DMD2 compiler erro

Re: Can you publicly alias a private type?

2011-06-21 Thread Trass3r
Or more precisely to disallow instantiation by the user and only provide a finite set of (nicer) methods.

Re: Can you publicly alias a private type?

2011-06-21 Thread Trass3r
Using a templated alias to provide a cleaner public interface to a private implementation that has a more complex interface). Yep, I also used this feature to restrict instantiations for a template function to a known finite set: private void foo(alias func)() { ... func(); ...

Re: Available D2 implementation on Windows besides DMD?

2011-06-10 Thread Trass3r
Am 10.06.2011, 14:01 Uhr, schrieb Robert Clipsham : Note that the next release of LLVM will have support for exceptions on 64-bit Windows, no work has been done for 32 bit though, my guess is that will follow. What is your source? I could only find this changeset which adds SEH parsing and

Re: Available D2 implementation on Windows besides DMD?

2011-06-10 Thread Trass3r
Am 10.06.2011, 14:01 Uhr, schrieb Robert Clipsham : LDC has alpha, maybe beta support for D2, and is behind dmd releases. It uses the LLVM backend, which doesn't support exceptions on Windows currently, so it's not much use. Note that the next release of LLVM will have support for exception

Re: [OT] D's community is awesome!

2011-06-10 Thread Trass3r
Am 10.06.2011, 13:48 Uhr, schrieb Robert Clipsham : You're probably better off for it - I used to be strongly in the mercurial camp, but having used git for a while I find I vastly prefer it, despite still not knowing how to do quite a bit with it. Yep, Mercurial's biggest drawback imo is t

Re: Herb Sutter briefly discusses D during interview

2011-06-08 Thread Trass3r
Am 08.06.2011, 08:59 Uhr, schrieb Jonathan M Davis : Left-to-right would end up being something more like this: a *int; or maybe *int a; Yeah, like that improved anything. People who want the type to be to the right of the variable name should go use Pascal. Really, one of the first thin

Re: Pointers to non-static member functions!

2011-06-08 Thread Trass3r
Am 08.06.2011, 10:00 Uhr, schrieb Daniel Murphy : Currently, this compiles: class A { void func() {} } void main() { auto p = &A.func; } In this case, typeof(p) is void function(). ... Does anybody think changing &ClassType.nonStaticMember to return void* would be a bad idea? ?? Sh

Re: Warnings on fault

2011-06-07 Thread Trass3r
From the frequency I see people in D.learn not use the -w compiler switch, I suggest to deprecate (and later remove) it, activate warnings on default, and introduce a -nw switch that disables them on request. Well then we should also make them "informational" by default.

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Trass3r
Two? I only know of that company in Berlin that does something related to stalking people on the Internet to deliver personalized ads or something like that. What's the other one? To my knowledge http://www.funkwerk-itk.com/

Re: Q: commercial compiler manufacturer

2011-06-04 Thread Trass3r
Brad gave a sensible response. If I were asked, I'd point out that we are making serious headways with the GNU compiler suite integration; I hope we'll have some news soon about that. Looking forward to that! Beyond that, a company looking for a safe bet would find it difficult to choose

Re: LDC2 status?

2011-06-03 Thread Trass3r
Also it seems like work is done in https://bitbucket.org/lindquist/ldc/changesets rather than https://bitbucket.org/prokhin_alexey/ldc2/changesets now?! All changes from alexeys branch are merged into the ldc repository (afaik). Yes, and the ldc repo contains several commits from alexey (inclu

LDC2 status?

2011-06-03 Thread Trass3r
What's the status of LDC2? Is it usable? Also it seems like work is done in https://bitbucket.org/lindquist/ldc/changesets rather than https://bitbucket.org/prokhin_alexey/ldc2/changesets now?!

Re: There's new GIT instructions on Github now

2011-05-19 Thread Trass3r
Am 20.05.2011, 01:14 Uhr, schrieb Robert Clipsham : Mercurial has rebase too, just as an extension. Rebase is incredibly useful if you want to avoid having hundreds of "Merge from revision ..." commits everywhere. Of course, if you rebase commits that other people have already pulled you're

Re: Best build tool for D projects

2011-05-13 Thread Trass3r
Am 13.05.2011, 19:38 Uhr, schrieb Chris Molozian : I'm not sure whether development on xfBuild is still going on. Well activity has certainly decreased lately but it still works fine (incremental builds regularly crash though, but according to

Re: Csmith - C compiler stress test

2011-04-13 Thread Trass3r
Am 13.04.2011, 16:13 Uhr, schrieb Robert Clipsham : I've just come across Csmith: http://embed.cs.utah.edu/csmith/ The tool randomly generates valid C99 code to stress test C compilers and has found 350+ bugs in GCC/LLVM alone over the past couple of years. It might be interesting to run d

Re: http://lang-index.sourceforge.net/

2011-04-11 Thread Trass3r
Am 11.04.2011, 10:52 Uhr, schrieb Jens Mueller : http://theinf2.informatik.uni-jena.de/For+Students/Lectures/D+Programming.html It's my PhD advisor and me. I'm looking forward to the seminar. Let's see how it goes. Especially I'm interested in the students feedback. What do they find difficult?

Re: Should all enums be immutable?

2011-04-07 Thread Trass3r
Am 07.04.2011, 18:03 Uhr, schrieb Simen kjaeraas : On Wed, 06 Apr 2011 21:42:35 +0200, Trass3r wrote: Am 06.04.2011, 20:40 Uhr, schrieb Simen kjaeraas : Yup. In theory, any immutable Foo declared at module scope (and likely also those at static class/struct scope) could be elided by the

Re: D grammar overhaul

2011-04-07 Thread Trass3r
I hope, we agree on !in and !is, as the current lexing introduces the shown parsing problems. But !is needs to be added to the IsExpression rules then. Hmm what if you have something like Templ!is(T:int) Is http://d.puremagic.com/issues/show_bug.cgi?id=5785 fixable with grammar changes oth

Re: D grammar overhaul

2011-04-07 Thread Trass3r
Am 02.04.2011, 10:11 Uhr, schrieb Rainer Schuetze : Do we want to allow spaces and comments between these tokens? - extern ( C ++ ) Well we would have to introduce C++ as a keyword just for that purpose. Not worth it. - @ Property (safe, trusted, disable, etc) safe, trusted etc. aren't keywor

Re: User-Defined Literals in the D Programming Language

2011-04-06 Thread Trass3r
http://drdobbs.com/blogs/tools/229401068 Nice article, but after reading the title I was actually expecting an article more about real user-defined literals (and its quirks as we recently discussed in http://www.digitalmars.com/d/archives/digitalmars/D/user_defined_literals_132779.html) Th

Re: Should all enums be immutable?

2011-04-06 Thread Trass3r
Am 06.04.2011, 20:40 Uhr, schrieb Simen kjaeraas : Yup. In theory, any immutable Foo declared at module scope (and likely also those at static class/struct scope) could be elided by the linker if it not used anywhere, but Optlink does not do that. Ok, I guess the hack works by replacing every o

Re: Should all enums be immutable?

2011-04-06 Thread Trass3r
Am 06.04.2011, 17:27 Uhr, schrieb Don : No. It's just a workaround for an optlink bug: manifest constants that are never used, still get put into the executable. What? By default, you should use const, not enum. You should forget that enum manifest constants even exist. Don't you mean imm

Re: D grammar overhaul

2011-04-04 Thread Trass3r
to do with the grammar. The boxes they generate don't make much sense anyway, so they can just be removed. - MulExpression is only in $(V1), so it does not show for D2 I've attached the patch for these. https://github.com/Trass3r/d-programming-language.

Re: Mixing C/D-style array declarations

2011-04-03 Thread Trass3r
Rationale: The postfix form matches the way arrays are declared in C and C++, and supporting this form provides an easy migration path for programmers used to it.< C style array declarations are handy (despite they add a little of extra complexity and confusion to the D language). Are you ki

Re: D grammar overhaul

2011-03-31 Thread Trass3r
Rainer Schuetze Wrote: > How can I contribute patches? I guess this would be with pull > requests, so I'll need a github repository, too? The discussion page for > pull requests looks like a nice feature... Yep, you fork the original repo and apply your changes. Once you think you're somewhat d

D grammar overhaul

2011-03-30 Thread Trass3r
Original discussion forked in the D grammar thread, so I'm opening a new one for this specific issue. The D grammar is in dire need of an overhaul. I suggest we discuss changes here and then put everything into github to issue a pull request once everything's done. I already forked the d-program

Re: Complete D grammar

2011-03-30 Thread Trass3r
I just forked the d-programming-language.org repo on github to fix some grammar errors as a start. I think results should directly go into such a fork so a pull request can be issued later and everything might be merged in at once. Will open a new thread for it.

<    1   2   3   4   5   6   7   8   9   >