<?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: Rishit Khandelwal</title>
    <description>The latest articles on Forem by Rishit Khandelwal (@rishitkhandelwal).</description>
    <link>https://forem.com/rishitkhandelwal</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%2F420543%2F5b3d5308-062c-4fbe-b701-5aea11187e78.png</url>
      <title>Forem: Rishit Khandelwal</title>
      <link>https://forem.com/rishitkhandelwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/rishitkhandelwal"/>
    <language>en</language>
    <item>
      <title>Write rust code without english</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Mon, 27 Sep 2021 14:35:09 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/write-rust-code-without-english-3id6</link>
      <guid>https://forem.com/rishitkhandelwal/write-rust-code-without-english-3id6</guid>
      <description>&lt;p&gt;You reading the title, might be wondering HOW CAN YOU CODE WITHOUT ENGLISH???? you might think that i could have forked rust and changed the compiler to accept other keywords, but no.&lt;/p&gt;

&lt;p&gt;Rust, being a very awesome language, has a nice handy feature called &lt;strong&gt;Procedural macros&lt;/strong&gt;, with which we can parse code at compile time the way we want. And the other day I came across the &lt;a href="https://github.com/bnjbvr/rouille" rel="noopener noreferrer"&gt;Rouille&lt;/a&gt;, and then i wondered, "hmmm which language i know which i can use to make something like this?", and then i thought lets make a hindi version of this (because i didnt know any other language). But understanding proc_macros and all wasnt something i wanted to do just yet without having the fun of writing some code in hindi.&lt;/p&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%2Fur3wv5k567id7gvq5732.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%2Fur3wv5k567id7gvq5732.png" alt="Fork"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Remove french words to be replaced with hindi words &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%2Fn14zolmy7vc06v5zh14t.png" alt="image"&gt; -&amp;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%2Fnu5rvh6y1sodyaekm0og.png" alt="image"&gt;
&lt;/h2&gt;

&lt;h5&gt;
  
  
  &lt;em&gt;(Yes i know that we are pretty light on the vocab, but making PRs wont hurt, please)&lt;/em&gt;
&lt;/h5&gt;

&lt;h2&gt;
  
  
  Step 2: Changing the readme.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;THE HARDEST PART OF THIS WHOLE PROCESS.&lt;/strong&gt;&lt;br&gt;
Tho i managed to drag myself through it. And ended up with a semi-ripped off README :/&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Trying to get people to try this (this part failed miserably).
&lt;/h2&gt;

&lt;p&gt;I sent my dev friends the repo to try out....&lt;br&gt;
they ignored me.... 😥&lt;/p&gt;

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

&lt;p&gt;If you find this cool go star &lt;a href="https://github.com/bnjbvr/rouille" rel="noopener noreferrer"&gt;Rouille&lt;/a&gt; and &lt;a href="https://github.com/rishit-khandelwal/zung" rel="noopener noreferrer"&gt;Zung&lt;/a&gt; and make PRs to add more words to the zung vocab.&lt;/p&gt;

</description>
      <category>programming</category>
      <category>rust</category>
    </item>
    <item>
      <title>what you could do with rust</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Sat, 07 Aug 2021 05:32:43 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/what-you-could-do-with-rust-2anf</link>
      <guid>https://forem.com/rishitkhandelwal/what-you-could-do-with-rust-2anf</guid>
      <description>&lt;p&gt;Rust is a language which reaches into almost all corners in the world of development, whether it is super fast server-side execution, or near native performance in browsers with webassembly, or game development, or making cli tools, or almost anything you could imagine.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sbDQ8wyl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://c.tenor.com/o55vTt-KXyUAAAAS/the-wolf-of-wall-street-leonardo-di-caprio.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sbDQ8wyl--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://c.tenor.com/o55vTt-KXyUAAAAS/the-wolf-of-wall-street-leonardo-di-caprio.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For servers, there are very fast, async frameworks like actix or rocket, with a very easy to use api for a compiled language.&lt;br&gt;
Example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight rust"&gt;&lt;code&gt;&lt;span class="nd"&gt;#[get(&lt;/span&gt;&lt;span class="s"&gt;"/"&lt;/span&gt;&lt;span class="nd"&gt;)]&lt;/span&gt;
&lt;span class="k"&gt;fn&lt;/span&gt; &lt;span class="nf"&gt;index&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&lt;/span&gt;&lt;span class="nv"&gt;'static&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s"&gt;"Hello Rocket!"&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="o"&gt;...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are crates like &lt;code&gt;web-sys&lt;/code&gt; and &lt;code&gt;js-sys&lt;/code&gt; to enable you to use web apis in your to-be webassembly code, and amazing tools like &lt;code&gt;wasm-pack&lt;/code&gt; to make compiling and using webassembly much easier :)&lt;/p&gt;

