Re: Visual D 0.52.0 released

2020-03-23 Thread Dylan Graham via Digitalmars-d-announce

On Monday, 23 March 2020 at 09:54:46 UTC, Rainer Schuetze wrote:

Hi,

a new version of Visual D, the Visual Studio extension that 
adds D language support to VS2008-2019, is available at


[...]


Nvm it didn't hang. Just took a very long time to complete 
semantic highlighting.


Re: Visual D 0.52.0 released

2020-03-23 Thread Dylan Graham via Digitalmars-d-announce

On Monday, 23 March 2020 at 09:54:46 UTC, Rainer Schuetze wrote:

Hi,

a new version of Visual D, the Visual Studio extension that 
adds D language support to VS2008-2019, is available at


https://rainers.github.io/visuald/visuald/StartPage.html

Major highlights of this release are

- improvements to the DMD based semantic engine: it has been 
updated to the frontend version 2.091, and code-completion has 
improved quite a bit, so much that I would recommend everyone 
to actually try it (unless you have too little RAM installed to 
cope with the frontends hunger for memory). Use "Visual D -> 
Open Language options..." from the menu to enable the "DMD 
parsing engine" as well as "Colorize identifiers from semantic 
analysis" on the "Editor" options page.


- the debugger expression evaluation now has support for tuples 
and simpler display of global variables (it's no longer 
necessary to specify the fully qualified name)


- updated support for all language options (e.g. -preview), 
these are also forwarded to the DMD based code analysis


The full version history can be found at

https://rainers.github.io/visuald/visuald/VersionHistory.html

Cheers,
Rainer


The DMD Semantic Server seems to hang after 10-15 minutes of 
operation. Memory usage slowly increases from ~400MB to ~2.9GB, 
after which it seems to hang. It won't do completion, error 
checking or semantic highlighting. When I shut Visual Studio 
down, the semantic server lingers in the background which I have 
to terminate via Task Manager.


Restarting Visual Studio and terminating the server seems to fix 
the issue, until it happens again 15 minutes later.


The completion is a tad slow, but it's functional and very 
accurate, so I'm quite happy with it.


I'm glad to see the progress you've made and I look forward to 
future updates =)


Re: Visual D 0.52.0 released

2020-03-23 Thread Dylan Graham via Digitalmars-d-announce

On Monday, 23 March 2020 at 09:54:46 UTC, Rainer Schuetze wrote:

Hi,

a new version of Visual D, the Visual Studio extension that 
adds D language support to VS2008-2019, is available at


[...]


This is awesome! Thank you so much for this. I use Visual D all 
the time. Keep up the great work :D


Re: Visual D 0.52.0 released

2020-03-23 Thread Bastiaan Veelo via Digitalmars-d-announce

On Monday, 23 March 2020 at 09:54:46 UTC, Rainer Schuetze wrote:

Hi,

a new version of Visual D, the Visual Studio extension that 
adds D language support to VS2008-2019, is available at


https://rainers.github.io/visuald/visuald/StartPage.html


[...]


The full version history can be found at

https://rainers.github.io/visuald/visuald/VersionHistory.html

Cheers,
Rainer


Great news!

- Bastiaan.


Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Ron Tarrant via Digitalmars-d-announce

On Monday, 23 March 2020 at 10:45:24 UTC, Jacob Carlborg wrote:

On Monday, 23 March 2020 at 10:41:43 UTC, Jacob Carlborg wrote:


class DSingleton
{
immutable DSingleton instance = new DSingleton;
}


Should of course be `static`:

class DSingleton
{
static immutable DSingleton instance = new DSingleton;
}

--
/Jacob Carlborg


Cool. Thanks, Jacob.

I can't take credit for the Singleton code, though. I stole it 
from here: https://wiki.dlang.org/Low-Lock_Singleton_Pattern




Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce

On Monday, 23 March 2020 at 10:41:43 UTC, Jacob Carlborg wrote:


class DSingleton
{
immutable DSingleton instance = new DSingleton;
}


Should of course be `static`:

class DSingleton
{
static immutable DSingleton instance = new DSingleton;
}

--
/Jacob Carlborg


Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce

On Monday, 23 March 2020 at 10:26:33 UTC, Jacob Carlborg wrote:

If it's enough with CTFE compatible code in the constructor, 
the following is a much simpler version:


class DSingleton
{
private __gshared DSingleton instance = new DSingleton;

DSingleton get()
{
return instance;
}
}


Or if an immutable instance work, the getter is not necessary and 
the instance can be exposed directly.


class DSingleton
{
immutable DSingleton instance = new DSingleton;
}

--
/Jacob Carlborg


Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Jacob Carlborg via Digitalmars-d-announce

On Monday, 23 March 2020 at 10:02:48 UTC, Ron Tarrant wrote:
Today starts a new series I'm calling Snippets and it's about 
various D-specific stuff that may come in handy when building a 
GUI. You can find it right here: 
https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html


If it's enough with CTFE compatible code in the constructor, the 
following is a much simpler version:


class DSingleton
{
private __gshared DSingleton instance = new DSingleton;

DSingleton get()
{
return instance;
}
}

--
/Jacob Carlborg


Re: Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread drug via Digitalmars-d-announce

On 3/23/20 1:02 PM, Ron Tarrant wrote:
Today starts a new series I'm calling Snippets and it's about various 
D-specific stuff that may come in handy when building a GUI. You can 
find it right here: 
https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html


Thank you for you efforts!
I'm waiting for your post about Observer.


Blog Post #0105: D-specific Stuff for GUI Programming

2020-03-23 Thread Ron Tarrant via Digitalmars-d-announce
Today starts a new series I'm calling Snippets and it's about 
various D-specific stuff that may come in handy when building a 
GUI. You can find it right here: 
https://gtkdcoding.com/2020/03/23/0105-dlang-ui-snippets-i.html


Visual D 0.52.0 released

2020-03-23 Thread Rainer Schuetze via Digitalmars-d-announce
Hi,

a new version of Visual D, the Visual Studio extension that adds D
language support to VS2008-2019, is available at

https://rainers.github.io/visuald/visuald/StartPage.html

Major highlights of this release are

- improvements to the DMD based semantic engine: it has been updated to
the frontend version 2.091, and code-completion has improved quite a
bit, so much that I would recommend everyone to actually try it (unless
you have too little RAM installed to cope with the frontends hunger for
memory). Use "Visual D -> Open Language options..." from the menu to
enable the "DMD parsing engine" as well as "Colorize identifiers from
semantic analysis" on the "Editor" options page.

- the debugger expression evaluation now has support for tuples and
simpler display of global variables (it's no longer necessary to specify
the fully qualified name)

- updated support for all language options (e.g. -preview), these are
also forwarded to the DMD based code analysis

The full version history can be found at

https://rainers.github.io/visuald/visuald/VersionHistory.html

Cheers,
Rainer