diff options
| author | Paul Buetow <paul@buetow.org> | 2025-02-08 11:12:37 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-02-08 11:12:37 +0200 |
| commit | bff25c6bb672dfff29b638af964f853405417732 (patch) | |
| tree | 5f84594f1879c19547b06eb81a7e608edb57eb2a /gemfeed | |
| parent | 3b38bcc71e896a04c899c900e1a5e9b0f651cc5a (diff) | |
Update content for gemtext
Diffstat (limited to 'gemfeed')
| -rw-r--r-- | gemfeed/2025-02-08-random-weird-things-ii.gmi | 54 | ||||
| -rw-r--r-- | gemfeed/2025-02-08-random-weird-things-ii.gmi.tpl | 36 | ||||
| -rw-r--r-- | gemfeed/atom.xml | 58 |
3 files changed, 75 insertions, 73 deletions
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 @@ <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> - <updated>2025-02-08T11:06:16+02:00</updated> + <updated>2025-02-08T11:11:35+02:00</updated> <title>foo.zone feed</title> <subtitle>To be in the .zone!</subtitle> <link href="gemini://foo.zone/gemfeed/atom.xml" rel="self" /> @@ -20,6 +20,8 @@ <div xmlns="http://www.w3.org/1999/xhtml"> <h1 style='display: inline' id='random-weird-things---part-'>Random Weird Things - Part Ⅱ</h1><br /> <br /> +<span class='quote'>Published at 2025-02-08T11:06:16+02:00</span><br /> +<br /> <span>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.</span><br /> <br /> <a class='textlink' href='./2024-07-05-random-weird-things.html'>2024-07-05 Random Weird Things - Part Ⅰ</a><br /> @@ -37,22 +39,32 @@ <br /> <ul> <li><a href='#random-weird-things---part-'>Random Weird Things - Part Ⅱ</a></li> +<li>⇢ <a href='#11-the-sqlite-codebase-is-a-gem'>11. The SQLite codebase is a gem</a></li> <li>⇢ <a href='#go-programming'>Go Programming</a></li> -<li>⇢ ⇢ <a href='#11-official-go-font'>11. Official Go font</a></li> -<li>⇢ ⇢ <a href='#12-go-functions-can-have-methods'>12. Go functions can have methods</a></li> +<li>⇢ ⇢ <a href='#12-official-go-font'>12. Official Go font</a></li> +<li>⇢ ⇢ <a href='#13-go-functions-can-have-methods'>13. Go functions can have methods</a></li> <li>⇢ <a href='#macos'>macOS</a></li> -<li>⇢ ⇢ <a href='#13--and-ss-are-treated-the-same'>13. ß and ss are treated the same</a></li> -<li>⇢ ⇢ <a href='#14-colon-as-file-path-separator'>14. Colon as file path separator</a></li> -<li>⇢ <a href='#15-polyglots---programs-written-in-multiple-languages'>15. Polyglots - programs written in multiple languages</a></li> -<li>⇢ <a href='#16-languages-where-indices-start-at-1'>16. Languages, where indices start at 1</a></li> -<li>⇢ <a href='#17-perl-poetry'>17. Perl Poetry</a></li> -<li>⇢ <a href='#18-css3-is-turing-complete'>18. CSS3 is turing complete</a></li> -<li>⇢ <a href='#19-the-sqlite-codebase-is-a-gem'>19. The SQLite codebase is a gem</a></li> +<li>⇢ ⇢ <a href='#14--and-ss-are-treated-the-same'>14. ß and ss are treated the same</a></li> +<li>⇢ ⇢ <a href='#15-colon-as-file-path-separator'>15. Colon as file path separator</a></li> +<li>⇢ <a href='#16-polyglots---programs-written-in-multiple-languages'>16. Polyglots - programs written in multiple languages</a></li> +<li>⇢ <a href='#17-languages-where-indices-start-at-1'>17. Languages, where indices start at 1</a></li> +<li>⇢ <a href='#18-perl-poetry'>18. Perl Poetry</a></li> +<li>⇢ <a href='#19-css3-is-turing-complete'>19. CSS3 is turing complete</a></li> <li>⇢ <a href='#20-the-biggest-shell-programs-'>20. The biggest shell programs </a></li> </ul><br /> +<h2 style='display: inline' id='11-the-sqlite-codebase-is-a-gem'>11. The SQLite codebase is a gem</h2><br /> +<br /> +<span>Check this out:</span><br /> +<br /> +<a href='./random-weird-things-ii/sqlite-gem.png'><img alt='SQLite Gem' title='SQLite Gem' src='./random-weird-things-ii/sqlite-gem.png' /></a><br /> +<br /> +<span>Source:</span><br /> +<br /> +<a class='textlink' href='https://wetdry.world/@memes/112717700557038278'>https://wetdry.world/@memes/112717700557038278</a><br /> +<br /> <h2 style='display: inline' id='go-programming'>Go Programming</h2><br /> <br /> -<h3 style='display: inline' id='11-official-go-font'>11. Official Go font</h3><br /> +<h3 style='display: inline' id='12-official-go-font'>12. Official Go font</h3><br /> <br /> <span>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. </span><br /> <br /> @@ -66,7 +78,7 @@ <br /> <span>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 :-) </span><br /> <br /> -<h3 style='display: inline' id='12-go-functions-can-have-methods'>12. Go functions can have methods</h3><br /> +<h3 style='display: inline' id='13-go-functions-can-have-methods'>13. Go functions can have methods</h3><br /> <br /> <span>Functions on struct types? Well, know. Functions on types like <span class='inlinecode'>int</span> and <span class='inlinecode'>string</span>? 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:</span><br /> <br /> @@ -112,7 +124,7 @@ http://www.gnu.org/software/src-highlite --> <br /> <span>For personal computing, I don't use Apple, but I have to use it for work. </span><br /> <br /> -<h3 style='display: inline' id='13--and-ss-are-treated-the-same'>13. ß and ss are treated the same</h3><br /> +<h3 style='display: inline' id='14--and-ss-are-treated-the-same'>14. ß and ss are treated the same</h3><br /> <br /> <span>Know German? In German, the letter "sarp s" is written as ß. ß is treated the same as ss on macOS.</span><br /> <br /> @@ -141,7 +153,7 @@ http://www.gnu.org/software/src-highlite --> </pre> <br /> -<h3 style='display: inline' id='14-colon-as-file-path-separator'>14. Colon as file path separator</h3><br /> +<h3 style='display: inline' id='15-colon-as-file-path-separator'>15. Colon as file path separator</h3><br /> <br /> <span>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:</span><br /> <br /> @@ -153,7 +165,7 @@ ADFS::4.$.Documents.Techwriter.Myfile <br /> <a class='textlink' href='https://social.jvns.ca/@b0rk/113041293527832730'>https://social.jvns.ca/@b0rk/113041293527832730</a><br /> <br /> -<h2 style='display: inline' id='15-polyglots---programs-written-in-multiple-languages'>15. Polyglots - programs written in multiple languages</h2><br /> +<h2 style='display: inline' id='16-polyglots---programs-written-in-multiple-languages'>16. Polyglots - programs written in multiple languages</h2><br /> <br /> <span>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.</span><br /> <br /> @@ -161,7 +173,7 @@ ADFS::4.$.Documents.Techwriter.Myfile <br /> <a class='textlink' href='./2014-03-24-the-fibonacci.pl.c-polyglot.html'>The <span class='inlinecode'>fibonatti.pl.c</span> Polyglot</a><br /> <br /> -<h2 style='display: inline' id='16-languages-where-indices-start-at-1'>16. Languages, where indices start at 1</h2><br /> +<h2 style='display: inline' id='17-languages-where-indices-start-at-1'>17. Languages, where indices start at 1</h2><br /> <br /> <span>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.</span><br /> <br /> @@ -195,7 +207,7 @@ http://www.gnu.org/software/src-highlite --> <br /> <span>One-based indexing is more natural for human-readable, mathematical, and theoretical contexts, where counting traditionally starts from one.</span><br /> <br /> -<h2 style='display: inline' id='17-perl-poetry'>17. Perl Poetry</h2><br /> +<h2 style='display: inline' id='18-perl-poetry'>18. Perl Poetry</h2><br /> <br /> <span>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.</span><br /> <br /> @@ -248,7 +260,7 @@ This is perl, v5.<font color="#000000">8.8</font> built <b><u><font color="#0000 <br /> <a class='textlink' href='./2008-06-26-perl-poetry.html'>More Perl Poetry of mine</a><br /> <br /> -<h2 style='display: inline' id='18-css3-is-turing-complete'>18. CSS3 is turing complete</h2><br /> +<h2 style='display: inline' id='19-css3-is-turing-complete'>19. CSS3 is turing complete</h2><br /> <br /> <span>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. </span><br /> <br /> @@ -264,16 +276,6 @@ This is perl, v5.<font color="#000000">8.8</font> built <b><u><font color="#0000 <br /> <span>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.</span><br /> <br /> -<h2 style='display: inline' id='19-the-sqlite-codebase-is-a-gem'>19. The SQLite codebase is a gem</h2><br /> -<br /> -<span>Check this out:</span><br /> -<br /> -<a href='./random-weird-things-ii/sqlite-gem.png'><img alt='SQLite Gem' title='SQLite Gem' src='./random-weird-things-ii/sqlite-gem.png' /></a><br /> -<br /> -<span>Source:</span><br /> -<br /> -<a class='textlink' href='https://wetdry.world/@memes/112717700557038278'>https://wetdry.world/@memes/112717700557038278</a><br /> -<br /> <h2 style='display: inline' id='20-the-biggest-shell-programs-'>20. The biggest shell programs </h2><br /> <br /> <span>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!</span><br /> |
