glguy
Re:Last remaining 1000+ user community channel seized by Freenode staff
on Monday June 14, 2021 @01:14PM (#27505218)
LibraIRC is something else. You want libera.chat
Re:C2Rust: translate C into Rust code
on Saturday June 23, 2018 @02:40PM (#17382692)
There are definitely ways to overwhelm the translator web demo. I know I'm not clever enough to block all of them. I put the page up to give people a way to try out the translator without having to build it. Please don't kill it :-)
Re:C2Rust: translate C into Rust code
on Saturday June 23, 2018 @01:49PM (#17382383)
We've only started pondering what subset of C++ we might be able to support in future work for the project. Currently only C is in scope. That's an obvious next goal but it seems quite a bit more daunting!
Re:C2Rust: translate C into Rust code
on Saturday June 23, 2018 @01:28PM (#17382292)
That's right. The translator just tries to preserve the original code. Refactoring things into proper, idiomatic Rust is the next step. The hope is that it will be easier to get the translation correct transforming unsafe Rust to safe Rust than having to go from C to safe Rust.
Re:C2Rust: translate C into Rust code
on Saturday June 23, 2018 @01:04PM (#17382167)
Fortunately, once you start refactoring the Rust to take advantage of the functionality that doesn't exist in C (like slices, iterators, etc), things start to look much cleaner.
Translating the code into ugly, unsafe Rust is intended to only be the first step. We're working on tools to help with that refactoring process, too.
Re:C2Rust: translate C into Rust code
on Saturday June 23, 2018 @01:00PM (#17382148)
(I'm one of the authors of this tool)
Our original plan was to simply work to improve Corrode. We eventually decided to to implement a new tool that uses Clang as the frontend in order to get more reliable parsing, preprocessing, and type checking of the input C code. The result is that we are able to support more code and C extensions than we thought we'd be able to building on top of the good work of the Corrode project.