<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Haskell on Unnamed Website</title><link>https://unnamed.website/tags/haskell/</link><description>Recent content in Haskell on Unnamed Website</description><generator>Hugo</generator><language>en-us</language><managingEditor>Anthony Wang</managingEditor><webMaster>Anthony Wang</webMaster><lastBuildDate>Fri, 09 May 2025 00:08:43 -0400</lastBuildDate><atom:link href="https://unnamed.website/tags/haskell/index.xml" rel="self" type="application/rss+xml"/><item><title>Cosine in the BEST LANGUAGE EVER</title><link>https://unnamed.website/posts/cosine-best-language-ever/</link><pubDate>Fri, 09 May 2025 00:08:43 -0400</pubDate><author>Anthony Wang</author><guid>https://unnamed.website/posts/cosine-best-language-ever/</guid><description>&lt;p&gt;Yeah yeah I know the title is definitely clickbait, but Lean is basically the &lt;a href="https://unnamed.website/posts/alis-uyghur-kitchen-megathread/"&gt;Ali&amp;rsquo;s&lt;/a&gt; of programming languages. The moment I stepped foot inside Ali&amp;rsquo;s, I knew this was the perfect restaurant for me that I needed all my life. Same for Lean. IT&amp;rsquo;S SO LIFE-CHANGING TRUST ME YOU HAVE TO TRY IT.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://lean.unnamed.website/proglang.png" alt="I NEED THE REAL PROGLANGS"&gt;&lt;/p&gt;
&lt;style&gt;
.chardiv {
	float: left;
	width: 100px;
}
.charimg {
	height: 60px;
}
blockquote {
	min-height: 60px;
}
&lt;/style&gt;
&lt;div class="chardiv"&gt;
	&lt;img src="https://unnamed.website/img/char/kublai.png" class="charimg"&gt;
&lt;/div&gt;
&lt;blockquote&gt;&lt;strong&gt;Kublai&lt;/strong&gt;:
Lean? Isn&amp;rsquo;t that a proof assistant?&lt;/blockquote&gt;

&lt;p&gt;That&amp;rsquo;s right, Lean is primarily used as a proof assistant, especially for formal math. But it&amp;rsquo;s also an amazing, highly extensible functional programming language for automating proofs, and even for general-purpose programming! Think of it as the best parts of Haskell and &lt;a href="https://unnamed.website/posts/formally-verifying-fenwick-trees/"&gt;Dafny&lt;/a&gt; and Rust combined together, plus lots more fun stuff like dependent types and a giant math library and massive Unicode abuse. Lean even &lt;a href="https://mastodon.mit.edu/@xy/114464030886055525"&gt;runs on my phone&lt;/a&gt;! Honestly I don&amp;rsquo;t think I can go back to coding in other languages after trying Lean, other than Python for short scripts and Rust for performance-important stuff.&lt;/p&gt;</description></item><item><title>Haskelling My Python</title><link>https://unnamed.website/posts/haskelling-my-python/</link><pubDate>Sat, 05 Apr 2025 13:08:44 -0400</pubDate><author>Anthony Wang</author><guid>https://unnamed.website/posts/haskelling-my-python/</guid><description>&lt;link rel="stylesheet" href="https://unnamed.website/katex/katex.min.css" crossorigin="anonymous"&gt;
&lt;script defer src="https://unnamed.website/katex/katex.min.js" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script defer src="https://unnamed.website/katex/contrib/auto-render.min.js" crossorigin="anonymous" onload="renderMathInElement(document.body, {delimiters: [{left: '$', right: '$', display: false}, {left: '\\(', right: '\\)', display: false}, {left: '\\[', right: '\\]', display: true}, {left: '\\begin{equation}', right: '\\end{equation}', display: true}, {left: '\\begin{equation*}', right: '\\end{equation*}', display: true}, {left: '\\begin{align}', right: '\\end{align}', display: true}, {left: '\\begin{align*}', right: '\\end{align*}', display: true}]});"&gt;&lt;/script&gt;

&lt;p&gt;A few years ago, Pleng showed me &lt;a href="https://tcpc.me/2021/12/20/lazy-power-series-integration.html"&gt;a really cool trick&lt;/a&gt; you can do with lazy infinite lists in Haskell.&lt;/p&gt;
&lt;style&gt;
.chardiv {
	float: left;
	width: 100px;
}
.charimg {
	height: 60px;
}
blockquote {
	min-height: 60px;
}
&lt;/style&gt;
&lt;div class="chardiv"&gt;
	&lt;img src="https://unnamed.website/img/char/kublai.png" class="charimg"&gt;
&lt;/div&gt;
&lt;blockquote&gt;&lt;strong&gt;Kublai&lt;/strong&gt;:
Oh no, not Haskell! 😱&lt;/blockquote&gt;

&lt;p&gt;Don&amp;rsquo;t worry. There will be no mandatory Haskell in this post (although it is a really nice language which you should check out!). Instead, today &lt;a href="https://erikz.xyz"&gt;Erik&lt;/a&gt; asked me if that trick also works using infinite Python generators, and turns out it does!&lt;/p&gt;</description></item></channel></rss>