mvp barring github actions

This commit is contained in:
Pagwin 2024-11-28 19:56:23 -05:00
parent 1c4f8fe871
commit f2c5d6a5d4
No known key found for this signature in database
GPG key ID: 81137023740CA260
10 changed files with 18 additions and 22 deletions

3
TODO
View file

@ -1,7 +1,4 @@
MVP necessary:
- Fix articles with inline html in them and/or links
MVP unneeded:
- post jump points and table of contents (be wary of having this take up too much space on mobile)
- ico?
- Make references(the tiny number things) appear to the side instead of the bottom on desktop, try to make it bottom of page in print or bottom of print otherwise

View file

@ -72,7 +72,7 @@ impl Add for Frac{
This code feels bad even from a code quality point of view but idk why, regardless it's hilariously bad performance wise.
<video width="700" height="400" controls src="/video/frac_gen_v1.mp4"></video>
<video width="700" height="400" controls src="/static/video/frac_gen_v1.mp4"></video>
Considering that we're "only" doing addition this is incredibly slow. Slower than addition in (insert butt of the joke language of this week here). All that in mind something is definitely up and if you read the code above and think about it enough you'll probably see it.
@ -154,7 +154,7 @@ async fn recurse(f1:Frac,f2:Frac, remaining:u64)->Vec<Frac>{
looks good at first glance(actual version code quality is bad but blog version seems alright). What happens when we run it?
<video width="700" height="400" controls src="/video/frac_gen_v2.mp4"></video>
<video width="700" height="400" controls src="/static/video/frac_gen_v2.mp4"></video>
Oh... we run out of memory... or well we run out of 30 gigabytes of memory because I set a limit to avoid effecting the other stuff running on the server(because it isn't mine). But why? Doing the math if all we had to deal with was the fractions we'd be using about `17501876*4/1000**3 ~ 0.07 GB`, if we include the overhead of all the Vecs we make and are pretty agressive with how much memory they use maybe 0.21 GB which is a difference of over 142x. So what's the rest of the memory?
@ -196,7 +196,7 @@ fn recurse(f1:Frac,f2:Frac, remaining:u64)->Vec<Frac>{
This solves the whole running out of memory thing. A funny side effect is that now it's even faster(even though it's 1 thread).
<video width="700" height="400" controls src="/video/frac_gen_v3.mp4"></video>
<video width="700" height="400" controls src="/static/video/frac_gen_v3.mp4"></video>
So that was fun going through and making all this work out well, now I can generate gigabytes upon gigabytes of fractions with ease.

View file

@ -1,6 +1,3 @@
@layer futureproof;
@layer futureproof{
@media (prefers-color-scheme: dark){
:root {
@ -17,4 +14,3 @@
}
}
}

View file

@ -40,7 +40,7 @@ h2 {
}
h1, h2, h3, h4, h5, h6 {
/*I want serifs dangit*/
font-family: "courier-std", serif;
font-family: "Courier Prime", Georgia, serif;
}
p{
font-size: var(--base-text-size);
@ -77,7 +77,7 @@ time {
#content {
box-sizing: border-box;
display: block flex;
margin: 1rem;/*calc(24px + 3rem) 1rem 1rem 1rem;*/
margin-top: 1rem;/*calc(24px + 3rem) 1rem 1rem 1rem;*/
padding: 1rem;
/* needed due to flex parent*/
width: 100%;

View file

@ -3,7 +3,9 @@
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 455.731 455.731" xml:space="preserve">
<style>
@import url("/static/css/icon-colors.css");
@layer color-import, futureproof;
@import url("/static/css/icon-colors.css") layer(import-color);
@layer futureproof{
.box {
fill: var(--background-color);
}
@ -13,9 +15,7 @@
.circle {
fill: var(--secondary-color);
}
/*.icon {
fill: var(--primary-color);
}*/
}
</style>
<a href="/index.xml" target="_top">
<g>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -11,8 +11,8 @@
<link
href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://use.typekit.net/tux2tbi.css">
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet">
<meta name="theme-color" content="#1c1b19" media="(prefers-color-scheme: dark)">
<meta name="theme-color" content="#e2e3e5" media="(prefers-color-scheme: light)">
<link rel="stylesheet" type="text/css" href="/static/css/layout.css" />
@ -32,8 +32,11 @@
<main id="content">
{{{content}}}
</main>
<!-- don't bother with anchor on outside anchor is inside svg-->
<object class="icon" data="/static/images/rss.svg"></object>
<footer style="margin:20px;">
<!-- don't bother with anchor on outside anchor is inside svg-->
<a href="/index.xml"> <object width="100" height="100" class="icon"
data="/static/images/rss.svg"></object></a>
</footer>
</div>
</body>

View file

@ -1,6 +1,6 @@
<header>
<h1 style="font-variant: small-caps; font-faimly: Georgia, serif">{{{title}}}</h1>
<div class="info">
<h1 style="font-variant: small-caps;">{{{title}}}</h1>
<div class=" info">
{{{date}}}
</div>
</header>