<?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: teejayRedex</title>
    <description>The latest articles on DEV Community by teejayRedex (@teejayredex).</description>
    <link>https://dev.to/teejayredex</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F816495%2F3b8440aa-f6bf-4c7d-9b27-424f07fe3b04.png</url>
      <title>DEV Community: teejayRedex</title>
      <link>https://dev.to/teejayredex</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/teejayredex"/>
    <language>en</language>
    <item>
      <title>P++: A Language That Speaks Both Interpreter and Compiler</title>
      <dc:creator>teejayRedex</dc:creator>
      <pubDate>Sat, 24 May 2025 03:15:21 +0000</pubDate>
      <link>https://dev.to/teejayredex/p-a-language-that-speaks-both-interpreter-and-compiler-19do</link>
      <guid>https://dev.to/teejayredex/p-a-language-that-speaks-both-interpreter-and-compiler-19do</guid>
      <description>&lt;p&gt;&lt;strong&gt;What if your language could prototype like Python, but run like C?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;That’s the goal behind &lt;strong&gt;P++&lt;/strong&gt;, a new experimental programming language I’ve been building from the ground up. With P++, developers don’t have to choose between ease of use and performance. You get both:&lt;/p&gt;

&lt;h3&gt;
  
  
  🌟 Key Features:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;🧠 &lt;strong&gt;Interpreter Mode&lt;/strong&gt; for fast iteration and debugging&lt;/li&gt;
&lt;li&gt;⚙️ &lt;strong&gt;LLVM Compiler Mode&lt;/strong&gt; for JIT/AOT execution and performance&lt;/li&gt;
&lt;li&gt;🧪 A new REPL shell where you can write and run P++ line by line&lt;/li&gt;
&lt;li&gt;📦 Simple syntax, extensible architecture (custom IR, LLVM backend)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why P++?
&lt;/h3&gt;

&lt;p&gt;Languages like Python make it easy to build ideas quickly, but struggle with speed. Languages like C++ give you power—but come with more complexity and compile times. P++ is designed to &lt;strong&gt;bridge that gap&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Switch between interpreted and compiled modes on the fly. Write something, test it, then turbocharge it when you're ready.&lt;/p&gt;

&lt;h3&gt;
  
  
  What It Looks Like:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;num as int32 = 42
ptr as *int32 = &amp;amp;num

def square(val as int32) -&amp;gt; int32:
    return val * val

class Box&amp;lt;DataType&amp;gt;:
    value as DataType

    def __init__(v as DataType):
        self.value = v

    def get() -&amp;gt; DataType:
        return self.value

# Using inline assembly
def add_asm(a as int32, b as int32) -&amp;gt; int32:
    asm {
        "mov eax, a"
        "add eax, b"
        "ret"
    }

arr as *int32 = malloc(int32, 5)
*arr = 99
free(arr)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In interpreter mode, it's instant. In compiler mode, it’s JIT-ed and executed using LLVM.&lt;/p&gt;

&lt;h3&gt;
  
  
  I’m Inviting You
&lt;/h3&gt;

&lt;p&gt;This is still in early development. I’m putting it out there to &lt;strong&gt;get feedback, suggestions, and collaborators&lt;/strong&gt;. Whether you're into language design, compiler theory, or just curious about new tech, I’d love your take.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;Check out the &lt;a href="https://github.com/itsredx/P-plus-plus/tree/document-project-first-phase" rel="noopener noreferrer"&gt;repo&lt;/a&gt;. Share your thoughts. Let’s build something together.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Would you use a language like P++? What features would you want?&lt;/strong&gt;&lt;/p&gt;




</description>
      <category>llvm</category>
      <category>devtools</category>
      <category>compilers</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to Expose C++ Qt WebView and Window Functions to Python?</title>
      <dc:creator>teejayRedex</dc:creator>
      <pubDate>Thu, 21 Nov 2024 15:23:23 +0000</pubDate>
      <link>https://dev.to/teejayredex/how-to-expose-c-qt-webview-and-window-functions-to-python-5hb0</link>
      <guid>https://dev.to/teejayredex/how-to-expose-c-qt-webview-and-window-functions-to-python-5hb0</guid>
      <description>&lt;p&gt;I'm working on a project where I need to integrate a Qt6 WebView into Python. The WebView should allow dynamic control from Python, including:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Setting the window size and style (e.g., resizing, full-screen,&lt;br&gt;
borderless).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Loading HTML content or a URL dynamically.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Interacting with JavaScript in the WebView.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I Want to Achieve:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dynamically set window properties (e.g., resize(800, 600), borderless mode, etc.).&lt;br&gt;
   Load either:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Raw HTML content (loadHtml).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;A remote URL (loadUrl).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Execute and interact with JavaScript in the WebView (e.g., calling JS&lt;br&gt;
functions or retrieving results).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Expose all these functionalities to Python without relying on PySide&lt;br&gt;
or PyQt due to licensing concerns.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;What I’ve Tried:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I’ve attempted to use pybind11 to expose a custom C++ class that
wraps QApplication and QWebEngineView. Here's an example of my
pybind11 bindings:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;pybind11/pybind11.h&amp;gt;
#include &amp;lt;pybind11/stl.h&amp;gt;
#include &amp;lt;QApplication&amp;gt;
#include &amp;lt;QWebEngineView&amp;gt;
#include &amp;lt;QString&amp;gt;

