yes it’s possible via eclipse plugin called “corrosion” X-D (wondering when the WD40 will come into play? oh wait hewego…)
but it’s not easy to get working X-D
because for some reason
debugging only works
when eclipse is started via terminal
not when started via desktop icon or from the menu
to set a breakpoint in eclipse go to the line then Ctrl+Shift+B
to start debugging hit F11
it SHOULD stop at the breakpoint X-D
alternatives?
rust game engines?
yes they exist (youtube)
-
- https://bevyengine.org/ CrossOS! (GNU Linux, Win, MacOS, Browser, iOS, Android)
- Fyrox Game Engine
- https://fyrox.rs/examples.html <- runs IN THE BROWSER
- thanks to webassembly 3D RUNNING IN THE BROWSER!!!? 😀
- this user is RUSTING OUT! X-D 60FPS OpenGL in the browser from rust? this is pretty amazing
- https://fyrox.rs/assets/demo/animation/index.html
- https://www.rust-lang.org/what/wasm
- https://rustwasm.github.io/book/
- https://fyrox.rs/assets/demo/sound/index.html
- with 3D SOUND! VERY IMPRESSIVE! 🙂
- last but not least https://github.com/amethyst/amethyst
events?
tools:
there is actually a web based editor but it has no breakpoints or step debugging
might also be interesting: multiplayer online IDE 🙂 https://replit.com/
about: why rust?
hate loading times? rust is as C++ fast and unfortunately not easier to program than “user friendly” as C++
(from src): Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrated with other languages.
-
Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.
-
Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).
why the name?
why the dirty name? usually users associate rust with metal that is broken down by oxygen into not-so-usefull dirt
“named it Rust, after a group of remarkably hardy fungi that are, he says, “over-engineered for survival”” (src)
About the original compiler author:
Graydon Hoare quit Mozilla and worked for the payment network, Stellar building a distributed transaction processor for a year and a half. [undefined] In early 2016, he received a call from Apple Inc to work on Swift (programming language) (src everipedia.org) (Wiki)
- “think safety is improving in some ways (including, sure, deployment of safer languages; though many other technical measures also help) but in other ways, we’re just treading water, or getting worse.”
- “Partly this is because we keep building more and more complex new computing systems: complexity beyond comprehension means we often can’t even define safety, much less build mechanisms that enforce it.”
- “And partly we just have such a massive backlog of existing incorrect software in the field that computers really only continue to function on a day-to-day basis with extensive human supervision, on-call ops teams, tech-support teams and maintenance coders and so forth.”
- “To say nothing of bad actors: there’s so much vulnerable software in the field that they can always find an exploit.”
- “Like much of the legacy of the 20th century, there’s just a tremendous mess in software that’s going to take generations to clean up, assuming humanity even survives that long”
- “Rust rewrites of C or C++ code can work if there’s sufficient motive and budget, and if they’re otherwise appropriate to the technical context. But that’s a lot of if’s. Rewriting can also be focused, partial, one library or subsystem at a time. The various modules of Firefox being rewritten in Rust are a case in point: it’s now a hybrid C++-and-Rust program” (src: thenewstack.io)
= so UNIX KISS IT! 🙂
links:
- https://gamefromscratch.com/rust-game-development-in-2022/
- NPC: https://en.wikipedia.org/wiki/Non-player_character (basically AI)
- https://dwaves.de/2021/12/27/rust-dev-lang-how-to-view-onboard-html-based-documentation-man-page-the-rust-standard-library-need-a-rust-ebook/
- https://dwaves.de/2021/07/24/how-to-step-debug-debugging-rust-in-vim-8-1/
- https://dwaves.de/2019/12/11/gnu-linux-debian-10-11-12-how-to-setup-rust-compiler-rusct-howto-getting-started-hello-world/
- https://dwaves.de/2019/09/27/compile-rust-hello-world-for-arm7/
- https://doc.rust-lang.org/cargo/getting-started/first-steps.html
- https://blog.logrocket.com/comparing-rust-ides-intellij-idea-vs-code-more/
liked this article?
- only together we can create a truly free world
- plz support dwaves to keep it up & running!
- (yes the info on the internet is (mostly) free but beer is still not free (still have to work on that))
- really really hate advertisement
- contribute: whenever a solution was found, blog about it for others to find!
- talk about, recommend & link to this blog and articles
- thanks to all who contribute!
