Hacker GitHub

← All repos

jameysharp/corrode

View on GitHub ↗ ★ 2,186 Haskell

C to Rust translator

32 mentions on Hacker News by 27 people: 3 stories, 29 comments · first 2016-07-04 · latest 2025-11-03

Mentions per year 32 mentions · busiest year 2017 (15)
20082026
  1. …to be working on hope. https://gitlab.com/citrus-rs/citrus/-/tree/master/tests?ref_... - Corrode: https://github.com/jameysharp/corrode Written in Haskel, not in Rust as others, have potential, since they utilize csmith for testing.But…
    comment by kant2002 · 2025-11-03 · in Automatically Translating C to Rust
  2. There was also https://github.com/jameysharp/corrode
  3. Back in the day there was also Corrode: https://github.com/jameysharp/corrode Discussed here: https://news.ycombinator.com/item?id=12056230
    comment by rgovostes · 2022-02-02 · in C2rust: Transpile C to Rust
  4. There is also https://github.com/jameysharp/corrode I have not used it, but I doubt it's possible to translate C into idiomatic Rust mechanically.
  5. …has for Rust (e.g. C2Rust [0], Corrode [1])? [0] https://www.github.com/immunant/c2rust [1] https://www.github.com/jameysharp/corrode
    comment by dataking · 2019-07-02 · in D as a C Replacement
  6. …undoubtedly they would have an easier time if Rust was designed in the first place for conversion. https://github.com/jameysharp/corrode So Checked C seems like a great idea to me. I've noticed that most programmers seem to wildly…
    comment by chubot · 2018-09-09 · in Checked C: Making C Safer by Extension
  7. How’s this compare to https://github.com/jameysharp/corrode
    comment by m0meni · 2018-06-23 · in C2Rust: translate C into Rust code
  8. …allocator is needed. I also found that "rewriting in safe rust from C" was made easy by corrode https://github.com/jameysharp/corrode since C and rust can be interface compatible, it's easy to go one file at a time and turn it into working…
    comment by daniel_rh · 2017-08-01 · in Rust: Not So Great For Codec Implementing
  9. https://github.com/jameysharp/corrode/
  10. …(as in, it's like a blog post that you can compile and run, to give a slightly strained analogy). https://github.com/jameysharp/corrode webshit weekly actually "quoted" a previous HN comment of mine about it, in which I was falsely…
  11. https://github.com/jameysharp/corrode/blob/master/src/Langua... Corrode is absolutely incredible. This file is literate Haskell, which means there's more documentation than code (I guess), and it transforms C into Rust.
    comment by mrkgnao · 2017-04-06 · in Build Your Own Text Editor
  12. https://github.com/jameysharp/corrode
    comment by mrkgnao · 2017-03-30 · in Addendum to “Curl is C”
  13. For automated tools that can convert a C codebase to Rust, you're looking for is Corrode: https://github.com/jameysharp/corrode Last I heard, Corrode can convert many C syntactic structures into their Rust equivalents, they usually compile…
    comment by thristian · 2017-03-30 · in Addendum to “Curl is C”
  14. https://github.com/jameysharp/corrode is a C-to-Rust translator. It won’t be idiomatic Rust, though; not by a long shot. (Rust is much more restrictive in what it allows, for reasons of safety, though more expressive .) And it may not be…
    comment by chrismorgan · 2017-03-30 · in Addendum to “Curl is C”
  15. C-to-Rust converter is written ... in Haskell https://github.com/jameysharp/corrode
  16. ▲ 2
    “This module translates C to Rust”
    story by mrkgnao · 2017-02-03 · 0 comments
  17. I didn't run into the Arrays issue. This issue I filed, has a list of all the things I hit: https://github.com/jameysharp/corrode/issues/109 Most of the issues I ran into were not exactly with the corrode tool, but with compiler options,…
    comment by bluejekyll · 2017-01-29 · in A Guide to Porting C/C++ to Rust
  18. …itself states that it's not expected to work on "real" code, and there are open issues like this: https://github.com/jameysharp/corrode/issues/52 titled "Arrays are broken!" in which Corrode's developer wrote half a year ago: "The current…
    comment by tom_mellior · 2017-01-29 · in A Guide to Porting C/C++ to Rust
  19. …a JavaScript to Rust transpiler in Haskell, I guess this is a takeoff on the C-to-Rust translator ( https://github.com/jameysharp/corrode )? (and all the compile-to-JS projects such as GWT, emscripten etc.). But those have actual use…
  20. …difficult to approach (how would you start building this?), and doesn't need frequent refactoring. https://github.com/jameysharp/corrode/blob/master/src/Langua...
  21. https://github.com/jameysharp/corrode/
  22. …would just have static checks for all that. There is a C to UNSAFE Rust transpiler, though: https://github.com/jameysharp/corrode .
    comment by the_duke · 2017-01-03 · in Getting Past C
  23. exactly the goal: https://github.com/jameysharp/corrode
    comment by tupshin · 2016-12-16 · in Rust required to build Gecko
  24. …get that fixed; chances are if you want that architecture, someone else using LLVM does too. [1]: https://github.com/jameysharp/corrode
    comment by pcwalton · 2016-11-04 · in BearSSL – Smaller SSL/TLS
  25. Did you see this post about a partial C to Rust transpiler written in literal Haskell? https://github.com/jameysharp/corrode/blob/master/src/Langua...
  26. …analysis libraries already. If you re-wrote in in rust it'd be just as fast. Hell this guy ( https://github.com/jameysharp/corrode ) wrote a rust-c source-to-source compiler in literate haskell. Also in a few years servo will be a full…
    comment by rat87 · 2016-07-20 · in Memory management in C programs (2014)
  27. …reading, it looks like they discuss what they'd have to do to move `main` to its correct Rust type: https://github.com/jameysharp/corrode/issues/20
  28. …not necessary, we can let the Rust compiler warn about it." (Edit2: cleaned up and numbered) [1] https://github.com/jameysharp/corrode#design-principles
  29. …The main logic of this project is in a literate haskell file you can easily read on GitHub. https://github.com/jameysharp/corrode/blob/master/src/Langua... I wonder how readable is to someone who isn't experienced in Haskell. To me reads…
  30. …This is just amazing. The most important part of the source is highly educative literate haskell: https://github.com/jameysharp/corrode/blob/master/src/Langua...
  31. ▲ 387
    Corrode: C to Rust translator written in Haskell
    story by adamnemecek · 2016-07-08 · 122 comments
  32. ▲ 19
    Corrode: Automatic semantics-preserving translation from C to Rust
    story by JoshTriplett · 2016-07-04 · 1 comment