New features of Microsoft Visual C++...

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

New features of Microsoft Visual C++...

Post by velmarin »

New features of Microsoft Visual C++...
looking to the future...

Visual C++ - Microsoft Pushes C++ into the Future.....

Code: Select all

By Kenny Kerr | April 2016

Visual C++ has a reputation for lagging behind the curve. If you need the latest and greatest C++ features you should just use Clang or GCC, or so the oft-repeated story goes. I would like to suggest that there has been a change to the status quo, a glitch in the matrix, a disturbance in the force, if you will. It’s true that the Visual C++ compiler has an incredibly old code base that has made it difficult for the C++ team at Microsoft to add new features rapidly (goo.gl/PjSC7v). This is starting to change, though, with Visual C++ being ground zero for many new proposals to the C++ language and the Standard Library. I’m going to highlight a few new or improved features in the Visual C++ Update 2 release that I’ve found particularly compelling and that illustrate that there is life yet in this tenured compiler.
https://msdn.microsoft.com/en-us/magazine/mt694085

Visual C++ for Linux Development....

Code: Select all

Today we’re making a new extension available that enables C++ development in Visual Studio for Linux. With this extension you can author C++ code for Linux servers, desktops and devices. You can manage your connections to these machines from within VS. VS will automatically copy and remote build your sources and can launch your application with the debugger. Our project system supports targeting specific architectures, including ARM. Read on for how to get started with our new Linux projects.

Today we only support building remotely on the Linux target machine. We are not limited by specific Linux distros but we do have dependencies on the presence of some tools. Specifically, we need openssh-server, g++, gdb and gdbserver. Use your favorite package manager to install them, e.g. on Debian based systems:.....
https://blogs.msdn.microsoft.com/vcblog ... velopment/

One new Visual Studio “15” Preview Now Available....
the new installer downloads in less than 300MB,

Code: Select all

At Build 2016 we shared a preview of the next version of Visual Studio, which we call Visual Studio “15” (not to be confused with Visual Studio 2015). The download is available here. This is a Preview and is unsupported, so please refrain from installing it on your production environments.

This preview lays a lot of groundwork for vNext, so you may not see a ton of new features. The release notes have the complete list of what’s new in the release, but here are some highlights.

Perhaps the most prominent thing you’ll notice when you go to install this release is that there are two ways to install. With Visual Studio “15”, we are previewing a new lightweight installer that focuses on making installation much faster and less impactful. The smallest installation of Visual Studio with the new installer downloads in less than 300MB, and includes basic code editing support for over 20 languages along with debugging and source code control. You can optionally add support for other features: .NET desktop development with WPF and WinForms, Python, C++ and Unity. It’s a great way to preview new features in the next version of Visual Studio without impacting your production development work.
https://blogs.msdn.microsoft.com/visual ... 5-preview/
User avatar
Steve Maughan
Posts: 1349
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: New features of Microsoft Visual C++...

Post by Steve Maughan »

An early April Fools joke!
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: New features of Microsoft Visual C++...

Post by velmarin »

Steve Maughan wrote:An early April Fools joke!
You really think it...
You are of those who began their Maverick with Visual C++, I do not think that it had problems...
you simply went to the dark side... :twisted: :twisted:
User avatar
Steve Maughan
Posts: 1349
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: New features of Microsoft Visual C++...

Post by Steve Maughan »

Hi José,

It was really a (poor) joke on my part. Visual Studio is actually awesome. I do use it for developing Maverick,

- Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
mar
Posts: 2885
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: New features of Microsoft Visual C++...

Post by mar »

velmarin wrote:Visual C++ - Microsoft Pushes C++ into the Future....
Don't get me wrong, msvc2015 is awesome and I think it's very good to have an original distinct compiler.
(I do hope they won't switch to clang frontend)
I hope everyone knows why msc is fast when compiling templates ;) (hint: they don't do semantic checks on non-instantiated templates)
Speaking of future, really? They still have problems (as of 2016!) with constexpr, so I'd be a bit careful about bragging ;)
I still think they're going in the right direction...
User avatar
velmarin
Posts: 1600
Joined: Mon Feb 21, 2011 9:48 am

Re: New features of Microsoft Visual C++...

Post by velmarin »

I understand you...
And I understood the joke... :lol:
Visual C++ and microsoft offer free long time, I have already installed the previous 15 not "2015" is different, I have installed also the update 2 of visual c ++ community 2015, extension of Linux, ect.
Now to test.
Visual c ++ already gives official support to Clang, perhaps this Linux option opens the door to MinGW, ect. Android, Ruby, Phiton, Go, all for free today.
There is entertainment.
User avatar
Steve Maughan
Posts: 1349
Joined: Wed Mar 08, 2006 8:28 pm
Location: Florida, USA

Re: New features of Microsoft Visual C++...

Post by Steve Maughan »

On a serious note...

The compiler which came with Visual Studio 2015 Community Edition didn't work well for chess engines which set the buffer size to zero. For Maverick it meant it couldn't receive any commands via the command line or StdIn. Can anyone confirm this is still the case?

- Steve
http://www.chessprogramming.net - Juggernaut & Maverick Chess Engine
mar
Posts: 2885
Joined: Fri Nov 26, 2010 2:00 pm
Location: Czech Republic
Full name: Martin Sedlak

Re: New features of Microsoft Visual C++...

Post by mar »

Steve Maughan wrote:On a serious note...

The compiler which came with Visual Studio 2015 Community Edition didn't work well for chess engines which set the buffer size to zero. For Maverick it meant it couldn't receive any commands via the command line or StdIn. Can anyone confirm this is still the case?

- Steve
I think this was fixed in update 1, not sure...
Robert Pope
Posts: 572
Joined: Sat Mar 25, 2006 8:27 pm
Location: USA
Full name: Robert Pope

Re: New features of Microsoft Visual C++...

Post by Robert Pope »

mar wrote:
Steve Maughan wrote:On a serious note...

The compiler which came with Visual Studio 2015 Community Edition didn't work well for chess engines which set the buffer size to zero. For Maverick it meant it couldn't receive any commands via the command line or StdIn. Can anyone confirm this is still the case?

- Steve
I think this was fixed in update 1, not sure...
setvbuf() is still broken in update 1. I submitted a bug report, which they acknowledged and have said is fixed for the next major update.

A new RC came out a couple weeks ago, so I expect it will be fixed in that version, but I haven't had a chance to test it.
jdart
Posts: 4435
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Re: New features of Microsoft Visual C++...

Post by jdart »

I used to be a Windows-centric developer but now the Windows version of Arasan is a port from the Linux version.

I only use VC++ for debugging, on those rare occasions I need/want a GUI debugging session.

Linux is a much more productive environment if you are a old-style command line user like me.

I do use the command-line MSVC compiler on Windows (the professional version). But I cannot believe just how crippled and horrible NMAKE is, after all these decades. I have been meaning to look into CMAKE, which might make it tolerable.

--Jon