Re: Shipping the DMD compiler with code

2013-11-04 Thread Colin Grogan
On Saturday, 2 November 2013 at 11:40:59 UTC, Jacob Carlborg wrote: On 2013-11-01 16:47, Colin Grogan wrote: I have a project I may need to write that is pretty performance intensive, but also needs to be quite customiseable. We previously had this done with Perl, and the customising came from

Re: Current size of GC memory

2013-11-04 Thread Namespace
On Monday, 4 November 2013 at 06:38:41 UTC, Rainer Schuetze wrote: On 03.11.2013 19:53, Namespace wrote: On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote: Is there a way to find out how much memory the GC used currently? Does not seem to be possible. Would have been nice. There

Re: Source code of a method.

2013-11-04 Thread Baz
On Saturday, 26 October 2013 at 16:36:35 UTC, TheFlyingFiddle wrote: Is there a way to extract the source code of a method at compiletime? Yep, at least on win32. (tested in win7 32 with DEP set to "ON" for everything) http://dpaste.dzfl.pl/19c77eee It doesn't run on DPaste (linux x86_64) t

Re: Source code of a method.

2013-11-04 Thread Baz
On Monday, 4 November 2013 at 15:09:38 UTC, Baz wrote: On Saturday, 26 October 2013 at 16:36:35 UTC, TheFlyingFiddle wrote: Is there a way to extract the source code of a method at compiletime? Yep, at least on win32. (tested in win7 32 with DEP set to "ON" for everything) http://dpaste.dzf

Re: Source code of a method.

2013-11-04 Thread Jacob Carlborg
On 2013-11-04 16:09, Baz wrote: On Saturday, 26 October 2013 at 16:36:35 UTC, TheFlyingFiddle wrote: Is there a way to extract the source code of a method at compiletime? Yep, at least on win32. (tested in win7 32 with DEP set to "ON" for everything) http://dpaste.dzfl.pl/19c77eee It doesn't

Re: Source code of a method.

