News for hackers. Stuff that matters.
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by PaulHoule on Monday May 08, 2023 @01:25PM (#35864377)
Like in the kernel? Or like it is in the distribution so you have some kind of chatbot accessible through an API?
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by behnamoh on Monday May 08, 2023 @01:28PM (#35864413)
The latter is more straightforward atm, but imagine the Linux kernel is equipped with GPT. So whenever you run into a problem you can simply ask it for solutions! That would help with the adoption of Linux IMO.
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by smoldesu on Monday May 08, 2023 @01:30PM (#35864441)
What features are you imagining that would otherwise be impossible in userspace?
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by ftxbro on Monday May 08, 2023 @01:41PM (#35864587)
maybe their bar isn't as high as "impossible"
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by smoldesu on Monday May 08, 2023 @01:48PM (#35864687)
You should see Linus Torvalds' bar. If you think I'm asking hardball questions, you're in for a treat.
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by ftxbro on Monday May 08, 2023 @01:51PM (#35864751)
is his bar higher than "impossible"
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by smoldesu on Monday May 08, 2023 @04:44PM (#35866821)
His bar is that he doesn't merge bad or redundant code. He's turned down major features for this before (eg. NTFS support) and would certainly do it again if someone suggested a 10,000 SLOC patch for LLM support that works fine in Ring 2.

Of course, nothing stops you from forking the kernel and doing the heavy lifting yourself. That's why I asked which features they need first, though.

Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by behnamoh on Monday May 08, 2023 @02:07PM (#35864970)
Like when there’s a kernel panic or your graphics drivers are not working, you should still be able to talk to kernel and find a solution.
Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by pmontra on Monday May 08, 2023 @03:24PM (#35865908)
A kernel panic probably halts the machine for a good reason. A user space log analyzer can search for a solution after the reboot, ChatGPT or other traditional technologies.

A not working graphic driver would result in a black screen. Again, a user space log analysis after a reboot or maybe a ALT Fn?

Anyway, why baking that functionality inside the kernel and how would it interact with the user? Over the console? A user space log analyzer could detect issues before the previous shutdown or reboot and offer to find a solution.

Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by dragonwriter on Monday May 08, 2023 @04:56PM (#35866966)
> Like when there’s a kernel panic or your graphics drivers are not working, you should still be able to talk to kernel and find a solution.

Even if GPT was in the kernel, you wouldn’t be able to talk to it after a kernel panic.

Re:Ask HN: GPT and Linux: Any projects trying to merge the two? by dragonwriter on Monday May 08, 2023 @04:52PM (#35866911)
Why do you need GPT in the kernel for this? If the relevant data is exposed to userspace, you can use whatever LLM or other tool, local or remote, to consume and interact based on the data, while not putting unnecessary heavyweight features in the kernel.