<?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>Forem: Aryan Garg</title>
    <description>The latest articles on Forem by Aryan Garg (@aryan401).</description>
    <link>https://forem.com/aryan401</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%2F922272%2F5cc4c158-f02a-445f-9bb5-7f40ddbe56ee.png</url>
      <title>Forem: Aryan Garg</title>
      <link>https://forem.com/aryan401</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aryan401"/>
    <language>en</language>
    <item>
      <title>Mojo Programming Language: The Future of Data Science?</title>
      <dc:creator>Aryan Garg</dc:creator>
      <pubDate>Sun, 14 May 2023 02:30:39 +0000</pubDate>
      <link>https://forem.com/aryan401/mojo-programming-language-the-future-of-data-science-352m</link>
      <guid>https://forem.com/aryan401/mojo-programming-language-the-future-of-data-science-352m</guid>
      <description>&lt;p&gt;In recent years, the field of data science has exploded in popularity. With the ever-increasing amount of data being generated, there is a growing demand for professionals who can collect, analyze, and interpret this data. However, one of data scientists' most significant challenges is the lack of a suitable programming language.&lt;/p&gt;

&lt;p&gt;Python is the most popular programming language for data science, but it has some significant limitations. For example, Python is inefficient, making it difficult to train large machine-learning models. Additionally, Python is unsuited for writing low-level code, often necessary for working with AI hardware.&lt;/p&gt;

&lt;p&gt;This is where Mojo comes in. Mojo is a new programming language that was designed specifically for data science. It combines Python's usability with C's performance, making it the ideal language for developing and deploying AI applications.&lt;/p&gt;

&lt;h2&gt;
  
  
  Features of Mojo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Performance:&lt;/strong&gt; Mojo is up to &lt;strong&gt;35,000&lt;/strong&gt; times faster than Python, making it possible to train large machine-learning models in a fraction of the time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Flexibility:&lt;/strong&gt; Mojo is a general-purpose programming language that can be used for various tasks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Ease of use:&lt;/strong&gt; Mojo has a clean syntax that is easy to learn and use.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Community support:&lt;/strong&gt; Mojo has a strong community of developers constantly adding new features and improvements.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Uy_otLut--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://forums.fast.ai/uploads/default/optimized/3X/3/4/3469e0355fff434928bb1134b7b572d9b3b0033c_2_690x329.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Uy_otLut--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://forums.fast.ai/uploads/default/optimized/3X/3/4/3469e0355fff434928bb1134b7b572d9b3b0033c_2_690x329.jpeg" alt="Logo of Modular, the company behind Mojo" width="690" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Mojo Might be a paradigm shift in data science
&lt;/h2&gt;

&lt;p&gt;Mojo has the potential to revolutionize the field of data science by providing a powerful and flexible programming language that is well-suited for developing and deploying AI applications. With its speed, efficiency, and ease of use, Mojo can help data scientists to be more productive and to create more powerful AI models.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current Drawbacks
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mojo is still under development:&lt;/strong&gt; Mojo is a relatively new programming language, and it is still under development. This means there may be some bugs or limitations that have not yet been addressed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mojo is not as widely adopted as Python:&lt;/strong&gt; Mojo is not as widely adopted as Python, which means that fewer resources may be available for learning and using the language.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Mojo is not as well-suited for some tasks as Python:&lt;/strong&gt; Mojo is a general-purpose programming language but not as well-suited for some tasks as Python. For example, Mojo is not as good at writing web applications as Python.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where you can check out the language
&lt;/h2&gt;

&lt;p&gt;The Mojo programming language is still under development but is available for preview on the Modular website. To learn more about Mojo, visit the Modular website or join the Mojo community on Discord.&lt;/p&gt;

</description>
      <category>new</category>
      <category>mojo</category>
      <category>datascience</category>
      <category>python</category>
    </item>
    <item>
      <title>So I tried Carbon...</title>
      <dc:creator>Aryan Garg</dc:creator>
      <pubDate>Fri, 09 Sep 2022 05:22:03 +0000</pubDate>
      <link>https://forem.com/mlsc_tiet/so-i-tried-carbon-3k7g</link>
      <guid>https://forem.com/mlsc_tiet/so-i-tried-carbon-3k7g</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Carbon &lt;em&gt;(/ˈkɑːb(ə)n/)&lt;/em&gt; &lt;em&gt;noun.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The chemical element of atomic number 6, a non-metal with two main forms (diamond and graphite), occurs in impure form in charcoal, soot, and coal.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Carbon isn't just atomic number 6, haunting us in General Organic Chemistry, but now is a programming language developed by google to eventually be used over the Legendary (and age-old) language C++ *Dramatic music intensifies*. &lt;br&gt;
