News for hackers. Stuff that matters.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tombert on Tuesday May 12, 2020 @02:21PM (#23157617)
This is hardly surprising.

Not to crap on MS, but I do think Linux has traditionally just been a better operating system for servers, probably due to the fact that that's where most of the funding for Linux ends up going, with the desktop versions of Linux being sort of secondary.

It doesn't help that a lot of serverey software is kind of designed with POSIX-ey stuff in mind. Node.js took awhile to get Windows support and ZeroMQ's Windows support doesn't support IPC sockets. Hell, in the little bit of testing that I've done with this, .NET Core is faster on Linux than Windows.

This isn't to say Windows is "bad". I'm personally not a fan but plenty of smart people I know like Windows better than Linux. It's just to say that, for the domain that Azure fills, Linux is often a better fit, and if MS wants to compete with AWS, it would be borderline-idiotic not to support Linux.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @02:45PM (#23157981)
Windows came from the single-user domain. Unix came from server space. It is literally two different evolutionary paths. From day-1, Unix was built for shared file systems, multi-user accounts, and distributed computing.

Networking on Microsoft was an afterthought until the mid-90's. Sure there were token ring and banyan vines drivers in the late 80's early 90's, but that was to share a drive letter. The entire idea of multiple users didn't appear until Win3.1 for workgroups, decades after multiuser OSes. WinNT started to take protected mode seriously, but they re-invented networking from an MS perspective (e.g., POP/SNMP? nope: MSExchange).

It's not a surprise that Windows is such a mess under the hood compared to Linux/BSD/Unix/SystemV when you look at the history of Windows. I dunno, maybe that's not fair, but switching between *nux and Windows from a networking / distributed computing perspective is jarring. And that's just for simple things (interface config, tracing, configuration of multiple adapters and bridges...)

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by martinald on Tuesday May 12, 2020 @03:17PM (#23158418)
I think both are a mess under the hood. I cannot make sense of where things will be configured in Linux. maybe /etc/, maybe somewhere else, with loads of setting file configurations. There's not a huge amount of consistency.

What would be interesting is a complete re-imagining of a server OS. Consistent file locations for everything, which are automatically versioned a la git allowing you to roll back any specific change, built into the OS level. All processes totally sandboxed from each other with specific permission elevations as required (like iOS).

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by outworlder on Tuesday May 12, 2020 @03:30PM (#23158579)
Nor is there any consistency with the windows registry. Except that, by being such a pain in the posterior, noone edits it manually anymore and all changes are done through GUI apps. Editing config files is easier and faster (not to mention, automatable), so people don't bother creating "control panels" on Linux for the most part.

> What would be interesting is a complete re-imagining of a server OS

Not sure how 'complete', but aren't you after something like NixOS?

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by skissane on Tuesday May 12, 2020 @04:27PM (#23159268)
> Nor is there any consistency with the windows registry.

The Windows registry is a bad implementation of a good concept.

Imagine if the registry had a schema with embedded documentation, foreign key relationships, a packages database with each key owned by a package, etc...

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @07:28PM (#23161365)
I've wrestled with this for DECADES!

I've built software with a configuration database (Windows registry) and with flat configuration file-folders (*nix). I feel like I'm running in a circle because the trade-offs are so equally balanced that there's no best-case. From considering backups and database consistency, to tripwire malware detection of changed settings, to automation of access, to consistency in naming, retrieval, and type conventions, to self-documentation, to backwards compatibility... At this point I'm not even sure I would understand the correct or "best" methodology if it was handed to me on a silver platter.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by starik36 on Tuesday May 12, 2020 @04:35PM (#23159374)
> Imagine if the registry had a schema with embedded documentation, foreign key relationships

So a database then?

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by skissane on Tuesday May 12, 2020 @04:47PM (#23159538)
Well, if you think about it, the Windows registry already is a hierarchical database – just a quite limited one. You could have a hierarchical database with richer features (LDAP is a good example of that, although in some ways LDAP is rather clunky).

If by database you mean "relational database" – I'm not sure the relational model is the best fit for a config store. I think a more hierarchical database model is more natural for that purpose. (Of course, you could use a relational database as an underlying implementation detail – LDAP is fundamentally a hierarchical database, but there exist LDAP servers which store the data in an RDBMS, for example Oracle Internet Directory.)

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pjmlp on Wednesday May 13, 2020 @01:41AM (#23163827)
Well gconf is hardly any better.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @04:31PM (#23159323)
Yeah, that's a good point.

There is a big difference between Linux and BSD here.

Linux has really exploded with configuration. Are we using 'ip' or 'ifconfig'? Are we using /etc/<app> or /etc/<app>.d/? What about /lib/system? Do I restart that systemctrl or service?

BSD has kept it a little more "pure" in that it is more of a "only one way to do it" philosophy.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by AnIdiotOnTheNet on Tuesday May 12, 2020 @04:52PM (#23159625)
One of Linux's many great failings: it constantly seeks to reinvent the wheel. Unfortunately modern Microsoft is also suffering from this terrible affliction.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @06:27PM (#23160825)
On the one hand I like seeing behavioral trends feed back into the software. On the other hand, there needs to be tighter acceptance standards, and more effort to minimize the disruption to established rules. That's probably much harder to do on Linux than BSD (windows & macos have no excuse, they control everything!). Linus T. really exemplifies that with the KERNEL, it is the OS that is suffering.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by devchix on Tuesday May 12, 2020 @05:01PM (#23159771)
Having grown up under Solaris, which was BSD-flavored at one time, and then added SysV commands, and when Linux was on the ascent, added the GNU suite ... all I have to say is, bring it! All the inconsistent compile options for sed, find, things that look the same but don't act the same. Bah! :) It mystified me that epel packages install by default in /opt so you have to stick /opt/rh/blah/bin in PATH, and the attendant libraries. Considering the OS war in the 90s between Microsoft and Sun, it's a little funny, like cry-a-bit funny. Mr. McNealy would be surprise how his spats (probably for show) with Mssrs. Gates and Ballmer turn out.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by bitcharmer on Tuesday May 12, 2020 @03:26PM (#23158536)
I'd still take a heavily configurable and customizable "mess", as you put it, than the one that doesn't allow me to control how it works.

There's a good reason why Linux absolutely dominates the server space.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @07:33PM (#23161421)
When I worked for a large semiconductor company from late 1980's till early 2000's, I saw IT move from a ghastly mix of AIX, HPUX and SunOS terminals & distributed computing to 100% Linux ... in under 2 years!!

It was like someone flipped a switch and suddenly there was only one type of environment for all computing (we used something else besides VNC to manage remote X sessions, I forget what it was, it was some weird launcher for Windows).

IT claimed hundreds of millions in savings due to not having to pay for AIX, HPUX and SunOS licensing. I think the cost is what tipped the scales.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by ThrowawayR2 on Tuesday May 12, 2020 @04:08PM (#23159054)
> "There's a good reason why Linux absolutely dominates the server space."

Yeah, it was cheaper (in both senses of the word) than all the other contenders and more or less Unixy enough that software could easily be ported over.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tombert on Tuesday May 12, 2020 @05:07PM (#23159853)
Well, not to mention that you're allowed to add features to it without waiting for Microsoft to do it. Linux might not be the best codebase in the world, but it's probably easier to add a feature to Linux than it is to get MS to add a new feature.

Correct me if I'm wrong, but wasn't Linux quicker to support multithreading than Windows, largely because big megacorps needed that for their servers?

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by ThrowawayR2 on Tuesday May 12, 2020 @05:48PM (#23160342)
> "Correct me if I'm wrong, but wasn't Linux quicker to support multithreading than Windows, largely because big megacorps needed that for their servers? "

Surely you jest. The other Unixes, including Microsoft Xenix, supported multithreading before either Windows NT or Linux even existed. Big megacorps in that era used Sun Microsystems ("The com in dotcom™") server and other proprietary Unix servers because both Windows NT and Linux on the x86 hardware of the time weren't considered good enough to handle megacorp server loads and that didn't change until around '00.

If you go strictly by release date, Linux 0.01 came out in '91 and Windows NT 3.1 came out in '93 so it's technically correct that Linux had multithreading first but neither Linux 0.95 (what would have been available in '93) nor NT 3.1 was exactly something anyone would consider using in production, let alone at a megacorp.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by int_19h on Tuesday May 12, 2020 @06:47PM (#23161037)
Linux didn't have real threads early on tho, didn't it? LinuxThreads were only introduced in 1996, and they were broken in many ways.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by ThrowawayR2 on Tuesday May 12, 2020 @10:57PM (#23162973)
You're right. According to the old Linux Threads FAQ (https://web.fe.up.pt/~jmcruz/etc/threads/linuxthreads-faq2.h...), that seems to be about the right timeframe.

Oh well, shows what my memory's worth.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by marcosdumay on Tuesday May 12, 2020 @05:15PM (#23159952)
Yeah, that completely ignores how shitty all the UNIX userland was.

Some of the kernels were even good, but what gain does it bring if tar would always do the most insane action instead of backing-up your disk?

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by Teknoman117 on Tuesday May 12, 2020 @03:59PM (#23158967)
It moves around as well. There's a huge distinction between Linux _as a kernel_ and "Linux" _as an operating system_. The kernel has the same layout across all the distributions / operating systems, but everything else is up to the particular stack that distro chose. Gentoo is different from Redhat which is different from Debian, etc.

You can do what you describe without changing the kernel, but you would need to modify the userspace environment. One of my toy projects has been trying to run all "user" applications in filesystem sandboxes because I'm sick of how many random "dot-files/directories" get created in my home folder.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @06:28PM (#23160829)
Yes, that is an important distinction I glossed over. Thanks for adding that.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by dijit on Tuesday May 12, 2020 @03:26PM (#23158542)
Maybe you can check out openbsd.

It's as opinionated as you are.

(FWIW there has always been a level of consistency in Linux w.r.t. file paths, if you stick to your distribution maintainers packages)

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @04:54PM (#23159654)
In another post I point out that BSD has done a great job keeping things consistent, whereas linux is a bit of a freeforall trying new stuff.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pnutjam on Wednesday May 13, 2020 @09:07AM (#23166503)
Not if you stick with Suse (OpenSUSE) or RedHat (centOS).
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by vel0city on Wednesday May 13, 2020 @09:36PM (#23174185)
Gee, I need to change a setting on $APP. Wait, is that a config file in /etc/$app/? Or did they put that in /var/lib/$app/? Huh, can't find the setting I'm looking for there, guess I better check /etc/sysconfig/$app...

Usually, developers are sane and put things in /etc. However, there are a number of very common applications which have configurations strewn all over the place. Bonus points for apps which have even additional configurations in their systemd service files!

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pnutjam on Friday May 15, 2020 @09:24AM (#23191860)
Rpm will tell you where installed files are:

rpm -ql <package>

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by wwright on Tuesday May 12, 2020 @04:12PM (#23159089)
This is where Kubernetes points, FWIW :)
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by AgentME on Tuesday May 12, 2020 @07:44PM (#23161519)
My favorite way to picture Kubernetes is to think of it as a distributed operating system. It generally happens to be run across Linux hosts and is used to run Linux containers, but the Linux parts are incidental, like the specific model of CPU in a desktop system. The Linux parts aren't core to Kubernetes' abstractions, and it's possible that Kubernetes could add support for hosts and container runtimes that aren't Linux but instead platforms more streamlined for Kubernetes usage without historical baggage.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by ThrowawayR2 on Tuesday May 12, 2020 @02:55PM (#23158134)
> "Windows came from the single-user domain. Unix came from server space."

Windows 9x came from the single-user domain but is long dead except for compatibility stuff left over in modern Windows. Windows NT and its successors came from server space from its VMS lineage.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by oneplane on Tuesday May 12, 2020 @03:23PM (#23158491)
While that is true, the win32 API and other stuff that floats on top of NT for the GUI based stuff (which is most stuff) is still very much restricted by that legacy.

NT was supposed to be very tunable and modular and have multiple personalities and abstractions but it turns out it mostly is just win32-on-NT and everything else ended up being on top of win32.

It has gotten better, especially post-OneCore, but it still is very much restricted compared to Linux, BSD and Unix.

Windows NT (and VMS) were not as much multi-user server as they were more closer to mainframes (which died/are dying for their own reasons). VMS, like plan9, had concepts to allow many (theoretically) fancy server things, but were to much a created world instead of a grown world (like post-system-v). Also, while the VMS dude who was on the NT team did influence it heavily, the legacy they had to support made it almost impossible to use any of that fancy 'new' stuff back then. While it was orders of magnitude better than DOS, it feels like Windows needs to make yet another evolution like it did going from DOS to NT to get back to current times instead of patching on top of patches every time.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by int_19h on Tuesday May 12, 2020 @06:45PM (#23161011)
Can you give any examples of Win32 API that manifest design flaws or restrictions due to "single-user domain" legacy?
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mixmastamyk on Tuesday May 12, 2020 @04:26PM (#23159249)
Not expecting that to happen as MS is investing less in Windows.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pjmlp on Wednesday May 13, 2020 @01:52AM (#23163877)
Given that we just got the new SDK, DirectX 12 Ultimate is around the corner and release notes are a pleasure to read, it doesn't look to me like that.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by ghostpepper on Tuesday May 12, 2020 @02:57PM (#23158165)
I have to wonder what percentage of the Windows 10 codebase is for backwards compatibility.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mixmastamyk on Tuesday May 12, 2020 @04:18PM (#23159163)
Yep, many years ago I casually stated here that Windows was clumsy on the network, and it really offended some guy. Limited drive letters and backslashes didn’t help, but the history you mentioned is the foundational problem. The misdesign around console/remote admin is another. For more background read the Art of Unix programming and the Windows Terminal blog about all the layers they had to work around to shoehorn it in.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pnutjam on Wednesday May 13, 2020 @09:09AM (#23166516)
I still run into Windows Admins who don't understand UNC paths vs mapped drives.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tombert on Tuesday May 12, 2020 @03:25PM (#23158529)
I agree that networking stuff feels pretty frustrating on Windows compared to POSIXey stuff; for the most part using a good networking library like (as mentioned above) ZeroMQ or even some of the built-in JVM socketing stuff will help abstract it, but Unix sockets are simply better out of the box.

Even a simpler example though; the fact that there wasn't really a built-in analog for the "pipe" until PowerShell sort of boggles the mind. Yes, I'm aware that Windows isn't command-line focused, but it baffles me that software engineers didn't really see a need in Windows to compose programs together. (Someone, please correct me if I'm wrong on this point, I haven't touched Windows in any serious capacity in almost a decade).

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by useerup on Tuesday May 12, 2020 @04:58PM (#23159726)
Windows IO model - including network - is arguably much more well designed than anything POSIX, thanks not least to Dave Cutler and his team.

From the get-go Windows NT (Win32) had a common model for overlapped IO (async IO in today's parlance). This async capability permeated everything from disk IO to network IO, and works well today with USB, Thunderbolt etc. Mind you, this model has not changed while Unix/Linux/POSIX still have not found a common model that works for all. See for instance https://stackoverflow.com/questions/13407542/is-there-really...

Under the hood Windows was also designed with a completion-oriented model (IO completion ports) which scales better in most instances than the Linux readiness-oriented approach (I believe that MacOS uses a completion approach as well, so the readiness approach is not universal *nix). Basically, windows saves at least one context switch for every basic IO operation. Windows supports the Berkeley sockets API with some optional extensions to make socket operations overlapped/async as well, essentially supporting both the straight socket model as well as the completion oriented extensions.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @07:45PM (#23161531)
This is a very enlightening post, thank you. I don't often develop cross platform to this depth, and I think it is a wise reminder that Microsoft actually knows a thing or two about operating systems, contrary to popular opinion. It's almost like the application teams sabotage the OS teams...
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tombert on Tuesday May 12, 2020 @05:24PM (#23160069)
You appear to understand this stuff better than me, so you've gotten me a bit curious; how did something like Java NIO work before kernel 5.1?
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mixmastamyk on Tuesday May 12, 2020 @04:34PM (#23159363)
You could always pipe commands, there just weren’t any worthwhile to pipe to. I often consulted this site often twenty years ago:

https://ss64.com/nt/syntax-redirection.html

And half the time you’d have to use the “for” cli monstrosity. I looked up the instructions every single time I used it for decades, that’s how bad it was/is.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by vel0city on Wednesday May 13, 2020 @09:57PM (#23174332)
Windows has many ways to compose programs together, but usually the applications need to be designed to be composed together. The idea wasn't just to shuffle text around, but entire binary objects and shared state.

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

This is definitely getting deep into the Windows world, and if you didn't do a lot of highly Windows focused software development its probably easy to miss it. COM is a big giant complicated beast and definitely not a complete darling to work with but it had (has?) a lot of really cool concepts. Very different from the everything is a stream of text basis in Linux. And even now with things like Powershell, you're not sending text to the things you're piping to, you're passing .NET objects around.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by stinos on Tuesday May 12, 2020 @03:41PM (#23158728)
socketing stuff will help abstract it, but Unix sockets are simply better out of the box

Can you elaborate? Do you mean performance? Because the on the C level both use (apart from some minor differences, which aren't enough to call one 'simply better' than the other) the same berkeley socket API.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tombert on Tuesday May 12, 2020 @03:48PM (#23158825)
Again, haven't touched Windows in years so it's entirely possible that I'm wrong or out of date, but the last time I did any kind of networking on Windows was with the WinSock API, which if I recall correctly, didn't have any support for any kind of IPC out of the box, and I had to do everything with TCP.

I might have been too harsh on Windows there, I've never paid to do any direct socket-level programming within Windows.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by int_19h on Tuesday May 12, 2020 @06:54PM (#23161105)
Do you mean Unix domain sockets by "IPC"? TCP sockets are also a perfectly valid IPC mechanism, as are many others. Win32 generally promotes pipes (named, if needed) for this purpose. For sockets, if you insist on them, it offers some optimizations for local/local TCP connections. Win10 eventually added Unix sockets, mostly for WSL integration (https://devblogs.microsoft.com/commandline/af_unix-comes-to-...). In the end, it's all just byte streams, so it doesn't matter much once you get past establishing connection.

The biggest annoyance with Windows sockets is that they aren't really unified with files - as in, a socket file descriptor cannot be passed to file APIs that work on FDs, like read() and write(); you have to use send/recv(). This makes it harder to write generic code in C, since you need an abstraction layer for code that deals with I/O streams. But most frameworks already offer such an abstraction layer - e.g. a .NET API would just use Stream (and if it's a socket, it would be a NetworkStream instance).

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by freefriedrice on Tuesday May 12, 2020 @07:38PM (#23161464)
It hasn't changed! Except for PowerShell, but that's... oy.

I have PowerShell, Git Shell and Cygwin running on my windows Dev box and all three make me cry on a weekly basis because I have to switch between them to do different things. I suppose one day I will sit down to fix my Windows dev environment, but it makes me feel so bloody frustrated that my muscle-memory shell is so ... perverted by windows implementations.

MS is bringing Bash to windows natively. I don't know how that is going to work since piping just isn't there, but I've got my fingers crossed that I'll only have to deal with ONE shell for windows!!!

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by meddlepal on Tuesday May 12, 2020 @09:09PM (#23162261)
"Bash for Windows" is just WSL2 (forget WSL1 existed, as a proof of concept market validator it was good, but it has real issues because bridging NT -> Linux syscalls is hard.).

It's not a native Bash experience but it's pretty close. I say "not native" because it's actually running a VM under the hood and bridging the file systems via 9P network protocol.

I know people who are using it and love it. I have not switched yet, but I am definitely going to investigate it at some point.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pnutjam on Wednesday May 13, 2020 @09:11AM (#23166533)
I came from the Windows world to Linux. Especially when it comes to Enterprise, my experience is that Windows Admins are more likely to know network basics then Linux admins.

However, Linux admins who know networking usually have a deeper understanding.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pjmlp on Wednesday May 13, 2020 @01:40AM (#23163821)
Lots of FUD and misunderstanding going on there.

Windows NT, which is what everyone uses, is a descendant of VMS design and culture, built for shared file systems, multi-user accounts, and distributed computing just like UNIX.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by kalleboo on Wednesday May 13, 2020 @02:42AM (#23164147)
GP is unfair in as you say, NT was a from-the-ground-up new OS based on VMS design without the single-user baggage of old DOS/Windows.

But still for a long time Windows NT made a lot of concessions to the single-GUI-user model that UNIXes didn't, like putting font rendering in the kernel.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by pjmlp on Wednesday May 13, 2020 @03:27AM (#23164393)
Except for UNIXes like NeXTSTEP and Sun NeWS, as no other UNIX ever had any clue about GUI development, as Jobs used to say.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mavhc on Tuesday May 12, 2020 @03:34PM (#23158639)
Unix was originally a single tasking OS, that's what the U is for
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by GordonS on Tuesday May 12, 2020 @02:49PM (#23158041)
I've used Windows on desktop since 3.1, and nowadays Windows 10 is my daily driver - IMO it's the best desktop OS, and always has been.

But for servers, I much prefer Linux. It uses less resources, and it's so much easier to get it into a known and consistent state that Windows.

Also, something about having a GUI for servers has always felt... wrong somehow!

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mixmastamyk on Tuesday May 12, 2020 @04:39PM (#23159445)
Right tool for the job. Also Windows finally has a terminal and ssh, so it is tolerable.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by FpUser on Tuesday May 12, 2020 @04:52PM (#23159626)
Almost the same here. I do not really have problems with GUI on server besides you can configure Windows server run without one. But the pricing however is not very attractive for smaller fish.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tracker1 on Tuesday May 12, 2020 @07:48PM (#23161557)
WSL2 is the only thing that has made Windows bearable for me. That and VS Code's remote extensions. Almost everything I use is cross platform for years now.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by rhacker on Tuesday May 12, 2020 @02:35PM (#23157830)
I've always got the feeling that MS specific developers are highly visual studio oriented. They have their connection string built into the IDE. In fact, if you asked them to make something that builds from the command line, and runs, they would probably be scratching their head for a while.

It wouldn't surprise me at all to find some windows based companies that have classic windows VMs in the cloud, running Visual Studio, and production deployments are: RDP in, stopping with the little red button, updating the codebase (with a copy over a network share), and then re-running the code on the production server with the little green play button. Database changes are done by hand in SQL Server Manager.

I know this isn't at all related to the post here - but it's just an interesting phenomenon - the fact that Azure is about 50 percent windows means it's mostly running things like Office backend products, crazy running copies of Visual Studio. It is probably a total mess if half of Azure goes down for 5 minutes. Linux servers would come back up and continue running whatever. All the Windows companies get a call, have to RDP in and do shit.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by stinos on Tuesday May 12, 2020 @02:53PM (#23158100)
I've always got the feeling that MS specific developers are highly visual studio oriented

This and the rest of your post is about one specific kind of developer, and I honestly wonder how you can think that's it.. Lack of experience or just bad luck and only ever met this kind perhaps? Anyway while I know for a fact these exist, your feeling is sort of wrong in that there are also developers who just use VS as the IDE it is (to write code and debug; it's good at that) and for the rest automate build environment setup, deployment and whatnot just like you'd do on another OS. I just don't know the numbers, i.e. which share of developers using VS act like you describe. It's not like using VS somehow makes people blind for concepts like CI. Data point: we have a bunch of scripts (combination of PowerShell/Python/MSbuild) which will install and setup the complete build environment from scratch (VS/Miniconda3/Vcpkg/...) checkout all code (yes from git, not from a network share), build a myriad of different flavors of the product, package it; all in one commandline command.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mixmastamyk on Tuesday May 12, 2020 @04:43PM (#23159494)
One example, when you install many applications, even automated via cli, it will open a gui progress bar.

Python used to do this, it still may.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by stinos on Wednesday May 13, 2020 @03:05AM (#23164264)
If the gui doesn't actually require interaction that doesn't really matter, does it? But most installations have a silent mode where they do not show a gui. All of the aforementioned applications are installed like that (inluding Miniconda i.e. Python), as is common when installing via package management in Powershell.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mmcconnell1618 on Tuesday May 12, 2020 @03:21PM (#23158476)
The Visual Studio ecosystem has supported command line builds for a long time. msbuild commands are run by Visual Studio and display right in the console. The .NET Core stack is also very command line first designed.

I think what you're noticing is that Visual Studio makes it easier for point-and-click developers to participate while a bash shell takes a little more effort to learn. You can have poor developers in both worlds or great developers in both worlds.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by NicoJuicy on Tuesday May 12, 2020 @02:51PM (#23158068)
I'm one "visual studio Dev"

I have also build in Go, nodejs, Php, RoR.

But VS is truelly the best IDE experience I have witnessed.

Database changes are automatically migrated and deployed using entity framework fyi.

The big deployment button changes the connection string per deployment, deploys with feature flags directly and automatically migrates the db to the latest version

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by addicted44 on Tuesday May 12, 2020 @03:17PM (#23158429)
It's kind of funny to see the disdain for VS based deployment here, while all the current rage right now is declarative deployment systems.

Something VS based development, build and deployment based workflows have been doing for over a decade through the largely Web..config files and .csproj files.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by NicoJuicy on Thursday May 14, 2020 @09:14PM (#23187752)
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by zeroc8 on Wednesday May 13, 2020 @02:25AM (#23164054)
Using it on a huge MFC application was the worst IDE experience I've ever had. So much time wasted on waiting for the thing doing it's job. That said, it's a lot better when used with a modern language like C#. But still dog slow. Nowadays even Java based IDEs feel snappier. And that says a lot.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by GordonS on Tuesday May 12, 2020 @02:53PM (#23158094)
> I've always got the feeling that MS specific developers are highly visual studio oriented. They have their connection string built into the IDE. In fact, if you asked them to make something that builds from the command line, and runs, they would probably be scratching their head for a while.

That might have been true once, but I think Microsoft-stack devs are a lot more command line savvy these days.

The move towards DevOps and scripting makes the command line much more necessary, and makes the benefits of the command line clear. The move towards cloud has introduced Linux to a lot more organisations, yes, even Microsoft shops.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tonyedgecombe on Tuesday May 12, 2020 @03:35PM (#23158658)
That might have been true once, but I think Microsoft-stack devs are a lot more command line savvy these days.

I don't think it's ever been that true. It's just a handy stick for some people to bash their perceived out-group.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mixmastamyk on Tuesday May 12, 2020 @04:46PM (#23159527)
For decades the cli interface on Windows was neglected on purpose, and it showed. Sure you could hobble along, but I don’t blame folks who didn’t.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tomc1985 on Tuesday May 12, 2020 @02:56PM (#23158155)
Is it any better than SSH'ing into a server and "services stop mybusinessapp; update.sh; services start mybusinessapp"?

I'm detecting a bit of disdain for the VS world

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by fomine3 on Tuesday May 12, 2020 @08:59PM (#23162177)
manual ssh operation looks not better
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by FridgeSeal on Tuesday May 12, 2020 @08:48PM (#23162094)
> In fact, if you asked them to make something that builds from the command line, and runs, they would probably be scratching their head for a while.

As someone who learnt to program using linux/Mac OS, when I got a job somewhere that used windows and VS exclusively, trying to get my head around the (to me) needlessly confusing and convoluted way in which windows-dotnet devs seemed to do things was a painful experience.

Watching some of them try and debug docker files was amusing because that was a total role reversal.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by shawxe on Tuesday May 12, 2020 @02:56PM (#23158143)
Obviously anecdotal, but in my personal experience this is pretty close to the truth.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by eitland on Tuesday May 12, 2020 @02:41PM (#23157926)
> in the little bit of testing that I've done with this, .NET Core is faster on Linux than Windows.

My experience as well. In fact it was extremely much faster.

- Hello world took something like 5 seconds to run on Windows

- on Linux (a VM on the exact same laptop, with the same Windows running underneath in fact) it was so fast I had to use the time command to figure out how many milliseconds it took :-)

FTR: while it was hardly scientific I actually put some effort into trying to make sure it was equal.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by jfkebwjsbx on Tuesday May 12, 2020 @02:46PM (#23157991)
That does not make sense at all. The files were probably cached in the Linux case.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by eitland on Tuesday May 12, 2020 @02:55PM (#23158139)
Believe me I tried a number of things. It was like that from the first run and every time.

Well, technically it might have used 700ms the first time and 400ms later, I didn't measure the first run, but it was still way faster than on Windows which was why I started measuring using time after all.

Also on Windows it kept being slow on subsequent runs, and in my world that matters too.

I don't have recordings, but I recommend you try for yourself. I compiled both from the same source, and as far as I can remember I used standalone compilation for both (I don't have perfect memory but I have a history of being careful.)

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by int_19h on Tuesday May 12, 2020 @06:56PM (#23161122)
Spawning a process is a rather heavyweight operation on Windows, compared to Linux, so it's not surprising that it's slower. But 5 seconds definitely makes it sound like an I/O caching issue.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by eitland on Tuesday May 12, 2020 @10:48PM (#23162919)
Another common problem on Windows seems to be antivirus. Many of the available options seems to insist on checking every file on every invocation even if I have compiled it from my own sources (I see this can be hard to judge) and even if it last checked it a few seconds ago.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @02:24PM (#23157660)
It just makes sense to run a server OS that works well and is full-featured when there is no GUI.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tombert on Tuesday May 12, 2020 @02:37PM (#23157868)
You know, I was thinking this, but honestly how much overhead is the Windows GUI when no one is logged into it? I know it's not nothing, but I suspect it's not that much, is it?
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mmcconnell1618 on Tuesday May 12, 2020 @03:24PM (#23158512)
Windows Server is available in a "core" edition without a GUI.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tonyedgecombe on Tuesday May 12, 2020 @03:38PM (#23158692)
Not only that but pretty much everything on Windows Server is exposed to PowerShell and has been for some time.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @03:55PM (#23158897)
And does it actually have well tested, well known, reliable functionality on everything you tend to use? Configuration of programs using easy to edit text files vs some system of ticking checkboxes in a GUI?

RegEdit, is there a text version for that? Imo there's no comparison to the Linux ecosystem.

Windows is GUI first.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by useerup on Tuesday May 12, 2020 @05:05PM (#23159829)
> RegEdit, is there a text version for that?

Uhm, in Powershell:

    PS C:\Users\zb3> cd hklm:
    PS HKLM:\>
(you are now in the registry local machine hive)
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @06:12PM (#23160655)
It's just that I have a hard time believing that three or four years of development for administrating windows through text is equivalent to 30 years development for administrating Unix through a CLI.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tonyedgecombe on Wednesday May 13, 2020 @03:29AM (#23164404)
In many ways it's much better. There is a consistent interface over everything. Whereas on my Unix boxes my ~/.ssh/config file looks completely different to my Apache config.

Also I get much more fine grained control over permissions in the registry, right down to individual keys. Try doing that when your config is in a text file.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by what-the-grump on Wednesday May 13, 2020 @01:53AM (#23163886)
The default fallback to can't find it in GUI is cmd? Windows 95 used to start from command prompt. We've been administering windows from cli for 30 years. But our cli was oo from the start. Powershell is really amazing. Once you start falling out of object land into crap like ssh, you see the split, e.g. why it took so God damn long to port it. And I still have plink into switches using a premade command file.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by JoBrad on Tuesday May 12, 2020 @06:56PM (#23161117)
PowerShell has been around since 2006, not just the past 3 or 4 years. And there was a good deal of CLI-based administration / scripting before then, too.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by tonyedgecombe on Tuesday May 12, 2020 @05:48PM (#23160351)
And does it actually have well tested, well known, reliable functionality on everything you tend to use?

Yes, MicroSoft made a big thing about this about five or six years ago if I recall correctly. All the server products like Exchange or SQL Server treat PowerShell as a first class client.

You can walk around the registry just as if you are traversing a directory tree.

If anything the GUI is becoming rather dumbed down in recent releases.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by cesarb on Tuesday May 12, 2020 @04:09PM (#23159062)
> RegEdit, is there a text version for that?

AFAIK, yes, it's at %WINDIR%\System32\reg.exe

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @06:13PM (#23160664)
So it exists, but is the usability and functionality nearly equivalent? And the thing is that it also involves third-party software tools.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by int_19h on Tuesday May 12, 2020 @08:44PM (#23162065)
Nearly equivalent to what? It can do everything that the GUI can, if that's what you mean. Some things are obviously going to be less convenient, but that's just the nature of CLI.

And what third party tools does that involve?

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Thursday May 14, 2020 @07:59PM (#23187258)
What I mean is that oftentimes on Windows, I use non-OS tools or applications which are not made with the expectation that you will want to script them or configure them via text interface.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @03:55PM (#23158906)
Great, *nix has been available in that way for hmmm, maybe a few decades.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mekster on Wednesday May 13, 2020 @03:10AM (#23164289)
It's not the resource but the cognitive load is so high when you have to click little parts and you can only interact as good as what the UI offers.

Apparently Windows is human first which isn't what servers are meant to be.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by oblio on Wednesday May 13, 2020 @03:42AM (#23164480)
You don't have to click little parts, you can use Powershell :-)
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by what-the-grump on Wednesday May 13, 2020 @01:40AM (#23163816)
It's a lot. I run core for critical windows infrastructure to cut costs, patch times, and save on core count, instance sizing and reduce attack footprint.

The GUI is big, and I run that when needed, RDS, userland stuff etc.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @03:15PM (#23158392)
I don't mean as far as idle resource usage.

The advantage of Linux is when you want to accomplish tasks without a great internet connection, but the windows tools are not evolved enough as far as command line functionality.

Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by jen20 on Tuesday May 12, 2020 @05:05PM (#23159823)
This was once the case, but PowerShell has been a solid administration tool for quite some time now. OpenSSH Server also ships as part of Windows, which was the missing link (since WinRM is, charitably, awful). The remote administration experience of Windows is now certainly comparable to Linux, in my opinion.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by code_duck on Tuesday May 12, 2020 @05:37PM (#23160214)
Thanks, at this point I'm neither a sysadmin not a masochist so I haven't checked this out.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by fomine3 on Tuesday May 12, 2020 @09:06PM (#23162244)
You seem to want to retain your bias.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by koffiezet on Tuesday May 12, 2020 @07:07PM (#23161208)
You don't want to know how many RHEL servers are out-there running a gui...
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by mekster on Wednesday May 13, 2020 @03:11AM (#23164296)
As many as wannabe sys admins.
Re:Linux is Most Used OS in Microsoft Azure – over 50 percen... by adolfojp on Wednesday May 13, 2020 @08:20PM (#23173539)
Windows Server Core (no GUI) has been the default since 2012.