2013-11-04 Thread Baz
On Monday, 4 November 2013 at 16:42:42 UTC, Jacob Carlborg wrote: On 2013-11-04 16:09, Baz wrote: On Saturday, 26 October 2013 at 16:36:35 UTC, TheFlyingFiddle wrote: Is there a way to extract the source code of a method at compiletime? Yep, at least on win32. (tested in win7 32 with DEP set

Re: Linker error regarding importing and unit tests. Is this a bug?

2013-11-04 Thread Gary Willoughby
Raised as a bug: http://d.puremagic.com/issues/show_bug.cgi?id=11439

Embed JavaScript into D

2013-11-04 Thread Jeroen Bollen
Is there a way I can embed javascript into my D application? I basically want to create a modular application which allows adding and removing plugins by dragging and dropping them into a folder. I love the idea of them being editable on the fly.

Re: Embed JavaScript into D

2013-11-04 Thread Dicebot
On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into my D application? I basically want to create a modular application which allows adding and removing plugins by dragging and dropping them into a folder. I love the idea of them being edit

Re: Source code of a method.

2013-11-04 Thread Baz
On Monday, 4 November 2013 at 18:00:17 UTC, Baz wrote: On Monday, 4 November 2013 at 16:42:42 UTC, Jacob Carlborg wrote: On 2013-11-04 16:09, Baz wrote: On Saturday, 26 October 2013 at 16:36:35 UTC, TheFlyingFiddle wrote: Is there a way to extract the source code of a method at compiletime?

Re: Embed JavaScript into D

2013-11-04 Thread Jeroen Bollen
On Monday, 4 November 2013 at 19:45:23 UTC, Dicebot wrote: On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into my D application? I basically want to create a modular application which allows adding and removing plugins by dragging and drop

Re: Embed JavaScript into D

2013-11-04 Thread John Colvin
On Monday, 4 November 2013 at 20:18:19 UTC, Jeroen Bollen wrote: On Monday, 4 November 2013 at 19:45:23 UTC, Dicebot wrote: On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into my D application? I basically want to create a modular applicat

Re: Embed JavaScript into D

2013-11-04 Thread Jeroen Bollen
On Monday, 4 November 2013 at 20:43:46 UTC, John Colvin wrote: On Monday, 4 November 2013 at 20:18:19 UTC, Jeroen Bollen wrote: On Monday, 4 November 2013 at 19:45:23 UTC, Dicebot wrote: On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into

Re: Embed JavaScript into D

2013-11-04 Thread Dicebot
On Monday, 4 November 2013 at 20:57:28 UTC, Jeroen Bollen wrote: The reason I'm not picking up any of these is purely based on my opinion, I hate developping in LUA or Python. Are there no JavaScript / PHP bindings available yet? None that are widely known at least. There can always be some h

Re: Embed JavaScript into D

2013-11-04 Thread John Colvin
On Monday, 4 November 2013 at 21:07:38 UTC, Dicebot wrote: On Monday, 4 November 2013 at 20:57:28 UTC, Jeroen Bollen wrote: The reason I'm not picking up any of these is purely based on my opinion, I hate developping in LUA or Python. Are there no JavaScript / PHP bindings available yet? But

Re: Embed JavaScript into D

2013-11-04 Thread Adam D. Ruppe
On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into my D application? You could use any C javascript lib too, but for ones already wrapped or something, I know there's a few D implementations of javascript: dmdscript

Re: Associative Array: reasonable limits?

2013-11-04 Thread Charles Hixson
On 11/03/2013 01:46 AM, Dmitry Olshansky wrote: 03-Nov-2013 02:37, Charles Hixson пишет: I'm contemplating an associative array that will eventually grow to be an estimated 64KB in size, assuming it's about half full. It would then be holding around 90,000 entries. Is this reasonable, or shoul

Re: Embed JavaScript into D

2013-11-04 Thread Max Klyga
On 2013-11-04 21:20:46 +, Adam D. Ruppe said: On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into my D application? You could use any C javascript lib too, but for ones already wrapped or something, I know there's a few D implementa

ddoc doesn't generate entries of function without any comments?

2013-11-04 Thread Flamaros
I need dig into some low level APIs regularly. Modules like std.c.window and std.c.linux doesn't have any documentation about what it's contains. I also try to generate some docs with ddoc on my project and it seems it doesn't create any functions/methods entries if there is no description on

Re: ddoc doesn't generate entries of function without any comments?

2013-11-04 Thread bearophile
Flamaros: I also try to generate some docs with ddoc on my project and it seems it doesn't create any functions/methods entries if there is no description on those. Try adding a /// before them: /// void foo() { } Bye, bearophile

Re: Current size of GC memory

2013-11-04 Thread Rainer Schuetze
On 04.11.2013 11:23, Namespace wrote: On Monday, 4 November 2013 at 06:38:41 UTC, Rainer Schuetze wrote: On 03.11.2013 19:53, Namespace wrote: On Sunday, 3 November 2013 at 13:05:08 UTC, Namespace wrote: Is there a way to find out how much memory the GC used currently? Does not seem to b

Re: Embed JavaScript into D

2013-11-04 Thread Dejan Lekic
On Mon, 04 Nov 2013 20:35:53 +0100, Jeroen Bollen wrote: > Is there a way I can embed javascript into my D application? I basically > want to create a modular application which allows adding and removing > plugins by dragging and dropping them into a folder. I love the idea of > them being editabl

Re: ddoc doesn't generate entries of function without any comments?

2013-11-04 Thread Baz
On Monday, 4 November 2013 at 22:22:07 UTC, Flamaros wrote: I need dig into some low level APIs regularly. Modules like std.c.window and std.c.linux doesn't have any documentation about what it's contains. I also try to generate some docs with ddoc on my project and it seems it doesn't create

Re: Associative Array: reasonable limits?

2013-11-04 Thread Froglegs
why are you obsessing over a 64k hash table... that is tiny..

Re: Associative Array: reasonable limits?

2013-11-04 Thread Charles Hixson
On 11/04/2013 04:22 PM, Froglegs wrote: why are you obsessing over a 64k hash table... that is tiny.. Probably because I'm an old fogey, and to me 64KB sounds like all the RAM a computer is likely to have. -- Charles Hixson

Re: Embed JavaScript into D

2013-11-04 Thread Jeroen Bollen
On Monday, 4 November 2013 at 22:22:32 UTC, Max Klyga wrote: On 2013-11-04 21:20:46 +, Adam D. Ruppe said: On Monday, 4 November 2013 at 19:35:55 UTC, Jeroen Bollen wrote: Is there a way I can embed javascript into my D application? You could use any C javascript lib too, but for ones al