Re: Better lambdas!!!!!!!!!!

2015-09-11 Thread Pierre Krafft via Digitalmars-d
On Saturday, 12 September 2015 at 01:03:54 UTC, Prudence wrote: On Thursday, 10 September 2015 at 18:02:36 UTC, Ali Çehreli wrote: On 09/10/2015 10:55 AM, Prudence wrote: > How bout this: > > void myfunc(double delegate(int i, int z, float f)) {} > > > myfunc((int i, int z, float f) { return

Re: Better lambdas!!!!!!!!!!

2015-09-12 Thread Pierre Krafft via Digitalmars-d
On Saturday, 12 September 2015 at 03:32:51 UTC, Prudence wrote: On Saturday, 12 September 2015 at 02:13:11 UTC, Pierre Krafft wrote: On Saturday, 12 September 2015 at 01:03:54 UTC, Prudence wrote: On Thursday, 10 September 2015 at 18:02:36 UTC, Ali Çehreli wrote: On 09/10/2015 10:55 AM, Pruden

Re: Regex in ctfe?

2016-01-27 Thread Pierre Krafft via Digitalmars-d
On Tuesday, 26 January 2016 at 12:47:26 UTC, w0rp wrote: Unless I'm mistaken, I think the compiler for regex currently works at compile time, but not the matcher. Maybe someone who knows the module could add support for that. That's correct. I looked in to this a while ago and found out that

Making regex replace CTFE by removing malloc

2015-04-02 Thread Pierre Krafft via Digitalmars-d
We have CTFE regex wich creates an optimized regex engine at compile time. I would want to expand on that and make the generated machine CTFE as well. I think the only thing that is stopping this from working is the use of malloc as seen at https://github.com/D-Programming-Language/phobos/blob/

Re: Making regex replace CTFE by removing malloc

2015-04-03 Thread Pierre Krafft via Digitalmars-d
On Friday, 3 April 2015 at 03:58:33 UTC, ketmar wrote: On Thu, 02 Apr 2015 17:14:24 +, Pierre Krafft wrote: What can replace malloc that can run on compile time and won't make it slower at run time? this is actually two questions, so i'll answer to two questions. 1. What can replace mal

Re: Making regex replace CTFE by removing malloc

2015-04-03 Thread Pierre Krafft via Digitalmars-d
On Friday, 3 April 2015 at 03:58:33 UTC, ketmar wrote: On Thu, 02 Apr 2015 17:14:24 +, Pierre Krafft wrote: What can replace malloc that can run on compile time and won't make it slower at run time? this is actually two questions, so i'll answer to two questions. 1. What can replace mal

Re: Making regex replace CTFE by removing malloc

2015-04-06 Thread Pierre Krafft via Digitalmars-d
I got some help from the IRC, poked the code a bit and have some details I can share. The code uses a reference counted memory pool, that's the part I linked. It's possible to avoid the malloc but that's not the hard part. For me it looks like memory pools aren't compatible with CTFE. This is b

Re: Mid-term vision review

2015-04-07 Thread Pierre Krafft via Digitalmars-d
On Tuesday, 7 April 2015 at 08:01:19 UTC, Dicebot wrote: On Monday, 6 April 2015 at 18:17:31 UTC, deadalnix wrote: On the other hand, many features in the language could be implementation as macro in object.d, reducing language complexity. Mixin has some severe limitation when you want to pas

Re: Future of contract-based programming in D

2015-04-08 Thread Pierre Krafft via Digitalmars-d
On Wednesday, 8 April 2015 at 11:26:38 UTC, Kagamin wrote: BTW, what do you think about this problem: http://forum.dlang.org/post/cokicokwqnscaktxi...@forum.dlang.org ? That's a great feature! Don't inherit if it's not the right tool, and it almost never is. We have interfaces and alias this

Re: Which D IDE do you use?(survey)

2015-04-08 Thread Pierre Krafft via Digitalmars-d
Any editor using DCD will be great, and I think most D editors are. I use Sublime exclusively since it's easy to setup and effective for me to use.

Re: Future of contract-based programming in D

2015-04-08 Thread Pierre Krafft via Digitalmars-d
On Wednesday, 8 April 2015 at 12:13:00 UTC, Kagamin wrote: On Wednesday, 8 April 2015 at 12:07:18 UTC, Pierre Krafft wrote: Except for the syntax I can't come up with a problem that would be better solved using inheritance than using composition. How would you interate a collection of widgets

Re: The worst Phobos template (in binderoo)

2016-09-14 Thread Pierre Krafft via Digitalmars-d
On Wednesday, 14 September 2016 at 20:24:13 UTC, Stefan Koch wrote: I would like to see users of fullyQualifiedName because apart from binderoo code which seems to work, I have none. I've had to use fullyQualifiedName in some string mixins. Take a look at https://github.com/BlackEdder/painles