Re: 438-byte Hello, world Win32 EXE in D
On Wednesday, 10 September 2014 at 13:53:32 UTC, Marco Leise wrote: Am Tue, 09 Sep 2014 10:20:43 + schrieb Don x...@nospam.com: On Monday, 8 September 2014 at 08:18:32 UTC, Ola Fosheim Grøstad wrote: 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… http://stackoverflow.com/questions/284797/hello-world-in-less-than-20-bytes My personal best -- At my first job, a customer once made a request for a very simple DOS utility. They did mention that they didn't have much disk space on their machine, so they asked me to try to make the program small. That was a once-in-a-lifetime opportunity. Naturally, I wrote it in asm. The final executable size was 15 bytes. g The customer loved it. Vladimir: Good job! Don: Nice story. What did it do? It blanked the screen in a particular way. It was purely for aesthetic reasons. During my time at a vocation school I wrote some stuff like a tiny Windows media player with some of the ASM in the DOS/PE header area. And an animated GIF player in ASM as a .com executable with the GIF included in it. (Easy since GIF algorithms are 16-bit and they use 8-bit color palettes) Nice. That was the only time I ever made a commercial release that was entirely in asm. It only took me about ten minutes to write. It would have been far more difficult in another language. On Wednesday, 10 September 2014 at 14:17:25 UTC, ketmar via Digitalmars-d-announce wrote: On Wed, 10 Sep 2014 16:02:01 +0200 Marco Leise via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: The final executable size was 15 bytes. g The customer loved it. and they never knows that it took at least 512 bytes anyway. or even more, depending of claster size. heh. Yeah. Plus the filename took up almost as much space as the executable code. But when they said they wanted it to be small, they actually meant less than 2 megabytes. When our sales guy saw it, he said, You got it down to 15kb? That's incredible! But I won't pollute D.announce any more. :)
New Beta: 2.066.1-rc1 is Now Available
DMD 2.066.1-rc1 is now available for testing. Visit http://wiki.dlang.org/Beta_Testing to download. Please submit all bugs to bugzilla at https://issues.dlang.org/. Happy testing
Re: New Beta: 2.066.1-rc1 is Now Available
Am Fri, 12 Sep 2014 01:51:33 +0900 schrieb Andrew Edwards rid...@yahoo.com: DMD 2.066.1-rc1 is now available for testing. Visit http://wiki.dlang.org/Beta_Testing to download. Please submit all bugs to bugzilla at https://issues.dlang.org/. Happy testing I followed the first LINUX link on http://wiki.dlang.org/DMD_v2.066.1-rc1 and got this: http://downloads.dlang.org/pre-releases/2014/dmd.2.066.1-rc1.linux.zip 404 Not Found Code: NoSuchKey Message: The specified key does not exist. Key: pre-releases/2014/dmd.2.066.1-rc1.linux.zip RequestId: 041CB7ED85E79D22 HostId: 77PqxexMbECV1cBnYfWlCZhxrKtBgH2VhFhP8v2tlG6kpALNX3JGPYXbzhmYIx7w -- Marco
Re: New Beta: 2.066.1-rc1 is Now Available
On 9/12/14, 3:20 AM, Marco Leise wrote: Am Fri, 12 Sep 2014 01:51:33 +0900 schrieb Andrew Edwards rid...@yahoo.com: DMD 2.066.1-rc1 is now available for testing. Visit http://wiki.dlang.org/Beta_Testing to download. Please submit all bugs to bugzilla at https://issues.dlang.org/. Happy testing I followed the first LINUX link on http://wiki.dlang.org/DMD_v2.066.1-rc1 and got this: http://downloads.dlang.org/pre-releases/2014/dmd.2.066.1-rc1.linux.zip 404 Not Found Code: NoSuchKey Message: The specified key does not exist. Key: pre-releases/2014/dmd.2.066.1-rc1.linux.zip RequestId: 041CB7ED85E79D22 HostId: 77PqxexMbECV1cBnYfWlCZhxrKtBgH2VhFhP8v2tlG6kpALNX3JGPYXbzhmYIx7w Clear cache and try again.
Re: New Beta: 2.066.1-rc1 is Now Available
P.S. Is this supposed to contain all 2.066 regression fixes pulled into master up to this point? As far as I can tell at least https://github.com/D-Programming-Language/dmd/pull/3961 from 4 days ago didn't get cherry picked yet. Or are these RCs more of a preliminary version? -- Marco
Re: New Beta: 2.066.1-rc1 is Now Available
Am Fri, 12 Sep 2014 03:16:52 +0900 schrieb Andrew Edwards rid...@yahoo.com: Clear cache and try again. Thx, try again now was enough. -- Marco
Re: Programming in D book, User Defined Attributes (UDA) chapter
On 09/11/2014 11:30 AM, ketmar via Digitalmars-d-announce wrote: On Thu, 11 Sep 2014 10:47:40 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: http://ddili.org/ders/d.en/templates_more.html there is a little bug: opSlice(size_t, size_t) description is: `collection[i, j]` shouldn't it be: `collection[i..j]`? Thank you. There are others in the other table as well. Fix is coming soon. I have already fixed the template constaint bugs: Two of them should be if (dimension = 1) (not 2). Would you like to send me your name so that I add it to the Acknowledgments section. (Otherwise ketmar is it. :) Ali
Re: Programming in D book, User Defined Attributes (UDA) chapter
On Thu, 11 Sep 2014 11:48:26 -0700 Ali Çehreli via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: Would you like to send me your name so that I add it to the Acknowledgments section. (Otherwise ketmar is it. :) Ketmar, or Ketmar Dark if you want full name. ;-) signature.asc Description: PGP signature
Re: Cerealed v0.2.0 - a(nother) D serialisation library
Done. Thanks for the feature request and using Cerealed! I hope it's useful to you. Atila On Monday, 8 September 2014 at 19:09:30 UTC, Vicente wrote: Hello Atila, I've seen that cerealed has made much progress, it's now at v0.5.0 This post is for a feature request, I would like to use it with a struct like this: import cerealed; struct nested_associative_array { nested_associative_array[int] x; } struct some_struct { string[] x; int[][] y; nested_associative_array[] z; }; void main(char[][] args) { some_struct original, restored; auto enc = Cerealiser(); enc ~= original; auto dec = Decerealiser(enc.bytes); restored = dec.value!(some_struct); assert(original==restored); } The serialization process compiles fine, but the restoring part fails to compile. I've tried to figure out how to do it, but I am still a beginner on D. How difficult do you think it is? The alternative, orange, works fine, but the struct I'm trying to export to disk is a few hundreds of MB in size and orange takes hours to complete and may also run out of memory. Your implementation, instead, is really fast and efficient!
Re: New Beta: 2.066.1-rc1 is Now Available
On 9/12/14, 3:28 AM, Marco Leise wrote: P.S. Is this supposed to contain all 2.066 regression fixes pulled into master up to this point? As far as I can tell at least https://github.com/D-Programming-Language/dmd/pull/3961 from 4 days ago didn't get cherry picked yet. Or are these RCs more of a preliminary version? It just happens that that one wasn't approved prior to Kenji pushing in picking regressions that same day. That's the only one I can see missing. But that's why it's called an RC... Inevitably, we overlook something. This gives us time to identify and correct those oversights. Thank you for identifying it.