<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Reagent on Ken Huang</title>
		<link>https://blog.kenhuang.io/tags/reagent/</link>
		<description>Recent content in Reagent on Ken Huang</description>
		<generator>Hugo</generator>
		<language>en</language>
		
			<managingEditor>kenhuang512@gmail.com (Ken Huang)</managingEditor>
		
		
			<webMaster>kenhuang512@gmail.com (Ken Huang)</webMaster>
		
		
		
			<lastBuildDate>Thu, 12 Nov 2026 00:44:21 +0800</lastBuildDate>
		
			<atom:link href="https://blog.kenhuang.io/tags/reagent/rss.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Rewrite of a Flask Web App in Clojure</title>
				<link>https://blog.kenhuang.io/blog/2025-02-22-flask-clojure-rewrite/</link>
				<pubDate>Sat, 22 Feb 2025 22:46:05 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
				<guid>https://blog.kenhuang.io/blog/2025-02-22-flask-clojure-rewrite/</guid>
				<description>&lt;p&gt;&#xA;&lt;em&gt;Before we start, maybe you&amp;#39;re interested in the Sudoku game I&amp;#39;m developing using Clojure &amp;amp; ClojureScript, it&amp;#39;s free. Check it out:&lt;/em&gt;&lt;/p&gt;&#xA;&lt;a href=&#34;https://sudoku.kenhuang.io/?utm_medium=kensblog&amp;utm_source=flaskclojure&#34; target=&#34;_blank&#34; class=&#34;button-link&#34;&gt;👉 Play Sudoku for Free!&lt;/a&gt;&#xA;&lt;div id=&#34;outline-container-headline-1&#34; class=&#34;outline-2&#34;&gt;&#xA;&lt;h2 id=&#34;headline-1&#34;&gt;&#xA;Intro&#xA;&lt;/h2&gt;&#xA;&lt;div id=&#34;outline-text-headline-1&#34; class=&#34;outline-text-2&#34;&gt;&#xA;&lt;p&gt;&#xA;A few years ago, I made a simple web app in &lt;a href=&#34;https://flask.palletsprojects.com/en/stable/&#34;&gt;Flask&lt;/a&gt; to deal with some text processing problems from my daily work. It has two main features:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Feature #1: generating &lt;code class=&#34;verbatim&#34;&gt;compile_commands.json&lt;/code&gt; for GNU Makefile projects written in C/C++ using the output of the &lt;code class=&#34;verbatim&#34;&gt;make&lt;/code&gt; command. Because, unlike CMake, the make command can&amp;#39;t generate it.&lt;/li&gt;&#xA;&lt;li&gt;Feature #2: extract text using Python regex. It&amp;#39;s handy when I feel like sed/awk/grep&amp;#39;s line-oriented processing isn&amp;#39;t enough for the task at hand.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Recently, I was thinking about adding some functionalities to it. But since I&amp;#39;ve put more effort into &lt;a href=&#34;https://clojure.org/&#34;&gt;Clojure&lt;/a&gt; these days, I&amp;#39;d like to use Clojure to do it. So, I spent a few nights rewriting the web app in Clojure.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
