Slashdot Mirror


Microsoft is Bringing Visual Studio To Mac (techcrunch.com)

Microsoft will finally bring Visual Studio, a "true mobile-first, cloud-first development tool for .NET and C#," to Mac later this month, the company has said. From a report on TechCrunch:The IDE is very similar to the one found on Windows. In fact, that is presumably the point. By making it easy for OS X users to switch back and forth between platforms, Microsoft is able to ensure coders can quickly become desktop agnostic or, barring that, give Windows a try again. From the release: "At its heart, Visual Studio for Mac is a macOS counterpart of the Windows version of Visual Studio. If you enjoy the Visual Studio development experience, but need or want to use macOS, you should feel right at home. Its UX is inspired by Visual Studio, yet designed to look and feel like a native citizen of macOS. And like Visual Studio for Windows, it's complemented by Visual Studio Code for times when you don't need a full IDE, but want a lightweight yet rich standalone source editor.

65 of 133 comments (clear)

  1. Xcode is superior, go away by Anonymous Coward · · Score: 1, Interesting

    I cannot stand Visual Studio's project/solution hierarchy. Xcode allows for an additional tier; target/project/workspace. 8 files build in parallel, not projects. Build times in Xcode are so much faster for the same C++ library.

    1. Re:Xcode is superior, go away by hsmith · · Score: 2, Interesting

      XCode is just buggy as all get out though. It has progressively gotten less stable. The IDE is fantastic, but it has so many issues. Doing Swift 2.3 it is pointing out Swift 3.0 "errors." Functionality just doesn't work (downloading provisioning profiles via Settings). They haven't been maintaining it quality wise as it once was.

    2. Re:Xcode is superior, go away by OzPeter · · Score: 1

      They haven't been maintaining it quality wise as it once was.

      I haven't seriously used XCode for a while but I don't think ever got to the same level of quality as VS. My biggest pet peeve was that refactoring in XCode sucked big hairy donkey's balls in comparison to VS (even without thing slick resharper). And refactoring is a major part of coding.

      --
      I am Slashdot. Are you Slashdot as well?
    3. Re:Xcode is superior, go away by hsmith · · Score: 2

      Sure thing buddy. Add to the list the lack of support for refactoring Swift code. Language has been out two years now and they still don't support BASIC functionality of an IDE.

    4. Re:Xcode is superior, go away by Anonymous Coward · · Score: 1, Funny

      It's been on life support since their abortive plan to build a Mac-like UI on top of the Vista interface back in the mid 2000s. Jobs was pissed that Microsoft didn't deliver on some of the functionality they needed to make so-called "Mac OS Y" work (and Andy Trevelyan threatened to quit over it, which he did shortly afterwards anyway.)

      The plan was Windows + Mac OS X APIs (see the DLLs that come with iTunes and Safari for Windows) for their desktops, eventually with the Mac business and responsibility for that shit being sold to someone like Lenovo or Dell, and Linux for the next generation of iDevices. Right now they're still waiting for the right time to press the button, but believe me, I've seen the Windows 10 version of what they've been working on, and it's beautiful. You wouldn't know Windows 10 was running underneath.

    5. Re:Xcode is superior, go away by squiggleslash · · Score: 1

      Probably true. "They haven't been maintaining it quality wise as it once was." completely contradicts the notion that it's buggy. It certainly used to be a buggy, unstable, piece of crap.

      --
      You are not alone. This is not normal. None of this is normal.
    6. Re:Xcode is superior, go away by DickBreath · · Score: 4, Funny

      Brag about Xcode all you want. But can Xcode do this . . .

      Clippy: It looks like you're trying to get useful work done.
      Would you like me to help you install Windows 10?

      If you would like to have Windows 10 installed, then please do any of the following actions:
      1. Click Yes
      2. Click No
      3. Click Cancel
      4. Click the red button in the window's title bar
      5. Abruptly disconnect the computer's electrical power to have Windows 10 conveniently installed on the next reboot.

      --

      I'll see your senator, and I'll raise you two judges.
    7. Re:Xcode is superior, go away by Lumpy · · Score: 1

      Ignore him, it's the new trend of trolls to try and use big words why saying absolutely nothing.

      --
      Do not look at laser with remaining good eye.
    8. Re:Xcode is superior, go away by hsmith · · Score: 1

      Like idiots claiming XCode has no issues? Agree.

    9. Re:Xcode is superior, go away by Anonymous Coward · · Score: 1

      Mac OS W (not Y LOL) yeah, that takes me back. I was working on a bunch of UI fixes when Jobs finally pulled the plug, though I'm told it's still being maintained. I had to finish my fixes before they let me work on something else. After that it was pretty much all iDevices, I remember most of the OS X team being moved over, it took us years to get an update out after the one after the release that was supposed to be Mac OS W.

      If you saw it running on Windows 10, they must still be working on it, but I really don't know why.

    10. Re:Xcode is superior, go away by mfearby · · Score: 1

      Xcode for iOS? Are you smoking crack or something? Who wants to develop stuff using an iPhone or an iPad?!

  2. Fantastic by hsmith · · Score: 3, Interesting

    Been doing .NET forever and with .NET Core running on macOS now, this is welcome news. Visual Studio Code is nice, but it isn't the solution full Visual Studio is. With full blown Visual Studio, .NET Core, Docker, I won't even need to run VMs anymore on my macbook to get work done.

  3. Can you cross-compile with it? by RogueWarrior65 · · Score: 4, Interesting

    I'd be happy if software companies who made the mistake of using platform-specific APIs and languages could cross-compile. Are you listening, Intuit?

    1. Re:Can you cross-compile with it? by bondsbw · · Score: 1

      That's the whole point of Xamarin.

      --
      All my liberal friends think I'm a conservative, all my conservative friends think I'm a liberal.
    2. Re:Can you cross-compile with it? by Anonymous Coward · · Score: 1

      Xamarin started as C# for iOS and Android. None of those have anything in common, nor Microsoft APIs. Now you have xamarin forms, but they recommend it only if you are doing really generic UI. Please step up the FUD, you're coming low for Slashdot's level.

  4. Almost bought a Windows laptop... by Anonymous Coward · · Score: 2, Informative

    I've been debating the past few weeks on whether or not to buy a new Windows laptop just so I could run Visual Studio....this solves that problem, thanks Microsoft!

    1. Re:Almost bought a Windows laptop... by xxxJonBoyxxx · · Score: 2

      >> whether or not to buy a new Windows laptop just so I could run Visual Studio

      Yes, you still should. (And get one with a nice SSD, but you probably already knew that.) Unless MS is also moving over support for SQL Server Express, debuggers, the full AD infrastructure, etc. they still have those of us who write for large/corporate environments by the short and curlies.

    2. Re:Almost bought a Windows laptop... by Anonymous Coward · · Score: 1

      SQL Server can run in docker containers now, on linux even.

    3. Re:Almost bought a Windows laptop... by phantomfive · · Score: 1

      SQL Server Express, debuggers, the full AD infrastructure, etc

      Better choice to avoid using all those altogether.

      --
      "First they came for the slanderers and i said nothing."
    4. Re:Almost bought a Windows laptop... by PCM2 · · Score: 1

      Better choice to avoid using all those altogether.

      Active Directory is a way of life for many, many organizations. If that includes yours, good luck "avoiding it."

      --
      Breakfast served all day!
    5. Re:Almost bought a Windows laptop... by phantomfive · · Score: 1

      many organizations. If that includes yours, good luck "avoiding it."

      I do :)

      --
      "First they came for the slanderers and i said nothing."
  5. Disclaimer certainty by DaveM753 · · Score: 4, Insightful

    Probable disclaimer from Microsoft:

    Users of Microsoft Visual Studio for Mac OSX may find certain features of Visual Studio do not function as expected under the Mac OSX platform. For those users, we recommend using Visual Studio on a Microsoft Windows-based platform, to improve reliability.

    Translation:

    You didn't really expect us to write quality software for a competing OS that didn't eventually drive you over to Windows, did you? Silly user...

    1. Re:Disclaimer certainty by dontbemad · · Score: 3, Insightful

      Sounds like Microsoft would be taking a play right out of Apple's book.

    2. Re:Disclaimer certainty by slapout · · Score: 2

      I don't think Microsoft cares as much about Windows. I think they want you to buy their cloud services.

      --
      Coder's Stone: The programming language quick ref for iPad
    3. Re:Disclaimer certainty by mlw4428 · · Score: 1

      What a poor translation. Certain features may not work as expected: OSX is a completely different architecture and may things, like WCF and WPF may not function as well as they do on Windows. ADO may not be fully fleshed out. Microsoft makes fantastic developer tools - I don't think any serious developer would dispute that. If they target Visual Studio for OSX or Linux or DrDOS, you can bet your bottom dollar that Microsoft will work hard to make a REALLY GOOD IDE. I love the .NET Framework. I love Mono. I'm hoping that Microsoft moves away from a desktop OS and more towards SAAS for office functionality with fantastic developmental tools. No one has come close to Visual Studio. Eclipse, VIM, EMacs, Sublime, etc are all complete and utter crap next to Visual Studio (from the perspective of real, complex software development with multiple projects, reference management, etc).

    4. Re:Disclaimer certainty by MachineShedFred · · Score: 1

      Oh, Microsoft has been doing that far longer than Apple.

      See: the old Mac version of Excel where they just deleted VBA scripting, and figured nobody would notice. Then they brought it back all of a sudden in the next version and proclaimed it to be a huge feature.

      I'm still waiting for an Outlook on OS X that isn't just a bad OWA front end. And they are capable of making a real Outlook on the Mac too - because they had one 15 years ago on Mac OS 9, which was killed by the Mac Apps team in a bad case of Not-Invented-Here fever because it was written by the Exchange team. Which is why it actually worked properly and supported all the features it should.

      --
      Slashdot still doesnâ(TM)t support Unicode after it was added to the HTML standard in 1997.
    5. Re:Disclaimer certainty by stooo · · Score: 1

      >> Users of Microsoft Visual Studio for Mac OSX may find certain features of Visual Studio do not function as expected

      Yeah, as usual.
      Users of Microsoft Visual Studio for Windows also find certain features of Visual Studio do not function as expected.

      --
      aaaaaaa
    6. Re:Disclaimer certainty by Radical+Moderate · · Score: 1

      This. I work in an enterprise that uses a lot of Microsoft products, but users insist on buying Macs. Then kvetch because things never work the way they're supposed to. I wish MS would just abandon the Mac, it would save everyone a lot of disappointment and aggravation.

      --
      Never let a lack of data get in the way of a good rant.
    7. Re:Disclaimer certainty by Schnapple · · Score: 1

      You didn't really expect us to write quality software for a competing OS that didn't eventually drive you over to Windows, did you? Silly user...

      I think it's probably more that anything which isn't .NET or in any way cross platform already isn't coming along for the ride. Don't expect to compile anything that needs Win32 or COM or DirectX (which is also COM), etc. You would assume the decently savvy developer would already know or guess this but you can't be too sure, plus there's bound to be some executive somewhere that's thinking "alright, now we'll be able to get our Windows app on the Mac in no time!" not understanding anything about the underlying technology stack,

      Also I would imagine what gets released this week is essentially going to be a free preview that's unfinished so naturally some stuff just isn't going to work right.

    8. Re:Disclaimer certainty by blindseer · · Score: 1

      I wish MS would just abandon the Mac, it would save everyone a lot of disappointment and aggravation.

      You don't think that they tried? I remember some past attempts Microsoft had made in killing off their Mac products and it nearly ended them. One of the big selling points in many Microsoft products is that they work just as well (or rather just as poorly) on Windows and Mac. If they killed their Mac products do you believe all the Mac users would just switch to running Windows? This would be especially true now that most every Office file format has been reverse engineered well enough that people make competing products that can open and save those files with little issue. They might have to use an older file format but that has almost always been the case for people since not everyone upgrades their software at the same time, and old files need to be accessed in the future.

      There was also that little matter of Microsoft being investigated for anti-competitive practices. Governments frown on such things. Also, governments are big customers to Microsoft. If they kill off their Mac products then that would bring government down on them for monopolistic practices again, cause governments to look at Mac compatible alternative, and quite likely both.

      If we are going to make wishes then I have some of my own. I wish Microsoft would split into two. One company for the OS, and another for the software. This might stop the favoritism for Windows and force them to make office products and such that are equals for every OS. Another alternative wish is for Microsoft to merge with a few major hardware makers and sell their OS linked to the hardware like Apple does. As someone that has to support both Mac and Windows I will say that I see far more driver and hardware oddities on Windows than Mac and it gets annoying. There are a lot of reasons why none of this is likely.

      While we are wishing then why not consider wishing for MS to abandon Windows? I mean that is probably just as likely as MS abandoning Mac. It would also give you what you want, a single operating system for you to deal with. Think about it, who does the kvetching more? Is it just one group or the other or do both complain about equally? I've worked in Mac heavy and Windows heavy environments before and the complaints generally came from those that had the room to complain. People figured out when the squeaky wheels got greased and when those wheels were more likely to get replaced.

      I will say that I have no idea who you are, where you work, what kind of work you do, and so on. I just know what things were like for me and from the little you said I have my theories on what might be happening. I also know that there is more than one way to grant your wish, and you may want to be careful what you wish for because you just might get it.

      --
      I am armed because I am free. I am free because I am armed.
    9. Re:Disclaimer certainty by david_thornley · · Score: 1

      Some years ago, I had a friend who worked for Microsoft on Mac software. He said that, after every time top management publicly blasted the Mac, they'd send someone over to his area to say "Don't worry, guys, that's just PR. You make lots of money for us, and we like money."

      --
      "When you have eliminated the unacceptable, whatever is left, however improbable, must be the truthiness" - Holmes
  6. Qt by saider · · Score: 3, Interesting

    I've been using Qt for this purpose for years.

    --


    Remember, You are unique...just like everyone else.
    1. Re:Qt by hublan · · Score: 1

      I've been using Qt for this purpose for years.

      If only the LLDB bridge in QtCreator wouldn't freeze every time you so much as sneezed, then I'd be very happy.

      It's like it's an unattainable goal to make a decent visual debugger that is not Visual Studio.

      --
      My spoon is too big.
    2. Re:Qt by phantomfive · · Score: 1

      Question......how is QT backwards compatibility? I've been hearing complaints that things keep breaking.

      --
      "First they came for the slanderers and i said nothing."
  7. What's Good About Visual Studio? by Anonymous Coward · · Score: 2, Insightful

    I usual Visual Studio from version 6 to 2010 for MFC development and found it got worse and worse with each new version. The interface turned into a train wreck and reduced your productivity and made it unpleasant to work with. The install size became absurd with it installing a lot of crap you didn't want (even if you unchecked all components the install size was still 8GB). Despite the insane bloat it lacked basic functionality (why wasn't something like Visual Leak Detector included as standard?). Furthermore, Microsofted treated C++ as a second class citizen while they focused on crap like .NET and HTML+Javascript.

    In the end I got sick of it all and now use Qt in Qt Creator. Microsoft's development strategy appears to be "continue development until the product is unusable". They've done this with Windows, Office and Visual Studio. I'm therefore left wondering why any Mac user would want Visual Studio? Surely people have switched to a Mac because they're sick of Microsoft's ever-worsening software.

    1. Re:What's Good About Visual Studio? by shutdown+-p+now · · Score: 2

      Since this is basically rebranded Xamarin Studio, it doesn't really have much to do with VS. Or C++, for that matter.

    2. Re:What's Good About Visual Studio? by Yunzil · · Score: 1

      Microsoft's development strategy appears to be "continue development until the product is unusable".

      So, like every other software application in the world then?

  8. Microsoft pulled the announcement by trawg · · Score: 4, Interesting

    The original announcement that was the source of the article in the OP has since been pulled; I've seen mention that it was just posted too early. Presumably it will be back at the regularly scheduled time or perhaps earlier when they realise that the genie is out of the bottle.

  9. How can it? VS is 32 bit by Anonymous Coward · · Score: 1

    If it can do 64 bit IDE then why not PCs?

    1. Re: How can it? VS is 32 bit by DaHat · · Score: 1

      Who said VS can't be built by MS to be 64 bit on Windows? For the time being they have simply made the choice not to.

      It will be interesting to see how much code charging there is between Windows and Mac versions.

  10. The debugger was very good. by soft_guy · · Score: 1

    I haven't used Visual studio for any real work since 2008, but as I recall their debugger was fantastic for debugging C++. The other aspects of it were kinda "meh", but the debugger was freaking amazing. (And I'm a Mac/Linux guy who uses either Xcode or Makefiles most of the time.)

    --
    Avoid Missing Ball for High Score
    1. Re:The debugger was very good. by ripvlan · · Score: 3, Interesting

      Yes it is fantastic. I grew up on dbx and xdbx (at least AIX version added wonderful stuff). WinDbg is a frustrating mess of amazing-power coupled to arcane commands. VS lays over this what xdbx did for dbx.

      Best VS debugger feature was IntelliTrace (C# / .NET "only" feature). Still need to have the Enterprise or Ultimate license - but if you have it - wow. One can walk code backwards from a break-point looking to answer the inevitable question "how did execution get to this line?"

      Although none of the MS tools provides "where" like a dbx/core dump provides (although WinDbg can come close).

      For all of the hate that some spew at MS - the one thing they have always been good at is ease of access for complex technology. SQL Server - easy to use. VS - easy to code. Windows 8 - never mind.

    2. Re:The debugger was very good. by Xest · · Score: 1

      Visual Studio is the best of breed IDE slowly being made worse in an attempt to capture "Web 2.0" marketshare from PHP, node.js developers and the like whilst dragging the whole IDE down to their level and failing their core market where all the enterprise licensing (i.e. the bulk of their income) comes from - the business world that uses languages like C, C# and C++.

      If you've not used it since 2008, you've not really missed much, it peaked at 2010 and has become much worse since as features have been removed and the IDE has become less usable and less stable. They're slowly getting it back up with 2015, but christ 2012 was an abomination that should never have been released.

      Amusingly it's not the first time this happened, it's almost an exact repeat of a decade ago - Visual Studio .NET 2002 was horrendous, so they release 2003 to make it slightly less horrendous, 2015 was a bit better, but 2008 was the first time it really became solid, stable, and functional again then 2010 topped it all off. We're seeing the exact same pattern now - 2012 like 2002 shouldn't have been released, 2013 like 2003 is an attempt to fix the fundamentally broken 2012/2002, and 2015 like 2005 is a slight improvement where the features and functionality are returning but the stability still leaves a lot to be desired. Only another year and a half then until 2018 maybe that will hopefully be like 2008 was - stable, functional, then by 2020 we can have an IDE with nothing much to complain about again, maybe. Or maybe they'll just make the menus shout at us in capital letters and the icons lose all discernible features and meaning again for absolutely no good reason at all, who knows.

  11. Mobile First Cloud First by speedplane · · Score: 1

    a true mobile-first, cloud-first development tool

    There can be only one!

    --
    Fast Federal Court and I.T.C. updates
  12. to bad there no real workstations on the mac by Joe_Dragon · · Score: 1

    to bad there no real workstations on the mac.

    the mac pro is 3 years old and was cut down from dual cpu to 1 cpu. If you want real power HP, DELL, Supermicro, and others have it for you.

    1. Re:to bad there no real workstations on the mac by Joe_Dragon · · Score: 1

      Dual cpu?

      The trash can does not have that or build in storage over 1TB

    2. Re:to bad there no real workstations on the mac by blindseer · · Score: 1

      When Apple switched from offering 2 CPUs to only 1 the number of cores available as BTO options did not change, that remained as up to 12 cores. What you are arguing over sounds like a no true Scotsman fallacy.

      If you are arguing that anything with less than 16 cores is a "toy" then that is a different argument. I fail to see the difference between having 2 CPUs with 6 cores each and having a single CPU with 12 cores. I'm sure that there are differences in many ways, just none that matter to most buyers.

      --
      I am armed because I am free. I am free because I am armed.
    3. Re:to bad there no real workstations on the mac by Joe_Dragon · · Score: 1

      Cutting from 2 to 1 also cut the number of PCI-E channels and ram channels.

      With apple they have hit the pci-e wall so unless they cut down the pci-e going to the video cards or add an 2th cpu they can't do TB 3.0 or 2 storage cards.

    4. Re:to bad there no real workstations on the mac by blindseer · · Score: 1

      In other words Apple created a computer that could be called balanced, optimal, or efficient. The Mac Pro does not have TB3, 2 storage cards, and so on. If they add such things in a future design, and fail to also add a 2nd CPU then you may have a point.

      --
      I am armed because I am free. I am free because I am armed.
  13. I'd use it by paulxnuke · · Score: 2

    My all-time favorite IDE was CodeWarrior on classic Mac (the Windows version was the best on that platform at the time.) I tried Visual Studio 6 and wasn't impressed.

    Then I had to use VS every day and got used to it. Most of its problems were/are horrific UI design (hidden/obfuscated settings!) and twitchiness (hangs; recreating projects from scratch when they refuse to build.) Overall usability is now quite good, and automation (intellisense, etc) is first rate.

    I haven't tried XCode recently, last time it was still a mix of all the things I didn't like about the early VS's. It's free and I could get used to it if I had to work on Mac's: Apple got all the money they will ever get from me between 1986 and 2008 or so. (I still have one MacBook left, mostly running Windows, from the days when I still thought OS X would eventually suck less.)

    I'd be delighted to have a modern VS on Macs for odd projects that need a text editor and project manager. I've experimented with Code for fiction writing, not bad (lots of customization.)

  14. Re:Who cares? When will it come to Linux? by DickBreath · · Score: 1

    That was also my first question.

    Of course, I'm not sure that I would care, even if they announced it was available today. There would be some catch. Maybe the EULA allows Microsoft to sneak in while you are sleeping and harvest your organs. (Assuming your internet service provider hasn't already taken them first.)

    --

    I'll see your senator, and I'll raise you two judges.
  15. Re:Visual Studio Suckage by SScorpio · · Score: 2

    Visual Studio 15, next version not VS2015 which is actually version 14 go Microsoft numbering, is supposed to fix this.

    It's broken out so you only install what you need to you'll have to much smaller footprint and patching will be faster. If you do a full install of everything it will probably still be slow. But you'll be able to choose a setup like I want to do just Windows apps in C# and it only installs the bare minimum to make that work.

  16. It's a Monodevelop/Xamarin Ripp with MS Logo. by Qbertino · · Score: 1

    No point in getting all excited about it.

    --
    We suffer more in our imagination than in reality. - Seneca
  17. Different product by kosmosik · · Score: 2

    According to Ars Technica it is different product

    http://arstechnica.com/informa...

    Visual Studio for Mac isn't, in fact, Visual Studio at all. Instead, it's the latest iteration of Xamarin Studio, the cross-platform C# development environment that Microsoft inherited when it bought Xamarin, developers of cross-platform .NET-based mobile development tools, last year.

    These are two very different products, and the real Windows Visual Studio is the more capable product.

  18. Qt by AncalagonTotof · · Score: 1

    I'm already using Qt and am happy to stay away from the painful VS.
    - under Windows, Qt uses gcc/MinGW (or VS compiler if you wish)
    - under Mac OS X, Qt uses XCode compiler
    - under Linux, Qt uses native and easily installed gcc

    At the time of the version 3, I also had the opportunity to work with the embedded version (user interface in trains, running on PPC computers).

    So there is Qt, and there are many other solutions described in the other comments. M$, what are you doing here, then ?

    By the way, since Skype is made using Qt : M$, please, explain why there are so many differences between versions, especially with the Linux one ? Need some lessons in portability ?

    --
    Totof
  19. Re:VS used to be good, but I'm out of date by blackpaw · · Score: 1

    VC 2015 dropped the all caps menus, went back to a sane UI. *Much* better than 2013

  20. Re: How can it? VS is 32 bit by OhPlz · · Score: 1

    MS said they're not going to, I posted the announcement here some months back. Devs are still whining about it in the initial request on one of their feedback sites.

  21. Re:VS used to be good, but I'm out of date by LoneBoco · · Score: 1

    You've been able to turn those off for a long time now, and I believe Visual Studio 2015 defaults to title case styling.

  22. Telemetry fully enabled by bigbang137 · · Score: 1

    It will no doubt come with telemetry fully enabled by default, perhaps with direct parallel feeds to FBI, NSA, and the CIA.

    1. Re:Telemetry fully enabled by bigbang137 · · Score: 1

      You forgot the addition of telemetry to binaries.

  23. Yes! I love macOS but Xcode is horrible by mfearby · · Score: 2

    I would gladly switch to Visual Studio on Mac since Xcode feels like a straight jacket. I want file-based tabs, not workspace-tabs and Visual Studio gives me proper tabs. If I could develop macOS & iOS apps using Visual Studio, then I'll never need Xcode again :-)

  24. Re:Real /.'ers disagree (want more?) by DMFNR · · Score: 1

    The hourglass is meaningless when Windows has marked the program as non-responsive. If a program is stuck in an infinite loop it will show an hourglass too, how is a user going to know the difference? When I see a program labeled as "Not Responding" I give it a few seconds to sort itself out and then I force kill it. This has been a solved problem for decades now, it's terrible user interface design, and it points to piss poor coding internally.

    Do better then talk? Here is the code to deduplicate a TStringList while updating a progress bar and preventing your app from being labeled as non-responsive:

        OrigStringList.LoadFromFile('names.txt');
        DedupStringList.Sorted := True;
        DedupStringList.Duplicates := dupIgnore;
        for i := 0 to OrigStringList.Count - 1 do
        begin
                DedupStringList.Add(OrigStringList[i]);
                if i mod 1000 = 0 then
                begin
                      ProgressBar1.StepIt;
                      Application.ProcessMessages;
                end;
        end;

    Brain dead simple, tested on a Pentium Dual Core T4500 laptop with 2GB of memory, sample data set was 250 unique first and last names randomly distributed over 6,000,000 entries creating an 84 MB text file. In a simple console application, the file was loaded to OrigStringList and deduplicated by transferring the to another TStringList with TStringList.Duplicates set to dupIgnore using TStringList.AddStrings(). This took 43 seconds and resulted in DedupStringList containing the original 250 unique strings. For the next test the same dataset was used in a graphical application using the code above to deduplicate the list. It took 46 seconds to process, updated the progress bar, and the application remained responsive allowing the window to be moved, minimized and maximized, as was not labelled "Not Responding" by the Task Manager. That can be further spread up by increasing the number of iterations between calls to Application.ProcessMessages and how often the progress bar is updated, that can be adjusted to the number of entries be processed, the type of progress bar being updated, etc etc. Using this method you'll want to either disable the form, or better yet, disable the individual controls that you don't want users clicking during the processing. You'll definitely want to disable the De-Deplicate button to prevent inpatient users from clicking it multiple times and stuffing the message queue.

    That's the Amateur Hour was of doing this, all simple intrinsic methods and minimal work on your part and still performant enough. Especially as you advertise your program as being "multi-threaded" it is just embarrassing that your UI locks during processing. That leads me to the better method, doing your processing in a background thread and updating your UI with TThread.Synchronize, but the above method is good enough for a simple list processing app. Your app ran on my desktop, an Intel i7 4790 with 16GB memory and was still not responding after MINUTES of processing. This is absolutely ridiculously under-performant when we're talking about megabytes of data, even with fancy Delphi string processing. You constantly harp on the speed of in-browser ad blocking, so ask yourself this: if these extensions (which I believe are written in JavaScript!) can run through their blacklists on every page load in seconds, if they can install and update their lists in seconds, how come your app can't process a few million entries is less than five minutes using native code? The answer is very basic knowledge of data structures and algorithms on behalf of the developers.

  25. MS - NOW porting viruses! by ebvwfbw · · Score: 1

    Go ahead, install this stuff on your mac, what could happen?

    Next thing you know, a big skull and crossbones shows up on your screen telling you to call - rasomware fix.
    Since you're on a mac, you have just 1 day to pay up with bitcoin.

  26. Re:The FINAL "deathblow" VCL threadsafety by DMFNR · · Score: 1

    What if someone want's to minimize your program while it is processing? What if someone want's to move it to a different monitor while they do some other work? What if they want to close it? They can't, because you're not processing any redraw events or anything while you're working on your list! In this case it doesn't matter if Application.ProcessMessages drops events or not, it's a hack to keep your UI somewhat responsive to the window manager.

    As far as the VCL not being threadsafe, that is correct, however I don't think you understand what that means. All UI updates should be handled from the main thread, which is why you do the processing in a background thread and use TThread.Synchronize to update the UI.

    RTFM:
    http://docwiki.embarcadero.com/Libraries/Seattle/en/System.Classes.TThread.Synchronize

    Using a few cpu cycles to update your UI and process messages from the window manager isn't bad practice, it's good design. Accuracy over speed is just a silly argument, computers don't make mistakes, programmers do. The fact that you are throwing a tantrum over this tells me writing a "Host Files Engine" is most likely the biggest project you have ever worked on. I don't care if a few people on Slashdot use your program or that MalwareBytes says it is safe, I'm glad your decade of spamming, stalking, and trolling has paid off.

    If anyone is interested in using a large host file to block ads I recommend checking out StevenBlack's unified host file on GitHub. It's written in what APK calls a "slow interperted language", but somehow it's still faster than his shitty Delphi app!
    https://github.com/StevenBlack/hosts

  27. Re:The worst by slazzy · · Score: 2

    Affordable Apple hardware with quality Microsoft software?

    --
    Website Just Down For Me? Find out