<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://raychev.org/w/index.php?action=history&amp;feed=atom&amp;title=Blog</id>
	<title>Blog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://raychev.org/w/index.php?action=history&amp;feed=atom&amp;title=Blog"/>
	<link rel="alternate" type="text/html" href="https://raychev.org/w/index.php?title=Blog&amp;action=history"/>
	<updated>2026-11-30T04:24:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.12</generator>
	<entry>
		<id>https://raychev.org/w/index.php?title=Blog&amp;diff=49&amp;oldid=prev</id>
		<title>Delyan: Import public page from https://delyan.org/blog/</title>
		<link rel="alternate" type="text/html" href="https://raychev.org/w/index.php?title=Blog&amp;diff=49&amp;oldid=prev"/>
		<updated>2026-11-29T03:26:53Z</updated>

		<summary type="html">&lt;p&gt;Import public page from https://delyan.org/blog/&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;span id=&amp;quot;code-reading-ed&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;code-reading-ed&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== [https://www.codereading.org/p/ed-is-the-standard-text-editor Code Reading: ed] ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;section&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==== 2024-01-02 ====&lt;br /&gt;
&lt;br /&gt;
As it turns out there are many iterations of the venerable &amp;#039;&amp;#039;&amp;#039;ed&amp;#039;&amp;#039;&amp;#039; text editor. It was created by Ken Thompson in 1969 at AT&amp;amp;amp;T Bell Labs. Even though first version was written in assembler, it was later reimplemented in C, and then ported to many (if not all) operating systems. I enjoyed [https://www.codereading.org/p/ed-is-the-standard-text-editor digging through the 1993 version of ed, created by Andrew Moore]. Links:&lt;br /&gt;
&lt;br /&gt;
* [https://youtu.be/BNYpmLH6IjQ video: Ed text editor by LoomisTook]&lt;br /&gt;
* [[Blog|video: Where GREP Came From by Brian Kernighan]]&lt;br /&gt;
* [https://drewdevault.com/2019/10/30/Line-printer-shell-hack.html An old-school shell hack on a line printer - October 30, 2019 by Drew DeVault]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;recreational-coding-in-pascal&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;recreational-coding-in-pascal&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Recreational Coding in Pascal ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;section-1&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==== 2023-12-28 ====&lt;br /&gt;
&lt;br /&gt;
[[File:Delyan-turbo-pascal-kniga_50.jpg|260px|Turbo Pascal Book]]&lt;br /&gt;
&lt;br /&gt;
A while back I was going through my childhood books and found a long forgotten treasure from 1993. This is a Bulgarian book called &amp;amp;quot;[https://www.google.com/search?q=%D0%94%D0%B0%D0%BD%D0%B8%D0%B5%D0%BB%D0%B0+%D0%A7%D0%BE%D0%B1%D0%B0%D0%BD%D0%BE%D0%B2%D0%B0+Turbo+Pascal Turbo Pascal for Beginners]&amp;amp;quot; by Daniela Chobanova.&lt;br /&gt;
&lt;br /&gt;
I cracked open that dusty old friend of mine and I was immediately filled with the memories and the excitement of learning about computers and how to program them for the first time. At the time I read this book (1993) I did not have a personal computer at home. My friends and I used to go to an after-school program where we learned [https://en.wikipedia.org/wiki/DOS DOS], [https://en.wikipedia.org/wiki/Norton_Commander Norton Commander], and [https://en.wikipedia.org/wiki/Turbo_Pascal Turbo Pascal]. We had access to half a dozen [https://en.wikipedia.org/wiki/Intel_80286 286DX computers] and took turns programming them. We all carried a [https://en.wikipedia.org/wiki/Floppy_disk 5.25-inch DD (double density) floppy disk] around. These provided storage capacity of 360 KB, which was more than adequate for the source code we wrote and the compiled binaries. But we had access to this lab only a couple of times a week and only during the school year. The rest of the time and during our long summer breaks I had no choice but to compose my Pascal programs with pen and paper. The start of a new week or school year gave me the exciting chance to compile the code I scribbled on paper ([https://delyan.org/blog/decomp.html delayed compilation]). That was a blast and a fulfilling experience!&lt;br /&gt;
&lt;br /&gt;
Nowadays I have a [https://delyan.org/blog/uses.html computer at home] and don&amp;#039;t need to write Pascal on paper anymore. But I still think it is valuable and perhaps even entertaining to write code (or at least diagram problems) with pen and paper. I believe this is especially important for new programmers to master.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;content: &amp;#039;&amp;#039;; display:block; clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[File:Delyan-Turbo-Pascal-71_50_50.png|260px|Turbo Pascal 7.1 Screenshot]]&lt;br /&gt;
&lt;br /&gt;
This week I wanted to get back into recreational retro programming. I started by downloading [https://www.freedos.org/ FreeDOS] and installing Turbo Pascal. It turns out you can run Turbo Pascal 7.1 in your [https://playminigames.net/game/turbo-pascal browser]. I can actually type and run source code like it is 1993! This is going to be so much fun!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;content: &amp;#039;&amp;#039;; display:block; clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[File:Delyan-programming-with-pascal_resized.jpg|260px|Programming With Pascal Book]]&lt;br /&gt;
&lt;br /&gt;
I might even sink my teeth into another old Pascal text book I found and implement some of the algorithms in Turbo Pascal (again)! This is the Bulgarian translation of the 1991 book [https://catalog.libraries.psu.edu/catalog/1663335 Intermediate programming principles and techniques using Pascal] by Terry M. Smith.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;content: &amp;#039;&amp;#039;; display:block; clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[File:Delyan-lazarus-ide_resized.jpg|260px|Programming With Pascal Book]]&lt;br /&gt;
&lt;br /&gt;
Now some folks believe Pascal to be outdated and a relic of the past. But once in a while we are [https://news.ycombinator.com/item?id=34160097 reminded] that there is a modern Pascal ecosystem and it is alive and well. Particularly lovely is [https://news.ycombinator.com/user?id=Peter5 Peter5]&amp;#039;s HN comment: &amp;lt;span class=&amp;quot;highlight-blue&amp;quot; style=&amp;quot;font-style: italic;&amp;quot;&amp;gt; &amp;amp;quot;[FreePascal] is a full-featured and very fast compiler. The resulting program is a rival for the best output of C/CPP compilers. It can be used in the style of simpler languages like Go and is almost as safe as Rust in a much faster manner. It has a great but old-looking IDE, Lazarus. It has been under active development for decades...&amp;amp;quot; &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So it turns out that [https://www.freepascal.org/ Free Pascal] is a modern compiler for a language, which on the surface, appears quite old. There is an IDE called [https://www.lazarus-ide.org/ Lazarus] and it too is a blast. I found it meditative to roll back time 30 years and code in my first programming language.&lt;br /&gt;
&lt;br /&gt;
Writing in a &amp;amp;quot;dead&amp;amp;quot; computer language, much like speaking Latin, is perhaps the true definition of &amp;#039;&amp;#039;&amp;#039;recreational programming&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;content: &amp;#039;&amp;#039;; display:block; clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
[[File:Delyan-sbornik-informatika-s-pascal_resized.jpg|260px|Sbornik Informatika s Pascal]]&lt;br /&gt;
&lt;br /&gt;
I even found the excellent &amp;amp;quot;[https://knizhen-pazar.net/products/books/1737682-sbornik-informatika-s-paskal Problems: Informatics with Pascal]&amp;amp;quot; book by Pavel Azalov and Fani Zlatarova, which was the Bulgarian version of LeetCode in 1995. The problems in this book are fantastic! I look forward to publishing a few of these here!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;content: &amp;#039;&amp;#039;; display:block; clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;span id=&amp;quot;links&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=== Links ===&lt;br /&gt;
&lt;br /&gt;
* [https://news.ycombinator.com/item?id=34160097 HackerNews post]&lt;br /&gt;
* [https://www.getlazarus.org/guides/intro/ A Guided Intro to the Free Pascal Language]&lt;br /&gt;
* [https://web.archive.org/web/20230210074537/https://www.getlazarus.org/guides/intro/ (WebArchive) A Guided Intro to the Free Pascal Language]&lt;br /&gt;
* [https://www.lazarus-ide.org/ Lazarus IDE]&lt;br /&gt;
* [https://www.freedos.org/ FreeDOS]&lt;br /&gt;
* [https://web.archive.org/web/20050310144630/http://bdn.borland.com/all/0,1435,museum%7C0%7C30,00.html Borland Museum] (Turbo Pascal 5.5, Turbo C++ 1.01, Turbo C 2.01, Turbo Pascal 3.02, Turbo Pascal 1.0)&lt;br /&gt;
* [https://archive.org/details/softwaretoolsinp00kern &amp;#039;&amp;#039;&amp;#039;Software tools in Pascal&amp;#039;&amp;#039;&amp;#039; by Brian W. Kernighan, P. J. Plauger - 1981]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;content: &amp;#039;&amp;#039;; display:block; clear:both;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;font-collection&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;font-collection&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Font Collection ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;sun-dec-24-2023&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==== Sun Dec 24, 2023 ====&lt;br /&gt;
&lt;br /&gt;
Over the years I&amp;#039;ve experimented with many fonts for writing and coding. My current favorite font is [https://berkeleygraphics.com/typefaces/berkeley-mono/?ref=delyan-org.ghost.io Berkeley Mono] – I generally love the design philosophy of the team behind this typeface – focus on reading and writing reminiscent of the golden era of computing - the early days of UNIX. Other fonts I use or have used:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://learn.microsoft.com/en-us/typography/font-list/consolas?ref=delyan-org.ghost.io Consolas (from Microsoft)] – the default monospaced font in Windows.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;p&amp;gt;[https://en.wikipedia.org/wiki/Menlo_(typeface)?ref=delyan-org.ghost.io Menlo (Apple)] – From Wikipedia:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;Menlo&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;is a monospaced sans-serif &amp;#039;&amp;#039;typeface&amp;#039;&amp;#039; designed by Jim Lyles and Charles Bigelow in 1997. The &amp;#039;&amp;#039;typeface&amp;#039;&amp;#039; was first shipped with Mac OS X Snow Leopard.&amp;lt;/p&amp;gt;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://en.wikipedia.org/wiki/Monaco_(typeface)?ref=delyan-org.ghost.io Monaco (Apple)] – the default monospace font currently shipping with macOS&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://en.wikipedia.org/wiki/Inconsolata?ref=delyan-org.ghost.io Inconsolata] – designed by Raph Levien in 2006.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://github.com/svofski/glasstty?ref=delyan-org.ghost.io GlassTTY] – a TrueType VT220 font reminiscent of a CRT terminal.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://www.jetbrains.com/lp/mono/?ref=delyan-org.ghost.io JetBrains mono] is great&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://github.com/adobe-fonts/source-code-pro SourceCode Pro]&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;[https://en.wikipedia.org/wiki/Liberation_fonts Liberation Mono] (Monospaced on my favorite distro)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;and last but not least - Lucide Grande (used by Rob Pike and [https://twitter.com/_rsc/status/1486353935334060034?ref=delyan-org.ghost.io Russ Cox] in [https://twitter.com/_rsc/status/1261035636791934976?ref=delyan-org.ghost.io the ACME editor])&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;(ok how about [https://stackoverflow.com/a/33787932 Code Page 437 / CP37?] See [http://laemeur.sdf.org/fonts/ More Perfect DOS VGA])&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I must say – Russ and Rob inspire me to a degree to try ACME (launch it with&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;-f /mnt/font/LucidaGrande/13a/font -F /mnt/font/SourceCodePro-Regular/13a/font&amp;lt;/pre&amp;gt;&lt;br /&gt;
) and go savage-mode like [https://twitter.com/_rsc/status/1261041918995238913/photo/1?ref=delyan-org.ghost.io this].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;archive&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
== Archive: ==&lt;br /&gt;
&lt;br /&gt;
* [https://delyan.org/blog/case.html Camel Case, Pascal Case, Snake Case etc.]&lt;br /&gt;
* [https://delyan.org/blog/lte.html Cellular Bands and Radio Frequencies]&lt;br /&gt;
* [https://delyan.org/blog/elev.html The top 50 largest cities the US and their above-sea level elevations]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;[https://delyan.org/blog/ Original page on delyan.org]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Delyan</name></author>
	</entry>
</feed>