-
Notifications
You must be signed in to change notification settings - Fork 60
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite it in C #659
Comments
this is a bad suggestion |
while rust might not look the best programming language it is very good compared to java and almost on par in performance with c. Any gains in speed with c will only happen if some expert works on the project. |
C (:rocket:) is:
Therefore, this project needs to be written in C (:rocket:), as in its current state of using Rust, it is full of CVEs and memory leaks. Switching to C (:rocket:) will magically fix all these issues :rocket: |
C is the most memory unsafe language that will ever exist because you control memory yourself and c programming takes a lot of time just make sure memory is being handled correctly. The main reason people use languages like C++ and Java is because you don't handle memory yourself the language does. |
Also switching to c will not be magical. It will take like 3-4 months of progress to do that.Also many libraries that stevenaralla uses are in rust to write the project in c it would require rewriting those too. And while there maybe issues in rust those are going to be solved by their respective devs. If this project was written with C a lot of code might have security issues and other things b/c of poor coding that might not get identified for years. |
Rewrite it in C (:rocket:) and rewrite the libraries in C (:rocket:). We can not let this unsafe Rust code loose! We're just letting the CVEs fly. C (:rocket:) is completely immune to CVEs as it is memory safe :rocket:. This project being written in Rust and not C (:rocket:) should be a CVE in and of itself! |
Have you ever programmed anything in C? |
Yes, I have programmed many things in C (:rocket:) It's completely memory safe (:rocket:), secure (:rocket:), minimal (:rocket:), configurable (:rocket:) and fast (:rocket:)! |
write in c, write in c. https://www.youtube.com/watch?v=1S1fISh-pag |
stop with the rockets, rust is a good modern language and not everybody can handle C that is why languages like rust,go are used they might have issues but so does C. In the end these CVEs will not effect normal users. They are special cases. Also as stated by the dev this is a hobby project so asking a rewrite in the first place is illogical. C is only as much memory safe as much memory safe you write it. A C rewrite can have large issues that will further drag this incomplete project into mud. |
Rust is the one dragging this project down in the mud. C (:rocket:) would fly this project into the sky :rocket:. Every CVE is a user-end bug, and C (:rocket:) has none! Rust is inherently non-memory safe and CVE prone no matter how you write it! C (:rocket:) is inherently 100% memory safe (:rocket:) and immune to CVEs no matter how you write it! |
if anything, it should be Zig instead of C ;P all in all, good troll, 11/10 |
Why not java?? minecraft is written in java Or C++ bedrock edition has a lot of bugs though |
Did you even ready my reply?? |
@offbeat-stuff dude. they're trolling lmao |
It was fun though |
Stop misgendering me. My pronouns are sneed/sneed (formerly chuck/chuck). |
C may be unironically better than Rust for some of what I'm trying to accomplish with this project, specifically #446 🕸️ Web support. I find this other project very interesting: https://github.com/satoshinm/NetCraft. It is written in C and already has web support years ago thanks to Emscripten's superior support for C as compared to Rust. However it isn't as featureful. Steven was further along in gameplay functionality when this project forked from it, compared to when NetCraft forked from Craft — but we are much further behind @satoshinm in supporting the web platform, and it isn't as straightforward to port as with C. At one point in time, Rust was seemingly on track to becoming the language for the web. Native wasm32-unknown-unknown target thanks to the LLVM toolchain. There is/was(?) even a Rust and WebAssembly working group https://rustwasm.github.io but it fizzled out or they stopped blogging in 2019. Cargo package support for the web is hit-or-miss. Had this project been written in C using glfw or SDL, we may have already had web support by now. Rust's memory safety doesn't matter as much when targeting WebAssembly, though as a modern modern language it can be more pleasant to program in compared to C. No free lunch. Not planning to rewrite in C, myself, but if anyone else wants to I'm all for it. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
No description provided.
The text was updated successfully, but these errors were encountered: