Rust programming language

Superpowers of Unsafe Rust

Reading Time: 4 minutes In the previous blog, I discussed one of the superpowers of Unsafe Rust which is dereferencing a raw pointer. In this blog, we will see another feature of unsafe rust. Rust has wonderful borrowing and ownership rules that take care of all the memory safety issues. It is one of the leading languages. More than 9 companies including Dropbox, Coursera, Figma, npm, Microsoft, Cloudflare, Facebook, Amazon and Discord use Continue Reading

Connect to the Server using crate “reqwest” | RUST Programming

Reading Time: 3 minutes Hi everyone I hope you all are good and learning every day. So what we are going to discuss today?? Embedded? Microcontroller? No! None of them. Today we are going to talk about the HTTP request in RUST Programming. In the previous blog, we talked about a Valuable Package LSM303DLHC using which we were able to access two of the sensor of the f3 board. Continue Reading

What are the different types of collection in Rust

Reading Time: 4 minutes Rust’s standard library includes a number of very useful data structures called collections. A collection is something that holds zero or more elements in some fashion that allows you to enumerate those elements, add or remove elements, find them and so forth. Rust’s collections can be grouped into four major categories: Sequences Maps Sets Misc Sequences Collection Sequences are supported in many forms in Rust. Vec Continue Reading

RPC to call a Runtime API easily in Substrate

Reading Time: 4 minutes RPC or Remote Procedural Call in Substrate is a way to interact with a Substrate node. They can be used for checking storage values, submitting transactions or querying the current consensus authorities. Substrate is a next-generation framework for blockchain innovation. It comes with everything you need to build your blockchain. Substrate is a completely free and open-source project. It is built using Rust and WebAssembly. Rust Continue Reading

“LSM303DLHC” – A Valuable Package.

Reading Time: 4 minutes Hi again, what are we going to discuss today? Okay, so we are going to discuss a package which is named “LSM303DLHC“. Don’t take this package as an ordinary one because it is a valuable package. You will know its value soon. In previous blogs we talked about – Communication with the Hardware, Capabilities of minicomputers and much more. If you want to read more Continue Reading

How Substrate Frame v2 different from Frame v1

Reading Time: 3 minutes Blockchain is a specific type of database. It differs from a typical database in the way it stores information. Blockchains store data in blocks that are then chained together. Blockchain has changed how we perceive problems. It has brought tons of benefits. Blockchain technology solves key issues like trust in a network. Blockchain technology utilizes advanced security compared to other platforms or record-keeping systems. By using Continue Reading

Set up the environment for the stm32-Discovery Board

Reading Time: 4 minutes In today’s blog, we will set up the environment for the stm32 discovery board. We are only going to set up the configurations for the “Linux System”. In previous blogs we discussed the Valid and Invalid Addresses, you can check those blogs to get a better understanding of how to work with the Register Addresses. As we are working with the Embedded Systems they make Continue Reading

Capabilities of the Microcontroller. Don’t underestimate the mini-computer

Reading Time: 4 minutes The microcontroller on which we are working does have different capabilities which help us in making our work more efficient, better, and easier. The microcontroller stm32f3-discovery board also shares multiple capabilities that we use to solve all sorts of different problems. In all my previous blogs we talked about the internals of the stm32 discovery board like how we can achieve safe access to the Continue Reading

Raw Pointers in Unsafe Rust are quite powerful

Reading Time: 4 minutes Unsafe Rust. Sounds contradicting to what we know about Rust as Rust is one of the safest and memory-efficient languages. It does not have a garbage collector because it does not need one. Rust has wonderful borrowing and ownership rules that take care of all the memory safety issues. It is one of the leading languages.  More than 9 companies including Dropbox, Coursera, Figma, npm, Microsoft, Cloudflare, Continue Reading

Let’s say Hello to the Hardware. A Magical Conversation!

Reading Time: 4 minutes In recent blogs we discussed the consequences of writing directly to a Register’s Address, if you have not read that blog then I suggest you please go through that one, you’ll find it interesting. What we are gonna do today?? Okay, let’s do something more interesting today we are not gonna work on registers nor in-depth of Hardware. Today we will talk with our hardware(stm32f3-discovery-board). Continue Reading

Substrate’s Smart Contracts vs. Runtime Development

Reading Time: 3 minutes This article gives a brief overview of the different ways to implement smart contracts for Substrate-based blockchains. It also aims to provide insight on reasons for choosing smart contract development over runtime development for your on-chain logic and business development. Substrate provides two smart contract virtual machines which can be added to your runtime. Each come with additional tools to ease development depending on your Continue Reading

How to work with “No Invalid Address”? Safe Access

Reading Time: 3 minutes In the previous blog, we tried to write directly to the BSRR Register address and that was not Safe Access because of which we fall into Hardware Fault exception. You can read that blog from here. Now in this blog, we are going to work in a very different way. We are not going to use the BSRR register instead of that we are going Continue Reading

Will WebAssembly replace JavaScript?

Reading Time: 4 minutes One of the most powerful innovations in recent past decades for the internet, WebAssembly is an open standard that defines a portable binary-code format for executable programs. It is fast and portable in the real sense. What makes it really useful is the fact that most of the programming languages including Rust and C++ have wasm as the compile target. Rust is a very powerful Continue Reading