With the help of a few straightforward programs written in this article, we will try to understand and learn the language. We would also try to understand why Google (did I forget to mention Google made the language) even needed to create Carbon and why it might be time for our old friend C++ to bid farewell.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Carbon?
&lt;/h2&gt;

&lt;p&gt;C++ is a monster of a programming language. First built in 1985, the creator of C++ (Bjarne Stroustrup) has stated, "Within C++, there is a much smaller and cleaner language struggling to get out." The problem with changing or evolving C++ today is that it is an essential part of most code bases that it doesn't make sense to dramatically change how the language functions for the sake of changing technology. C++ focuses more on standardization rather than design functionality because of this reason. Carbon was designed not as a substitute for C++. Rather than an attempt to incrementally evolve C++, it is designed around interoperability with C++ and large-scale adoption and migration for existing C++ codebases and developers. &lt;/p&gt;

&lt;p&gt;As part of the documentation of Carbon, it states that this new, more dynamic language would need to have certain features, which include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Performance matching C++&lt;/strong&gt;an essential property for our developers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Seamless, bidirectional interoperability with C++&lt;/strong&gt;, such that a library anywhere in an existing C++ stack can adopt Carbon without porting the rest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A gentle learning curve&lt;/strong&gt; with reasonable familiarity for C++ developers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Comparable expressivity&lt;/strong&gt; and support for existing software's design and architecture.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scalable migration&lt;/strong&gt;, with some level of source-to-source translation for idiomatic C++ code.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We can also observe how specific newer languages like Kotlin and Typescript have been a medium for change for their older counterparts (Java and JavaScript, respectively). Google wants to do that with C++ by Introducing Carbon.&lt;/p&gt;

&lt;p&gt;Carbon is still an experimental language and by no means ready to be used in real-world applications, and it won't be for a reasonably long time, but it doesn't hurt to try to use it and add another language you know how to "Hello World" in.&lt;/p&gt;
&lt;h2&gt;
  
  
  Installing Carbon and its Compiler
&lt;/h2&gt;

&lt;p&gt;Since Carbon is in such early stages of development, it isn't easy to use it on your local machine. For Windows, it's an even longer procedure since we have to install brew through WSL (Windows Subsystem for Linux). Assuming you have WSL installed with Ubuntu as your primary Linux Operating System, we can now move forward with installing brew and then ultimately installing Carbon. &lt;/p&gt;
&lt;h3&gt;
  
  
  Installing Homebrew
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Click &lt;a href="https://brew.sh/" rel="noopener noreferrer"&gt;here&lt;/a&gt; and copy the installation command on the webpage. Open your Ubuntu environment in WSL and paste the command there. [Takes 5-10 mins]&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You might be required to enter your password during the previous step. I had to run this command twice as I got multiple fatal errors during this step.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;After the command runs successfully, scroll until you see a section called "Next Steps." Copy and paste the commands in the order they are given into the terminal. They will look like the image below:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fras3lzxeyxwyn9rbjcpm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fras3lzxeyxwyn9rbjcpm.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Next in line is to install the build-essentials of homebrew, which can be done with &lt;code&gt;sudo apt-get install build-essentials&lt;/code&gt; [Takes 3-5 mins]&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, we will install gcc. Install it using the &lt;code&gt;brew install gcc&lt;/code&gt; command [Takes 5-10 mins]&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I ran into another error where my homebrew-core was "not tapped correctly," which I figured out by running &lt;code&gt;brew doctor&lt;/code&gt;. It gave me the necessary commands to fix the error, after which &lt;code&gt;gcc&lt;/code&gt; installation was easy as pie.&lt;/p&gt;
&lt;h2&gt;
  
  
  Install the Carbon Compiler
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install the Bazelisk Launcher using &lt;code&gt;brew install bazelisk&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Install LLVM (Low Level Virtual Machine) using &lt;code&gt;brew install llvm&lt;/code&gt; [Takes 5-15 mins]&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add this to your path variable using &lt;code&gt;export PATH="$(brew --prefix llvm)/bin:${PATH}"&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Since we are doing this installation on Ubuntu, we will also need &lt;code&gt;zlib1g dev&lt;/code&gt;, which we can install using &lt;code&gt;sudo apt install zlib1g-dev&lt;/code&gt; &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;We now have all the dependencies installed for the compiler. Time to clone the Github Repository using &lt;code&gt;git clone https://github.com/carbon-language/carbon-lang&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Coding Carbon in Windows using VSCode
&lt;/h2&gt;

