Re: Specifying C++ symbols in C++ namespaces

2014-04-03 Thread Robert Clipsham
On Thursday, 3 April 2014 at 03:48:08 UTC, Walter Bright wrote: Alternatively you can use another module for the other namespace. Forcing C++ code that exists in a single file to be split up among multiple D files is inflicting unnecessary punishment on the poor guy trying to justify migratin

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Robert Clipsham
On Thursday, 27 February 2014 at 17:25:22 UTC, Chris Williams wrote: just(myObject).method1().method2().method3() You can't do that. You're reducing your example code - which was several dozen lines and only applied to objects for which you had added the special handler code - to the end resu

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Robert Clipsham
On Thursday, 27 February 2014 at 16:32:18 UTC, Chris Williams wrote: On Thursday, 27 February 2014 at 16:08:26 UTC, Robert Clipsham wrote: D doesn't need this, you can implement monadic null checking in the library: By that argument, I can implement anything that D can do in assembler,

Re: Safe Navigation Operator “?.” for D2 ?

2014-02-27 Thread Robert Clipsham
On Thursday, 27 February 2014 at 13:27:14 UTC, Remo wrote: Apparently C# will get it in the next version. http://blogs.msdn.com/b/jerrynixon/archive/2014/02/26/at-last-c-is-getting-sometimes-called-the-safe-navigation-operator.aspx What do you think how well would this work in D2 ? D doesn't

Re: Probable C# 6.0 features

