summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aliases.map1
-rw-r--r--index.html3
-rw-r--r--playing_around_with_simple_interfaces-1.png (renamed from how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-1.png)bin1957 -> 1957 bytes
-rw-r--r--playing_around_with_simple_interfaces-2.png (renamed from how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-2.png)bin2919 -> 2919 bytes
-rw-r--r--playing_around_with_simple_interfaces.html (renamed from how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory.html)8
5 files changed, 6 insertions, 6 deletions
diff --git a/aliases.map b/aliases.map
index cf2a767..2638316 100644
--- a/aliases.map
+++ b/aliases.map
@@ -6,3 +6,4 @@
/integrating_browser_into_your_environment.html /deconstructing_web_browsers.html;
/state_of_starshatter_open_january_2022.html /starshatter_open_dev_update_2022_01.html;
/self_update_sine.html /self_update_march_2023.html;
+/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory.html /playing_around_with_simple_interfaces.html;
diff --git a/index.html b/index.html
index 45c6005..a3bc799 100644
--- a/index.html
+++ b/index.html
@@ -60,8 +60,7 @@ software and hardware engineering. I post here my projects, experiments, and wha
<time>2022-01-28</time>
<li> <a href="you_can_serve_static_data_over_http.html">You Can Serve Static Data Over HTTP</a><br>
<time>2022-01-27</time>
-<li> <a href="how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory.html">How to Create
- Generic Interfaces by Example of Storing Files in Arbitrary Memory</a><br>
+<li> <a href="playing_around_with_simple_interfaces.html">Playing Around With Simple Interfaces</a><br>
<time>2022-01-25</time>
<li> <a href="how_to_compress_files_in_posix.html">How to Compress Files in POSIX</a><br>
<time>2021-08-14</time>
diff --git a/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-1.png b/playing_around_with_simple_interfaces-1.png
index 4f7f4b0..4f7f4b0 100644
--- a/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-1.png
+++ b/playing_around_with_simple_interfaces-1.png
Binary files differ
diff --git a/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-2.png b/playing_around_with_simple_interfaces-2.png
index 51608f5..51608f5 100644
--- a/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-2.png
+++ b/playing_around_with_simple_interfaces-2.png
Binary files differ
diff --git a/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory.html b/playing_around_with_simple_interfaces.html
index f1985a9..fe0da68 100644
--- a/how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory.html
+++ b/playing_around_with_simple_interfaces.html
@@ -7,17 +7,17 @@
<link rel="icon" type="image/png" href="favicon.png">
<link rel="stylesheet" href="style.css">
-<title>How to Create Generic Interfaces by Example of Storing Files in Arbitrary Memory</title>
+<title>Playing Around With Simple Interfaces</title>
<nav><p><a href="https://ignore.pl">ignore.pl</a></p></nav>
<article>
-<h1>How to Create Generic Interfaces by Example of Storing Files in Arbitrary Memory</h1>
+<h1>Playing Around With Simple Interfaces</h1>
<p class="subtitle">Published on 2022-01-25 23:45:00+01:00, last modified on 2022-01-26 18:44:00+01:00
<p>This one comes as a little surprising and for experienced (or even intermediate) reader may appear boring. Think of
it as "back to the fundamentals" type of article. Now that I think about it... Do I even have anything that wouldn't
classify into this category? Oh, yeah, rants.</p>
-<img src="how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-1.png" alt="bird">
+<img src="playing_around_with_simple_interfaces-1.png" alt="bird">
<p>I had an opportunity to give lectures at the local university about programming and one of the topics was loosely
related to persistence. We were playing around with a <a href="https://git.ignore.pl/hwd/hwd/">hardware simulator</a>
and I asked a question that we could use as a plot device:
@@ -65,7 +65,7 @@ knowledge would be enough for the program to write and read arbitrary strings as
<p>Since we are using strings as an example, there is also another implementation of them: length coupled with an array.
This kind of format allows the string to contain null bytes which is convenient when storing sightly more arbitrary
data.</p>
-<img src="how_to_create_generic_interfaces_by_example_of_storing_files_in_arbitrary_memory-2.png" alt="i/o">
+<img src="playing_around_with_simple_interfaces-2.png" alt="i/o">
<p>Assume that you know the size of the memory - in case of this simulator it's 10KB - figure out the number of bytes
you need to use to store the maximum length of the data (2 bytes here), and then just say that there is an integer on
first X bytes of that memory. Write the length of data to these bytes when writing data. Read the length of data from it