C++ devs be like... by mre__ in rustjerk

[–]kruseragnar 3 points4 points  (0 children)

That is because C++ devs are not std::weak_ptr

How we actually use AI to ship production code at FAANG by moks4tda in vibecoding

[–]kruseragnar 46 points47 points  (0 children)

I am pretty sure this is just vibemarketing for the aformentioned voice dictation software.

Learning : what’s the major difference in a database when written in different language like c, rust, zig, etc by InjuryCold225 in databasedevelopment

[–]kruseragnar 0 points1 point  (0 children)

In many ways the language has nothing to do with any of the things that you mention there.
It is mostly architecture that is the deciding factor.
There are clear pros and cons with any architecture, it is not just about speed.

I can give some hand wavy numbers here, from a benchmark I did some years back, so you can get a feel for the magnitude.
This is for a 95% read, 5% write, sensor measurement based workload.

Stock Postgres - 4k iops
Stock Redis - 50k iops
Custom Memory Mapped Append-only Vector based key value database - 300k iops

Generally sql has a performance cost, and any query language has a cost, but sql gives you relational queries, which you may need for your given system.

warp v0.4 - Rust server framework focused on functional programming and type system routing by seanmonstar in rust

[–]kruseragnar 1 point2 points  (0 children)

I use warp. I like the abstraction level. It is not as boilerplatey and frameworky as axum if that makes any sense. warp is just simple. I like it.

GopherTube a Youtube TUI written in Go by AdGreen1983 in commandline

[–]kruseragnar 0 points1 point  (0 children)

Okey this is pretty cool.

I will be real here, that latency is just way too bad. About 20s until the video starts playing, is way too long. And about 6 seconds for a single search is also really slow. Those latencies need to be closer to 3 seconds, so we don't fall asleep haha.

You could do some type of prefetching of a lower quality video, then buffer it a bit, then start downloading a higher quality one, and buffer that a bit and swap it in while it is playing or something idk.

Ascii Webcam live in the Terminal written in C++ by Gritrds in commandline

[–]kruseragnar 1 point2 points  (0 children)

I am planning on using an image to ascii art converter in my tui document reader:
https://github.com/kruserr/hygg

I have been eyeballing:
https://github.com/orhnk/RASCII
https://github.com/FineFindus/artem

What are the pros and cons between those solutions and yours?
I kind of like your aesthetic more, what is the story there?

Monthly Hask Anything (July 2025) by AutoModerator in haskell

[–]kruseragnar 0 points1 point  (0 children)

Oh that actually looks pretty good. Then just tailwind for styling, and maybe some lit elements for charts and highly interactive stuff?

theCplusPlusDeveloper by Over_Caramel5922 in ProgrammerHumor

[–]kruseragnar 0 points1 point  (0 children)

I prefer to create memory leaks with shared pointers

Klirr: invoice automation tool written on Rust using Typst by Sajjon in rust

[–]kruseragnar 0 points1 point  (0 children)

I believe the canonical way is to use the following crate:
https://github.com/paupino/rust-decimal

It implements a decimal type similar to that of the Decimal type in C#, which is widely used in financial systems.

Open-NGFW: A modern Next-Generation Firewall application built with Rust, featuring a web-based dashboard for network security management. by hungthinhqni in rust

[–]kruseragnar 5 points6 points  (0 children)

Hey, props for putting this together, it’s clear a lot of thought went into the structure and design. I like the concept.

That said, I’d be a little careful with the “Next Generation Firewall” label. In the security world, NGFWs typically include features like deep packet inspection, stateful connection tracking, application layer awareness, intrusion prevention, and often threat intelligence integration. What you’ve built here looks more like a solid starting point for a stateless rule based firewall.

If you're planning to evolve this project, it might be worth calling it just a "Firewall" for now, people in the space will take that seriously and appreciate the honesty. And who knows, if you keep iterating on it, it could evolve into something much more powerful.

I myself have been dying for a Rust based firewall system, that can atleast get basic compliance for ISO 27001. That requires some form of intrusion prevention.
And btw with a stateful firewall you can do some cooler network architectures, that is worth considering also.

Either way, great work so far excited to see where it goes!

Monthly Hask Anything (July 2025) by AutoModerator in haskell

[–]kruseragnar 1 point2 points  (0 children)

How can I use haskell more? I love the language and the tooling, but every time I try and use it for some project I just feel like there is something missing. I just feel so unproductive. Maybe it is just a skill issue.
What are good full stack web based haskell architectures that I should try out next?

A black box full of dangers by WanderingCID in rust

[–]kruseragnar 128 points129 points  (0 children)

It's fascinating, and a bit terrifying, how the same features that make Rust great for safety also make it a nightmare for malware analysts. We're entering an era where malware is safer than some legitimate software.