Live data from Hacker News

Pure Python Vim clone

github.com

81–85 of 85 posts

Re: Pure Python Vim clone

#82
post #43
post #21

Earlier quoted context omitted.

It's interesting that your first thought was to post a troll about how Python is a bad language.

I regret that this post is the top of the page. I failed to anticipate that people will take any opportunity to have yet another boring static typing debate. But to be clear, in my day job I work on an app with 350k lines of Python in it and the reason I know it mostly works is due to our test coverage. As someone else mentioned in this thread, a lack of tests should not give you confidence regardless of the language…

From the project docs

"There is no roadmap. I mostly implement the stuff which I need or interests me, or which gives me the opportunity to learn."

Pretty much says it all. Seems it was primarily written to satisfy personal needs, not be the end-all, be-all of professionally written software. It is, incidentally, potentially interesting to others who might want to learn from it, or use it, knowing the background.

So, you might cut the guy a break. The requirements for personal projects aren't the same.

Re: Pure Python Vim clone

#83

Earlier quoted context omitted.

Care to elaborate on where it falls down emulating vim?

Yi is really nice, overall. The code is clean too. I don't remember all of the issues, but there are a ton of small things that make the editor unusable to me. I used it for a couple of weeks, and I spent some time working on these issues, but never had PR-worthy code. Here's what I can remember off the top of my head: - Startup time is very slow because of the way configuration works. In my local copy, I made a vers…

Cool! I guess my evaluation of Yi/vim emulation was more cosmetic than I thought :)

Re: Pure Python Vim clone

#84

Earlier quoted context omitted.

I've never seen anyone claim that types (even a very strong type system like Haskell or Rust) mean you don't have to write tests. They just mean you don't have to write the very silly tests you would otherwise have to to feel secure in a dynamically typed language.

https://news.ycombinator.com/item?id=9442562

Sure. My reading of that is they will save you from writing some tests. Comment didn't say "they will free you from tests" or something like that.

Re: Pure Python Vim clone

#85

Earlier quoted context omitted.

Hi, thanks for the suggestions! Actually, the internal representation, is completely separate from the layout. It's not in another repository, but it's decoupled. The key bindings are also separate. Getting emacs bindings is not much more than changing this line [0]. Only adding the bindings for the window management and emacs command line is still to be done. (I know that emacs is actually much more than only its ke…

I want to compliment you on your code. It's so rare to see clean python code. I am almost never able to be able to jump into a file in a module and understand exactly what's happening, but you fucking nailed it. Well done!

I believe he follows pep8 ;)
Post reply on HN