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

Re: Can I pass a function by parameter?

2014-09-08 Thread deadalnix via Digitalmars-d
On Monday, 8 September 2014 at 05:04:21 UTC, Jakob Ovrum wrote: Function pointers can be converted to delegates through a simple wrapper function (which is how std.functional.toDelegate achieves it), but delegates cannot be wrapped by a function pointer without introducing additional

Re: Can I pass a function by parameter?

2014-09-08 Thread Jakob Ovrum via Digitalmars-d
On Monday, 8 September 2014 at 06:23:40 UTC, deadalnix wrote: On Monday, 8 September 2014 at 05:04:21 UTC, Jakob Ovrum wrote: Function pointers can be converted to delegates through a simple wrapper function (which is how std.functional.toDelegate achieves it), but delegates cannot be wrapped

Re: rpath options to linkers, OSX issue

2014-09-08 Thread Jacob Carlborg via Digitalmars-d
On 07/09/14 22:23, Andrei Alexandrescu wrote: What are the issues? -- Andrei The usual: module info, exception handling tables, TLS and so on. Same problem Linux used to have. It has only be solved for Linux. -- /Jacob Carlborg

Re: Using D

2014-09-08 Thread Chris via Digitalmars-d
On Saturday, 6 September 2014 at 00:50:26 UTC, Paulo Pinto wrote: Am 05.09.2014 23:56, schrieb Dicebot: On Friday, 5 September 2014 at 14:18:46 UTC, Paulo Pinto wrote: You can write DLLs in Java, for example with http://www.excelsiorjet.com/. The fact that the Java reference implementation

Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
I've started to make some minor mods to the DMD parser to tailor it to my own taste, but there is no reason to do double work, even if experimental. So I wonder which patches are available or in the works by others? I'm currently working on the following mods (not thoroughly tested yet):

Re: Using D

2014-09-08 Thread Chris via Digitalmars-d
On Saturday, 6 September 2014 at 02:24:35 UTC, Mike Parker wrote: On 9/6/2014 12:32 AM, Chris wrote: I don't find it restrictive at all (I actually enjoy it; I also enjoy C). As long as you work within its boundaries and use it as it's meant to be used, it works perfectly well. Isn't

Re: Optional monitors suggestion

2014-09-08 Thread Andrej Mitrovic via Digitalmars-d
On Thursday, 22 May 2014 at 17:25:30 UTC, Steven Schveighoffer wrote: A possible path is to introduce the change, but put @monitor on Object. This will allow all current code to compile as-is. Then users who are concerned about their code being affected would be able to remove @monitor from

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Idan Arye via Digitalmars-d
On Monday, 8 September 2014 at 08:51:10 UTC, Ola Fosheim Grøstad wrote: I've started to make some minor mods to the DMD parser to tailor it to my own taste, but there is no reason to do double work, even if experimental. So I wonder which patches are available or in the works by others? I'm

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 08:51:10 UTC, Ola Fosheim Grøstad wrote: I've started to make some minor mods to the DMD parser to tailor it to my own taste, but there is no reason to do double work, even if experimental. So I wonder which patches are available or in the works by others? I'm

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 01:30:02 UTC, Andrei Alexandrescu wrote: Andrew Edwards has done a great job with the recent release, but needs to step down because he's busy with other pursuits. We need a release lieutenant who would carry us through the release process. Please tender your

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 09:23:42 UTC, Idan Arye wrote: You really do hate portability, don't you? I didn't ask about hatred. I asked about what is available so I don't replicate the efforts of others. Besides, it is fully portable since it is compiling to the same AST (as of today).

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 09:26:23 UTC, Dicebot wrote: Good list of changes I'd love to never see the public exposures to prevent even smallest chance someone will actually use it :P Good for you, but please answer the question…?

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 08:51:09 + via Digitalmars-d digitalmars-d@puremagic.com wrote: What are you working on and what patches do you have? lexer: * stop validating UTF-8 in comments * native-encoded strings (n...) parser: * foreach (auto n; ...) * foreach (auto; ...) * foreach (; ...) *

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 08:51:09 + via Digitalmars-d digitalmars-d@puremagic.com wrote: in : #arr; out: arr.length //or perhaps something more generic? why not '$arr'? '$' is already established for 'length'. signature.asc Description: PGP signature

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Daniel Murphy via Digitalmars-d
Ola Fosheim Grøstad wrote in message news:adjmadefxvblysyly...@forum.dlang.org... I've started to make some minor mods to the DMD parser to tailor it to my own taste, but there is no reason to do double work, even if experimental. So I wonder which patches are available or in the works by

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 8 Sep 2014 19:37:22 +1000 Daniel Murphy via Digitalmars-d digitalmars-d@puremagic.com wrote: Attempting to fork D's syntax is harmful to D. Please stop. it's easy: just close the code. this will effectively stop people who want to experiment. signature.asc Description: PGP signature

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 09:31:06 UTC, Ola Fosheim Grøstad wrote: On Monday, 8 September 2014 at 09:26:23 UTC, Dicebot wrote: Good list of changes I'd love to never see the public exposures to prevent even smallest chance someone will actually use it :P Good for you, but please answer

