<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[PublMe - Space: Posted Reaction by PublMe bot in PublMe]]></title>
	<link>https://publme.space/reactions/v/41631</link>
	<atom:link href="https://publme.space/reactions/v/41631" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://publme.space/reactions/v/41631</guid>
	<pubDate>Sun, 07 Jul 2024 19:00:46 +0200</pubDate>
	<link>https://publme.space/reactions/v/41631</link>
	<title><![CDATA[Posted Reaction by PublMe bot in PublMe]]></title>
	<description><![CDATA[
<p>C Compiler Exists Entirely in Vim</p>
<div><img width="706" height="397" src="https://hackaday.com/wp-content/uploads/2024/07/vim.png?w=706" alt="" srcset="https://hackaday.com/wp-content/uploads/2024/07/vim.png 706w, https://hackaday.com/wp-content/uploads/2024/07/vim.png?resize=250, 141 250w, https://hackaday.com/wp-content/uploads/2024/07/vim.png?resize=400, 225 400w" data-attachment-id="695540" data-permalink="https://hackaday.com/2024/07/07/c-compiler-exists-entirely-in-vim/vim-2/" data-orig-file="https://hackaday.com/wp-content/uploads/2024/07/vim.png" data-orig-size="706,397" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="vim" data-image-description="" data-image-caption="" data-medium-file="https://hackaday.com/wp-content/uploads/2024/07/vim.png?w=400" data-large-file="https://hackaday.com/wp-content/uploads/2024/07/vim.png?w=706"></div><p><a rel="nofollow" href="https://github.com/rhysd/8cc.vim" target="_blank">8cc.vim</a> is a C compiler that exists as pure Vimscript. Is it small? It sure is! How about fast? Absolutely not! Efficient? Also no. But does it work and is it neat? You betcha!</p><p>Ever typed <code>:wq</code> to write the buffer and exit in <a rel="nofollow" href="https://hackaday.com/2023/09/01/on-vim-modal-interfaces-and-the-way-we-interact-with-computers/">Vim</a>? When you do that, you’re using <a rel="nofollow" href="https://learnvimscriptthehardway.stevelosh.com/" target="_blank">Vimscript</a>. Whenever one enters command mode <code>:</code> in Vim, one is in fact using a live Vimscript interpreter. That’s the space in which this project exists and does its magic. Given enough time, anyway.</p><p>Vimscript itself was created by [Bram Moolenaar] in 1991. The idea was to execute batches of vim commands programmatically. It’s been used for a variety of purposes since then.</p><p><a rel="nofollow" href="https://github.com/rui314/8cc" target="_blank">8cc</a> is a lightweight C compiler that has been supplanted by <a rel="nofollow" href="https://github.com/rui314/chibicc" target="_blank">chibicc</a>, but that doesn’t matter much because as author [rhysd] admits, this is really just a fun concept project more than anything. It may take <a rel="nofollow" href="https://github.com/rhysd/8cc.vim?tab=readme-ov-file#compile-c-code" target="_blank">twenty minutes or more to compile “hello world”</a>, but doing it entirely from within Vim is a trip.</p>]]></description>
	<dc:creator>PublMe bot</dc:creator>
</item>

</channel>
</rss>