<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paul Frischknecht on Medium]]></title>
        <description><![CDATA[Stories by Paul Frischknecht on Medium]]></description>
        <link>https://medium.com/@paulfrischknecht_57432?source=rss-8a51af204bcc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*OfFLnSVqGyGaulpYBxQOQA.jpeg</url>
            <title>Stories by Paul Frischknecht on Medium</title>
            <link>https://medium.com/@paulfrischknecht_57432?source=rss-8a51af204bcc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 23:20:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paulfrischknecht_57432/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[7]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/7-9e5464714449?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e5464714449</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 11:51:35 GMT</pubDate>
            <atom:updated>2026-11-07T11:51:35.302Z</atom:updated>
            <content:encoded><![CDATA[<p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e5464714449" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/6-0a09f438a49c?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/0a09f438a49c</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 07 Nov 2026 11:48:46 GMT</pubDate>
            <atom:updated>2026-11-07T11:48:46.744Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RnnGX-RfTD20O5qdJ_I36g.png" /><figcaption>6</figcaption></figure><p>This is an article about the ASCII character with decimal code 54</p><pre>6</pre><p>This symbol is the decimal numeral six. This number is called “Sechs”, pronounced “sex” in my mother tongue, and it’s also spelled “sex” in Latin. Hence I put a representation of one of the more beautiful of the human sexes in the AI-generated illustration (extra troubles had to be overcome for it to produce that one, because ChatGPT is American and therefore prude).</p><p>In computer programming, the number and symbol 6 appears in quite a few places:</p><p>IPv<strong>6</strong> is the only other version of (mostly…) routeable internet protocol data packages apart from IPv<strong>4,</strong> almost universally supported by all networking equipment by now. I have yet to see an enterprise-internal (LAN) network and its subnets use IPv6 instead of IPv4 though: They like their manually crafted subnet addresses and DHCP ranges… People have tried to get around on the internet with IPv6-only (at their end…), with still varying degrees of success. I have yet to encounter an internet service that does not work with an IPv4-only setup (on the client side, who knows what my ISP does…; but even my mobile network ISP seems to just use IPv4 CG-NAT).</p><p><strong>Hex</strong>adecimal<strong> (Base-16)</strong>: Includes digits 0–9 and letters A–F (<strong>6</strong> letters). “Hex” means six in Greek.</p><p>Python 3.<strong>6</strong> introduced f-strings, a significant syntactic improvement for string formatting:</p><pre>name = &quot;Alice&quot;<br>print(f&quot;Hello, {name}&quot;)</pre><p><strong>ECMAScript 6 (ES6)</strong>: A major version of JavaScript, also known as <strong>ES2015</strong>, introduced:let, const , Arrow functions () =&gt; {} , Promises, modules, classes, template literals, etc. Many of these were mostly syntactic or polyfillable features. ES6 dramatically modernized JavaScript development. The older version ES5 (ECMAScript 5) was used as a baseline and compilation target for transpiled languages such as CoffeeScript and then TypeScript and the myriad web frameworks of the nodejs/npm ecosystem that ensued, so that the result could be compatible with older browsers (namely Internet Explorer 11 before its much needed retirement) that only supported the older ES5.</p><p>In the Bible’s New Testament, 666 is called the &quot;number of the beast,&quot; representing <strong>human systems</strong>, imperfection, and opposition to God. You’re reading this because you are deeply embedded in a totally human made system of language and technology, welcome to 666!</p><p>6 looks like 9 when turned upside down (rotated 180°), therefore in cardgames where the cards habe numbers in the corners, and the center, some of them upside down, thwy underline 6 or put a dot next to it: 6. Incidentally, if you are not intimately persoanlly familiar with the activity called 69, I urge you to close your reading device and go out there and get some good consensual safe 6 ☺️</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0a09f438a49c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[5]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/5-25ae0faf2281?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/25ae0faf2281</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 18:32:51 GMT</pubDate>
            <atom:updated>2025-04-19T18:32:51.915Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rocm4JNTs55_nH4n5IGEuQ.png" /><figcaption>5</figcaption></figure><p>This is a story about the ASCII character “5”, the decimal digit five, with decimal index 53 in the ASCII table.</p><p>The number five in everyday use might evoke the phrase of the “five senses”, illustrated in the picture. However, as one philosopher put it, all senses are a kind of sense of touch anyways — your body touching the external world in some capacity.</p><p>In computing, here are some special uses of the number or character “5”:</p><ul><li>In informal online text, <strong>“5”</strong> is used as a stand-in for <strong>“S”</strong>, e.g., 13375p34k for &quot;leet speak&quot;.</li><li>Skipped in the sequence of Internet Protocol versions (IPv4 → IPv6). IPv5 was used experimentally for streaming protocols (Internet Stream Protocol), but never widely adopted.</li><li><strong>HTML5: </strong>A major revision of the HTML standard that enabled audio, video, and richer semantics for web applications. Marked a turning point in modern web development.</li></ul><ol><li><strong>5-Tuple in Networking: </strong>Used to define a unique connection: <strong>Source IP, Destination IP, Source Port, Destination Port, Protocol</strong> — these 5 fields help identify individual network flows. This type of identification is important for instance for your operating system to keep track of which “connections” (or packet exchanges) exist currently and which process created them and is thus authorized to send and receive messages for it. It’s also important for any type of NAT, network address translation system which replaces source IP and port with something routeable on a different network, usually the WAN or public internet, for a set of computers in an internal network. Further tricks are needed to NAT ‘ different IP protocols apart from TCP/UDP. For instance for ICMP the ICMP packet’s internal data (e.g., original packet header &amp; ICMP Query ID) is used to (re)identify the correct destination.</li></ol><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25ae0faf2281" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/4-da8946b7ac61?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/da8946b7ac61</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 16:03:22 GMT</pubDate>
            <atom:updated>2025-04-19T18:57:22.494Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kObbBiADvxPsejdi4jrRSA.png" /><figcaption>4</figcaption></figure><p>This is a story about the ASCII character “4”, the decimal digit four, with decimal index 52 in the ASCII table.</p><p>The number four, being a power of two, is quite prevalent in (binary digital) computing:</p><ul><li>Many people are probably familiar with the fact that 8 bits make a byte. Well, 4 bits make a nibble, a single hexadecimal digit, usually denoted with one of the symbols 0–9 or A-F.</li><li>The UUID (or GUID) variant or version I most commonly encountered and used is called UUIDv4, which are essentially hexadecimal strings of (almost) 128 bit of random data, separated by hyphens “-” in specific places, with a digit 4 at a specific place (and one of the other digits is also constrained), such as 35e91f82–2632–<strong>4</strong>917-ae46–116a9a30389d. UUIDs are often used for unequivocal, context-free, immutable machine generateable identification (as opposed to integer IDs or human readable names).</li><li>4 bytes make one 32-bit word, the usual word size of the most common computer architectures of the 1990 era onwards for about 30 years, now gradually being replaced by 64-bit (8 byte) words. Why? Because they allow to address more memory on a single device. FAT32 also used 32 bit numbers to represent the size of a file, with the consequence that the maximum file size was 4 GiB. When treated as a signed 32 bit integer to represent seconds since 1 January 1970 0:00, this word size leads to the Year 2038 problem, hopefully there’s no software running in important places then that still uses this representation.</li><li>4 KiB is the usual memory pagesize.</li><li>IPv4 addresses (coincidentally!) are four octets (bytes) — but IPv6 addresses are not six octets…</li><li>HTTP client errors start with 4: 404 Not Found made it to pop culture.</li><li>“Spaces vs tabs” debates often land on <strong>4‑space tabs</strong> as a compromise between visibility and line length.</li><li>The RGBA colour (and opacity/transparency) model has <strong>4 channels.</strong></li><li>CPU SIMD instructions, specifically Intel’s SSE, employ groupings of four 32 bit values (integers or IEE-754 floats float32x4) in the XMM0–7 registers for speed (throughput).</li><li>Homogeneous coordinates commonly used for 3D projective space in computer graphics add a fourth coordinate that is used in the perspective divide operation and allows even translations to be implemented by 4x4 matrix-vector multiplication.</li><li>Quaternions are an extension of complex numbers, using 4 instead of just two basis vectors. They have an application in representing rotations in 3 dimensions without facing the gimbal lock problem present in the pitch, yaw and roll representation.</li></ul><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da8946b7ac61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/3-71466afffe3c?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/71466afffe3c</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 19 Apr 2025 14:49:34 GMT</pubDate>
            <atom:updated>2025-04-19T15:30:59.864Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ic303u0neFTetk_eUznHGg.png" /><figcaption>3</figcaption></figure><p>This is a story about the ASCII character “3”, the decimal digit three, with decimal index 51 and its use in computer programming.</p><p>The character 3 represents the number three, but it is not the same as the concept of the number three. Furthermore, 3 is also a numeral symbol, more specifically a digit, of the Hindu–Arabic numeral notation system, also known as base-10 positional notation.</p><p>Tuples with three elements, such as (a,b,c), play an important role in the endeavor of knowledge representation, for which information technology is so often employed these days. Such a triple, (S, P, O) is often used to make a directed, labeled link between objects S (the subject) and O, the object. P is the label or predicate of the relationship. As an example, (FIRETRUCK, HAS_COLOR, RED) might be stored in a knowledge graph somewhere. Such relationships are at the heart of graph databases and the Resource Description Framework (RDF).</p><p>In many C-like programming languages, there is one tri-operand (or ternary) operator: the ?: ternary conditional operator, usually denoted as an expression:</p><pre>booleanExpression ? resultIfTrue : resultIfFalse</pre><p>that takes on the value of resultIfTrue if the booleanExpression is true, and false otherwise. It is also usually a short-circuit evaluating operator like || and &amp;&amp;, meaning that only the relevant result expression will be evaluated once the booleanExpression has been evaluated.</p><p>Maintaining three copies of a piece of data are the minimum to enable using “majority vote” to fix corrupted data. By storing three copies of a piece of data on corruptible media, if only one of the three gets corrupted and this is noticed in time, the defective copy can be repaired to the state of the majority of “still intact” copies.</p><p>In three valued logic, such as used by SQL, the result of a logical expression can be, for instance, unknown, in addition to true or false. This was introduced because NULL values in cells in a SQL table actually means that the value is unknown (or not yet known) rather than explicitly “null” (missing value/not recorded/empty), however all projects I ever worked with used SQL null to merely mean “not recorded”. The idea was probably that NULL values that become defined later would at most change unknown boolean results to true or false, but would never change a true result to false or vice-versa. This is also why in SQL every NULL is considered different, so the logical comparison NULL = NULL yields unknown in SQL.</p><p>In Java, a reference type value can only either point to a valid object or be null. However in C, a pointer might point to a valid (virtual) memory location, to an invalid (i.e. already freed or unmapped) memory location or be null. Unfortunately only the third state can be easily identified.</p><p>It is often prudent in any measurement process and computation that normally leads a binary result (0 or 1, true or false) to provide a third option that cannot and should not be interpreted as either “true” or “false”. A varying analog voltage level that is out of the acceptable ranges at the time of measurement could yield a (retryable) exception, so that unexpected situations are not just blindly “projected” (or reduced) to the “closest” working situation. Similarly, an arriving data packet that normally communicates one of two or more things (if only its absence or presence) should also be recognizeable as “corrupted-during-transmission”. A function that usually returns a boolean result could throw an exception.</p><p>Beyond the computer’s normal binary operation — where 0 and 1 encode all data — it’s common to provide a secondary channel, either in‑band or out‑of‑band, to signal exceptional conditions and thus states and data of a third kind. This is the reason why UNIX provides the stderr in addition to the stdout byte stream to all programs.</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71466afffe3c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/2-96f165df00bb?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/96f165df00bb</guid>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Wed, 16 Apr 2025 22:19:41 GMT</pubDate>
            <atom:updated>2025-04-16T22:35:19.337Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUCsNhwjxb5qMPUGhTYv-g.png" /><figcaption>2</figcaption></figure><p>This is a story about the ASCII character “2”, the decimal digit two, with decimal index 50.</p><p>Let’s ask <a href="https://en.wikipedia.org/wiki/ROOT">ROOT</a>’s C interpreter to confirm that decimal ascii code 50 is indeed the digit 2:</p><pre>$ sudo docker run --rm -it rootproject/root<br>   ------------------------------------------------------------------<br>  | Welcome to ROOT 6.34.00                        https://root.cern |<br>  | (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |<br>  | Built for linuxx8664gcc on Nov 14 2024, 06:30:57                 |<br>  | From tags/v6-34-00-rc1@v6-34-00-rc1                              |<br>  | With c++ (Ubuntu 14.2.0-4ubuntu2) 14.2.0                         |<br>  | Try &#39;.help&#39;/&#39;.?&#39;, &#39;.demo&#39;, &#39;.license&#39;, &#39;.credits&#39;, &#39;.quit&#39;/&#39;.q&#39;  |<br>   ------------------------------------------------------------------<br><br>root [0] (char)50<br>(char) &#39;2&#39;</pre><p>Two is the minimum number of symbols in an alphabet that allows positional notation of numbers (i.e. base-2 or binary notation, usually with symbols “0” and “1”).</p><p>In a computer program, handling the case of having 2 instances of a thing, such as a font in a text editor, is often just as easy as generalizing that implementation to n (an arbitrary number of) instances. An important point of discussion of design is therefore to figure out whether a certain feature is not needed at all (0 times), needed exactly once (a singleton, a <strong>one</strong> to many relationship etc.) or two-or-more times. It’s very rare to have special provisions that ensure something exists exactly twice at runtime in a program, while singleton (or unique) existence is often enforced.</p><p>In mathematics, two is the number of items in an ordered pair such as (a, b). A pair (a,b,) often denotes some kind of (directed) relationship between elements a and b. Pairs and relationships are fundamental to mathematics , in particular to set- and graph theory. A set is defined by it’s elementhood relation ∈, which is a binary relation, i.e. a set of pairs. The key feature of a directed or undirected graph is a set of edges E which is a set of (ordered) pairs of vertices.</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96f165df00bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[1]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/1-a843fc4086f7?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a843fc4086f7</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 19:25:29 GMT</pubDate>
            <atom:updated>2025-01-17T20:14:32.766Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3lQsz9HYL7kRp_iGQEsRxg.png" /><figcaption>1</figcaption></figure><p>This is a story about the ASCII character “1”, the decimal digit one, with decimal index 49.</p><p>In almost every programming language, a single decimal digit, such as 1, represents some kind of number when it is not quoted. That number will most likely be the multiplicative identity element (or object). That is, if == denotes comparison of value-objects,</p><pre>1 * x == x</pre><p>will evaluate to true in many contexts.</p><p>Staying with logic and mathematics, 1 is the smallest non-zero integer and together with 0 and the addition operation can be used to construct all integers: Continued indefinitely, the following will generate every integer eventually (pretty much by definition).</p><pre>0<br>0 + 1<br>0 + 1 + 1<br>...</pre><p>1 also often represents logical truth or “top”, as opposed to 0, false or “bottom”.</p><p>Back to programming: 1 is almost never considered an identifier, nor are identifiers allowed to start with numbers. A number such as 1 is of course also vastly different from the ASCII character ‘1’ (which has numeric decimal value 49, fourty-nine) and from the string “1”.</p><p>Kudos to your C skills if you can follow this computation:</p><pre>$ cling<br>[cling]$ &#39;1&#39;+*&quot;1&quot;+2<br>(int) 100</pre><p>In few programming languages, 1 and not 0 is the index of the first element in a list. If you’ve been to university you have heard of Matlab and its opensource re-implementation octave:</p><pre>$ octave<br>octave:2&gt; l = [100 200 300]<br>l =<br><br>   100   200   300<br><br>octave:3&gt; l(1)<br>ans = 100</pre><p>In programming, the number or count 1 is also often seen as a special case. Often some relationship or item is constrained to exist exactly once, and an implementation of some concept, in the form of a program, might check for this restriction. It is said that there is only three cases of quantities of something to consider in programs:</p><ul><li>0 case</li><li>1 case</li><li>2 to many case</li></ul><p>Now. In computer programming, it is said that we work with strings of 0s and 1s. That’s the most common notation anyways.</p><p>Hopefully, by now, everyone on earth has heard of the notion that “computers think in 0s and 1s”. Maybe nowadays people hear that even before they learn about the concept of the (decimal, and every n-adic number system’s) number 1 of arithmetic that we discussed above.</p><p>Let’s get philosophical for a while…</p><p>The bitstring 10010101010111111101010110110100, that I just typed up randomly, is one of 2³² = 4294967296 bitstrings of this same length. Honestly, I just typed exactly 32 bits (the canonical size of an integer or int for quite a while now) by chance.</p><p>What does this bitstring represent? Anything you like.</p><p>It <em>is</em> not the number -1788881484 or 250608581 any more than the hex string 955fd5b4. This sequence of bytes could also be the “ANSI” (codepage 1252) string “•_Õ´”. These are all still fairly common possible interpretations of that bitstring. There’s really nothing other than cultural convention stopping anyone and any system from interpreting that as any value or command they want.</p><p>That’s not the end of the interpretation story. First of all, of course, the interpretation of that bitstring is not at all required to be contained in the string itself. It’s actually very rare that data is self documenting to some absolute level of precision. Formats like XML and JSON that label and represent each value with some ASCII text string don’t have to tell you much more than raw bytes about what the receiving system will do with that information, in principle. Though of course in these cases, the ASCII text is meant to convey some message to human readers that would help them predict the meaning this information is intended to have.</p><p>Another dimension of the context of a bitstring might be where it is located in physical spacetime. Different instances of this string can and will have a different meaning at different points in space and time, depending on which computer system they are currently materialized in and what program that computer is currently executing.</p><p>Finally, then, we can conclude this part with a definition of <em>meaning</em>. Nothing — no pattern in space and time which by definition includes everything that there is — has any definite <em>meaning </em>except within the context in space and time in which it briefly exists, given that there is something there to interpret (or, actually, manifest) that meaning. I hope that helps someone out there a bit on the quest for finding the meaning of life.</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a843fc4086f7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[0]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/0-201521060d72?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/201521060d72</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 23:27:37 GMT</pubDate>
            <atom:updated>2024-12-29T23:42:12.903Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="0" src="https://cdn-images-1.medium.com/max/1024/1*xKJfUcFgTZhSwfvrJDpPbg.jpeg" /><figcaption>0</figcaption></figure><p>This is a story about the ASCII character 0, the (decimal) digit zero with ASCII index 48.</p><p>In most programming languages, numbers are given in decimal notation by default.</p><p>Often, 0 (zero) is the only decimal number allowed to start with a 0. 099 is usually not a legal number, 077 might be interpreted in base 8 (octal) as the decimal value 63.</p><p>In common speech and mathematics, there’s usually only one concept of the number zero. In computer programming languages on the other hand, if they distinguish floating point and integer values, 0 and 0.0 are fairly different objects. For IEEE754 floating point numbers, there’s even a 0.0 and -0.0 (minus zero point zero) which are represented differently in memory and in some regards are not equivalent.</p><p>Once you know whether 0 will become an IEEE754 floating point number (e.g. in JavaScript) or an integer 0, you then need to know that there are different types of integer representations in computers: those supporting arbitrary precision, i.e. an arbitrary number of digits (as used by Mathematica and Python) and those of a fixed size (8, 16, 32, 64 bits). For the latter type, you should know whether the number is signed (and can thus become negative) or unsigned (and is therefore always ≥ 0).</p><p>Now, in many contexts, 0, zero, and other numbers, might not stand for that numerical value (or quantity or measurement of something) at all, but might instead represent a pointer to memory or an index into some list or of some enumeration type, or a bitmask with all bits set to 0.</p><p>As you can see, knowing what exactly</p><pre>0</pre><p>represents in a given programming language can be as complicated as figuring out what any other specific piece of data might mean.</p><p>This applies to pretty much any piece of data in a file, database or anywhere in a computer really.</p><p>In this regard, figuring out what a piece of data (a shape, a sound, and object…) represents is just as complicated within a computer as it is outside of the computer. A complicated ruleset or socio-cultural background might be needed to interpret really anything in the world that doesn’t stand for itself. But I am maybe getting too philosophical…</p><p>Also, as I tried to illustrate earlier, understanding the following is quite non-trivial:</p><pre>x=0</pre><p>In most (procedural) programming languages, this represents some sort of assignment statement. But what exactly is the type of the variable x (or rather the object it points to) after this statement is not easy to know and requires a lot more context than you might think.</p><p>The bit pattern for ASCII 0 is 0011<strong>0000</strong> (in big-endian notation) — as you might notice the final 4 digits exactly represent the 4 bit integer representation of the number 0. Furthermore, the digits 1–9 are assigned the subsequent ASCII indices and therefore bit patterns 0011<strong>0001</strong> to 0011<strong>1001</strong>. This is useful and convenient for BCD (binary coded decimal) decoding &amp; encoding. It means that for any number x from 0 to 9, 48 + x is the index of the corresponding ASCII digit, and if c is an ASCII digit (char), both of the following c expressions will evaluate to the corresponding (decimal) number:</p><pre>c &amp; 0x0F<br>(char)(c &lt;&lt; 4) &gt;&gt; 4</pre><p>that is, in the C++ interpreter cling:</p><pre>$ cling<br>****************** CLING ******************<br>* Type C++ code and press enter to run it *<br>*             Type .q to exit             *<br>*******************************************<br>[cling]$ char c = &#39;7&#39;;<br>[cling]$ c &amp; 0x0F<br>(int) 7<br>[cling]$ (char)(c &lt;&lt; 4) &gt;&gt; 4<br>(int) 7</pre><p>The cast is necessary because (of course…) the binary operators &amp; (bitwise and) and &lt;&lt; &gt;&gt; (bitshift) expand both operands to a 32 bit int first.</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=201521060d72" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[/]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/-c1a176e1e11f?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1a176e1e11f</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 23:44:08 GMT</pubDate>
            <atom:updated>2024-12-28T23:44:08.454Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxx9FvfKmzIZtGn5sTFz7Q.jpeg" /><figcaption>/</figcaption></figure><p>This story is about the ASCII slash character /.</p><p>It has the decimal index 47 in ASCII.</p><p>In computer programming, the slash is used for hierarchical navigation in file paths or URLs</p><pre>a/b<br></pre><p>much like the dot is used for navigation in an object tree:</p><pre>a.b<br></pre><p>Both of the above expressions can mean: start at the root a and navigate to the child called b (from a’s point of view).</p><p>The sequence // often introduces a comment to the end of the line, except in Python where it is the truncated integer division binary infix operator.</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1a176e1e11f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[.]]></title>
            <link>https://medium.com/@paulfrischknecht_57432/-a4855dcf5a8a?source=rss-8a51af204bcc------2</link>
            <guid isPermaLink="false">https://medium.com/p/a4855dcf5a8a</guid>
            <category><![CDATA[ascii]]></category>
            <dc:creator><![CDATA[Paul Frischknecht]]></dc:creator>
            <pubDate>Sat, 28 Dec 2024 23:43:28 GMT</pubDate>
            <atom:updated>2024-12-28T23:43:28.599Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@paulfrischknecht_57432/list/f152983d2b1c">Single ASCII Characters</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uky6T8QI3iDU6V5nVMubSg.jpeg" /><figcaption>.</figcaption></figure><p>This article is about the ASCII character . the period or full stop.</p><p>Besides its use as the end-of-sentence marker in all of the western world, in the United States and other countries this character is also used as the decimal separator. It separates the decimal digits expressing the multiples of 10⁰, 10¹… from those for the less-than-one fractional part, where the digits successively express the number of multiples of 10^-1, 10^-2, …</p><pre>3.14159<br></pre><p>Another very important use in computing is what I call hierarchical navigation. In many contexts, the expression</p><pre>a.b<br></pre><p>means either “follow from a to its child or connected node b”, or, more rarely, “find the child a of b”.</p><p>The second meaning is used when resolving fully qualified domain names in DNS.</p><p>The first is used when navigating through object hierarchies and structs in C, C++ and many other object oriented languages.</p><p>…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4855dcf5a8a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>