Re: Detecting inadvertent use of integer division

2009-12-14 Thread Saaa
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

Re: Arrays passed by almost reference?

2009-11-05 Thread Saaa
Ali Cehreli wrote... This helps me with the meaning of in, out & ref. http://bayimg.com/NaeOgaaCC

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Saaa
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

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Saaa
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

Re: The Thermopylae excerpt of TDPL available online

2009-10-30 Thread Saaa
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

Re: The Thermopylae excerpt of TDPL available online

2009-10-29 Thread Saaa
crp > p20. 40 words? those where for myself, to check

Re: The Thermopylae excerpt of TDPL available online

2009-10-29 Thread Saaa
Also, no mention about .dup not being a deep dup.

Re: The Thermopylae excerpt of TDPL available online

2009-10-29 Thread Saaa
Saaa wrote > Also, no mention about .dup not being a deep dup. Sorry, should've been attached to my response

Re: The Thermopylae excerpt of TDPL available online

2009-10-29 Thread Saaa
Also, no mention about .dup not being a deep dup.

Re: The Thermopylae excerpt of TDPL available online

2009-10-29 Thread Saaa
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

Re: static arrays becoming value types

2009-10-19 Thread Saaa
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

Re: New XML parser written for D1 and D2.

2009-10-14 Thread Saaa
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.

Re: New XML parser written for D1 and D2.

2009-10-14 Thread Saaa
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. >>

Re: New XML parser written for D1 and D2.

2009-10-14 Thread Saaa
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

Re: Goodbye

2009-10-14 Thread Saaa
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'

Re: Goodbye

2009-10-13 Thread Saaa
"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

Re: Goodbye

2009-10-13 Thread Saaa
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 ;)

Re: Use of first person in a book

2009-10-08 Thread Saaa
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

Re: Null references redux + Cyclone

2009-09-30 Thread Saaa
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

Re: Null references redux + Cyclone

2009-09-30 Thread Saaa
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

Re: Special Token __FUNCTION__

2009-09-07 Thread Saaa
> But most of the ideas I suggest here get dispersed like tears in rain :-) I read them ;-)

Re: Unofficial wish list status.(Sep 2009)

2009-09-01 Thread Saaa
Only curious, what is the influence record of the wishlist?

Re: D Framework

2009-07-29 Thread Saaa
> 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

Re: std.format request

2009-07-29 Thread Saaa
I don't see how all this property talk has anything to do with formatting! :D

std.format request

2009-07-28 Thread Saaa
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

Re: My own IDE for D

2009-07-27 Thread Saaa
> 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

Re: What makes D, D?

2009-07-24 Thread Saaa
> I suppose the answer would be the same, too: The Soul. Lol

Re: What makes D, D?

2009-07-24 Thread Saaa
> 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

Re: D2 std.conv to D1 please

2009-05-27 Thread Saaa
> 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

Re: D2 std.conv to D1 please

2009-05-27 Thread Saaa
> Why can't this be in official Phobos1? Especially because the documentation gets more and more outdated the further D2 progresses from 2.008 :(

Re: D2 std.conv to D1 please

2009-05-27 Thread Saaa
> > 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?

D2 std.conv to D1 please

2009-05-27 Thread Saaa
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?

Re: Promoting D

2009-05-10 Thread Saaa
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 >

Re: Promoting D

2009-05-10 Thread Saaa
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.

Re: Many questions

2009-05-04 Thread Saaa
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. > >

Re: Many questions

2009-05-03 Thread Saaa
> >> >> > 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? >>

Re: Many questions

2009-05-03 Thread Saaa
> 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

Re: Many questions

2009-05-03 Thread Saaa
> 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 > }

Re: Google Android

2009-04-29 Thread Saaa
>> 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

Re: Automated rebuilding on program startup: tools.remake

2009-04-21 Thread Saaa
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

Re: why Unix?

2009-04-06 Thread Saaa
> 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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
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

Re: why Unix?

2009-04-06 Thread Saaa
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

Re: why Unix?

2009-04-06 Thread Saaa
"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

Re: why Unix?

2009-04-06 Thread Saaa
> When you'd be writing computer programs. But that would go like this: install eclipse, check how to compile under Linux and start programming.

Re: why Unix?

2009-04-06 Thread Saaa
> > 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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
>> >> 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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
> > 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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Except this has actually happened to me, modulo a couple details. Three or four times. You should install noscript or maybe better: sandboxie

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
> 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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
"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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
"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

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
Also, microsoft bootvis.

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
I'm not really sure about this, but doesn't running the error check tool clean the cache?

Re: Multithreaded I/O in the DMD compiler (DDJ article by Walter)

2009-04-06 Thread Saaa
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

Re: The Case for D

2009-03-30 Thread Saaa
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

Re: How about a compatibility list?

2009-03-29 Thread Saaa
> 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

Re: How about a compatibility list?

2009-03-27 Thread Saaa
> Who is going to do the work of reviewing these libraries for > compatibility? The people :) like in the wine database.

How about a compatibility list?

2009-03-27 Thread Saaa
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

Re: Scientific computing with D

2009-01-31 Thread Saaa
:D

Re: People speaketh

2009-01-29 Thread Saaa
front/back++ for me then.

Re: Please vote once and for good: range operations

2009-01-29 Thread Saaa
> 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

Re: Please vote once and for good: range operations

2009-01-28 Thread Saaa
> fore/aft + head/toe seem different classes to me, rather head/back if fore/aft isn't going to win

Re: Compiler as dll

2009-01-27 Thread Saaa
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

Re: 128 bit signed and unsigned integer types

2008-12-28 Thread Saaa
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?

Re: Compiler optimizations

2008-12-19 Thread Saaa
I'd also like to know, just because I like to know :)

Re: dmd / optlink crashes

2008-12-16 Thread Saaa
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

dmd / optlink crashes

2008-12-15 Thread Saaa
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

Re: where a const?

2008-12-11 Thread Saaa
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

Re: where a const?

2008-12-11 Thread Saaa
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

where a const?

2008-12-11 Thread Saaa
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 :(

Re: Bit subscriptions, RAM columnwise layouts

2008-12-11 Thread Saaa
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

Re: std_array.html not found

2008-12-10 Thread Saaa
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

Re: OpenGL and D?

2008-12-10 Thread Saaa
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

Re: More phpBB like forum?

2008-12-10 Thread Saaa
> I visit half a dozen programming forums Can I ask which those are? (Check to see what I am missing :)

Re: std_array.html not found

2008-12-09 Thread Saaa
2.0 I meant. http://www.digitalmars.com/d/2.0/phobos/std_array.html

Re: More phpBB like forum?

2008-12-08 Thread Saaa
> 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

std_array.html not found

2008-12-08 Thread Saaa
Also, it still makes me giggle when I see AND under Server Resources on dsource :)~giggle

Re: Unofficial wish list status.(Dec 2008)

2008-12-01 Thread Saaa
I think I voted twice, how does this effect the list? Also, is there anything you can report about trends?