namespace py = pybind11;

class WebView {
public:
    WebView() {
        int argc = 0;
        char *argv[] = {nullptr};
        app = std::make_unique&amp;lt;QApplication&amp;gt;(argc, argv);
        view = std::make_unique&amp;lt;QWebEngineView&amp;gt;();
    }

    void resize(int width, int height) {
        view-&amp;gt;resize(width, height);
    }

    void setHtml(const std::string &amp;amp;html) {
        view-&amp;gt;setHtml(QString::fromStdString(html));
    }

    void setUrl(const std::string &amp;amp;url) {
        view-&amp;gt;setUrl(QUrl(QString::fromStdString(url)));
    }

    void exec() {
        view-&amp;gt;show();
        app-&amp;gt;exec();
    }

private:
    std::unique_ptr&amp;lt;QApplication&amp;gt; app;
    std::unique_ptr&amp;lt;QWebEngineView&amp;gt; view;
};

PYBIND11_MODULE(qt_webview, m) {
    py::class_&amp;lt;WebView&amp;gt;(m, "WebView")
        .def(py::init&amp;lt;&amp;gt;())
        .def("resize", &amp;amp;WebView::resize)
        .def("setHtml", &amp;amp;WebView::setHtml)
        .def("setUrl", &amp;amp;WebView::setUrl)
        .def("exec", &amp;amp;WebView::exec);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The code compiles fine, and I cannot load basic HTML and URLs in the
WebView from Python due to &lt;code&gt;ImportError: /home/red-x/Documents/GUIEngine/MyQtWebViewApp/qt_webview.cpython-312-x86_64-linux-gnu.so: undefined symbol: qt_version_ta&lt;/code&gt;. However:&lt;/li&gt;
&lt;/ul&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;I cannot tweak window styles (e.g., borderless or full-screen).&lt;br&gt;
Ubuntu&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I can't execute or retrieve JavaScript results from Python.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;I feel my approach isn't complete or robust for all the features I&lt;br&gt;
need.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Constraints&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;No PySide or PyQt: I need a solution without these libraries because&lt;br&gt;
of their licensing restrictions.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Why pybind11?: It fits my requirements for lightweight and&lt;br&gt;
license-compliant bindings.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Questions:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;How can I expose Qt's window and WebView functionalities (e.g.,&lt;br&gt;
styles, JavaScript interaction) to Python using pybind11?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Is there a better way to handle this integration without relying on&lt;br&gt;
PySide or PyQt?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Are there examples or open-source projects that achieve something&lt;br&gt;
similar?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Environment:&lt;/strong&gt;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;OS:  Windows 10 or Ubuntu 20.04
Qt Version: 6.4.2
Python Version: 3.12
Compiler: g++ with C++17
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Any help or suggestions would be greatly appreciated!&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>qt6</category>
      <category>pybind11</category>
    </item>
    <item>
      <title>Do Python developers still create GUI desktop apps? If so, what tools do you use?</title>
      <dc:creator>teejayRedex</dc:creator>
      <pubDate>Thu, 10 Oct 2024 16:31:54 +0000</pubDate>
      <link>https://dev.to/teejayredex/do-python-developers-still-create-gui-desktop-apps-if-so-what-tools-do-you-use-3o3a</link>
      <guid>https://dev.to/teejayredex/do-python-developers-still-create-gui-desktop-apps-if-so-what-tools-do-you-use-3o3a</guid>
      <description>&lt;p&gt;Hey fellow Python devs!&lt;/p&gt;

&lt;p&gt;I’ve been wondering how often people in the community still build desktop GUI applications these days, especially with Python. With web apps and mobile development being so prominent, is there still demand for desktop apps in your work or side projects?&lt;/p&gt;

&lt;p&gt;If you do build desktop apps, what frameworks are you using? Would you be interested in a framework that feels like Flutter but for Python? One that handles all the low-level stuff for you and allows you to focus on building user-friendly interfaces with a similar approach to Flutter's widget system?&lt;/p&gt;

&lt;p&gt;Just curious to hear your thoughts! Would love to know what’s working for you or what challenges you face when building GUIs with Python.&lt;/p&gt;

&lt;p&gt;Looking forward to your insights! 😄&lt;/p&gt;

</description>
      <category>python</category>
    </item>
    <item>
      <title>Yoo Devs, Where’s Your Old Laptop?</title>
      <dc:creator>teejayRedex</dc:creator>
      <pubDate>Mon, 30 Sep 2024 00:24:10 +0000</pubDate>
      <link>https://dev.to/teejayredex/yoo-devs-wheres-your-old-laptop-41c2</link>
      <guid>https://dev.to/teejayredex/yoo-devs-wheres-your-old-laptop-41c2</guid>
      <description>&lt;p&gt;Hey devs! I’m currently teaching a group of passionate students who are eager to learn programming, but most don’t have access to laptops or desktops. If you have an old one lying around that you’re not using, consider donating it! Your unused tech could open up a whole new world for them. 🙌💻 &lt;/p&gt;

</description>
      <category>theycoded</category>
      <category>programming</category>
      <category>developer</category>
      <category>techforgood</category>
    </item>
  </channel>
</rss>
