commit 1e8c5dc

chld  ·  2026-04-24 23:24:47 +0000 UTC
parent eb633ae
testig
5 files changed,  +54, -0
M srv.go
+0, -0
+47, -0
 1@@ -0,0 +1,47 @@
 2+<script type="module" src="https://cdn.skypack.dev/@vanillawc/wc-markdown"></script>
 3+<wc-markdown>
 4+
 5+### 2026 17 apr
 6+i found Cxx really easy to get on board. zig really exposed me to the nature of classes, and C with its structs.   
 7+i think zig helped me understand Cxx the most? like in zig structs, users are able to define functions in classes   
 8+and they have `public:` and `private` *<- not explicit in zig*, which relates to zig's `pub ...`   
 9+its also good that i can just paste C code into Cxx as-is. i can include `<stdio.h>`, `int main()`, `printf(...)` - 
10+hell, even pipe a C hello world into the Cxx compiler   
11+and it still compiles. i might still think like a C programmer and not touch the abstractions
12+but hey, who knows?   
13+what we've learned is that Cxx is the Zig i needed, and its really fuckin cool   
14+the *'rive*'s ever-so irritating hivemind cant stop me. but, they probably dont give a shit about me anyway xD
15+
16+```cxx
17+#include<stdio.h>
18+
19+class Math{
20+    public:
21+    int Add(int a, int b){return a+b;}
22+    int Mul(int a, int b){return a*b;}
23+    int Sub(int a, int b){return a-b;}
24+    float Div(int a, int b){return a/b;}
25+};
26+
27+int main()
28+{
29+    Math hi;
30+    printf("%d %d", hi.Add(1, 3), hi.Mul(2, 3));
31+}
32+
33+```
34+
35+---
36+### 2026 23 apr
37+i just got the [dell latitude 3190](https://www.dell.com/support/manuals/en-us/latitude-11-3190-laptop/latitude_3190_owners_manual/technical-specifications?guid=guid-8be0e657-f5fa-4ebb-bf14-3ee91e1a5775&lang=en-us) and i have a list of pros and cons.   
38+here are its pros:   
39+its touchpad is really great.. at first, i thought it was a blank touchpad - but then i looked more into it. the line at the bottom of the tab seperates _m1_ from _m3_. one can click on that line and also summon a _m2_! this is a upgrade from those bleak ugly blank touchpads with edge click for _m3_-    
40+its bios is much more extensive and customizable compared to the hp bios with like 1 feature. in this dell bios i can turn off hardware devices - which serves as super useful! if i dont need the camera, i can just go to bios and disable it. the interface is also amazing.. wanna find a good operating system with that type of ui   
41+its hardware support also rules! gemini lake, mostly supported by most operating systems. iwm 8265, supported by all but illumos because it sucks.
42+   
43+![bios](https://i.dell.com/sites/csimages/App-Merchandizing_esupport_flatcontent_Images/all/bios-system-information-optiplex-7050.png)
44+
45+i think the only con is the emmc storage. 9front and netbsd didnt support it, sadly...
46+but, i think there is hope. in the awesome bios, there is a option to enable/disable some ssd storage, meaning i can add storage?
47+to be continued.
48+</wc-markdown>
+3, -0
1@@ -0,0 +1,3 @@
2+<h1>hello everyone</h1>
3+<p>this is chlds website<br>
4+im some gu who likes to program and draw</p>
M srv.go
+4, -0
 1@@ -17,7 +17,11 @@ func handler(w http.ResponseWriter, r *http.Request) {
 2 
 3 	fmt.Fprintf(w, "<html><body><center>\n")
 4 	fmt.Fprintf(w, "<p>%s</p>\n", fortune[rand.Intn(len(fortune))])
 5+	fmt.Fprintf(w, "<img src=chld.png alt=chld><br><br>\n")
 6 	fmt.Fprintf(w, "<a href=https://codeberg.org>berg</a> | <a href=https://sr.ht/~chld/>srht</a>")
 7+
 8+	c, _ := os.ReadFile("./index.html"); fmt.Fprintf(w, "\n\n<br>\n%s", c)
 9+	d, _ := os.ReadFile("./diary.html"); fmt.Fprintf(w, "\n\n<br><p markdown=span>\n%s</p>\n", d)
10 	fmt.Fprintf(w, "</html></body></center>")
11 }
12 
+0, -0