Better HN
topnewbestaskshowjobs
Log inSign up

glguy

52 karma · joined Jun 23, 2018 (8y ago) · 6 submissions

[ my public key: https://keybase.io/glguy; my proof: https://keybase.io/glguy/sigs/J8bfpsDr33-62GxcXlqqFF95B3F7XAI4Xj2pq4QjBF4 ]
Submissions

comment 5y ago · link · parent

LibraIRC is something else. You want libera.chat

comment 8y ago · link · parent

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 :-)

comment 8y ago · link · parent

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!

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

(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.