summaryrefslogtreecommitdiff
path: root/gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-04-07 00:49:19 +0300
committerPaul Buetow <paul@buetow.org>2023-04-07 00:49:19 +0300
commit30fc4e8f74315a92aaec36dfb9a8d4efa0a21791 (patch)
tree97ef2b26fd54a366d72f5289ba11ea311f8a0173 /gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html
parent5c9e3886de0f9041e4a6fb6fea9917e29a8fbd76 (diff)
exact style
Diffstat (limited to 'gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html')
-rw-r--r--gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html41
1 files changed, 28 insertions, 13 deletions
diff --git a/gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html b/gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html
index 9af843f1..ab51d6bc 100644
--- a/gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html
+++ b/gemfeed/2014-03-24-the-fibonacci.pl.c-polyglot.html
@@ -8,12 +8,18 @@
<link rel="stylesheet" href="style-override.css" />
</head>
<body>
-<h1>The fibonacci.pl.raku.c Polyglot</h1>
-<p class="quote"><i>Published at 2014-03-24T21:32:53+00:00; Updated at 2022-04-23</i></p>
-<p>In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it.</p>
-<a class="textlink" href="https://en.wikipedia.org/wiki/Polyglot_(computing)">https://en.wikipedia.org/wiki/Polyglot_(computing)</a><br />
-<h2>The Fibonacci numbers</h2>
-<p>For fun, I programmed my own Polyglot, which is both valid Perl, Raku, C and C++ code (I have added C++ and Raku support in 2022). The exciting part about C and C++ is that $ is a valid character to start variable names with:</p>
+<h1 style='display: inline'>The fibonacci.pl.raku.c Polyglot</h1><br />
+<br />
+<span class=quote>Published at 2014-03-24T21:32:53+00:00; Updated at 2022-04-23</span><br />
+<br />
+<span>In computing, a polyglot is a computer program or script written in a valid form of multiple programming languages, which performs the same operations or output independent of the programming language used to compile or interpret it.</span><br />
+<br />
+<a class=textlink href='https://en.wikipedia.org/wiki/Polyglot_(computing)'>https://en.wikipedia.org/wiki/Polyglot_(computing)</a><br />
+<br />
+<h2 style='display: inline'>The Fibonacci numbers</h2><br />
+<br />
+<span>For fun, I programmed my own Polyglot, which is both valid Perl, Raku, C and C++ code (I have added C++ and Raku support in 2022). The exciting part about C and C++ is that $ is a valid character to start variable names with:</span><br />
+<br />
<pre>
#include &lt;stdio.h&gt;
@@ -57,9 +63,13 @@ BEGIN {
}
}
</pre>
-<p>You can find the full source code at GitHub:</p>
-<a class="textlink" href="https://codeberg.org/snonux/perl-c-fibonacci">https://codeberg.org/snonux/perl-c-fibonacci</a><br />
-<h3>Let's run it with C and C++</h3>
+<br />
+<span>You can find the full source code at GitHub:</span><br />
+<br />
+<a class=textlink href='https://codeberg.org/snonux/perl-c-fibonacci'>https://codeberg.org/snonux/perl-c-fibonacci</a><br />
+<br />
+<h3 style='display: inline'>Let's run it with C and C++</h3><br />
+<br />
<pre>
% gcc fibonacci.pl.raku.c -o fibonacci
% ./fibonacci
@@ -97,7 +107,9 @@ fib(8) = 21
fib(9) = 34
fib(10) = 55
</pre>
-<h3>Let's run it with Perl and Raku</h3>
+<br />
+<h3 style='display: inline'>Let's run it with Perl and Raku</h3><br />
+<br />
<pre>
% perl fibonacci.pl.raku.c
Hello, welcome to the Fibonacci Numbers!
@@ -133,9 +145,12 @@ fib(8) = 21
fib(9) = 34
fib(10) = 55
</pre>
-<p>It's entertaining to play with :-).</p>
-<p>E-Mail your comments to hi@paul.cyou :-)</p>
-<a class="textlink" href="../">Back to the main site</a><br />
+<br />
+<span>It's entertaining to play with :-).</span><br />
+<br />
+<span>E-Mail your comments to hi@paul.cyou :-)</span><br />
+<br />
+<a class=textlink href='../'>Back to the main site</a><br />
<p class="footer">
Generated with <a href="https://codeberg.org/snonux/gemtexter">Gemtexter</a> |
served by <a href="https://www.OpenBSD.org">OpenBSD</a>/<a href="https://man.openbsd.org/httpd.8">httpd(8)</a> |