Oh no, it is. You need to go straight down to the metal, Mano a Mano with each bit in the CPU status registers. I'd like any high level language to try this. The reason rust links to C and an OS us that otherwise they would need to link to assembler. But it can't be rust all the way down.Well, the system calls in both Unix-like and Windows OSes are effectively written in and for C.
Without system calls programs are rather boring.
Sounds like programming a PDP-11/45 with the flip switches on the front...You need to go straight down to the metal, Mano a Mano with each bit in the CPU status registers
For today it's enough to jump start your code from a JTAG. You don't need to (as I did once upon a time) write a converter from binary image to verilog code to be loaded into the bus controller as an EPROM substitute. That machine had no switches and no JTAG. But hey, it worked. The boot loader/monitor started as expected.Sounds like programming a PDP-11/45 with the flip switches on the front...
I respectfully disagree. I believe in using the right tool for the job. My little machine shop in the basement has 80 square feet (8 square meters) of wall covered in pegboard, with tools hanging on it. There isn't one screwdriver, there are a dozen different ones, for different tasks. In the last 24 hours alone, just for home projects, I've programmed in C, Python and SQL, all integrated together. This evening (if I have any energy left after yard work), I'll add some shell script and a way to hook two python programs together via ssh.So... it's not enough to have Linux fragmentation, we now have to have programming language fragmentation... in the last 10-15 years, the number of programming languages really went up. This much diversity does get in the way of standardization and creating value - in early 2000s, knowing Java was the hot thing, Python was the cool thing for 2010s, and now it's Rust for 2020s... ? How about we start working towards a language called Yeast? (tongue in cheek, of course). ?
No way. SDL is in C doing things the C way. The point is to do things the Rust and/or memory managed way.So really writing SDL from the bottom up (ontop of a fundamental wayland lib when it matures) will be a more tangable solution if they ever hope to get away from C.
Alright, well, how did they do?But it can't be rust all the way down.
Unsafe (in rust terminology) inline assembly. E.g. this is PIO:Alright, well, how did they do?
/// Read/Write for word PIO
impl Io for Pio<u16> {
type Value = u16;
/// Read
#[inline(always)]
fn read(&self) -> u16 {
let value: u16;
unsafe {
asm!("in ax, dx", in("dx") self.port, out("ax") value, options(nostack, nomem, preserves_flags));
}
value
}
Embedded programming can be quite interesting. Though most of it is done in C/C++ (or asm or 4th). Rust is starting to be used....Well, the system calls in both Unix-like and Windows OSes are effectively written in and for C.
Without system calls programs are rather boring.
And using libX11 solves that instead somehow? I doubt it. For one the APIs between SDL and libX11 are actually very similar.No way. SDL is in C doing things the C way. The point is to do things the Rust and/or memory managed way.
In that case, it still doesn't quite make sense (the article, rather than msplsh), as per the Cargo.toml. They are simply using libwayland-client (also written in C) instead of libSDL or libX11.I guess msplsh meant that they want to go the Wayland route.
This is the way. If it ever happens, this I think is the only way that Rust can get out of C's shadow.Alright, well, how did they do?
So there are profit targeted companies behind Rust, so it makes me think twice if Rust will always be free or not if it's build tools and/or libraries will be free forever, etc.
I would see it on who's behind of Rust language in terms of language maintenance and development and who is behind C/C++?
So Rust is founded by 5 member companies: AWS, Huawei, Google, Microsoft and Mozilla. ... $$$$$
So there are profit targeted companies behind Rust, so it makes me think twice if Rust will always be free or not if it's build tools and/or libraries will be free forever, etc.
It's irrelevant that those companies support Rust. They gave up their code to a permissive license. It could also be said about LLVM/Clang compiler and lots of FreeBSD components which code is donated by companies to permissive or other opensource licenses. If were one company behind a language, which that company solely depended on it, it could be the case of the for profit conflict of agendas. Rust is maintained independent of those companies, even though it gets their help. Competing companies working together is also for the benefit of a language neutral to different companies so it can benefit all and become a standard.by the other hand...
C/C++ is maintained by ISO/IEC JTC 1/SC 22
Whilst I don't think this is a problem specifically, it certainly explains why there is such an artificial hype around what is effectively, a fairly mediocre language. Their marketing budgets are vast!So Rust is founded by 5 member companies: AWS, Huawei, Google, Microsoft and Mozilla. ... $$$$$
The way the Rust ecosystem generally works is whichever project can make the most amount of promises, shows the best website/readme, has the flashiest gifs, and most importantly appeals to the right abstract values, gets widely praised, regardless of the usability of said project
I've been personally guilty of falling for the hype and picking projects that have pretty websites, lots of github stars, and present themselves a certain way
I would see it on who's behind of Rust language in terms of language maintenance and development and who is behind C/C++?
C/C++ is maintained by ISO/IEC JTC 1/SC 22![]()
C++ - Wikipedia
en.wikipedia.org
Stroustrup campaigned for years and years and years, way beyond any sort of technical contributions he made to the language, to get it adopted and used.
What's your point here? FreeBSD has to do this?Unsafe (in rust terminology) inline assembly. E.g. this is PIO:
I thought you asked how they did "everything" in Rust in#407:What's your point here? FreeBSD has to do this?
I obviously mis-read the discussion between you and Crivens as to how they achieved it "all in Rust".That's an absurd measurement, as not even C is C "all the way down" with that characterization of "all the way down."
The difference is that C has no need to be C all the way down to deliver on a promise.That's an absurd measurement, as not even C is C "all the way down" with that characterization of "all the way down."