Shreyas Mididoddi

@shreyascodes.tech

passionate developer, http://htmx.ceo 🤷 btw! always happy / *never sad (same thing) mental af ? 🤔 señor junior dev, I'm here to have fun and make friends * = almost

who at @npmjs.com decided the syntax highlighting should stay the same even in dark mode? anyone at npm actually use what they build?? like, just open the damnn thing to see if it actually works. i am not even asking a lot i don't think

a screenshot from an npm package docs that says the following with bad color contrast in dark mode making it hard to read

Use AesGcmCypher.generateKey() once per key ID, then store the generated value in your secret manager. The generated string is an unpadded base64url-encoded 32-byte AES-256 key.

import { AesGcmCypher } from "@joyful/secrets/cyphers/aes-gcm";

const key = AesGcmCypher.generateKey();
console.log(key);

> You're the author — so you know its internals better than I do. Let me check your own glfw example for the per-frame ownership pattern rather than assume wgpu-native semantics lmao

So i have an old (like android 2 old) apk of a game i haven't played in almost a decade It has a 32 bit only native library. It's old enough to not work any android device I have. Maybe i should disassemble and build from scratch with raykib or something

If you want to do anything with android ndk and building android native libs check out this thing i made. Makes it a lot nicer to work with ndk stuff. Auto version management and downloading the right sdk+ndk in the works too. github.com/shreyassanth...

GitHub - shreyassanthu77/zig-android: Android sdk resolution and compilation utils for zig build system

Android sdk resolution and compilation utils for zig build system - shreyassanthu77/zig-android

github.com

Mann if I see another problem summary heading in bold big letter I'm gonna explode please keep them 10 lines at most and if you can't... rethink everything before you expect someone else to read all the slop which you didn't even attempt to simplify I hate this so much

all it takes to build a simple raylib c project building cross platform using zig it can also cross compile with like 10 more lines to macos too. so any platform to any other it is just beautiful.

const std = @import("std");

pub fn build(b: *std.Build) !void {
    const target = b.standardTargetOptions(.{});
    const optimize = b.standardOptimizeOption(.{});

    const raylib_dep = b.dependency("raylib", .{
        .target = target,
        .optimize = optimize,
    });
    const libraylib = raylib_dep.artifact("raylib");

    const exe = b.addExecutable(.{
        .name = "laya",
        .root_module = b.createModule(.{
            .target = target,
            .optimize = optimize,
            .link_libc = true,
        }),
    });
    exe.root_module.addCSourceFile(.{
        .file = b.path("main.c"),
        // all the pointers are slices into `flags_file`
        .flags = try splitBySpaceAlloc(b.allocator, @embedFile("compile_flags.txt")),
    });
    exe.root_module.linkLibrary(libraylib);

    b.installArtifact(exe);

    const run_step = b.step("run", "Run the app");
    const run_exe = b.addRunArtifact(exe);
    if (b.args) |args| run_exe.addArgs(args);
    run_step.dependOn(&run_exe.step);
}


fn splitBySpaceAlloc(allocator: std.mem.Allocator, str: []const u8) ![][]const u8 {
    var it = std.mem.splitAny(u8, str, " \n\r\t");
    var res = std.ArrayList([]const u8).empty;
    while (it.next()) |arg| {
        try res.append(allocator, arg);
    }
    return try res.toOwnedSlice(allocator);
}

My x account is suspended for "inauthentic behaviour" so I'll be posting a lot more here now. Thank you for your attention to this matter. You will be hearing a lot of zig and svelte shilling 🫡

Okay ai kinda sucks for what I do but man it fixed my audio on linux and it's the best setup I had in about a decade. Bro went and looked through obscure forums for me which i would have never done myself. The model is Kimi k 2.7 code btw

Shreyas Mididoddi@shreyascodes.tech · last mo.

> But given the user is technically competent (using Arch, OBS, knows about monitoring latency), they can apply the fixes themselves if they want. Still, offering to do it is good. lol

> But given the user is technically competent (using Arch, OBS, knows about monitoring latency), they can apply the fixes themselves if they want. Still, offering to do it is good. lol

Against the sea of noise, slow down. Take the time you need. Find community. Learn with them. Share with others. Dream long term. Build together. Have fun. Love. Care.

The Obsidian team is growing from three engineers to four engineers. Competitive SF salary. Fully remote, live anywhere. Apply below.