4 ms·
The two canaries to watch for are a systematic switch in the default line ending character from CRLF to LF, which will be driven by Microsoft developers fed up
by pjc50 6y ago
The two canaries to watch for are a systematic switch in the default line ending character from CRLF to LF, which will be driven by Microsoft developers fed up of git hassles, and a switch in the default path character from "\" to "/". In most places those are already supported, but not default.
- timvisee 6y agoI don't think they'll ever become the default, because of 'compatability' reasons.
- mumblemumble 6y agoI could perhaps see them becoming configurable. I can't at all see why either of those would indicate that Microsoft is gearing up to rebase Windows.
- m463 6y agoSWITCHAR='-'
- CJefferson 6y agoThose are two of the smallest parts -- there is the entire Windows API, and kernel API. The line ending character used by notepad isn't what would stop a total re-write of Word. Tens of thousands of methods which power the majority of paid-for software. Microsoft has spent decades, and huge amount of man-power keeping all that software working, why would they flush all that away?
- pjc50 6y agoThe API is quite shim-able; WINE has done that in the reverse direction, and there is (or was) the "POSIX subsystem" and cygwin. People build cross-compilable C code that works on both. It's just a bit of a hassle because the semantics are different in key places. Leaving aside things which touch the GUI (which is a lot! You need a window to receive messages to use certain APIs!), the next big differences are the process API (no fork, starting processes is a lot more time consuming) and the advanced filesystem API (completion ports). There are frankly a few pieces of the API that I would like to see go in the other direction, like WaitForMultipleObjects().
- JdeBP 6y agoIndeed. kevent() isn't quite there on FreeBSD yet, and the Linux kevent() library doesn't work the same as the BSD one. * https://freebsd.org/cgi/man.cgi?kevent https://freebsd.org/cgi/man.cgi?kevent * https://news.ycombinator.com/item?id=23549116 https://news.ycombinator.com/item?id=23549116
- tracker1 6y agoI don't think MS would ever switch the UI out for Linux... but it wouldn't completely surprise me to see MS helping with WINE, DXVK and Proton. More surprised if there haven't been MS contacts that have at least helped to clarify things on occasion.
- INTPenis 6y agoAs a developer who has had to integrate data between Windows and Linux systems, but lacks deeper insight into Windows, I'd say another really important milestone would be a complete switch from CP1252 to Unicode. Countless times that codepage thing has haunted me when moving data from Windows workstations into automatic processing systems hosted on Linux.
- user5994461 6y agoWindows is UTF-16 internally while Linux is UTF-8. If Windows goes to unicode by default, it will make things a lot worse because it won't be the same unicode.
- AnIdiotOnTheNet 6y agoWell, they say UTF-16, but they still allow unpaired surrogates in some places, so it is really more like UCS-2.
- ChrisSD 6y agoLinux also allows invalid utf-8.
- chungy 6y agoIt is, Windows NT's adoption of Unicode predates UTF-16 and it's impossible to really make it UTF-16 compliant without breaking obscure corners of compatibility. Most programs assume it's all UTF-16, and it happens to work most of the time... at least until you encounter those sequences that are invalid.
- JdeBP 6y agoWTF-16 makes the distinction that invalid sequences are allowed. * http://simonsapin.github.io/wtf-8/ http://simonsapin.github.io/wtf-8/
- vbezhenar 6y agoYou can switch 1-byte encoding to UTF-8. But many applications probably won't work. And working applications probably are using unicode API anyway.
- x87678r 6y agoEven notepad can handle LF now. There is no reason to use CRLF anymore on Windows.
- beervirus 6y agoNot sure what the point would be of switching the default path separator. They're both already supported. What's to be gained?
- frank2 6y agoThe problem is that not all of the software someone might want to run on Windows handles backslashes gracefully. There are situations in which for example VS Code will run git commands "behind the scenes" (without ever showing the command to the user). The way it is now, VS Code sometimes obtains a file name to be used as an argument to a git command from a Microsoft function that return the name with backslashes, gives the name to git, which doesn't consider a backslash a path separator, so git causes an error, "no file named foo\bar\bash," or such, and since that git command line (command with arguments) was never manually submitted or entered by the user, the user can't get past the error just by replacing some backslashes with slashes, then resubmitting the command line. Microsoft could submit patches to the git project to make git recognize the backslash as a path separator, but there is no guarantee that the maintainers of git would accept the patches. So, Microsoft could end up choosing to bend (on the backslash issue) to make Windows more compatible with git -- and other Unix-centric projects.
- jpswade 6y agoI think a better canary would be if Microsoft start buying Linux-based companies that have already solved these problems.