My rant wasn't about his lack of fluency in the English language. You
only learn once what a sentence is, and the concept translates over to
most other natural languages. The same is true with the concept of
constructing a paragraph. Even if he's not a native English speaker,
I'm willing to bet
I didn't know that the use of the c-word was considered misogynous,
and I don't consider it to be. It's just an insult, and you're not
fighting sexism. The software industry being what it is, one of the
most racist and sexist industries, your time is better spent writing
about that. I do agree
I can't take a blog post seriously when it's poorly written and full of
grammatical errors. If you are in an engineering field of any kind, and
you can't construct a paragraph in your favorite natural language, you're
not worth anyone's time. The author of that blog is nothing but a
I didn't make the assumption that English is his mother tongue; however,
judging by his writing, I can tell that he's been using the English
language for at least a few years. In any case, the idea of a sentence or
a paragraph is not unique to the English language. You learn what a
sentence is
On Thu, Nov 3, 2011 at 10:43 PM, Walter Bright
newshou...@digitalmars.comwrote:
How do you implement a moving GC in D if D has
raw pointers?
It can be done if the D compiler emits full runtime type info. It's a
solved problem with GCs.
D semantics doesn't allow the GC to automatically
On Sun, May 4, 2014 at 12:22 AM, Andrei Alexandrescu via Digitalmars-d
digitalmars-d@puremagic.com wrote:
Mostly good points, but the bountysource program is an experiment by
Facebook, not by myself. And (without me trying to speak on Facebook's
behalf) it would be difficult to argue that
On Sun, May 4, 2014 at 11:09 PM, Andrei Alexandrescu via Digitalmars-d
digitalmars-d@puremagic.com wrote:
Great, a few representative links would be most welcome.
Here is a good starting point (it's a classic):
http://en.wikipedia.org/wiki/The_Cathedral_and_the_Bazaar
Here is an idea:
On Sat, May 3, 2014 at 3:49 AM, Benjamin Thaut via Digitalmars-d
digitalmars-d@puremagic.com wrote:
2) Quit D. (which is becomeing more and more an option when reading the
recent news group discussions.)
--
Kind Regards
Benjamin Thaut
I never thought I would say this, but I have begun to
On Sun, Apr 27, 2014 at 2:54 PM, Walter Bright via Digitalmars-d
digitalmars-d@puremagic.com wrote:
http://wiki.dlang.org/DIP61
What happens if you try to interface with two different C++ libraries that
use the same exact namespaces?
On Wed, Apr 3, 2013 at 6:11 PM, gonzo2020 gonzo2...@o2.pl wrote:
http://www.loadingartist.com/**2011/01/10/programming/http://www.loadingartist.com/2011/01/10/programming/
Most likely it will still be relevant 5-10 years from now. Sad but true.
On Thu, Apr 4, 2013 at 2:24 PM, Steven Schveighoffer schvei...@yahoo.comwrote:
I think you guys are missing the joke.
Question: You know C++? (interpreted as a programming question, what's
the result of C++)
Answer: is it D?
-Steve
No, I didn't miss the joke, but I was tyring to say
On Thu, Apr 4, 2013 at 3:30 PM, deadalnix deadal...@gmail.com wrote:
I did all interview for my current job in D.
What company, and in what part of the world If I may ask?
On Mon, Nov 12, 2012 at 2:28 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
* The execution of that feature (merging in the trunk along with a bunch of
unrelated work) was extremely poor. We need to acquire a sense of urgency
about fixing our process, lest this mom-and-pop-shop
On Tue, Nov 6, 2012 at 1:18 PM, Walter Bright
newshou...@digitalmars.com wrote:
No hitting below the belt! Let the games begin!
If those are our only choices, then I vote for @( ArgumentList ).
Otherwise, I think these look better:
[: ArgumentList :]
or
|: ArgumentList :|
If tuples are ever introduced, I hope parentheses will not be used.
I would prefer something like this:
tuple2,1,8
foo(11,2,8, a, b)
vs
foo((11,2,8), a, b)
Parentheses are everywhere in D. Sometimes it looks like Lisp.
On Mon, Sep 24, 2012 at 11:37 AM, bearophile bearophileh...@lycos.com wrote:
That both breaks code, doesn't improve the syntax, but makes it worse.
Bye,
bearophile
Did you time the runs?
Non-lazy D version, compiled as -O -inline -release, and ran with pick(6,
11):
real0m8.587s
user0m8.497s
sys0m0.012s
Lazy D version, compiled as -O -inline -release, and ran with pick(6, 11):
real0m4.195s
user0m4.168s
sys0m0.008s
Haskell
Any chance that math.isNaN() will work at compile-time in the future?
http://d.puremagic.com/issues/show_bug.cgi?id=8562
I haven't had the chance to study the source since last night, but is it
not possible to check to see if something is a nan without doing a cast?
On Fri, Aug 17, 2012 at 7:03
template T(){
enum a = pow(3.0, 2);
enum b = pow(3, 2.0);
}
unittest
{
alias T!() t;
}
compiling that I get:
/home/b/phobos/std/math.d(2369): Error: Cannot convert real to ushort* at
compile time
/home/b/phobos/std/math.d(3292):called from here: isNaN(y)
I've asked for this before:
http://www.digitalmars.com/d/archives/digitalmars/D/Could_we_have_mod_in_std.math_152977.html
On Sat, Aug 11, 2012 at 11:12 AM, bearophile bearophileh...@lycos.com
wrote:
It's a localized but important design bug of languages like C that D has
carried over for
When are allocators going to be ready?
On Fri, Aug 3, 2012 at 10:31 AM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
... with a few stats. Vote up!
http://www.reddit.com/r/programming/comments/xm5y0/d_260_released_d_programming_language/
Andrei
:18:55 Caligo wrote:
What?!
All he has to do is create a branch and call it stable, or whatever,
and use cherry-pick to move small stables patches from other branches
to the stable branch. What's so difficult about that? I don't get
it.
It takes up his time for him to do it, and I don't think
This article by Walter might be of an interest to you:
http://www.drdobbs.com/tools/user-defined-literals-in-the-d-programmi/229401068
On Tue, Jul 17, 2012 at 4:53 PM, Dave X. dxuhu...@gmail.com wrote:
I'm a fresh college graduate who just got a job as a software developer, and
I have been
:
On Mon, 16 Jul 2012 10:51:59 -0700, Caligo iteronve...@gmail.com wrote:
Good thing that this is an experiment because creating a new
organization just for something like this is a stupid idea. Is it so
difficult to create branches and use the features that git provides?!?
Walter was very uneasy
About 2 million in C++.
source:
http://www.ohloh.net/p/qt/analyses/latest/languages_summary
On Wed, Jul 11, 2012 at 10:28 AM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
How many lines total?
Andrei
It is suppose to compile?
I get:
t4.d(16): Error: incompatible types for ((cast(real)1 - t) *
(bezier(p[0u..__dollar - 1u],t))): 'real' and 'real[3u]'
t4.d(16): Error: incompatible types for ((t) *
(bezier(p[1u..__dollar],t))): 'real' and 'real[3u]'
t4.d(43): Error: template instance
On Mon, Jul 9, 2012 at 4:24 PM, Stefan Scholl ste...@no-spoon.de wrote:
bearophile bearophileh...@lycos.com wrote:
I think Go is meant to be used mostly on 64 bit servers.
There aren't many people using Go on 32 bit systems. That's why there is
(was?) a big memory leak on these systems which
Is the actual grammar available somewhere? The online language
reference is all we got I guess? DMD doesn't seem to be using
yacc/bison either.
On Thu, Jul 5, 2012 at 7:11 AM, Denis Shelomovskij
verylonglogin@gmail.com wrote:
There are more and more projects requiring parsing D code (IDE
I don't know much about web servers, but is it really the only web
server able to scale on multi-core CPUs?? I've played around with
Yesod/Warp and I was under the impression that it's one of the
fastest.
http://www.yesodweb.com/blog/2011/03/preliminary-warp-cross-language-benchmarks
On Mon,
So, since they haven't said anything, does this mean that neither
Walter nor Andrei have the answer to this question? or is this
something a lot more complicated ?
On Mon, Apr 16, 2012 at 9:20 PM, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Monday, April 16, 2012 19:57:04 Caligo wrote:
So, since they haven't said anything, does this mean that neither
Walter nor Andrei have the answer to this question? or is this
something a lot more complicated ?
My
On Sun, Apr 15, 2012 at 4:09 PM, Lars T. Kyllingstad
pub...@kyllingen.net wrote:
If there is anything missing from the module, I will be
happy to add it.
-Lars
How about Quaternions?
On Sat, Apr 14, 2012 at 10:10 PM, Mehrdad wfunct...@hotmail.com wrote:
Why is complex being phased out?
What happened to all this? http://dlang.org/cppcomplex.html
Where does it say it's being phased out?
On Fri, Apr 13, 2012 at 12:53 AM, Walter Bright
newshou...@digitalmars.com wrote:
Another big pile of bug fixes. More contributors than ever!
http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.074.zip
http://www.digitalmars.com/d/2.0/changelog.html
Question on slide #6:
Should work at efficiency comparable to hand-written code
A version of min() that used 'ref' would probably be faster on large
structs. Is that a problem? How do you make the decision to exclude
'ref'? Do [generic] algorithms always go with value semantics?
On Wed, Apr
The Haskell version of Romans, rubies and D:
Modified version of http://www.haskell.org/haskellwiki/Roman_numerals
so that it's compile time.
88
module Romans where
import Language.Haskell.TH
import Maybe
roman :: String - ExpQ
roman s = return
On Tue, Apr 3, 2012 at 6:20 AM, Cristi Cobzarenco
cristi.cobzare...@gmail.com wrote:
The point of these is to have light-weight element wise operation support.
It's true that in theory the built-in arrays do this. However, this library
is built on top BLAS/LAPACK, which means operations on
On Sat, Apr 7, 2012 at 10:25 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
Hello,
I finally found the time to complete std.benchmark. I got to a very simple
API design, starting where I like it: one line of code.
Andrei
I probably missed this somewhere, but what happens to
On Sat, Apr 7, 2012 at 11:01 PM, Jonathan M Davis jmdavisp...@gmx.com wrote:
What do you mean my static associative arrays? Are you asking why you can't
initialize a static variable which is an AA at compile time? e.g.
- Jonathan M Davis
The same way I can create a static array:
int[4] =
I'm not questioning the design, but I would like to know the reason:
given the fact that associative arrays are built into the language,
why don't we have static associative arrays?
On Sun, Mar 18, 2012 at 1:18 AM, H. S. Teoh hst...@quickfur.ath.cx wrote:
Are you trying to concatenate the arrays or sum their elements?
Here's how to concatenate:
auto r = a1 ~ a2;
Everybody knows about concatenation.
Here's how to sum:
auto r = a1[] + a2[];
With the
http://www.digitalmars.com/d/archives/digitalmars/D/Could_we_have_mod_in_std.math_152977.html
D is not ready for anything. At the very best, It's in alpha. Don't
let others make you think otherwise.
DMD is one of the buggiest compilers out there. If you are a
non-DMD/Phobos developer and think that D is ready for any kind of
work then you must be high on dope.
If you want to learn a
On Sun, Mar 11, 2012 at 3:00 PM, Alex Rønne Petersen
xtzgzo...@gmail.com wrote:
False. MCI is 20k+ lines. We have around 4 workarounds for DMD bugs in the
source. That is all.
--
- Alex
Well, I don't know what MCI is. Maybe you could give us a link?
My own project is maybe 5K lines, and
On Sun, Mar 11, 2012 at 5:27 PM, Nick Sabalausky a@a.a wrote:
Caligo iteronve...@gmail.com wrote in message
news:mailman.500.1331503046.4860.digitalmar...@puremagic.com...
And just for the record, there are software projects that are millions
of lines of code in C/C++ and have ZERO workarounds
I'm not impressed. Sage is superior in many ways, and many who use
things like Matlab or Mathematica are moving to Sage.
Here are some old benchmarks:
http://www.sagemath.org/tour-benchmarks.html
They should include Sage in their High-Performance JIT Compiler comparison.
On Fri, Mar 2, 2012 at
struct B { }
struct C { }
struct D { }
struct A {
ref A foo(B item) {
/* do something special. */
return this;
}
ref A foo(T)(T item) if(is(T == C) || is(T == D)) {
/* nothing special, do the same for C and D. */
return this;
module A;
private struct A { }
private A a;
private mixin template magic() { }
private void foo() { }
//-
module B;
import A;
void main() {
A b; // #1 works
b = a; // #2 ERROR
foo(); // #3 ERROR
}
struct B{
mixin magic; // #4 works
}
What's the point of
bug.d
88
@trusted:
import std.datetime : benchmark;
import std.stdio: writefln, writeln;
alias double Real;
void ben(alias fun)(string msg, uint n = 1_000_000) {
auto b = benchmark!fun(n);
writefln( %s %s ms, msg, b[0].to!(msecs, int));
}
Thanks. I have reported the bug:
http://d.puremagic.com/issues/show_bug.cgi?id=7595
That was a typo, and it doesn't change anything. Here is a shorter version:
88
import std.datetime;
import std.stdio;
struct A{
auto fun(A a){ return 0; }
}
void bench(alias fun)(string msg, uint n = 1_000_000){
auto b = benchmark!fun(n);
Is there another workaround than the one I've posted?
http://d.puremagic.com/issues/show_bug.cgi?id=7577
On Fri, Feb 24, 2012 at 8:44 PM, James Miller ja...@aatch.net wrote:
Hmm it seems that the delegate is being implicitly marked as system, and im
not sure why benchmark is @safe. I'd say
I found another workaround: mark the module as trusted.
88
import std.datetime : benchmark;
import std.stdio : writefln;
struct A(int r, int c){
public:
alias float[r * c] Data;
Data _data;
auto opBinary(A a){
float t;
foreach(i; 0..r*c)
foreach(j; 0..r*c)
t += this[i,j];
Thanks Walter. Thanks Andrei. You too, smiley face.
On Tue, Feb 21, 2012 at 6:39 PM, Walter Bright
newshou...@digitalmars.com wrote:
http://channel9.msdn.com/Shows/C9-GoingNative/GoingNative-6-The-D-Episode-with-Walter-Bright-and-Andrei-Alexandrescu
I thought GDC was going to be part of GCC 4.7, but Andrei in the video
said 4.8. That's another year, :-(
On Tue, Feb 21, 2012 at 6:39 PM, Walter Bright
newshou...@digitalmars.com wrote:
C++ has this and it makes code little more readable in certain cases:
if(something() or foo() and bar()){ ... }
instead of this in D:
if(something() || foo() bar()){ ... }
possible enhancement request? or is there a good reason it is not in
the language?
On Thu, Feb 16, 2012 at 10:35 PM, Jonathan M Davis jmdavisp...@gmx.com wrote:
On Thursday, February 16, 2012 22:31:18 Caligo wrote:
C++ has this and it makes code little more readable in certain cases:
if(something() or foo() and bar()){ ... }
instead of this in D:
if(something() || foo
http://en.cppreference.com/w/cpp/language/operator_alternative
On Thu, Feb 16, 2012 at 11:16 PM, Nick Sabalausky a@a.a wrote:
This is why I think people are nuts when they claim that english-like
VB-style syntax is more readable than C-style.
(Yea, to a grandmother with zero programming experience english-like
languages are more readable. For a
On Sun, Feb 5, 2012 at 8:44 PM, Bernard Helyer b.hel...@gmail.com wrote:
I've tried multiple times to contact Walter through his websites, but
apparently _that's_ a dead end so...
http://i.imgur.com/DzrN6.png
Look at it! The selection pulses! Empire's never looked so good!
There are some
I would like to kindly request for Emacs D mode to be updated. I've
been using 2.0.4, which I think was last released in 2007, but it
doesn't reflect the latest version of D. Its indentation also has
issues.
2012/1/29 Andrei Alexandrescu seewebsiteforem...@erdani.org:
http://www.serversidemagazine.com/news/10-questions-with-facebook-research-engineer-andrei-alexandrescu/
Andrei
Learn how to learn? Could you elaborate, please? How did you learn
how to learn?
I've already reported, and it's been fixed in the latest:
http://d.puremagic.com/issues/show_bug.cgi?id=7376
On Sat, Jan 28, 2012 at 9:56 AM, sclytrack sclytr...@fake.com wrote:
On 01/25/2012 01:12 AM, Timon Gehr wrote:
On 01/24/2012 10:28 PM, %u wrote:
Shouldn't this go into
On Sat, Jan 28, 2012 at 2:04 PM, sclytrack sclytr...@hotmail.com wrote:
Now I've waisted Walter's precious time.
I feel so sad now :-(
I should have made a post about the fact that I had already bug
reported it, but I forgot. Sorry.
On Tue, Jan 24, 2012 at 2:45 PM, bearophile bearophileh...@lycos.com wrote:
Ary Manzana:
And also, what's the advantage of the language?
Its author is a very intelligent person, worth respect. Rust has both
typestates and variable owning, and probably something else too, I have to
study
On Tue, Jan 24, 2012 at 6:51 AM, Dejan Lekic dejan.le...@gmail.com wrote:
No, it is not a bug.
Here is a hint:
import std.stdio;
int main() {
float f;
writeln(f);
return 0;
}
/+--- output --+
nan
+--- end of output ---+/
wow, what a great hint.
sorry, but I'm not
How did you compile it? As in my original post, it matters how you
compile it. In this case (I'm on a 64-bit GNU/Linux system),
compiling with '-inline' doesn't trigger the bug.
alias double Real;
//alias float Real;
// simple linear interpolation; I partitioned the internals to help me
figure out what was happening.
Real lerp(Real t, Real a, Real b){
Real s1 = (1.0 - t) * a;
Real s2 = t * b;
Real rt1 = s1 + s2;
Real rt2 = ((1.0 - t) * a) + (t * b);
struct A(uint samples){
float[samples] _data = void;
this(float val = 0.0f){ fill(_data[], val); }
}
auto a = A!8();
a._data is filled with garbage instead of zeros because the
no-argument constructor is called instead of the one that I've
defined.
On Fri, Jan 20, 2012 at 9:28 PM, Adam D. Ruppe
destructiona...@gmail.com wrote:
On Friday, 20 January 2012 at 15:40:44 UTC, Robert Clipsham wrote:
https://www.destroyallsoftware.com/talks/wat
Curious: anyone here checked out the author's screencasts?
I found this video amusing so I looked
On Fri, Jan 20, 2012 at 9:40 AM, Robert Clipsham
rob...@octarineparrot.com wrote:
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
On Sun, Jan 8, 2012 at 1:47 AM, Nick Sabalausky a@a.a wrote:
I was impressed though that none of them seemed to be buying any of the crap
that rapidcoder was spreading.
rapidcoder's brother has put up a video on YouTube:
http://www.youtube.com/watch?v=3rI85jH3F4Ufeature=related
On Wed, Jan 4, 2012 at 4:40 PM, Jesse Phillips
jessekphillip...@gmail.com wrote:
Out parameters are initialized. The declaration you want is:
bool fun(double theta, A a = A.init, B b = B.init, C c = C.init){ /* ... */
}
In my case A, B, and C are structs, so that works the way I wanted it.
Considering the rate at which bugs are being discovered and fixed, would it
be possible to shorten the release cycle, say, every 2-3 weeks instead of
1-2 months?
On Mon, Jan 2, 2012 at 4:29 PM, Timon Gehr timon.g...@gmx.ch wrote:
On 01/02/2012 09:00 PM, Nick Sabalausky wrote:
maarten van dammemaartenvd1...@gmail.com** wrote in message
news:mailman.1985.1325157846.**24802.digitalmars-d@puremagic.**com...
I think it would be an object oriented
On Sat, Dec 31, 2011 at 11:34 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
to the entire D community!
Andrei
I used GitStats to gather some statistics on DMD. My favorites:
Age - 932 days, 598 active days (64.16%)
Total Files - 1_016
Total Lines of Code - 328_727 (525_735
On Sun, Jan 1, 2012 at 7:51 PM, Timon Gehr timon.g...@gmx.ch wrote:
On my machine, the following program causes an access violation in
druntime instead of throwing an AssertError.
module test;
void foo(int x){assert(x);}
void main(){foo(0);}
dmd -run test
-- killed by signal 11
Is
On Sun, Jan 1, 2012 at 8:07 PM, Joshua Reusch yos...@arkandos.de wrote:
Am 02.01.2012 02:51, schrieb Timon Gehr:
On my machine, the following program causes an access violation in
druntime instead of throwing an AssertError.
module test;
void foo(int x){assert(x);}
void main(){foo(0);}
On Sun, Jan 2, 2011 at 4:43 PM, Jonathan M Davis jmdavisp...@gmx.comwrote:
- Jonathan M Davis
Almost a year has passed, and what is the state of const now? Is it still
broken? I've been reading some threads on SO, and I'm a bit confused as to
what's correct in my code and what's not.
On Sat, Dec 31, 2011 at 11:34 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
to the entire D community!
Andrei
Happy New Year.
:-)
On Fri, Dec 30, 2011 at 4:35 AM, Stephan s...@extrawurst.org wrote:
is there a template or something in phobos to get the same typesafe
behaviour of good old typedef ?
S.
Get over it, move on, and hope they fix the thousands of bugs left in DMD.
P.S.
use `alias`.
On Thu, Dec 29, 2011 at 3:16 AM, Walter Bright
newshou...@digitalmars.comwrote:
http://pastebin.com/AtuzJqh0
This is somewhat of a serious question: 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? It would be
On Thu, Dec 29, 2011 at 4:40 AM, Gour g...@atmarama.net wrote:
Just answer the following question: Are we mortals the result of pure
function or just side-effect?
You are asking about creationism and evolution, aren't you? I have to say
that I don't know.
Always trust the one who is
On Tue, Dec 27, 2011 at 1:59 AM, Andrew Wiley wiley.andre...@gmail.comwrote:
On Tue, Dec 27, 2011 at 1:56 AM, Caligo iteronve...@gmail.com wrote:
At the moment I don't see how anything serious can be done with D. In
the
past few weeks, while working on a _toy_ project, I've encountered
On Tue, Dec 27, 2011 at 9:10 AM, Adam D. Ruppe destructiona...@gmail.comwrote:
On Tuesday, 27 December 2011 at 08:59:33 UTC, Caligo wrote:
But, I found the bug!
I'm pretty sure that's the same bug I hit over the weekend,
but couldn't get isolated.
In my case, it was caused by one
On Tue, Dec 27, 2011 at 9:25 AM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
The way I see it is, you are a customer (and one who has had enough
faith to hang around for a while), so your issues should be given
priority. We can and we should improve quality in the abstract, but
At the moment I don't see how anything serious can be done with D. In the
past few weeks, while working on a _toy_ project, I've encountered several
bugs that have caused a lot of problems and wasted a lot of time. Sorry,
but it's just frustrating. it's gotten to the point where I have to rum
On Sat, Dec 24, 2011 at 2:09 PM, bearophile bearophileh...@lycos.comwrote:
I don't fully understand why such attribute is so useful in C programs
Bye,
bearophile
Functions are like people. Sometimes they go places that's so beautiful
that they never want to return.
On Sun, Dec 18, 2011 at 10:21 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
http://code.google.com/p/vim/**issues/detail?id=34http://code.google.com/p/vim/issues/detail?id=34
Andrei
Great. I don't use vi, but I may give it a try just because of this. D
doesn't have good
On Tue, Dec 20, 2011 at 2:09 AM, Russel Winder rus...@russel.org.uk wrote:
Musicians are coming up with new ways of funding things that is working
very well. Pre-sales. Put out the road-map and business plan for an
album or concert. Take bookings and money before committing to
anything,
On Sun, Dec 18, 2011 at 10:12 PM, Jonathan M Davis jmdavisp...@gmx.comwrote:
So, I'm beginning to think that we're going to have to go the struct route.
- Jonathan M Davis
Two questions:
1. If you guys, the D experts, are having such a difficult time with this,
what happens to the rest of
1.
The % operator, just like in C/C++, calculates the remainder, but it
doesn't handle negative numbers properly. It's not a mod operator, even
though sometimes it's called that.
assert(-6 % 20 == -6);
assert( 6 % -20 == 6);
assert(-6 % -20 == -6);
I use my own mod function whenever I
On Sun, Dec 18, 2011 at 12:17 AM, Russel Winder rus...@russel.org.ukwrote:
On Sat, 2011-12-17 at 22:45 -0600, Caligo wrote:
[...]
I thought this thread had finished, but...
That's like saying people should take Coke and Pepsi more seriously
because
they have bigger market shares when
On Fri, Dec 2, 2011 at 2:19 AM, Russel Winder rus...@russel.org.uk wrote:
Java is the main language of development just now. D is a tiny little
backwater in the nether regions of obscurity. If any language is a joke
here, it is D since it is currently unable to claim any serious market
On Sun, Dec 11, 2011 at 3:03 PM, Andrei Alexandrescu
seewebsiteforem...@erdani.org wrote:
I'm finding myself unable to set up my own Gravatar picture with dfeed.
This is because I post on this newsgroup as seewebsiteforem...@erdani.org,
which is a non-existent email address. Gravatar,
On Sat, Dec 17, 2011 at 11:01 PM, Jonathan M Davis jmdavisp...@gmx.comwrote:
In my experience, it's the professors who get to choose what they're
teaching
and the main reason that Java is used is a combination of its simplicitly
and
the fact that it's heavily used in the industry. C and C++
On Thu, Dec 1, 2011 at 3:26 AM, Russel Winder rus...@russel.org.uk wrote:
On Wed, 2011-11-30 at 23:08 -0800, Walter Bright wrote:
[...]
When you can implement a competitive malloc() using Java, I'll believe
it has
reached parity. There's a reason why the JVM is itself implemented in C,
On Sun, Nov 27, 2011 at 6:44 PM, Alexey Veselovsky
alexey.veselov...@gmail.com wrote:
I'm trying to switch from C++ to D. But I can't find some things that
I love in C++. For example in C++ I can separate module specification
and implementation. Advertising article The Case for D says that it
BTW, something is wrong with the class section of the language reference:
http://d-programming-language.org/new/class.html
It's been like that for months.
1 - 100 of 265 matches
Mail list logo