&lt;p&gt;And rust has a great amount of targets already to whom you can compile your code to :) and many rust crates are available which hide away the platform specific details from you, so you can just focus on what you're making.&lt;/p&gt;

&lt;p&gt;Rust tooling is pretty awesome.&lt;br&gt;
&lt;code&gt;rustup&lt;/code&gt; to manage rust compiler, components, targets, etc.&lt;br&gt;
&lt;code&gt;cargo&lt;/code&gt; to use and publish crates, and hide away the mess of compiling and linking and running the code.&lt;br&gt;
and much more depending on your project.&lt;br&gt;
And specially &lt;code&gt;rust-analyzer&lt;/code&gt; (a lsp for rust), which makes programming in rust a lot easier.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://rust-lang.org/"&gt;Rust's website&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>programming</category>
      <category>webassembly</category>
      <category>backend</category>
    </item>
    <item>
      <title>whats the worst program you can make for squaring a number.</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Sat, 07 Aug 2021 04:48:24 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/whats-the-worst-program-you-can-make-for-squaring-a-number-3186</link>
      <guid>https://forem.com/rishitkhandelwal/whats-the-worst-program-you-can-make-for-squaring-a-number-3186</guid>
      <description>&lt;p&gt;Try making a ultimate slow program to square a number, or share a program you have made previously.&lt;br&gt;
The slower the better.&lt;br&gt;
But each iteration should do something, dont loop for ever and then print the square like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nx"&gt;square&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&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="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nx"&gt;x&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;Ok, now comment your slow program in the comments ;)&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Join orbits community now: &lt;a href="https://discord.gg/9hB4VJcw97"&gt;https://discord.gg/9hB4VJcw97&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>theworsethebetter</category>
      <category>slow</category>
      <category>programming</category>
    </item>
    <item>
      <title>Setting up rust</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Thu, 08 Jul 2021 08:07:35 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/setting-up-rust-5f66</link>
      <guid>https://forem.com/rishitkhandelwal/setting-up-rust-5f66</guid>
      <description>&lt;h2&gt;
  
  
  Rust
&lt;/h2&gt;

&lt;p&gt;A short description of rust from wikipedia:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--X-1FfBZQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/buoud4h6afg6bthxyllz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--X-1FfBZQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/buoud4h6afg6bthxyllz.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Rust can be used for a variety of applications like networking, game dev, or anything else, on the web (using webassembly), embedded systems, etc.&lt;/p&gt;
&lt;h2&gt;
  
  
  Setting it up (Unix-like OSes)
&lt;/h2&gt;

&lt;p&gt;Installing rust is &lt;em&gt;very easy&lt;/em&gt;. It uses toolchain management tool called &lt;code&gt;rustup&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Just run this command to install rust:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;--proto&lt;/span&gt; &lt;span class="s1"&gt;'=https'&lt;/span&gt; &lt;span class="nt"&gt;--tlsv1&lt;/span&gt;.2 &lt;span class="nt"&gt;-sSf&lt;/span&gt; https://sh.rustup.rs | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After following the setups it provides, it most likely added rust in your &lt;code&gt;PATH&lt;/code&gt; environment variable. Refresh the current terminal environment, and run &lt;code&gt;rustc --version&lt;/code&gt;, if it fails, then try adding &lt;code&gt;~/.cargo/bin&lt;/code&gt; to your path manually.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping Rust updated
&lt;/h2&gt;

&lt;p&gt;Just run &lt;code&gt;rustup update&lt;/code&gt; once in a while to be up to date.&lt;/p&gt;

&lt;h2&gt;
  
  
  More information to get started with rust
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.rust-lang.org/learn/get-started"&gt;Getting started with rust&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>systems</category>
    </item>
    <item>
      <title>How can a decentralised network actually be built?</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Sat, 24 Apr 2021 07:59:32 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/how-can-a-decentralised-network-actually-be-built-88o</link>
      <guid>https://forem.com/rishitkhandelwal/how-can-a-decentralised-network-actually-be-built-88o</guid>
      <description>&lt;p&gt;I have tried building small programs which are "decentralised" program, but it always failed because it required something or the other which i couldnt implement, (some weird stuff, i still dont undestand).&lt;br&gt;
If you have ever made a decentralised program please comment below and explain it to me :)&lt;/p&gt;

