Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Nick Sabalausky
"Walter Bright" wrote in message news:houh5g$29c...@digitalmars.com... > Nick Sabalausky wrote: >> But really, I don't see why the whole issue hasn't already been made 100% >> personal style by a VCS that handles it the same way SVN handles EOLs. If >> one person has problems involving another

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Walter Bright
Nick Sabalausky wrote: But really, I don't see why the whole issue hasn't already been made 100% personal style by a VCS that handles it the same way SVN handles EOLs. If one person has problems involving another person using a different indentation system, then at least one of them is doing so

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Nick Sabalausky
"Steven Schveighoffer" wrote in message news:op.vaefb7p3eav...@localhost.localdomain... > On Tue, 30 Mar 2010 16:56:32 -0400, Walter Bright > wrote: > >> BTW, type a file to a console window. Tabs come out as 8 characters, on >> Windows, Linux, and OSX. > > So do 8 spaces. This is the surest

Re: storing the hash multiplier instead of the hash value

2010-03-30 Thread Robert Jacques
On Tue, 30 Mar 2010 16:17:20 -0300, Sea Kelly wrote: I like murmurhash as well, and I'd even had it in druntime briefly, but it uses a proprietary license and I couldn't get permision from the author to use it. It's also an order of magnitude slower on sparc than x86. That seems weird. The

Re: "Avoid a Void" paper

2010-03-30 Thread bearophile
BCS: > > So the allow void references/pointers in "system" modules, for example > > to represent the end of a linked list. > "void" == "null" > or > "void" == "pointer to untyped date" You are right, I am sorry for the little confusion. In Eiffel the D null is named "void". Bye, bearophile

Enum arguments?

2010-03-30 Thread bearophile
This is a function that convolves a 2D rectangular matrix with another given rectangular matrix, and puts the result into an output matrix. Among other things, the precondition makes sure that outmat is already the same size of mat: void convolve(float[][] mat, float[][] mask, float[][] outmat);

Re: D style guide [Was: Re: Fatal flaw in...]

2010-03-30 Thread Walter Bright
Matt wrote: I know this conversation thread is a silly anecdote to many hardcore readers in this newsgroup, but it's message is dead-on serious when it applies to intelligent outsiders who peruse D, and sophomores in college trying to learn how to program, among others. The thing is, often peop

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread BCS
Hello Matt, The fatal flaw is that tabs are 8 characters in D's official style guide I've said it before, the only way to have anything relating to formatting (a standard or even a standard of not having a standard) that doesn't drive half the people up the wall is to have the only legal for

Re: "Avoid a Void" paper

2010-03-30 Thread BCS
Hello bearophile, So the allow void references/pointers in "system" modules, for example to represent the end of a linked list. "void" == "null" or "void" == "pointer to untyped date" ??? -- ... <

Re: [OT] Who lives in the by area?

2010-03-30 Thread BCS
Hello Mike, [...] Thanks good stuff. -- ... <

Re: [OT] Who lives in the by area?

2010-03-30 Thread BCS
Hello Sea, The Marin Headlands are awesome. Spend some time out there exploring old bunkers and missile sites. For general info--the Bay Area is a big place. If you'll be living in SF, Silicon Valley, etc, it may help to offer more focused advice. I don't have a place yet, but towards the so

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Walter Bright
Matt wrote: Haha, good comeback! :) BTW, I hope nobody serious is using Notepad. The point still stands, and I'm glad that others agree that the style guide should either be removed, or if there ever were an official style guide then that particular idiosyncrasy would be altered. My notepad u

Re: [OT] Who lives in the by area?

