On 12/13/10 8:30 PM, retard wrote:
Tue, 14 Dec 2010 02:56:45 +0100, Andrej Mitrovic wrote:
Why do /you/ take it personally?
You've misunderstood. I only wish the discussion was a bit more technical
and had less to do with opinions and hype. The reason is, a more
technical approach might solve
I have done a fair bit of mixin coding using recursive templates
(inspired by std.typecons). It was an amazing taste of what you can do
in D, and I am delighted with the result - HEAPS of boiler-plate coding
vanished before my eyes. However, the template code is virtually
impossible to understa
On Mon, Dec 13, 2010 at 10:12 PM, Nick Sabalausky wrote:
> "Justin Johansson" wrote in message
> news:ie5boj$24n...@digitalmars.com...
>> On 14/12/10 01:20, Daniel Gibson wrote:
>>> On Mon, Dec 13, 2010 at 12:20 PM, Justin Johansson
>>> wrote:
Exactly. It is high time 99% of educationa
On 12/13/2010 2:54 PM, Don wrote:
> I can't really escape the feeling that 'const' guarantees too little.
> It makes guarantees to the caller, but tells the callee *nothing*.
As far as I'm concerned, that's exactly what I want const for. The caller can
rely on the object not being modified.
Lat
On 2010-12-13 17:54:57 -0500, Don said:
BTW the really big problem I have with 'auto ref' is that it isn't
'auto', and it isn't 'ref'. I wouldn't have the same objection to
something like 'autoref'.
I don't like "auto ref" as a syntax either, but I also dislike the
general direction this so
On 12/14/10, retard wrote:
> My personal stance on this matter is that I believe a more consistent and
> flexible mechanism for operators would fit D. I'm also a bit more of a
> fan of C++0x concepts than those contraints shown in the slides. I
> haven't really thought how it all would work out, b
On Mon, 13 Dec 2010 20:50:43 -0600, lurker wrote:
Why don't you retard, I mean eternium, I mean iLikeCakes, I mean
snk_kid, I mean WeAreAllTreeBear, I mean bearophile's alter ego, go
someplace else. Waisting time here is really not worth it. They provide
psychiatric treatment in hospitals.
On Mon, Dec 13, 2010 at 8:50 PM, lurker wrote:
>
> Why don't you retard, I mean eternium, I mean iLikeCakes, I mean snk_kid,
I mean WeAreAllTreeBear, I mean bearophile's alter ego, go someplace else.
Waisting time here is really not worth it. They provide psychiatric
treatment in hospitals. I can'
(2010/12/10 17:18), Rainer Schuetze wrote:
It is rather delicate to modify the windows TLS data structures, so an
option might be to not touch any TLS in the waveInProc (including any
memory allocations), but to just set an event to notify another thread
that has been created with "new Thread".
Why don't you retard, I mean eternium, I mean iLikeCakes, I mean snk_kid, I
mean WeAreAllTreeBear, I mean bearophile's alter ego, go someplace else.
Waisting time here is really not worth it. They provide psychiatric treatment
in hospitals. I can't prove this conspiracy easily, but I also voted
Tue, 14 Dec 2010 02:56:45 +0100, Andrej Mitrovic wrote:
> Why do /you/ take it personally?
You've misunderstood. I only wish the discussion was a bit more technical
and had less to do with opinions and hype. The reason is, a more
technical approach might solve technical problems in more efficie
Why do /you/ take it personally?
On 12/14/10, retard wrote:
> Mon, 13 Dec 2010 14:44:36 -0500, snk_kid wrote:
>
>> Gary Whatmore Wrote:
>>
>>> Simen kjaeraas Wrote:
>>>
>>> > Walter Bright wrote:
>>> >
>>> > > Andrei Alexandrescu wrote:
>>> > >> Compared to the talk at Google, I changed one of t
Mon, 13 Dec 2010 14:44:36 -0500, snk_kid wrote:
> Gary Whatmore Wrote:
>
>> Simen kjaeraas Wrote:
>>
>> > Walter Bright wrote:
>> >
>> > > Andrei Alexandrescu wrote:
>> > >> Compared to the talk at Google, I changed one of the "cool things"
>> > >> from threading to operator overloading. Didn'
Mon, 13 Dec 2010 16:45:09 -0500, Austin Hastings wrote:
> On 12/9/2010 11:27 AM, Ddev wrote:
>> hi community,
>> How convince my teacher to go in D ?
>> After talk with my teacher, i do not think D is good because after 10
>> years is not become the big one. she is very skeptical about D. If i
>>
Don Wrote:
> I can't really escape the feeling that 'const' guarantees too little.
> It makes guarantees to the caller, but tells the callee *nothing*.
But it tells the callee exactly what it does, (assuming you unintuitive
associate that const objects can be modified). To me const is nothing bu
Austin Hastings wrote in
news:ie64dv$uv...@digitalmars.com:
> I don't see where D has anything to offer a computer teacher. There
> isn't a convenient, trivially-installed IDE (Java, .NET).
No IDE? My, my, how we coddle our students today! The IDE for my first
programming course, was
Andrei Alexandrescu wrote:
By the way, I couldn't stop cringing at the distasteful, male-centric
sexual jokes that the talk is peppered with. Wonder if there was any
woman in the audience, and how she might have felt. And this is not a
ghetto rant - it's the keynote of a major Ruby conference!
== Quote from Craig Black (craigbla...@cox.net)'s article
> > Testing your C++ program (altered getCycle() for GCC)
> >
> > Times I get:
> > ---
> > Sorting with Array: 46869.159840
> > Sorting with pointers: 38688.937320
> > 17.453316 percent faster
> >
> > Sorting with Array: 46631.903760
> >
Andrei Alexandrescu wrote:
On 12/13/10 9:28 AM, Don wrote:
Andrei Alexandrescu wrote:
On 12/10/10 4:10 PM, foobar wrote:
Don Wrote:
Steven Schveighoffer wrote:
To summarize for those looking for the C++ behavior, the equivalent
would be:
void foo(auto ref const Widget)
That use of 'auto'
On 12/9/2010 11:27 AM, Ddev wrote:
hi community,
How convince my teacher to go in D ?
After talk with my teacher, i do not think D is good because after 10 years is
not become the big one. she is very skeptical about D. If i could convince my
teacher it will be great maybe i will teach to his
s
"Justin Johansson" wrote in message
news:ie5boj$24n...@digitalmars.com...
> On 14/12/10 01:20, Daniel Gibson wrote:
>> On Mon, Dec 13, 2010 at 12:20 PM, Justin Johansson
>> wrote:
>>> On 10/12/10 03:33, Nick Sabalausky wrote:
"Ddev"wrote in message
news:idr024$280...@digitalma
On 12/13/10 12:23 PM, Jonathan M Davis wrote:
On Monday, December 13, 2010 11:02:36 Jacob Carlborg wrote:
On 2010-12-13 14:51, bioinfornatics wrote:
Hi D community,
i would like put an idea,
* it will be great add to dsource or a new website a tool like CPAN (and
other ..) for auto instaling a
This is an idea I've been thinking of for a while, it's not a really
suggestion (at least not yet) I just wanted to here what people think
about it.
If we take a step back and look at what string mixins actually do or
rather what they're used for, that would be: inserting a piece/block of
cod
Andrei:
>Walter wants to keep complex literals. I strongly believe they are completely
>useless.<
Thank you for your answer. So far I have used D complex numbers only two times,
so I don't have to use them often, so I don't feel a strong need for them. But
I like that people that use them ofte
Also with bugs (the most hated is the *freeze* one), I'm still using Descent
every single day, to code in D in the company where I work.
By far it is the most productive and incredible D IDE (sorry Bruno, I *relly*
hope that DDT will catch up!).
/Paolo Invernizzi
Ary Borenszweig Wrote:
> I thi
Yeah, it's a PITA all right. You could download a project, and it
could list a dozen library dependencies in a text file. So now you
have to spend hours searching, downloading, reading manuals and
compiling libraries (not to mention having to download any extra
dependencies for those libs as well,
Deploying a Ruby on Rails 2 application is like this:
git clone ... (or hg pull ... or whatever you use)
rake gems:install (this installs all the libraries your project depend on)
rake db:create
rake db:migrate
rake db:seed
Very, very convenient. Otherwise you have to download the jars in you ser
I think just in Descent. But it comes with a bonus pack: lots of bugs. :-P
Gary Whatmore Wrote:
> Simen kjaeraas Wrote:
>
> > Walter Bright wrote:
> >
> > > Andrei Alexandrescu wrote:
> > >> Compared to the talk at Google, I changed one of the "cool things" from
> > >> threading to operator overloading. Didn't manage to talk about that -
> > >> there were a millio
Mon, 13 Dec 2010 14:23:24 -0500, Nick Sabalausky wrote:
> "Ary Borenszweig" wrote in message
> news:ie5r0q$86...@digitalmars.com...
>> This is how:
>>
>> http://www.youtube.com/asterite#p/u/10/oAhrFQVnsrY
>
> Cool :)
>
> I don't use Eclipse because there's a lot I don't like about it for
> norm
On 12/13/10, Ary Borenszweig wrote:
> This is how:
>
> http://www.youtube.com/asterite#p/u/10/oAhrFQVnsrY
>
That is insanely cool, especially the mixin expansion part. Is this
functionality in DDT as well or only in Descent?
On Monday, December 13, 2010 11:10:55 Andrej Mitrovic wrote:
> So I was a bit surprised today to find out that this sample C# code works:
>
> class LibraryItem
> {
> private int _numCopies;
>
> // Property
> public int NumCopies
> {
> get { return _numCopies; }
> s
"Ary Borenszweig" wrote in message
news:ie5r0q$86...@digitalmars.com...
> This is how:
>
> http://www.youtube.com/asterite#p/u/10/oAhrFQVnsrY
Cool :)
I don't use Eclipse because there's a lot I don't like about it for normal
day-to-day coding, but I may install it with Descent and/or that othe
On 2010-12-13 20:04, Nick Sabalausky wrote:
"Jacob Carlborg" wrote in message
news:ie5n2o$2v7...@digitalmars.com...
On 2010-12-12 19:27, Nick Sabalausky wrote:
There's one important difference you missed. Granted, it's not applicable
in
that particular example, but more generally, it's import
On Monday, December 13, 2010 11:02:36 Jacob Carlborg wrote:
> On 2010-12-13 14:51, bioinfornatics wrote:
> > Hi D community,
> > i would like put an idea,
> > * it will be great add to dsource or a new website a tool like CPAN (and
> > other ..) for auto instaling a new project (local and distant
>
This is how:
http://www.youtube.com/asterite#p/u/10/oAhrFQVnsrY
So I was a bit surprised today to find out that this sample C# code works:
class LibraryItem
{
private int _numCopies;
// Property
public int NumCopies
{
get { return _numCopies; }
set { _numCopies = value; }
}
public void BorrowItem(string name)
{
On 2010-12-13 11:50, Stephan Soller wrote:
On 12.12.2010 21:17, spir wrote:
On Sun, 12 Dec 2010 12:23:03 -0600
Andrei Alexandrescu wrote:
Going now
back to D, we can imagine the following lowering:
fun (a, b ; c) stmt
=>
fun(c, (a, b) { stmt })
It seems to me that lowering is analog to re
On 2010-12-13 04:23, Adam D. Ruppe wrote:
Ary Borenszweig wrote:
D should provide a yield keyword that basically
rewrites the body of the method into the first code.
Don't need to change the language for that.
=
string yield(string what) {
return `if(auto result = dg(`~what~`)) re
"Jacob Carlborg" wrote in message
news:ie5n2o$2v7...@digitalmars.com...
> On 2010-12-12 19:27, Nick Sabalausky wrote:
>>
>> There's one important difference you missed. Granted, it's not applicable
>> in
>> that particular example, but more generally, it's important:
>>
>> int foo()
>> {
>>
On 2010-12-13 14:51, bioinfornatics wrote:
Hi D community,
i would like put an idea,
* it will be great add to dsource or a new website a tool like CPAN (and other
..) for auto instaling a new project (local and distant package/project)
- we can use use some auto tools for build a project cm
On 2010-12-13 12:01, Ary Borenszweig wrote:
On 12/13/2010 12:23 AM, Adam D. Ruppe wrote:
Ary Borenszweig wrote:
D should provide a yield keyword that basically
rewrites the body of the method into the first code.
Don't need to change the language for that.
=
string yield(string what
"Andrei Alexandrescu" wrote in message
news:ie5fe7$2df...@digitalmars.com...
> On 12/13/10 9:11 AM, Jeff Nowakowski wrote:
>> On 12/13/2010 09:08 AM, Ary Borenszweig wrote:
>>> Yes I am :-)
>>
>> Since you were the Descent author, I wonder how you feel about Ruby's
>> lack of static typing. In th
"Nick Sabalausky" wrote in message
news:ie5n5t$2vu...@digitalmars.com...
> "Ary Borenszweig" wrote in message
> news:ie5ek1$2bn...@digitalmars.com...
>> Well, about a year ago I started programming in dynamic languages like
>> python and
>> Ruby. I did very little of python and a lot in Ruby.
On 2010-12-12 21:50, Nick Sabalausky wrote:
"Andrei Alexandrescu" wrote in message
news:ie341e$br...@digitalmars.com...
On 12/12/10 6:44 AM, Jacob Carlborg wrote:
[snip]
Conclusion:
D needs a better and nicer looking syntax for passing delegates to
functions.
Suggestion:
If a function takes
On 2010-12-12 19:37, Nick Sabalausky wrote:
"Nick Sabalausky" wrote in message
news:ie34p4$dg...@digitalmars.com...
"Adam D. Ruppe" wrote in message
news:ie2sv2$2th...@digitalmars.com...
We already have a D block syntax!
=
void myfun(void delegate() lol) {
lol();
}
void main()
On Mon, 13 Dec 2010 09:49:50 -0600
Andrei Alexandrescu wrote:
> By the way, I couldn't stop cringing at the distasteful, male-centric
> sexual jokes that the talk is peppered with. Wonder if there was any
> woman in the audience, and how she might have felt. And this is not a
> ghetto rant - i
On Mon, 13 Dec 2010 10:11:15 -0500
Jeff Nowakowski wrote:
> Ruby is also one of the slowest languages around, and I'm sure some of
> that is due to the "freedom" it gives you, "freedom" being what the
> speaker calls no static typing and monkey patching.
I wonder why there are so few dynamic &
On Mon, 13 Dec 2010 12:12:27 -0500
"Nick Sabalausky" wrote:
> The ability the get a string representation of the argument passd by the
> caller would definitely be a great thing to have. Although I think it would
> be better placed in __traits or the proposed magic "meta" namespace, etc.
> Tha
On Mon, 13 Dec 2010 11:50:39 +0100
Stephan Soller wrote:
> > But I do not see in what Ruby-like syntax and point of view are clearer;
> > actally, I find D far more readable.
> > And even less what this would bring to D. This is interesting in highly
> > reflexive languages; even more reflexive
It's not to be used everywhere, but in many cases it makes the code more
readable.
Compare
str = some_string
if (str.start_with?('foo')) str = str[3 .. -1]
str = str.downcase
with this:
str = some_string
str = str[3 .. -1] if (str.start_with?('foo'))
str = str.downcase
See? You can see the pro
On 2010-12-12 18:03, Adam D. Ruppe wrote:
foobar wrote:
D basically re-writes foreach with opApply into the ruby version
which is why Ruby is *BETTER*
You missed the point: there is no "Ruby version". They are the
same thing.
foreach to me is a redundant obfuscation
How can it be redundant
"Ary Borenszweig" wrote in message
news:ie5ek1$2bn...@digitalmars.com...
> Well, about a year ago I started programming in dynamic languages like
> python and
> Ruby. I did very little of python and a lot in Ruby. At first I thought
> "Hm, it
> must be really hard to program without autocomplet
On 2010-12-12 19:27, Nick Sabalausky wrote:
"Jacob Carlborg" wrote in message
news:ie2g72$1sf...@digitalmars.com...
On 2010-12-11 18:21, Andrei Alexandrescu wrote:
On 12/11/10 11:05 AM, so wrote:
Not to hijack this one but on the other thread i asked why this is
needed.
I am not here asking f
On 2010-12-12 19:23, Andrei Alexandrescu wrote:
On 12/12/10 6:44 AM, Jacob Carlborg wrote:
[snip]
Conclusion:
D needs a better and nicer looking syntax for passing delegates to
functions.
Suggestion:
If a function takes a delegate as its last parameter allow the delegate
literal to be passed
On 2010-12-12 17:29, Adam D. Ruppe wrote:
so wrote:
Am i alone thinking D one better here?
No, I find foreach to be significantly better than the ruby
blocks too. I recently argued on the gentoo forums that
they are virtually equivalent too:
http://forums.gentoo.org/viewtopic-p-6500059.html#65
On 12/13/10 11:39 AM, Nick Sabalausky wrote:
"Stephan Soller" wrote in message
news:ie4srq$138...@digitalmars.com...
On 12.12.2010 18:01, Simen kjaeraas wrote:
Absolutely not. Ruby reads like Yoda-speak, while D is almost plain
English. Had foreach used 'in' instead of the semicolon, only
pun
On 2010-12-12 15:25, foobar wrote:
I agree with Jacob Carlborg regarding the problem. It would indeed be nice to
have better delegates syntax. But, why are we trying so hard to force the same
syntax that's used for 'regular' function calls? I'm unconvinced that the
suggestions provided are cle
On 2010-12-12 17:22, so wrote:
If we take a look at the very first code example from the talk it
looks like this:
account.people.each do |person|
puts person.name
end
You could translate this in two ways when translating into D.
First way:
foreach (person ; account.people)
writeln(person.name)
On 2010-12-12 15:24, Lutger Blijdestijn wrote:
Jacob Carlborg wrote:
I agree with lambda syntax, iirc the trailing delegate was introduced around
the time lazy made it into the language. However, D has some features of its
own that could make for a better translation.
In rails associative array
Testing your C++ program (altered getCycle() for GCC)
Times I get:
---
Sorting with Array: 46869.159840
Sorting with pointers: 38688.937320
17.453316 percent faster
Sorting with Array: 46631.903760
Sorting with pointers: 38520.609360
17.394302 percent faster
Sorting with Array: 46674.330720
"Stephan Soller" wrote in message
news:ie4srq$138...@digitalmars.com...
> On 12.12.2010 18:01, Simen kjaeraas wrote:
>>
>> Absolutely not. Ruby reads like Yoda-speak, while D is almost plain
>> English. Had foreach used 'in' instead of the semicolon, only
>> punctuation and 'ln' would be off.
>>
On 12/13/2010 10:37 AM, Ary Borenszweig wrote:
Fourth, rename refactoring. That is the thing that is likely less to happen in a
project.
Actually, I do that quite a bit. I found that I renamed things a lot
more when it became easy to do so. Before that I would tend to live with
a name I didn
"Walter Bright" wrote in message
news:ie4mit$m2...@digitalmars.com...
Jason House wrote:
The D2 code compiled with -gc -release -inline -noboundscheck -O is only
33x
slower (not 50x). My test this evening was with dmd 2.047 and g++ 4.4.5.
I see the problem. You need to compile with the
"Ary Borenszweig" wrote in message
news:ie4ui8$174...@digitalmars.com...
> On 12/13/2010 12:23 AM, Adam D. Ruppe wrote:
>> Ary Borenszweig wrote:
>>> D should provide a yield keyword that basically
>>> rewrites the body of the method into the first code.
>>
>> Don't need to change the language fo
On Monday 13 December 2010 04:05:33 bearophile wrote:
> Jonathan M Davis:
> > I don't see what that poster thought would be gained by enforcing that,
>
> If you read that part in the Reddit thread you see that the gain is in a
> (supposed) higher understandability of the code that uses the operato
On 12/13/10 9:11 AM, Jeff Nowakowski wrote:
On 12/13/2010 09:08 AM, Ary Borenszweig wrote:
Yes I am :-)
Since you were the Descent author, I wonder how you feel about Ruby's
lack of static typing. In the video, the speaker bashes type safety as
"having your balls fondled at the airport", that
On 12/13/10 9:28 AM, Don wrote:
Andrei Alexandrescu wrote:
On 12/10/10 4:10 PM, foobar wrote:
Don Wrote:
Steven Schveighoffer wrote:
To summarize for those looking for the C++ behavior, the equivalent
would be:
void foo(auto ref const Widget)
That use of 'auto' is an abomination.
I agre
Well, about a year ago I started programming in dynamic languages like python
and
Ruby. I did very little of python and a lot in Ruby. At first I thought "Hm, it
must be really hard to program without autocompletion, static type verification,
etc.". Soon I found out I was wrong.
First, in Ruby it
On 12/13/10 6:11 AM, bearophile wrote:
Andrei:
http://erdani.com/tdpl/2010-12-08-ACCU.pdf
I have a small question. At page 34 of the slides it says:
- Built-in complex types are being replaced by library types
Are complex types totally replaced, or is the complex literals syntax (like
10+
Andrei Alexandrescu wrote:
On 12/10/10 4:10 PM, foobar wrote:
Don Wrote:
Steven Schveighoffer wrote:
To summarize for those looking for the C++ behavior, the equivalent
would be:
void foo(auto ref const Widget)
That use of 'auto' is an abomination.
I agree with don.
IMHO, this is incredi
On 12/13/2010 7:27 PM, Lars T. Kyllingstad wrote:
On Mon, 13 Dec 2010 16:56:48 +0700, Andre Tampubolon wrote:
Is the source code of bleeding edge DMD2 available on svn or something?
I tried http://svn.dsource.org/projects, but that didn't work...
Yes. The project page, including a code brows
On 12/13/2010 09:08 AM, Ary Borenszweig wrote:
Yes I am :-)
Since you were the Descent author, I wonder how you feel about Ruby's
lack of static typing. In the video, the speaker bashes type safety as
"having your balls fondled at the airport", that is, security theater
that doesn't accompli
On 14/12/10 01:20, Daniel Gibson wrote:
On Mon, Dec 13, 2010 at 12:20 PM, Justin Johansson wrote:
On 10/12/10 03:33, Nick Sabalausky wrote:
"Ddev"wrote in message
news:idr024$280...@digitalmars.com...
hi community,
How convince my teacher to go in D ?
After talk with my teacher, i do no
Typo s/if/is/
> How you have extrapolated 50% of students for 50% of teachers is beyond
> me.
dsss is die
it will be great a tool who communicate with dsource (or other) for help
install, in perl or in ruby from commndline you can install a new library it is
easy and powerfull, save time
On Mon, Dec 13, 2010 at 2:51 PM, bioinfornatics
wrote:
> Hi D community,
> i would like put an idea,
> * it will be great add to dsource or a new website a tool like CPAN (and
> other ..) for auto instaling a new project (local and distant package/project)
> - we can use use some auto tools for
On Mon, Dec 13, 2010 at 12:20 PM, Justin Johansson wrote:
> On 10/12/10 03:33, Nick Sabalausky wrote:
>>
>> "Ddev" wrote in message
>> news:idr024$280...@digitalmars.com...
>>>
>>> hi community,
>>> How convince my teacher to go in D ?
>>> After talk with my teacher, i do not think D is good beca
Yes I am :-)
I stopped "supporting" D because it grew to be a very confusing and hard to
master
monster, with all those const, invariant and "this is not avaialble in the
language, but writing this function and using it in a way it works but it's very
unintuitive, we can have it" (like the mixin(
On 11/12/10 12:26, Ary Borenszweig wrote:
http://vimeo.com/17420638
A very interesting talk.
I used to like D
Just to be sure Ary, are you not the author behind "Descent", the
Eclipse Plugin for D? Likely I am mistaken, but if not, this is
a bit of a wikileak for your former support of D
Hi D community,
i would like put an idea,
* it will be great add to dsource or a new website a tool like CPAN (and other
..) for auto instaling a new project (local and distant package/project)
- we can use use some auto tools for build a project cmake dmake and other ..
* Add a new project to
On 11.12.2010 10:29, "Jérôme M. Berger" wrote:
Ary Borenszweig wrote:
http://vimeo.com/17420638
A very interesting talk.
I used to like D. To write code in a high level while at the same
time being very close to the machine, with class invariants, unit
tests and many other features seemed very
On 13.12.2010 12:42, Simen kjaeraas wrote:
Stephan Soller wrote:
Absolutely not. Ruby reads like Yoda-speak, while D is almost plain
English. Had foreach used 'in' instead of the semicolon, only
punctuation and 'ln' would be off.
Unfortunately I have to disagree here. If you have well writt
On Mon, 13 Dec 2010 14:27:02 +0200, bearophile
wrote:
In two places I have read about 'shredding your trash', that is filling
the memory that's supposed to be free and not used any more with a
constant known value different from zero, to allow bugs in pointer usage
to surface faster. So
== Quote from Craig Black (craigbla...@cox.net)'s article
> If the problem is not inlining, then why does the same code in C++ does not
> suffer from this performance limitation (when compiled with Visual C++
> 2008)?
> #include
> #include
> #include
> template
> T min(T a, T b) { return a < b
In two places I have read about 'shredding your trash', that is filling the
memory that's supposed to be free and not used any more with a constant known
value different from zero, to allow bugs in pointer usage to surface faster. So
is it a good idea for the D GC to perform such overwriting of
On Mon, 13 Dec 2010 16:56:48 +0700, Andre Tampubolon wrote:
> Is the source code of bleeding edge DMD2 available on svn or something?
> I tried http://svn.dsource.org/projects, but that didn't work...
Yes. The project page, including a code browser, is at
http://www.dsource.org/projects/dmd
Andrei:
> http://erdani.com/tdpl/2010-12-08-ACCU.pdf
I have a small question. At page 34 of the slides it says:
> - Built-in complex types are being replaced by library types
Are complex types totally replaced, or is the complex literals syntax (like
10+10i) kept? Keeping those literals may be
Jonathan M Davis:
> I don't see what that poster thought would be gained by enforcing that,
If you read that part in the Reddit thread you see that the gain is in a
(supposed) higher understandability of the code that uses the operators.
> but it's _really_ easy to have useful and legitimate o
Stephan Soller wrote:
Absolutely not. Ruby reads like Yoda-speak, while D is almost plain
English. Had foreach used 'in' instead of the semicolon, only
punctuation and 'ln' would be off.
Unfortunately I have to disagree here. If you have well written Ruby
code (like Ruby on Rails usually p
On 10/12/10 03:33, Nick Sabalausky wrote:
"Ddev" wrote in message
news:idr024$280...@digitalmars.com...
hi community,
How convince my teacher to go in D ?
After talk with my teacher, i do not think D is good because after 10
years is not become the big one. she is very skeptical about D. If i c
On 12/13/2010 12:23 AM, Adam D. Ruppe wrote:
Ary Borenszweig wrote:
D should provide a yield keyword that basically
rewrites the body of the method into the first code.
Don't need to change the language for that.
=
string yield(string what) {
return `if(auto result = dg(`~what~`))
On 12.12.2010 21:17, spir wrote:
On Sun, 12 Dec 2010 12:23:03 -0600
Andrei Alexandrescu wrote:
Going now
back to D, we can imagine the following lowering:
fun (a, b ; c) stmt
=>
fun(c, (a, b) { stmt })
It seems to me that lowering is analog to redefine "shallow" syntax (in fact,
syntacti
On 12.12.2010 18:01, Simen kjaeraas wrote:
so wrote:
If we take a look at the very first code example from the talk it
looks like this:
account.people.each do |person|
puts person.name
end
You could translate this in two ways when translating into D.
First way:
foreach (person ; account.peo
On 12.12.2010 20:44, foobar wrote:
Adam D. Ruppe Wrote:
foobar wrote:
D basically re-writes foreach with opApply into the ruby version
which is why Ruby is *BETTER*
You missed the point: there is no "Ruby version". They are the
same thing.
By "ruby version" I meant the syntax. I agreed alr
Is the source code of bleeding edge DMD2 available on svn or something?
I tried http://svn.dsource.org/projects, but that didn't work...
In bugzilla I have asked for the Variable Length Arrays in D:
http://d.puremagic.com/issues/show_bug.cgi?id=5348
Bye,
bearophile
Jason House wrote:
The D2 code compiled with -gc -release -inline -noboundscheck -O is only 33x
slower (not 50x). My test this evening was with dmd 2.047 and g++ 4.4.5.
I see the problem. You need to compile with the
-winbenchmark
switch. This switch enables sophisticated optimizer techno
98 matches
Mail list logo