Hadi's Notes Zola 2025-12-26T00:00:00+00:00 https://hadilq.com/atom.xml Type Mechanics 2025-12-26T00:00:00+00:00 2025-12-26T00:00:00+00:00 Unknown https://hadilq.com/posts/type-mechanics/ <p><img src="https://hadilq.com/posts/type-mechanics/wallpaper.png" alt="Type Mechanics" /></p> <p>Did you ever wonder if <em>Quantum mechanics</em> is not following Constructivity's principles, then why it works, at least in the calculation level! I mean the "shut up and calculate" approach of the <em>Copenhagen interpretation</em> worked, right? Notice it's mostly referring to the gaps between the computations that don't have comprehensive explanation rather than the computation of the <em>Quantum mechanics</em>. After all, nobody has problem with the calculation part, since they are constructive and boring!</p> <p>Anyway, I hope it'll be clear for you in the end of this post why it even works! The <em>Type Mechanics</em> is inspired by <em>Matrix Mechanics</em> of Heisenberg, and also its predecessor the <em>Statistical Mechanics</em>. I would say that this is the third major reversion of this concept. Obviously, there are some differences, which will probably help us to decide how to experimentally validate them.</p> Structurism 2025-11-01T00:00:00+00:00 2025-11-01T00:00:00+00:00 Unknown https://hadilq.com/posts/structurism/ <p><img src="https://hadilq.com/posts/structurism/structurism.png" alt="Structurism" /> How do we build our theories? Here is the Philosophical framework to build theories in all scales.</p> Constructivity 2025-05-06T00:00:00+00:00 2025-05-06T00:00:00+00:00 Unknown https://hadilq.com/posts/constructivity/ <p><img src="https://hadilq.com/posts/constructivity/wallpaper.png" alt="Constructivity" /></p> <p>How much can we push for consistently answering deep questions? At least based on my efforts!</p> Geometrical Probability (Conditional Probability is Relativistic) 2025-05-04T00:00:00+00:00 2025-05-04T00:00:00+00:00 Unknown https://hadilq.com/posts/geometrical-probability/ <p><img src="https://hadilq.com/posts/geometrical-probability/wallpaper.png" alt="Geometrical Probability" /></p> <p>Since probability is about counting, you can use it to define our space-time, and more!</p> Probability is Relativistic 2025-02-25T00:00:00+00:00 2025-02-25T00:00:00+00:00 Unknown https://hadilq.com/posts/probability-is-relativistic/ <p><img src="https://hadilq.com/posts/probability-is-relativistic/wallpaper.png" alt="Probability is Relativistic" /></p> <p>Probability is depending on the observer's knowledge, obviously!</p> Matrix Fast Fourier transform(MFFT) 2024-11-05T00:00:00+00:00 2024-11-05T00:00:00+00:00 Unknown https://hadilq.com/posts/matrix-fast-fourier-transform/ <p><img src="https://hadilq.com/posts/matrix-fast-fourier-transform/wallpaper.png" alt="Matrix Fast Fourier transform(MFFT)" /></p> <p>Matrix multiplication lies at the heart of modern machine learning, powering everything from neural networks to transformer models. Its optimization can dramatically impact the performance of AI systems, potentially reducing training times from days to hours. Let's explore how we can make this fundamental operation more efficient.</p> Not All codes are liabilities 2024-10-20T00:00:00+00:00 2024-10-20T00:00:00+00:00 Unknown https://hadilq.com/posts/not-all-codes-are-liabilities/ <p><img src="https://hadilq.com/posts/not-all-codes-are-liabilities/bubble-wallpaper.jpg" alt="Dependency inversion principle - part II" /></p> <p>Recently, there is a trend that code is not an asset. Let's think about it!</p> Yet another voting system 2024-09-12T00:00:00+00:00 2024-09-12T00:00:00+00:00 Unknown https://hadilq.com/posts/yet-another-voting-system/ <p><img src="https://hadilq.com/posts/yet-another-voting-system/wallpaper.webp" alt="Yet another voting system" /></p> <p>Do you like to have more diverse parties in elections? Let's think about it.</p> Intocave vs. Exocave 2024-02-09T00:00:00+00:00 2024-02-09T00:00:00+00:00 Unknown https://hadilq.com/posts/intocave-exocave/ <p><img src="https://hadilq.com/posts/intocave-exocave/Pale_Blue_Dot.png" alt="Pale Blue Dot" /></p> <p>I am neither a psychologist nor an economist, but did you notice this problem?</p> Complexity 2024-02-07T00:00:00+00:00 2024-02-07T00:00:00+00:00 Unknown https://hadilq.com/posts/complexity/ <p><img src="https://hadilq.com/posts/complexity/wallpaper.jpg" alt="Complexity" /></p> <p>Let's define a new variable for complexity.</p> Dependency Inversion Principle - part II 2024-01-26T00:00:00+00:00 2024-01-26T00:00:00+00:00 Unknown https://hadilq.com/posts/dependency-inversion-principle-ii/ <p><img src="https://hadilq.com/posts/dependency-inversion-principle-ii/bubble-wallpaper.jpg" alt="Dependency inversion principle - part II" /></p> <p>Here, I have to write this one, because I noticed I didn't cover everything in my previous post <a rel="external" href="https://hadilq.com/posts/dependency-inversion-principle/">Dependency inversion principle</a>.</p> Dependency Inversion Principle 2023-08-28T00:00:00+00:00 2023-08-28T00:00:00+00:00 Unknown https://hadilq.com/posts/dependency-inversion-principle/ <p><img src="https://hadilq.com/posts/dependency-inversion-principle/crystal-ball.jpg" alt="Dependency inversion principle" /></p> <p>This article has two goals. Emphasizing the "Dependency Inversion Principle", DIP, and making it more exciting by explaining who I am and what kind of job I'm looking for!</p> The Inner product 2023-03-05T00:00:00+00:00 2023-03-05T00:00:00+00:00 Unknown https://hadilq.com/posts/inner-product/ <p><img src="https://hadilq.com/posts/inner-product/wallpaper.png" alt="Inner product" /></p> <p>Did you ever come to the point to ask yourself what's the <em>Inner product</em> between a vector and a <em>Bivectors</em>? If you did, you may noticed soon that it doesn't have any meaningful answer yet. I got interested into this problem back when I was studying Mathematical Physics course in my bachelor degree. I wrote my finding to my professor. "wooow! You defined a higher dimensional Levi-Civita-Symbol", he saied. But my invention was much useful than that! This post is the details of that invention. If you know about vectors, and bivectors, etc. I encourage you to read to the end, because this tool is simple and super useful.</p> Opinionated Fermi Paradox Solution 2023-02-05T00:00:00+00:00 2023-02-05T00:00:00+00:00 Unknown https://hadilq.com/posts/opinionated-fermi-paradox-solution/ <p><img src="https://hadilq.com/posts/opinionated-fermi-paradox-solution/wallpaper.png" alt="Opinionated Fermi Paradox Solution" /></p> <p>Where is everybody? <em>Enrico Fermi</em> asked this question in the summer of 1950 with fellow physicists and the <em>Fermi Paradox</em> born. There are immense number of answers to that question but personally I'm not convinced by them. But I cannot stop myself to think about big questions, so here is my answer.</p> Superconductors' puzzle pieces 2023-01-23T00:00:00+00:00 2023-01-23T00:00:00+00:00 Unknown https://hadilq.com/posts/superconductors-puzzle-pieces/ <p><img src="https://hadilq.com/posts/superconductors-puzzle-pieces/wallpaper.png" alt="Superconductors&#39; puzzle pieces" /></p> <p>Since my master thesis, "Holographic Superconductors and Rotating Black Hole", I'm getting thriled by superconductors. It's not the case for everything that I worked on! For instance, I'm not a fan of Ads/CFT that I worked on it back then. Nonetheless, superconductors are so fascinating. High-temperature superconductors could change our life in a way that we'll call it superconductor age, if we wouldn't get extinct by then, the same way that we had stone age, iron age, and we're living in the silicone age. Writing of superconductor age, a piece of puzzle that I'll write here about is a speculation that a version of superconductor age has already passed!</p> Logic Tree in Android 2022-09-23T00:00:00+00:00 2022-09-23T00:00:00+00:00 Unknown https://hadilq.com/posts/logic-tree/ <p><img src="https://hadilq.com/posts/logic-tree/wallpaper.png" alt="Logic Tree in Android" /></p> <p>After introducing Jetpack Compose to the Android ecosystem by Google, people slowly realize that old MVVM architecture, which after trying to tie it up to Compose we call it Android Architecture Components (<a rel="external" href="https://developer.android.com/topic/libraries/architecture/viewmodel.html">AAC</a>) ViewModel, is raising some lifecycle problems. This post is about the problem and its possible solution.</p> Infinity is a paradox 2022-09-13T00:00:00+00:00 2022-09-13T00:00:00+00:00 Unknown https://hadilq.com/posts/infinity-is-a-paradox/ <p><img src="https://hadilq.com/posts/infinity-is-a-paradox/wallpaper.png" alt="Infinity is a paradox" /></p> <p>Infinity is used on daily basis in Math, especially after the Cantor's work. Here, we try to prove its paradoxical nature. Then try to discuss why this happended to us, as a society who developed, and taught, a false idea over centuries! Hopefully in the future, we could avoid such a mistake.</p> Reproducibility 2022-09-07T00:00:00+00:00 2022-09-07T00:00:00+00:00 Unknown https://hadilq.com/posts/reproducibility/ <p><img src="https://hadilq.com/posts/reproducibility/wallpaper.png" alt="Reproducibility can be understood by symmetries in a fractals" /></p> <p>Reproducibility is a very interesting concept that is related to both Physics and Software, which I practice them daily. I thought it would be nice to share my thoughts about why it's important and why should we seek it. In fact at the first glance, reproducibility is an important concept without adding any new ideas to it, because in software, by increasing reproducibility companies can increase their revenue. But it's a little bit deeper than that, and even with such motivation, this concept is not embraced as it should be!</p> Choose 2022-01-17T00:00:00+00:00 2022-01-17T00:00:00+00:00 Unknown https://hadilq.com/posts/choose/ <p><img src="https://hadilq.com/posts/choose/wallpaper.jpg" alt="Don&#39;t choose extinction" /></p> <p>As an observation, I see a lot of people tend to believe on some kind of <em>Conspiracy Theories</em>, which for them it means they believe they don't have any <em>choice</em> in some aspects of their lives that naturally they should have. Again as I observed them, they suffer from some kind of <em>Learned Helplessness</em> to reach to their conclusions. This happens to people when they frequently get disappointed while they try to <em>choose</em> in their lives. So this is my guide for myself to how to <em>choose</em> in my life for the long term achievements.</p> Understanding Quantum Mechanics 2021-11-29T00:00:00+00:00 2021-11-29T00:00:00+00:00 Unknown https://hadilq.com/posts/understanding-quantum-mechanices/ <p><img src="https://hadilq.com/posts/understanding-quantum-mechanices/wallpaper.jpg" alt="Wallpaper" /></p> <p>“I think I can safely say that nobody really understands quantum mechanics,” observed the physicist and Nobel laureate <em><a rel="external" href="https://en.wikipedia.org/wiki/Richard_Feynman">Richard Feynman</a></em>. But he just talked about <em><a rel="external" href="https://en.wikipedia.org/wiki/Copenhagen_interpretation">Copenhagen interpretation</a></em>, right?</p> Are feature flags, build variants, and sample apps related concepts? 2021-06-26T00:00:00+00:00 2021-06-26T00:00:00+00:00 Unknown https://hadilq.com/posts/are-feature-flags-build-variants-and-sample-apps-related-concepts/ <p><img src="https://hadilq.com/posts/are-feature-flags-build-variants-and-sample-apps-related-concepts/wallpaper.png" alt="Wallpaper" /></p> <p>This article focus on Android projects, but the idea can be applied on other kind of projects too. To start, let's explain all these concepts then try to figure out their relationship.</p> The Science 2021-05-01T00:00:00+00:00 2021-05-01T00:00:00+00:00 Unknown https://hadilq.com/posts/the-science/ <p><img src="https://hadilq.com/posts/the-science/wallpaper.jpeg" alt="https://en.wikipedia.org/wiki/File:Fractal_dragon_curve.jpg" /></p> <p>What is the <em>Science</em>? I feel the definition of <em>Science</em> is too complicated that can cause a lot of problems. In current era, it looks like a new kind of religion to some people. At least, folks compare it with religions without noticing they are actually comparing them! They change their everyday life style to what <em>Science</em> is discovering. Shouldn't they just update it gradually and celebrate their freedom? Politicians try to control it in their safe zone like other religions! Do I need to mention the flow of money to universities to prove my point? Any way, why is the <em>Science</em> important? Who are the <em>Scientists</em>?</p> Modularization tip: optimize the Root Module 2021-02-16T00:00:00+00:00 2021-02-16T00:00:00+00:00 Unknown https://hadilq.com/posts/modularization-tip-optimize-the-root-module/ <p><img src="https://hadilq.com/posts/modularization-tip-optimize-the-root-module/wallpaper.png" alt="Wallpaper" /></p> <p>As the modularization of a big app may take years to finish, it’s hard to see the effect of this process on build time any time soon. At iFood we practiced the following method to have a faster rebuild on moularized features.</p> Happy Railway 2021-01-11T00:00:00+00:00 2021-01-11T00:00:00+00:00 Unknown https://hadilq.com/posts/happy-railway/ <p><img src="https://hadilq.com/posts/happy-railway/wallpaper.png" alt="Wallpaper" /></p> <p>This post is on the tail of <a rel="external" href="https://proandroiddev.com/railway-oriented-programming-in-kotlin-f1bceed399e5?gi=27be70582303">Railway Oriented Programming in Kotlin by Antony Harfield</a>. So you need to read it first and continue here. As it’s obvious I really liked it and tried it out. It needs every process have a result like The generic result</p> Imagine World line — Big Picture 2020-10-28T00:00:00+00:00 2020-10-28T00:00:00+00:00 Unknown https://hadilq.com/posts/imagine-world-line-big-picture/ <p><img src="https://hadilq.com/posts/imagine-world-line-big-picture/wallpaper.jpeg" alt="Let&#39;s back to the future" /></p> <p>This article wants to help you imagine the <a rel="external" href="https://en.wikipedia.org/wiki/World_line">World line</a> of particles. Generally, it’s a line from the past to the future of a specific particle. Also I’m sick of watching movies that don’t make sense! They’re still following understanding of time from <a rel="external" href="https://en.wikipedia.org/wiki/Back_to_the_Future">Back to the Future</a> or <a rel="external" href="https://en.wikipedia.org/wiki/Terminator_Genisys">Terminator Genisys</a>, etc! My problem with those movies is the way they deal with <a rel="external" href="https://en.wikipedia.org/wiki/Grandfather_paradox">The grandfather paradox</a>.</p> We cannot live on the Mars 2020-09-04T00:00:00+00:00 2020-09-04T00:00:00+00:00 Unknown https://hadilq.com/posts/we-cannot-live-on-the-mars/ <p><img src="https://hadilq.com/posts/we-cannot-live-on-the-mars/wallpaper.jpeg" alt="Wallpaper" /></p> <p><a rel="external" href="https://en.wikipedia.org/wiki/Gravity_of_Mars">Mars’ surface gravity</a> is <code>3.711 m/s²</code> and <a rel="external" href="https://en.wikipedia.org/wiki/Gravity_of_Earth">Earth’s surface gravity</a> is <code>9.807 m/s²</code>. That’s it! We cannot live on Mars because its surface gravity is half of what we evolved in for millions of years. But we spend billions of dollars for this target. Great! But what if it failed because of a simple fact that we ignored?</p> <p>This article is not about nagging why others would fail, but instead here we want to come up with a simple solution that works best for the big problem we have. Earth is going to be destroyed soon if we continue living this way. This is the problem we all face if we open our eyes. Is this why we should go to other planets? In my mind, no! We need to go to other planets because our population grows exponentially, and we need new resources to make it sustainable.</p> A/B Testing Myths 2020-08-09T00:00:00+00:00 2020-08-09T00:00:00+00:00 Unknown https://hadilq.com/posts/a-b-testing-myths/ <p><img src="https://hadilq.com/posts/a-b-testing-myths/wallpaper.jpeg" alt="Wallpaper" /></p> <p>Do you use more than two versions of implementation when you’re A/B testing? Or do you implement them with some <code>if</code> conditions in your <code>Presente</code>s, <code>ViewModel</code>s, etc? If yes, you’re probably A/B testing wrong!</p>