dotnet / core

.NET news, announcements, release notes, and more!
https://dot.net
MIT License
20.96k stars 4.91k forks source link

Create calculation independence (from Windows system) for visual basic programs with netcore 8 #8650

Open WWWEdobrimCOM opened 1 year ago

WWWEdobrimCOM commented 1 year ago

Description

Hi, I'm a visual basic (.net) programmer. Now I create the programs with netcore. 8. This is not a bug but a kind of request (if it can be done with future netcore 8 stable version). I have created various programs to make economic calculations, I have noticed, it has been like this for years now, that calculations with the comma must be done with the point. That is, if you want to do 2,5 + 10,9 (for example), you have to write 2.5 + 10.9. No sense but ok. Now I wanted to ask, is't possible to create something independent of windows? In the sense that, the visual basic programs written with netcore 8 or 7 or 6 etc. are dependent on the Windows system in many things and it would be good to make them even more performing and also independent (ie detaching from the dependencies of the windows system). One of them is the calculator, because the calculations are definitely done using the Windows system. Netcore always comes out with a new release and new changelogs, however the "dependencies" issue (as regards visual basic .net) is minimal and frankly no, I'm not going back to the 4.8 framework (it's less performing than netcore6 or 7 or 8). Among so many things for visual basic, in the new netcore 8 stable version, it would be nice to see more performance and above all more "nativity" and less dependencies on Windows (dll, exe, etc), also as regards computers, maybe keeping the point, what you want. Of course having independence from the main system would be a very good thing for programs written in visual basic (which have remained the same and behind). In this case of course this "request" was only for the calculator, (I don't mean a calculator but having in the netcore 8 installation package everything you need to do the calculations without the program interfacing with the Windows version of that moment). Thank you

Configuration

Netcore 8

Windows 7, Widows 8.1, Windows 10

Other information

Naturally mine is not a purely philosophical discourse because it's cool to detach from Windows dependencies, the discourse is more than anything else 1) Be logical because it's time that netcore 8 also look a little at the performance of programs that are used to make calculations, but no asp or others, I'm also talking about Visual basic which has been put on the back burner. 2) Also logical because a netcore installation file that weighs a total of MB, i.e. weighs a lot but doesn't create too many independencies (so O_o)? So why not put more "things" that make Windows detach (like for example detaching from the work done by Windows to do the calculations, be it the addition (+) the subtraction - the square root, multiplication, percentage calculation or whatever else).

Thank you

tarekgh commented 1 year ago

@tannergooding maybe the best to comment on this.

richlander commented 8 months ago

Can you share some code that is Windows-specific?

WWWEdobrimCOM commented 8 months ago

Can you share some code that is Windows-specific?

Hi, basically the code is a simple calculator, but I don't have it now because it's an old project. Basically the problem was that, on a Windows 10 computer, I'll give a stupid example, if I did 3.6 + 45.3 it gave me the right result. Then I tested it on another computer (with a different version of Windows 10). We are talking about the same program (identical), copy and paste. When I tested it, the result came out wrong. This happened on different computers (in my shop). 6 computers. On 4 computers the program made the right calculation, on 2 computers (with different Windows 10 version), the calculation was wrong. It means that for calculations, NetCore (it's obvious) is based on Windows (which makes no sense, it's not normal that 55 MB of dependencies to run a program written with netcore (with visual basic language) are useless. That is "big" programmers create MBs of dependencies, ok, then you go to different Windows, and the exact same program on Windows version 10. X works, on Windows version 10.y doesn't work. Wow

richlander commented 8 months ago

Can you create a small repro and test it on multiple of your machines and show the result? A console app should be sufficient.