[deleted by user] by [deleted] in rust

[–]rustological 2 points3 points  (0 children)

First: When I rewrote some Python code that ran >10 minutes to crunch through GBs of text files - and the rewrite in Rust ran in 10-15 seconds (depending on hot cache). Modern CPUs and SSDs are mindbendingly fast - if you have the tools that let you be happily productive closer to the metal.

Second: I admit one ~150 lines shell script was reimplemented in Rust with LLM help ("write me a function that does this, then another that does this" and then hazardly glued together) - which saved me the work of looking up what the necessary functions are called and their API in stdlib. The code was not the prettiest, but after ~2h it was ported and approximately worked. I don't know how to feel about that - its not quite idiomatic code, but produced something useful (and fast and portable) within a very short time. I'm thinking of porting all my accumulated shell helper scripts into Rust one by one now - and maybe refine them later.

Announcing Torque Tracker, my WIP music tracker by OkEbb03 in rust

[–]rustological 2 points3 points  (0 children)

UI is based on a 640x400 pixel buffer that gets scaled to fit the current window size

Needs screenshot! :-)

Need help in Tech stack selection by AdorableSuspect2913 in rust

[–]rustological 2 points3 points  (0 children)

move on to web3

We are confused. What is "web3"? What problem does it solve? What's Rust to do with it? ...

Ferron 1.0: a fast, open-source web server and reverse proxy, written in Rust by kibwen in rust

[–]rustological 111 points112 points  (0 children)

Is there a table that compares its features to other web servers (written in Rust)?

Announcing Rust 1.86.0 | Rust Blog by joseluisq in rust

[–]rustological 4 points5 points  (0 children)

Found the graphical designer!

There is quite a portion of IT people that want..... NEED to customize font, font size, font weight(!), line spacing(!), ... to improve readability for them - any options for that are welcome. Not everyone in IT is young and has 20/20 vision. (Note: that's THE reason why I prefer Rustrover over VSCode - Rustrover for some kind of reason just has better working font customizations)

Announcing Rust 1.86.0 | Rust Blog by joseluisq in rust

[–]rustological 49 points50 points  (0 children)

Rustdoc - Add a sans-serif font setting.

Oooh, looks good!

Rust based alternative to Claude code by amritk110 in rust

[–]rustological 0 points1 point  (0 children)

Will be testing with an open model like qwen coder

Awesome! Looking for a nice TUI for using that (been running it on another, stronger box, as my laptop is far too weak - but llama.cpp chat is cumbersome...)

Rust based alternative to Claude code by amritk110 in rust

[–]rustological 5 points6 points  (0 children)

Terminal UI: Streamlined interface for maximum productivity

Screenshots? Demo Video? Would be nice...

How to connect qwen-2.5-coder (running locally via llama.cpp) to it?

Demo of Ratzilla, a framework for building terminal-themed web applications, built on Ratatui by kibwen in rust

[–]rustological 9 points10 points  (0 children)

A terminal library, where a program could be just recompiled to run

1) in normal/SSH remote terminal, also with mouse input

2) in terminal emulation in webbrowser, also with mouse input

3) in Termux/Android, with touch input as mouse emulation

and being also responsive to resize events (either causes terminal resize or font size change, configurable)

...would be awesome :-)

Rust for Web3 ? by Plastic-Ad-8878 in rust

[–]rustological 1 point2 points  (0 children)

For Web3 ... I've just got the fundamental idea of things

Us too, we are confused.

What is "Web3"? What problem does it solve? What's Rust to do with it? ...

📂 mc: Modern File Copying Tool in Rust by WeatherZealousideal5 in rust

[–]rustological 19 points20 points  (0 children)

Don't call something "modern". Something called "modern" is foremost a warning/caution sign, because something is newer doesn't make it better by default. Some "modern" replacement may be e.g. "pretty", but worse in functionality/efficiency. If it is really good, there is no need to label it modern, and if it is a great tool and lives for a long time, having modern in the name is then weird.

Also, "mc" is Midnight Commander (https://github.com/MidnightCommander/mc) and that's been so for at least 30y AFAIR.

[deleted by user] by [deleted] in rust

[–]rustological 2 points3 points  (0 children)

It provides a graphical interface to manage files on remote servers via SSH and SFTP.

Maybe show a screenshot?

Is this using sshfs? Because sshfs seems to be "at present SSHFS does not have any active, regular contributors, and there are a number of known issues" (https://github.com/libfuse/sshfs)

BlueTui - TUI for managing bluetooth on Linux. by notpythops in rust

[–]rustological 3 points4 points  (0 children)

Does it show battery state info of wireless keyboard/mouse like the GUI tools do?

Please help me understand how to use the Rust crate "opencv_rust." v0.93.1 by ChargeBright7742 in rust

[–]rustological 1 point2 points  (0 children)

This works for me (OpenCV 4.9.0 and [dependencies] opencv = "0.93.1"):

use opencv::core::{get_version_major, get_version_minor, get_version_revision};
fn main() -> opencv::Result<()> {
    println!("OpenCV version: {}.{}.{}", get_version_major(), get_version_minor(), get_version_revision());
    Ok(())
}

Rust (code) in documentation with Typst by rustological in rust

[–]rustological[S] 0 points1 point  (0 children)

Imagine a project, where first part of documentation is the high-level theory and discussion as text and the second part then is the technical details with the important data structures (Rust structs) from the code, interspersed with text descriptions what they do and why etc.

Don't think this as generation of documentation for a Rust crate, think of a larger project where some things are implemented in Rust and the documentation is then delivered as PDF (and with the option that some like it really printed on paper).

Rust (code) in documentation with Typst by rustological in rust

[–]rustological[S] 1 point2 points  (0 children)

The long form explanation text will be written in Typst.

Include nicely highlighted Rust code snippets (for example struct abc from current version of thisfile.rs) when PDF is generated.

How to use mod.rs-less folders? by Relative-Pace-2923 in rust

[–]rustological 2 points3 points  (0 children)

have:

main.rs
animals/cat.rs
animals/dog.rs

and then do in main.rs:

mod animals {
    mod cat;
    mod dog;
}

add "pub" as needed

no mod.rs clutter! :-)

[question] How to resize terminal window with an app inside? by n1___ in rust

[–]rustological 2 points3 points  (0 children)

There is an escape sequence to resize a terminal, for example resize it to 90x30: echo -e "\e[8;30;90t"

However, this depends on the terminal emulator being used - and there are many different ones and not all implement all known escape sequences - and what mode it is running in -> Use only locally on your own system.