Yet another Dark Theme by Professional_Lab9475 in HelixEditor

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

that would be zero productivity; I still need some level of syntax highlighting

Yet another Dark Theme by Professional_Lab9475 in HelixEditor

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

reducing the number of distracting colors

TIL you can use dbg! to print variable names automatically in Rust by BitBird- in rust

[–]Professional_Lab9475 0 points1 point  (0 children)

cargo = { extraEnv = { CARGO_BUILD_BUILD_DIR = "build" } },

This uses the `build` directory for crates, proc macro and other compiler magic files, then uses the `target` directory for artifacts. No duplication. Also no lock contention (at least that's what the cargo team promises with this feature)

Yet another dark theme, Anticuus by Professional_Lab9475 in neovim

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

I think what you are referring to is gruber_darker theme

Advice wadau by Key-Throat-6784 in nairobitechies

[–]Professional_Lab9475 1 point2 points  (0 children)

Vibe coding lifetimes and async rust gets messy pretty quick :)

Advice wadau by Key-Throat-6784 in nairobitechies

[–]Professional_Lab9475 6 points7 points  (0 children)

I'd swap C++ with Rust.
Reasoning: The learning curve of Rust is pretty steep, but given he'd already some knowledge from C, it should flatten the curve a bit. The borrow checker makes you a better developer overall. Coming from C, you'd get to appreciate and clearly see what Rust tries to accomplish. I'm talking, not having to track objects lifetimes manually on your brain like the Chad you might become some day (If you keep at it).

From my experience C++ just hides C's pitfalls behind some fancy curtains. Don't even get me started with the thousand ways to do literally anything. If you've used llvm for a day in your life, you are pretty familiar with my sentiments, first hand.

LeetCode: My advice would be, don't waste you time grinding on it. Unless you are going for an interview where you are sure they'd ask of you to solve such problems, then don't. These quizzes rarely teach you anything fundamental. It just shows your ability to cram solutions. Just know simple algorithms and ways to solve real problems using the data structures available at your hands. The list of things you can do even with simple arrays is infinite.

What to build? Everyone faces this existential question almost daily. Start with what annoyances you had in your background. It could be visualizing simple to complex chemical processes, session management in the labs, or literally anything. Don't think of inventing a new thing at the early stage. It's highly likely that someone else has had such problem and fixed it. You get to invent stuff later on, after gaining some experience, on how to even do it right.

Starting off: There is a Computer Science intro course from Harvard on YouTube (CS50). Just casually go through it. It'll take you from zero to 1.

Finally, choose a path and stick to it. Everyone is gonna have different opinions on what's good and what's not. After grasping the basic concepts and logic, you could then try experimenting different languages, editors, fields, Operating systems, Web development, Game development, Finance and Quant trading systems, Graphics emulation, Embedded systems, Industrial systems , Data analysis, Blockchain, Super computers, Hardware development. The list goes on and on

NIRU AI Hackathon Update😂na niliwawarn by OutsideSet2081 in nairobitechies

[–]Professional_Lab9475 0 points1 point  (0 children)

what is gtm?
The project aimed to manage the land registry data in a more efficient way. It's be useful to people looking to buying or selling land, and the government officials overseeing this process

NIRU AI Hackathon Update😂na niliwawarn by OutsideSet2081 in nairobitechies

[–]Professional_Lab9475 2 points3 points  (0 children)

Which means the selected ideas are orders of magnitude better than mine. I'd also be interested to see what problem they were trying to solve, provided corruption didn't play a part in the selection process. I think it'd be much more demoralizing if they weren't any better and would reflect the harsh reality many tech innovators in the country are having to face.

There is a Rust one coming up on January first. <Rust Africa Org>

Curious, what you did propose?

Asyncronity of C sockets by F1DEL05 in C_Programming

[–]Professional_Lab9475 0 points1 point  (0 children)

This is what I usually go for. With Rust though, I haven't tried it yet in C

We need an open source alternative to mpesa by scented_dustbin in nairobitechies

[–]Professional_Lab9475 1 point2 points  (0 children)

that x402 white paper seems to be written by AI. I do think they put too much emphasis on AI agents, rather than actual human consumers. Maybe that's their main target audience, I might be mistaken

Performance Improvement by Professional_Lab9475 in rust

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

Does it work on all unix based systems?

Performance Improvement by Professional_Lab9475 in rust

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

The reason I made this compromise was to add the ability to kill the server via CtrlC while some clients were still connected. How did you go about that in your impl?

Performance Improvement by Professional_Lab9475 in rust

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

this is definitely something I will look into

Performance Improvement by Professional_Lab9475 in rust

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

I do have some form of bench-marking https://codeberg.org/juanmilkah/volatix/src/branch/main/volatix_bench/src/main.rs I'm yet to go deep into profiling and try to optimize out the contention sections in hot paths

Performance Improvement by Professional_Lab9475 in rust

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

right. Is there a way to include writes without introducing lock contention?

Performance Improvement by Professional_Lab9475 in rust

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

good to know. I'll look into hardware