digitalmars.D - Why D eXecutables are very BIG???
- kortex (14/14) Aug 19 2005 Yes this my question
- Mike Parker (15/27) Aug 20 2005 Currently all D executables have the garbage collector linked in. This
- MicroWizard (9/23) Aug 20 2005 First of all... you should think of "optimizing" your typing ;-)
Yes this my question i also want to know i the inventor of D [the GREAT guy] can make some cool optimization so the output obj and executables are so small SO waht about optimization for speed and size i think this is the time for some effort on optinization we want small fast programs so i will sleep now and dream ----------------------------------------------------------------------- and by the way what about [throws] and insatnceof keywords please GIVE it a try and scratch your BRAIN and i think you can make it thankx KorTex
Aug 19 2005
kortex wrote:Yes this my question i also want to know i the inventor of D [the GREAT guy] can make some cool optimization so the output obj and executables are so small SO waht about optimization for speed and size i think this is the time for some effort on optinization we want small fast programs so i will sleep now and dreamCurrently all D executables have the garbage collector linked in. This adds a bit to the size of the executable. Hopefully one day we will be able to use the GC in shared library form, but for now it's not an option.----------------------------------------------------------------------- and by the way what about [throws] and insatnceof keywords please GIVE it a try and scratch your BRAIN and i think you can make itWe don't need instanceof in D. You can try to cast an object to the type you want. The cast will return null if it cannot succeed. So the following code snippets are equivalent: if(someObj instanceof SomeType) {} // Java if(cast(SomeType)someObj !is null) {} // D Though in reality, in D, you'd probably do this: SomeType t = cast(SomeType)someObj; if(t !is null) {} And anyone asking for the throws keyword should be locked in a dungeon and forced to write code using the java.sql package. Letting that monstrosity into D is a horrible idea.
Aug 20 2005
First of all... you should think of "optimizing" your typing ;-) (AFAIK in english there are a lot of interesting things: spelling, capitalized letters, punctuation, an so on. :-) To ask aggressive questions is easy, to do anything well is much harder. I suggest you to browse the forum archive. You should find a lot about this issue. Tamas Nagy In article <de6j92$h7p$1 digitaldaemon.com>, kortex says...Yes this my question i also want to know i the inventor of D [the GREAT guy] can make some cool optimization so the output obj and executables are so small SO waht about optimization for speed and size i think this is the time for some effort on optinization we want small fast programs so i will sleep now and dream ----------------------------------------------------------------------- and by the way what about [throws] and insatnceof keywords please GIVE it a try and scratch your BRAIN and i think you can make it thankx KorTex
Aug 20 2005