about summary refs log tree commit diff
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-07-09 00:02:14 +0200
committermakefunstuff <[email protected]>2024-07-09 00:02:14 +0200
commit28c63ce8d4533e27367f2d18137a7c12c0b96970 (patch)
treec94bc2b245f9e8cb227590c0eca11a74595b652b
parent3335e781107f88646d9403357411303d4f8f0a4f (diff)
downloadtinkerbunk-28c63ce8d4533e27367f2d18137a7c12c0b96970.tar.gz
update README and removed dumb helloworlds
-rw-r--r--README.md18
-rw-r--r--src/ls.zig12
-rw-r--r--src/socket-server.zig22
3 files changed, 12 insertions, 40 deletions
diff --git a/README.md b/README.md
index 82363d9..f406926 100644
--- a/README.md
+++ b/README.md
@@ -12,9 +12,15 @@ Just recreational programming doing some probably useless stuff
 ## TODO:
 This is pool of ideas of what to implement in zig
 
-- [x] naive ls implementation
-- [x] naive socket server
-- [ ] naive grep implementation
-- [x] render some stuff with sdl
-- [ ] play with raylib
-- [x] interop with c project
+- [ ] simple neural networks - in progress
+- [ ] basic ml algorithms
+- [ ] pong
+- [ ] simple web server
+- [ ] esp32 stuff
+- [ ] simple os
+- [ ] naive docker clone
+- [ ] naive data storage
+- [ ] naive git
+- [ ] improve cli args parser
+- [ ] play with markow chains
+- [ ] btree index for toy db
diff --git a/src/ls.zig b/src/ls.zig
deleted file mode 100644
index 64e27cf..0000000
--- a/src/ls.zig
+++ /dev/null
@@ -1,12 +0,0 @@
-const std = @import("std");
-
-pub fn ls() !void {
-    const dir = try std.fs.cwd().openDir(".", .{ .iterate = true });
-
-    var iterator = dir.iterate();
-
-    while (try iterator.next()) |entry| {
-        const name = entry.name;
-        std.debug.print("{s}\n", .{name});
-    }
-}
diff --git a/src/socket-server.zig b/src/socket-server.zig
deleted file mode 100644
index b77c4d5..0000000
--- a/src/socket-server.zig
+++ /dev/null
@@ -1,22 +0,0 @@
-const std = @import("std");
-const print = std.debug.print;
-const net = std.net;
-
-pub fn start_server() !void {
-    print("Starting server\n", .{});
-
-    const ip = [_]u8{ 127, 0, 0, 1 };
-    const port = 9000;
-
-    const addr = net.Address.initIp4(ip, port);
-
-    var server = try net.Address.listen(addr, .{});
-    print("Listening at {}\n", .{server.listen_address});
-    defer server.deinit();
-
-    while (true) {
-        var connection = try server.accept();
-        _ = try connection.stream.write("Hello, client\n");
-        defer connection.stream.close();
-    }
-}