Originally posted by stormcrow
View Post
Announcement
Collapse
No announcement yet.
Asahi Linux May Pursue Writing Apple Silicon GPU Driver In Rust
Collapse
X
-
Originally posted by ferry View Post
C language and GCC is a proven tool for device driver development. Rust is not a proven tool for device driver development, in fact there is no kernel code at all, except some very trivial example.
Writing a driver for undocumented hardware is challenging, doing so with an experimental compiler is ... hobby-ism?
- Likes 1
Comment
-
Originally posted by Vistaus View Post
Hobby-ism, really? You do know that C and GCC weren't "proven" right from the get-go either, right?
At that time there were commercial unix'es (HP-UX comes to mind) and associated c compilers. Someone, at the beginning, took the risk of developing hardware, OS and compilers/assemblers at the same time. And succeeded, congrats. But that was at the time when you needed to punch in the machine code instructions to boot your PDP8.
The first version of unix were written in assembly. And only later rewritten in C. All step-by-step. And even then, the work done by labs (like Bell) and universities (like MIT).
Comment
-
Originally posted by Dukenukemx View PostThis doesn't replace Mac OSX in the internal SSD? Is that a choice or Apple prevents you from doing this?
Edit: the ability to install multiple macos/linux/whatever OSs on the same SSD in the same system is something that apple *explicitly* engineered. They spend considerable time and effort producing a system that enables parallel install of "trusted" and "untrusted" OSs and this is an officially supported feature. (not to mention removing it would break backwards compatibility with previous versions of macos)Last edited by Developer12; 12 August 2022, 12:07 PM.
- Likes 3
Comment
-
Originally posted by kylew77 View PostI don't like to learn new things so hate Rust, but actually have a technical reason on why Rust is the wrong choice: other operating systems working on the M1 or M2. OpenBSD has a port for the Mac M1 and I think NetBSD does too. They will never accept a rust driver into their OS so why not stick to C so everybody can benefit?
- Likes 7
Comment
-
Originally posted by ferry View Post
What I mean is if you are investing money into something and you are introducing 2 large risks, you are likely to loose your money. Now, as a hobbyist you don't care as you put in mostly your spare time. That is not a bad thing. Now, indeed GCC and linux itself were at the time considered hobbyist projects.
At that time there were commercial unix'es (HP-UX comes to mind) and associated c compilers. Someone, at the beginning, took the risk of developing hardware, OS and compilers/assemblers at the same time. And succeeded, congrats. But that was at the time when you needed to punch in the machine code instructions to boot your PDP8.
The first version of unix were written in assembly. And only later rewritten in C. All step-by-step. And even then, the work done by labs (like Bell) and universities (like MIT).
- Likes 4
Comment
-
Originally posted by jaxa View Post
You mean Hector Martin?
The interesting part is that Lina livestream the development sessions and they are recorded so anyone can watch the +100h of work spent on this and follow the train of thought, decisions along the way etc
- Likes 3
Comment
-
Yep getting Rusty, but, if you ask me, this driver sounds like the best place for the newest fad language Rust to be tried. If doesn't work out no biggie as hardly anyone would notice Always revert back to standard C.... which should be fairly quick as you'd have a sample driver already laid out to draw from. .
- Likes 2
Comment
-
Comment