you are viewing a single comment's thread
view the rest of the comments
[–] [S] 2 points 9 months ago* (14 children)

how does apt work when glibc does not work?

  • source
  • parent
  • hideshow 14 child comments
  • [–] 17 points 9 months ago (13 children)

    How does Claude work with nothing?

  • source
  • parent
  • hideshow 13 child comments
  • [–] [S] -5 points 9 months ago (12 children)

    If you want to think about the implementation I guess you could bundle it into the kernel then expose some input/output? https://lemmy.today/comment/21990242

    Where do we install apt in the first place if no software is on it, I guess if it was just raw linux you would just implement wget or curl then download whatever you wanted

  • source
  • parent
  • hideshow 12 child comments
  • [–] 5 points 9 months ago (11 children)

    n I guess you could bundle it into the kernel

    how do you think that works, if the kernel doesn't even have ls ?

  • source
  • parent
  • hideshow 11 child comments
  • [–] [S] -3 points 9 months ago (10 children)

    it would be unikernel so your essentially statically linking a binary to the the linux kernel image, so it all be running in kernelspace. You would have to statically link libc and other dependencies likely (i rem red hat patching glibc for this to work but not sure what they changed?).

  • source
  • parent
  • hideshow 10 child comments
  • [–] 9 points 9 months ago (4 children)

    how are you this savvy with the underpinnings of the OS, but this naive about this kind of scenario and use of AI in this context?

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 0 points 9 months ago (3 children)

    My job involves doing performance optimizations for billion dollar tech companies so its kind of my job to know lol.

    People already have vibe coded Operating Systems, are they well made? no, I don't think TempleOS is some enterprise grade codebase ether but its cool that he got to make his own OS. Would be cool for anyone to be able to do that.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 9 months ago* (2 children)

    You understand the irony of a claude code LLM as a unikernel if your background is perf op for an OS right?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 9 months ago (4 children)

    This breaks the prime directive of Linux. "Don't break userspace"

    If you're working on the linux kernel everything you build drops once init/systemd launches.

    https://unix.stackexchange.com/questions/235335/why-is-there-a-linux-kernel-policy-to-never-break-user-space#235532

    Claude Code is an LLM that relies on multiple libraries not just glibc. What you're proposing breaks the basic tenets of the Linux Kernel.

    I think you'd probably be better served packaging this as a RISC V OS instead as binaries do run in the kernel there.

  • source
  • parent
  • hideshow 4 child comments
  • [–] [S] 2 points 9 months ago (3 children)

    Well the meme says to add some new layer over syscalls so the plan is already to break userspace entirely to force you to make a new one. But yeah if you wanted to make it irl bundling another kernel would likely be easier then Linux unless you wanted the hw support.

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 9 months ago (2 children)

    Look, honestly this has merit. Not for Claude Code, that's insane. But there are a lot of Risc V capable NPUs that could use a smaller model for internal locally sourced workflows. I'm thinking like a read only RAG paired with a tiny GLM 4.7 trimmed down to fit on a SpacemiT Key Stone K3.

    I'll reference you on Codeberg.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 9 months ago (1 child)
  • [–] 2 points 9 months ago* (last edited 9 months ago)

    Yup, here's a good read if you get the chance. https://riscv.org/blog/risc-v-upstreaming/

    Also if you'd like to start in the middle this is interesting as well https://www.sifive.com/blog/all-aboard-part-7-entering-and-exiting-the-linux-kernel-on-risc-v

    Also RUST is a lot easier to implement on RISC-V hardware, and I would suggest it as it's more memory safe on most hardware, especially since often a user can get to Ring 0 with little trouble

    https://github.com/xiaoyang-sde/rust-kernel-riscv

  • source
  • parent