<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: TheSpacetimeDebugger</title>
    <description>The latest articles on DEV Community by TheSpacetimeDebugger (@thespacetimedebugger).</description>
    <link>https://dev.to/thespacetimedebugger</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3950705%2F7aeaafe1-7437-446c-93c4-8a9566240381.png</url>
      <title>DEV Community: TheSpacetimeDebugger</title>
      <link>https://dev.to/thespacetimedebugger</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thespacetimedebugger"/>
    <language>en</language>
    <item>
      <title>Building a Quantum-Safe BB84 Simulation with Qiskit 1.0+ and NumPy</title>
      <dc:creator>TheSpacetimeDebugger</dc:creator>
      <pubDate>Thu, 18 Jun 2026 10:06:08 +0000</pubDate>
      <link>https://dev.to/thespacetimedebugger/building-a-quantum-safe-bb84-simulation-with-qiskit-10-and-numpy-547k</link>
      <guid>https://dev.to/thespacetimedebugger/building-a-quantum-safe-bb84-simulation-with-qiskit-10-and-numpy-547k</guid>
      <description>&lt;p&gt;Hi Dev Community 👋&lt;br&gt;
I’d like to share a recent project: a production-oriented simulation of the BB84 Quantum Key Distribution (QKD) protocol, implemented using the modern Qiskit 1.0+ SDK and NumPy.&lt;br&gt;
With the transition to Qiskit 1.0 and the deprecation of many legacy interfaces, I found that there are relatively few clean and up-to-date reference implementations for experimenting with quantum key distribution. This project was developed to provide a modern baseline for QKD research and educational purposes.&lt;br&gt;
🛠️ Architectural Highlights&lt;br&gt;
• Intercept-Resend Attack Simulation&lt;br&gt;
Models an active eavesdropper (Eve) performing an intercept-resend attack, demonstrating measurement-induced state collapse and the security implications of the No-Cloning Theorem.&lt;br&gt;
• Dynamic QBER Analysis&lt;br&gt;
Continuously evaluates the Quantum Bit Error Rate (QBER). Whenever the error rate exceeds the theoretical security threshold of approximately 11%, the protocol automatically rejects the generated key material.&lt;br&gt;
• Structured CLI Scenarios&lt;br&gt;
Provides clear terminal-based simulations for both secure and compromised communication channels, enabling straightforward comparison of protocol behavior under different conditions.&lt;br&gt;
🔗 Open-Source Repository&lt;br&gt;
The repository includes the complete implementation, mathematical foundations, and usage instructions:&lt;br&gt;
👉 &lt;a href="https://github.com/TheSpacetimeDebugger/quantum-secure-bb84%E2%81%A0%EF%BF%BD" rel="noopener noreferrer"&gt;https://github.com/TheSpacetimeDebugger/quantum-secure-bb84⁠�&lt;/a&gt;&lt;br&gt;
I’d be interested to hear any feedback or suggestions regarding the implementation and overall architecture. 🚀&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuz7glu3af2doppgwvsk7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuz7glu3af2doppgwvsk7.png" alt=" " width="800" height="961"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>security</category>
      <category>opensource</category>
      <category>quantum</category>
    </item>
    <item>
      <title># I Built an AI-Powered Python-to-C++ Transpiler Entirely From My Phone. Here is How (and Why).</title>
      <dc:creator>TheSpacetimeDebugger</dc:creator>
      <pubDate>Thu, 11 Jun 2026 10:40:31 +0000</pubDate>
      <link>https://dev.to/thespacetimedebugger/-i-built-an-ai-powered-python-to-c-transpiler-entirely-from-my-phone-here-is-how-and-why-11hf</link>
      <guid>https://dev.to/thespacetimedebugger/-i-built-an-ai-powered-python-to-c-transpiler-entirely-from-my-phone-here-is-how-and-why-11hf</guid>
      <description>&lt;p&gt;Every developer knows the drill: you love &lt;strong&gt;Python&lt;/strong&gt; for its speed of development, but when it comes to raw execution power, heavy data processing, or low-latency systems, &lt;strong&gt;C++&lt;/strong&gt; is king. &lt;/p&gt;