2013-12-11 Thread Robert Clipsham
On Tuesday, 10 December 2013 at 23:53:25 UTC, Ary Borenszweig wrote: On 12/10/13 5:35 PM, Namespace wrote: I love Monadic null checking. Would be great if D would have it. What does a monad have to do with that? (just out of curiosity... BTW, the other day I friend tried to explain me monads

Re: Probable C# 6.0 features

2013-12-11 Thread Robert Clipsham
On Tuesday, 10 December 2013 at 20:35:08 UTC, Namespace wrote: I love Monadic null checking. Would be great if D would have it. Doesn't need to be a language feature - you can implement it as a library type. Here's a quick hacked together maybe monad: import std.stdio; struct Maybe(T)

Re: [OT] Which IDE / Editor do you use?

2013-09-14 Thread Robert Clipsham
On Friday, 13 September 2013 at 21:00:14 UTC, H. S. Teoh wrote: On Fri, Sep 13, 2013 at 01:40:02PM -0700, Andrei Alexandrescu wrote: Syntax highlighting hurts my eyes. I've been using vim in black-on-white for more than a decade now. (Well, more accurately, black on an almost fully saturated o

Re: Variadic grouping

2013-07-29 Thread Robert Clipsham
On Monday, 29 July 2013 at 14:46:02 UTC, Robert Clipsham wrote: You can achieve this like so: template Outer(T...) { template Inner(U...) { // Do something with T and U } } Outer!(a, b, c).Inner!(d, e, f); You can see an example of it in action here (type tuple

Re: Variadic grouping

2013-07-29 Thread Robert Clipsham
On Monday, 29 July 2013 at 13:23:23 UTC, JS wrote: Sometimes it's nice to be able to have groups of variadic parameters: template t(T1..., T2...) ... t!(a, b, c; d, e, f); so that a,b,c are for T1 and d,e,f are for T2. This can be done by making a symbol and breaking up a single variadic b

Re: blocks with attributes vs inlined lambda

2013-06-18 Thread Robert Clipsham
On Saturday, 8 June 2013 at 14:57:17 UTC, monarch_dodra wrote: My beef though is that the syntax is a bit opaque, and not really idiomatic. It looks more like a hacker's trick than a real language feature. It's not something you'd do "naturally". At least, I know a beginner may not feal comfort

Re: Path as an object in std.path

2013-06-06 Thread Robert Clipsham
On Thursday, 6 June 2013 at 15:36:17 UTC, Walter Bright wrote: On 6/4/2013 11:27 PM, Dylan Knutson wrote: I'd like to open up the idea of Path being an object in std.path. I've submitted a pull (https://github.com/D-Programming-Language/phobos/pull/1333) that adds a Path struct to std.path, "w

Re: Arch AUR DMD missing?

2013-06-02 Thread Robert Clipsham
On Sunday, 2 June 2013 at 14:04:51 UTC, simendsjo wrote: What happened to the DMD package in Arch AUR? New name or something? Does anyone have a link to the package? It's in [community] now: https://www.archlinux.org/packages/?sort=&q=dmd&maintainer=&flagged=

Re: auto ref and non-templated functions

2012-12-24 Thread Robert Clipsham
On Monday, 24 December 2012 at 17:40:54 UTC, Jonathan M Davis wrote: This has probably been discussed before, so someone has probably already explained why this is a bad idea, but I can't remember why that would be, so I'm going to ask: Why can't we simply make auto ref work with non-templated

Re: D-based internships in the UK

2012-12-01 Thread Robert Clipsham
On Saturday, 1 December 2012 at 15:13:55 UTC, Faux Amis wrote: How about the Netherlands ? I could be tempted, however it may not be viable due to transportation costs, finding somewhere to stay, and the language barrier. I forgot to mention in my post, feel free to contact me privately if

D-based internships in the UK

2012-12-01 Thread Robert Clipsham
Hey all, Out of curiosity, I was wondering if anyone knew of any UK based companies were using D (or thinking about it) and looking for interns? I'm investigating my options for next summer, I figured I'd ask here and see if anything was going. I've been using D for about 5 years now and ple

Re: Function pointers/delegates default args were stealth removed?

2012-08-28 Thread Robert Clipsham
On Tuesday, 28 August 2012 at 06:53:15 UTC, Jacob Carlborg wrote: On 2012-08-27 22:53, Walter Bright wrote: The language design requires a 1:1 mapping of mangling to types. Hence the compiler design to use the mangling as a hashmap key of types. The failure of that approach in this case points

Re: Function pointers/delegates default args were stealth removed?

2012-08-27 Thread Robert Clipsham
On Monday, 27 August 2012 at 10:32:28 UTC, Manu wrote: Because the two types were considered to be the same, only different. And how was that a problem? They never interacted in the example, the assignments were totally separate, they shouldn't have been confused. Just speculating, but it jus

Re: Made a Rage-Comic about D

2012-06-23 Thread Robert Clipsham
On Saturday, 23 June 2012 at 23:37:11 UTC, Jonathan M Davis wrote: On Saturday, June 23, 2012 13:46:51 David wrote: The cool thing is, I wasn't able to track it down until now, since line numbers are completly messed up because of a heavy use of mixin() and CTFE. Which is why I _never_ put ne

Re: Made a Rage-Comic about D

2012-06-23 Thread Robert Clipsham
#line is a godsend when working with string mixins. mixin(`#line ` ~ (30_000 + __LINE__).stringof ~ ` // Some really long code here // The line numbers will be correct but plus 30_000 // Making it fairly simple to debug. `); -- Robert http://octarineparrot.com/ Actually, add another 1 to that,

Re: GitHub for Windows

2012-05-25 Thread Robert Clipsham
On 25/05/2012 20:06, Walter Bright wrote: I use putty every day, it is indispensible. But it doesn't work in the other direction - I cannot ssh from Linux into Windows. I've set up an ssh server with bash/unix utilities on Windows before now. It was a massive hassle to do, but the end result w

Re: C linkage is fun

2012-05-24 Thread Robert Clipsham
On 24/05/2012 13:06, Alex Rønne Petersen wrote: Just a little gotcha I ran into today: import core.memory; extern (C) void gc_collect() { assert(false, "nope!"); } void main() { GC.collect(); } I believe this is by design - the linker will only look for gc_collect() in a library if it isn'

Re: deprecating std.stream, std.cstream, std.socketstream

2012-05-16 Thread Robert Clipsham
On 16/05/2012 15:38, Steven Schveighoffer wrote: On Wed, 16 May 2012 09:50:12 -0400, Walter Bright wrote: On 5/15/2012 3:34 PM, Nathan M. Swan wrote: I do agree for e.g. with binary data some data can't be read with ranges (when you need to read small chunks of varying size), I don't see wh

Re: XOMB operating system

2012-05-15 Thread Robert Clipsham
On 15/05/2012 03:36, Tyro[17] wrote: On Tuesday, 15 May 2012 at 02:06:24 UTC, tim krimm wrote: Ping: Are there any XOMB developers out there reading this? Jarrett Billingsley, Brian Madden, and Kelly Wilson all contributed to the XOMB project. I haven't seen anything from them for years now.

Re: deprecating std.stream, std.cstream, std.socketstream

2012-05-13 Thread Robert Clipsham
On 13/05/2012 22:38, Walter Bright wrote: This discussion started in the thread "Getting the const-correctness of Object sorted once and for all", but it deserved its own thread. These modules suffer from the following problems: 1. poor documentation, dearth of examples & rationale 2. toHash()

Re: Growing pains

2012-05-07 Thread Robert Clipsham
On 03/05/2012 15:50, Andrei Alexandrescu wrote: Just letting you all know we're working on the frustrating and increasingly frequent "Load at xx.xx, try again later" errors when reading this forum through NNTP. They are caused by a significant growth spurt in newsgroup readership that occurred in

Re: luajit-ffi

2012-05-01 Thread Robert Clipsham
On 01/05/2012 16:24, so wrote: http://luajit.org/ext_ffi.html https://github.com/malkia/ufo How awesome is Mike Pall? I didn't dive into details of the code, but if he can do this with a dynamic language, why on earth D still need manual C bindings while having ABI compatibility? So luajit comes

Re: More bugs...

2012-05-01 Thread Robert Clipsham
On 01/05/2012 02:00, Mehrdad wrote: Some ICE for y'all. void filter(R)(scope bool delegate(ref BAD!R) func) { } void main() { filter(r => r); } Is this in bugzilla? It can't get fixed if no one knows about it! (Make sure to give it the ice keyword once you've submitted so it gets bumped to t

Re: Does D have too many features?

2012-04-29 Thread Robert Clipsham
On 28/04/2012 20:22, Dmitry Olshansky wrote: 3. with statement (?). I kind of like it but bleh it's too boggy and it doesn't seem to pull its weight. (pointers? class references? a lot of stuff to go wrong) Fluent interfaces solve a good portion of its benefits to be specific. My primary use ca

Re: Does D have too many features?

2012-04-29 Thread Robert Clipsham
On 29/04/2012 19:08, Manu wrote: current module/package http://dlang.org/phobos/std_traits#packageName http://dlang.org/phobos/std_traits#moduleName -- Robert http://octarineparrot.com/

Is this a bug?

2012-04-20 Thread Robert Clipsham
I've been staring blankly at this for a while now and want some input from others: void foo(T, U...)(bool arg) { if (arg) { assert(T.tupleof.length == U.length); assert(arg); /* Line 6 */ // Or some other code here } } struct A {} void main() { foo!(A

Re: [off-topic] Sony releases PS Vita SDK

2012-04-20 Thread Robert Clipsham
On 20/04/2012 15:49, Manu wrote: On 20 April 2012 17:28, Sean Kelly mailto:s...@invisibleduck.org>> wrote: For what it's worth, Mikola Lysenko did a talk on coroutines in D at a D conference a few years ago. It's on video, if you're interested in looking for it. Awesome , I certain

Re: repro cases for optlink crashes

2012-04-20 Thread Robert Clipsham
On 19/04/2012 06:42, Benjamin Thaut wrote: What is the ideal repro case for a optlink crash? Are the object files enough or is a reduced sourcecode repro case preferred? If a reduced sourcecode is required, is there a way to make optlink crash with a console message instead of the usual popup win

Re: compiler support added for precise GC

2012-04-18 Thread Robert Clipsham
On 18/04/2012 17:31, Jacob Carlborg wrote: On 2012-04-18 13:06, Steven Schveighoffer wrote: On Tue, 17 Apr 2012 02:50:02 -0400, Jacob Carlborg wrote: Can you explain why .NET types are not by default serializable? All of them have full runtime reflection AFAIK. I'm not using that as an argu

Re: compiler support added for precise GC

2012-04-18 Thread Robert Clipsham
On 18/04/2012 02:11, Nick Sabalausky wrote: Can't you just query compile-time information to see what classes inherit from Base? Then you could just try downcasting to them. Last time I checked there was no way to do that (I doubt that will have changed). It's impossible to know all the subcla

Re: Is the use of .di depreceated ?

2012-04-18 Thread Robert Clipsham
On 18/04/2012 09:18, "Erèbe" wrote: Hi, I recently discovered that D support file interface .di, but through my past reads I never seen someone using it. The std don't do usage of it (compile time issue maybe ?) and most of D project are in the same case. Is this feature depreceated ? I'm from

Re: std.algorithms filter and string[]

2012-04-11 Thread Robert Clipsham
On 11/04/2012 14:55, Russel Winder wrote: I am having a dumb n00b moment, but I need to solve this 10 mins ago ;-) immutable files = ( selector == 0 ) ? [ "." ] : filter ! ( ( string x ) { return x.isFile ; } ) ( sliceOfStrings ) ; gives me the error: Error: incompatible types for (

Transfering CTFE classes to runtime

2012-03-31 Thread Robert Clipsham
Hi all, I recently had a need to use some classes from CTFE so I made a couple of helper methods to do just that: https://github.com/mrmonday/misc/blob/master/transfer.d Basic usage: enum prepared = prepare(new MyClass); auto transferred = transfer!MyClass(prepared); It's rather r

Re: DIP16: Transparently substitute module with package

2012-03-30 Thread Robert Clipsham
On 30/03/2012 15:46, Andrei Alexandrescu wrote: Starting a new thread from one in announce: http://prowiki.org/wiki4d/wiki.cgi?LanguageDevel/DIPs/DIP16 Please comment, after which Walter will approve. Walter's approval means that he would approve a pull request implementing DIP16 (subject to re

Re: Inheritance of purity

2012-02-24 Thread Robert Clipsham
On 24/02/2012 10:43, Walter Bright wrote: Do you really want a language that the source code isn't readable or browsable outside of an IDE? Like the switch from command line to GUI, perhaps there are some that are ready to switch from text files to some visually graphy thingy for source code. Bu

Re: DustMite updated

2012-02-23 Thread Robert Clipsham
On 23/02/2012 13:05, Vladimir Panteleev wrote: On Thursday, 23 February 2012 at 11:52:17 UTC, Trass3r wrote: Unfortunately plenty of 64Bit errors again :/ I can't test for these easily (I wish DMD on Windows had -m64 working with -o-). Fixed - https://github.com/CyberShadow/DustMite/pull/7

Re: The Right Approach to Exceptions

2012-02-19 Thread Robert Clipsham
On 18/02/2012 23:13, Andrei Alexandrescu wrote: On 2/18/12 4:26 PM, Jonathan M Davis wrote (abridged): GetOptException FlagArgumentMissingException InvalidFlagArgumentException UnknownFlagException FileException FileNotFoundException NotFileException NotDirException AccessDeniedException I died

Thoughts about private aliases now working

2012-02-01 Thread Robert Clipsham
Hi all, I had to skip dmd 2.057 due to various bugs, so in the hopes that I'll be able to use my codebase with 2.058 I'm testing it early. Due to some fixes with private imports, some code I was previously using no longer works. It looks a little like this: a.d private alias string[stri

Re: dmd2

2012-01-29 Thread Robert Clipsham
On 29/01/2012 16:24, Chad J wrote: Hey guys, I know this is a bit late given the deprecation of D1 and all, but why did we name the D2 compiler dmd instead of dmd2? It's rather annoyed me when trying to work with multiple D projects of mixed kind in the same environment. Using the same compiler

Re: CTFE attribute

2012-01-28 Thread Robert Clipsham
On 28/01/2012 15:13, Manu wrote: Sweet, I'll do that for now. You mean static if() right? No, I mean if(). __ctfe is a magic variable, and during CTFE it is true, at run time it is false. As it is a variable and not a constant, it cannot be read at compile time, so static if() won't work.

Re: CTFE attribute

2012-01-28 Thread Robert Clipsham
On 28/01/2012 14:50, Manu wrote: This has come up lots of times before.. I just wanted to effectively +1 this request. I have some templates, and some reasonably complex functions I use strictly via CTFE to produce enums and evaluate conditions within the templates. When I build my code, I notic

[OT] Programming language WATs

2012-01-20 Thread Robert Clipsham
Just came across this amusing 4 minute video: https://www.destroyallsoftware.com/talks/wat Anyone have any other WATs you can do in other languages? Bonus points for WATs you can do in D. -- Robert http://octarineparrot.com/

Re: Biggest Issue with D - Definition and Versioning

2012-01-15 Thread Robert Clipsham
On 15/01/2012 14:26, Daniel Murphy wrote: "Michel Fortin" wrote in message news:jetbld$23qt$1...@digitalmars.com... Looks good in theory, but in practice this approach hasn't worked very well for pull request number 3. I may have mentioned this before, but there are a couple of things that m

Re: Biggest Issue with D - Definition and Versioning

2012-01-13 Thread Robert Clipsham
On 13/01/2012 06:08, Walter Bright wrote: I'm sorry about that, but I'm running as fast as I can, along with the help of a number of prolific contributors. As you can see by the changelog, there are a zillion issues that do get resolved every month. Would it be useful if the pull auto tester se

Re: CURL question on ubuntuforums.org

2012-01-06 Thread Robert Clipsham
On 06/01/2012 20:35, Nick Sabalausky wrote: Did you mean that last line to be "dmd a.obj b.obj"? Uuurrr, oops. Yes I did, sorry about that. -- Robert http://octarineparrot.com/

Re: CURL question on ubuntuforums.org

2012-01-06 Thread Robert Clipsham
On 06/01/2012 13:58, Jacob Carlborg wrote: The only time pragma(lib) works is when the file it's in is provided on the command line. rdmd can work around this as it invokes dmd twice, there's not a lot that can be done otherwise though. You mean it doesn't work for .di files, I'm aware of that

Re: Compiler for multiple languages, including D

2012-01-05 Thread Robert Clipsham
On 05/01/2012 16:04, Andrei Alexandrescu wrote: http://l33ts.org/forum/Thread-my-online-multiple-language-compiler?pid=575304#pid575304 Andrei Dunno about anyone else, but I wouldn't trust anyone "compiling" code for you then letting you download it. How can you be sure they're not injectin

Re: CURL question on ubuntuforums.org

2012-01-05 Thread Robert Clipsham
On 05/01/2012 13:41, Jacob Carlborg wrote: On 2012-01-05 11:00, Nick Sabalausky wrote: "Joshua Reusch" wrote in message news:je26q8$19oo$1...@digitalmars.com... OT: Why does dmd ignore the pragma(lib, ...) in the etc.c.curl module while rdmd seems to recognize it? What I think is happening:

Re: ACCU and D

2012-01-03 Thread Robert Clipsham
On 03/01/2012 19:10, Nick Sabalausky wrote: In a partially related note, the ACCU has gradually been publishing the entries for the D article contest in its C Vu magazine... Mine will be in the January edition if you're interested I don't suppose there's a way to get ahold of, or at least v

Re: ACCU and D

2012-01-03 Thread Robert Clipsham
On 03/01/2012 10:46, Russel Winder wrote: My proposal for a talk at ACCU 2012 showing that D and Go prove that the C++11 standard may well be the eulogy for C++ has been accepted. http://accu.org/index.php/conferences/accu_conference_2012/accu2012_sessions#Go, D, C++ and the Multicore revolution

Re: ACCU and D

2012-01-03 Thread Robert Clipsham
On 03/01/2012 10:46, Russel Winder wrote: My proposal for a talk at ACCU 2012 showing that D and Go prove that the C++11 standard may well be the eulogy for C++ has been accepted. http://accu.org/index.php/conferences/accu_conference_2012/accu2012_sessions#Go, D, C++ and the Multicore revolution

Re: dmd and C++11

2011-12-31 Thread Robert Clipsham
On 29/12/2011 16:16, 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 future? Well, how many C++11 features does DMC sup

Re: Could we use something better than zip for the dmd package?

2011-12-21 Thread Robert Clipsham
On 20/12/2011 19:57, Trass3r wrote: The ftp is not the fastest one and 7z reduces the size by 40%. The size doesn't bother me at all. What bothers me is how long it takes to download... The digitalmars server is incredibly slow. There's no excuse for that, there are quite literally hundreds

Re: auto testing

2011-12-17 Thread Robert Clipsham
On 17/12/2011 06:40, Brad Roberts wrote: On 12/16/2011 1:29 PM, Brad Anderson wrote: On Thu, Dec 15, 2011 at 6:43 PM, Brad Robertsmailto:bra...@puremagic.com>> wrote: Left to do: 1) deploy changes to the tester hosts (it's on 2 already) done 2) finish the ui very ugly

Bug Prediction at Google

2011-12-15 Thread Robert Clipsham
I just read this pretty interesting article on the Google Engineering Tools website, thought it might interest some people here: http://google-engtools.blogspot.com/2011/12/bug-prediction-at-google.html ( http://goo.gl/2O6YT <= a short link in case the above one gets wrapped) It basically desc

Re: D1 to be discontinued on December 31, 2012

2011-12-15 Thread Robert Clipsham
On 15/12/2011 00:32, Jakob Bornecrantz wrote: On Wednesday, 14 December 2011 at 18:55:23 UTC, Walter Bright wrote: On 12/14/2011 10:28 AM, Jakob Bornecrantz wrote: I don't know where the D1 community is, or even if it exists anymore. I'm here! Thanks for speaking up. np. Anyways couldn'

Re: D1 to be discontinued on December 31, 2012

2011-12-14 Thread Robert Clipsham
On 14/12/2011 08:13, Andrei Alexandrescu wrote: On 12/14/11 1:35 AM, Jacob Carlborg wrote: No. It's not so much about the result (because I know basically everyone would vote to discontinue the D1 support), it's more about the attitude and the way it's handled. How would you have handled the s

Re: D1 to be discontinued on December 31, 2012

2011-12-14 Thread Robert Clipsham
On 14/12/2011 09:46, Andrei Alexandrescu wrote: On 12/14/11 2:30 AM, Don wrote: On 14.12.2011 05:37, Andrei Alexandrescu wrote: There is no abandonment. Also, where is that 50/50 estimate from? Just curious. The D2 community is definitely bigger than the D1 community. But how much more? I p

Re: D kicks ass.

2011-12-12 Thread Robert Clipsham
On 12/12/2011 20:08, Iain Buclaw wrote: Bigger == Better. :o) Biggest rock is best rock. http://www.youtube.com/watch?v=i_APoSfCYwU -- Robert http://octarineparrot.com/

Re: If I had my way

2011-12-12 Thread Robert Clipsham
On 12/12/2011 03:58, Walter Bright wrote: On 12/11/2011 10:34 AM, Paulo Pinto wrote: In my experience programming embedded systems in highly constrained environments usually means assembly or at most a C compiler using lots of compiler specific extensions for the target environment. I fail to s

Re: A new web newsreader

2011-12-08 Thread Robert Clipsham
On 08/12/2011 14:06, Vladimir Panteleev wrote: On Thursday, 8 December 2011 at 13:51:21 UTC, Robert Clipsham wrote: * Support syntax highlighting for blocks enclosed with --- like DDoc does, maybe other types of blocks too such as {{{}}} that trac uses, or whatever github uses. I'm not

Re: A new web newsreader

2011-12-08 Thread Robert Clipsham
On 08/12/2011 13:51, Robert Clipsham wrote: On 08/12/2011 10:55, Vladimir Panteleev wrote: As mentioned previously, I've been working on a web frontend for the DigitalMars NNTP server. I collected ideas and inspiration from the several threads on this topic in the last few weeks, and

Re: A new web newsreader

2011-12-08 Thread Robert Clipsham
On 08/12/2011 10:55, Vladimir Panteleev wrote: As mentioned previously, I've been working on a web frontend for the DigitalMars NNTP server. I collected ideas and inspiration from the several threads on this topic in the last few weeks, and now I think that the result is ready for beta testing an

Re: rt_finalize WTFs?

2011-12-05 Thread Robert Clipsham
On 05/12/2011 01:46, dsimcha wrote: I'm at my traditional passtime of trying to speed up D's garbage collector again Have you thought about pushing for the inclusion of CDGC at all/working on the tweaks needed to make it the main GC? -- Robert http://octarineparrot.com/

Re: Website message overhaul, pass 2

2011-11-21 Thread Robert Clipsham
On 21/11/2011 05:31, Andrei Alexandrescu wrote: On 11/20/11 2:40 AM, Andrei Alexandrescu wrote: Thanks to all who provided feedback! I read again the entire thread, then made one more pass: http://d-programming-language.org/new/ I made one more pass and improved the homepage in a number of wa

Re: Website message overhaul, pass 2

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

Re: Website message overhaul, pass 2

2011-11-20 Thread Robert Clipsham
On 20/11/2011 21:49, Vladimir Panteleev wrote: The D Programming Language: Modern Convenience, Modeling Power, Native Efficiency I'm not sure about the capitalization Too many capitals! The D Programming Language: Modern convenience, modeling power, native efficiency. The - Start of a sen

Re: Website message overhaul, pass 2

2011-11-20 Thread Robert Clipsham
On 20/11/2011 19:55, Andrei Alexandrescu wrote: On 11/20/11 7:09 AM, Robert Clipsham wrote: - The code sample at the top is terrible, the equivalent C is only a couple of lines longer and it doesn't show off any of what makes D better! Admittedly you're limited in what you can do h

Re: Website message overhaul, pass 2

2011-11-20 Thread Robert Clipsham
On 20/11/2011 08:40, Andrei Alexandrescu wrote: Thanks to all who provided feedback! I read again the entire thread, then made one more pass: http://d-programming-language.org/new/ I didn't make technical/aesthetic changes (JS/noJS, placement of news, links to secondary pages etc) so when provi

Re: Website message overhaul

2011-11-15 Thread Robert Clipsham
On 15/11/2011 07:26, Jacob Carlborg wrote: As I'm already a D user I'm looking first for Library reference and Language reference. I mean, if I am a D user I most likely already have a compiler installed and doesn't have to look for that as much as the points. I used an ordered list because I w

Re: Website message overhaul

2011-11-14 Thread Robert Clipsham
On 14/11/2011 01:50, Andrei Alexandrescu wrote: Walter and I have been working on the website for a while. We want to crystallize a clear message of what the D programming language is. Please take a look at http://d-programming-language.org/new/. The work is content-only (no significant changes

Re: Website message overhaul

2011-11-14 Thread Robert Clipsham
On 14/11/2011 20:12, Andrei Alexandrescu wrote: On 11/14/11 11:04 AM, Robert Clipsham wrote: - From the first look at the page it's a big block of text with no code. Very off putting from a programming language home page. I think the current page with a big block of code is quite unappe

Re: Website message overhaul

2011-11-14 Thread Robert Clipsham
On 14/11/2011 01:50, Andrei Alexandrescu wrote: Walter and I have been working on the website for a while. We want to crystallize a clear message of what the D programming language is. Please take a look at http://d-programming-language.org/new/. The work is content-only (no significant changes

Re: 64 bit version?

2011-09-25 Thread Robert Clipsham
On 22/09/2011 21:12, Trass3r wrote: or ldc, I thought that could also compile d2 LLVM still doesn't support SEH, though it's being worked on. The latest development code does for Win64. -- Robert http://octarineparrot.com/

Re: Formal Review of region allocator begins

2011-09-07 Thread Robert Clipsham
On 07/09/2011 15:10, dsimcha wrote: == Quote from Andrei Alexandrescu (seewebsiteforem...@erdani.org)'s article On 9/7/11 8:45 AM, Michel Fortin wrote: Every time I read std.regionallocator, I read "regional locator" and I find it hillarious. :-) Yes. That is part of my upcoming review. region

Re: (Un)justified justification

2011-09-03 Thread Robert Clipsham
On 02/09/2011 20:15, Vladimir Panteleev wrote: On Fri, 02 Sep 2011 22:07:29 +0300, Nick Sabalausky wrote: Don't know why I never brought this up until now, but... I know how much Andrei loves justified text, but maybe, just maybe, it's not such a great idea on the website's sidebar menu?: ht

Re: NotNull pointers

2011-08-31 Thread Robert Clipsham
On 31/08/2011 22:01, Steven Schveighoffer wrote: You can catch sigsegv on linux. It takes one call to signal to register a handler. Are you sure? I could have sworn it didn't work? If it does work, what is the purpose of this library: http://libsigsegv.sourceforge.net/ -- Robert http://octa

Re: NotNull pointers

2011-08-31 Thread Robert Clipsham
On 31/08/2011 21:02, Walter Bright wrote: On 8/31/2011 4:46 AM, Steven Schveighoffer wrote: Seg faults are not as useful as asserts. It's a fact. You might be surprised, then, that I'll often temporarily replace an assert with a HLT instruction so I can use a debugger on it :-) What's wrong

Re: NotNull pointers

2011-08-31 Thread Robert Clipsham
On 31/08/2011 21:19, Steven Schveighoffer wrote: It's also possible for the program to have its own seg fault handler that reads its own symbolic debug info and generates a line number and stack trace. There was a patch to Phobos that did this a while back. This would also be a valid option. I

Automatic reference counting

2011-08-29 Thread Robert Clipsham
Hey all, For those of you that doesn't know, Objective-C primarily uses reference counting to manage memory. With the latest releases of clang, it also supports automatic reference counting, whereby the compiler automatically inserts retain/release messages ("calls" if you don't know Obj-C) i

Re: How does pragma(lib) work?

2011-08-27 Thread Robert Clipsham
On 27/08/2011 16:59, dsimcha wrote: When I add the directive: pragma(lib, "foo"); to a file called "bar.d" and then do: dmd -c bar.d does the object file bar.o or bar.obj contain a directive that reflects the pragma, or does pragma(lib) only work when compiling and linking in one step, e.g. d

Re: [OT] Threading (Was: bug covering other bug)

2011-08-27 Thread Robert Clipsham
On 27/08/2011 15:34, Andrej Mitrovic wrote: As for using NG clients, I would do that if they offered the same view mode as gmail. There's actually a thunderbird plugin that makes the messages appear just like in gmail, however it is painfully slow, so I'm not using thunderbird. Funny, I hate gm

Re: Chances of D getting proper runtime reflection?

2011-08-21 Thread Robert Clipsham
On 21/08/2011 14:13, Vladimir Panteleev wrote: On Sun, 21 Aug 2011 15:16:11 +0300, Jacob Carlborg wrote: Yes, I know. But the point is to be able to do it without the use of mixins. It needs to work with third party types, otherwise there no use. It also needs to work when the static type is O

Re: Chances of D getting proper runtime reflection?

2011-08-21 Thread Robert Clipsham
On 21/08/2011 16:05, Jacob Carlborg wrote: This is for a serialization library where third party types need to be serializable. I don't like the idea of annotate everything that should be serializable. You don't need to annotate it: void serialize(T)(T something); You have access to all the C

Re: Chances of D getting proper runtime reflection?

2011-08-21 Thread Robert Clipsham
On 21/08/2011 11:55, Jacob Carlborg wrote: What are the chances of D getting proper runtime reflection? Something like this: class Foo { private int a; private void bar (int i) { a = i; } } auto foo = new Foo; Object o = foo; o.setInstanceVariable("a", 3); assert(foo.a == 3); This would be us

Re: llvm's SAFECode bounds checking algorithm

2011-08-21 Thread Robert Clipsham
On 20/08/2011 16:40, Walter Bright wrote: http://llvm.org/pubs/2006-05-24-SAFECode-BoundsCheck.pdf What it does is rewrites the program to install runtime checks on pointers to ensure no array bounds overflows. It indicates to me the effort being poured into C to try to make it memory safe, and

Re: Should unreachable code be considered an error?

2011-08-18 Thread Robert Clipsham
On 18/08/2011 13:38, Bernard Helyer wrote: Faramir on the Ars forums makes an excellent point: "With the c preprocessor, both theoretically and as it is used in practice, you can easily get dead code in certain compile paths that is live in others." I think template mixins can achieve the same

Re: Switch: Case Range Syntax

2011-08-17 Thread Robert Clipsham
On 17/08/2011 20:35, Jacob Carlborg wrote: D should have a built-in range type. +1 or maybe +2 if I get an extra vote ;) One that supports syntax for both including and excluding the last element: auto a = 3 .. 5 auto b = 3 ... 5 Then we wouldn't need a special range syntax for switch s

Re: CTFE - compiling other languages inside D

2011-08-10 Thread Robert Clipsham
On 10/08/2011 21:32, Marco Leise wrote: For starters, how about this?: static string someExternalText = __ctfeReadFile("external.txt"); static byte[] chipInitialState = __ctfeReadFile("initial_state.bin"); Every external file used in compiling a source file would be added to the list of files to

Re: path tracing benchmark

2011-08-10 Thread Robert Clipsham
On 10/08/2011 17:43, Trass3r wrote: Am 10.08.2011, 18:16 Uhr, schrieb Robert Clipsham : On 10/08/2011 14:49, Trass3r wrote: Had a quick look at the source, no indications that -O4 and O5 do anything more than -O3. They don't, there's no way to do LTO built into LDC. I seem to r

Re: path tracing benchmark

2011-08-10 Thread Robert Clipsham
On 10/08/2011 14:49, Trass3r wrote: 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. They don't, there's no way to do LTO built into LDC. I seem to recall some conversation about adding

Re: DB ORM

2011-08-09 Thread Robert Clipsham
On 09/08/2011 08:30, Jonas Drewsen wrote: Just stumbled upon this db orm for c++ that uses the gcc frontend to rewrite c++ code to make classes suitable for database access. http://www.codesynthesis.com/products/odb/ They are using pragmas to accomplish this. I guess an equally good implementat

Re: Does the 'package' protection attribute not work?

2011-08-08 Thread Robert Clipsham
On 08/08/2011 02:10, Jonathan M Davis wrote: Ah. Then package is horribly broken at the moment. Lovely. I guess that that just goes to show that it's not used heavily or there would be a lot more complaints about it. Another possibility is it's not used because it doesn't work - that's my curr

Re: macro keyword taken?

2011-08-07 Thread Robert Clipsham
On 07/08/2011 23:59, Andrej Mitrovic wrote: So I wanted to make myself a template called "macro", but it turns out it's a keyword: template macro() { } test.d(7): TemplateIdentifier expected following template test.d(7): Declaration expected, not 'macro' Is there something planned with this ke

Re: Does the 'package' protection attribute not work?

2011-08-07 Thread Robert Clipsham
On 07/08/2011 22:18, Jonathan M Davis wrote: Personally, I don't see much point in using the package specifier when you're not actually using a package hierarchy (you're just making it so that everything but stuff which actually uses a hierarchy can use the function - it would be a really weird d

Re: Run Microsoft Analyzer over dmd source code

2011-08-07 Thread Robert Clipsham
On 07/08/2011 18:34, Walter Bright wrote: On 8/7/2011 7:23 AM, Vladimir Panteleev wrote: 2979 warnings with code analysis with the "Microsoft Minimum Recommended Rules" ruleset. http://dump.thecybershadow.net/2e0571641194d945869a1b12b29aacdc/DMD.log Thanks, this is what I was looking for! I

  1   2   3   4   5   >