Live data from Hacker News

Block-breaking game in vim 8.0

github.com

31–38 of 38 posts

Re: Block-breaking game in vim 8.0

#31
post #18
post #3

Earlier quoted context omitted.

If it works in vim it should work in neovim?

It was forked before vim 8.0 was released and neovim doesn't try to keep its fork compatible with vim. Consequently it is not.

> neovim doesn't try to keep its fork compatible with vim.

Nvim tracks all Vim patches[1]. _Only_ the job-control API differs. All other Vim patches are merged into Nvim reguarly, including new Vimscript features like partials, lambdas, etc.

Nearly all 7.4.x patches (except for job-control) have been merged:

https://neovim.io/doc/reports/vimpatch/

Hundreds of 8.0.x patches have been merged also, but they won't be in that report until we finish the last couple 7.4.x patches.

[1] https://github.com/neovim/neovim/wiki/Merging-patches-from-u...

Re: Block-breaking game in vim 8.0

#32
post #3

Earlier quoted context omitted.

If it works in vim it should work in neovim?

It doesn't work in my neovim, sadly. Lots of errors. Most common seems to be: E117: Unknown function: funcref And similar.

funcref() is in Nvim 0.2. Old versions of Vim also don't have funcref() ...

Re: Block-breaking game in vim 8.0

#33

Earlier quoted context omitted.

Story: http://blog.danielwellman.com/2008/10/real-life-tron-on-an-a...

One of the most brilliant applications of this concept is the Pokémon Yellow Total Control Hack: http://aurellem.org/vba-clojure/html/total-control.html Similarly, arbitrary code execution in Super Mario World: https://www.youtube.com/watch?v=OPcV9uIY5i4 It's like transforming a chess game into Mikado just by playing it.

To be fair, that seems to require turning off in the middle of a save. Not entirely by the rules of the game.

Re: Block-breaking game in vim 8.0

#34

Related, a self destroying game I built some time ago: https://void4.github.io/ The yellow dot is the instruction pointer, the red dots represent the program memory. If you hit the ball just right you can introduce graphic glitches. Most times, the instruction pointer gets out of bounds however.

I was looking through the source and learned that Python's modulo operator is based on floor-division (rather than round-toward-0 division like in C). In case anyone cares how Python actually does in in C, for small ints its defined at https://github.com/python/cpython/blob/master/Objects/longob...

Re: Block-breaking game in vim 8.0

#35

Earlier quoted context omitted.

everywheres$ vim Welcome... mostwheres$ emacs bash: emacs: command not found

vi is pretty usual to find in a default installation, but Vim? Debian is the only OS I've come across that includes it (and aliases it to vi, for some stupid reason!). (Note: Vim user here)

macOS aliases vi to vim:

    mymacbook:~ mikestew$ ls -lah /usr/bin/vi

    lrwxr-xr-x  1 root  wheel     3B Jun  7 12:21 /usr/bin/vi -> vim
Seems like Debian, as you describe it, went the reverse route for some odd reason. Is that right, I type in vim on Debian and vi runs?

Re: Block-breaking game in vim 8.0

#38
post #20
post #14

For those who like this I can tell you about another thriving gaming platform... Emacs! You can out of the box play all your favorites such as M-x tetris M-x snake M-x solitaire Just as well as multiplayer classics M-x pong To find out more and get the latest games check out https://www.emacswiki.org/emacs/CategoryGames#toc1 Great OS, the only thing that's really missing is a decent text editor.

Nothing beats Microsoft platforms for gaming though. Excel 97 has a built-in flight sim. Can Emacs do THAT?

The question is: can Excel 97 do that with its extension language.
Post reply on HN