From bff25c6bb672dfff29b638af964f853405417732 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 8 Feb 2025 11:12:37 +0200 Subject: Update content for gemtext --- about/resources.gmi | 174 +++++++++++----------- gemfeed/2025-02-08-random-weird-things-ii.gmi | 54 +++---- gemfeed/2025-02-08-random-weird-things-ii.gmi.tpl | 36 ++--- gemfeed/atom.xml | 58 ++++---- index.gmi | 2 +- uptime-stats.gmi | 2 +- 6 files changed, 164 insertions(+), 162 deletions(-) diff --git a/about/resources.gmi b/about/resources.gmi index a85093ff..5943a3f4 100644 --- a/about/resources.gmi +++ b/about/resources.gmi @@ -35,100 +35,100 @@ You won't find any links on this site because, over time, the links will break. In random order: -* Pro Puppet; James Turnbull, Jeffrey McCune; Apress -* Go Brain Teasers - Exercise Your Mind; Miki Tebeka; The Pragmatic Programmers -* DevOps And Site Reliability Engineering Handbook; Stephen Fleming; Audible -* Raku Recipes; J.J. Merelo; Apress -* Programming Perl aka "The Camel Book"; Tom Christiansen, brian d foy, Larry Wall & Jon Orwant; O'Reilly -* Funktionale Programmierung; Peter Pepper; Springer -* Polished Ruby Programming; Jeremy Evans; Packt Publishing -* Concurrency in Go; Katherine Cox-Buday; O'Reilly -* Object-Oriented Programming with ANSI-C; Axel-Tobias Schreiner -* Distributed Systems: Principles and Paradigms; Andrew S. Tanenbaum; Pearson * Effective Java; Joshua Bloch; Addison-Wesley Professional -* Developing Games in Java; David Brackeen and others...; New Riders -* Data Science at the Command Line; Jeroen Janssens; O'Reilly +* Systemprogrammierung in Go; Frank Müller; dpunkt * 21st Century C: C Tips from the New School; Ben Klemens; O'Reilly +* Go Brain Teasers - Exercise Your Mind; Miki Tebeka; The Pragmatic Programmers +* The Docker Book; James Turnbull; Kindle +* The KCNA (Kubernetes and Cloud Native Associate) Book; Nigel Poulton +* Java ist auch eine Insel; Christian Ullenboom; +* Kubernetes Cookbook; Sameer Naik, Sébastien Goasguen, Jonathan Michaux; O'Reilly +* Concurrency in Go; Katherine Cox-Buday; O'Reilly +* C++ Programming Language; Bjarne Stroustrup; +* Clusterbau mit Linux-HA; Michael Schwartzkopff; O'Reilly +* Raku Recipes; J.J. Merelo; Apress * 100 Go Mistakes and How to Avoid Them; Teiva Harsanyi; Manning Publications +* Perl New Features; Joshua McAdams, brian d foy; Perl School +* Pro Puppet; James Turnbull, Jeffrey McCune; Apress +* Polished Ruby Programming; Jeremy Evans; Packt Publishing * The DevOps Handbook; Gene Kim, Jez Humble, Patrick Debois, John Willis; Audible +* Effective awk programming; Arnold Robbins; O'Reilly +* Leanring eBPF; Liz Rice; O'Reilly +* Object-Oriented Programming with ANSI-C; Axel-Tobias Schreiner +* The Pragmatic Programmer; David Thomas; Addison-Wesley +* The Kubernetes Book; Nigel Poulton; Unabridged Audiobook +* Learn You Some Erlang for Great Good; Fred Herbert; No Starch Press +* Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly * Systems Performance Tuning; Gian-Paolo D. Musumeci and others...; O'Reilly * The Go Programming Language; Alan A. A. Donovan; Addison-Wesley Professional +* Modern Perl; Chromatic ; Onyx Neon Press +* Funktionale Programmierung; Peter Pepper; Springer +* Tmux 2: Productive Mouse-free Development; Brain P. Hogan; The Pragmatic Programmers +* Amazon Web Services in Action; Michael Wittig and Andreas Wittig; Manning Publications +* DevOps And Site Reliability Engineering Handbook; Stephen Fleming; Audible +* Programming Perl aka "The Camel Book"; Tom Christiansen, brian d foy, Larry Wall & Jon Orwant; O'Reilly * Learn You a Haskell for Great Good!; Miran Lipovaca; No Starch Press -* The Practise of System and Network Administration; Thomas A. Limoncelli, Christina J. Hogan, Strata R. Chalup; Addison-Wesley Professional Pro Git; Scott Chacon, Ben Straub; Apress -* Perl New Features; Joshua McAdams, brian d foy; Perl School -* Leanring eBPF; Liz Rice; O'Reilly +* Hands-on Infrastructure Monitoring with Prometheus; Joel Bastos, Pedro Araujo; Packt +* Ultimate Go Notebook; Bill Kennedy +* Site Reliability Engineering; How Google runs production systems; O'Reilly +* Developing Games in Java; David Brackeen and others...; New Riders * Higher Order Perl; Mark Dominus; Morgan Kaufmann +* The Practise of System and Network Administration; Thomas A. Limoncelli, Christina J. Hogan, Strata R. Chalup; Addison-Wesley Professional Pro Git; Scott Chacon, Ben Straub; Apress +* Terraform Cookbook; Mikael Krief; Packt Publishing +* DNS and BIND; Cricket Liu; O'Reilly +* Data Science at the Command Line; Jeroen Janssens; O'Reilly * 97 things every SRE should know; Emil Stolarsky, Jaime Woo; O'Reilly * Raku Fundamentals; Moritz Lenz; Apress -* The Pragmatic Programmer; David Thomas; Addison-Wesley -* Effective awk programming; Arnold Robbins; O'Reilly -* C++ Programming Language; Bjarne Stroustrup; -* The KCNA (Kubernetes and Cloud Native Associate) Book; Nigel Poulton -* The Docker Book; James Turnbull; Kindle -* Site Reliability Engineering; How Google runs production systems; O'Reilly -* Java ist auch eine Insel; Christian Ullenboom; -* DNS and BIND; Cricket Liu; O'Reilly -* Amazon Web Services in Action; Michael Wittig and Andreas Wittig; Manning Publications -* Hands-on Infrastructure Monitoring with Prometheus; Joel Bastos, Pedro Araujo; Packt -* Learn You Some Erlang for Great Good; Fred Herbert; No Starch Press -* Clusterbau mit Linux-HA; Michael Schwartzkopff; O'Reilly -* Systemprogrammierung in Go; Frank Müller; dpunkt -* Kubernetes Cookbook; Sameer Naik, Sébastien Goasguen, Jonathan Michaux; O'Reilly -* Tmux 2: Productive Mouse-free Development; Brain P. Hogan; The Pragmatic Programmers -* Terraform Cookbook; Mikael Krief; Packt Publishing -* Ultimate Go Notebook; Bill Kennedy -* The Kubernetes Book; Nigel Poulton; Unabridged Audiobook -* Modern Perl; Chromatic ; Onyx Neon Press -* Think Raku (aka Think Perl 6); Laurent Rosenfeld, Allen B. Downey; O'Reilly +* Distributed Systems: Principles and Paradigms; Andrew S. Tanenbaum; Pearson ## Technical references I didn't read them from the beginning to the end, but I am using them to look up things. The books are in random order: +* BPF Performance Tools - Linux System and Application Observability, Brendan Gregg; Addison Wesley * Understanding the Linux Kernel; Daniel P. Bovet, Marco Cesati; O'Reilly -* Groovy Kurz & Gut; Joerg Staudemeier; O'Reilly +* Implementing Service Level Objectives; Alex Hidalgo; O'Reilly * The Linux Programming Interface; Michael Kerrisk; No Starch Press * Relayd and Httpd Mastery; Michael W Lucas -* Implementing Service Level Objectives; Alex Hidalgo; O'Reilly -* BPF Performance Tools - Linux System and Application Observability, Brendan Gregg; Addison Wesley * Algorithms; Robert Sedgewick, Kevin Wayne; Addison Wesley +* Groovy Kurz & Gut; Joerg Staudemeier; O'Reilly ## Self-development and soft-skills books In random order: -* Ultralearning; Anna Laurent; Self-published via Amazon -* Buddah and Einstein walk into a Bar; Guy Joseph Ale, Claire Bloom; Blackstone Publishing -* Staff Engineer: Leadership beyond the management track; Will Larson; Audible -* Stop starting, start finishing; Arne Roock; Lean-Kanban University -* Psycho-Cybernetics; Maxwell Maltz; Perigee Books -* Eat That Frog; Brian Tracy -* 101 Essays that change the way you think; Brianna Wiest; Audible * Ultralearning; Scott Young; Thorsons +* Never Split the Difference; Chris Voss, Tahl Raz; Random House Business * Slow Productivity; Cal Newport; Penguin Random House -* Search Inside Yourself - The Unexpected path to Achieving Success, Happiness (and World Peace); Chade-Meng Tan, Daniel Goleman, Jon Kabat-Zinn; HarperOne -* The Daily Stoic; Ryan Holiday, Stephen Hanselman; Profile Books +* Eat That Frog; Brian Tracy +* The Obstacle Is The Way; Ryan Holiday; Profile Books Ltd +* Ultralearning; Anna Laurent; Self-published via Amazon * The Joy of Missing Out; Christina Crook; New Society Publishers -* Atomic Habits; James Clear; Random House Business +* Soft Skills; John Sommez; Manning Publications +* 101 Essays that change the way you think; Brianna Wiest; Audible +* The Phoenix Project - A Novel About IT, DevOps, and Helping your Business Win; Gene Kim and Kevin Behr; Trade Select +* Digital Minimalism; Cal Newport; Portofolio Penguin +* Buddah and Einstein walk into a Bar; Guy Joseph Ale, Claire Bloom; Blackstone Publishing * The 7 Habits Of Highly Effective People; Stephen R. Covey; Simon & Schuster UK +* Psycho-Cybernetics; Maxwell Maltz; Perigee Books +* Stop starting, start finishing; Arne Roock; Lean-Kanban University +* Search Inside Yourself - The Unexpected path to Achieving Success, Happiness (and World Peace); Chade-Meng Tan, Daniel Goleman, Jon Kabat-Zinn; HarperOne +* The Complete Software Developer's Career Guide; John Sonmez; Unabridged Audiobook +* The Power of Now; Eckhard Tolle; Yellow Kite * Time Management for System Administrators; Thomas A. Limoncelli; O'Reilly -* Consciousness: A Very Short Introduction; Susan Blackmore; Oxford Uiversity Press -* The Good Enough Job; Simone Stolzoff; Ebury Edge -* So Good They Can't Ignore You; Cal Newport; Business Plus +* Deep Work; Cal Newport; Piatkus * Who Moved My Cheese?; Dr. Spencer Johnson; Vermilion -* The Phoenix Project - A Novel About IT, DevOps, and Helping your Business Win; Gene Kim and Kevin Behr; Trade Select -* The Bullet Journal Method; Ryder Carroll; Fourth Estate +* The Off Switch; Mark Cropley; Virgin Books +* The Daily Stoic; Ryan Holiday, Stephen Hanselman; Profile Books +* Staff Engineer: Leadership beyond the management track; Will Larson; Audible * Solve for Happy; Mo Gawdat -* The Obstacle Is The Way; Ryan Holiday; Profile Books Ltd +* The Good Enough Job; Simone Stolzoff; Ebury Edge +* Consciousness: A Very Short Introduction; Susan Blackmore; Oxford Uiversity Press +* The Bullet Journal Method; Ryder Carroll; Fourth Estate * Influence without Authority; A. Cohen, D. Bradford; Wiley -* Never Split the Difference; Chris Voss, Tahl Raz; Random House Business -* Soft Skills; John Sommez; Manning Publications -* The Power of Now; Eckhard Tolle; Yellow Kite -* The Complete Software Developer's Career Guide; John Sonmez; Unabridged Audiobook -* The Off Switch; Mark Cropley; Virgin Books -* Deep Work; Cal Newport; Piatkus * Eat That Frog!; Brian Tracy; Hodder Paperbacks -* Digital Minimalism; Cal Newport; Portofolio Penguin +* So Good They Can't Ignore You; Cal Newport; Business Plus +* Atomic Habits; James Clear; Random House Business => ../notes/index.gmi Here are notes of mine for some of the books @@ -136,30 +136,30 @@ In random order: Some of these were in-person with exams; others were online learning lectures only. In random order: -* The Ultimate Kubernetes Bootcamp; School of Devops; O'Reilly Online +* Red Hat Certified System Administrator; Course + certification (Although I had the option, I decided not to take the next course as it is more effective to self learn what I need) * F5 Loadbalancers Training; 2-day on-site training; F5, Inc. +* Developing IaC with Terraform (with Live Lessons); O'Reilly Online * Apache Tomcat Best Practises; 3-day on-site training -* Linux Security and Isolation APIs Training; Michael Kerrisk; 3-day on-site training +* Structure and Interpretation of Computer Programs; Harold Abelson and more...; +* Cloud Operations on AWS - Learn how to configure, deploy, maintain, and troubleshoot your AWS environments; 3-day online live training with labs; Amazon +* Scripting Vim; Damian Conway; O'Reilly Online * The Well-Grounded Rubyist Video Edition; David. A. Black; O'Reilly Online -* Protocol buffers; O'Reilly Online * AWS Immersion Day; Amazon; 1-day interactive online training * Ultimate Go Programming; Bill Kennedy; O'Reilly Online -* Scripting Vim; Damian Conway; O'Reilly Online -* Developing IaC with Terraform (with Live Lessons); O'Reilly Online +* The Ultimate Kubernetes Bootcamp; School of Devops; O'Reilly Online +* Protocol buffers; O'Reilly Online * MySQL Deep Dive Workshop; 2-day on-site training -* Structure and Interpretation of Computer Programs; Harold Abelson and more...; -* Algorithms Video Lectures; Robert Sedgewick; O'Reilly Online -* Cloud Operations on AWS - Learn how to configure, deploy, maintain, and troubleshoot your AWS environments; 3-day online live training with labs; Amazon * Functional programming lecture; Remote University of Hagen -* Red Hat Certified System Administrator; Course + certification (Although I had the option, I decided not to take the next course as it is more effective to self learn what I need) +* Algorithms Video Lectures; Robert Sedgewick; O'Reilly Online +* Linux Security and Isolation APIs Training; Michael Kerrisk; 3-day on-site training ## Technical guides These are not whole books, but guides (smaller or larger) which I found very useful. in random order: +* How CPUs work at https://cpu.land * Advanced Bash-Scripting Guide * Raku Guide at https://raku.guide -* How CPUs work at https://cpu.land ## Podcasts @@ -167,46 +167,46 @@ These are not whole books, but guides (smaller or larger) which I found very use In random order: -* BSD Now -* Dev Interrupted * The ProdCast (Google SRE Podcast) +* Maintainable * Fork Around And Find Out * Deep Questions with Cal Newport -* Cup o' Go [Golang] -* Fallthrough [Golang] -* Maintainable -* The Changelog Podcast(s) -* Backend Banter +* BSD Now * Hidden Brain +* The Changelog Podcast(s) * The Pragmatic Engineer Podcast +* Dev Interrupted +* Backend Banter +* Cup o' Go [Golang] +* Fallthrough [Golang] ### Podcasts I liked I liked them but am not listening to them anymore. The podcasts have either "finished" (no more episodes) or I stopped listening to them due to time constraints or a shift in my interests. -* FLOSS weekly * Go Time (predecessor of fallthrough) * Ship It (predecessor of Fork Around And Find Out) +* Modern Mentor +* FLOSS weekly * Java Pub House * CRE: Chaosradio Express [german] -* Modern Mentor ## Newsletters I like This is a mix of tech and non-tech newsletters I am subscribed to. In random order: +* VK Newsletter +* The Valuable Dev * Applied Go Weekly Newsletter +* byteSizeGo * Golang Weekly +* Ruby Weekly * Register Spill -* The Imperfectionist -* VK Newsletter -* byteSizeGo -* Changelog News -* The Pragmatic Engineer -* The Valuable Dev * Andreas Brandhorst Newsletter (Sci-Fi author) +* The Pragmatic Engineer +* Changelog News * Monospace Mentor -* Ruby Weekly +* The Imperfectionist # Formal education diff --git a/gemfeed/2025-02-08-random-weird-things-ii.gmi b/gemfeed/2025-02-08-random-weird-things-ii.gmi index 31b5eccb..b9cff06e 100644 --- a/gemfeed/2025-02-08-random-weird-things-ii.gmi +++ b/gemfeed/2025-02-08-random-weird-things-ii.gmi @@ -18,22 +18,32 @@ Every so often, I come across random, weird, and unexpected things on the intern ## Table of Contents * ⇢ Random Weird Things - Part Ⅱ +* ⇢ ⇢ 11. The SQLite codebase is a gem * ⇢ ⇢ Go Programming -* ⇢ ⇢ ⇢ 11. Official Go font -* ⇢ ⇢ ⇢ 12. Go functions can have methods +* ⇢ ⇢ ⇢ 12. Official Go font +* ⇢ ⇢ ⇢ 13. Go functions can have methods * ⇢ ⇢ macOS -* ⇢ ⇢ ⇢ 13. ß and ss are treated the same -* ⇢ ⇢ ⇢ 14. Colon as file path separator -* ⇢ ⇢ 15. Polyglots - programs written in multiple languages -* ⇢ ⇢ 16. Languages, where indices start at 1 -* ⇢ ⇢ 17. Perl Poetry -* ⇢ ⇢ 18. CSS3 is turing complete -* ⇢ ⇢ 19. The SQLite codebase is a gem +* ⇢ ⇢ ⇢ 14. ß and ss are treated the same +* ⇢ ⇢ ⇢ 15. Colon as file path separator +* ⇢ ⇢ 16. Polyglots - programs written in multiple languages +* ⇢ ⇢ 17. Languages, where indices start at 1 +* ⇢ ⇢ 18. Perl Poetry +* ⇢ ⇢ 19. CSS3 is turing complete * ⇢ ⇢ 20. The biggest shell programs +## 11. The SQLite codebase is a gem + +Check this out: + +=> ./random-weird-things-ii/sqlite-gem.png SQLite Gem + +Source: + +=> https://wetdry.world/@memes/112717700557038278 + ## Go Programming -### 11. Official Go font +### 12. Official Go font The Go programming language has an official font called "Go Font." It was created to complement the aesthetic of the Go language, ensuring clear and legible rendering of code. The font includes a monospace version for code and a proportional version for general text, supporting consistent look and readability in Go-related materials and development environments. @@ -47,7 +57,7 @@ The design emphasizes simplicity and readability, reflecting Go's philosophy of I found it interesting and/or weird, as Go is a programming language. Why should it bother having its own font? I have never seen another open-source project like Go do this. But I also like it. Maybe I will use it in the future for this blog :-) -### 12. Go functions can have methods +### 13. Go functions can have methods Functions on struct types? Well, know. Functions on types like `int` and `string`? It's also known of, but a bit lesser. Functions on function types? That sounds a bit funky, but it's possible, too! For demonstration, have a look at this snippet: @@ -87,7 +97,7 @@ It runs just fine: For personal computing, I don't use Apple, but I have to use it for work. -### 13. ß and ss are treated the same +### 14. ß and ss are treated the same Know German? In German, the letter "sarp s" is written as ß. ß is treated the same as ss on macOS. @@ -113,7 +123,7 @@ So, even though "Maß" and "Mass" are not strictly equivalent, the macOS file sy ``` -### 14. Colon as file path separator +### 15. Colon as file path separator MacOS can use the colon as a file path separator on its ADFS (file system). A typical ADFS file pathname on a hard disc might be: @@ -125,7 +135,7 @@ I can't reproduce this on my (work) Mac, though, as it now uses the APFS file sy => https://social.jvns.ca/@b0rk/113041293527832730 -## 15. Polyglots - programs written in multiple languages +## 16. Polyglots - programs written in multiple languages A coding polyglot is a program or script written so that it can be executed in multiple programming languages without modification. This is typically achieved by leveraging syntax overlaps or crafting valid and meaningful code in each targeted language. Polyglot programs are often created as a challenge or for demonstration purposes to showcase language similarities or clever coding techniques. @@ -133,7 +143,7 @@ Check out my very own polyglot: => ./2014-03-24-the-fibonacci.pl.c-polyglot.gmi The `fibonatti.pl.c` Polyglot -## 16. Languages, where indices start at 1 +## 17. Languages, where indices start at 1 Array indices start at 1 instead of 0 in some programming languages, known as one-based indexing. This can be controversial because zero-based indexing is more common in popular languages like C, C++, Java, and Python. One-based indexing can lead to off-by-one errors when developers switch between languages with different indexing schemes. @@ -160,7 +170,7 @@ print(arr[1]) -- Accessing the first element One-based indexing is more natural for human-readable, mathematical, and theoretical contexts, where counting traditionally starts from one. -## 17. Perl Poetry +## 18. Perl Poetry Perl Poetry is a playful and creative practice within the programming community where Perl code is written as a poem. These poems are crafted to be syntactically valid Perl code and make sense as poetic text, often with whimsical or humorous intent. This showcases Perl's flexibility and expressiveness, as well as the creativity of its programmers. @@ -210,7 +220,7 @@ This is perl, v5.8.8 built for i386-freebsd-64int => ./2008-06-26-perl-poetry.gmi More Perl Poetry of mine -## 18. CSS3 is turing complete +## 19. CSS3 is turing complete CSS3 is Turing complete because it can simulate a Turing machine using only CSS animations and styles without any JavaScript or external logic. This is achieved by using keyframe animations to change the styles of HTML elements in a way that encodes computation, performing calculations and state transitions. @@ -226,16 +236,6 @@ Check out this 100% CSS implementation of the Conways Game of Life: Conway's Game of Life is Turing complete because it can simulate a universal Turing machine, meaning it can perform any computation that a computer can, given the right initial conditions and sufficient time and space. Suppose a language can implement Conway's Game of Life. In that case, it demonstrates the language's ability to handle complex state transitions and computations. It has the necessary constructs (like iteration, conditionals, and data manipulation) to simulate any algorithm, thus confirming its Turing completeness. -## 19. The SQLite codebase is a gem - -Check this out: - -=> ./random-weird-things-ii/sqlite-gem.png SQLite Gem - -Source: - -=> https://wetdry.world/@memes/112717700557038278 - ## 20. The biggest shell programs One would think that shell scripts are only suitable for small tasks. Well, I must be wrong, as there are huge shell programs out there (up to 87k LOC) which aren't auto-generated but hand-written! diff --git a/gemfeed/2025-02-08-random-weird-things-ii.gmi.tpl b/gemfeed/2025-02-08-random-weird-things-ii.gmi.tpl index 35b7c4f0..e0d3b954 100644 --- a/gemfeed/2025-02-08-random-weird-things-ii.gmi.tpl +++ b/gemfeed/2025-02-08-random-weird-things-ii.gmi.tpl @@ -16,9 +16,19 @@ Every so often, I come across random, weird, and unexpected things on the intern << template::inline::toc +## 11. The SQLite codebase is a gem + +Check this out: + +=> ./random-weird-things-ii/sqlite-gem.png SQLite Gem + +Source: + +=> https://wetdry.world/@memes/112717700557038278 + ## Go Programming -### 11. Official Go font +### 12. Official Go font The Go programming language has an official font called "Go Font." It was created to complement the aesthetic of the Go language, ensuring clear and legible rendering of code. The font includes a monospace version for code and a proportional version for general text, supporting consistent look and readability in Go-related materials and development environments. @@ -32,7 +42,7 @@ The design emphasizes simplicity and readability, reflecting Go's philosophy of I found it interesting and/or weird, as Go is a programming language. Why should it bother having its own font? I have never seen another open-source project like Go do this. But I also like it. Maybe I will use it in the future for this blog :-) -### 12. Go functions can have methods +### 13. Go functions can have methods Functions on struct types? Well, know. Functions on types like `int` and `string`? It's also known of, but a bit lesser. Functions on function types? That sounds a bit funky, but it's possible, too! For demonstration, have a look at this snippet: @@ -72,7 +82,7 @@ It runs just fine: For personal computing, I don't use Apple, but I have to use it for work. -### 13. ß and ss are treated the same +### 14. ß and ss are treated the same Know German? In German, the letter "sarp s" is written as ß. ß is treated the same as ss on macOS. @@ -98,7 +108,7 @@ So, even though "Maß" and "Mass" are not strictly equivalent, the macOS file sy ``` -### 14. Colon as file path separator +### 15. Colon as file path separator MacOS can use the colon as a file path separator on its ADFS (file system). A typical ADFS file pathname on a hard disc might be: @@ -110,7 +120,7 @@ I can't reproduce this on my (work) Mac, though, as it now uses the APFS file sy => https://social.jvns.ca/@b0rk/113041293527832730 -## 15. Polyglots - programs written in multiple languages +## 16. Polyglots - programs written in multiple languages A coding polyglot is a program or script written so that it can be executed in multiple programming languages without modification. This is typically achieved by leveraging syntax overlaps or crafting valid and meaningful code in each targeted language. Polyglot programs are often created as a challenge or for demonstration purposes to showcase language similarities or clever coding techniques. @@ -118,7 +128,7 @@ Check out my very own polyglot: => ./2014-03-24-the-fibonacci.pl.c-polyglot.gmi The `fibonatti.pl.c` Polyglot -## 16. Languages, where indices start at 1 +## 17. Languages, where indices start at 1 Array indices start at 1 instead of 0 in some programming languages, known as one-based indexing. This can be controversial because zero-based indexing is more common in popular languages like C, C++, Java, and Python. One-based indexing can lead to off-by-one errors when developers switch between languages with different indexing schemes. @@ -145,7 +155,7 @@ print(arr[1]) -- Accessing the first element One-based indexing is more natural for human-readable, mathematical, and theoretical contexts, where counting traditionally starts from one. -## 17. Perl Poetry +## 18. Perl Poetry Perl Poetry is a playful and creative practice within the programming community where Perl code is written as a poem. These poems are crafted to be syntactically valid Perl code and make sense as poetic text, often with whimsical or humorous intent. This showcases Perl's flexibility and expressiveness, as well as the creativity of its programmers. @@ -195,7 +205,7 @@ This is perl, v5.8.8 built for i386-freebsd-64int => ./2008-06-26-perl-poetry.gmi More Perl Poetry of mine -## 18. CSS3 is turing complete +## 19. CSS3 is turing complete CSS3 is Turing complete because it can simulate a Turing machine using only CSS animations and styles without any JavaScript or external logic. This is achieved by using keyframe animations to change the styles of HTML elements in a way that encodes computation, performing calculations and state transitions. @@ -211,16 +221,6 @@ Check out this 100% CSS implementation of the Conways Game of Life: Conway's Game of Life is Turing complete because it can simulate a universal Turing machine, meaning it can perform any computation that a computer can, given the right initial conditions and sufficient time and space. Suppose a language can implement Conway's Game of Life. In that case, it demonstrates the language's ability to handle complex state transitions and computations. It has the necessary constructs (like iteration, conditionals, and data manipulation) to simulate any algorithm, thus confirming its Turing completeness. -## 19. The SQLite codebase is a gem - -Check this out: - -=> ./random-weird-things-ii/sqlite-gem.png SQLite Gem - -Source: - -=> https://wetdry.world/@memes/112717700557038278 - ## 20. The biggest shell programs One would think that shell scripts are only suitable for small tasks. Well, I must be wrong, as there are huge shell programs out there (up to 87k LOC) which aren't auto-generated but hand-written! diff --git a/gemfeed/atom.xml b/gemfeed/atom.xml index 9df1f07e..a1ed4618 100644 --- a/gemfeed/atom.xml +++ b/gemfeed/atom.xml @@ -1,6 +1,6 @@ - 2025-02-08T11:06:16+02:00 + 2025-02-08T11:11:35+02:00 foo.zone feed To be in the .zone! @@ -20,6 +20,8 @@

