<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Crimes on Hillel Wayne</title>
    <link>https://www.hillelwayne.com/tags/crimes/</link>
    <description>Recent content in Crimes on Hillel Wayne</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 17 Apr 2023 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="https://www.hillelwayne.com/tags/crimes/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Breaking the limits of TLA&#43; model checking</title>
      <link>https://www.hillelwayne.com/post/graphing-tla/</link>
      <pubDate>Mon, 17 Apr 2023 00:00:00 +0000</pubDate>
      
      <guid>https://www.hillelwayne.com/post/graphing-tla/</guid>
      <description>I haven&amp;rsquo;t written much about TLA+ on the blog since the new learntla went up. Any examples or special topics I think of go there instead. But I recently thought of a cool demo that doesn&amp;rsquo;t quite fit the theme of that book: there are some things you can&amp;rsquo;t easily check with the model checker but can check if you work with the state space as a directed graph.</description>
    </item>
    
    <item>
      <title>Crimes with Python&#39;s Pattern Matching</title>
      <link>https://www.hillelwayne.com/post/python-abc/</link>
      <pubDate>Sun, 31 Jul 2022 00:00:00 +0000</pubDate>
      
      <guid>https://www.hillelwayne.com/post/python-abc/</guid>
      <description>One of my favorite little bits of python is __subclasshook__. Abstract Base Classes with __subclasshook__ can define what counts as a subclass of the ABC, even if the target doesn&amp;rsquo;t know about the ABC. For example:
class PalindromicName(ABC): @classmethod def __subclasshook__(cls, C): name = C.__name__.lower() return name[::-1] == name class Abba: ... class Baba: ... &amp;gt;&amp;gt;&amp;gt; isinstance(Abba(), PalindromicName) True &amp;gt;&amp;gt;&amp;gt; isinstance(Baba(), PalindromicName) False  You can do some weird stuff with this.</description>
    </item>
    
  </channel>
</rss>