-- Leo's gemini proxy

-- Connecting to gemini.tuxmachines.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-GB

Tux Machines


Programming Leftovers


Posted by Roy Schestowitz on Aug 12, 2023


Web Browsers/Web Servers Leftovers

Microsoft Problems, Windows TCO



Python from…import Statement


↺ Python from…import Statement


> Python, with its expansive library of modules and packages, offers a variety of functionalities. To access these functionalities in your code, you’ll often need to incorporate them using the import statement.



Transcoding UTF-8 strings to Latin 1 strings at 12 GB/s using AVX-512


↺ Transcoding UTF-8 strings to Latin 1 strings at 12 GB/s using AVX-512


> Most strings online are Unicode strings in the UTF-8 format. Other systems (e.g., Java, Microsoft) might prefer UTF-16. However, Latin 1 is still a common encoding (e.g., within JavaScript runtimes). Its relationship with Unicode is simple: Latin 1 includes the first 256 Unicode characters. It is rich enough to convert most of the standard European languages. If something is stored in Latin 1, it can be encoded using Unicode. The reverse is obviously false. Nevertheless, let us assume that you have a Unicode string in UTF-8 that you want to quickly transcode to Latin 1.



pmax() and pmin(): Finding the Parallel Maximum and Minimum in R


↺ pmax() and pmin(): Finding the Parallel Maximum and Minimum in R


> Title: Unleashing the Power of pmax() and pmin() Functions in R


> Introduction: In the realm of data manipulation and analysis, R stands tall as a versatile programming language. Among its plethora of functions, pmax() and pmin() shine as unsung heroes that can greatly simplify your coding experience. These functions allow you to effortlessly find the element-wise maximum and minimum values across vectors in R, providing an elegant solution to a common programming challenge. In this blog post, we’ll dive into the syntax and explore real-world examples that showcase the true potential of pmax() and pmin().



[Old] Falsehoods Programmers Believe About Names


↺ Falsehoods Programmers Believe About Names


> I have lived in Japan for several years, programming in a professional capacity, and I have broken many systems by the simple expedient of being introduced into them. (Most people call me Patrick McKenzie, but I’ll acknowledge as correct any of six different “full” names, any many systems I deal with will accept precisely none of them.) Similarly, I’ve worked with Big Freaking Enterprises which, by dint of doing business globally, have theoretically designed their systems to allow all names to work in them. I have never seen a computer system which handles names properly and doubt one exists, anywhere.



Introducing nixexpr: Nix expressions for JavaScript


↺ Introducing nixexpr: Nix expressions for JavaScript


> As a regular reminder, it is a bad idea to give me ideas. Today's bad idea is brought to you by managerial nerd sniping, insomnia, and the letter "Q".


> At a high level: writing complicated data structures in JavaScript kinda sucks. Here's an example of the kinds of things that I've been writing as I go down the ElasticSearch tour-de-insanite:


↺ ElasticSearch tour-de-insanite


↺ ElasticSearch tour-de-insanite




gemini.tuxmachines.org

-- Response ended

-- Page fetched on Fri Jun 14 02:12:07 2024