<?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 Thomas Marchand on Medium]]></title>
        <description><![CDATA[Stories by Thomas Marchand on Medium]]></description>
        <link>https://medium.com/@th0rgal?source=rss-58df789092c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*mAEtvZHC4rg8TlIQlQ3dZA.png</url>
            <title>Stories by Thomas Marchand on Medium</title>
            <link>https://medium.com/@th0rgal?source=rss-58df789092c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 01:56:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@th0rgal/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[Sentenced to Paradise]]></title>
            <link>https://th0rgal.medium.com/sentenced-to-paradise-8743665cbe4d?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8743665cbe4d</guid>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Thu, 25 Sep 2025 12:32:07 GMT</pubDate>
            <atom:updated>2025-09-25T12:32:07.150Z</atom:updated>
            <content:encoded><![CDATA[<p>I remember the certainty I felt, sitting on those university benches just a few years ago. AI was abstract, academic. A clever way to optimize functions. Yes, these techniques could produce stunning results on narrow problems, the way Lagrange interpolation predicts a curve. But it felt nothing like real intelligence. Nothing like <em>our</em> intelligence.</p><p>And yet, in just a few months, everything changed.</p><h3>First Contact</h3><p>The first time I caught a glimpse of this alien mind was with <strong>GitHub Copilot</strong>, around 2021. This auto-complete tool was far more powerful than anything I’d ever seen before. However, I was still a long way from understanding the scale of what was coming. This was a kind of programming sorcery, something that seemed to know the solutions to a lot of problems and how to apply them to situations that were very close to its training data. Nothing more. It was impressive, but far from being truly useful.</p><p>In March 2022, things accelerated. OpenAI announced GPT-3.5, which was only accessible via an API, and I started playing with it. But in November, ChatGPT arrived… At that point, it became more than just a gadget. It was a tool I started using regularly, for drafting emails or writing simple but tedious bits of code.</p><p>The adoption rate was staggering. In a few weeks, every student around me started using it to do their homework. A few months later, <strong>GPT-4</strong> was released, and that’s when it became indispensable. Practically all of my code was, at the very least, AI-assisted.</p><p>This model was so good at playing human that I started to think, without really worrying about it, that with the right tools it could actually take on the role of one. I discovered <strong>LangChain</strong>, started prototyping an assistant… and it worked.</p><p><a href="https://x.com/Th0rgal_/status/1655306642487902222">https://x.com/Th0rgal_/status/1655306642487902222</a></p><h3>The Replacement</h3><p>A year later, we parted ways with a developer. With the arrival of new tools like Cursor that made better use of LLMs as a “raw material,” his role had lost its meaning, most of all for him. His strength was writing code quickly, but he lacked the patience for the finer details… just like GPT, actually. His job had morphed into acting like its human interface.</p><p>Eighteen months later, our team has gone from 6 people to 2. I barely write code anymore. For a long time, my job was to describe, precisely, the approach to take for adding a new feature or designing a piece of software for our developers. Now, I ask the agents that have taken their place directly. And they are slowly starting to take mine, too, requiring less and less direction.</p><p>I’ve believed for a while that AGI, in the sense of an AI that can perform as well as an average human on everyday cognitive tasks, is here. But now, I think no one is safe anymore.</p><p>Given the progress remains staggering, even if it’s no longer exponential, I find reasonable that within my lifetime, and truthfully maybe in just a few years, I will become completely useless.</p><p>That every task I accomplish will just be a clunky, more resource-intensive version of what our machines could have done:</p><ul><li>For every line of code I write, they’ll complete a whole software bugfree</li><li>For every artwork I finish, they’ll create dozens of masterpieces, more vibrant and creative</li><li>And for every meal I cook, theirs will taste better, be healthier and kinder to the planet</li></ul><p>It’s a shame. I really like the feeling of being useful, even more than the idea of leaving a mark, out of some selfish desire. But it’s not the end of the world. I suppose there are worse curses than having no other problems in life except for the lack of them.</p><p>So here’s a reason to work. Not for the grind, but because the window to feel useful is closing. <strong>Fast.</strong></p><p>✦ Originally published on <a href="https://thomas.md/">Thomas.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8743665cbe4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to play the game]]></title>
            <link>https://th0rgal.medium.com/how-to-play-the-game-4e311275384e?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e311275384e</guid>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Wed, 24 Sep 2025 12:01:57 GMT</pubDate>
            <atom:updated>2025-09-24T12:01:57.235Z</atom:updated>
            <content:encoded><![CDATA[<p>Not long ago, I wrote about making peace with the idea of not having free will, of choosing to see life as <a href="https://thomas.md/posts/what-a-fantastic-story">a fantastic story</a> that’s already been written. It’s a nice thought, this idea of being an actor in a play.</p><p>But it leaves you with a very practical question. If you’re just following a script, how do you make sure you’re playing your part well? It would be a shame to be in a great show and not enjoy the performance. So this is my way of trying to get the most out of it.</p><p>I remember when I turned 20, I had this feeling of having been teleported here. As if everything I had lived through before was just the opening cutscene of a video game, and the real game was only just beginning. It was around that time I watched an interview of an old Alain Delon. Here was a man who, by all accounts, had played the game to its fullest: fame, money, the wildest stories. And sure, maybe I just wanted to see myself in one of the most handsome men of all time, but his conclusion reasonated. He spoke with a deep nostalgia. His life, the part where he felt truly alive, seemed as if it had been over in a flash. Now, he was just waiting for death to come.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GKbk_46Sla1WQujO" /></figure><p>Back then, the COVID pandemic had just ended in Europe, and I had only one fear: letting my life slip away. My friends would say there were signs, but I think this is when I really started to go off the rails. A business I’d started with a friend took off, and with money suddenly coming in, I dropped out of my studies, changed countries, traveled to the four corners of the world, and started a bunch of unrelated activities. I learned to fly small planes, then took up horse riding. I ran a marathon. I swam so many kilometers of crawl that the local pool threatened to ban me… It was all a beautiful, chaotic gift.</p><p>But a gift like that comes with a certain weight. A feeling of privilege, and a fear of wasting it. So, to honor the opportunity, I did the only thing that made sense to me: I tried to formalize the chaos.</p><h3>Finding a usecase to these math classes</h3><p>Imagine a timeline with different periods of your life, and a set of rectangles you can place on it. The height of a rectangle represents the fun you get from it, and its length represents the time it costs you. But here’s the catch: some blocks can only be placed in certain periods. Let’s take the “staying in a hostel in the middle of Africa to meet other backpackers” block. It’s a lot of fun, but hard to place in the “old age” segment, especially if the “start a family” block has already been placed. Conversely, some blocks like “taking a luxury train accross Eurasia” are perfectly compatible with being older, so it’s not strategic to place them at the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ucQLmz_i-Y2xlQWphouijA.png" /></figure><p>Even though not as trivial as choosing the highest block, it’s relatively easy to choose what to do using this model. The main difficulty isn’t placing the rectangles, it’s discovering them in the first place. Before going to Zambia out of pure randomness, I couldn’t have even imagined the existence of these hostels filled with curious individuals, or that I would get so much joy from meeting them.</p><p>So here is my conclusion. I’m lucky enough to be able to do a lot of things, and it’s my responsibility to discover as many of these rectangles as I can without forgetting to enjoy the ones that won’t be around forever.</p><p>P.S. In the spirit of discovering new things, I thought I’d share my own list of ‘blocks’ <a href="https://thomas.md/quests">here</a>. Maybe it’ll spark an idea for your own timeline. Also if you want to join, let me know.</p><p>✦ Originally published on <a href="https://thomas.md/">Thomas.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e311275384e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What a fantastic story]]></title>
            <link>https://th0rgal.medium.com/what-a-fantastic-story-0ae90e26bf5b?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/0ae90e26bf5b</guid>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Tue, 23 Sep 2025 01:07:09 GMT</pubDate>
            <atom:updated>2025-09-23T01:41:28.026Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve always thought of knowledge as a puzzle. A single piece can be beautifully detailed, but it isn’t usually very useful on its own. It’s only by connecting them that we end up with a beautiful picture. Sometimes you’re working on one part of the puzzle, building a small island of pieces that seem to fit together perfectly… but you just can’t connect them to the larger structure. A good rule of thumb for getting unstuck is to keep the bigger part and disassemble the smaller one.</p><p>It’s a painful process, isn’t it? That feeling that you’ve wasted so much work, but without it, you can never finish the puzzle.</p><p>In a similar way, sometimes our belief systems or mental models come into conflict, leading to a contradiction. It’s an uncomfortable situation, especially if those systems have played a huge role in our lives. And I think no matter how rigorous we try to be, we all have our inconsistencies.</p><p>It’s a very difficult exercise to find your own. Our mind is brilliant at hiding them from us, at making us believe we’re perfectly coherent beings.</p><p>If you’re willing, pause here for a moment and see what comes up for you.</p><p>I’ve done this a few times myself, usually coming out of it feeling a bit naked, but lighter. I suppose if trees could feel, that’s what it must be like after a gardener has pruned their branches.</p><p>A few months ago, however, I put my finger on an inconsistency I couldn’t resolve. Two large islands of belief, obviously incompatible, but each one so large that I couldn’t choose which to sacrifice. I was pretty distraught for a few weeks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xiMlGW4FiRmVCexM" /></figure><p>The first island is my very Cartesian view of things. The rock-solid belief that every effect has a cause and every cause has an effect. That the simplest explanation is usually the right one. And that just because I like an explanation doesn’t make it any more probable. It’s the idea that every action I take, like writing these lines, is just a physical process, nerve impulses firing, conditioned by the structure of my brain and its inputs, and so on down the line.</p><p>The second island is more spiritual. It concerns my consciousness and my perception of free will. Because even though I can’t find an explanation for it, I have to admit that I am conscious. There is someone (me) who feels like they’re making a choice, feeling emotions… being free. And I don’t just have the impression of it, I believe in it, very strongly. I behave as if I have not only the ability but the responsibility to act on my life. I love to think, I mean really think, more than most people do.</p><p>But it’s clear that if every one of my actions is determined by immutable physical laws, then my consciousness isn’t the source. At best, it’s a consequence of my body’s physical state. Synapses fire, neurons light up, electricity spreads, an entire section of my cortex activates… and it’s all associated with a certain feeling, a certain experience. But it seems completely improbable that a certain experience could, out of nowhere, cause a specific brain activation that leads to an action.</p><p>The problem with all this is that both of these beliefs are useful to me. The scientific, Cartesian model is an excellent map, and my belief in free will is what gives me the will to actually use it to navigate the world.</p><p>It was a few days later that I had a realization. I’d been running for a good hour, late in the afternoon, along the Tagus, the river that flows through Lisbon. The sun was caressing my skin, the endorphins were kicking in. I remember I was listening to “Children of the Sky,” and I had this thought: our world is suspiciously interesting. Compared to most fiction, say, Harry Potter, our history is much wilder, far less believable. And crazier still, the plot elements seem to have been placed throughout the ages so that the interesting part starts now.</p><p>To give a little context, because if you stare at life for too long, you stop really seeing it: Modern humans as we know them appeared about 300,000 years ago, and for most of that time, our lives consisted of finding food and avoiding being eaten by enormous tigers. For the last few millennia, we’ve started building cities and mastering the world. Now a few of us are melting sand into silicon, carving runes into it that no one fully understands, and injecting it with energy harvested by splitting atoms… all to summon a form of intelligence that executes our desires.</p><p><a href="https://x.com/Th0rgal_/status/1913488077722472630">https://x.com/Th0rgal_/status/1913488077722472630</a></p><p>We are on the verge of unleashing genetic engineering, building intelligences that surpass our own, and accessing limitless energy. I couldn’t have dreamed of being born at a more interesting time. I’m so well-positioned to watch the show that I’m starting to think that’s exactly what it is. A show.</p><p>So I’m choosing to do the same with life. To see myself as part of the most interesting story ever told, and simply suspend my disbelief.</p><p><a href="https://x.com/Th0rgal_/status/1930213188156699096">https://x.com/Th0rgal_/status/1930213188156699096</a></p><p>✦ Originally published on <a href="https://thomas.md/">Thomas.md</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0ae90e26bf5b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My vision for Eykar UX]]></title>
            <link>https://th0rgal.medium.com/my-vision-for-eykar-ux-116d0e86911a?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/116d0e86911a</guid>
            <category><![CDATA[starknet]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[gaming]]></category>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Fri, 29 Jul 2022 07:51:39 GMT</pubDate>
            <atom:updated>2022-07-29T07:51:39.729Z</atom:updated>
            <content:encoded><![CDATA[<p>My good friend Louis and I started developing Age of Eykar just under a year ago. I think we took the worst possible approach to creating a good game. Instead of thinking of a good game design and then dealing with the technical constraints to build it, we looked those constraints straight in the eye and asked ourselves what fun things we could build with them. This is how we ended up creating an infinite on-chain world (a thread is coming), a system to manage the temporal movement of resources on this world, combat algorithms, and many other things which were perhaps not necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*_Iw9odeind5fzPJ2EzL6_Q.png" /></figure><p>The thing is, we really enjoyed doing these things, and now we want the project to work. So it’s time to get serious again. To have a good game, using stylish technologies doesn’t help much. What we need is a good gameplay and a great UX. That’s what I’m going to talk about today.</p><h3>How can we improve user experience of on chain games?</h3><p>Having a game on chain has two big benefits:</p><ul><li>Players can be guaranteed that the game will not stop or be completely transformed.</li><li>The game is open by default, anyone can build on it and this opens the door to interoperability.</li></ul><p>But these benefits come at a cost: the worst UX ever. Imagine asking your players to create an account on an exchange and follow a KYC to buy tokens that they will be able to send at their own expense to a first wallet used to send them again via a bridge to a second L2 wallet they have created (taking care to write down the 24 words of their seed safely), all this in order to pay and sign a transaction every few seconds.</p><p>Let’s be realistic, if it stays like this we will be alone on our super cool infinite world.</p><p>I want users to be able to buy an Eykar App on the App Store, like any other mobile game, to create an account that can be recovered by email, and to immediately start interacting without waiting or signing a transaction every few seconds. And I want that without compromising security.</p><h3>The question is: how do we get there?</h3><p>On StarkNet we have a great advantage over competitors: account abstraction. This thing solves almost every problem in the universe. Instead of being managed by a key pair, transactions are managed by a smart contract, which can for example only be called by a certain key pair.</p><p>A few bricks have been developed on top of this concept, and we just have to position them correctly to build the best user experience of the so-called web3. I have selected 3 of them:</p><ul><li>The ability to pay for someone else’s transactions.</li><li>Delegating transactions signature to different session keys.</li><li>MultiCall (merge multiple transactions in a single one).</li></ul><p>Here is how we can use those.</p><h4>Onboarding with a mobile app</h4><p>I’m a big fan of Progressive Web Apps, these websites that you can install like application on many devices and that can leverage native application features, but I have to admit that most users don’t know them and would have an easier time installing a real native game. That&#39;s why our plan is to wrap the Eykar website in a native application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*Pvjhng2IjCZrfo16qJgbwA.png" /><figcaption>Eykar Web App: designed for mobile</figcaption></figure><p>This application would manage a StarkNet wallet and sign transactions. It would have to be paid for via the AppStore because the money collected would subsidize the first transactions of the users through the &quot;pay for someone else&#39;s transactions&quot; feature. We could work on a simple way to “top up” the account when the base funds have all been spent (hopefully with Starknet’s low fees that wouldn’t happen too soon).</p><p>In the same fashion, we could take advantage of the session keys to allow an existing StarkNet user to synchronise his Eykar colonies from his mobile app with his computer browser&#39;s extension. This would involve authorizing a particular key pair to carry out transactions relating only to Eykar on his behalf, but only for a certain time, for example. This way the user could use a mobile application sharing eykar things with his main wallet, without having to sacrifice his security by writing his precious recovery words in the application for example.</p><h4>Optimistic updates: the most elegant way to reduce signatures</h4><p>Even through a mobile wallet, transactions are a hassle. Using session keys could make it possible to stop asking the user to sign each transaction, but this would not be great for security and you would still have to wait for each action to be validated.</p><p>Imagine being able to interact with the game instantly: minting a colony, splitting its human convoy in 4 convoys, send one far away, extend the colony with another, and merge the 2 remaining. Instead of creating a transaction each time, they would be stored in the application’s cache and their result assumed. At the end of the game session, the user would confirm a single transaction: a MultiCall of all previous ones. These are what Francesco call Optimistic Updates, and they have many advantages over sending multiple transactions (even through a session key):</p><ul><li>It&#39;s <strong>faster</strong>: you don&#39;t need to wait for a tx to be performed, you assume it will.</li><li>It&#39;s more <strong>secure</strong>: you still sign a transaction, but this tx doesn&#39;t delegate some ownership right over your wallet, it only approves the transactions you performed.</li><li>It&#39;s <strong>cheaper</strong>. For storage you only pay once even if you wrote multiple times to the same location. For computation, fees are sublinear, which means the bigger your transaction is, the less you pay per instruction.</li></ul><p>Unfortunately, they also have some downsides:</p><ul><li>If there is a single conflicting transaction that happens while you assumed the results of your various transactions, you need to restart from that point.</li><li>Time does not pass while you assume transactions are correct. If you sent a convoy which should take 10min to be spendable again at the beginning of your session, you will need to wait 10min after ending your session, even if this session lasted one hour.</li><li>Most applications are built using blockchain data directly. They will need to be modified to include a cache of assumed actions.</li></ul><p>These are not such terrible points, but they need to be taken into account when building our applications.</p><h3>To conclude</h3><p>User experience is a barrier to the adoption of on-chain gaming. Fortunately, StarkNet is giving us weapons, and by trying to make gamers’ life easier, we might also make it cheaper and more secure. Reading this article again I think there is still a lot to explore with MultiCall and the role of wallets. As transactions become more complex, the possibilities for optimization seem endless. Imagine a wallet that could decode multicalls, reorder and modify the underlying transactions to limit fees. I’m curious to hear your thoughts.</p><p>Thanks to Ismael from Argent, Francesco from ApiBara and Sylve from Briq for their help and ideas.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=116d0e86911a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Eykar Resources Concept]]></title>
            <link>https://th0rgal.medium.com/eykar-resources-concept-2603546865e7?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2603546865e7</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[cairo]]></category>
            <category><![CDATA[starknet]]></category>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Wed, 25 May 2022 09:48:01 GMT</pubDate>
            <atom:updated>2022-05-25T11:40:36.533Z</atom:updated>
            <content:encoded><![CDATA[<p>Or how to represent things that travel through space and time on StarkNet</p><h3>Introduction: wtf is Eykar?</h3><p>It&#39;s a game building on StarkNet where everything happens on an infinite map not stored anywhere but perfectly described by algorithms. It means that if a player decides to go fishing at a specific location, the (smart)contract can very easily verify that it was indeed in the middle of a deep ocean full of fish.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YfMh7EacI4Tbny53BId4ug.png" /><figcaption>An example of a good fishing spot on Eykar</figcaption></figure><p>It&#39;s a strategy game where players control colonies that they can use to conquer new territories, extract resources, train troops and attack each other. All of these game mechanics may seem perfectly normal to you, but there’s a trick. In fact all these actions represent a single generic interaction with the contract.</p><blockquote>Eykar is just a grid covered with virtual resources where each player fights to get the most on his plots</blockquote><p>This interaction is a transfer of resources on the grid into the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHg7_lvZJs0oWpljSX0O6Q.png" /><figcaption>Sending StarkNet socks in the future (2 hours)</figcaption></figure><p>The whole point of the game is to create rules so that the big brains understand which transfers allow them to enrich themselves with the resources of others.</p><h3>How to represent those resources and transfers?</h3><h4>Part 1: naive approach</h4><p>At first we thought that to represent resources stored at specific coordinates of the map …we could simply make a storage function that associates resources with these coordinates. To move them in space we would first replace the resources associated with the start coordinates with empty values and then secondly add the original values to the end coordinate. Finally, to move them in time we could use a bot to delay the second step and wait a certain amount of time before calling our contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*LVhCXdLiOv9qG-Egv2D_zw.png" /><figcaption>not so good idea.jpg</figcaption></figure><p>You’ve probably noticed this already, but there are quite a few issues with this solution:<br>- That’s a lot of writing: replacing a felt by 0 is not free<br>- We have to put in place incentives for someone (a bot) to come and update our data later<br>- We do not know the future conditions of the network: if it is congested does our time flow more slowly or should we subsidize fees for the bot?<br>- We would have to manage a permission system to allow the bot&#39;s callback to run only at the right time (oh no, more writing!)</p><h4>Part 2: Why do we even bother with resources?</h4><p>After questioning our future as cairo developers, we had an idea. Imagine a technique that allows us to pay less fees during transfers, which supports sending resources in the future in a pure and predictive way, which is more flexible and has a somewhat lame name.</p><p>That’s exactly what we did.</p><p>Let me introduce you to the concept of <strong>Convoys</strong> and <strong>Conveyables</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ni8GIrvqL6OFLEs_" /><figcaption>A typical StarkNet user in the wild</figcaption></figure><p>The idea is simple: remove resources from storage and make transfers Eykar’s first class citizens. We no longer call them transfers but convoys to emphasize on the delay required. And resources? Well they are now conveyables because everything that fits in a convoy is a conveyable, be it resources, starknet socks or even a means of travel like a boat.</p><p>Each coordinates is associated with a linked list of convoys id. Each convoy id is itself associated with 3 things: <br>- an owner<br>- an availability date<br>- its content (a list of conveyables)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqiYaoYeJZButNKj_NXcLw.png" /><figcaption>A chained list of convoys (without the owner field)</figcaption></figure><p>The use of linked list makes it easy to remove or add a convoy to a coordinate. Travel in time and space becomes relatively inexpensive, but above all it becomes pure and sure. If the availability field tells you your convoy will be available on such a date, then from that date you can use it, and it will be up to you to decide how much you are willing to pay in blockchain fees to do so.</p><p>To implement this in cairo you will have to use the usual tricks to represent lists in @storage_var. To represent a list, associate an index with a value, and store the list size. To represent a chained list, associate an index with another index. If the last one is zero, you are at the end of your chained list.</p><p>Our implementation is available here: <a href="https://github.com/age-of-eykar/contract/blob/master/contracts/convoys/library.cairo">https://github.com/age-of-eykar/contract/blob/master/contracts/convoys/library.cairo</a><br>This is still work in progress</p><p>In addition to this concept of convoys, we added various associated metrics. By reading the contents of a convoy you can give it a score in terms of strength, resistance, ability to move, etc. Thanks to these metrics, there is no longer any need to interact with the conveyables directly. Say you want to attack a particular building with a part of your army. You can take one of your convoys and <strong>split it into two output</strong> convoys (like UTXOs on bitcoin). The first is sent back to the starting plot and its availability is instantaneous, the second is sent to the destination plot with an availability depending on its speed score and the distance between the two plots. You can then fight with the enemy convoys already present on target plot (if they are still there when the availability threshold has been reached).</p><h4>What&#39;s next?</h4><p>My friend Louis is currently working on the concept of what we call “smart path proofs”. The point is to be able to calculate the availability threshold in a smarter way than simply by multiplying the distance in a straight line by the speed of the convoy. One can imagine that the player could provide specific points from a particular route allowing him to go faster thanks to equipment that is part of his convoy (for example a boat could be necessary to cross a body of water and certain types of boats would make it faster).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TawRyo6P05RzC8oaFzH9vw.jpeg" /><figcaption>Providing a valid optimized path to the Eykar contract</figcaption></figure><p>For my part, I am interested in the means of intercepting a convoy. Since we know which path a convoy takes, it is quite possible to allow a player present in the right place at the right time to engage in combat with it.</p><p>Another point we want to optimize is the splitting of a set of conveyables. Is there a data structure we could use to limit the overwriting? The linked list is not perfectly adapted since we would have to pay quite a lot in some specific cases. We are currently using normal lists so feel free to make suggestions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0A0qt3G0pXX9TorQAZdQJg.png" /></figure><h3>Conclusion</h3><p>Building on StarkNet is cool. I hope this sharing of ideas will be useful to you. If you have any suggestions or questions, don’t hesitate to ask them in the comments, on the StarkNet discord (tag me, my username is th0rgal#8470) or directly on <a href="https://discord.com/invite/zkWV6zVbvX">Eykar’s</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2603546865e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The easiest way to setup a cairo dev environment]]></title>
            <link>https://th0rgal.medium.com/the-easiest-way-to-setup-a-cairo-dev-environment-8f2a63610d46?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f2a63610d46</guid>
            <category><![CDATA[cairo]]></category>
            <category><![CDATA[starknet]]></category>
            <category><![CDATA[tutorial]]></category>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Sun, 10 Apr 2022 10:30:41 GMT</pubDate>
            <atom:updated>2022-04-13T14:30:41.982Z</atom:updated>
            <content:encoded><![CDATA[<p>Cairo is the native language of StarkNet. When I wanted to start playing with it a few months ago I had a lot of trouble setting up my development environment. My laptop was under nixos and my desktop PC under macos (ARM version) which didn’t make things easy. I finally found a solution that works for me and I thought that it could save you time if I share it here.</p><h3>Let’s use NIX.</h3><p>Nix is a cross-platform package manager that utilizes a purely functional deployment model where software is installed into unique directories generated through cryptographic hashes. In particular, it allows you to create separate environments from the rest of your computer described from a simple file. Nixos is a linux distribution that uses NIX for everything, but you can install NIX it in one command on any unix system.</p><h4><strong>Linux</strong></h4><pre>sh &lt;(curl -L https://nixos.org/nix/install) — daemon</pre><h4><strong>Macos</strong></h4><pre>sh &lt;(curl -L https://nixos.org/nix/install)</pre><p>Ensure these commands didn&#39;t change here: <a href="https://nixos.org/download.html">https://nixos.org/download.html</a></p><p>When nix is installed, you should have access to new commands like nix-shell (you may have to restart your terminal). We are going to use nix-shell to open a shell separate from the rest of your computer containing all the tools you will need for your project.</p><h3>Let’s define the environment</h3><p>According to the <a href="https://www.cairo-lang.org/docs/quickstart.html">quickstart of cairo-lang.org</a>, we need to define a python environment and to use a library: gmp. That&#39;s nice because it’s really easy to do with nix (and you can easily change the script to add your own libraries and python packages if you wish).</p><p>You will need two files : shell.nix which will list the binaries to use (python and the gmp library) and requirements.txt: the file that python will use to know which packages to install.</p><p>Get the shell.nix code <a href="https://gist.github.com/Th0rgal/4a44b635ab3639212662ad73f8f95a1e">here</a>.<br>The part you may want to change is this:</p><pre>buildInputs = [<br>pythonPackages.python<br>pythonPackages.venvShellHook<br>gmp<br>];</pre><p>For example if you want to add a different lib or use a specific version of python. You can find the available nix packages <a href="https://search.nixos.org/packages">here</a>.</p><p>For the requirements.txt, this is what you currently need but make sure to check the <a href="https://www.cairo-lang.org/docs/quickstart.html">quickstart of cairo-lang.org</a> in case anything changed:</p><pre>ecdsa<br>fastecdsa<br>sympy<br>cairo-lang</pre><p>If you want to develop contracts for starknet and not just pure cairo, you probably want to add <strong>cairo-nile</strong> to this list.</p><p>This is what your folder should look like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*gg2brVzHTeXt1gnr5MZkIg.png" /></figure><p>To launch the environment you can simply type nix-shell in a terminal open in the folder containing this shell.nix. This will automatically create am env folder (make sure to add it to your gitignore if you are using git).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*1eHvYWDxVUQNPZ2Ra9kP3w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*ldFu7fqr6W62NOb8THzrGQ.png" /></figure><h3>You can now run your first cairo code!</h3><ul><li>Create a file called test.cairo and copy paste <a href="https://gist.github.com/Th0rgal/0b92da3a5dc872d8c16d3ae87ceab0b5">this code</a>.</li><li>Compile it:</li></ul><pre>cairo-compile test.cairo --output test_compiled.json</pre><ul><li>Run it:</li></ul><pre>cairo-run   --program=test_compiled.json --print_output   --print_info --relocate_prints</pre><p>Tada!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*SchCoGkXZL1HdH5ECcK0_g.png" /></figure><p>To exit the shell just type exit.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f2a63610d46" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to detect the undetectable hacked client Aristois]]></title>
            <link>https://th0rgal.medium.com/how-to-detect-the-undetectable-hacked-client-aristois-ad14562e357e?source=rss-58df789092c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad14562e357e</guid>
            <category><![CDATA[minecraft]]></category>
            <category><![CDATA[spigot]]></category>
            <category><![CDATA[cheating]]></category>
            <category><![CDATA[bukkit]]></category>
            <category><![CDATA[teach]]></category>
            <dc:creator><![CDATA[Thomas Marchand]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 12:49:45 GMT</pubDate>
            <atom:updated>2019-06-18T12:49:45.771Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxlnOJVp0NsclogEV_RisA.png" /><figcaption>A propaganda image from <a href="https://aristois.net/">https://aristois.net/</a></figcaption></figure><p>My name is Thomas and I have been developing a solution called <a href="https://www.spigotmc.org/resources/hackedserver-forge-mods-clients-detector-spigot-and-bungee.46485/">HackedServer</a> during three years with the aim of fighting hacked clients on Minecraft. My strategy is to analyze a <a href="https://dinnerbone.com/blog/2012/01/13/minecraft-plugin-channels-messaging/">particular packet</a> related to the identity of a minecraft client. It is quite possible to create a client that would not distinguish with a normal client however the task is complex and the developers often make mistakes, my job is to find them.</p><h3>What was my approach?</h3><p>I started by downloading the cheat in question from the official <a href="https://aristois.net/">website</a>. In the past I was spending hours decompiling the cheats to find something, now the process is a bit faster: I just installed HackedServer on a fresh spigot server and enabled the hard logging option in the settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*kFuX6x462Ww7JyEMQUhV7w.png" /></figure><p>I then logged in the server several times with aristois and minecraft vanilla (the official version of minecraft, without any mods). Here is what I got:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*61e42MEIwvQlpeDHWMyyig.png" /></figure><p>We see that a message is sent to the channel “minecraft:brand” every time but it is not the same when using Minecraft Vanilla or Aristois. All I need to do is ask hackedServer to send an alert when it finds the aristois message.<br>I had the opportunity to chat with an Aristois administrator and apparently this String is related to Easy Minecraft Client, a framework for modifying Minecraft code. It is used almost exclusively by Aristois and other hacked clients. Spotting players using EMC should help the staff to find cheaters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*CFY7zPQTR9AeWBZa3ptu6Q.png" /></figure><p>We can customize the message to help the staff:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/854/1*YkHiofyHyDiHQlKiiPcPVA.png" /></figure><p>If you learned something from this article, I would highly appreciate if you support me by pressing the 👏 button. Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad14562e357e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>