dotProduct and sum unification

2014-09-08 Thread Ilya Yaroshenko via Digitalmars-d
Hello! I have found that Phobos has sum, but in module std.algorithm! refs: std.numeric.dotProduct: http://dlang.org/phobos/std_numeric.html#.dotProduct std_algorithm.sum: http://dlang.org/phobos/std_algorithm.html#.sum Both sum and dotProduct are general purpose numeric algorithms

Re: dotProduct and sum unification

2014-09-08 Thread Ilya Yaroshenko via Digitalmars-d
+ std.numeric.normalize

Re: Voting: std.logger

2014-09-08 Thread Robert burner Schadek via Digitalmars-d
On Saturday, 30 August 2014 at 02:11:49 UTC, Dicebot wrote: On Tuesday, 26 August 2014 at 21:04:28 UTC, Robert burner Schadek wrote: Jakob Ovrum The *API* must support minimal dynamic memory allocation for the normal

Re: Voting: std.logger

2014-09-08 Thread Robert burner Schadek via Digitalmars-d
On Saturday, 30 August 2014 at 02:16:55 UTC, Dicebot wrote: == Martin Nowak == Support duck-typing for the log functions. Logger should be a concept and log functions should be free-standing UFCS functions that take any `isLogger!T`. To

Re: RFC: std.json sucessor

2014-09-08 Thread Atila Neves via Digitalmars-d
Been using it for a bit now, I think the only thing I have to say is having to insert all of those `JSONValue` everywhere is tiresome and I never know when I have to do it. Atila On Thursday, 21 August 2014 at 22:35:18 UTC, Sönke Ludwig wrote: Following up on the recent std.jgrandson thread

Re: Voting: std.logger

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 08 Sep 2014 11:17:48 + schrieb Robert burner Schadek rburn...@gmail.com: On Saturday, 30 August 2014 at 02:16:55 UTC, Dicebot wrote: == Martin Nowak == Support duck-typing for the log functions. Logger should be a

rvalues-ref args

2014-09-08 Thread Manu via Digitalmars-d
Please can we move on a solution to this problem? It's driving me insane. I can't take any more of this! _ Walter invented a solution that was very popular at dconf2013. I don't recall any problems emerging in post-NG-discussions. Ideally, we would move forward on a design for 'scope', like the

Re: Voting: std.logger

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 08 Sep 2014 11:06:42 + schrieb Robert burner Schadek rburn...@gmail.com: Francesco Cattoglio As far as I undestood, there's no way right now to do logging without using the GC. And that means it is

Re: Voting: std.logger

2014-09-08 Thread Robert burner Schadek via Digitalmars-d
On Monday, 8 September 2014 at 12:36:29 UTC, Marco Leise wrote: This may sound surprising, but I believe if we want to make Phobos consistent and give no incentive to roll your own stuff, we should do this for a lot of APIs. Without going into depth (but we could) there are good reasons to use

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 09:40:29 UTC, ketmar via Digitalmars-d wrote: On Mon, 08 Sep 2014 08:51:09 + via Digitalmars-d digitalmars-d@puremagic.com wrote: in : #arr; out: arr.length //or perhaps something more generic? why not '$arr'? '$' is already established for 'length'.

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 09:41:42 UTC, ketmar via Digitalmars-d wrote: On Mon, 8 Sep 2014 19:37:22 +1000 Daniel Murphy via Digitalmars-d digitalmars-d@puremagic.com wrote: Attempting to fork D's syntax is harmful to D. Please stop. it's easy: just close the code. this will effectively

