Live data from Hacker News

Vim 7.4 is released

vim.org

1–10 of 126 posts

Re: Vim 7.4 is released

#2
:help version7.4 has all the details, but the two most significant ones cited are "New regexp engine" and "A more pythonic Python interface."

Of the former, the help file says:

What is now called the "old" regexp engine uses a backtracking algorithm. It tries to match the pattern with the text in one way, and when that fails it goes back and tries another way. This works fine for simple patterns, but complex patterns can be very slow on longer text.

The new engine uses a state machine. It tries all possible alternatives at the current character and stores the possible states of the pattern. This is a bit slower for simple patterns, but much faster for complex patterns and long text.

Most notably, syntax highlighting for Javascript and XML files with long lines is now working fine. Previously Vim could get stuck.

Re: Vim 7.4 is released

#3
Bad form to require someone to install your program just to see your changelog, though. Please put up a page, or put the latest help docs online (the current set is still for 7.3) and link to the relevant section, instead of "see :help version7.4".

Re: Vim 7.4 is released

#4

Bad form to require someone to install your program just to see your changelog, though. Please put up a page, or put the latest help docs online (the current set is still for 7.3) and link to the relevant section, instead of "see :help version7.4".

ftp://ftp.vim.org/pub/vim/patches - should be up shortly

you can also get it here - https://gist.github.com/mjhea0/6200588

Re: Vim 7.4 is released

#5
post #2

:help version7.4 has all the details, but the two most significant ones cited are "New regexp engine" and "A more pythonic Python interface." Of the former, the help file says: What is now called the "old" regexp engine uses a backtracking algorithm. It tries to match the pattern with the text in one way, and when that fails it goes back and tries another way. This works fine for simple patterns, but complex patterns…

It sounds like someone read Russ Cox's work on regexp.

http://swtch.com/~rsc/regexp/

To future regexp implementors: Do it this way first!

Re: Vim 7.4 is released

#6
post #2

:help version7.4 has all the details, but the two most significant ones cited are "New regexp engine" and "A more pythonic Python interface." Of the former, the help file says: What is now called the "old" regexp engine uses a backtracking algorithm. It tries to match the pattern with the text in one way, and when that fails it goes back and tries another way. This works fine for simple patterns, but complex patterns…

It sounds like someone read Russ Cox's work on regexp. http://swtch.com/~rsc/regexp/ To future regexp implementors: Do it this way first!

It sounds like someone read Russ Cox's work on regexp.

Russ Cox? You know that regular expressions have existed since Kleene's first proposals, and everyone with a CS degrees knows that you can compile them to deterministic finite state automata. Right?

Re: Vim 7.4 is released

#7

Earlier quoted context omitted.

It sounds like someone read Russ Cox's work on regexp. http://swtch.com/~rsc/regexp/ To future regexp implementors: Do it this way first!

It sounds like someone read Russ Cox's work on regexp. Russ Cox? You know that regular expressions have existed since Kleene's first proposals, and everyone with a CS degrees knows that you can compile them to deterministic finite state automata. Right?

Sadly not everybody is familiar with Automata theory - furthermore, I'm sure he knows and his link is about implementation and is none trivial and none obvious.

I'm struggling to understand your negativity here..

Re: Vim 7.4 is released

#8

Earlier quoted context omitted.

It sounds like someone read Russ Cox's work on regexp. http://swtch.com/~rsc/regexp/ To future regexp implementors: Do it this way first!

It sounds like someone read Russ Cox's work on regexp. Russ Cox? You know that regular expressions have existed since Kleene's first proposals, and everyone with a CS degrees knows that you can compile them to deterministic finite state automata. Right?

And that's why the RE2 implementation has existed equally long!

Oh, wait.

Re: Vim 7.4 is released

#9
Complete Changelog ftp://ftp.vim.org/pub/vim/patches/7.3/README (it includes all changes from 7.3 up to 7.4)

New patches for 7.4 will be in the patches/7.4 folder.

Re: Vim 7.4 is released

#10
Very nice! Does anyone remember that nifty syntax highlighting script from a while ago that required a recentish version of Vim? I'll install 7.4 and want to try that out, but I don't remember what it was...
Post reply on HN