rustc_codegen_cranelift
veloren
Our great sponsors
rustc_codegen_cranelift | veloren | |
---|---|---|
44 | 60 | |
1,438 | - | |
5.5% | - | |
9.7 | - | |
2 days ago | - | |
Rust | ||
Apache License 2.0 | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rustc_codegen_cranelift
-
Cranelift code generation comes to Rust
Windows is supported. See https://github.com/rust-lang/rustc_codegen_cranelift/issues/....
- What part of Rust compilation is the bottleneck?
-
A Guide to Undefined Behavior in C and C++
> When this happens, it seems like it'll be possible to get the LLVM bits out of the bootstrap process and lead to a fully self-hosted Rust.
What do you mean by "when this happens"? GP's point is that this has already happened: the Cranelift backend is feature-complete from the perspective of the language [0], except for inline assembly and unwinding on panic. It was merged into the upstream compiler in 2020 [1], and a compiler built with only the Cranelift backend is perfectly capable of building another compiler. LLVM hasn't been a necessary component of the Rust compiler for quite some time.
[0] https://github.com/bjorn3/rustc_codegen_cranelift
[1] https://github.com/rust-lang/rust/pull/77975
-
What are some stuff that Rust isn't good at?
Note that the Cranelift codegen will eventually become standard for debug builds to speed them up.
-
Rust port of B3 from WebKit, LLVM-like backend
Maybe one day we'll have rustc b3 backend like what they did with Cranelift
-
Any alternate Rust compilers?
Additionally, there is gcc codegen for rustc (https://github.com/rust-lang/rustc_codegen_gcc), which is not a compiler per se, but an alternative code generator, with more architectures supported and other nice things. It's also coming along, but there's still a lot of work to do there too. There's also Cranelift codegen (https://github.com/bjorn3/rustc_codegen_cranelift), which is designed to make debug builds faster, but this is not as exciting/useful as the other 2.
-
Capsules, reactive state, and HSR: Perseus v0.4.0 goes stable!
For the instant reloading, that's in Sycamore, so you should speak to its devs, but as for the alternative compiler backend, it's not my project, but it uses Cranelift and works pretty well! See https://github.com/bjorn3/rustc_codegen_cranelift for details.
- Security Engineer looking for ways to see if any of my tasks could slowly be ported to Rust or should I just stick with Python.
- Rust is now officially supported on some Infineon microcontrollers! (more to come later this year)
-
Improving Rust compile times to enable adoption of memory safety
The more immediate goal of "distribute the cranelift backend as a rustup component" has been making good progress and seems like it might happen relatively soon https://github.com/bjorn3/rustc_codegen_cranelift/milestone/...
veloren
-
Ask HN: Is Scratch a good tool for teaching coding?
I know that code.org's lessons have a "view the real code" box, helping to ease one into the "here's how to think about problems and structure, but here's the actual JavaScript that underpins it". If you haven't tried that, it may help
I also recently learned that Brilliant uses block-based lessons, too, so there's obviously some there-there
I would guess that a lot of the problem is one of actualization: how does one go from solving "someone else's problems" to one of realizing their own ideas. Based on what I've seen, I'd guess that a Minecraft mod port that maps blockly down into lua would go a long way toward "do some things that materialize change in an environment that is familiar." I haven't used Roblox, but I believe it's similar so if they have a programming language, same-same. I started to suggest using Valoren <https://gitlab.com/veloren/veloren#get-veloren> since it's actual FOSS and thus would be much, much easier to integrate into, but I haven't played it in order to know how much uncanny-valley it would have with any preexisting Minecraft experience
- Veloren
-
What’s an actual use case for Rust
Games (Veloren, or check out this website for updates on other games being developed in Rust)
-
Veloren Future?
Firstly, it's open-source. That means that all code associated with the project is freely available (it's right here!) and you're welcome to download, modify, recompile, and make changes to it as you wish. In fact, there have already been a few forks of the project that added new items, abilities, bosses, and other such things. Veloren is also released under GPL v3, a license that pretty much ensures that the code will always be open-source, meaning that anybody can take the existing code and remix it, mod it, or otherwise build upon it.
-
New license for veloren assets?
I found this on the gitlab https://gitlab.com/veloren/veloren/-/issues/1755
-
Veloren won't launch on Fedora 37 with amdgpu Graphics.
sounds like a wayland issue, can you check our https://gitlab.com/veloren/veloren/-/issues list and if you dont find this error, you could help us by opening a bug and giving it a good description: Maybe there is even a workaround in our book:
- Could something like this be implemented in Veloren? I'm not a Dev but this video by LTT makes Async look promising
-
C Isn't a Programming Language Anymore
Trying to replace C with something like Rust, is essentially saying that we should rewrite all kernels in Rust. C is the common language because it talks to the kernel, which talks to the hardware.
Forgetting how much would need to be replaced with objectively much slower code, Rust simply cannot do some things. You cannot always make absolute guarantees about memory safety for example when it comes to low-level programming. Sometimes to be fast, you have to make assumptions and take risks.
I am currently watching the Veloron game [1] as an example of how larger Rust projects may begin to look. I see something like this [2] and it doesn't look all dissimilar from C, just with a new syntax. Has writing this game eliminated all bugs? Nope [3]. Maybe there are less segfaults and bad memory management, but this was just one class of bugs.
[1] https://gitlab.com/veloren/veloren
[2] https://gitlab.com/veloren/veloren/-/blob/master/server/src/...
[3] https://gitlab.com/veloren/veloren/-/issues/?sort=closed_des...
-
Veloren is a multiplayer voxel RPG written in Rust
Oh dang, looks like it's open source too. licensed under GPLv3 - https://gitlab.com/veloren/veloren
-
Veloren Adventures! Spooky Level 5 Dungeon - Happy Halloween!
It's really amazing to see how Veloren has improved over the years. Makes me wonder what we'll see in the future. I was really surprised when I saw the train tracks merge request 😄
What are some alternatives?
wasmtime - A fast and secure runtime for WebAssembly
Airshipper - The official Veloren launcher! This repository is a mirror. Please submit all PRs and issues on our GitLab page: https://gitlab.com/veloren/airshipper
gccrs - GCC Front-End for Rust
bevy - A refreshingly simple data-driven game engine built in Rust
sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
veloren - An open world, open source voxel RPG inspired by Dwarf Fortress and Cube World. This repository is a mirror. Please submit all PRs and issues on our GitLab page.
mrustc - Alternative rust compiler (re-implementation)
wgpu-rs - Rust bindings to wgpu native library
cranelift-jit-demo - JIT compiler and runtime for a toy language, using Cranelift
gfx - [maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
tch-rs - Rust bindings for the C++ api of PyTorch.
watchtower - A process for automating Docker container base image updates.