Live data from Hacker News

Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

github.com

71–80 of 108 posts

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#71
post #58

Earlier quoted context omitted.

Early returns here will require duplicated free() calls, which makes it hard to prevent leaks. This coding style is standard practice for Win32 API development.

The more typical coding style for raw Win32 is to have a block of CloseHandle/Free/... block at the end of the function, and goto it for early exit. Usually with some helper macros to easily write "if it failed, goto cleanup" one-liners.

You can't have a single cleanup (because subsequent calls use memory/handles from prior - otherwise you'd have a function wrapper), so it ends up getting really nasty - at which point, the logic feels clearer (and easier to match alloc and free) if you have indented blocks. The change I'd make to the code would be to have a shorter indent block.

  HRESULT hr;

  hr = DoFoo();

  if (!SUCCESS(hr))
  {
    goto exit;
  }

  hr = DoBar();

  if (!(SUCCESS(hr))
  {
    goto cleanup_foo;     
  }

  hr = DoBar();

  if (!(SUCCESS(hr))
  {
    goto cleanup_bar;     
  }

  hr = DoBaz();

  if (SUCCESS(hr))
  {
    CleanupBaz();
  }

  cleanup_bar:
    CleaupBar();

  cleanup_foo:
    CleanupFoo();

  exit:

  return hr;

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#72
Am I the only one surprised that a project which is still under active development still uses sourceforge (https://sourceforge.net/projects/vcxsrv/)? SF should be dead after it began hijacking projects and added adware to installers?

https://arstechnica.com/information-technology/2015/05/sourc...

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#75

Am I the only one surprised that a project which is still under active development still uses sourceforge ( https://sourceforge.net/projects/vcxsrv/ )? SF should be dead after it began hijacking projects and added adware to installers? https://arstechnica.com/information-technology/2015/05/sourc...

You're a year out of date. New ownership.

https://www.reddit.com/r/sysadmin/comments/4n3e1s/the_state_...

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#76
post #60
post #57

Earlier quoted context omitted.

Given that the percentage of Steam users running Linux is declining, I'm not as optimistic as you. http://phoronix.com/scan.php?page=news_item&px=Hwsurvey-Febr...

A 0.05% drop is well within the expected margin of error with a perfect statistical methodology and large sample size. The steam survey is opt in, it's a good rough guide but you can't read anything into month-month changes. Even if we generously agree that it's correct, how much has steam grown? A 0.05% drop could still be more total users than the previous month.

The usage share was 0.97% at the end of 2015, 0.87% at the end of 2016 and 0.75% in the latest survey. This might still translate to a growing absolute number of Linux users, but it would be nice to see the momentum start going in the opposite direction when it comes to those percentages.

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#77

The worst of both worlds! The Windows kernel and the Linux UI! I kid; I kid. Looks fun.

Right... You can make Windows 10 look like a unix workstation from 1995.

KDE Plasma 5 is actually reasonably modern. http://i.imgur.com/XcnYxy0.png

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#78
post #35

Earlier quoted context omitted.

Linux gaming has been improving rapidly lately, in another year I doubt windows will be necessary.

Not directly related to this thread but I want to have a little moan about the Steam client, so here goes: When I open Steam it opens in the Store view in the main window, and the promotions pop-up also appears with sales and promo info. Great, except that 90% of the time the main store page and the pop-up are pushing Windows only games. I game on an iMac and occasionally on a Linux laptop. I have never bought a Wind…

Its ridiculous that they don't just pick this up automatically but you can specify what you're interested in from your profile preferences on the Steam store. My recommended games became so much more useful once I turned off early access games and filtered out open world survival and zombie games.

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#79
post #20

I bet RMS will now ask people to start calling it GNU/Windows :)

I think GNU should just be rebranded and called Linux. Linux as an umbrella OS brand already includes a lot of software outside of GNU and GNU isn't a very recognized name - I've only heard people talk about it in the context of "that mad guy Stallman who dresses like the pope". The fight is already lost and has been lost for the last 20 years, just call yourselves Linux already, or maybe "Linux System Core". Then we'll be able to run Linux on BSD and the world will finally end.

Re: Show HN: Boot Windows 10 Directly into Linux Desktop of Choice

#80
post #77

Earlier quoted context omitted.

Right... You can make Windows 10 look like a unix workstation from 1995.

KDE Plasma 5 is actually reasonably modern. http://i.imgur.com/XcnYxy0.png

elementaryOS ever more so. Although, it is a bit of a clone of MacOSX which may be a turn off for some but still is quite user friendly.

I installed it for my family members ( not at all knowledgeable people in terms of computers etc ) and they all have gotten along with it very well.

Post reply on HN