&lt;p&gt;And there we have it, we've successfully installed Carbon on your Linux Machine. Time to port it over to windows, so we don't have to code in the terminal again.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open VS Code and install the Remote Development Extention&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fbmrn0m5k5yksfdc3zrgg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fbmrn0m5k5yksfdc3zrgg.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open Remote Explorer on the left-hand pane and click on the drop-down at the top of the screen. Select "WSL Targets" from the list. Then click on the button beside Ubuntu, as shown in the image.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fyhp0921dgoqx5nq58hjc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fyhp0921dgoqx5nq58hjc.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Wait for the Home Screen to Install all required dependencies and then go to &lt;code&gt;File &amp;lt; Open Folder &amp;lt; /home/{user}/carbon-lang/&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Open &lt;code&gt;explorer/testdata/print/format_only.carbon&lt;/code&gt; in the VS Code Window. A Hello World Program is displayed! &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;To see its output run &lt;code&gt;bazel run //explorer --  ./explorer/testdata/print/format_only.carbon&lt;/code&gt; and wait a couple minutes. Since Carbon isn't ready to be adopted by the masses, its compilation time is painfully slow, and it took me almost 2 minutes to compile.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fjcz2y784nl8zgp897jrw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2Fjcz2y784nl8zgp897jrw.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Writing Fizz Buzz in Carbon
&lt;/h2&gt;

&lt;p&gt;Everyone has heard of Fizz Buzz. If the number is divisible by 2, print "Fizz"; If it's divisible by 3, print "Buzz". If it's divisible by both, print "FizzBuzz"; else, print the number. Here is the implementation in Carbon:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cpp"&gt;&lt;code&gt;&lt;span class="n"&gt;package&lt;/span&gt; &lt;span class="n"&gt;ExplorerTest&lt;/span&gt; &lt;span class="n"&gt;api&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;fn&lt;/span&gt; &lt;span class="n"&gt;Main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;i32&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;var&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="k"&gt;auto&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
            &lt;span class="n"&gt;Print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"{0} FizzBuzz"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nf"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
            &lt;span class="n"&gt;Print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"{0} Fizz"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nf"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;){&lt;/span&gt;
            &lt;span class="n"&gt;Print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"{0} Buzz"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;

        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="n"&gt;Print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"{0}"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
        &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Let us discuss what every line in this program does: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;package ExplorerTest api;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Base package and acts like &lt;code&gt;#include &amp;lt;iostream&amp;gt;&lt;/code&gt; in C++&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;fn Main() -&amp;gt; i32&lt;/code&gt; &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Our main function which has a return type of Integer 32bit&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;var i: auto = 0&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Creates a variable &lt;code&gt;i' with value&lt;/code&gt;0`&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;while(i &amp;lt;= 100)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;While Loop to be executed while &lt;code&gt;i &amp;lt; 100&lt;/code&gt;. I had originally tried to create a for loop like in C++ [&lt;code&gt;for (int i =0; i &amp;lt;= 10; i++)&lt;/code&gt;] but got a syntax error &lt;/p&gt;

&lt;p&gt;[COMPILATION ERROR: foo_bar_baz.carbon:4: syntax error, unexpected identifier, expecting COLON]&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;if&lt;/code&gt; statements&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They execute their block only if the condition in parenthesis is True. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Print&lt;/code&gt; statements&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Print the value inside the parenthesis. If variables need to be printed, we can use &lt;code&gt;{num}&lt;/code&gt; where &lt;code&gt;num&lt;/code&gt; is a number starting from 0. &lt;br&gt;
Eg: &lt;br&gt;
&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
var a: auto = 1;&lt;br&gt;
var b: auto = 5;&lt;br&gt;
var c: auto = 2;&lt;br&gt;
var d: auto = 6;&lt;br&gt;
Print("These are Numbers: {0}, {1}, {2}, {3}", a,b,c,d);&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Will give the output: &lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
These are Numbers: 1, 5, 2, 6&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Carbon is a fantastic Language, it's still in its early stages of development, and it'll hopefully get better over time. One obvious flaw is the lack of documentation. I want to remind you that Carbon is still under development, and Google does not recommend using it for any scaled-up applications. I hope you have as much fun as I did trying to learn Carbon!&lt;/p&gt;

</description>
      <category>programming</category>
      <category>cpp</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
