<?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: Arash</title>
    <description>The latest articles on DEV Community by Arash (@arashgl).</description>
    <link>https://dev.to/arashgl</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%2F1400205%2F90e298fa-8c92-4eef-9019-304bdaca5ccb.jpeg</url>
      <title>DEV Community: Arash</title>
      <link>https://dev.to/arashgl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/arashgl"/>
    <language>en</language>
    <item>
      <title>Tauri(rust) vs Wails(go)</title>
      <dc:creator>Arash</dc:creator>
      <pubDate>Mon, 24 Feb 2025 06:14:28 +0000</pubDate>
      <link>https://dev.to/arashgl/taurirust-vs-wailsgo-4pd6</link>
      <guid>https://dev.to/arashgl/taurirust-vs-wailsgo-4pd6</guid>
      <description>&lt;p&gt;When deciding between Wails and Tauri for cross-platform desktop application development, your choice should align with your programming expertise and project requirements.&lt;/p&gt;

&lt;p&gt;If you're proficient in Go and aim to develop a straightforward application without extensive features, Wails is a compelling option. It offers an easier learning curve and setup process, leveraging Go for backend logic and web technologies like HTML, CSS, and JavaScript for the frontend. This combination facilitates rapid development cycles, especially for applications with significant backend components. However, it's important to note that some features, such as multi-window support and notifications, are still under development in Wails. &lt;/p&gt;

&lt;p&gt;If your project demands a feature-rich application with a focus on performance and a smaller bundle size, Tauri stands out. Built with Rust, Tauri provides robust security features and compiles resources into a single binary, resulting in lightweight applications. Its growing community offers extensive support and documentation. Be prepared for a steeper learning curve, especially if you're new to Rust, and anticipate that development iterations may require recompilation for changes.&lt;/p&gt;

&lt;p&gt;Here's a comparison table for more clarity:&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%2Froyuafvy9fc0vs73e8vs.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%2Froyuafvy9fc0vs73e8vs.png" alt="Image description" width="751" height="472"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In summary, your decision between Wails and Tauri should consider your familiarity with Go or Rust and the specific needs of your project. Wails offers simplicity and speed for Go developers building less complex applications, while Tauri provides a comprehensive feature set with enhanced performance for those comfortable with Rust.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Nestjs : Bun vs Nodejs</title>
      <dc:creator>Arash</dc:creator>
      <pubDate>Thu, 24 Oct 2024 17:02:50 +0000</pubDate>
      <link>https://dev.to/arashgl/nestjs-bun-vs-nodejs-350g</link>
      <guid>https://dev.to/arashgl/nestjs-bun-vs-nodejs-350g</guid>
      <description>&lt;h2&gt;
  
  
  Bun vs Node: A Simple HTTP Server Comparison
&lt;/h2&gt;

&lt;p&gt;This is a brief comparison of running a simple nestjs HTTP server using two different JavaScript runtimes: Node.js and Bun.&lt;/p&gt;

&lt;p&gt;Setting Up the NestJS Application&lt;/p&gt;

&lt;p&gt;First, I created a basic NestJS application by running the following command:&lt;/p&gt;

&lt;p&gt;nest new cloud-bot&lt;/p&gt;

&lt;p&gt;To start the server using the Node.js runtime, I ran:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;pnpm start&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;For benchmarking, I used a tool called wrk to measure the server’s performance. Here’s the result when running the server on Node.js:&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%2F4jfnzv3dg29ei5tzzztn.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%2F4jfnzv3dg29ei5tzzztn.png" alt="Image description" width="733" height="234"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The result is fairly decent for a basic “Hello World” application.&lt;/p&gt;

&lt;p&gt;Running the Server with Bun&lt;/p&gt;

&lt;p&gt;Next, I ran the same server using Bun with the following command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;bun run src/main.ts&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here’s the benchmark result for Bun:&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%2Fhiqa9hp4g49aaq4p7bkp.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%2Fhiqa9hp4g49aaq4p7bkp.png" alt="Image description" width="715" height="237"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, Bun is approximately 4x faster in this “Hello World” API benchmark.&lt;/p&gt;

&lt;p&gt;Conclusion&lt;/p&gt;

&lt;p&gt;While Bun shows impressive speed improvements for a simple setup, I encountered several issues when trying to use it in a more complex, real-world application. Due to these challenges, I decided to switch back to Node.js for the time being.&lt;/p&gt;

&lt;p&gt;If you’re wondering whether Bun is better than Node, it has great potential, especially with its fast package manager. However, Bun needs more updates and releases to reach the maturity level of Node.js.&lt;/p&gt;

&lt;p&gt;I hope this helps anyone considering switching to Bun!&lt;/p&gt;

</description>
      <category>nestjs</category>
      <category>bunjs</category>
      <category>node</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
