Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-4041-

D programming language

Name: Anonymous 2007-02-12 10:38

Name: Anonymous 2007-02-12 11:11

Python, Ruby, Lisp >

Name: Anonymous 2007-02-12 11:12

forced indentation of the code, thread over

Name: Anonymous 2007-02-12 11:21

>>2
NOES ERLANG > *. every line ends with a forced frigging DOT, what else can you wish for. just look at its developers, they're NUTS:
http://video.google.com/videoplay?docid=-5830318882717959520
in one word, try it - you'll like it. thread over.

Name: Anonymous 2007-02-12 11:45

>>4
yeah I am about to learn erlang

Name: Anonymous 2007-02-12 14:03

D sucks, C++ is still better. And the new C++ will have parallelism included, D will be obsolete lol

Name: Anonymous 2007-02-12 16:26

>>6
A lot of what's slated for C++0x (due in 2009, hah) has been in D for years, including proper thread support. D's author also writes a C++ compiler, so he rips of good ideas soon after they appear, including the C++0x proposals.

>>1
That depends where you're coming from. If languages like Python/Ruby/Lisp/Perl are your thing, you won't get much out of D. Despite the claims, D isn't as productive as them. Also, while D's templates are a lot more powerful than C++'s, they're still ugly as hell.

However, if you're coming from C or C++, then D is a very big breath of fresh air. If performance code is your thing, D is a good choice, although it's still a bleeding-edge language with all the associated problems.

Name: Anonymous 2007-02-12 16:48

>>7
oooohhhh, so where are the atomic and parallel support in D?

Name: Anonymous 2007-02-12 16:49

don't forget the lack of programming with contract and good (and open-source!) tools for D, D sucks.

Name: Anonymous 2007-02-12 16:53

Look at D:

class Foo(T)
{
  T x;
}

What kind of an ugly template system is this?

Name: Anonymous 2007-02-12 16:55

Look at this:
http://www.digitalmars.com/d/template-comparison.html
The guy says that only functions and classes can be part of a template, he's lying just to advertize his shitty language :D

Name: Anonymous 2007-02-12 16:56

looooooo: "No, D does not have a general reference type". Even Java has references :D This D language is funnier every minute :p

Name: Anonymous 2007-02-12 17:04

The problem with D is that the main web site is a mess, I can't find a good reference without stumbling upon an animated gif advertisment for a hemoroid product or something (right now it's "XP Style Icons" maybe with spyware included). And for the name of the site, what is this Digital Mars? Yes I know, it's the company name, but it should be the name of the language itself, not this (look at python.org, ruby-lang.org, perl.com...) The first time I went to this web site I thought it was a mistake and I had to look for the good links. D will fail without really good marketing (and a good dose of CSS on the site)

Name: Anonymous 2007-02-12 17:09

Look at pure FUD in the morning:
class Foo
{
    int foo(Bar *c) { return c->bar(); }
};

class Bar
{
  public:
    int bar() { return 3; }
};

He can't write correct C++ code and he criticizes? I don't get it.

Name: Anonymous 2007-02-12 17:47

>>9
D has had contracts for a long time. Have you looked at the language?

The tools, however, is a valid complaint.

>>10
I'm referring to non-trivial template metaprogramming. It's still morbidly evil in D.

Name: Anonymous 2007-02-12 17:52

>>14
What's wrong with it?

Name: Anonymous 2007-02-12 19:52

>>16
One word, the forced indentation of code. Thread over.

Name: Anonymous 2007-02-13 0:50

>>16
it's crappy C++ code just for the FUD of it. I can do the same:

int main(string chars[]) {
woot:
    goto woot;
return 2039482;
}

Oh look! D sucks because I can write crap with it! The end.

Name: Anonymous 2007-02-13 2:53

What's crappy about it?

Name: Anonymous 2007-02-13 15:18

>>19
the fact that you're unemployed.

Name: Anonymous 2007-02-13 17:32

>>20
Wonderful reply to an honest question.

I'm genuinely curious: what's wrong with that C++ code?

Name: Anonymous 2007-02-13 18:11

>>21
The foo method makes the bar method private. If you wanted that then there is nothing wrong with using a get method. But separating that into another class is probably unnecessary in the first place.

Not to mention that examples like this demonstrate nothing. This is a blown up constant integer:

class quz {
   public:
      quz (int n) : m_number(n) { }
      ~quz() { }
      int bar() { return m_number; }
   private:
      const int m_number;
};


If you try to win an argument for a language with mocked up code then you suck.

Name: Anonymous 2007-02-13 18:21

>>22

It just goes to show that you can prove anything with a contrived example.

Name: Anonymous 2007-02-13 18:28

>>22
How is bar() different from a get method? And what if foo() is non-trivial and does something with bar() first?

Name: Anonymous 2007-02-13 18:44

How is bar() different from a get method?
It's not and I never claimed differently.

