Better HN
topnewbestaskshowjobs
Log inSign up

dataking

940 karma · joined Feb 12, 2013 (13y ago) · 212 submissions

leading a team building c2rust and migrating code to Rust.

more info at https://github.com/immunant and https://immunant.com

[ my public key: https://keybase.io/dataking; my proof: https://keybase.io/dataking/sigs/eI6etDfhwHsD2RqLtnR15ZXXPljxGygqee07pjAgAh4 ]

Submissions

comment 6y ago · link · parent

Except that scientists working on DARPA programs have also produced some technologies that have proven phenomenally useful to civilians such as the internet, computer mice, GPS, Siri, etc.

comment 6y ago · link · parent

Good question. I agree that this is a problem but I wonder whether it is mitigated somewhat by search engine customization. I think the set of people that are simultaneously interested in Sumerian (the product) and Sumerian (all things relating to Sumer, the people of Babylon, etc.) is relatively small I imagine?

183.

C2Rust: Merging C Headers into Rust Modules(immunant.com ↗)

2 points · by dataking · 6y ago · discuss

comment 7y ago · link · parent

C2Rust contributor here. You are right that the transpiler preserves all the weaknesses of C in its output. (Thanks for taking a look :)

C2Rust includes a refactoring tool that (in some, currently very limited circumstances) let us lift raw C pointers to Rust references (to slices) as a step towards using safe Rust constructs. This is obviously not something that can be 100% automated but our goal is to see how far we can reasonably go. Lots of work ahead but we 100% agree that some level of automation is highly desirable here.

comment 7y ago · link · parent

C2Rust contributor here. Yes, the conversion to unsafe is indeed only intended as a stepping stone for a rewrite into idiomatic Rust. In fact, we're hard at work on a refactoring tool that will (hopefully, one day) take some of the tedium out of that process by doing things such as identifying raw pointers that can be upgraded to proper Rust references.

186.

Improved C Variadics in Rust(immunant.com ↗)

4 points · by dataking · 7y ago · discuss

187.

C2Rust now on crates.io and supports C variadic functions(immunant.com ↗)

4 points · by dataking · 7y ago · discuss

comment 7y ago · link · parent

Scope guards seem like a really good idea. Has there been any effort to write a C to -betterC transpiler just like there has for Rust (e.g. C2Rust [0], Corrode [1])?

[0] https://www.github.com/immunant/c2rust

[1] https://www.github.com/jameysharp/corrode

comment 7y ago · link · parent

I don't think that is necessarily true. Rust has only one compiler (and I think adding a second one would be a huge effort with no clear win) yet it is developed by a community that is very welcoming to newcomers. At least, that's been my experience.

comment 7y ago · link · parent

> Finally, I have to say, I loved using Rust. It’s the least mental overhead I’ve had to maintain with a systems language, and it was a blast to use.

This mirrors my experience learning Rust while working on the C2Rust translator (HN discussion https://news.ycombinator.com/item?id=17381946). Great read!

comment 7y ago · link · parent

Expected to see Rust's approach mentioned since it occupies an interesting point in the design space, i.e., automatic memory management where lifetimes are (mostly) determined at compile-time vs. at run-time (RC and/or GC).

comment 7y ago · link · parent

Not really. It controls continuous integration builds (or Pipelines in Microsoft parlance) on Azure DevOps. You can test on Linux, macOS, and Windows hosts.

comment 8y ago · link · parent

> We've got to get more code out of C and into something with subscript checking. None of the kludges for fixing C work.

shameless plug: https://www.c2rust.com

comment 8y ago · link · parent

> I wonder if one could do things like compile with rustc and clang and somehow compare the LLVM IR for equivalence

The approach we've taken so far with C2Rust is to build compiler plugins that instrument C and Rust code so we can dynamically check their behavior when fed the same input.

https://github.com/immunant/c2rust/tree/master/cross-checks

comment 8y ago · link · parent

https://github.com/immunant/c2rust#acknowledgements-and-lice...

comment 8y ago · link · parent

(I'm one of the contributors to c2rust.)

As harpocrates mentioned, we've been taken by surprise at the interest in the c2rust project. We've updated the website to acknowledge the inspiration we drew from Jamey's Corrode translator. Our apologies for not including the acknowledgments from day one!

I want to take the chance to mention that c2rust goes beyond transpiling C to (unsafe) Rust. We anticipate that even in the limit, the automatically translated code will need human-in-the-loop refactoring to arrive at idiomatic Rust. Therefore, we provide compiler plugins that instrument the original C code, the new Rust code to check whether the two programs behave identically when fed the same inputs. The checking can either happen at runtime (using a multi-variant execution environment to run the processes side by side) or offline based on logging. We'd love to hear what everyone thinks of this aspect too.

197.

RAMPAGE AND GUARDION Vulnerabilities in modern phones enable unauthorized access(rampageattack.com ↗)

5 points · by dataking · 8y ago · 1 comment

comment 8y ago · link · parent

Thanks so much for letting me know; should be fixed now.

Edit: reflect resolved status of issue.

comment 8y ago · link · parent

Really cool to see companies willing to migrate to a more modern language. I'm part of a team working on C to Rust migration tools (partly inspired by the Corrode translator).

Shameless plug/pre-alpha demo: https://www.c2rust.com

Edit: missing word.

comment 8y ago · link · parent

Is your product DCAA compliant? As a small government contractor, my employer is required to use a DCAA compliant time tracking system. Anything that is not, is a non-starter. Please consider making the answer to compliance questions easy to find, even if you have to answer in the negative initially.

comment 8y ago · link · parent

Immunant | Irvine, CA | ONSITE | REMOTE (US-only) | www.immunant.com/page/jobs

Immunant is building systems security tools that prevent vulnerability exploits.

We are looking to fill the following full-time roles:

1) Compiler, linker, and loader expert. Deep knowledge of C/C++, and ELF as well as x86, and ARM/AArch64 machine code expected. Previous experience with compiler and linker development preferred.

2) Rust aficionado for language migration project. Familiarity with all things Rust expected. Maybe you've contributed to Rust already? Experience with language parsing, refactoring, analysis, and/or rewriting preferred.

Apply here: www.immunant.com/page/jobs

comment 9y ago · link · parent

Immunant | Irvine, CA | ONSITE | REMOTE (US-only) | www.immunant.com/page/jobs

Immunant is building systems security tools that prevent vulnerability exploits.

We are looking to fill the following full-time roles:

1) Compiler, linker, and loader expert. Deep knowledge of C/C++, and ELF as well as x86, and ARM/AArch64 machine code expected. Previous experience with compiler and linker development preferred.

