Rust programming language

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

Substrate – A Blockchain Framework on Rust

Reading Time: 3 minutes Substrate is a modular framework that enables you to create purpose-built blockchains by composing custom or pre-built components. It is powered by best-in-class cryptographic research and comes with peer-to-peer networking, consensus mechanisms, and much more. Because of the ease and good results, It is attracting more business towards itself. It is reliable, it is secure and fast at the same time. We will get to Continue Reading

Host a Wasm module easily on Raspberry Pi Part 2

Reading Time: 6 minutes This blog is a continuation of one of my previous blogs, if you have not checked that out, then here is the link. You can read that and then continue on this blog. This blog is a part of a series on WebAssembly. I have written several other blogs on wasm, wabt , wasm-bindgen and wasmi, etc. Feel free to check them out also. WebAssembly Continue Reading

Writing directly to the Register Address. Safe or Unsafe?

Reading Time: 4 minutes Hi again, I am back to discuss one more interesting blog today which will help you in preventing errors while working with hardware registers. This will tell you what can happen if you put Invalid Address on the register. As we are working with the Embedded Systems they make our task fast and reliable. Also, they are much smaller in size compared to traditional computers, Continue Reading

Host a wasm module on Raspberry Pi easily Part 1

Reading Time: 5 minutes In this series of WebAssembly, I tell you about wasm and some useful CLI to have fun with wasm. WebAssembly is an open standard that defines a portable binary code format for executable programs, and a corresponding textual representation for interactions between such programs and their hosts. More than 20 companies reportedly use WebAssembly in their tech stacks, including Backend, Foretag, and Cubbit. C++, C, Rust, Blazor, and Yew Framework are some of the popular tools that can Continue Reading

Hosting wasm modules in Rust easily using ‘wasmi’

Reading Time: 4 minutes In this series of WebAssembly, We are learning about WebAssembly and some of the cool CLI to play with wasm. In this blog, We are going to learn the hosting of our wasm modules in Rust. If you have not been following this series, you can check out the previous blogs related to WebAssembly, WABT and wasm-bindgen to give you an idea about wasm. Now Continue Reading

Let us Build Checkers, the Board Game in Rust

Reading Time: 4 minutes In my previous blog, you have seen how to build checkers game and implements its basic rules using WebAssembly. In this blog, we build Checkers game using Rust programming language. Let’s get started To get started, type the following in the terminal: Now rustycheckers the library project is created. Setting Up the Checkers Board To start writing the code to manage the game board, the Continue Reading

Blink the LEDs of STM32F3-DISCOVERY Board Part 2

Reading Time: 4 minutes Welcome to the second part of the blog(Blink the LEDs of STM32F3-DISCOVERY Board). If you haven’t checked the first one then I recommend you to please go through that. Okay, talking about this, so in this blog, we are going to build and run our program and will find out the way to install or insert this program inside the hardware(micro-controller). Step 1 First, open Continue Reading

Embedded-Rust: Turning LEDs on/off using registers

Reading Time: 5 minutes An embedded system is computer hardware with software embedded in it. Or we can say it is a combination of computer processors, computer memory, and input/output devices and it can be an independent system or a part of a large system. Hi folks, we are back again with another interesting article where we’ll try to turn on STM32F3Discovery board’s LEDs using registers.Alright!!! let’s start to Continue Reading