HNHacker News
TopNewBestAskShowJobs

justinmk

1,307 karma · joined April 14, 2012

Berlin
submissionscomments
justinmk··on The Price of Anarchy
> Serving your customers well is entirely out of self interest,

Right, just like "altruism" is also rooted in self-interest. It turns out that people are motivated by all kinds of things.

https://en.wikipedia.org/wiki/Praxeology

justinmk··on SpaceVim – Like Spacemacs, but for Vim
> Any comments regarding the potential for inline code execution?

Try codi.vim for REPL-like eval:

https://github.com/metakirby5/codi.vim

justinmk··on The Zimbu programming language
The previous discussion[1] made a good case for Lua.

Shipping Lua as a first-class alternative to VimL also happens to be the primary goal for Neovim in 2017.

[1] https://news.ycombinator.com/item?id=895350

justinmk··on Meaningness
David Hume arrived at a reasonably rigorous framework (Principle of Nature's Uniformity) that allows your conclusion, in my opinion. He's worth reading, if only to find enough closure to move on from philosophy.
justinmk··on Visual Studio Code 1.7
Also, async completers like deoplete[1] offer non-blocking completion.

However...

> stuff like the following makes it hard for me to resist switching.

I don't think one should "resist". IDEs (VS code is an IDE, at this point) are very powerful. I really wish vim-modes would go away; I would like to see Neovim embedded in VS code and friends, instead. By "embed" I mean: nvim is the text editor, it does everything; it lives in the "document" area of the IDE; and you can bind nvim keys to IDE functions/commands (such as "Open Type...").

[1] https://github.com/Shougo/deoplete.nvim

justinmk··on Vim: So long Pathogen, hello native package loading
The `:CheckHealth` command added in Neovim 0.1.5 should help with python/ruby/general sanity checks. It has more improvements in 0.1.6 which will be released soon.
justinmk··on Vim for Humans
> NeoVim seems like a bit of a waste to me, because I think it misses the point. Vim is not a platform.

Neovim is designed to be hosted (embedded). Embedding Neovim in a IDE (platform) allows Neovim to be the editor while exposing the IDE as "the platform".

It's also a guiding principle of Neovim to not dictate what applications are built with it, so yes, you can leverage its API as a platform. But that's not the singular purpose.

> I guess what I mean is that vim should be left as vim. There are superior platforms that implement the same interface,

There are no applications that implement Vim (except Neovim, which passes Vim's test suite).

justinmk··on Vim for Humans
That's why Neovim carefully implemented[1] most of the defaults (and a few others) from sensible.vim.

[1] https://github.com/neovim/neovim/issues/2676

justinmk··on My love-hate relationship with LuaJIT (2015)
> reimplementing the current C VimScript runtime

See the updated FAQ[1]. We are punting on the VimL-to-Lua translator. We think it will be more valuable to instead ship Lua as a first-class alternative to VimL.

> (suffering from code rot and filled with preprocessor declarations for dead platforms) in Lua w/o degrading performance too much

eval.c is being refactored in PR 5119[2].

1: https://github.com/neovim/neovim/wiki/FAQ

2: https://github.com/neovim/neovim/pull/5119

justinmk··on My love-hate relationship with LuaJIT (2015)
Neovim will support PUC Lua 5.1 for both user scripts as well as internal lua logic. The external lua-client[1] supports luajit and PUC lua and the CI[2] runs PUC lua on every PR and commit.

The Neovim patch[3] to add built-in lua scripting will support both luajit and PUC lua.

I also updated the FAQ[4] to avoid confusion.

1: https://github.com/neovim/lua-client

2: https://travis-ci.org/neovim/neovim/jobs/162545247

3: https://github.com/neovim/neovim/pull/4411

4: https://github.com/neovim/neovim/wiki/FAQ

justinmk··on Enough with Basic Income
Ok. But if for some bizarre reason lacking a Nobel prize, people multiply non-linearly, then BI will not be sustainable, correct? And that constraint defies the definition of post-scarcity.
justinmk··on Enough with Basic Income
> Seems easy enough to give BI to folks who are 18+ and not offer more for kids, or only offer more for the first kid,

So absence of scarcity will totally be a thing if everything just goes according to plan. Got it.

justinmk··on Enough with Basic Income
> Competition will continue to keep prices down

That's an incomplete statement, because it doesn't quantify the effect. Will the effect be zero, or will BI be priced-in (higher prices, lower present-value of BI)?

US college tuition and housing prices increased dramatically, because of decreased consumer price discrimination driven by low-barrier loans.

justinmk··on Enough with Basic Income
> The main threats are overpopulation and politics, as tech seems to be ticking along quite nicely.

If [over]population is a factor, then "post-scarcity" is fiction.

This makes me think BI advocates are quietly assuming constraints such as "we'll discourage reproduction somehow"--while constantly mentioning how BI will be free of constraints.

justinmk··on .NET Core 1.0 release – what you need to know to get started
No, there's no (technical) reason to redundantly solve the problems that dapper has solved. In particular the emitted IL which avoids costly reflection is not something many people will correctly re-implement.

> A touch of generics done properly, a bit of reflection,

Dapper avoids reflection, its performance is very close to a hard-coded SqlCommand.

justinmk··on .NET Core 1.0 release – what you need to know to get started
Trust me, you don't want EF--no matter how many times they say "vNext is gonna be great!!1 for real this time." Consider a micro-ORM like dapper[1].

[1] https://github.com/StackExchange/dapper-dot-net

justinmk··on Netflix Billing Migration to AWS – Part III
It is not a secret, it has been addressed in at least one talk by Netflix a head[1].

> Cloud features and APIs should be a commodity not a differentiator

> ...

> We would prefer to be an insignificant customer in a giant cloud.

[1] https://justinmk.github.io/jmk/selfish-cooperation

justinmk··on Full Metal Jacket: A Visual Programming Language Based on Lisp
> Blueprints which can completely replace the C++ Api

C++ is a rather low bar.

> It's a just a matter of time ...

That sets the upper limit to infinity, so it's a non-statement.

> Because it's easier to learn It's easier to write, because there are no syntax or compiler errors.

AST-constrained editing (e.g. lamdu[1]) will be very useful. But the lowest-common denominator cannot be "overtaken". That is why stdio is a binary stream, webapps are compiled to javascript, and programming is represented as text. Any advanced programming language that can't be represented and manipulated by ubiquitous tools will lose to one that does, so text will never--yes, never--be replaced as the common vernacular, for better or worse.

To paraphrase Stephen Kell[2], Smalltalk lost because for whatever reason the people who hadn't yet "seen the light" continued to communicate and interoperate with each other.

1: http://www.lamdu.org/

2: https://www.cl.cam.ac.uk/~srk31/research/papers/kell13operat...

justinmk··on Writing an editor in less than 1000 lines of code, just for fun
> a text editor in less than 1000 lines of code that does not depend on ncurses and has support for syntax highlight and search feature.

Neovim also does not depend on ncurses. Vim optionally links to it for termcap/terminfo access.

justinmk··on What’s up with nano?
Here's neovim:

    $ ldd $(which nvim)
        linux-vdso.so.1 =>  (0x00007fff75590000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f821b0ea000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f821aecc000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f821acc7000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f821a9c1000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f821a7be000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f821a3f8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f821b301000)
justinmk··on Netflix Billing Migration to AWS
> I find it to be a peculiar business decision to completely (as much as you can) migrate to one of your largest competitors' cloud service.

This was directly addressed in a 2011 talk[1] by a director at Netflix:

> Competition drives cost down

> [...]

> We would prefer to be an insignificant customer in a giant cloud.

[1] https://justinmk.github.io/2016/03/17/selfish-cooperation.ht...

justinmk··on How the Windows Subsystem for Linux Redirects Syscalls
> things like Go, Node and Tornado [does not allow] the NT completion-oriented I/O facilities to be optimally exploited.

nodejs is built on libuv[1], which uses IOCP on Windows (and epoll, kqueue, etc. on other platforms). What's non-optimal about it?

[1] https://github.com/libuv/libuv

justinmk··on Dumb-jump: an Emacs “jump to definition” package
I am not sure "proof" is the appropriate word.

> Dumb Jump uses The Silver Searcher ag (and falls back to grep) ... [and] a set of regular expressions

If you're going to install ag, you might as well install universal-ctags[1], a revival of ctags with many improved and new parsers. It allowed me to discard my C and javascript ctags config entirely.

Combined with gutentags[2] you have a "just works" and "Less Dumb" setup.

[1] https://github.com/universal-ctags/ctags

[2] https://github.com/ludovicchabant/vim-gutentags

justinmk··on Vim-vertical: Get around 2-dimensionally in vim
It's not really a matter of saving time, but eliminating friction (context-switches). Editing is a chore, and fiddling with text while taking notes, or debugging, or thinking about a problem, has a cost.

It's also quite alarming to reach a level of proficiency where you can make non-trivial edits without looking at what you're editing, and know that the edits are correct. Again, this avoids context-switches.

That's why Vim is so focused on precision ("do exactly this") rather than DWIM ("Do What I Mean [usually]": the emacs/IDE approach).

Certainly whether the ramp-up cost is worth the "payoff" is debatable, but for me, editing text became so irritating that my initial experiments with Vim were driven from pure exhaustion after years of blub-craft.

justinmk··on Vim-vertical: Get around 2-dimensionally in vim
Yep, and all of them have "blind spots" or lack attention to subtle details, because the authors didn't use Vim for very long, if at all.
justinmk··on Vim-vertical: Get around 2-dimensionally in vim
vim-sneak[1] is a less bling-bling alternative to easymotion. I originally wrote it to address the sub-optimal valley between Vim's built-in near-distance (f, t, ...) and long-distance (/) motions. It also tries to avoid the hesitation that easymotion introduces, by avoiding the need to select a label if the first match is correct.

[1] https://github.com/justinmk/vim-sneak

justinmk··on William Shakespeare, Playwright and Poet, Is Dead at 52
Your PDF is thought-provoking, as was the NYT article.
justinmk··on Managing dotfiles with GNU Stow
Neovim[1] implements the XDG spec.

[1] https://neovim.io

justinmk··on Managing dotfiles with GNU Stow
> For example, if you type `git add .` while in ~/code/some-project, you will add it to your dotfiles repository.

If your project has its own .git directory, no, it won't add to ~/.git.

justinmk··on Managing dotfiles with GNU Stow
"dotfiles managers" are over-engineered waste of time. You only need git. Create ~/.gitignore with a single line:

    *
git tracks modifications to your dotfiles. And on the rare occasion that you need to add a new file, just force-add it:

    git add -f ~/.foorc
If you need a script to "install" your dotfiles, you're doing it wrong.
← PreviousPage 4 of 9Next →