diff options
| author | Paul Buetow <paul@buetow.org> | 2024-04-30 13:14:09 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-04-30 13:14:09 +0300 |
| commit | 07c56086aa0c4e015c9044e333ae4001debcb28d (patch) | |
| tree | 2b2c0a3dae32313d55c6f223095612dcf0b7d779 | |
| parent | 5ad16713db1f011c08d2db602ed5b1d3294f0939 (diff) | |
Update content for html
82 files changed, 1001 insertions, 997 deletions
diff --git a/gemfeed/2008-06-26-perl-poetry.html b/gemfeed/2008-06-26-perl-poetry.html index 055e75b9..7d1ce809 100644 --- a/gemfeed/2008-06-26-perl-poetry.html +++ b/gemfeed/2008-06-26-perl-poetry.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline'>Perl Poetry</h1><br /> +<h1 style='display: inline' id='PerlPoetry'>Perl Poetry</h1><br /> <br /> <span class='quote'>Published at 2008-06-26T21:43:51+01:00; Updated at 2021-05-04</span><br /> <br /> @@ -41,7 +41,7 @@ _~~|~/_|_|__/|~~~~~~~ | / ~~~~~ | | ~~~~~~~~ <br /> <a class='textlink' href='https://en.wikipedia.org/wiki/Perl'>https://en.wikipedia.org/wiki/Perl</a><br /> <br /> -<h2 style='display: inline'>math.pl</h2><br /> +<h2 style='display: inline' id='mathpl'>math.pl</h2><br /> <br /> <!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini @@ -88,7 +88,7 @@ __END__ </pre> <br /> -<h2 style='display: inline'>christmas.pl</h2><br /> +<h2 style='display: inline' id='christmaspl'>christmas.pl</h2><br /> <br /> <!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini @@ -137,7 +137,7 @@ __END__ This is perl<font color="#990000">,</font> v5<font color="#990000">.</font><font color="#993399">8.8</font> built <b><font color="#0000FF">for</font></b> i386<font color="#990000">-</font>freebsd<font color="#990000">-</font>64int </pre> <br /> -<h2 style='display: inline'>shopping.pl</h2><br /> +<h2 style='display: inline' id='shoppingpl'>shopping.pl</h2><br /> <br /> <!-- Generator: GNU source-highlight 3.1.9 by Lorenzo Bettini @@ -174,7 +174,7 @@ __END__ This is perl<font color="#990000">,</font> v5<font color="#990000">.</font><font color="#993399">8.8</font> built <b><font color="#0000FF">for</font></b> i386<font color="#990000">-</font>freebsd<font color="#990000">-</font>64int </pre> <br /> -<h2 style='display: inline'>More...</h2><br /> +<h2 style='display: inline' id='More'>More...</h2><br /> <br /> <span>Did you like what you saw? Have a look at Codeberg to see my other poems too:</span><br /> <br /> diff --git a/gemfeed/2008-12-29-using-my-nokia-n95-for-fixing-my-mta.html b/gemfeed/2008-12-29-using-my-nokia-n95-for-fixing-my-mta.html index 968cb122..7bc71b9b 100644 --- a/gemfeed/2008-12-29-using-my-nokia-n95-for-fixing-my-mta.html +++ b/gemfeed/2008-12-29-using-my-nokia-n95-for-fixing-my-mta.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline'>Using my Nokia N95 for fixing my MTA</h1><br /> +<h1 style='display: inline' id='UsingmyNokiaN95forfixingmyMTA'>Using my Nokia N95 for fixing my MTA</h1><br /> <br /> <span class='quote'>Published at 2008-12-29T09:10:41+00:00; Updated at 2021-12-01</span><br /> <br /> diff --git a/gemfeed/2010-04-09-standard-ml-and-haskell.html b/gemfeed/2010-04-09-standard-ml-and-haskell.html index 276d4c1d..84ae1fc7 100644 --- a/gemfeed/2010-04-09-standard-ml-and-haskell.html +++ b/gemfeed/2010-04-09-standard-ml-and-haskell.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline'>Standard ML and Haskell</h1><br /> +<h1 style='display: inline' id='StandardMLandHaskell'>Standard ML and Haskell</h1><br /> <br /> <span class='quote'>Published at 2010-04-09T22:57:36+01:00</span><br /> <br /> @@ -18,7 +18,7 @@ <br /> <span>Haskell is also a "pure functional" programming language, whereas SML also makes explicit use of imperative concepts. I am by far not a specialist in either of these languages, but here are a few functions implemented in both SML and Haskell:</span><br /> <br /> -<h2 style='display: inline'>Defining a multi-data type</h2><br /> +<h2 style='display: inline' id='Definingamultidatatype'>Defining a multi-data type</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -45,7 +45,7 @@ http://www.gnu.org/software/src-highlite --> <b><font color="#0000FF">deriving</font></b> <font color="#009900">Show</font> </pre> <br /> -<h2 style='display: inline'>Processing a multi</h2><br /> +<h2 style='display: inline' id='Processingamulti'>Processing a multi</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -74,7 +74,7 @@ test_number w <font color="#990000">=</font> number <font color="#990000">(</fon <font color="#990000">(</font><font color="#009900">Union</font> <font color="#990000">(</font><font color="#009900">Union</font> <font color="#990000">(</font><font color="#009900">Elem</font> <font color="#993399">4</font><font color="#990000">)</font> <font color="#990000">(</font><font color="#009900">Elem</font> <font color="#993399">4</font><font color="#990000">))</font> <font color="#009900">Empty</font><font color="#990000">))))</font> w </pre> <br /> -<h2 style='display: inline'>Simplify function</h2><br /> +<h2 style='display: inline' id='Simplifyfunction'>Simplify function</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -116,7 +116,7 @@ http://www.gnu.org/software/src-highlite --> simplify x <font color="#990000">=</font> x </pre> <br /> -<h2 style='display: inline'>Delete all</h2><br /> +<h2 style='display: inline' id='Deleteall'>Delete all</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -145,7 +145,7 @@ http://www.gnu.org/software/src-highlite --> delete_all’ x <font color="#990000">=</font> x </pre> <br /> -<h2 style='display: inline'>Delete one</h2><br /> +<h2 style='display: inline' id='Deleteone'>Delete one</h2><br /> <br /> <span>Standard ML:</span><br /> <br /> @@ -191,7 +191,7 @@ http://www.gnu.org/software/src-highlite --> delete_one’ x <font color="#990000">=</font> <font color="#990000">(</font>x<font color="#990000">,</font> <font color="#009900">False</font><font color="#990000">)</font> </pre> <br /> -<h2 style='display: inline'>Higher-order functions</h2><br /> +<h2 style='display: inline' id='Higherorderfunctions'>Higher-order functions</h2><br /> <br /> <span>The first line is always the SML code, the second line the Haskell variant:</span><br /> <br /> diff --git a/gemfeed/2010-05-07-lazy-evaluation-with-standarn-ml.html b/gemfeed/2010-05-07-lazy-evaluation-with-standarn-ml.html index ce4ba30a..7dcabdaf 100644 --- a/gemfeed/2010-05-07-lazy-evaluation-with-standarn-ml.html +++ b/gemfeed/2010-05-07-lazy-evaluation-with-standarn-ml.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline'>Lazy Evaluation with Standard ML</h1><br /> +<h1 style='display: inline' id='LazyEvaluationwithStandardML'>Lazy Evaluation with Standard ML</h1><br /> <br /> <span class='quote'>Published at 2010-05-07T08:17:59+01:00</span><br /> <br /> @@ -32,7 +32,7 @@ <br /> <span>You can solve specific problems with lazy evaluation easier than with eager evaluation. For example, you might want to list the number Pi or another infinite list of something. With the help of lazy evaluation, each element of the list is calculated when it is accessed first, but not earlier.</span><br /> <br /> -<h2 style='display: inline'>Emulating lazy evaluation in SML</h2><br /> +<h2 style='display: inline' id='EmulatinglazyevaluationinSML'>Emulating lazy evaluation in SML</h2><br /> <br /> <span>However, it is possible to emulate lazy evaluation in most eager evaluation languages. This is how it is done with Standard ML (with some play with an infinite list of natural number tuples filtering out 0 elements):</span><br /> <br /> @@ -78,7 +78,7 @@ val test = first 10 (nat_pairs_not_null ()); <br /> <a class='textlink' href='http://smlnj.org/'>http://smlnj.org/</a><br /> <br /> -<h2 style='display: inline'>Real laziness with Haskell </h2><br /> +<h2 style='display: inline' id='ReallazinesswithHaskell'>Real laziness with Haskell </h2><br /> <br /> <span>As Haskell already uses lazy evaluation by default, there is no need to construct a new data type. Lists in Haskell are lazy by default. You will notice that the code is also much shorter and easier to understand than the SML version. </span><br /> <br /> diff --git a/gemfeed/2010-05-09-the-fype-programming-language.html b/gemfeed/2010-05-09-the-fype-programming-language.html index 454a4621..1728107d 100644 --- a/gemfeed/2010-05-09-the-fype-programming-language.html +++ b/gemfeed/2010-05-09-the-fype-programming-language.html @@ -8,7 +8,7 @@ <link rel="stylesheet" href="style-override.css" /> </head> <body> -<h1 style='display: inline'>The Fype Programming Language</h1><br /> +<h1 style='display: inline' id='TheFypeProgrammingLanguage'>The Fype Programming Language</h1><br /> <br /> <span class='quote'>Published at 2010-05-09T12:48:29+01:00; Updated at 2021-05-05</span><br /> <br /> @@ -27,7 +27,7 @@ <br /> <span>Fype is a recursive acronym and means "Fype is For Your Program Execution" or "Fype is Free Yak Programmed for ELF". You could also say, "It's not a hype - it's Fype!".</span><br /> <br /> -<h2 style='display: inline'>Object-oriented C style</h2><br /> +<h2 style='display: inline' id='ObjectorientedCstyle'>Object-oriented C style</h2><br /> <br /> <span>The Fype interpreter is written in an object-oriented style of C. Each "main component" has its own .h and .c file. There is a struct type for each (most components at least) component, which can be initialized using a "COMPONENT_new" function and destroyed using a "COMPONENT_delete" function. Method calls follow the same schema, e.g. "COMPONENT_METHODNAME". There is no such as class inheritance and polymorphism involved. </span><br /> <br /> @@ -100,7 +100,7 @@ http://www.gnu.org/software/src-highlite --> <font color="#FF0000">}</font> </pre> <br /> -<h2 style='display: inline'>Data types</h2><br /> +<h2 style='display: inline' id='Datatypes'>Data types</h2><br /> <br /> <span>Fype uses auto type conversion. However, if you want to know what's going on, you may take a look at the following basic data types:</span><br /> <ul> @@ -114,13 +114,13 @@ http://www.gnu.org/software/src-highlite --> </ul><br /> <span>There is no boolean type, but we can use the integer values 0 for false and 1 for true. There is support for explicit type casting too.</span><br /> <br /> -<h2 style='display: inline'>Syntax</h2><br /> +<h2 style='display: inline' id='Syntax'>Syntax</h2><br /> <br /> -<h3 style='display: inline'>Comments</h3><br /> +<h3 style='display: inline' id='Comments'>Comments</h3><br /> <br /> <span>Text from a # character until the end of the current line is considered being a comment. Multi-line comments may start with an #* and with a *# anywhere. Exceptions are if those signs are inside of strings.</span><br /> <br /> -<h3 style='display: inline'>Variables</h3><br /> +<h3 style='display: inline' id='Variables'>Variables</h3><br /> <br /> <span>Variables are defined with the "my" keyword (inspired by Perl :-). If you don't assign a value during declaration, it uses the default integer value 0. Variables may be changed during program runtime. Variables may be deleted using the "undef" keyword! Example:</span><br /> <br /> @@ -151,7 +151,7 @@ if defined foo { } </pre> <br /> -<h3 style='display: inline'>Synonyms</h3><br /> +<h3 style='display: inline' id='Synonyms'>Synonyms</h3><br /> <br /> <span>Each variable can have as many synonyms as wished. A synonym is another name to access the content of a specific variable. Here is an example of how to use it:</span><br /> <br /> @@ -193,7 +193,7 @@ undef baz; say syms foo; # Prints 1 </pre> <br /> -<h2 style='display: inline'>Statements and expressions</h2><br /> +<h2 style='display: inline' id='Statementsandexpressions'>Statements and expressions</h2><br /> <br /> <span>A Fype program is a list of statements. Each keyword, expression or function call is part of a statement. Each statement is ended with a semicolon. Example:</span><br /> <br /> @@ -203,11 +203,11 @@ say foo; exit foo - bar; </pre> <br /> -<h3 style='display: inline'>Parenthesis</h3><br /> +<h3 style='display: inline' id='Parenthesis'>Parenthesis</h3><br /> <br /> <span>All parenthesis for function arguments is optional. They help to make the code better readable. They also help to force the precedence of expressions.</span><br /> <br /> -<h3 style='display: inline'>Basic expressions</h3><br /> +<h3 style='d |
