Programming Leftovers
-
Redowan Delowar ☛ Type assertion vs type switches in Go
Despite moonlighting as a gopher for a while, the syntax for type assertion and type switches still trips me up every time I need to go for one of them.
So, to avoid digging through the docs or crafting stodgy LLM prompts multiple times, I decided to jot this down in a gobyexample1 style for the next run.
-
University of Toronto ☛ Putting a Python executable in venvs is probably a necessary thing
When I wrote about getting the Python LSP server working with venvs in a brute force way, Ian Z aka nobrowser commented (and I'm going to quote rather than paraphrase): [...]
-
MaskRay ☛ Raw symbol names in inline assembly
GCC's aarch64 port, from the beginning (2012), supports the constraint "S" to reference a symbol or label. This is nice, as you can create an artificial reference for linker garbage collection, defining sections to hold symbol addresses, or even enabling more creative applications.
-
Spidermonkey Development Blog: SpiderMonkey Newsletter (Firefox 122-123)
Hello everyone!
Matthew Gaudet here from the SpiderMonkey team, giving Jan a break from newsletter writing.
Our newsletter is an opportunity to highlight some of the work that’s happened in SpiderMonkey land over the last couple of releases. Everyone is hard at work (though some of us are nicely rejuvenated from a winter break).
Feel free to email feedback on the shape of the newsletter to me, as I’d be interested in hearing what works for people and what doesn’t.
We’re continuing work on our performance story, with Speedometer 3 being the current main target. We like Speedometer 3 because it provides a set of workloads that we think better reflect the real web, driving improvements to real users too.
-
Python
-
Seth Michael Larson ☛ Security Developer-in-Residence Weekly Report #27
Reviewed the new draft CVE Numbering Authority rules. This document is only available for CNAs right now. I focused on representing small open source vendor CNAs (like the Python Software Foundation, curl, etc). Would like to add prevention of "junk" CVEs into the rules, so they can be dealt with more directly. Will need to update the OpenSSF CVE Numbering Authority for OSS guide once new rules are published.
-
-
Shell/Bash/Zsh/Ksh
-
TecMint ☛ 5 Useful Shell Scripts for Linux Newbies – Part II
This article is an extension of our first article, understanding linux shell scripting. In that piece, we introduced you to scripting. Continuing from there, we aim to maintain the momentum and not disappoint you in this article.
-
TecMint ☛ Understand Linux Shell and Basic Shell Scripting Tips – Part I
Understanding the basics of the Linux shell and shell scripting can greatly enhance your efficiency and control over your system.
-