Author: Rahul Bhati

What are Smart Pointers in RUST?

In Rust, Smart Pointers are not only pointers but a data structure as well. They are also available in many other languages, but their origin lies in c++. Smart pointers are generally implemented through structs. Following are the types of Smart Pointer in rust. 1. Box The box is the most simple smart pointer which enables recursive types. At compile time rust compiler wants to Continue Reading

How We can do Fearless Concurrency in RUST

Handling concurrent programming safely and efficiently is another of Rust’s major goals. Concurrent programming, where different parts of the program execute independently, and parallelly. Creating Thread-In RUST:- In RUST to create a new thread, we call the thread:: spawn function and pass it in a closure containing the code we want to run in the new thread. Example: Filename: src/main.rs use std::thread; use std::time::Duration; fn Continue Reading

Introduction to Error Handling in RUST

Like most programming languages, Rust encourages the programmer to handle errors in a particular way. If we talk in a general way Rust gives you an acknowledgment about an error and gives you an option to define some action for it before compile. This makes your program more robust by ensuring that you’ll discover errors and handle them appropriately. Rust group errors into two major Continue Reading

Spark vs MapReduce: Which is better?

Both the technologies are equipped with amazing features, however with the increased need for real-time analytics, these two giving tough competition to each other What are MapReduce and Spark? MapReduce:- MapReduce is a programming model for processing huge amounts of data in a parallel and distributed. In this model, there are two tasks that are undertaken Map and Reduce and there is a map function Continue Reading

%d bloggers like this: