Optimal Mersenne Primes Search Using Modular Groups (in Rust?)
I just released a paper on how to optimally find Mersenne Primes of form 2^p - 1. It's mathematically super simple, and easy to implement in software. The paper provides proof of concept Crystal code...
View ArticleAppNetPlotter — a Windows app for troubleshooting app connectivity,
Hi , When an app is slow or a video call keeps breaking up, it’s often hard to know where the problem starts. Is it your Wi-Fi, your ISP, the VPN, or just that app? I’m building AppNetPlotter, an...
View ArticleNested #[repr(c)] in rust struct
I have the following struct which I receive via ffi #[repr(C)] #[derive(Clone, Copy)] pub struct CDROM_TOC { pub Length: [u8; 2], pub FirstTrack: u8, pub LastTrack: u8, pub TrackData: [TRACK_DATA;...
View ArticleZaxis 0.0.5: immediate-mode GUI on wgpu, embeddable in a host's wgpu pass,...
Hi! I've been working on zaxis, an immediate-mode GUI library for desktop tools built on winit and wgpu. 0.0.5 is on crates.io. It's an early development release and the API will still change, so I'd...
View ArticleColumn width interaction of ansi_term and tabled crates
I've run into a problem formatting terminal output. I'm using the ansi_term and tabled crates together. Here's a minimal example: use ansi_term::Style; use tabled::{Table, Tabled}; #[derive(Tabled)]...
View ArticleA SQLite-compatible database written in Rust
I’ve been working full-time on inkdb for the past three months. I started this project because I wanted to understand how databases actually work under the hood. I decided to try building something...
View ArticleBest practices for ID newtypes ergonomics in domain models
Hi everyone, I’ve been using the newtype pattern extensively across my codebase for various domain IDs to ensure strict type safety. While the safety guarantees are fantastic, the amount of...
View ArticleRust + Wasm on older Safari
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleWhy would `as_ref()` be required here rather than a reference?
After playing around with newtypes a bit, I'm curious about this use of the AsRef trait: impl PaliSearcher { pub fn new(index: &PaliIndex) -> Result<Self> { let reader =...
View ArticleSping 1.5.5 — a cross-platform network diagnostics CLI written in Rust
I recently open-sourced Sping, a network diagnostics CLI I’ve been building in Rust. It started from a very simple annoyance: when ping starts timing out, that’s usually when the actual...
View ArticleRecent explosion in Rust Rewrites and Reimplementations with LLMs. Thoughts?
Noticed that since the most recent Claude Opus 5.5 module got released there was a massive surge (if you can even call it that) in the amount of games reimplemented or rewritten in Rust. I understand...
View ArticleThey cloned commercial desktops apps with Rust
You might have already seen it in https://www.youtube.com/watch?v=eFB79TYI-Vw and Crafting Apps: open-source creative tools — ArtCraft ArtCraft · GitHub I am not really surprised, I supposed it would...
View ArticlePomodoro Time Chamber
https://github.com/andersondanilo/pomodoro-time-chamber This Pomodoro app is inspired by Pomodoro Tracker, but it introduces a few features designed to make time estimation and productivity tracking...
View ArticleI built an unsafe scanner alternative to Cargo Geiger
Hi Everyone! I would like to share the cargo-issafe project. I announced it in reddit, but the community and the moderators are very unwelcoming. I hope here I got a more positive discussion. The...
View ArticleCorrect format to use on a 'scene' file
Just got me wondering, similar to Godot's scene (.tscn) what existing format would be just as convenient when implementing a similar thing, which is to handle 'Node' trees and instancing another scene...
View ArticleHotcode: easy to use hot-reload
I find hot-reloading a very useful feature that speeds up development and makes debugging easier. I use it extensively in C#, and I wanted to have the same feature in Rust, so I created a crate for...
View ArticleT rust lang playground dependency
src/main.rs #![allow(unused)] fn main() { use std::collections::HashMap; let map1 = HashMap::from([(1, 2), (3, 4)]); let map2: HashMap<_, _> = [(1, 2), (3, 4)].into(); assert_eq!(map1, map2); }...
View ArticleConvert ref-to-raw-pointer to ref-to-NonNull without transmute?
Consider this toy function: fn ptr_as_nonnull<T: ?Sized>(input: &*mut T) -> Option<&NonNull<T>> { if input.is_null() { None } else { // Is it possible to implement this...
View ArticleRender pipeline error wgpu
let render_pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor { label: None, bind_group_layouts: &[Some(&default_bgl), Some(&camera_bgl)], immediate_size: 0, });...
View Article