Re: Voting: std.logger

2014-09-08 Thread Robert burner Schadek via Digitalmars-d
On Monday, 8 September 2014 at 13:20:27 UTC, Robert burner Schadek wrote: On Monday, 8 September 2014 at 12:36:29 UTC, Marco Leise wrote: I think the template bloat argument is invalid as __LINE__ and friends are passed as template arguments to allow write and writef type logging. Anyway I

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 09:38:54 UTC, ketmar via Digitalmars-d wrote: parser: * foreach (auto n; ...) * foreach (auto; ...) * foreach (; ...) * lambdas: (auto, auto) = ... * @pure, @nothrow * safe, trusted (w/o '@') * kill-the-commas * kill-c-arrays * @virtual (yes, i remember the

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 13:36:37 UTC, Ola Fosheim Grøstad wrote: Attempting to fork D's syntax is harmful to D. Please stop. it's easy: just close the code. this will effectively stop people who want to experiment. It is funny how people one day tell you to create proofs-of-concept

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 8 Sep 2014 12:41:32 +0300 ketmar via Digitalmars-d digitalmars-d@puremagic.com wrote: Attempting to fork D's syntax is harmful to D. Please stop. it's easy: just close the code. this will effectively stop people who want to experiment. or, without closing: just write it all in

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 13:33:09 + via Digitalmars-d digitalmars-d@puremagic.com wrote: Primarily because '$x' is usually used for variables in other languages that's great! confusing people is fun. signature.asc Description: PGP signature

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 13:40:46 + via Digitalmars-d digitalmars-d@puremagic.com wrote: fun fact: kill-the-commas is a play on old demo titled kill the clone. i don't even remember what effects was in this demo, but i still remember the name. signature.asc Description: PGP signature

Re: Voting: std.logger

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 08 Sep 2014 13:37:02 + schrieb Robert burner Schadek rburn...@gmail.com: On Monday, 8 September 2014 at 13:20:27 UTC, Robert burner Schadek wrote: On Monday, 8 September 2014 at 12:36:29 UTC, Marco Leise wrote: I think the template bloat argument is invalid as __LINE__ and

Re: Using D

2014-09-08 Thread Paulo Pinto via Digitalmars-d
On Monday, 8 September 2014 at 08:50:54 UTC, Chris wrote: On Saturday, 6 September 2014 at 02:24:35 UTC, Mike Parker wrote: On 9/6/2014 12:32 AM, Chris wrote: I don't find it restrictive at all (I actually enjoy it; I also enjoy C). As long as you work within its boundaries and use it as

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 14:09:15 UTC, Dicebot wrote: With many freedoms come many responsibilities. The fact that you can fork the syntax and no one sue you for it (or actively try to stop you from doing it) does not mean that it won't harm your public image and overall attitude from

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 14:21:01 UTC, ketmar via Digitalmars-d wrote: On Mon, 08 Sep 2014 13:33:09 + via Digitalmars-d digitalmars-d@puremagic.com wrote: Primarily because '$x' is usually used for variables in other languages that's great! confusing people is fun. Yeah! Confusing

Re: Voting: std.logger

2014-09-08 Thread Robert burner Schadek via Digitalmars-d
On Monday, 8 September 2014 at 14:49:06 UTC, Marco Leise wrote: Ok, no matter what the outcome is, I'll see if I can write a simple file logger that I can use in RAII struct dtors (where neither allocations nor throwing seem to be an issue) and that has a fallback to writing to stderr. I wrote

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 14:58:01 UTC, Ola Fosheim Grøstad wrote: On Monday, 8 September 2014 at 14:09:15 UTC, Dicebot wrote: With many freedoms come many responsibilities. The fact that you can fork the syntax and no one sue you for it (or actively try to stop you from doing it) does

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 15:09:26 + Dicebot via Digitalmars-d digitalmars-d@puremagic.com wrote: Bullshit. Any kind of forking wastes most valuable resource open source world can possibly have - developer attention. if particular developer so annoyed by mainline that he decided to fork the

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 15:09:27 UTC, Dicebot wrote: It is not about D community but about yourself. Do _you_ want to be viewed as a valuable member of community? Do _you_ want to receive on topic responses to your threads? I only want to receive a response on this thread from

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Timon Gehr via Digitalmars-d
On 09/08/2014 10:51 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: What kind of syntactical sugar do you feel is missing in D? int square(int x)=x*x;

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 17:25:07 +0200 Timon Gehr via Digitalmars-d digitalmars-d@puremagic.com wrote: int square(int x)=x*x; noted. signature.asc Description: PGP signature

Re: Using D

2014-09-08 Thread Chris via Digitalmars-d
On Monday, 8 September 2014 at 14:48:15 UTC, Paulo Pinto wrote: On Monday, 8 September 2014 at 08:50:54 UTC, Chris wrote: On Saturday, 6 September 2014 at 02:24:35 UTC, Mike Parker wrote: On 9/6/2014 12:32 AM, Chris wrote: I don't find it restrictive at all (I actually enjoy it; I also

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread eles via Digitalmars-d
On Monday, 8 September 2014 at 08:51:10 UTC, Ola Fosheim Grøstad wrote: I'm currently working on the following mods (not thoroughly tested yet): What kind of syntactical sugar do you feel is missing in D? //inclusive range in : a ... b out: a .. (b+1) //range as start/length in : a .$. b

Re: Lieutenant needed: build and release process

2014-09-08 Thread Joakim via Digitalmars-d
On Monday, 8 September 2014 at 09:29:48 UTC, Dicebot wrote: On Monday, 8 September 2014 at 01:30:02 UTC, Andrei Alexandrescu wrote: Andrew Edwards has done a great job with the recent release, but needs to step down because he's busy with other pursuits. We need a release lieutenant who would

@nogc, exceptions, generic containers... Issues.

2014-09-08 Thread monarch_dodra via Digitalmars-d
I'm starting this thread related to two issues I'm encountering in regards to avoiding the GC, and the new @nogc attribute. 1) Issue 1) The first issue is in regards to Throwables. The issue here is that they are allocated using the GC, so it is currently almost impossible to throw an

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Joakim via Digitalmars-d
On Monday, 8 September 2014 at 15:09:27 UTC, Dicebot wrote: Bullshit. Any kind of forking wastes most valuable resource open source world can possibly have - developer attention. In limited form it is compensated by ecnouraged competition and breaking possible stagantion. When it becomes

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 16:02:34 + Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: In any case, trading syntax patches with each other and experimenting with different dialects, which is all they've said they're doing so far, is far from a full fork. and i'm clearly stated that

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 08 Sep 2014 15:22:03 + schrieb Ola Fosheim Grøstad ola.fosheim.grostad+dl...@gmail.com: On Monday, 8 September 2014 at 15:09:27 UTC, Dicebot wrote: It is not about D community but about yourself. Do _you_ want to be viewed as a valuable member of community? Do _you_ want to

