Drop Windows code in favor of WSL? #2163
Replies: 3 comments 1 reply
-
Windows 11 comes in with direct GUI support via |
Beta Was this translation helpful? Give feedback.
-
I see the advantages of this. From the user-experience side, I want to raise:
For developers, this might be a one-way transformation because there are certain aspects where Linux and macOS allow us to be sloppy with data types, as basically all integers are 64 bits, but when working with Windows we have to be explicit about using a 64-bit type because the default long is only 32 bits. |
Beta Was this translation helpful? Give feedback.
-
I have been using wsl and Neuron for about 5 years now, initially wsl1 and from about 2018 onwards wsl2. In fact, we have been using this arrangement to even successfully run student practicals with Neuron - rock solid. Because I also use this environment for development purposes on macOS via VMware fusion, I had to recently downgrade back to wsl1 (Fusion 12.2 is the issue...) - i.e. not using the newer wslg as that only works with wsl2. I am using VcXsrv instead - which over the years has served me very well and is well maintained. The easiest way (for me...) is to just do "everything" via the wsl terminal (ubuntu, in my case). I have not seen speed differences when testing against a win10-specific version - or there is no speed penalty for using wsl. There is if you script from the win side - but only when spawning a "terminal" window - that is particularly slow on wsl1 - reasonable on wsl2. I am also regularly building from source via a script... works like a charm. An advantage is that any wsl install comes with it's "standard" python install - but you can also install your python of choice - but you use it pretty much as a *NIX box... and not as a win box. I have made the transition to 64 bit win quite some time ago. I have tested this with win10 and win11 - and seen no difference. To interface with win applications, standard windows scripting does the trick. I have found that MS has bent backwards to have wsl conform to *NIX standards. In fact, I had to brush up a little when scripting ... as I got used to some shell specific idioms that are not quite "correct". I am sure that with a few win "scripts" for the "standard" user (like creating . bashrc/.zshrc files with appropriate PATH statements), it would be possible to run nrniv straight from win - i.e. everything *NIX could be hidden if that was desirable. In fact, the "new" Windows terminal allows an easy way to use either the win or the wsl side. Because it is possible to run Neuron via wsl on win, I think it is best now drop the Windows specific branch and concentrate the development effort on the several *NIX flavours. This is more efficient. My few cents. |
Beta Was this translation helpful? Give feedback.
-
Opening this thread up for discussion.
Windows support and maintenance are time consuming. It would be ideal to rely on WSL and use the same Linux codebase (and wheels). By dropping Windows code we would greatly improve development aspects and CI robustness.
What would be the impediments ?
Beta Was this translation helpful? Give feedback.
All reactions