Why C++ instead of C#?

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

klx
Posts: 179
Joined: Tue Jun 15, 2021 8:11 pm
Full name: Emanuel Torres

Re: Why C++ instead of C#?

Post by klx »

R. Tomasi wrote: Tue Sep 21, 2021 9:49 pm You're running it against mono? That's most certainly slower than the MS implementation.
.NET core I think? What's mono, that means monkey in Spanish.
[Moderation warning] This signature violated the rule against commercial exhortations.
pedrojdm2021
Posts: 157
Joined: Fri Apr 30, 2021 7:19 am
Full name: Pedro Duran

Re: Why C++ instead of C#?

Post by pedrojdm2021 »

klx wrote: Tue Sep 21, 2021 10:33 pm
R. Tomasi wrote: Tue Sep 21, 2021 9:49 pm You're running it against mono? That's most certainly slower than the MS implementation.
.NET core I think? What's mono, that means monkey in Spanish.
Mono is a . Net runtime, is like another runtime alternative to the "CLR" . net runtime ( the . net runtime that uses . net 5 and . net core as far as i know )

Mono . net runtime:
https://www.mono-project.com/

CLR . net runtime:
https://docs.microsoft.com/en-us/dotnet/standard/clr
R. Tomasi
Posts: 307
Joined: Wed Sep 01, 2021 4:08 pm
Location: Germany
Full name: Roland Tomasi

Re: Why C++ instead of C#?

Post by R. Tomasi »

klx wrote: Tue Sep 21, 2021 10:33 pm
R. Tomasi wrote: Tue Sep 21, 2021 9:49 pm You're running it against mono? That's most certainly slower than the MS implementation.
.NET core I think? What's mono, that means monkey in Spanish.
pedrojdm2021 wrote: Tue Sep 21, 2021 10:54 pm
klx wrote: Tue Sep 21, 2021 10:33 pm
R. Tomasi wrote: Tue Sep 21, 2021 9:49 pm You're running it against mono? That's most certainly slower than the MS implementation.
.NET core I think? What's mono, that means monkey in Spanish.
Mono is a . Net runtime, is like another runtime alternative to the "CLR" . net runtime ( the . net runtime that uses . net 5 and . net core as far as i know )

Mono . net runtime:
https://www.mono-project.com/

CLR . net runtime:
https://docs.microsoft.com/en-us/dotnet/standard/clr
Yeah. Mono is the open source version of the .net runtime. If you're running on Linux, Android or Mac the "original" version from Microsoft isn't available - you will have to resort to the open source implementation (Mono). If I remember things correctly, Microsoft made the source code of the CLR public to facilitate implementations on other platforms than windows, but there are license issues that prevent the mono developers from just using the MS code for their implementation, which means while behaving in the same way, the classes are implemented differently under the hood and very probably not as efficient. It's been quite some time ago that I last worked with mono, but I remember it being quite buggy and slow, and some stuff wasn't implemented yet. I think that has changed, though, especially since mono is so heavily used by Unity for scripting.
klx
Posts: 179
Joined: Tue Jun 15, 2021 8:11 pm
Full name: Emanuel Torres

Re: Why C++ instead of C#?

Post by klx »

I think you're confused. Never heard of "mono", and I'd call myself a pretty seasoned C# developer.
[Moderation warning] This signature violated the rule against commercial exhortations.
R. Tomasi
Posts: 307
Joined: Wed Sep 01, 2021 4:08 pm
Location: Germany
Full name: Roland Tomasi

Re: Why C++ instead of C#?

Post by R. Tomasi »

klx wrote: Tue Sep 21, 2021 11:37 pm I think you're confused. Never heard of "mono", and I'd call myself a pretty seasoned C# developer.
You can call yourself king, too. Doesn't make you one :lol:
amanjpro
Posts: 883
Joined: Sat Mar 13, 2021 1:47 am
Full name: Amanj Sherwany

Re: Why C++ instead of C#?

Post by amanjpro »

klx wrote: Tue Sep 21, 2021 11:37 pm I think you're confused. Never heard of "mono", and I'd call myself a pretty seasoned C# developer.
Oops, you are wrong again...

https://en.wikipedia.org/wiki/Mono_%28s ... prov=sfla1

Next idea, Emanuel's seasons, short and brief
klx
Posts: 179
Joined: Tue Jun 15, 2021 8:11 pm
Full name: Emanuel Torres