Re: @nogc, exceptions, generic containers... Issues.

2014-09-08 Thread yazd via Digitalmars-d
An incomplete idea regarding exceptions and @nogc that I have is to encapsulate the exception within the returned value. And whenever the original value is attempted to be read, a check for the exception is done. In other words, the exception is not thrown from the place where it is

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 8 Sep 2014 18:34:10 +0300 schrieb ketmar via Digitalmars-d digitalmars-d@puremagic.com: On Mon, 08 Sep 2014 17:25:07 +0200 Timon Gehr via Digitalmars-d digitalmars-d@puremagic.com wrote: int square(int x)=x*x; noted. To clarify: There is x^^2, but the implementation uses pow(x,2)

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Gary Willoughby via Digitalmars-d
On Monday, 8 September 2014 at 14:09:15 UTC, Dicebot wrote: With many freedoms come many responsibilities. The fact that you can fork the syntax and no one sue you for it (or actively try to stop you from doing it) does not mean that it won't harm your public image and overall attitude from

Re: Optional monitors suggestion

2014-09-08 Thread Andrei Alexandrescu via Digitalmars-d
On 9/8/14, 2:10 AM, Andrej Mitrovic wrote: On Thursday, 22 May 2014 at 17:25:30 UTC, Steven Schveighoffer wrote: A possible path is to introduce the change, but put @monitor on Object. This will allow all current code to compile as-is. Then users who are concerned about their code being

