This blog post explains one way to build and run both Windows and Linux binaries of a rust program from a single process running under Windows Subsystem for Linux (WSL). Update 21.June.2021: Current code at wink/wince at main · deliverystack/wink (github.com) From a bash process under WSL, you can use a shell script to buildContinue reading “Build and Run Windows and Linux Binaries of Rust Programs from Bash with WSL”
Category Archives: Uncategorized
Windows 21390.1 First Impressions
This short blog post describes my first impressions of Windows 21390.1 available to Windows Insiders as of June 2021. The upgrade took an hour or more, possibly because I walked away and did not respond immediately when it powered down while rebooting or when it needed a password. I notice that Windows has again resetContinue reading “Windows 21390.1 First Impressions”
My Initial Impressions of the Rust Programming Language
This blog post presents my initial reactions after a few days working with the Rust programming language. Of course, anyone using a programming language should read the book (https://doc.rust-lang.org/stable/book/). Some people in the rust community may push on this pretty hard. I like to read books, but I do not like to read online, andContinue reading “My Initial Impressions of the Rust Programming Language”
Rust: cannot be used to concatenate two `&str` strings/error[E0369]: cannot add `String` to `&str`
I have to be honest that I cannot easily understand or explain something as simple as string processing in rust, but I have figured out how to work around some of the errors I get from the compiler. I think that Rust: error[E0369]: cannot add `String` to `&str` is likely one of the first thatContinue reading “Rust: cannot be used to concatenate two `&str` strings/error[E0369]: cannot add `String` to `&str`”
Windows Subsystem for Linux Makes Computing Fun Again
Maybe I am a bit unusual for preferring the console and maybe I am a bit jaded from decades with Windows, but I think that almost anyone could be more productive by reducing their mousing and typing with a little knowledge of keyboard shortcuts and how to invoke commands from a shell. When I wasContinue reading “Windows Subsystem for Linux Makes Computing Fun Again”
Konabos Konaverse Podcast with wslguy.net Author John West
My friend Akshay at @Konabos Consulting invited me to join him in an episode of his #Konaverse podcast series. We did not intend to talk about technology, and I don’t think I even mentioned anything relevant to this blog. Hearing our conversation might help readers get to know a little about me as a person.Continue reading “Konabos Konaverse Podcast with wslguy.net Author John West”
Rust: Beware Parentheses on If Conditionals
Assuming that the three conditions represent Booleans, I noticed that code based on this rust would compile, where this would be a syntax error in C#. In rust, the if statement does not require grouping conditions within parentheses. Without noting parentheses placement carefully, I believe that, at least for developers familiar with languages where ifContinue reading “Rust: Beware Parentheses on If Conditionals”
Rust Command Line Tool to Access Windows Features and Commands
My first attempt at a rust program is the winc (pronounced wink) or wince (Windows Command Entry) command line tool that simplifies access to common Windows features and programs. Beware that this morning I didn’t know the first thing about programming with rust; I only knew how to install it, as I had noted inContinue reading “Rust Command Line Tool to Access Windows Features and Commands”
View Windows Process Information from Windows Subsystem for Linux
This blog post explains how a Bash shell script running under Windows Subsystem for Linux you can determine whether a process is running. The Linux ps command can only see processes invoked by WSL. The Windows tasklist.exe command lists all Windows processes. In WSL Bash shells running under Windows Terminal, I use the following functionContinue reading “View Windows Process Information from Windows Subsystem for Linux”
My Current [WSL] [Windows Terminal] Bash Shell Prompt
This blog post describes how I define the text prompt me to enter a command in the Bash shell using Windows Subsystem for Linux with Windows Terminal. This prompt is similar to the default in that it indicates the date and time that the previous command completed, username@hostname, and the current working directory path, butContinue reading “My Current [WSL] [Windows Terminal] Bash Shell Prompt”