2) Rust aficionado for language migration project. Familiarity with all things Rust expected. Maybe you've contributed to Rust already? Experience with language parsing, refactoring, analysis, and/or rewriting preferred.

comment 9y ago · link · parent

Immunant | Irvine, CA | ONSITE | REMOTE (US-only) | www.immunant.com/page/jobs

Immunant is building systems security tools that prevent vulnerability exploits.

We are looking to fill the following full-time roles:

1) Compiler, linker, and loader expert. Deep knowledge of C/C++, and ELF as well as x86, and ARM/AArch64 machine code expected. Previous experience with compiler and linker development preferred.

2) Rust aficionado for language migration project. Familiarity with all things Rust expected. Maybe you've contributed to Rust already? Experience with language parsing, refactoring, analysis, and/or rewriting preferred.

Apply here: www.immunant.com/page/jobs

comment 9y ago · link · parent

Immunant | Irvine, CA | ONSITE | REMOTE (US-only) | www.immunant.com/page/jobs

Immunant is building low-level security tools that prevent remote code execution.

We are looking to fill the following full-time roles:

1) Compiler, linker, and loader expert. Deep knowledge of C/C++, and ELF as well as x86, and ARM/AArch64 machine code expected. Previous experience with compiler and linker development preferred.

2) Rust afficionado for language migration project. Familiarity with all things Rust expected. Maybe you've contributed to Rust already? Experience with language parsing, refactoring, analysis, and/or rewriting preferred.

We're accepting interns too! Apply here: www.immunant.com/page/jobs

comment 9y ago · link · parent

Immunant, Inc. | Information Security Researchers, Systems Programmers | Irvine, CA | ONSITE INTERNS VISA

Immunant is developing better exploit mitigations. We are looking for an additional team member who is as excited about systems programming, compiler construction, information security research as we are.

More info at http://immunant.com/page/jobs/

comment 9y ago · link · parent

selfrando contributor here. it is correct that selfrando is intended as an improvement over ASLR by randomizing code at the function level (vs. module level). this improves resilience to information leaks somewhat, but with mitigations like these, there are no silver bullets.

selfrando github repo: https://github.com/immunant/selfrando feel free to open an issue or write us at team@immunant.com

cheers!

comment 9y ago · link · parent

http://blog.llvm.org/

208.

Tor Browser Integrates Tool to Fend Off Deanonymization Exploits(news.softpedia.com ↗)

8 points · by dataking · 10y ago · discuss

209.

Selfrando: Hardening Tor to Protect Users from FBI Hacking(motherboard.vice.com ↗)

10 points · by dataking · 10y ago · discuss

1
45678