Re: Lieutenant needed: build and release process

2014-09-08 Thread Andrei Alexandrescu via Digitalmars-d
On 9/8/14, 2:29 AM, Dicebot wrote: On Monday, 8 September 2014 at 01:30:02 UTC, Andrei Alexandrescu wrote: Andrew Edwards has done a great job with the recent release, but needs to step down because he's busy with other pursuits. We need a release lieutenant who would carry us through the

Re: dotProduct and sum unification

2014-09-08 Thread Andrei Alexandrescu via Digitalmars-d
On 9/8/14, 2:58 AM, Ilya Yaroshenko wrote: + std.numeric.normalize One issue with std.numeric is it's rather disorganized - a grab bag of vaguely numeric stuff. However std.algorithm also includes stuff that's arguably numeric, e.g. min and max etc. I think the right way is to let the

Why does std.concurrency.Mailbox use lists ?

2014-09-08 Thread badlink via Digitalmars-d
Hello, I'm creating a real-time 3D app using std.concurrency for exchanging messages between the renderer and a few mesher threads. The app runs fine, but once in a while I get a consistent FPS drop. Already aware that the cause is the GC (a call to GC.disable eliminates the slowdowns) I timed

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Timon Gehr via Digitalmars-d
On 09/08/2014 07:00 PM, Marco Leise wrote: Am Mon, 8 Sep 2014 18:34:10 +0300 schrieb ketmar via Digitalmars-d digitalmars-d@puremagic.com: On Mon, 08 Sep 2014 17:25:07 +0200 Timon Gehr via Digitalmars-d digitalmars-d@puremagic.com wrote: int square(int x)=x*x; noted. To clarify: The

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Daniel Murphy via Digitalmars-d
Timon Gehr wrote in message news:luko1s$otb$1...@digitalmars.com... There is x^^2, but the implementation uses pow(x,2) Is this really still true? x^^2 will be optimized by the fronend to x*x

Re: Why does std.concurrency.Mailbox use lists ?

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 17:06:34 UTC, badlink wrote: Hello, I'm creating a real-time 3D app using std.concurrency for exchanging messages between the renderer and a few mesher threads. The app runs fine, but once in a while I get a consistent FPS drop. Already aware that the cause is

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 8 Sep 2014 18:55:46 +0200 Marco Leise via Digitalmars-d digitalmars-d@puremagic.com wrote: but #arr looks very unusual not for those who loves Lua. ;-) signature.asc Description: PGP signature

Re: @nogc, exceptions, generic containers... Issues.

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 16:46:58 + yazd via Digitalmars-d digitalmars-d@puremagic.com wrote: the whole idea behind exceptions is that you can omit such checks. otherwise we can just use return codes and be happy. signature.asc Description: PGP signature

Re: @nogc, exceptions, generic containers... Issues.

2014-09-08 Thread via Digitalmars-d
On Monday, 8 September 2014 at 17:33:35 UTC, ketmar via Digitalmars-d wrote: On Mon, 08 Sep 2014 16:46:58 + yazd via Digitalmars-d digitalmars-d@puremagic.com wrote: the whole idea behind exceptions is that you can omit such checks. otherwise we can just use return codes and be happy.

Re: dotProduct and sum unification

2014-09-08 Thread Timon Gehr via Digitalmars-d
On 09/08/2014 07:02 PM, Andrei Alexandrescu wrote: However std.algorithm also includes stuff that's arguably numeric, e.g. min and max etc. How are min and max numeric?

Re: Fun with inout

2014-09-08 Thread Kagamin via Digitalmars-d
Ah, you said X? X function(inout Unqual!T) test; typeof(test(T.init))...

Re: Voting: std.logger