</description>
      <category>discuss</category>
    </item>
    <item>
      <title>What are your thoughts on rust?</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Wed, 21 Apr 2021 17:13:43 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/what-are-your-thoughts-on-rust-kdh</link>
      <guid>https://forem.com/rishitkhandelwal/what-are-your-thoughts-on-rust-kdh</guid>
      <description>&lt;p&gt;I personally like rust because of its focus on safety and those helpful compiler hints when you do something wrong.&lt;/p&gt;

&lt;p&gt;Comment your thoughts belowy.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>rust</category>
    </item>
    <item>
      <title>Deno</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Thu, 21 Jan 2021 04:53:01 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/deno-c6l</link>
      <guid>https://forem.com/rishitkhandelwal/deno-c6l</guid>
      <description>&lt;p&gt;I have tried using deno for many of the typescript/javascript projects I have done recently. A discord bot, many backend for server side, and tried to run react on one of them.&lt;/p&gt;

&lt;p&gt;I found http servers in deno to slower to start with approximately 4s delay on startup.&lt;/p&gt;

&lt;p&gt;But the actual dev experience, ahh that was so much more light then node, that I didn't get the feeling of doing a project.&lt;/p&gt;

&lt;p&gt;If you haven't tried deno yet, you must give it a try.&lt;/p&gt;

&lt;p&gt;It is exceptionally helpful if you use typescript in your workflow.&lt;/p&gt;

&lt;p&gt;And the addition of built in tools like a bundler and file watcher makes life easier.&lt;/p&gt;

&lt;p&gt;And biggest feature being security, no implicit access.&lt;/p&gt;

&lt;p&gt;Try deno today! Goto deno.land&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Gimme Ideas for a new project</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Thu, 21 Jan 2021 04:52:50 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/gimme-ideas-for-a-new-project-2gel</link>
      <guid>https://forem.com/rishitkhandelwal/gimme-ideas-for-a-new-project-2gel</guid>
      <description>&lt;p&gt;Nodejs&lt;br&gt;
Deno&lt;br&gt;
PostgreSQL/Mongo&lt;br&gt;
Webassembly&lt;br&gt;
Rust&lt;br&gt;
C&lt;br&gt;
C++&lt;/p&gt;

&lt;p&gt;This is my list of languages/tools I use regularly&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to automount disk drive</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Thu, 07 Jan 2021 10:09:42 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/how-to-automount-disk-drive-1deo</link>
      <guid>https://forem.com/rishitkhandelwal/how-to-automount-disk-drive-1deo</guid>
      <description>&lt;p&gt;Ok, so I have got a secondary 512gb hdd along with my primary ssd.&lt;/p&gt;

&lt;p&gt;I can mount my drive like this: &lt;code&gt;sudo mount /dev/sdb5 ~/bigdisk&lt;/code&gt;.&lt;br&gt;
But how can I make it so that it happens automatically when I login/start the computer?&lt;/p&gt;

</description>
      <category>hardware</category>
      <category>linux</category>
      <category>help</category>
    </item>
    <item>
      <title>Happy New year!</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Sun, 03 Jan 2021 16:29:13 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/happy-new-year-56oe</link>
      <guid>https://forem.com/rishitkhandelwal/happy-new-year-56oe</guid>
      <description>&lt;p&gt;I am a bit late though :/&lt;/p&gt;

</description>
    </item>
    <item>
      <title>docker?</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Fri, 25 Dec 2020 13:50:43 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/docker-158e</link>
      <guid>https://forem.com/rishitkhandelwal/docker-158e</guid>
      <description>&lt;p&gt;ok, since kubernetes deprecated docker, does it mean docker will fade into irrelevance eventually, and it is the time to switch to other tools like containerd?&lt;/p&gt;

</description>
      <category>docker</category>
      <category>containers</category>
      <category>kubernetes</category>
    </item>
    <item>
      <title>How to implement console.log</title>
      <dc:creator>Rishit Khandelwal</dc:creator>
      <pubDate>Fri, 25 Dec 2020 11:53:53 +0000</pubDate>
      <link>https://forem.com/rishitkhandelwal/how-to-implement-console-log-2j59</link>
      <guid>https://forem.com/rishitkhandelwal/how-to-implement-console-log-2j59</guid>
      <description>&lt;p&gt;I am trying to implement console.log with using rusty V8.&lt;/p&gt;

</description>
      <category>rust</category>
      <category>v8</category>
      <category>rustyv8</category>
    </item>
  </channel>
</rss>
