Live data from Hacker News

Vim.wasm

rhysd.github.io

81–90 of 291 posts

Re: Vim.wasm

#81
post #42

Earlier quoted context omitted.

Would be nice to be able to use vim (or any other editor of your choice) in web text boxes.

There are browser extensions that offer this. E.g. the excellent Tridactyl for Firefox lets you pop up a gVim window for any text box if you press Ctrl+i.

This has been possible for years with Vimperator and then Pentadactyl. Unfortunately it's awkward and can't take advantage of text fields with real time JavaScript processing (e.g.: Gmail, Markdown preview).

Re: Vim.wasm

#83
post #22

This is absolutely incredible. I never thought this would be possible-- wasm opens a new phase of software development and deployment.

Yeah, right.

As if Flash (http://adobe-flash.github.io/crossbridge/), PNaCL (https://developer.chrome.com/native-client/reference/pnacl-b...) never existed.

Re: Vim.wasm

#84
post #76
post #14

sorry for being dense, but I can't seem to save files or do anything seemingly practical. Is there any practical use cases for this library, or is this purely along the lines of "Hey checkout this cool hack!"

I haven't tried it yet, but that should still make it as useful as pasting text into vim to make changes quickly. Things like highlighting a sentence and making it all lowercase or uppercase is very simple. (v/V/C-v for one of the visual mode selection types, then pressing u after the select makes it all lowercase, and ~ can swap case if you had capslock on and typed "sOMETHING LIKE THIS"). There's also :sort for qui…

The register "* is visible but doesn't seem to reflect the clipboard or similar. I agree that it would be great if it were supported.

Re: Vim.wasm

#86

Earlier quoted context omitted.

We have strayed too far from RMS's light

RMS is the Terence McKenna of open source: a fundational figure whose ideas where way ahead of the curve, but also a too extreme to attract the mainstream.

Almost no one goes full RMS. But I suggest that the world would be much better if everyone went even 50% RMS.

Relevant: https://old.reddit.com/r/StallmanWasRight/

(Disclosure: RMS was a childhood hero, since I read the Steven Levy "Hackers" book, right up there with Mr. Rogers, Richard Feynman, Neil Armstrong, and Marvin Minsky. One day, RMS reached out, to ask me to sign over copyright, to the FSF, of a tiny bit of Emacs code ("Yes, sir!"). Today, I occasionally have the privilege of exchanging emails with him.)

Re: Vim.wasm

#87
post #83
post #22

This is absolutely incredible. I never thought this would be possible-- wasm opens a new phase of software development and deployment.

Yeah, right. As if Flash ( http://adobe-flash.github.io/crossbridge/ ), PNaCL ( https://developer.chrome.com/native-client/reference/pnacl-b... ) never existed.

Wasm is company and technology independent and went through the proper process for becoming a standard rather than being forced in by some corp hoping to take over the internet.

It also doesn't have any of the security issues because its limited to things JavaScript can do.

Re: Vim.wasm

#88
post #87
post #83

Earlier quoted context omitted.

Yeah, right. As if Flash ( http://adobe-flash.github.io/crossbridge/ ), PNaCL ( https://developer.chrome.com/native-client/reference/pnacl-b... ) never existed.

Wasm is company and technology independent and went through the proper process for becoming a standard rather than being forced in by some corp hoping to take over the internet. It also doesn't have any of the security issues because its limited to things JavaScript can do.

Both alternatives that I mentioned, Flash and PNaCL did have open source implementations available, it is just a matter of following the links I posted.

WASM doesn't offer any security over internal data corruption as buffer access within linear memory aren't validated for data bounds or nullability.

So it is possible, for a WASM module generated from C or C++ code, to provide input data to its functions in such a way that it would compromise its behavior from the outside, even though it doesn't escape the sandbox.

Politics.

Re: Vim.wasm

#89
This is pretty dope, but I'm terrified about the fact that Firefox lets it take over Ctrl+L, Ctrl+1, or any other way (that I can find, at least) of breaking out of Vim with a keyboard aside from closing the tab with Ctrl+W - which is even more terrifying since I use that in Vim a ton, too :O

...but this is pretty cool :D

Re: Vim.wasm

#90
post #73
post #42

Earlier quoted context omitted.

Would be nice to be able to use vim (or any other editor of your choice) in web text boxes.

This is the logic that makes everyone move their workflow into emacs. A lot of what we do is text editing, so having a good text editor everywhere makes sense. Some programs like mutt can also drop in to your editor of choice when composing an email. Imagine if we all had vim for typing up these HN comments. I'd like something like this to be more feasible. Maybe there could be a standard for forums that gives you vi…

Imagine if programs knew how to interact with one another and could plumb data between them instead of everything living in one monolithic application.
Post reply on HN