Random Weird Things - Part Ⅱ



+Published at 2025-02-08T11:06:16+02:00
+
Every so often, I come across random, weird, and unexpected things on the internet. I thought it would be neat to share them here from time to time. This is the second run.

2024-07-05 Random Weird Things - Part Ⅰ
@@ -37,22 +39,32 @@

+

11. The SQLite codebase is a gem


+
+Check this out:
+
+SQLite Gem
+
+Source:
+
+https://wetdry.world/@memes/112717700557038278
+

Go Programming



-

11. Official Go font


+

12. Official Go font



The Go programming language has an official font called "Go Font." It was created to complement the aesthetic of the Go language, ensuring clear and legible rendering of code. The font includes a monospace version for code and a proportional version for general text, supporting consistent look and readability in Go-related materials and development environments.

@@ -66,7 +78,7 @@
I found it interesting and/or weird, as Go is a programming language. Why should it bother having its own font? I have never seen another open-source project like Go do this. But I also like it. Maybe I will use it in the future for this blog :-)

-

12. Go functions can have methods


+

13. Go functions can have methods



Functions on struct types? Well, know. Functions on types like int and string? It's also known of, but a bit lesser. Functions on function types? That sounds a bit funky, but it's possible, too! For demonstration, have a look at this snippet:

@@ -112,7 +124,7 @@ http://www.gnu.org/software/src-highlite -->
For personal computing, I don't use Apple, but I have to use it for work.