&lt;p&gt;But what if you could write clean, expressive Python code and instantly transform it into highly optimized, production-ready C++? Even better, what if you could orchestrate this entire infrastructure from a device that fits in your pocket?&lt;/p&gt;

&lt;p&gt;Meet &lt;strong&gt;Astmize&lt;/strong&gt; ⚡ — an open-source, AI-powered Python-to-C++ transpiler with an active execution sandbox. And yes, I coded the entire ecosystem—both the frontend and backend architecture—directly from a &lt;strong&gt;6.67" mobile phone screen&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is a deep engineering breakdown of how it works under the hood.&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ The Architecture: Behind the Scenes of Astmize
&lt;/h2&gt;

&lt;p&gt;Building a complex developer tool on a mobile device requires discarding heavy frameworks and relying on pure, asynchronous engineering. Here is how the orchestration layers interact:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Multi-Model AI Fallback Chain
&lt;/h3&gt;

&lt;p&gt;Static AST (Abstract Syntax Tree) parsing can only get you so far with highly dynamic Python code. To ensure flawless code conversion, Astmize utilizes an &lt;strong&gt;AI Orchestrator via OpenRouter&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;To counter server loads, API limits, or downtime, I built a sequential &lt;strong&gt;Fallback Chain&lt;/strong&gt;:&lt;br&gt;
(Qwen3 Coder -&amp;gt; DeepSeek -&amp;gt; Nemotron -&amp;gt; GPT-OSS ...)&lt;/p&gt;

&lt;p&gt;If the primary model hits a rate limit or experiences high latency, the backend seamlessly routes the payload to the next model in the chain asynchronously, ensuring zero interruption for the user.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Live Cloud Execution Sandboxing
&lt;/h3&gt;

&lt;p&gt;A transpiler is useless if you can’t verify the output. To solve this, I integrated the &lt;strong&gt;Wandbox API&lt;/strong&gt;. Once the code is compiled into C++, the frontend triggers a remote compilation sequence running native GCC. The user receives real-time console feedback, compilation errors, and program outputs directly inside a dark, responsive cyber UI.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Lightweight Mobile-First Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; A robust Python/Flask API hosted on a containerized infrastructure, fortified with strict rate-limiting (60 requests/minute) to handle high-traffic spikes securely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; A single-file, zero-build vanilla JavaScript frontend designed to render beautifully across desktop and mobile browsers alike, complete with user-customizable editor configurations (font mapping, dynamic scaling, and custom tab sizing).&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 Live Demo &amp;amp; Source Code
&lt;/h2&gt;

&lt;p&gt;The entire project is completely free, lightweight, and open-source. You can check it out right now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;🌐 &lt;strong&gt;Live Web Application:&lt;/strong&gt; &lt;a href="https://thespacetimedebugger.github.io/Astmize/" rel="noopener noreferrer"&gt;https://thespacetimedebugger.github.io/Astmize/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📦 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/TheSpacetimeDebugger/Astmize.git" rel="noopener noreferrer"&gt;https://github.com/TheSpacetimeDebugger/Astmize.git&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📝 A Personal Note from the Developer (Behind the Glass)
&lt;/h2&gt;

&lt;p&gt;If you’ve made it this far, thank you. I know most readers skip the closing thoughts, but I wanted to share something real with you. &lt;/p&gt;

&lt;p&gt;I don't own a computer. Every single line of code in &lt;strong&gt;Astmize&lt;/strong&gt;—from handling the asynchronous orchestration tokens down to wrestling with responsive CSS and debugging raw JSON strings—was typed with my thumbs using tools like Pydroid 3 on a small mobile device. &lt;/p&gt;

