Live data from Hacker News

Bash on Ubuntu on Windows

blogs.msdn.microsoft.com

331–340 of 434 posts

Re: Bash on Ubuntu on Windows

#331

I honestly don't really see the point in this. If you like Ubuntu/Linux more, then just install Ubuntu/Linux on the computer without Windows. Why go through the additional layer of Windows? Perhaps the use case is limited to people who need to run Windows/Mac-only software like AutoCAD or some Adobe software.

As a user of both worlds I can think of Better touchpad drivers, saner high DPI support, font rendering preference, simple composite window manager that supports easy snapping.

Re: Bash on Ubuntu on Windows

#332
post #175
post #152

Earlier quoted context omitted.

You can create content on tablets, and some of it is excellent content. Development isn't done on tablets because the input devices we have to make code are limited to a keyboard, and most people think text files are code, rather than a serialisation/deserialisation format for an AST. You could easily build an AST with gestures and speech rather than tapping buttons, and I think in 10-20 years time that's how we'll m…

Actually AST edition with touch interface has been experimented by MS Research with Touch develop ( https://www.touchdevelop.com/ ). In their editor you just insert/combine AST parts instead of typing them.

Came here to say this. It works surprisingly well on phones and tablets, primarily for making single file scripts.

Re: Bash on Ubuntu on Windows

#333
post #323

Earlier quoted context omitted.

One could argue that the Linux syscall interface is closer to an ABI than an API, since you don't directly code against it. Don't know what implications that has in this context, though. One legal thing that I'm also wondering about is the "Linux" trademark. I thought the Linux Foundation kept close tabs on how you were allowed to use the trademark, and one requirement was that the Linux kernel was actually involved?

> One legal thing that I'm also wondering about is the "Linux" trademark. This probably explains why they never talk about Linux (at least I never saw it), but always about Ubuntu. I guess they have an agreement with Canonical.

They mention "Linux" all the time. The feature is called Windows Subsystem for Linux (Beta).

Re: Bash on Ubuntu on Windows

#334
post #29
post #20

Earlier quoted context omitted.

Can I use Docker?

Linux docker? I doubt it--there's a lot of low level kernel stuff docker needs like creating a chroot. That said MS has been working on a docker version for Windows. I dunno if they ever released many details on what exactly it is though, it's been a while since I've much from them on it.

https://blog.docker.com/2016/03/docker-for-mac-windows-beta/

Re: Bash on Ubuntu on Windows

#335
post #314

Earlier quoted context omitted.

>> You could easily build an AST with gestures and speech > How will you go about drawing "joe" and "mary"? I'll just say it, it's easier. As I said at the top of the thread, gestures and speech. > How fast they can track back and correct a mistake made three words before? I gave an example of opening an existing structure and modifying it in the comment you're replying to. > Or take the last sentence and make it a s…

> I gave an example of opening an existing structure and modifying it in the comment you're replying to. Sorry, I misunderstood what you meant by "subtle gesture" there. Anyway, in the original comment you said: > Data structures are shapes. A shape is better drawn than described in text. I'll grant you that speaking + gestures may not be a bad way of entering and manipulating small data structures and preforming sim…

> But until we have a technology that can recognize speech and gestures reliably and accurately (and tablets with OSes that don't lag and hang up for half a second at random)

Totally agreed. Theoretically, you should just be able to gesture a list with your hands and say "joe mary dave" and the software knows from your tone that's three items and not one.

I don't know that much about lisp and s-expressions asides from that it can edit it's own AST. That's not a way of avoiding the question, it's just my own lack of experience.

> Are you going to drag some kind of symbolic representation of "tree node" to move a bunch elements into a sublevel?

Yes, I already think of a tree of blocks/scopes when editing code with a keyboard, visualising that seems reasonable.

> Repeating this (or a more complex transformation) action 20 times in a row (that's what a decent editor has keyboard macros for).

Here's the kind of stuff I use an AST for: finding function declarations and making them function expressions. I imagine that would be (something to switch modes) "find function declarations and make them function expressions". Likewise "rename all instances of 'res' to 'result'" with either tone or placement to indicate the variable names. More complex operations on the doc would be very similar to complex operations in the doc.

> Searching in code for a particular substring?

Easy. Have a gesture or tone that makes 'search' a word for operating on the document, not in it.

> Sure, it can be done with the modes of input you're advocating, but I doubt it can be done in an efficient way that would still resemble normal speech and interaction.

Yep, I don't think it would still resemble normal speech and interaction either, the same way reading code aloud doesn't. It would however be easier to learn, removing the need to type efficiently as well as the (somewhat orthogonal) current unnecessary ability to create syntax errors.

> DevTools are a bad example for this task. Using keyboard is much faster and more convenient than mouse. C.f. Paredit.

Not sure if I'm reading you correctly here: typing DOM methods in a keyboard in devtools is obviously slower than a single drag and drop operation. Using hands to do it directly is obviously even faster with the mouse.

Stepping back a little: I guess some people assume speech and gestures won't get significantly better, I assume they will.

Re: Bash on Ubuntu on Windows

#336
post #49

I am a little scared from the distinction we are start to make between "computers" and "developers' computers" In most computer nowadays you cannot code (tables and smartphones), are computers doomed to be an expensive tool for few "nerd" ? What will be the impact on computer literacy ?

I was a teen in the mid 1980s when computers were too expensive. The situation today is orders of magnitude better, it isn't really comparable at all.

For one thing, a Raspberry Pi is more powerful than the Sinclair ZX-81, Apple IIe, or Atari 400/800 I had access to back then, and much cheaper.

Re: Bash on Ubuntu on Windows

#337

I have to say after the initial excitement, I'm a bit disappointed about how this is implemented. Apparently, there is no or little interaction between the Linux world and the Windows world in this system. I don't see the benefits over running a classical Linux-as-a-process like coLinux, or something like Cygwin or MinGW. The option to run unmodified executables is nice if you have closed-source linux binaries, but t…

Hmm, I guess I'd assumed that I'd be able to use bash scripts to automate Windows functionality (that was probably the most exciting part for me!). You're saying that's not currently possible? What about more basic things, like moving files around, etc.? I'd be happy if I never had to write a (Windows) batch script again...

Windows files exist under /mnt/c or something. I think you could.

Re: Bash on Ubuntu on Windows

#338

Earlier quoted context omitted.

Have you met an average user? The mandatory updates, lack of permissions and sandboxing are only a good thing for a user with typical computer literacy level. Hell, even lack of window management in iOS/Android systems is making UX much more easier to understand for majority of users I know. My granddad, who was an excellent mechanical engineer, have been using computers for the last 20 years, and he still struggles…

> and he still struggles with click/double-click distinction. Have you tried teaching him that? I highly doubt an old person, especially one with engineering background, will have trouble with understanding the distinction if someone bothers explaining it to them. Or in general - it's surprising how much non-tech people can understand about technology if someone bothers to sit down with them and explain the concepts…

So many timesI've lost count.

Re: Bash on Ubuntu on Windows

#339

Earlier quoted context omitted.

This same "multi billion dollar" company had an AI bot tweeting Nazi propaganda a week ago. They spectacularly failed in their xbox one release, having to completely retool and regroup. Their Windows Phone efforts remain a complete disaster and are now doomed to failure. The whole "they're a big company...don't you think they've thought of this!" argument (and its many "do you really think they'll lose?" variations)…

Well if we really believe the bot was AI, then it wasn't Microsoft's bot. It was was it's own "artificial intelligence". But the rest of those have nothing to do with their legal team. They wouldn't implement a copy of another OS into this OS without making sure it was legal to do so.

I think the AI comment was more to the fact that, they didn't safeguard against seemingly obvious outcomes - such as internet trolls trying to get the bot to say bad things. Many companies put no-go words during username creation, hitler, racist words, etc - so why didn't Microsoft?

It might not have been simple to do, but still - hard not to see the outcome.

Re: Bash on Ubuntu on Windows

#340
post #314

Earlier quoted context omitted.

>> You could easily build an AST with gestures and speech > How will you go about drawing "joe" and "mary"? I'll just say it, it's easier. As I said at the top of the thread, gestures and speech. > How fast they can track back and correct a mistake made three words before? I gave an example of opening an existing structure and modifying it in the comment you're replying to. > Or take the last sentence and make it a s…

That's great if you just want the strings joe and mary. What happens if you want a list of People?

Off the top of my head:

favouritePeople is Person list, name Joe age 32, Mary 23, Steve 64, end

Using tone to separate entries, but you could use a secondary gesture for that instead. Also some pattern matching.

Post reply on HN