<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: martanne</title><link>https://news.ycombinator.com/user?id=martanne</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 18 Nov 2026 04:52:45 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=martanne" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by martanne in "Sourcehut's Second Year in Alpha"]]></title><description><![CDATA[
<p>> Long-waited NetBSD support in CI would be awesome to be finished too.<p>As the maintainer of the linked vis project, I can confirm that the provided SSH access to the CI environment is very convenient and saves a lot of time.<p>I would also like to see the NetBSD support completed. It turns out that up until last week, we missed a #define to compile out of the box[1].<p>[1] <a href="https://git.sr.ht/~martanne/vis/commit/01eef9f87b72b0c1473672ca17592077b5af1126" rel="nofollow">https://git.sr.ht/~martanne/vis/commit/01eef9f87b72b0c147367...</a></p>
]]></description><pubDate>Sun, 15 Nov 2020 19:59:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=25104237</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=25104237</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=25104237</guid></item><item><title><![CDATA[New comment by martanne in "Show HN: Alacritty, a GPU-accelerated terminal emulator written in Rust"]]></title><description><![CDATA[
<p>The Plan 9 manual pages and papers are probably a good starting point:<p><a href="http://man.cat-v.org/plan_9/" rel="nofollow">http://man.cat-v.org/plan_9/</a><p><a href="http://doc.cat-v.org/plan_9/4th_edition/papers/" rel="nofollow">http://doc.cat-v.org/plan_9/4th_edition/papers/</a></p>
]]></description><pubDate>Sun, 08 Jan 2017 12:25:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=13349428</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=13349428</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=13349428</guid></item><item><title><![CDATA[New comment by martanne in "Show HN: Alacritty, a GPU-accelerated terminal emulator written in Rust"]]></title><description><![CDATA[
<p>> A terminal app that has terminal features doesn't violate any principles of simplicity.<p>It still depends how these features are implemented.<p>For example in dvtm scroll back history is made searchable by piping it to $PAGER. Similarly, copy mode is implemented by using $EDITOR as an interactive filter.</p>
]]></description><pubDate>Sat, 07 Jan 2017 14:01:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=13344160</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=13344160</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=13344160</guid></item><item><title><![CDATA[New comment by martanne in "Show HN: Alacritty, a GPU-accelerated terminal emulator written in Rust"]]></title><description><![CDATA[
<p>> Adding tmux just to get scrollback goes against Unix philosophy.<p>There are also simpler tools which can provide scrollback support.<p>The whole Unix tty subsystem goes against the "Unix philosophy", that is why it was completely scraped in Plan 9.</p>
]]></description><pubDate>Sat, 07 Jan 2017 13:54:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=13344131</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=13344131</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=13344131</guid></item><item><title><![CDATA[New comment by martanne in "Why Kakoune – The quest for a better code editor"]]></title><description><![CDATA[
<p>You can be sure that the Kakoune authors are familiar with vi(m).<p>Having said that, if you like both vi(m) and the structural regular expression support of sam/acme you might be interested in vis which combines the two:<p><a href="https://github.com/martanne/vis" rel="nofollow">https://github.com/martanne/vis</a></p>
]]></description><pubDate>Tue, 13 Dec 2016 18:39:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=13169339</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=13169339</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=13169339</guid></item><item><title><![CDATA[New comment by martanne in "Sublime Text 3 Build 3124"]]></title><description><![CDATA[
<p>These operations are already supported by using structural regular expressions. As an example<p><pre><code>    x g/foo
</code></pre>
will select all lines containing foo. Similarly<p><pre><code>    x v/foo
</code></pre>
will select all lines <i>not</i> containing foo. Sorting etc. is taken care of by piping text through external tools.<p>I was more interested in common editing tasks for huge files which according to this thread a lot of people perform using sublime text.</p>
]]></description><pubDate>Thu, 22 Sep 2016 12:46:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=12556406</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=12556406</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12556406</guid></item><item><title><![CDATA[New comment by martanne in "Sublime Text 3 Build 3124"]]></title><description><![CDATA[
<p>Thanks for the feedback!<p>Yes syntax highlighting for large files is a hard issue. I'm not really aware of an accurate an high speed solution supporting editing operations in huge files.<p>In principle the underlying data structure used by vis supports all modifications with linear complexity in the number of editing operations since file load. This is independent of the file structure (i.e. single line files should be well supported). However the frontend code hasn't yet been optimized so in practice there might be some problems.<p>Unless one specifies the blackhole register when deleting large parts of a file this will create an in memory copy (to enable later pasting at a different location). Better would be to keep a reference to the existing immutable text region.</p>
]]></description><pubDate>Thu, 22 Sep 2016 12:35:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=12556338</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=12556338</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12556338</guid></item><item><title><![CDATA[New comment by martanne in "Sublime Text 3 Build 3124"]]></title><description><![CDATA[
<p>A number of people expressed the need to edit large files. For the development of my own editor[0] I would be interested to know what kind of usage patterns most often occur. What are the most important operations? Do you search for some (regex) pattern? Do you go to some specific line n? Do you copy/paste large portions of the file around? Do you often edit binary files? If so what types and what kind of changes do you perform?<p>[0] <a href="https://github.com/martanne/vis" rel="nofollow">https://github.com/martanne/vis</a></p>
]]></description><pubDate>Thu, 22 Sep 2016 06:55:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=12554989</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=12554989</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12554989</guid></item><item><title><![CDATA[New comment by martanne in "Panopticon: A libre, cross platform disassembler for reverse engineering"]]></title><description><![CDATA[
<p>Does somebody know how it compares to radare2?</p>
]]></description><pubDate>Mon, 09 May 2016 18:12:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=11661868</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11661868</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11661868</guid></item><item><title><![CDATA[New comment by martanne in "Xi editor: A modern editor with a backend written in Rust"]]></title><description><![CDATA[
<p>As the main developer of an editor (vis) using a similar segmented data structure (a piece chain, similar to a rope, but storing the text junks in a double linked list, thus asymptotically worse) I can attest that the performance is generally very good. Some work will be required to adapt/write a regexp library around some kind of iterator interface, but in general I found that persistent data structures are very well suited for editors.<p>One problem with the gap buffer is that as soon as you have multiple cursors/selections or in my case structural regular expression support, then you have to move the gap around all the time. Also undo/redo support is simply not as elegant as with a persistent data structure.<p>For syntax highlighting copying the relevant text region into a contiguous memory block is simple and works well. For now I'm trying a completely stateless approach to syntax highlighting i.e. the text coloring is always completely recalculated. This trades highlighting accuracy for simplicity, but in practice the results aren't too bad. Efficient syntax highlighting for huge files is a hard problem.</p>
]]></description><pubDate>Wed, 27 Apr 2016 16:34:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=11582002</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11582002</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11582002</guid></item><item><title><![CDATA[New comment by martanne in "Xi editor: A modern editor with a backend written in Rust"]]></title><description><![CDATA[
<p>How do you plan to encode binary data in your JSON-based protocol? Base64? This will only increase the overhead.<p>While the human readability of JSON is nice, it has some serious flaws when the goal is to handle arbitrary data.<p>I have yet to decide what kind of protocol to use in my own vis editor[1], hence why I'm asking.<p>[1] <a href="https://github.com/martanne/vis" rel="nofollow">https://github.com/martanne/vis</a></p>
]]></description><pubDate>Wed, 27 Apr 2016 11:48:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=11579512</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11579512</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11579512</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>Thanks for the hacking file, it is a good read for people like myself who are interested in text editor implementations. If time permits I will try delve a bit into the joe code base.<p>As for the syntax highlighting in vis, yes it currently is stateless and only considers a fixed range of text prior to the start of the window. Having no state at all simplifies some things and allows vis to highlight even extremely large files at the expense of the occasional glitch. In practice it seems to work reasonably well.<p>This approach also requires that the highlighting is fast, because nothing is cached, it is completely redone after every cursor motion. I'm quite happy with LPeg so far, it is convenient to express grammars in a high level language like Lua. It also supports nested grammars nicely, but due to the completely stateless approach taken by vis this is currently not fully exploited. As an added bonus there were already ~100 lexers (of admittedly varying quality) available for use.</p>
]]></description><pubDate>Fri, 08 Apr 2016 10:23:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=11453706</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11453706</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11453706</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>Kakoune is a fine editor.<p>Regarding vis, Lua is optional (you lose syntax highlighting though).
libtermkey is a 3 file library and despite what the author claims it works, is useful and could be maintained in the vis repository if necessary.<p>If you think anything C++ related is lighter than something C based, then we just have to agree to disagree.</p>
]]></description><pubDate>Thu, 07 Apr 2016 21:30:39 +0000</pubDate><link>https://news.ycombinator.com/item?id=11450886</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11450886</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11450886</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>The nice thing about the pointer as mark thingy is that while the offset from the start of the file might change when something is inserted before it, the pointer will remain the same.<p>Anyway this was just an example. I agree that higher level languages (including functional ones) have their own merit. If I would start again today I might consider Rust. But again the LLVM dependency seems kind of scary.<p>Again for me an ideal base system is built upon a kernel, libc (musl), C compiler (cparser/libfirm), coreutils (sbase/ubase, toybox, busybox), editor (vis) etc. Writing a C compiler is non-trivial, but doable. Creating a C++ compiler on the other hand ...<p>A self contained (including terminfo entries etc), statically linked vis binary weights in at around ~800K. This allows usage in resource constrained sytems, I don't think the same would be possible using e.g. Haskell.</p>
]]></description><pubDate>Thu, 07 Apr 2016 19:14:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=11449801</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11449801</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11449801</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>Some things are just more convenient/efficient to do in C. As an example the mark handling[1] used to represent cursors/selection relies on pointer arithmetic.<p>Other things like the syntax highlighting are implemented in Lua which is high level but still has low resource usage.<p>And yes part of the choice is also philosophical. I consider an editor a core system tool which should have minimal dependencies.<p>[1] <a href="https://github.com/martanne/vis/blob/02c6df7cd4bca89506cf1d0e4a08bd719e8f17d3/text.c#L1543" rel="nofollow">https://github.com/martanne/vis/blob/02c6df7cd4bca89506cf1d0...</a></p>
]]></description><pubDate>Thu, 07 Apr 2016 17:49:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=11449144</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11449144</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11449144</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>Yes the lack of binary packages is a known problem.<p>The whole project is still somewhat in flux, feel free to contribute by filling a packaging request to your favorite distribution ...<p>Historically it originates from a community which is comfortable building from source.</p>
]]></description><pubDate>Thu, 07 Apr 2016 17:27:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=11448981</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11448981</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11448981</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>I agree there are a lot of interesting ideas in 9term/sam/acme and Oberon (which was the initial inspiration for the project). In the future I would like to experiment with integrating a few more, but unfortunately time is a limiting factor.</p>
]]></description><pubDate>Thu, 07 Apr 2016 13:05:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=11446891</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11446891</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11446891</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>> Does it build with LuaJIT?<p>I'm not sure. I think a few Lua >= 5.2 dependencies have crept in, but it shouldn't be difficult to fix this if desired.<p>LuaJIT's FFI is indeed very nice, but it is unfortunate that Lua has essentially been forked after the 5.1 release. The current C->Lua interface has been manually written.</p>
]]></description><pubDate>Thu, 07 Apr 2016 12:58:23 +0000</pubDate><link>https://news.ycombinator.com/item?id=11446835</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11446835</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11446835</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>Yes from a design philosophy standpoint vis is closer to kakoune than {neo,}vim. The implementation is quite different though (no C++, no boost, no home grown scripting/extension/syntax highlighting language).</p>
]]></description><pubDate>Thu, 07 Apr 2016 09:55:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=11446052</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11446052</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11446052</guid></item><item><title><![CDATA[New comment by martanne in "Vis: A Vim-Like Text Editor"]]></title><description><![CDATA[
<p>Reposting an answer from a related thread.<p>The main difference is that vis is written from scratch while neovim inherited an old and hard to maintain code base.
This allows vis to experiment with various ideas:<p>- native multiple cursors/selection support<p>- structural regular expression support<p>- different core data structure resulting in efficient large file support<p>- LPeg based syntax highlighting<p>- Lua as an in process extension language<p>- client/server design (not yet implemented)<p>without having to care about backward compatibility and legacy systems. Of course this has also some drawbacks for example there is no existing plugin ecosystem etc</p>
]]></description><pubDate>Thu, 07 Apr 2016 09:46:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=11446019</link><dc:creator>martanne</dc:creator><comments>https://news.ycombinator.com/item?id=11446019</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11446019</guid></item></channel></rss>