&lt;p&gt;It was an exhausting, screen-switching nightmare at times, but watching hundreds of developers clone the repo over the last few days has made every thumb cramp worth it. &lt;/p&gt;

&lt;p&gt;If this mobile-built project brings a smile to your face, inspires you, or adds any value to your workflow, &lt;strong&gt;please consider dropping a ⭐ Star on our GitHub Repository&lt;/strong&gt;. It takes you exactly two seconds, but for a solo developer fighting limitations from a phone screen, it is the validation and fuel that keeps this project—and my future startup dreams—alive. &lt;/p&gt;

&lt;p&gt;Thank you for riding along! ⚡&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjavwbvnxdojycuf9ufpr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjavwbvnxdojycuf9ufpr.png" alt=" " width="642" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>webdev</category>
      <category>python</category>
      <category>programming</category>
    </item>
    <item>
      <title>How I saved my Python-to-C++ Transpiler from failing by pivoting to Gemini AI (Built 100% on Mobile) 🚀</title>
      <dc:creator>TheSpacetimeDebugger</dc:creator>
      <pubDate>Mon, 08 Jun 2026 12:56:25 +0000</pubDate>
      <link>https://dev.to/thespacetimedebugger/how-i-saved-my-python-to-c-transpiler-from-failing-by-pivoting-to-gemini-ai-built-100-on-3n4p</link>
      <guid>https://dev.to/thespacetimedebugger/how-i-saved-my-python-to-c-transpiler-from-failing-by-pivoting-to-gemini-ai-built-100-on-3n4p</guid>
      <description>&lt;p&gt;Hey devs!&lt;br&gt;
