Don wrote
> Consider this notorious piece of code:
>
> assert(x>1);
> double y = 1 / x;
>
> This calculates y as the reciprocal of x, if x is a floating-point number.
> But if x is an integer, an integer division is performed instead of a
> floating-point one, and y will be 0.
>
> It's a very com
Ali Cehreli wrote...
This helps me with the meaning of in, out & ref.
http://bayimg.com/NaeOgaaCC
Andrei Alexandrescu wrote
> Saaa wrote:
>> Andrei Alexandrescu wrote:
>>> Andrei Alexandrescu wrote:
>>>> Saaa wrote:
>>>>> Could anybody clear these up for me?
>>>>>
>>>>>> p16. Is there anything other than the random
Andrei Alexandrescu wrote:
> Andrei Alexandrescu wrote:
>> Saaa wrote:
>>> Could anybody clear these up for me?
>>>
>>>> p16. Is there anything other than the random values, unsafe about void
>>>> assignment?
>>
>> I'd put your f
Could anybody clear these up for me?
> p16. Is there anything other than the random values, unsafe about void
> assignment?
> p18. What is unsafe about implicit conversion of static to dynamic array?
>Meaning getting a dynamic array pointing to a stack allocated
> array.
>Any op
crp
> p20. 40 words?
those where for myself, to check
Also, no mention about .dup not being a deep dup.
Saaa wrote
> Also, no mention about .dup not being a deep dup.
Sorry, should've been attached to my response
Also, no mention about .dup not being a deep dup.
Andrei Alexandrescu wrote
> It's a rough rough draft, but one for the full chapter on arrays,
> associative arrays, and strings.
>
> http://erdani.com/d/thermopylae.pdf
>
> Any feedback is welcome. Thanks!
>
>
> Andrei
Makes me want to read the rest!
Will we get the electronic version with the p
Walter Bright wrote:
> Currently, static arrays are (as in C) half-value types and half-reference
> types. This tends to cause a series of weird problems and special cases in
> the language semantics, such as functions not being able to return static
> arrays, and out parameters not being possib
Michael Rynn wrote
> Where and to whom can I post the 56 KB source code zip?
Attaching it to an enhancement in bugzilla would be best, I think.
Justin Johansson wrote
> Saaa Wrote:
>
>> Michael Rynn wrote
>> > I have made a validating or optionally none validating XML parser in
>> > D.
>> nice
>>
>> >
>> > But I would like to have it made available so others can test.
>>
Michael Rynn wrote
> I have made a validating or optionally none validating XML parser in
> D.
nice
>
> But I would like to have it made available so others can test.
Maybe add it as an enhancement in bugzilla
>
> Where and to whom can I post the 56 KB source code zip?
NG attachement? Or is that
Chris Nicholson-Sauls wrote
>
> The most important thing is remembering that black text on a white screen
> carries absolutely no emotional information whatsoever, in either
> direction, in any case. The exception that proves the rule, of course, is
> ZOMG NERD RAGE ALLCAPS. Otherwise, there'
"Yigal Chripun" wrote in message
news:hb2u2n$2if...@digitalmars.com...
> On 13/10/2009 20:24, Saaa wrote:
>> Yigal Chripun wrote
>>
>>>
>>> ego has nothing to do with being smart.
>>> you can be extremely smart without getting on people's
Yigal Chripun wrote
>
> ego has nothing to do with being smart.
> you can be extremely smart without getting on people's nerves all the
> time.
A smart person can choose when to get on somebody's nerves ;)
Jarrett Billingsley wrote
> On Thu, Oct 8, 2009 at 12:04 AM, Andrei Alexandrescu
> wrote:
>> I'd decided to not use the first person at all in TDPL, but now I find
>> myself a bit constrained by that decision. I personally think a small
>> amount
>> of meta-references and asides prevents boredom
Andrei Alexandrescu wrote
>
> I wonder whether this would be a good topic for TDPL. Currently I'm
> thinking it's too low-level. I do plan to insert a short section about
> implementation, just not go deep inside the object model.
>
> Andrei
I'd really love to see more about implementations as
bearophile wrote
> Walter Bright:
>
>>No, it is done with one indirection.<
>
> If even Andrei, a quite intelligent person that has written big books on
> C++, may be wrong on such a basic thing, then I think there's a problem.
>
> It can be good to create an html page that explains how some basic
> But most of the ideas I suggest here get dispersed like tears in rain :-)
I read them ;-)
Only curious, what is the influence record of the wishlist?
> Marketing? I don't think Walter's really looking to get rich with D.
I vaguely remember Walter asking for ideas to make money with D though.
(might remember that incorrectly:)
> And there are plenty of popular things out there with silly-sounding
> names - Hadoop, Twitter, Meebo, Mibbit..Goog
I don't see how all this property talk has anything to do with formatting!
:D
Could an option be added to the formatting to elide trailing zero's for %f ?
That way it is possible to create an more optimal formatting for which the
following holds:
float f;
s = format(f);
float f2 = to!(float)(s);
assert(f==f2);
The formatting I'm trying to get can be seen here (decimal):
h
> Your Idea isn't so bad, but why should a programmer translate his complete
> project into another language? I mean, when I've chosen Java, then I want
> to make Java:) and NOT D or C#...
D1 to D2 I can fathom
> I suppose the answer would be the same, too: The Soul.
Lol
> That is a question for a philosopher, right up there with what makes you,
> you? IIRC the body replaces 100% of it's matter several times of your
> life. Some parts more often than others.
No, some parts stay with you for the rest of your life (e.g. nuclear pore
scaffold in brain cells)
What c
> Why can't this be in official Phobos1?
> It's a ploy from the D2 camp, right? :)
>If by "ploy" you mean "Walter's official stance not to change D1 or
>Phobos 1," then yes, it's a ploy. But that's a bit harsh, no?
I fixed it to how I meant it.
But I do find it a tad strange.
What disadvantage
> Why can't this be in official Phobos1?
Especially because the documentation gets more and more outdated the further
D2 progresses from 2.008 :(
>
> Have a look at std2. It's a backporting of some features of Phobos 2,
> including some of the new std.conv, to D1:
>
> http://www.dsource.org/projects/std2
Looks nice!
Why can't this be in official Phobos1?
It's a ploy from the D2 camp, right?
I've been wanting to write a D-styled data format module but just got
extremely discouraged :)
Most of the functionality I need for this is already available in D2's
std.conv.
Is it possible to add this functionality into D1's std.conv?
So, what language do you use?
> D
Ok.. why?
> (Runs away)
>> It looks to me that Walter's points aren't about convincing people to use
>> it, but to show that you are using it, that there are customers.
>
> That's right. It's called "social proof".
> http://en.wikipedia.org/wiki/Social_Proof
>
The problem I have explaining why somebody should take up D is that I know
not enough about the languages they use to actually show them the things
they are missing. Sometimes it is the, for me, obvious feature like
functions within functions that tilts their heads a bit.
Ah, ok thanks.
I should really start reading about those template things :)
> Hello Saaa,
>
>> mixins are just code in string form, right?
>
> No that's "mixin(string)", there is also "mixin Template!();" that plops
> the template content into its scope.
>
>
>
>>
>> > Templates: i dont use templates or mixins. they really confuses me and
>> > i
>> > think so that they only should be used for "array classes" or something
>> > similar.
>> >
>> Do you mean you don't understand the concept of mixins or that it makes
>> reading the code more difficult?
>>
> Templates: i dont use templates or mixins. they really confuses me and i
> think so that they only should be used for "array classes" or something
> similar.
>
Do you mean you don't understand the concept of mixins or that it makes
reading the code more difficult?
If it is the first then I do
> interface I
> {
> void shine();
> }
>
> class C : I
> {
> final void shine() { }
> }
>
> void main()
> {
> C c = new C();
> I i = c;
I didn't know an interface could hold the data of an class or am I seeing
this wrong?
>
> i.shine(); // Virtual
> c.shine(); // Direct
> }
>> Is it possible to implement support for Google Android on the D?
>
> Perhaps, but it'd be easier to implement support for D on the Google
> Android :-).
:D
Instead of running build/bud you could run your old program to rebuild
itself?
>I just committed tools/remake.d. What it does in a nutshell is this:
>
> it lets you add a call in your main.d file, along the lines of
>
> checkRemake(args, "path/to/source/file.d");
>
> checkRemake invokes gdc (or
> Saaa wrote:
>> Thanks,
>> I really do feel impaired. Not so much as in that I don't use unix, but
>> more in that I see software lagging behind hardware.
>> I think maybe this lag is a bit less when using unix but only if I would
>> start using the ri
Ignoring the rant way of putting things this is exactly my experience :D
plus: I'd ike to be able to run every tiny indiegame out there.
>
> Warning: semi-rant ahead. Feel free to ignore. :)
>
> Sean Kelly wrote:
>> My
>> Windows machine is now used exclusively for playing games. I have no
>> i
Thanks,
I really do feel impaired. Not so much as in that I don't use unix, but more
in that I see software lagging behind hardware.
I think maybe this lag is a bit less when using unix but only if I would
start using the right tools (yes I'm a mouse fanatic and found it
surprisingly stupid that
"Andrei Alexandrescu" wrote in message
news:grduhp$1rk...@digitalmars.com...
> Saaa wrote:
>>> When you'd be writing computer programs.
>>
>> But that would go like this: install eclipse, check how to compile under
>> Linux and start programm
> When you'd be writing computer programs.
But that would go like this: install eclipse, check how to compile under
Linux and start programming.
>
> Also - for me at least, learning Unix as an occasional activity (e.g.
> cygwin, the occasional ssh, trying a couple of things) has had very little
> value. Didn't work for me in the least. I remember how I installed cygwin
> for the first time and started it. It was very exciting - I could t
>>
>> Except this has actually happened to me, modulo a couple details.
>> Three or four times.
>> You should install noscript or maybe better: sandboxie
>
> /facepalm, I'm not talking about getting viruses, I'm talking about
> dealing with morons who don't realize that going to bad sites make
> th
>
> Yah, I too remember my Windows-only days the way I'd remember a temporary
> disability. (I recall to this day: any little thing I wanted to do, I'd
> start off a wizard in Dev Studio. It was kind of a surprise for me to find
> out that all those programs had been written, along with plenty m
Except this has actually happened to me, modulo a couple details.
Three or four times.
You should install noscript or maybe better: sandboxie
> I desperately wish my computer-illiterate family members would move
> off of Windows as well, since it would eliminate basically every tech-
> support call I field from them. Perhaps I've simply had good luck with
> other OSes, but Windows is the only one I've had regular problems with.
Maybe
"superdan" wrote in message
news:grdoag$1hd...@digitalmars.com...
> Jarrett Billingsley Wrote:
>
>> On Mon, Apr 6, 2009 at 4:13 PM, Andrei Alexandrescu
>> wrote:
>>
>> >> ComputerIlliterateFriend: Hey Jarrett, can you come over and fix my
>> >> computer?
>> >> Jarrett: What's it doing?
>> >> CI
"Christopher Wright" wrote in message
news:grd5rq$f7...@digitalmars.com...
> Saaa wrote:
>> I always thought people who would need to reinstall their windows to keep
>> it clean were like the ones that didn't know how computers works.
>> I haven't reins
Also, microsoft bootvis.
I'm not really sure about this, but doesn't running the error check tool
clean the cache?
I always thought people who would need to reinstall their windows to keep it
clean were like the ones that didn't know how computers works.
I haven't reinstalled my windows box in like 6 years and it doesn't startup
any slower then before.
If only you keep to the simple things like: ccleaner, aut
Will we be able to read the article online after polishing?
>I am writing an article for a programming magazine entitled "The Case for
>D".
>
> Would anyone be interested in reviewing it before publication? Please send
> me private email if so. I will need to limit the number of reviewers to a
> I would think some of that work could be automated. Of course, setting up
> the automation could mean a fair bit of work...
>
Yeah of course that would be awesome, but how difficult is it to set up a
thing like the wine database?(serious question)
As mentioned by dsimcha:
For me, writing a re
> Who is going to do the work of reviewing these libraries for
> compatibility?
The people :)
like in the wine database.
Select compiler :
dmd 2.026
Get list of compatible libraries:
dwt2 (link to dsource project page or alike)
status: bronze : base compiles, but misses most implementations.
..
etc.
To me this would be very useful; not only can I better choose my compiler, I
also get to see what is still around as
:D
front/back++ for me then.
> Probably not wise for me to quibble over these points, but... to me, the
> main problem with fore/aft is that it implies a position of an object that
> occupies physical space. Using something like head/last is just a little
> more abstract in the sense that it doesn't necessarily refer to
> fore/aft +
head/toe seem different classes to me, rather head/back if fore/aft isn't
going to win
Where and how do you use genetic programming ?? (just interested : )
> In C# 4.0 the VM becomes a module of the standard lib, so it can be used
> from normal C# code, to do various things.
>
> While writing a genetic programming program (and in some other situations)
> I find it useful to have
I could use them for a certain neural network implementation I'm working on
if they are fast for boolean operations.
"Walter Bright" wrote in message
news:gj6vrj$2lj...@digitalmars.com...
> You know, the unimplemented 128 bit integer types.
>
> Does anyone have a use for these?
I'd also like to know, just because I like to know :)
After a bit of coding I tried to add the bool array again.. no more crash.
So not so useful bugreport, sorry :)
"Saaa" wrote in message
news:gi7elg$1jb...@digitalmars.com...
>I never had any compiler crashes with D1
> With (newest)D2 the compiler seems to crash a lot (with
I never had any compiler crashes with D1
With (newest)D2 the compiler seems to crash a lot (with most of the time
incorrect code).
Faulting application dmd.exe, version 0.0.0.0, faulting module dmd.exe,
version 0.0.0.0, fault address 0x0001cb20.
and 0x000678f6.
Now Optlink also unexpected termi
I don't have svn nor used ddoc before :S
>>>
>>> Just grab the DMD2 zip. The docs are in there.
>>
>> Nope. Just checked versions 2.015-2.021
>
> Well that's dumb.
:D
I don't have svn nor used ddoc before :S
"Denis Koroskin" <2kor...@gmail.com> wrote in message
news:op.ul017vs3o7c...@worker...
> On Fri, 12 Dec 2008 05:05:16 +0300, Saaa wrote:
>
>> http://www.digitalmars.com/d/2.0/const.html
>>
>> also stil
http://www.digitalmars.com/d/2.0/const.html
also still:
http://www.digitalmars.com/d/2.0/phobos/std_array.html
And I just wanted to start using D2 :(
I agree!
>> I like it. a.bits[1..5] = 0 looks a hell of a lot better than a &= ~(((1
>> <<
>> 4) - 1) << 1)
>
> I like it too, and I think it would be an extremely welcome addition
> to a systems-level programming language.
>
> It also makes me remember the old bit[], which I always thought shou
still a 404
>> 2.0 I meant.
>> http://www.digitalmars.com/d/2.0/phobos/std_array.html
>
> Oops. This is probably my fault. I'll fix it.
>
>
> Sean
http://www.asahi-net.or.jp/~cs8k-cyu/windows/tt_e.html
Acknowledgement:
D Header files at D - porting are for use with OpenGL, SDL and SDL_mixer.
; )
Awesome game btw.. the reason I started using D.
> I'm pretty sure he used DirectX, and he wrote all his own bindings.
> But you're right, the code
> I visit half a dozen programming forums
Can I ask which those are?
(Check to see what I am missing :)
2.0 I meant.
http://www.digitalmars.com/d/2.0/phobos/std_array.html
> We do REALLY need to get something better for the on line news page.
I know that for most "Blog" pops to mind while reading that 2.0 sentence.
But who can be bothered with the signing in just to blog your mood.
That is why I vote for an imageboard.
btw. bump
Also, it still makes me giggle when I see AND under Server Resources on
dsource :)~giggle
I think I voted twice, how does this effect the list?
Also, is there anything you can report about trends?
79 matches
Mail list logo