-

13. ß and ss are treated the same


+

14. ß and ss are treated the same



Know German? In German, the letter "sarp s" is written as ß. ß is treated the same as ss on macOS.

@@ -141,7 +153,7 @@ http://www.gnu.org/software/src-highlite -->
-

14. Colon as file path separator


+

15. Colon as file path separator



MacOS can use the colon as a file path separator on its ADFS (file system). A typical ADFS file pathname on a hard disc might be:

@@ -153,7 +165,7 @@ ADFS::4.$.Documents.Techwriter.Myfile
https://social.jvns.ca/@b0rk/113041293527832730

-

15. Polyglots - programs written in multiple languages


+

16. Polyglots - programs written in multiple languages



A coding polyglot is a program or script written so that it can be executed in multiple programming languages without modification. This is typically achieved by leveraging syntax overlaps or crafting valid and meaningful code in each targeted language. Polyglot programs are often created as a challenge or for demonstration purposes to showcase language similarities or clever coding techniques.

@@ -161,7 +173,7 @@ ADFS::4.$.Documents.Techwriter.Myfile
The fibonatti.pl.c Polyglot

-

16. Languages, where indices start at 1


+

17. Languages, where indices start at 1



Array indices start at 1 instead of 0 in some programming languages, known as one-based indexing. This can be controversial because zero-based indexing is more common in popular languages like C, C++, Java, and Python. One-based indexing can lead to off-by-one errors when developers switch between languages with different indexing schemes.

@@ -195,7 +207,7 @@ http://www.gnu.org/software/src-highlite -->
One-based indexing is more natural for human-readable, mathematical, and theoretical contexts, where counting traditionally starts from one.

-

17. Perl Poetry


+

18. Perl Poetry



Perl Poetry is a playful and creative practice within the programming community where Perl code is written as a poem. These poems are crafted to be syntactically valid Perl code and make sense as poetic text, often with whimsical or humorous intent. This showcases Perl's flexibility and expressiveness, as well as the creativity of its programmers.

@@ -248,7 +260,7 @@ This is perl, v5.8.8 built 8.8 built