2014-09-08 Thread Robert burner Schadek via Digitalmars-d
On Wednesday, 3 September 2014 at 03:05:42 UTC, Kevin Lamonte wrote: On Tuesday, 2 September 2014 at 14:53:17 UTC, Dicebot wrote: This is exactly what I call theoretical speculations. Please provide specific list like this: 1) some method signature needs to be changed I propose the

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dragos Carp via Digitalmars-d
On Monday, 8 September 2014 at 01:30:02 UTC, Andrei Alexandrescu wrote: Andrew Edwards has done a great job with the recent release, but needs to step down because he's busy with other pursuits. We need a release lieutenant who would carry us through the release process. Please tender your

Re: @nogc, exceptions, generic containers... Issues.

2014-09-08 Thread Brian Schott via Digitalmars-d
On Monday, 8 September 2014 at 15:55:53 UTC, monarch_dodra wrote: A *possible solution* to this problem would be to add an extra parameter to these templates called ScanGC, which would be initialized to hasIndirection!T. EG: struct Array(T, bool ScanGC = hasIndirections!T) Does this seem like

Re: Lieutenant needed: build and release process

2014-09-08 Thread Vladimir Panteleev via Digitalmars-d
On Monday, 8 September 2014 at 19:51:58 UTC, Dragos Carp wrote: I have collected a few pros/cons about merging the repositories: This topic has been discussed in the past. Some more points that I can think of: Pro: - simplified release tagging and branching - atomic commit of

Re: Lieutenant needed: build and release process

2014-09-08 Thread Jeremy Powers via Digitalmars-d
On Mon, Sep 8, 2014 at 12:51 PM, Dragos Carp via Digitalmars-d digitalmars-d@puremagic.com wrote: It may sound a bit radical, but I think the release process can be simplified a lot, if the 3 github repositories (dmd, druntime, and phobos) would be merged. ... Destroy! These are

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dragos Carp via Digitalmars-d
On Monday, 8 September 2014 at 20:56:51 UTC, Vladimir Panteleev wrote: On Monday, 8 September 2014 at 19:51:58 UTC, Dragos Carp wrote: I have collected a few pros/cons about merging the repositories: This topic has been discussed in the past. Some more points that I can think of: Pro: -

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dragos Carp via Digitalmars-d
On Monday, 8 September 2014 at 21:03:07 UTC, Jeremy Powers via Digitalmars-d wrote: On Mon, Sep 8, 2014 at 12:51 PM, Dragos Carp via Digitalmars-d digitalmars-d@puremagic.com wrote: It may sound a bit radical, but I think the release process can be simplified a lot, if the 3 github

Re: dotProduct and sum unification

2014-09-08 Thread Andrei Alexandrescu via Digitalmars-d
On 9/8/14, 11:10 AM, Timon Gehr wrote: On 09/08/2014 07:02 PM, Andrei Alexandrescu wrote: However std.algorithm also includes stuff that's arguably numeric, e.g. min and max etc. How are min and max numeric? Won't bite :o). -- Andrei

Re: Lieutenant needed: build and release process

2014-09-08 Thread Andrei Alexandrescu via Digitalmars-d
On 9/8/14, 12:51 PM, Dragos Carp wrote: It may sound a bit radical, but I think the release process can be simplified a lot, if the 3 github repositories (dmd, druntime, and phobos) would be merged. I'd support that if there's consensus. -- Andrei

Re: Lieutenant needed: build and release process

