How many cores are on my system?
This is a seemingly simple question. We’d like to use the number of available processors to determine how many jobs we can safely run in parallel. Linux provides various ways to fetch the number of available processors including:
- nproc
- lscpu
- /proc/cpuinfo
> nproc
32
> lscpu | grep ^CPU\(s\)\: | awk '{print $2}'
32
> grep --count "processor" /proc/cpuinfo
32
I’ve been thinking about ways to be more active in my Rust exploration and I think that I’ve settled on the idea of Prompts.
Prompts are project-based learning experiments where I will explore Rust concepts, crates, or tools. The prompts should be narrow enough in scope that they can be completed in about a week. While only spending at most an hour a day.
The prompts will include
- a goal - what I am trying to learn
- description - the scenario I am working under
- constraints - ensures the project can be scoped to a few days or a weeks worth of work
- models - the minimal high level objects I want to represent
- acceptance criteria - what I consider is done
More importantly prompts should not be
The NSA is officially recommending that software developers and operators migrate away from C and C++ to memory-safe languages like Rust, Go, Swift, and others.
The article cites Google and Microsoft, who state that 70 percent of their vulnerabilities can be attributed to software memory issues.
Welcome Aboard
It’s important to have a place to call your own. A place to say what you need to say and to own what you say.
This place is mine and so are the opinions and posts.
Sometimes post will be links to interesting articles, opinions about current events in tech, or just a place to document how I solved a problem.
Whatever the reason, I hope you find joy and stick around for the show.