Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread Andrej Mitrovic via Digitalmars-d-announce
On 9/7/14, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Thanks to recent advances in DMD (-betterC and -m32mscoff), I could get a Hello, world program on Win32 down to just 438 bytes when compiled. This is without assembly, linker scripts, custom

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread eles via Digitalmars-d-announce
On Monday, 8 September 2014 at 07:01:19 UTC, Andrej Mitrovic via Digitalmars-d-announce wrote: On 9/7/14, Vladimir Panteleev via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: I guess this is great news for virus writers. :P A std.virus or core.virus module? ;;) Nothing

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread Kagamin via Digitalmars-d-announce
On Monday, 8 September 2014 at 07:01:19 UTC, Andrej Mitrovic via Digitalmars-d-announce wrote: I guess this is great news for virus writers. :P Why? Modern viruses are bloatware: https://www.virustotal.com/en/file/73559b15d1f55a9f08a5674fd4320a7ba9ff4e98f0949a1b2a756ec8eafd5caf/analysis/

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread ponce via Digitalmars-d-announce
On Sunday, 7 September 2014 at 21:03:17 UTC, Vladimir Panteleev wrote: The 438-byte Hello, world program is achieved using Crinkler, which is a COFF linker with aggressive compression and header optimization. It was created for compressing 4K demos. Pretty cool! Up to now D had little

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread via Digitalmars-d-announce
On Sunday, 7 September 2014 at 21:03:17 UTC, Vladimir Panteleev wrote: The 438-byte Hello, world program is achieved using Crinkler, which is a COFF linker with aggressive compression and header optimization. It was created for compressing 4K demos. Pretty nice! Is the format correct too, or

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread Kagamin via Digitalmars-d-announce
On Monday, 8 September 2014 at 07:59:37 UTC, Ola Fosheim Grøstad wrote: «Smallest PE file that downloads a file over WebDAV and executes it: 133 bytes» http://www.phreedom.org/research/tinype/ But that downloaded file is bloatware, because it has to implement functionality, which is not

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread via Digitalmars-d-announce
On Monday, 8 September 2014 at 08:08:23 UTC, Kagamin wrote: But that downloaded file is bloatware, because it has to implement functionality, which is not provided by the system. That tiny pe file doesn't download anything, it's completely done by the system. Yeah…

Re: 438-byte Hello, world Win32 EXE in D

2014-09-08 Thread Vladimir Panteleev via Digitalmars-d-announce
On Monday, 8 September 2014 at 08:06:37 UTC, Ola Fosheim Grøstad wrote: On Sunday, 7 September 2014 at 21:03:17 UTC, Vladimir Panteleev wrote: The 438-byte Hello, world program is achieved using Crinkler, which is a COFF linker with aggressive compression and header optimization. It was