<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Noam Nisanov on Medium]]></title>
        <description><![CDATA[Stories by Noam Nisanov on Medium]]></description>
        <link>https://medium.com/@noam-nisanov?source=rss-f43086a5e822------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lD-_AxGsAvs8Bk11kHnaBQ.jpeg</url>
            <title>Stories by Noam Nisanov on Medium</title>
            <link>https://medium.com/@noam-nisanov?source=rss-f43086a5e822------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:35:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@noam-nisanov/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[No Installs, No Sketchy Binaries: How I Moved MapleStory to the Browser]]></title>
            <link>https://noam-nisanov.medium.com/no-installs-no-sketchy-binaries-how-i-moved-maplestory-to-the-browser-294c5529dbc3?source=rss-f43086a5e822------2</link>
            <guid isPermaLink="false">https://medium.com/p/294c5529dbc3</guid>
            <category><![CDATA[maplestory]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[moms]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[webassembly]]></category>
            <dc:creator><![CDATA[Noam Nisanov]]></dc:creator>
            <pubDate>Sun, 12 Apr 2026 00:26:14 GMT</pubDate>
            <atom:updated>2026-04-12T00:43:01.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*hWeHzw5NctBbevc_VSU0bQ.gif" /></figure><p>MapleStory is one of those games that you don’t just remember.<br>It takes a special place in our heart, and will forever stay a major part of our childhood.</p><p>I wanted to play the old game again with my brother and close friends.<br>But every path back into it felt wrong.</p><ul><li>Windows-only clients.</li><li>Annoying installs.</li><li>Sketchy binaries you’re just expected to trust.</li><li>That combination killed the experience before it even started.</li></ul><p>So I kept coming back to one idea:</p><p>What if the client just… ran in the browser?</p><ul><li>No installs.</li><li>No executables.</li></ul><p>Just open a tab and play.</p><p>This wasn’t a trivial task, MapleStory clients were never designed for this world.</p><p>They were tightly coupled to Windows, desktop tooling, and assumptions that completely break in a browser.</p><p>If this was going to work, it couldn’t be a wrapper.<br>It had to be a real client — built for the web.</p><ul><li>Open source.</li><li>Inspectable.</li><li>Easy to try.</li><li>Easy to share.</li></ul><p>This wasn’t a greenfield project.<br>I started from an existing client that had a lot of functionality — and just as many problems.</p><ul><li>It was built around Visual Studio.</li><li>The browser didn’t exist as a target.</li><li>Everything assumed a desktop environment.</li></ul><p>Supporting WebAssembly meant rethinking everything:</p><ul><li>The build system.</li><li>The runtime.</li><li>Asset loading.</li><li>Networking.</li><li>The entire developer workflow.</li></ul><p>I rebuilt the project around Wasm (WebAssembly), Docker and modernized the toolchain.<br>This made the browser a first-class target instead of an afterthought.</p><p>One thing I <em>*didn’t*</em> want to change was the ecosystem.</p><ul><li>I didn’t want to build a new server.</li><li>I didn’t want to force people into a custom backend.</li><li>There are already existing servers — many of them well maintained.</li><li>The opportunity wasn’t to replace that.</li></ul><p>It was to fix the client.</p><p>The hardest problem by far was asset loading.<br>MapleStory isn’t a small game.<br>Forcing users to download everything upfront would completely defeat the point of bringing it to the web.</p><p>So I built `LazyFS`.</p><p>And honestly, this is where everything clicked.<br>Instead of downloading the entire game before you can play,<br>the client streams assets on demand — only what it needs, when it needs it — and caches them locally. You only download everything once. Even after reloads.</p><ul><li>Start instantly.</li><li>Fetch as you go.</li><li>Reuse everything.</li><li>No install. No waiting.</li></ul><p>That single shift completely changed the experience — <br>This is what makes the browser version feel instant instead of experimental</p><p>Performance was the other bar that mattered.<br>Getting the game to “run” isn’t enough.<br>It has to feel right.</p><ul><li>Responsive.</li><li>Smooth.</li><li>True to the original experience.</li><li>A browser port shouldn’t feel like a downgrade.</li></ul><p>And surprisingly, it doesn’t.</p><p>One of the most common reactions has been how smooth it feels — which is exactly the point.<br>At that moment, the browser stopped being a compromise.<br>It became the best place to run the game.</p><p>This is no longer just a rendering demo.</p><ul><li>Maps work.</li><li>Jobs work.</li><li>Skills work.</li><li>Job advancement works.</li><li>Chat</li><li>Party Quests</li><li>And much more</li></ul><p>There’s still more to do — but this is already a real client, not a proof of concept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*C5oG2enCAZrQf2cEBW4UTQ.png" /></figure><p>There were a few moments that made this feel real.</p><ul><li>First time I saw the game animate.</li><li>The first time I logged in with my own character.</li><li>Hearing that famous startup music for the first time</li></ul><p>That’s when it stopped being an experiment.</p><p>It wasn’t a straight line.</p><p>I rebuilt large parts of the project multiple times.<br>There were points where abandoning it felt like the obvious move.<br>But I wanted something real out of this.<br>Something I could actually use.<br>Something my friends could open and play — instantly.</p><p>That mattered more than the setbacks.</p><p>Open source was part of this from the beginning.<br>The whole problem started with trust.<br>Replacing one opaque client with another doesn’t fix that.<br>People should be able to inspect the code.<br>Understand what it’s doing.<br>Build on top of it.<br>That’s the point.</p><p>Accessibility is the real win here.</p><p>Trying this kind of game again used to mean:</p><ul><li>Install a client.</li><li>Hope it works.</li><li>Hope it’s safe.</li><li>Hope your friends go through the same process.</li></ul><p>Now it’s:</p><ul><li>Open a link.</li><li>Play.</li></ul><p>What started as a personal frustration turned into something bigger:</p><ul><li>An open-source MapleStory client.</li><li>Running in the browser.</li><li>Actually playable.</li></ul><p>And this is just the beginning.</p><p>And because it matters:<br>This project does not include MapleStory assets.<br>Those belong to Nexon.</p><p>Thank you for reading,<br>Noam Nisanov</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=294c5529dbc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tackling Data Loss Prevention (DLP) Systems with Regex]]></title>
            <link>https://noam-nisanov.medium.com/tackling-data-loss-prevention-dlp-systems-with-regex-e7466dccef16?source=rss-f43086a5e822------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7466dccef16</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Noam Nisanov]]></dc:creator>
            <pubDate>Wed, 01 Feb 2023 17:31:59 GMT</pubDate>
            <atom:updated>2023-02-01T17:35:31.713Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Loss Prevention (DLP) systems are systems that are tasked with detecting data leakage or destruction of confidential data.</p><p>For DLP systems to work they are required to handle huge amounts of data in search of a possible breach.</p><p>A basic way to try and identify sensitive data is to look for sensitive information in all of the content.</p><p>For instance, look for:</p><ul><li>employee names</li><li>id numbers</li><li>customer contracts</li><li>employee phone numbers</li><li>salaries</li><li>passwords</li><li>addresses</li><li>etc…</li></ul><p>Let’s take a look at how we can enforce employees names. We want to detect our employee Noam Nisanov, how might we search for his name?</p><p>We could make an exact match for all of our employees, but this approach quickly appears flawed. What if the name is written differently?</p><p>For instance:</p><ul><li>Noam Nisanov</li><li>Noam-Nisanov</li><li>NoamNisanov</li><li>Noam Nisanov</li><li>Noam<br>Nisanov (new line)</li><li>Noam, Nisanov</li></ul><p>It could even be written vice versa — Nisanov Noam, Nisanov-Noam, NisanovNoam etc…</p><p>It’s very clear that there are infinite different ways to write employee names, so no exact matching could work.</p><p>A much better way to detect names would be with the help of regexps, with that, we could detect names rather easily: \b(Noam[^\a]*Nisanov)\b or \b(Nisanov[^\a]*Noam)\b</p><p>To detect sensitive content we could automatically generate regexps for all instances of sensitive information that we’ve mentioned before.</p><p>For instance:</p><pre># Employee Noam Nisanov<br>\b(Noam[^\a]*Nisanov)\b<br>\b(Nisanov[^\a]*Noam)\b<br><br># Employee Adam Smith<br>\b(Smith[^\a]*Adam)\b<br>\b(Adam[^\a]*Smith)\b<br><br># Employee X phone number<br>012-?1234567<br><br># Contractor address<br>221C[^\w]*Baker[^\w]*Street<br><br># Employee Id<br>ID_112<br>ID_113<br>ID_114<br><br>...</pre><p>After we generated all the regexps, we can join them together with alternation and start searching documents to match them.</p><p>There are a few problems that arise from that issue:</p><ul><li>Python Regex Engine performs rather poorly using alternations</li><li>No way to tell which regex was found, or to what the match relates to (Employee name, phone number, etc…)</li><li>No ability to interact with Python Regex Engine during matching process — 0 ability to add logic to the matching process:<br>- Say we want to only find up to N matches before we stop matching to avoid wasting CPU time.<br>- Assuming we deal with very large documents, we cannot update on the fly that a match was made during the regex matching process — High latency</li></ul><h3><strong>SAR — Event Driven Regex Engine</strong></h3><p>SAR (Simple Api for Regexps) is a Regex Engine that is designed to provide:</p><p><strong>(NOTE: </strong>SAR api is different then Python API. Please take a look at <a href="https://github.com/nmnsnv/regexp_sar/">SAR homepage</a> for documantation)</p><ul><li>Very high performance</li><li>Match many regexps on a single run</li><li>Highly interactive matching process — Interact with the Regex Engine while its running</li><li>Event Driven regexps:<br>- Every regex is added with it’s unique handler<br>- The handler will be called on every match of that handler<br>- The handlers are raised in the same order they matched on the text</li></ul><p>With SAR, we’re able to deal with the flaws presented before:</p><ul><li>Very high performance compared to Python native Regex Engine (<strong>more than x150 times on exact match</strong>):<br>- Code found in <a href="https://github.com/nmnsnv/regexp_sar/blob/master/docs/introduction.md">Introduction Post</a></li><li>Every match, the regex which caused the match is known<br>- We can stop matching after N matches<br>- Notify that a match is made after each match is made</li></ul><pre>from regexp_sar import RegexpSar<br><br>sar = RegexpSar()<br><br>sar.add_regexp(&quot;Noam\\s*Nisanov&quot;, lambda from_pos, to_pos: print(&quot;Match &#39;Noam Nisanov&#39;&quot;))<br>sar.add_regexp(&quot;Adam\\s*Smith&quot;  , lambda from_pos, to_pos: print(&quot;Match &#39;Adam Smith&#39;&quot;))<br><br># prints: Match &#39;Noam Nisanov&#39;<br>sar.match(&quot;This text contains Noam Nisanov&quot;)<br><br># prints: Match &#39;Adam Smith&#39;<br>sar.match(&quot;This text contains Adam Smith&quot;)<br><br># NOTE: print order - same order as found in text<br># prints: Match &#39;Adam Smith&#39;<br># prints: Match &#39;Noam Nisanov&#39;<br>sar.match(&quot;This text contains Adam Smith first, then Noam Nisanov&quot;)<br><br># NOTE: print order - same order as found in text<br># prints: Match &#39;Noam Nisanov&#39;<br># prints: Match &#39;Adam Smith&#39;<br>sar.match(&quot;This text contains Noam Nisanov first, then Adam Smith&quot;)</pre><ul><li>We can interact with the Regex Engine while it’s running</li></ul><pre>from regexp_sar import RegexpSar<br><br>def alert_data_leak(regexp_name):<br>    print(f&quot;CRITICAL MATCH: {regexp_name}&quot;)<br><br>max_match_amount = 3<br>sar = RegexpSar()<br><br>regexps = [<br>    # Employee name<br>    &quot;Noam\\^\\w*Nisanov&quot;, # \^\w* means not \w* (\^ is not)<br><br>    # Employee phone number<br>    &quot;012\\^\\w*1234567&quot;,<br><br>    # Employee address<br>    &quot;221C^\\w*Baker\\^\\w*Street&quot;,<br><br>    # All employee Ids<br>    &quot;ID_112&quot;,<br>    &quot;ID_113&quot;,<br>    &quot;ID_114&quot;,<br>]<br><br>match_amount = 0<br>def gen_callback(regexp_name):<br>    def count_match(from_pos, to_pos):<br>        global match_amount<br>        match_amount += 1<br>        alert_data_leak(regexp_name)<br>        if match_amount == max_match_amount:<br>            print(&quot;Too many matches, stopping&quot;)<br>            sar.stop_match()<br>    return count_match<br><br>for r in regexps:<br>    sar.add_regexp(r, gen_callback(r))<br><br>match_str = &quot;&quot;&quot;<br>Full Name: Noam Nisanov<br>Phone number: 012-1234567<br>Address: 221C, Baker-Street, London<br>Employee Id: ID_113<br><br>colleagues: ID_112, ID_114<br>&quot;&quot;&quot;<br><br>sar.match(match_str)<br># prints<br># CRITICAL MATCH: Noam\^\w*Nisanov<br># CRITICAL MATCH: 012\^\w*1234567<br># CRITICAL MATCH: ID_113<br># Too many matches, stopping</pre><p>If you’d like to lean more, please take a look at:</p><ul><li><a href="https://github.com/nmnsnv/regexp_sar">The Project Homepage</a></li><li><a href="https://medium.com/@noam-nisanov/new-event-driven-regexp-engine-6a91baadc08e">What is SAR</a></li><li><a href="https://www.reddit.com/r/regex/comments/kslu6o/practical_example_of_my_new_event_driven_regex/">Practical example where SAR is really helpful with code examples</a></li></ul><p>Feel free to contact me at!</p><p>Thanks!<br>Noam Nisanov<br>noam.nisanov@gmail.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Org9ScM3Z9BPmO-HgvGlNw.png" /><figcaption>SAR</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7466dccef16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A new Object Oriented System for Python (Kisa)]]></title>
            <link>https://noam-nisanov.medium.com/a-new-object-oriented-system-for-python-kisa-baed551fface?source=rss-f43086a5e822------2</link>
            <guid isPermaLink="false">https://medium.com/p/baed551fface</guid>
            <category><![CDATA[object-oriented]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Noam Nisanov]]></dc:creator>
            <pubDate>Wed, 11 Jan 2023 23:46:15 GMT</pubDate>
            <atom:updated>2023-01-11T23:49:10.411Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone,</p><p>I am a Python programmer for quite a while and although Python makes development easier and faster in a lot of ways, there is an area that always seemed that was kept behind even though it was widely used by the Python community, and that thing I’m talking about is Pythons native Object Oriented System.</p><p>While Java or C# or even C++ has an Object Oriented system that support attribute type enforcement, interfaces and abstract classes, Python can somewhat provide those things, but without any enforcement at all.</p><p>That always seemed to me a shameful thing, because Python in many ways is a very powerful language, but that also makes it prone to errors. For instance, I’ve had many bugs in Python when I was trying to assign a value to the wrong attribute because I simply misspelled it’s name by one character (e.g. namee instead of name).</p><p>Another issue that seemed problematic to me is that there are a lot of repetitive tasks we do when creating classes that could be automated as well, from constructors, type enforcement, lazy attributes to the creation of getters/setters (While I’m aware of the @property decorator, I always preferred get/set methods). Granted, Python 3.7 introduced the @dataclass classes, they are very simplistic — No type enforcement, default values assignement is basic at best (You cannot call a method to assign their default values), let alone speak about lazy attributes, or final attributes.</p><p>For that reason, I’ve decided to create a new Object Oriented System for Python — Kisa. Kisa supposed to bring many improvements over Pythons native Object Oriented System and that includes:</p><ul><li>Auto generated getters/setters</li><li>Auto generated constructors</li><li>Default attributes — Can be initialized from instance method</li><li>Lazy attributes</li><li>Attribute type support</li><li>Abstract classes</li><li>Interfaces</li><li>Enforcement of inheritance</li><li>Static attributes</li><li>Static methods</li><li>Attribute modifiers — Add hooks to attribute/method call before the call, around the call or after it was called</li><li>Allow attributes to be None or not</li><li>Make attributes final</li><li>Decide if attributes are required by the constructor or not</li><li>Many more</li></ul><p>I believe Kisa can and will make development in Python faster to write, maintain, better organized, and safer.</p><p>A very basic example of a Kisa class:</p><pre>import kisa<br><br>class Person(metaclass=kisa.Class):<br>    firstname = kisa.Info(type=str,  required=True, final=True)<br>    lastname = kisa.Info(type=&quot;str&quot;, required=True, final=True)<br>    age = kisa.Info(type=int, required=True)<br>    friends = kisa.Info(type=list, default=lambda: [])<br><br>    def fullname(self):<br>        return f&quot;{self.firstname()} {self.lastname()}&quot;<br><br>    def birthday(self):<br>        # Getter<br>        new_age = self.age() + 1<br><br>        # Setter<br>        self.age(new_age)<br><br># # raises Exception: &quot;firstname&quot; is Missing in instance creation for class Person<br># noam = Person()<br><br>noam = Person(firstname=&quot;Noam&quot;, lastname=&quot;Nisanov&quot;, age=22)<br><br># raises Exception: Tried to modify a final attribute &quot;firstname&quot;<br># noam.firstname(&quot;Generic&quot;)<br><br># raises Exception: &quot;age&quot; must be of type: &lt;class &#39;int&#39;&gt;<br># noam.age(&quot;bla bla&quot;)<br><br>print(f&quot;First name: {noam.firstname()}&quot;) # prints &quot;First name: Noam&quot;<br>print(f&quot;Last name: {noam.lastname()}&quot;) # prints &quot;Last name: Nisanov&quot;<br>print(f&quot;Full name: {noam.fullname()}&quot;) # prints &quot;Full name: Noam Nisanov&quot;<br><br>print(f&quot;Current age: {noam.age()}&quot;) # prints &quot;Current age: 22&quot;<br>print(f&quot;Birthday!&quot;) # prints &quot;Birthday!&quot;<br>noam.birthday()<br>print(f&quot;New age: {noam.age()}&quot;) # prints &quot;New age: 23&quot;</pre><p>For more information, please take a look at the project GitHub</p><p><a href="https://github.com/nmnsnv/kisa">GitHub - nmnsnv/kisa: Kisa is an advanced, comprehensive Object Oriented System written for Python</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bo2OPixdsnNtrLH1pwixzg.png" /></figure><p>Thanks<br>Noam Nisanov (noam.nisanov@gmail.com)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=baed551fface" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Event Driven Regexp Engine]]></title>
            <link>https://noam-nisanov.medium.com/new-event-driven-regexp-engine-6a91baadc08e?source=rss-f43086a5e822------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a91baadc08e</guid>
            <category><![CDATA[regex]]></category>
            <category><![CDATA[modules]]></category>
            <category><![CDATA[pip]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Noam Nisanov]]></dc:creator>
            <pubDate>Sat, 02 Jan 2021 21:24:11 GMT</pubDate>
            <atom:updated>2021-01-02T21:24:11.836Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello everyone,<br> I have written a python regular expression engine called “SAR” which takes a different approach from current regexp engines by providing an event driven regexp engine — this means that for each regexp we want to match, we also append a callback which will be called upon it’s match on the text in the same order in which the matched text occurred in the text, allowing us to handle that match knowing exactly what regexp was caught and append context into that regexp match, which gives us much more flexibility in writing regexps.</p><p>When SAR was created, it was designed with emphasize on the following points:</p><ol><li>It is built to handle many regexps together (can handle very large numbers, above millions) to allow very high performance while also keeping track of which regexp was caught — which differs from alternation since you cannot know which regexp was caught among multiple regexps.<br> also, it seems to perform much faster then python native regexp engine with alternation (on benchmark running on my own pc, I’ve managed to get in SAR <strong>more then 150x times</strong> better performance then in python native regexp engine (code is in the post I link below).</li><li>It is designed to offer a much better interactivity with the regexp engine itself, while current regexp engines barely allow us to interact with them, SAR embraces the interactions during the matching process, every time there is a match, a handler will be called which is unique for that specific regexp that was caught allowing us to decide what we want to do with that match and thus bring much more flexibility to us</li></ol><p>With SAR, we are now able to append context to our regular expressions, which was previously very hard to achieve, and aside of the performance boost, this alone could prove itself very useful.</p><p>for more information, please read my post explaining SAR in greater detail:</p><p><a href="https://github.com/nmnsnv/regexp_sar/blob/master/docs/introduction.md">https://github.com/nmnsnv/regexp_sar/blob/master/docs/introduction.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a91baadc08e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>