by kleiba · 4y ago · 0 comments
Windows does not come with any compilers or scripting languages installed out of the box (or so I thought. Thanks to HN - see below - I've now learned that there are some for .NET). But luckily, I discovered HTAs, and so now I'm happily implementing a small Emacs clone in it to get out of Notepad hell and back onto a path of sanity.
Also, I'm looking for a new job.
wscript.exe can run JScript and VBScript.
PowerShell can run scripts. It has access the whole .NET runtime, so you can even make GUIs if you are determined enough.
There is a C# (csc.exe) compiler under c:\Windows\Microsoft.NET . There is also MSBuild.exe to run build scripts. If you want to get more off the beaten path there are also VB.NET (vbc.exe) and JScript.NET (jsc.exe) compilers.
If you can try typing “python.exe” in a command prompt on newer versions of Windows 10 and 11. It should open the Microsoft Store to install a modern Python interpreter.
I cannot install anything, but if the compiler is preinstalled, that will be a godsend.
Fortunately, an Emacs clone doesn't really have high requirements for a GUI, but if I end up finding HTAs too limiting, it shouldn't be too hard to port it to JScript.NET (I hope). For now, I find the ability to just use HTML/CSS for what is needed quite comfortable.
Also a friend told me that base64 encoded zip archives copy-pasted through pastebins and the like aren't generally blocked by most scanners out there.
This is one reason why Excel is a popular programming environment!
The funniest part (in a shocking kind of way) was my conversation with them on the first day where I asked whether they could install Emacs for me, and the guy's reply was: "What is that?"
And if you can use WSL you basically have all the linux cli stuff available to you.
And if they don't blacklist all executables you can probably just download and run zipped packages -- powershell core, python, go, vim/neovim, and probably emacs can all be run as if they were portable apps and for most things you won't need admin rights.
WSL would be a dream, but they said to me that they basically want all machines that they're responsible for to be the same. You see, there are two kinds of sysadmins: those who take their job to be enablers for the rest of the staff (within certain constraints) and there are some that want to make it as easy as possible to themselves, nevermind if that restricts the actual users.
If you mean you're not allowed to run any executables at all unless in a whitelist then WTH, what kind of company expects developers to use such an environment, and what for?
It runs a lighweight copy of vscode entirely in the browser.
It looks like the emacs keybinding extension is available for use.