Already too complicated for my parents. I have shown my mother how to open her downloads folder for over a decade and she still can't do it. Sigh.
The slowdown isn't in assigning the bool; If you pass in 10000000 into that function, it's going to get isPrime set to true on the first iteration, but if you early out, you save all of those values. Again, this isn't really the point of the exercise, it's supposed to be comparing the performance of the same piece of code ran on different hardware.
https://gist.github.com/anonymous/c6d5bae04334cbc7ef9583ebb7...
Interestingly it is almost identical to his 2-generation newer MacBook Pro.
Edit: and if I fix isPrime to not waste using the prime bool I get 1.862s
Edit 2: and with my horrible Java copy&paste version[0] I get 2.050s
Edit 3: ok final edit but doing squareroot(n)+1 you speed it up to 0.012s for C++ and 0.019ms for Java. Fast enough for me, good night :)
[0] https://gist.github.com/anonymous/0709e1807f57b686683f3e5f7b...
Original link is to post #84 in the conversation.
I actually think it will happen. It makes sense for Microsoft to have an official Linux distro that they can offer true support for.
My wild-ass prediction for a Microsoft Linux distribution is one in which Microsoft Windows replaces X-windows. Wayland is already trying to do this because of the perceived security vulnerabilities of X-windows' architecture. In a limited sense, this is sort of an old idea when it comes to nix: there were paid GUI products for layering on top of nix thirty years ago, e.g. Open Look and Motif.
I wouldn't really call them perceived, they're really really major. Sharing uncleared video memory across processes can expose a lot.
If anything, they'd just make NT fully POSIX-compliant. They'd get the same benefit with a fraction of the effort of porting Windows-the-GUI to Linux.
They did this with the POSIX subsystem, and the ability to do this was in mind very early in NT history. They ripped it out in Windows 8, IIRC. I guess it's back.
Long term deprecation of their work force? Reduction in operating costs?
Why pay people to support / extend a kernel / hardware drivers when Linus will do it for free?
Edit: Checked: https://en.wikipedia.org/wiki/Motif_(software)
According to that article, it was, initially. Didn't know.
Personally, I'm happy to keep providing whatever mix of OS services customers request, but I'm very interested in where this could be going
[1]: https://blogs.windows.com/buildingapps/2016/03/30/run-bash-o...
What's different this time?
My prediction is that it'll languish in obscurity, rarely used, and eventually be discontinued.
For example, modern virtual machine software like Parallels and VMWare Workstation allow for "unity" modes where the guest OS window manager is hijacked so that each window can be rendered onto the host without the rest of the guest desktop interface. If you're running the guest kernel "side by side" with the host as a virtual machine, you can focus on drivers that bridge the two operating systems (filesystem, network, window manager, etc.) and make it seamless instead of trying to shoehorn a low level emulated interface into a system that may not be ergonomic for that task.
Running 64bit Linux elf binaries on the NT kernel, side-by-side with windows binaries is quite different from WSUS -- at least what experience I had with WSUS. It's more like Wine (a port of the win32 api to Linux (and BSD/OS X?) that allows running unmodified windows executables on Linux.
Being able to "apt install redis" on windows, and get the redis-build that Ubuntu ships, and be able to use it locally is a pretty big deal, IMNHO.
https://news.ycombinator.com/item?id=11388418
> I think eventually, we'll see Windows transform into a Linux distro with a Windows UI.
Apple's non-unix line endings (CR) changed to LF, their non-unix path delimiter (:) changed to /, and they were suddenly a major force among non-Apple-targeting developers who had always derided the Mac as a "toy" prior to OS X.
If MS has similar ambitions, they could do again what both they and Apple have done before: toss away millions of lines of kernel code.
Current-generation Windows doesn't really have any such flaws-- the underlying kernel seems to be pretty sound, the hardware driver ecosystem around it is the most complete and robust of any mainstream OS, and they seem to be showing now that they can adapt to developer demands without doing something drastic. There's no real compelling reason that I can see for Microsoft to make a transition to Linux (or BSD, if the GPL is too toxic).
That was because with OS X, they switched from a Mac OS subsystem to a Unix subsystem
Take this with a grain of salt, of course.
http://www.kuro5hin.org/story/2004/2/15/71552/7795
I'd say, the user experience has improved since then overall (meaning the code quality, too, in one of the most practical senses).
You get dodgy comments in the Linux kernel to.
Also it just happens to run on Debian.
Interesting, didn't know that ... Because PC hardware was cheaper and more ubiquitous, could be one reason, maybe.
On a related note, UNIX became big in India (people used to call it a Unix country) in the mid or late 1980's, per what I've read, because of a government decision on computerization. The Rangarajan Committee (he later became the Governor of the Reserve Bank of India, which is like the US's Federal Reserve) recommended use of UNIX as the operating system for nationalized banks' back-office automation, because of its multi-user and multi-tasking nature (and possibly / likely because it was cheaper than mainframes, maybe even because less proprietary).
UNIX usage in India took off due to that (thousands and thousands of bank branches in India), and hence many devs and admins developed Unix skills ... I was part of that trend, and benefited from it a lot, professionally, in terms of learning ...
My first Unix was some PC-based clone, the name of which I cannot remember now, but was also a while before Linux. Not sure whether it was before Xenix or not, though I used Xenix (SCO Xenix at the time, IIRC, or was it SCO Unix) a year or so later.
First Unix's name may have started with E-something. Everex? Not sure.
I think I also got to use Interactive Systems' PC Unix (PC-IX?) around the same time as the first one.
Soon after, moved to Unix on higher Motorola 680x0 processor based minicomputers, and even a multi-CPU SMP RISC Unix (from MIPS) for a while.
Later SVR3 and SVR4. Didn't like 4 though. By then (as I learned later) the UNIX wars had started, and it seemed to be a clunky hybrid of features from the SVR3 and BSD camps. Later worked a good amount on HP-UX too, on their PA-RISC business servers. Liked HP-UX. Pretty stable and powerful OS with a good patch management system and many other features and tools (HP PRM, Glance Plus, Ignite, MC/ServiceGuard, etc.).
The hp-ux mailing list was good too - very friendly and helpful people, I helped out others too.
Never got to work on Solaris, though, which I regret.
I remember I first wrote my selpg utility [1] on a HP-UX box (for a large corp customer, at their request), and then released it on the HP-UX mailing list. Some people appreciated it.
[1] http://jugad2.blogspot.in/2014/09/my-ibm-developerworks-arti...
http://jugad2.blogspot.in/2014/10/print-selected-text-pages-...
Good fun doing a lot of systems stuff on those machines for some years.
I did Xenix, DG/UX, Aix, got my first Linux distribution in the form of Slackware 2.0.
Tried to get Coherent before, but could not afford it.
Afterwards Red-Hat, Mandrake and SuSE were my favourite ones until I ended up with Ubuntu.
At work I also got to use Solaris and HP-UX.
My first experience with containers was with HP-UX vaults.
However I never managed to leave the worlds of Amiga, Windows and BeOS behind. Specially in terms of Demoscene, IDEs culture, graphics and game coding.
Didn't know about HP-UX vaults. Maybe it came after I stopped using HP-UX, or I just missed it.
Edit: Just googled, it looks like vaults came in either HP-UX 10.24 or 11.x. Think I used HP-UX versions 9.x and upto 10.20.
You're lucky to have worked on Amiga [1]. Read a good amount about it, including its power and performance, multi-tasking, in BYTE etc., earlier, along with the Atari ST, though never got to use either.
(Still remember an Atari ST ad, probably a big deal at the time: "A megabyte of RAM for $x99!"). And where are we now in terms of RAM ...
[1] And had read about Carl Sassenrath, wow. Did all that stuff for the Amiga, and then goes and creates REBOL, maybe single-handedly (?), with the language, and the libs, and the GUI.
Good stuff.
Edit: typo.
Except it would almost certainly be proprietary and would take away your freedoms. I don't understand why everyone is suddenly giddy about the "new Microsoft". They haven't embraced free software, they've just released a few bits as free software while still keeping the conglomeration proprietary.
Azure. It will be like Amazon Linux, which is based on Fedora if I'm correct. I wonder what Microsoft will use, and if they choose Debian, if the Debian project will profit from it.
Furthermore, they will want better support for Ubuntu on Windows. If people don't need an Ubuntu machine to run Linux, without having to mess with Virtualbox, that will keep more people on Windows, well I guess that's what they hope.
They seem to move into a new world, where they are no longer the one superpower. SQL Server can run on Linux, just another example.
I have to keep an eye on a whole bunch of things at work so I only run a Windows box for one or two pieces of software. This box takes up less than 25% of my screen real estate.
Every window on the Linux box is automatically placed and I usually have to put in literally no effort. On the Windows box every window is such a pain to manage. Some applications make an effort to remember where their windows were placed, but this is usually broken in some way and still does not allow me quickly switch layouts like on Linux.
I love Linux and while I also have some nagging negative thoughts about Microsoft getting so cosy with the Linux world, I also can't pretend I wouldn't be super excited to run a Microsoft Linux on my dev machine and then push to a Microsoft Linux on my Azure instances.
Azure, like all other cloud providers, fully supports and functions with all mainstream Linux distros (indeed, the Linux kernel includes a large number of kernel contributions from Microsoft, particularly around hypervisor support). When you conjecture about some synergy between your dev machine and Azure cloud machines, it makes me wonder if you are just extrapolating based on some assumptions of the platform, or if you have a real working knowledge of it.
All of this conjecture just seems bizarre. It's good that Microsoft is getting more knowledgeable about other platforms, but there is nothing at all exciting about some conceptual Microsoft Linux.
As for dev machine/cloud machine conjecture, I just mean I would like to have a consistent experience between what I develop on and what I deploy too. It isn't a huge deal, just nice to have more than anything.
I develop on Windows, mostly. I deploy to Ubuntu, Redhat, Amazon's AMI, among others. I literally will repeat that you sound like you know nothing about Linux, cloud providers, or Microsoft's play in this market.
Seeing as MS is basically a branch of the NSA I'm not excited about that at all. I might be slightly excited if MS went open source and allowed people to include their tools in other distros, but the NSA would never allow that.
Something along the lines of "We officially support development with ASP.NET, .NET Core, Mono, etc. on Microsoft Linux for deployment to Azure Microsoft Linux instances".
What you're describing will never happen. MS wants to keep .NET/etc development easiest on Windows. They have no incentive or plans to deliver the same support for developers on Linux as they do for devs on Windows.
Any true "linux distro" released by MS will have gimped out tools. If they ship windows with a Linux ABI ("Ubuntu + Windows") so you have MS support, then it's never going to be proper Linux.
I don't see how anything MS is doing really helps Linux. If they were really pro-Linux they'd make a commitment to supporting it 100% by making 100% of their development software compatible with Linux.
Just more extending for the purpose of extinguishing. I have no reason to believe otherwise because MS has not inspired confidence in me. All the tools they've open sourced or released on Linux are half assed. A billion dollar company like MS can make good software for Linux that isn't gimped, they just choose not to do so because they prefer that Windows remains a more viable platform for people who use their tools.
However there are businesses out there who like to work in a single vendor system as much as they can. I have no doubt that Microsoft will come out with their own Linux distro in the next 2-3 years. They don't need too, but they also didn't need to do lots of the things they have done recently.
I feel like I've accidentally stumbled upon some internal discussion group of Microsoft's where very low level employees who completely misunderstand the market give their Microsoft-centric view of the world.
I am assuming you believe Microsoft will not be venturing into the world of building their own Linux distribution?
You're assuming that if they do release a MS Linux it would be geared towards the desktop which is ludicrous. I would love if they actually replaced the Windows code base for a Unix-derived one (it doesn't have to be Linux) but that is just not going to happen. It would only make it easier for Big Software to be ported to Linux and the Mac, with Windows and Microsoft losing its competitive advantage. Not going to happen.
Really? When did MS start fixing bugs for their paying customers in a deterministic timescale?
The point about upgrades may be good, but MS has started breaking things on update recently too.
You open up a crit sit that is tagged as a product defect and they will turn fixes around quickly.
If you are strategic to them, they'll fly in people.
Red Hat subscriptions require that you license by socket, effectively doubling the cost for licensing on a per server basis.
If you were using Microsoft Linux, you could potentially ditch VMWare and RHEL costs.
The work has been started - it's just a matter of time.
It seems to be the way they are going. Then every MS product will become a Universal App and Microsoft can deliver their software anywhere the UWP/UAP is available.
> the US makes a massive amount of cash selling weapons
DOES NOT COMPUTE
Or at least that the U.S. is an arms dealer.
https://en.wikipedia.org/wiki/Arms_trafficking#Notable_arms_...