​A while ago, I started building Astmize, a web tool to transpile Python code into optimized C++. In the first version, I tried building a strict AST parser. Long story short: handling type inference across languages entirely from a mobile IDE was an absolute nightmare, and I almost gave up on the project.&lt;br&gt;
​Instead of quitting, I decided to pivot. I completely rewrote the backend to leverage Gemini AI as the core translation engine. Now, instead of breaking on complex structures, the AI understands the logic and generates clean, optimized C++ code dynamically.&lt;br&gt;
​And yes, the entire stack (Frontend on GitHub Pages, Backend API on Render) was built, debugged, and deployed 100% using my phone.&lt;br&gt;
​Version 2.0 is officially LIVE! I'd love for you guys to break it, test it with some complex Python logic, and give me your brutal feedback.&lt;br&gt;
​🔗 Live Demo: [&lt;a href="https://thespacetimedebugger.github.io/Astmize/" rel="noopener noreferrer"&gt;https://thespacetimedebugger.github.io/Astmize/&lt;/a&gt;]&lt;br&gt;
📂 GitHub Repo: [&lt;a href="https://github.com/TheSpacetimeDebugger/Astmize.git" rel="noopener noreferrer"&gt;https://github.com/TheSpacetimeDebugger/Astmize.git&lt;/a&gt;]&lt;br&gt;
​Let's hear your thoughts!&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Finikvo3bpni8l9ug1dz5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Finikvo3bpni8l9ug1dz5.png" alt=" " width="642" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>programming</category>
      <category>sideprojects</category>
      <category>webdev</category>
      <category>cpp</category>
    </item>
    <item>
      <title>I built an open-source Python to C++ AST Transpiler entirely from my phone</title>
      <dc:creator>TheSpacetimeDebugger</dc:creator>
      <pubDate>Mon, 25 May 2026 12:48:42 +0000</pubDate>
      <link>https://dev.to/thespacetimedebugger/i-built-an-open-source-python-to-c-ast-transpiler-entirely-from-my-phone-1imi</link>
      <guid>https://dev.to/thespacetimedebugger/i-built-an-open-source-python-to-c-ast-transpiler-entirely-from-my-phone-1imi</guid>
      <description>&lt;p&gt;Hey everyone! 👋&lt;/p&gt;

&lt;p&gt;I wanted to share a project I've been pouring my heart into: &lt;strong&gt;Astmize&lt;/strong&gt;. It's an open-source Python-to-C++ transpiler built entirely from my mobile phone (using mobile editors since I don't own a PC at the moment). &lt;/p&gt;

&lt;p&gt;Instead of using basic regex or string replacement, &lt;strong&gt;Astmize&lt;/strong&gt; parses Python code into an &lt;strong&gt;Abstract Syntax Tree (AST)&lt;/strong&gt; and maps the logical nodes directly into structurally equivalent, clean C++ code.&lt;/p&gt;




&lt;h3&gt;
  
  
  🛑 The C++ Design Bottleneck I Had to Solve
&lt;/h3&gt;

&lt;p&gt;While developing the transpiler from my screen, I hit a massive roadblock regarding type emission. As we know, C++ is statically typed and strictly forbids using &lt;code&gt;auto&lt;/code&gt; for non-static class data members without a direct initialization expression, because the compiler must determine the exact object memory layout at compile time.&lt;/p&gt;

&lt;p&gt;In Python, fields are dynamically assigned inside &lt;code&gt;__init__&lt;/code&gt; via arguments (e.g., &lt;code&gt;self.speed = speed&lt;/code&gt;). Initially, my compiler emitted &lt;code&gt;auto speed;&lt;/code&gt; inside the generated C++ class struct, leading to immediate compilation failures.&lt;/p&gt;

&lt;h3&gt;
  
  
  💡 The Solution: Smart Type Inference Engine
&lt;/h3&gt;

&lt;p&gt;To fix this from my phone, I implemented a custom &lt;strong&gt;Type Inference Engine&lt;/strong&gt; in the Python backend that utilizes three core heuristics:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;RHS Node Evaluation:&lt;/strong&gt; Evaluates the Right-Hand Side assignment node to detect concrete primitive constants or explicit type initializers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Variable Tokenization:&lt;/strong&gt; Automatically splits attribute names by underscores and parses individual tokens against an explicit C++ type keyword library (e.g., detecting &lt;code&gt;is_&lt;/code&gt; or &lt;code&gt;has_&lt;/code&gt; prefixes infers a &lt;code&gt;bool&lt;/code&gt;; tokenizing &lt;code&gt;player_speed&lt;/code&gt; maps &lt;code&gt;speed&lt;/code&gt; to &lt;code&gt;int&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Safe Fallback Mechanism:&lt;/strong&gt; If the type remains completely ambiguous, it safely defaults to &lt;code&gt;int&lt;/code&gt; instead of emitting an illegal &lt;code&gt;auto&lt;/code&gt;, ensuring structural layout validity and preventing compilation blocks.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The live dashboard integrates with standard GCC/Clang via the &lt;strong&gt;Wandbox API&lt;/strong&gt; to compile and run the generated C++ code instantly on the fly. &lt;/p&gt;




&lt;h3&gt;
  
  
  🔗 Check it out here:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live Web App:&lt;/strong&gt; &lt;a href="https://thespacetimedebugger.github.io/Astmize/" rel="noopener noreferrer"&gt;https://thespacetimedebugger.github.io/Astmize/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/TheSpacetimeDebugger/Astmize.git" rel="noopener noreferrer"&gt;https://github.com/TheSpacetimeDebugger/Astmize.git&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I'd absolutely love to get your feedback on the generated C++ structure, how you handle strict type emission in metaprogramming/transpilers, and if there are any C++ edge cases I should guard against! &lt;/p&gt;

&lt;p&gt;Drop a ⭐ on GitHub if you find the concept interesting! Happy coding! 🚀&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6sh7etl6mxnim0pvo74g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6sh7etl6mxnim0pvo74g.png" alt=" " width="642" height="589"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>cpp</category>
      <category>showdev</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