2014-09-08 Thread Trass3r via Digitalmars-d
You could also use submodules (or subtrees, haven't tried them yet).

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dragos Carp via Digitalmars-d
On Monday, 8 September 2014 at 21:55:47 UTC, Trass3r wrote: You could also use submodules (or subtrees, haven't tried them yet). AFAIK the tags and branches does not work over submodules/subtrees and you would still have 3 github repos with 3 pull request queues.

Re: Lieutenant needed: build and release process

2014-09-08 Thread Trass3r via Digitalmars-d
with 3 pull request queues Good argument for the separation :)

Re: Lieutenant needed: build and release process

2014-09-08 Thread David Nadlinger via Digitalmars-d
On Monday, 8 September 2014 at 19:51:58 UTC, Dragos Carp wrote: Cons: - migration effort (documentation, merge scripts) - current work-flow adjustments - the resulted repo history could be sometimes confusing - lost github pull-request history It would also be a pretty serious change for LDC.

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 16:59:55 UTC, Andrei Alexandrescu wrote: Did Andrew leave any kind of notes about the process he ended up with? (If it is on wiki, link may be helpful) Thanks for your interest. Forwarded the question to Andrew to make sure he doesn't miss it. I take it you're

Re: Voting: std.logger

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 11:06:44 UTC, Robert burner Schadek wrote: First part partially addressed - missing @nogc @nothrow logger implementation out of the box. Considering this request does not go very well with current language implementation it may be ignored for now but official

Re: Lieutenant needed: build and release process

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 19:51:58 UTC, Dragos Carp wrote: I have collected a few pros/cons about merging the repositories: Pro: - simplified release tagging and branching - atomic commit of cross-repository changes - easier to experiment with cross-repository feature branches - single

Re: rvalues-ref args

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 12:46:36 UTC, Manu via Digitalmars-d wrote: Please can we move on a solution to this problem? It's driving me insane. I can't take any more of this! _ Walter invented a solution that was very popular at dconf2013. I don't recall any problems emerging in

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 15:22:05 UTC, Ola Fosheim Grøstad wrote: On Monday, 8 September 2014 at 15:09:27 UTC, Dicebot wrote: It is not about D community but about yourself. Do _you_ want to be viewed as a valuable member of community? Do _you_ want to receive on topic responses to your

Re: dotProduct and sum unification

2014-09-08 Thread Idan Arye via Digitalmars-d
On Monday, 8 September 2014 at 17:02:21 UTC, Andrei Alexandrescu wrote: On 9/8/14, 2:58 AM, Ilya Yaroshenko wrote: + std.numeric.normalize One issue with std.numeric is it's rather disorganized - a grab bag of vaguely numeric stuff. However std.algorithm also includes stuff that's arguably

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 16:02:35 UTC, Joakim wrote: On Monday, 8 September 2014 at 15:09:27 UTC, Dicebot wrote: Bullshit. Any kind of forking wastes most valuable resource open source world can possibly have - developer attention. In limited form it is compensated by ecnouraged

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 23:39:17 UTC, Dicebot wrote: On Monday, 8 September 2014 at 16:02:35 UTC, Joakim wrote: On Monday, 8 September 2014 at 15:09:27 UTC, Dicebot wrote: Bullshit. Any kind of forking wastes most valuable resource open source world can possibly have - developer

Re: @nogc, exceptions, generic containers... Issues.

2014-09-08 Thread Dicebot via Digitalmars-d
On Monday, 8 September 2014 at 15:55:53 UTC, monarch_dodra wrote: Any idea how to approach this problem? I know there are workarounds, such as static pre-allocation, but that also comes with its own set of problems. Maybe we could change it to say it's not legal to hold on to exceptions for

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 8 Sep 2014 20:27:41 +0300 schrieb ketmar via Digitalmars-d digitalmars-d@puremagic.com: On Mon, 8 Sep 2014 18:55:46 +0200 Marco Leise via Digitalmars-d digitalmars-d@puremagic.com wrote: but #arr looks very unusual not for those who loves Lua. ;-) ... an Perl and Bash, yes. --

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Timon Gehr via Digitalmars-d
On 09/08/2014 04:58 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: comics are not on topic, The topic of a comic is arbitrary.

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread ketmar via Digitalmars-d
On Mon, 08 Sep 2014 23:39:15 + Dicebot via Digitalmars-d digitalmars-d@puremagic.com wrote: Because original post had no learning context at all. and we have no NG to ask such questions. this NGs is the main point of connection for D users. where he should ask his question if not here? we

Re: Which patches/mods exists for current versions of the DMD parser?

2014-09-08 Thread Marco Leise via Digitalmars-d
Am Mon, 08 Sep 2014 23:31:47 + schrieb Dicebot pub...@dicebot.lv: […] fuck […] off-topic flamewar […] quite intentional. […] won't let you do that easily […] off-topic bullshit […] shooting people […] don't buy this […] attention whore […] troll […] retard […] You are crossing the line

  1   2   >