Tux Machines
Posted by Roy Schestowitz on Jul 02, 2023
=> today's leftovers | Gemini Articles of Interest
=> ↺ Rust Macros: Practical Examples and Best Practices
In Rust, macros are pieces of code that generate other Rust code using a technique commonly known as metaprogramming. A macro is expanded during compilation, and the output of a macro is inserted into the source code of the program.
The most famous example of a macro is println!. Even though it looks like a function and is used like a function, it’s actually expanded during compilation, and the println! call is replaced with a more complex implementation code.
In this article, you’ll see some practical examples of macros and learn some tips and tricks on how to best use them.
=> ↺ parallelly: Querying, Killing and Cloning Parallel Workers Running Locally or Remotely
parallelly 1.36.0 is on CRAN since May 2023. The parallelly package is part of the Futureverse and enhances the parallel package of base R, e.g. it adds several features you’d otherwise expect to see in parallel. The parallelly package is one of the internal work horses for the future package, but it can also be used outside of the future ecosystem.
=> ↺ Parsing time stamps faster with SIMD instructions
In software, it is common to represent time as a time-stamp string. It is usually specified by a time format string. Some standards use the format %Y%m%d%H%M%S meaning that we print the year, the month, the day, the hours, the minutes and the seconds. The current time as I write this blog post would be 20230701205436 as a time stamp in this format. It is convenient because it is short, easy to read and if you sort the strings lexicographically, you also sort them chronologically.
=> ↺ Security Developer-in-Residence – Weekly Report #1
After announcing myself and my mission to the CPython Core Developers I was quickly invited to join the Python Security Response Team (PSRT) in order to help with triaging and responding to security reports for CPython. So now when you email security@python.org there's a chance I'll be the one helping you out. I've also become a moderator of the mailing list to help with sorting through spam and invalid requests.
In addition to joining the team, I've been gathering feedback from members of the PSRT in order to improve the processes that already exist. From listening to folks, I've heard three common topics and have put together a set of proposed changes to be discussed by PSRT members and ultimately approved by the Python Steering Council. The three topics I've heard are: [...]
=> gemini.tuxmachines.org This content has been proxied by September (ba2dc).Proxy Information
text/gemini;lang=en-GB