Skip to content

Commit

Permalink
Update to rely on HTML table rendering instead of images (#32)
Browse files Browse the repository at this point in the history
This PR addresses a prior issue with HTML rendering which involved
static image workarounds (fixed in a recent release of LWT).

Closes #31
  • Loading branch information
d33bs authored Apr 23, 2024
1 parent f445530 commit b9e6376
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions _posts/2024-01-22-Python-Memory-Management-and-Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,46 +147,58 @@ The stack can be thought of as a {% include icon.html icon="fa-solid fa-map" %}
The heap can be imagined of as a {% include icon.html icon="fa-solid fa-warehouse" %} "warehouse" store (or remove) things used as part of the stack "roadmap".
Please see [The Linux Programming Interface by Michael Kerrisk, Chapter 6.3: Memory Layout of a Process](https://learning.oreilly.com/library/view/the-linux-programming/9781593272203/xhtml/ch06.xhtml#ch06lev1sec03) for more information about processes.


<table>
<tr><th colspan="2">Memory Blocks</th></tr>
<tr>
<td>

<div>
<strong>A.)</strong> All memory blocks available.

<table>
<tr><td>Block</td><td>Block</td><td>Block</td></tr>
</table>
</div>

</td>
<td>

<div>
<strong>B.)</strong> Some memory blocks in use.


<table>
<tr><td style="background:#86EFAC;">Block</td><td style="background:#86EFAC;">Block</td><td>Block</td></tr>
</table>
</div>

</td>
</tr>
<tr>
<td colspan="2" style="text-align:center;font-weight:bold;">Practical analogy</td>
</tr>
<tr>
<td>

<div>
<strong>C.)</strong> You have limited boxes to hold things.

<table>
<tr><td>📦</td><td>📦</td><td>📦</td></tr>
</table>
</div>

</td>
<td>

<div>
<strong>D.)</strong> Two boxes are used, the other remains empty (ready for use).

<table>
<tr><td style="background:#86EFAC;">📦</td><td style="background:#86EFAC;">📦</td><td>📦</td></tr>
</table>
</div>

</td>
</tr>
</table>
Expand Down Expand Up @@ -507,7 +519,6 @@ See below for some notable examples of additional memory allocation possibilitie

### Python Reference Counting


<table>
<tr><th>Processed line of code</th><th>Reference count</th></tr>
<tr>
Expand Down
Binary file removed images/memory_blocks_examples.png
Binary file not shown.
Binary file removed images/python_reference_counting_example.png
Binary file not shown.

0 comments on commit b9e6376

Please sign in to comment.