Rust programming language

Abstraction in Java

Reading Time: 2 minutes What is Abstraction? Abstraction is one of the most important feature of OOPs (Object Oriented Programming). There are four essential features in OOPs i.e., encapsulation, inheritance, abstraction and polymorphism. Here we will discuss about one of the four features i.e., Abstraction. It is the process of showing necessary details to the user and hiding all the details of implementation. In other words, we can say Continue Reading

Can we use Rust for Embedded Development?

Reading Time: 4 minutes Hi everyone, in the previous blog we have discussed the basics of the Embedded System using the Rust programming language. That was like the “Hello World” in the Embedded Development. We also discussed that how we can start working with the bare metal environment and we can build and run the application in such an environment. If you want to read more about it then Continue Reading

Advanced Types in Rust are quite helpful

Reading Time: 3 minutes In this blog, we will discuss the advanced types available in Rust. Creating Type Synonyms with Type Aliases Rust provides the ability to declare a type alias to give an existing type another name. For this, we use the type keyword. For example, we can create the alias Kilometers to i32 like so:  Values that have the type Kilometers will be treated the same as values of type i32: Because Kilometers and i32 are the same type, we can add Continue Reading

Updates in Rust 2021 edition

Reading Time: 2 minutes The new edition of Rust is here. The edition 2021 of Rust have many interesting changes in it. Let us have a look at some of the changes in edition 2021. Additions to the prelude The TryInto, TryFrom and FromIterator traits are now part of the prelude. This might make calls to trait methods ambiguous which could make some code fail to compile. However, adding a trait to the prelude can break Continue Reading

Solana – Wallet Creation and Sending Tokens

Reading Time: 4 minutes Solana is an open-source project implementing a new, high-performance, permissionless blockchain. It is also the most performant permissionless blockchain where a network of 200 physically distinct nodes supports a throughput of more than 50,000 transactions per second. Solana has innovated a mempool-less transaction forwarding protocol. A mempool is a set of transactions that have been submitted to the network and are yet to be processed by the Continue Reading

Gyroscope sensor of the stm32 board || Part 3

Reading Time: 3 minutes Hello everyone, in today’s blog we are moving further to the last part of the series of Gyroscope sensor of the stm32 board. In this blog, we are going to get the readings from the Gyroscope sensor of the stm32 board, the delay, and the core peripherals. We are then going to use them to run the mini-project to get the readings from the stm32 Continue Reading

Error handling in Solidity is very useful

Reading Time: 3 minutes Hello guys, here is another blog on Solidity. Check out my previous blog on Value types in Solidity. In this blog, we will see how to do error handling in Solidity. Solidity uses state-reverting exceptions to handle errors. Such an exception undoes all changes made to the state in the current call and all its sub-calls and reports the error to the caller. When exceptions Continue Reading

Box Pointers in Rust make recursive types possible

Reading Time: 3 minutes Overview A pointer is a general programming concept for a variable that contains an address in memory. In Rust, we have smart pointers in addition to normal pointers. Smart pointers are data structures that not only act as a pointer but also have additional metadata and capabilities. Box pointers are one of the smart pointers in Rust. Box Pointers Boxes allow you to store data on the heap Continue Reading

Gyroscope sensor of the stm32 board || Part 2

Reading Time: 4 minutes Hi everyone, in today’s blog we are going to work further with the Gyroscope sensor of the stm32 discovery board. We are going to access the l3gd20 package and return the important data to the main method. In the previous part of this series, we learned about the Gyroscope Sensor, how it works and where we use this sensor. So before reading it further, I Continue Reading

Value Types In Solidity

Reading Time: 3 minutes Solidity is an object-oriented, high-level language for creating smart contracts. Smart contracts are programs that decide the behaviour of accounts within the Ethereum state. Solidity is a statically typed language. It supports inheritance, libraries and complex user-defined types among other features. With Solidity, you can create contracts for uses such as voting, crowdfunding, blind auctions, and multi-signature wallets. There are various data types in solidity Continue Reading

Gyroscope| Sensor of the “stm32 Discovery Board”

Reading Time: 4 minutes Today we are going to learn about a new sensor of the stm32f3 Discovery Board. This sensor is known as Gyroscope. We are going to know about this particular sensor and its function and why we need it in our embedded development. This is going to be a series of the blogs just like other series for Sensors. In our previous series of blogs, we Continue Reading

Accelerometer as Puncho-o-meter | The “stm32-Discovery Board Sensor”- Part 3

Reading Time: 4 minutes Hello everyone, In this blog, we are going to provide you the way to use the Accelerometer Sensor of the Discovery Board as a Punch-o-meter. This is going to be the last part of the series in which we will work with Accelerometer as Puncho-o-meter. In the previous part, we have discussed the Accelerometer Sensor of the Discovery Board and we also got the readings Continue Reading

Ownership, An exciting concept of Rust (Part-2)

Reading Time: 3 minutes Hello Readers ! We already read about what is ownership and how memory allocation is done. But for completely understanding ownership, we should know what is borrowing and what are references. References and Borrowing The problem in this code is that we have to return the String to the calling function. So we can still use the String after the call to calculate_length because the Continue Reading