News for hackers. Stuff that matters.
Re:Microsoft Surface Studio by mozumder on Wednesday October 26, 2016 @12:07PM (#12797612)
As an Apple (Mac Pro, MacBook Pro, PowerBook, PowerMac G5) user for 15 years, of photo processing & inDesign layout, I agree.

XCode & iOS development is going to keep me on Apple for now, though, but the Linux subsystem for Windows is really appealing. The BSD Unix environment is the whole reason I went with Apple in the first place. OS X is basically a Unix workstation & perfected anything the Linux desktop wanted to be.

Surprised MS went with nVidia 980s instead of 1080s, & Win 10 still a little clunky compared to OS X.

Re:Microsoft Surface Studio by TheRealDunkirk on Wednesday October 26, 2016 @01:25PM (#12798470)
> the Linux subsystem for Windows is really appealing

In theory. To anyone who feels that way, please try it out for yourself before making a leap. I thought it would let me develop Ruby on Rails under Windows like I could do on Linux or macOS. I discovered a whole bunch of unimplemented features that prevented this. After a couple of months of commenting on bug reports and watching and trying, I gave up. I'll check back later. YMMV.

Re:Microsoft Surface Studio by Eridrus on Wednesday October 26, 2016 @04:24PM (#12800121)
I'm a bit of a WSL fanboy, but this is the right advice if you're not a windows user normally.

When it works, it's great, but some things just don't work and you're stuck.

I've found the WSL devs to be fairly responsive, but not to everything.

However, I've found open source projects to be pretty responsive to bug reports of their projects running on WSL; it's far easier for them to support that than support a native windows build.

There are often workarounds for issues, but their coverage is certainly not where we would all like it to be yet.

Re:Microsoft Surface Studio by pritambaral on Thursday October 27, 2016 @01:39AM (#12803142)
For the good of the world, I hope no one except Windows has to deal with WSL specific code. When programs start to have to include WSL specific code, the 'extend' part of EEE has begun. While it would be foolish to believe a few programs here and there including support for WSL means doom, it is certainly not the right direction.
Re:Microsoft Surface Studio by Eridrus on Thursday October 27, 2016 @11:22AM (#12805855)
Usually it's issues with assumptions about the completeness of the platform; e.g. ZeroMQ assumes that if it's on a UNIX-ey platform it should use UNIX sockets rather than TCP and doesn't check to see if it's actually supported.

I'm not very familiar with OSX, but I'd be surprised if there weren't differences between it and mainline Linux that needed special care and I see this as similar.

Re:Microsoft Surface Studio by leonroy on Wednesday October 26, 2016 @07:09PM (#12801575)
To be honest Microsoft has a habit of layering on functionality on top of existing functionality in a piece meal approach so that you end up with a solution which is 75% compatible with the standards but not quite.

Despite being a software company (or because of it), I think innovating on the internals of Windows and its APIs and cleaning house on the software front will be the real challenge for them - making incredibly beautiful hardware might prove to be the easy part!

Re:Microsoft Surface Studio by 0xFFC on Wednesday October 26, 2016 @03:01PM (#12799397)
what you are saying may be true for now, but Microsoft is really trying to achieve 100% userspace compatibility, ( they set the line clear it is about user space programs ).

I couldn't cross compile simple toy kernel (xv6) in OS X (because I needed to have i386-elf-gcc, which need to compile whole binutils , which really cumbersome, and brew doesn't support it -as far as I looked into it ) but in BashOnWindows , it just works, it maybe a little slow (specially file system operations) but it works like charm. I actually tried to compile linux kernel and running it on qemu, It worked, but compilation (which is a lot of file system operation) was so slow it hadn't worth it.

Nadella (MS CEO) aimed perfectly, instead of introducing some limited amount of support for linux apps, his company tries to port whole ubuntu user space. After this project matures enough, rest assured, it will be equivalent of using linux workstation (which is dream of most developers).

Re:Microsoft Surface Studio by pritambaral on Thursday October 27, 2016 @01:41AM (#12803146)
> Microsoft is really trying to achieve 100% userspace compatibility

> After this project matures enough, rest assured, it will be equivalent of using linux workstation

Didn't Microsoft say WSL wouldn't support graphical apps? That's a big portion of userspace; and without that, it simply can't be a linux workstation

Re:Microsoft Surface Studio by ohstopitu on Wednesday October 26, 2016 @01:56PM (#12798808)
The biggest issue I have had with their subsystem is that of the file system (NTFS). The fact that I can't have long paths and can't soft link seem ridiculous.
Re:Microsoft Surface Studio by mwfunk on Wednesday October 26, 2016 @04:17PM (#12800062)
NTFS has a functional equivalent to soft links in the form of reparse points, although I don't know to what degree that feature is exposed in the UI, if at all. Last time I looked into it (admittedly, years ago) they could only be created via the command line. Not sure what you mean by "can't have long paths" though, NTFS allows you to programmatically create paths up to 32,767 code points long:

https://msdn.microsoft.com/en-us/library/aa365247.aspx

Re:Microsoft Surface Studio by ohstopitu on Wednesday October 26, 2016 @04:41PM (#12800295)
Windows seems to have a certain hard limit on file path characters (a max of 160) which they seem to have recently removed [0] - So while my point is technically moot it's not enabled by default.

As for soft links, a lot of linux tools create soft links (ln -s from to) and generally that fails on NTFS (I tried installing a bunch of npm modules and all had this specific issue)[1].

[0] - https://mspoweruser.com/ntfs-260-character-windows-10/

[1] - https://stackoverflow.com/questions/8232778/nodejs-npm-insta...

Re:Microsoft Surface Studio by int_19h on Wednesday October 26, 2016 @05:01PM (#12800511)
It's a max of 260, and it's a Win32 subsystem limitation, not the limitation of NT OS or NTFS file system - and even in Win32 there are escape hatches for it, it's just that you need to know of them and use them explicitly to get such support.

With respect to symlinks - NTFS supports them, but there are subtle semantic differences with POSIX. WSL does actually support symlinks (i.e. you can do ln -s), it's various other behavior around them that breaks, like trying to untar a file that contains symlinks.

The team said that they're working on a custom implementation of symlinks that would provide proper behavior (but wouldn't be seen as a symlink from Win32).

Re:Microsoft Surface Studio by toyg on Wednesday October 26, 2016 @05:12PM (#12800609)
I think the problem here is that Linux NTFS drivers are all a pile of reverse-engineered hacks, so obscure features are overlooked or not fully implemented.

Now, Microsoft should be in a position to put something better into their WSL, but that might entail the risk that someone else will hack that implementation and provide good drivers for everyone, something they clearly don't want (or they would have provided open specs for NTFS support by now).

Re:Microsoft Surface Studio by int_19h on Wednesday October 26, 2016 @04:55PM (#12800453)
Correct me if I'm wrong, but you should be able to loopback-mount a "proper" file system (e.g. ext4) from a file on NTFS, and then you'll have no limits other than what ext4 imposes. Of course, you then lose easy interop with the filesystem from Windows side, but that is the inherent trade-off here.
Re:Microsoft Surface Studio by sveiss on Wednesday October 26, 2016 @10:51PM (#12802592)
WSL doesn't actually run a Linux kernel; it emulates the syscalls and process environment Linux offers and provides a binary loader. It's WINE in reverse.

So there's no ext4 driver, and no concept of loopback mounts.

Re:Microsoft Surface Studio by int_19h on Thursday October 27, 2016 @02:30PM (#12807904)
Ah, indeed (although it's not quite WINE in reverse, since WINE emulates userspace calls, not kernel syscalls).

I see that there's considerable demand for this exact thing in their bug tracker already. If they go for a low-hanging fruit here, it'd be FUSE support - and that should give us ext2, at least.

Re:Microsoft Surface Studio by bluedino on Wednesday October 26, 2016 @02:46PM (#12799248)
>> I discovered a whole bunch of unimplemented features that prevented this.

I'd be very interested in a blog post about your problems and I don't think I'm alone.

Re:Microsoft Surface Studio by illuminati1911 on Wednesday October 26, 2016 @05:23PM (#12800725)
"Linux subsystem for Windows is really appealing." Have you actually tried it out?

I thought nobody anymore believed in this after the first versions came out and people actually had a chance to try it in action. There are endless amounts of bugs, unimplemented features, complications between 2 filesystems, permissions, applications etc.

When MS announced this I was pretty hopeful. Not that I would change my dev-computer from way superior macOS to Windows, but that when I'm at home gaming on my Windows PC and I get some cool idea, I could do some small development or create simple prototypes without changing from my desktop to my laptop. After trying it out for real I don't belive anymore this "linux" subsystem thingy is ever going to be anything more than niche PoC.

Re:Microsoft Surface Studio by gboss on Wednesday October 26, 2016 @11:57PM (#12802804)
I run a Windows 10 PC at work with the Linux Subsystem enabled. It has been a godsend. We are historically a C# shop, but have a new front-end web server in NodeJS. I continue to work on a PC because the NodeJS site consumes C# web services. I will sometimes work on the C# service and the node site at the same time and have the Node site point to my local builds of the C# services. Before, I used to use Vagrant, but it was extremely finicky and would break or corrupt randomly. While I know NodeJS runs on native windows, certain dependencies such as Couchbase have given me pain trying to get working. Now I do my NodeJS work running inside the Linux Subsystem. It's been extremely performant, and I always catch case sensitive bugs and other Linux issues that the Mac developers miss due to have a case insensitive file system.
Re:Microsoft Surface Studio by domenukk on Wednesday October 26, 2016 @07:41PM (#12801753)
Most binaries run really well. A lot of the stuff that didn't work in the first preview has since been fixed (like tmux, 24bit colors in bash etc.). Plus you can now call linux apps from windows with bash -c and call exes from bash which makes cross platform development amazing.
Re:Microsoft Surface Studio by flukus on Thursday October 27, 2016 @12:04AM (#12802836)
> Plus you can now call linux apps from windows with bash -c and call exes from bash which makes cross platform development amazing.

Unless you need to pass a directory path.

Re:Microsoft Surface Studio by nxc182 on Wednesday October 26, 2016 @07:41PM (#12801760)
WSL is still in very early beta. It works amazingly well when you consider how early this project is.

Windows NT has done a good job supporting multiple APIs/subsystems in the past. Windows NT for example does a perfectly good job with the Win32 subsystem - software targeting Win32 for '95, '98, etc. still works on Windows 10, perfectly, despite being a totally different kernel.

Re:Microsoft Surface Studio by ksk on Wednesday October 26, 2016 @05:40PM (#12800900)
What did you try and what bugs did you run into?
Re:Microsoft Surface Studio by RileyKyeden on Wednesday October 26, 2016 @08:24PM (#12801962)
There's a reason you have to go out of your way to install it. It's nowhere near a final product.
Re:Microsoft Surface Studio by rsync on Wednesday October 26, 2016 @03:28PM (#12799643)
"OS X is basically a Unix workstation & perfected anything the Linux desktop wanted to be."

Exactly. How do they not know this ? Or, why do they not care ?

There is one big huge reason that "smart people" switched to OSX and the computers that ran it and that institutional knowledge appears to have evaporated at Apple.

When you know your core, core base is here for the UNIX, you don't take away the escape key ... or keep breaking and re-breaking crontab ... or introduce the weird-stuff-I-can't-do-even-as-root.

Re:Microsoft Surface Studio by usaphp on Wednesday October 26, 2016 @01:00PM (#12798219)
> "Surprised MS went with nVidia 980s instead of 1080s"

It's not even 980, its 980m which is significantly slower than 980, nevermind 1080. And the 980m only comes in the $4199 option, that's ridiculous...

Re:Microsoft Surface Studio by Ant5do on Wednesday October 26, 2016 @02:53PM (#12799317)
Okay, seriously. The iMac comes with a 395x mobile gpu. It's pretty comparable to the 980m. The 1070m and 1080m don't exist yet. If you guys actually knew more about hardware than nothing, maybe you'd realize that it's not possible to get a 1080m.

iMacs and Macbook Pros (top of the line 15-inch with dGPU) have always used mobile GPUs. Also, illustrators/designers don't need dGPUs. That's why the designers/illustrators at hte tech companies that you work at can use macbook 13 inch laptops and 15-inch laptops without the dGPUs

Re:Microsoft Surface Studio by mhermher on Wednesday October 26, 2016 @03:28PM (#12799644)
NVIDIA got rid of the m distinction for the new gen. Razer (and I believe others) have already put a full "desktop" geforce 10xx in some of their laptops.