rust

Weapons-grade Metaprotocols on METASHREW

Weapons-grade Metaprotocols on METASHREW

For those who have attempted to extend Bitcoin via the metaprotocol layer, or even just write software to index metaprotocols such as ordinals or BRC-20, you may be aware of the scope of the problem. Most traditional metaprotocols we've seen are easy enough to understand a schema for, as far as the rules to process a single block to update the state of an index. For ordinals, parsing a block to track the owner of an inscription by a given sequence number, may require program flow such as: Process each transaction, and if there is a witness stack with an…
Read More
Self-Aligning Satellite Dish in Rust: Final

Self-Aligning Satellite Dish in Rust: Final

In this part, we'll be largely tying up loose ends in the application logic. Table of contents Requirements 1 x Raspberry Pico board 1 x USB Cable type 2.0 1 x HC-05 Bluetooth module 1 x HMC5833L Compass Module 40 x M-M Jumper Wires 2 x Mini Breadboards 2 x SG90 Servo Motor 1 x PTZ Kit 1 x GPS Module 2 x Relay modules 2 x 4.2V Li-ion Batteries 1 x DC-DC Step-down Converter 1 x Diode Implementation Connections The electrical connections will be the same as from the last part. The magnetometer should now be mounted on the…
Read More
Running Your First Solana Project with Anchor

Running Your First Solana Project with Anchor

In this post, we’ll continue from where we left off in the last guide Setting Up Local Solana Environment. We’ve already set up our Solana development environment, so now, let’s run our first Solana project using the default Anchor code. By the end of this post, you’ll know how to set up your IDE, connect to WSL, and deploy your first Solana program on the Devnet. Step 1: Install Visual Studio Code (VS Code) VS Code is one of the best editors for Solana development. If you don’t already have it installed, download and install it from Visual Studio Code's…
Read More
The Mars Rover Challenge in Rust: Houston, Do You Copy?

The Mars Rover Challenge in Rust: Houston, Do You Copy?

Our rover navigation system is ready for its maiden voyage, but first, it needs to know where to go! The mission parameters have provided specific test scenarios to validate our implementation. My rover needs to interpret these commands: 5 5 1 2 N LMLMLMLMM 3 3 E MMRMMRMRRM Enter fullscreen mode Exit fullscreen mode And respond with precise positional data: 1 3 N 5 1 E Enter fullscreen mode Exit fullscreen mode Establishing Communication: Receiving User Input My first challenge was creating a communication channel with Mission Control. I turned to Rust's powerful std::io module to establish this vital link:…
Read More
Implementing Webpack from Scratch, But in Rust – [3] Using NAPI-RS to Create Node.js Addons

Implementing Webpack from Scratch, But in Rust – [3] Using NAPI-RS to Create Node.js Addons

Referencing mini-webpack, I implemented a simple webpack from scratch using Rust. This allowed me to gain a deeper understanding of webpack and also improve my Rust skills. It's a win-win situation! Code repository: https://github.com/ParadeTo/rs-webpack This article corresponds to the Pull Request: https://github.com/ParadeTo/rs-webpack/pull/4 The title seems unrelated to this series, as implementing webpack with Rust involves Node.js plugin development. But don't worry, let me explain. When we use webpack for bundling, don't we often run the following command? webpack --config webpack.config.js Enter fullscreen mode Exit fullscreen mode Similarly, we want our RS Webpack to support such a command. But how can…
Read More
Playing with Rust: Building a Safer rm and Having Fun Along the Way

Playing with Rust: Building a Safer rm and Having Fun Along the Way

Welcome to my YOLO series, where I'll be showcasing simple tools and projects that I've built—sometimes for fun, sometimes to solve specific problems, and other times just out of pure curiosity. The goal here isn't just to present a tool; I'll also dive into something interesting related to the process, whether it's a technical insight or a lesson learned while crafting these little experiments. Introducing rrm: The Command-Line Tool Nobody Asked For Nobody asked for it, and nobody want it—but here it is anyway. Meet rrm, a tool that solves a problem only I seem to have (but hey, it…
Read More
What are targets for in Rust?

What are targets for in Rust?

In Rust, targets refer to specific configurations that determine how your code is compiled and executed. Targets specify the platform or architecture for which Rust should compile the code. Types of Targets in Rust: Binary Targets (Binaries): These are executable programs that your project can build. In your Cargo.toml, you can define multiple binary targets. By default, if your project has a main.rs, Cargo will treat it as a binary target. You can also create additional binaries by placing other *.rs files in a src/bin/ directory. Library Targets: This is when you're building a library instead of an executable program.…
Read More
Survey: C to Rust conversion and corresponding tools

Survey: C to Rust conversion and corresponding tools

Hello all, We are performing an anonymous survey to understand developers' perspectives on C to Rust conversion and corresponding tools. You can take the survey at: Survey Link The survey will be taken once and will take approximately 7 minutes to complete. No personal identifying information will be collected. The information you will share with us if you participate in this study will be kept completely confidential to the full extent of the law. The study is reviewed by our IRB under: IRB 2024-1170. If you have any questions about this research, please contact Aravind Machiry at amachiry@purdue.edu. If you…
Read More
Qopy: My Favorite Clipboard Manager as a Developer

Qopy: My Favorite Clipboard Manager as a Developer

As a developer, I'm always on the lookout for tools that can make my workflow smoother and more efficient. Recently, I stumbled upon Qopy, an open-source clipboard manager that works on Linux and Windows. What's Qopy? Qopy is a straightforward clipboard manager that aims to improve upon the standard clipboard experience. It's designed to be user-friendly, reliable and fast. Why Is it so good Here are some reasons why Qopy is so good: It handles everything: Text, images, files: Qopy can store it all. It's fast: Built with Rust, it's super speedy and doesn't slow you down. Easy to use:…
Read More
Implement React v18 from Scratch Using WASM and Rust – [24] Suspense(1) – Render Fallback

Implement React v18 from Scratch Using WASM and Rust – [24] Suspense(1) – Render Fallback

Based on big-react,I am going to implement React v18 core features from scratch using WASM and Rust. Code Repository:https://github.com/ParadeTo/big-react-wasm The tag related to this article:v24 Suspense is undoubtedly one of the most appealing features in the new version of React, so let's implement it ourselves. This article is the first part, focusing on implementing the Fallback rendering of Suspense. Consider the following code as an example: import { Suspense } from 'react'; export default function App() { return ( <Suspense fallback={<div>loading</div>}> <Child /> </Suspense> ); } function Child() { throw new Promise((resolve) => setTimeout(resolve, 1000)); } Enter fullscreen mode Exit…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.