2010-03-30 Thread Mike Farnsworth
I'm in the East Bay area, working in Berkeley at a movie VFX studio in R&D, but living in a small town north of Richmond. I'm more of a suburbia guy, but I don't want to be too far from a big city. Places to stay away from: most of west/north Oakland, the iron triangle area of Richmond. If yo

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread bearophile
Steven Schveighoffer: >For instance, all my C# (and D) code uses lowerCamelCase for methods and >properties.< That's OK for D code, but I can assure you people will not appreciate your C# code, you will find people that complain if you want to give/share/show them your C# code (probably they w

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Steven Schveighoffer
On Tue, 30 Mar 2010 17:16:19 -0400, bearophile wrote: Steven Schveighoffer: A style guide is just a guide, it's not a requirement. Most people ignore it.< If most people ignore it, then it's useless or worse than useless. C/C++ programs are too much free in such regard because those lang

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread bearophile
Steven Schveighoffer: >A style guide is just a guide, it's not a requirement. Most people ignore it.< If most people ignore it, then it's useless or worse than useless. C/C++ programs are too much free in such regard because those languages were born lot of time ago. If you look at C# code you c

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Lutger
Walter Bright wrote: > Lutger wrote: >> Matt wrote: >>> I shouldn't be using notepad, I should be using YOUR >>> editor which makes your faulty method work? >> >> D does not support notepad. > > D doesn't care what text editor you use. > > BTW, type a file to a console window. Tabs come out as

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Walter Bright
Steven Schveighoffer wrote: On Tue, 30 Mar 2010 16:56:32 -0400, Walter Bright wrote: BTW, type a file to a console window. Tabs come out as 8 characters, on Windows, Linux, and OSX. So do 8 spaces. This is the surest way to make code easily viewable/editable anywhere. Just set the "expan

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Steven Schveighoffer
On Tue, 30 Mar 2010 16:56:32 -0400, Walter Bright wrote: BTW, type a file to a console window. Tabs come out as 8 characters, on Windows, Linux, and OSX. So do 8 spaces. This is the surest way to make code easily viewable/editable anywhere. Just set the "expand tabs" option on your f

Re: D style guide [Was: Re: Fatal flaw in...]

2010-03-30 Thread Matt
> Don: > > I think that the style guide should be removed. It's rather obsolete and > > was never completely accepted. It's misleading, and not adding much > > value any more. > > A style guide is important to increase the uniformity of code written in D, I > have followed most of it in my dlib

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Steven Schveighoffer
On Tue, 30 Mar 2010 16:48:08 -0400, Matt wrote: Steven Schveighoffer Wrote: I agree. Something has to be done to capture the millions of serious non-beginner developers using notepad to write code. Walter, make this priority #1. Haha, good comeback! :) BTW, I hope nobody serious is usin

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Walter Bright
Lutger wrote: Matt wrote: I shouldn't be using notepad, I should be using YOUR editor which makes your faulty method work? D does not support notepad. D doesn't care what text editor you use. BTW, type a file to a console window. Tabs come out as 8 characters, on Windows, Linux, and OSX.

"Avoid a Void" paper

2010-03-30 Thread bearophile
I've just found and read a paper, probably about one year old, "Avoid a Void: The eradication of null dereferencing", by Bertrand Meyer, Alexander Kogtenkov and Emmanuel Stapf: http://se.ethz.ch/~meyer/publications/hoare/void-safety.pdf The paper is about the introduction of void safety in a langu

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Matt
Steven Schveighoffer Wrote: > I agree. Something has to be done to capture the millions of serious > non-beginner developers using notepad to write code. Walter, make this > priority #1. > Haha, good comeback! :) BTW, I hope nobody serious is using Notepad. The point still stands, and I

D style guide [Was: Re: Fatal flaw in...]

2010-03-30 Thread bearophile
Don: > I think that the style guide should be removed. It's rather obsolete and > was never completely accepted. It's misleading, and not adding much > value any more. A style guide is important to increase the uniformity of code written in D, I have followed most of it in my dlibs1. One of the

Re: DSpec / Templates + Delegates

2010-03-30 Thread Masahiro Nakagawa
Hi, I read sources. I have something on my chest. - ruun package Umm...need? - import ruun.dspec.Spec; import ruun.dspec.Should; I think ruun.dspec.Spec should uses "public import" for Should module. Is there a case that spec empties in it! ? - Spec methods Why final? How can I create custom S

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Lutger
Matt wrote: > I shouldn't be using notepad, I should be using YOUR > editor which makes your faulty method work? D does not support notepad.

Re: [OT] Who lives in the by area?

2010-03-30 Thread Sea Kelly
The Marin Headlands are awesome. Spend some time out there exploring old bunkers and missile sites. For general info--the Bay Area is a big place. If you'll be living in SF, Silicon Valley, etc, it may help to offer more focused advice. BCS wrote: > I just graduated from collage (Yeah!) and got

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Steven Schveighoffer
On Tue, 30 Mar 2010 14:52:47 -0400, Matt wrote: It makes me so sad, though, that the language will never take off because of one fatal flaw that plagues the widespread adoption of the language. It's a flaw that makes educated people move on because they simply won't take the language seri

Re: Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Don
Matt wrote: Hello all. I've been so fascinated with D ever since I first read about it a few years ago. I read the design descriptions and language features just for fun sometimes at work when I'm bored. It makes me so sad, though, that the language will never take off because of one fatal

Re: DSpec / Templates + Delegates

2010-03-30 Thread bearophile
Ruun: > After looking into the old source of Tango-based DUnit, some postings > here on the mailing list about assertions / unittests, i started a small > try with Phobos D2 and i'm currently really amazed how clear the API can > be by using templates + delegates + alias. I think that follows t

Re: storing the hash multiplier instead of the hash value

2010-03-30 Thread Sea Kelly
I like murmurhash as well, and I'd even had it in druntime briefly, but it uses a proprietary license and I couldn't get permision from the author to use it. It's also an order of magnitude slower on sparc than x86. Fawzi Mohamed wrote: > > On 22-mar-10, at 21:04, Andrei Alexandrescu wrote: > >

Re: DSpec / Templates + Delegates

2010-03-30 Thread Jacob Carlborg
On 3/30/10 13:58, Ruun wrote: Hi everyone, for my coming projects i was searching for a BDD-Framework similar like Ruby/RSpec or Scala/ScalaTest. Unfortanetly, i didn't find either an implementation on dsource.org or something about here on the mailing list (Especially for D2). After looking in

Fatal flaw in D design which is holding back widespread adoption

2010-03-30 Thread Matt
Hello all. I've been so fascinated with D ever since I first read about it a few years ago. I read the design descriptions and language features just for fun sometimes at work when I'm bored. It makes me so sad, though, that the language will never take off because of one fatal flaw that plag

Re: LIB flag on Windows DMD (nagging)

2010-03-30 Thread Walter Bright
Bane wrote: Or just to edit line in original sc.ini in dmd folder from LIB="%...@p%\..\lib";\dm\lib to LIB="%...@p%\..\lib";\dm\lib;%LIB% it seems that adding %LIB% at the end apends existing LIB env var, so paths are preserved. The reason this is not the default, and why sc.ini override

DSpec / Templates + Delegates

2010-03-30 Thread Ruun
Hi everyone, for my coming projects i was searching for a BDD-Framework similar like Ruby/RSpec or Scala/ScalaTest. Unfortanetly, i didn't find either an implementation on dsource.org or something about here on the mailing list (Especially for D2). After looking into the old source of Tango-b

Re: LIB flag on Windows DMD (nagging)

2010-03-30 Thread Bane
Robert Jacques Wrote: > I don't know about the general case, but I use pragma(lib,...) with a > library in my working directory and it works. That works by default. Problem is when different projects share same libs from some other folder.

Re: [OT] Who lives in the by area?

2010-03-30 Thread Ali Çehreli
BCS wrote: > Cool, I'll keep that in mind. BTW I can't seem to find what ACCU stands > for. Ha ha! :) Not surprising. As the acronym is now a misnomer, it is not being spelled out: The Association of C and C++ Users. As I said, it's a misnomer now! :) Ali

Re: LIB flag on Windows DMD (nagging)

2010-03-30 Thread Robert Jacques
On Tue, 30 Mar 2010 06:31:44 -0300, Bane wrote: (Disclaimer: I don't know is this solved on dmd later than 1.030, I'm stuck with it past...) Problem: PITA when using DMD on windows with custom library paths Example: there is pragma(lib, "mylib.lib"); somewhere in the code. mylib.lib is no

Re: Code Poet IDE

2010-03-30 Thread Matthias Pleh
I also loved this project from the very first beginning. But there is still no code checked in. And we hear nothing from the author, here and on sourceforge. That is the reason, why I started now my own porject! But since I want to have as less work as possible, I searched for an IDE with basic D

LIB flag on Windows DMD (nagging)

2010-03-30 Thread Bane
(Disclaimer: I don't know is this solved on dmd later than 1.030, I'm stuck with it past...) Problem: PITA when using DMD on windows with custom library paths Example: there is pragma(lib, "mylib.lib"); somewhere in the code. mylib.lib is not on the known path for the compiler (lets say c:\xxx)

Code Poet IDE

2010-03-30 Thread Nick B
Hi Does any one know what is happening with this project. It was announced with great fan-fair, but recently it had gone very quiet. Nick B