And what if foo() is non-trivial and does something with bar() first?
Like what? And wtf are you doing with bar() that would break C++ and not be the programmer's fault? The example is contrived. The fact that it was contrived poorly so that you had to ask that doesn't prove that C++ sucks or D is even okay.

Name: Anonymous 2007-02-13 19:36

I'm afraid I still don't get it.

Let's say you have a screen and bezier object, and want to render the bezier. screen.draw(bez) doesn't seem that strange. The screen needs to extract all the x, y, and color coords somehow. Not exactly efficient, but not that strange either.

In any case, >>14 says the code is incorrect. What's stopping it from compiling?

Name: Anonymous 2007-02-14 7:47

>>26

screen.draw(bez);

is probably preferable to

screen.draw(x1, y1, xMid, yMid, x2, y2, rColor, gColor, bColor);

or whatever you're saying might be more efficient.  Not only is the abstraction more coherent (drawing a curve vs drawing three points and three color components), you're also only copying a pointer versus putting all that jazz on the stack.

Of course, the question of "efficiency" in such a context is very likely moot anyhow.  The overhead of the function call is likely to be dwarfed by the time spent computing the curve.

Name: Anonymous 2007-02-14 11:35

>>27
Not to mention the cache misses incurred fetching parameters from some well-aged part of the memory, rather than sticking them on the stack where they'll stay nice and warm in the L1 cache. (Or, as happens for the first 4 or so parameters on x86-64, the registers.)

Name: Anonymous 2007-02-14 14:57

>>27
Yes, that's all true. I am not interested in that however; it was only an off-cuff example that demonstrates that the code in >>14 isn't unusual.

Can someone please tell me what is wrong with >>14 already?

Name: Anonymous 2007-02-14 19:37

D looks alright but I'm not touching it until there's a nice reference book I can buy and put in my bookshelf, and have at my side when typing.  Fuck having to ask other people on a pseudo-usenet forum or IRC channel every time you want to get anything done.

WRITE SOME FUCKING D LITERATURE.  O'REILLY OR APRESS WILL PUBLISH IT.  JUST WRITE IT.

Name: Anonymous 2007-02-14 20:18

More like bez.drawto(screen).

And D is overengineered shit.

Name: Anonymous 2007-02-14 22:38

And C++ is underengineered shit.

yay im hav smerts lol

Name: Anonymous 2007-02-14 23:16

fuck garbage collection.  only idiots can't malloc and free.

Name: Anonymous 2007-02-15 4:01

>>33
Troll, but troll better

Name: Anonymous 2007-02-16 12:24

FORCED GARBAGE COLLCTION, THREAD OVER.

Name: Anonymous 2007-02-16 15:56

SEVEN WORDS: STD.GC.DISABLE(), THREAD OVER.

Name: Anonymous 2007-02-16 16:01

One word, the forced collection of garbage data. Thread over.

Name: Anonymous 2007-02-16 16:34

One sentence.  The privatized collection of garbage.  Thread over.

Name: Anonymous 2009-01-14 12:25

LISP

Name: Anonymous 2009-01-14 12:29

>>1
One hellavu big fat gay

Name: Anonymous 2010-06-25 14:53

WARNING: NECRO POST

Name: Anonymous 2011-02-03 7:29

Name: Anonymous 2011-02-04 14:13

Name: Anonymous 2011-02-04 16:44

Name: Anonymous 2012-03-23 23:38

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boyAll work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

All work and no play makes Jack a dull boy

Name: Sgt.Kabu嬴᪐kiman瘠捇 2012-05-28 22:35

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Name: Anonymous 2013-09-01 20:24



      __「`ヽ-:::'´|
     く::::::\:::::}:::/─‐- 、,
      >、:::;> '"´ ̄`"'  ` .、
     ., '  /ア  /__ /   ,   ヽ.
    /   l/  / _」_/ ! /! i  i  ',
   :'    .'   7´んハ ;_/; ハ 、.;   }
   |   レヘ. 八弋,rノ  `'ァt、/  ;
   |    (_| |""    .  り ハ / /
   | |    !.| |.    ,. - 、  "トレ'
   | l    | '、 :   l   リ  八!
   レヘ、  '、 \ト 、    _,.イ |        ,.. -─- 、
      \r ヘ/r 、 `T斤|ヽヘ/       ,:'´      ヽ.
     ,. -‐イ:::\_\rlヽ、 '"´ ̄`ヽ.    /  *´ ω`* !
    /    ヽ::::::}::::ヽrイ}ヽ、⌒ヽ `' ー'         ;
    ,'     、}:::レ'7」トヘ. ';   ':、           /
    /      ';::::::::\l::::::'; }   ,. ‐─-、      /
    、  、__  ノ:::::::::::::';::rァ} :、 ./ `つ} } }--‐ '"´
  ,' ヽイ´ ̄ ヽ!:::::::::::::::::}o:::ハ_ノ /  _ノ ノ-'J
  ! / |     |!:::::::::::::::::!::::::|´ ∨   /´

Don't change these.
Name: Email:
Entire Thread Thread List