Re: Why C++ instead of C#?

Post by klx »

amanjpro wrote: Wed Sep 22, 2021 3:10 am
klx wrote: Tue Sep 21, 2021 11:37 pm I think you're confused. Never heard of "mono", and I'd call myself a pretty seasoned C# developer.
Oops, you are wrong again...

https://en.wikipedia.org/wiki/Mono_%28s ... prov=sfla1

Next idea, Emanuel's seasons, short and brief
Huh, how can I be wrong that I've never heard of it? There's no mention of "mono" at the official .NET wikipedia page:

https://en.wikipedia.org/wiki/.NET

I'm not on Windows and yes I'm running Microsoft .NET not "Mono".

Code: Select all

BigBoss:~$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.100-rc.1.21458.32
 Commit:    d7c22323c4

.NET SDKs installed:
  6.0.100-rc.1.21458.32

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.0-rc.1.21452.15
  Microsoft.NETCore.App 6.0.0-rc.1.21451.13
Lithander, please set this straight at your earliest convenience.
[Moderation warning] This signature violated the rule against commercial exhortations.
R. Tomasi
Posts: 307
Joined: Wed Sep 01, 2021 4:08 pm
Location: Germany
Full name: Roland Tomasi

Re: Why C++ instead of C#?

Post by R. Tomasi »

klx wrote: Wed Sep 22, 2021 5:15 am
amanjpro wrote: Wed Sep 22, 2021 3:10 am
klx wrote: Tue Sep 21, 2021 11:37 pm I think you're confused. Never heard of "mono", and I'd call myself a pretty seasoned C# developer.
Oops, you are wrong again...

https://en.wikipedia.org/wiki/Mono_%28s ... prov=sfla1

Next idea, Emanuel's seasons, short and brief
Huh, how can I be wrong that I've never heard of it? There's no mention of "mono" at the official .NET wikipedia page:

https://en.wikipedia.org/wiki/.NET

I'm not on Windows and yes I'm running Microsoft .NET not "Mono".

Code: Select all

BigBoss:~$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.100-rc.1.21458.32
 Commit:    d7c22323c4

.NET SDKs installed:
  6.0.100-rc.1.21458.32

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.0-rc.1.21452.15
  Microsoft.NETCore.App 6.0.0-rc.1.21451.13
Lithander, please set this straight at your earliest convenience.
The assemblies having "Microsoft" in their name does not imply that you're running the Microsoft CLR. All assemblies in the mono version are named exactly as they are in the Microsoft version (to ensure maximum compatibility). You may want to check which packages you have installed - I would bet that mono is amongst them.
R. Tomasi
Posts: 307
Joined: Wed Sep 01, 2021 4:08 pm
Location: Germany
Full name: Roland Tomasi

Re: Why C++ instead of C#?

Post by R. Tomasi »

On a side note, I have to apologize to you guys: I simply did not find the time yet to make the changes to the C version that I promised. :oops: Unless someone beats me to it, I will however do them in short time.
User avatar
mvanthoor
Posts: 1784
Joined: Wed Jul 03, 2019 4:42 pm
Location: Netherlands
Full name: Marcel Vanthoor

Re: Why C++ instead of C#?

Post by mvanthoor »

klx wrote: Wed Sep 22, 2021 5:15 am Huh, how can I be wrong that I've never heard of it? There's no mention of "mono" at the official .NET wikipedia page:

https://en.wikipedia.org/wiki/.NET

I'm not on Windows and yes I'm running Microsoft .NET not "Mono".
Sometimes I wonder if you're serious or trolling.

Of course MS doesn't mention Mono on their official pages. It's not a Microsoft project; they only sponsor it with documentation and a bit of development effort. Mono is much older than Microsoft's own port of .NET (Core) to Linux. Mono has been around since the .NET 1.1 days. Actually, the original starter of the project is Miguel de Icaza. (The same guy who started Gnome, then abandoned Linux to move to a Mac because he was of the opinion that Linux had become a mess,, and he now works for Microsoft, porting software to Linux and Mac.)

Does .NET actually run on Linux? AFAIK, it's only .NET Core that runs on Linux, but since version 5, everything is called .NET again I believe. I lost track at some point.
Author of Rustic, an engine written in Rust.
Releases | Code | Docs | Progress | CCRL