HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
shuaimu
rusty-cpp
Rust2026–2026
shuaimu / rusty-cpp

rusty-cpp

Discover this repository through its Hacker News conversations.

3Distinct people
3Mentions
0Explicit recommenders
213GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A public description has not been verified.

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 8–Nov 15 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/15/2026, 2:04:58 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour3 dated mentions

Observed mentions: 2026-01-05 08:32:34 UTC to 2026-01-05 12:08:40 UTC.

0122026-01-05 08:00:00 UTC to 2026-01-05 09:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 commentsJan 5, 08:002026-01-05 09:00:00 UTC to 2026-01-05 10:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-05 10:00:00 UTC to 2026-01-05 11:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 commentsJan 5, 10:002026-01-05 11:00:00 UTC to 2026-01-05 12:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2026-01-05 12:00:00 UTC to 2026-01-05 13:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsJan 5, 12:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Jan 5, 08:002026-01-05 08:00:00 UTC2026-01-05 09:00:00 UTC202
Jan 5, 09:002026-01-05 09:00:00 UTC2026-01-05 10:00:00 UTC000
Jan 5, 10:002026-01-05 10:00:00 UTC2026-01-05 11:00:00 UTC000
Jan 5, 11:002026-01-05 11:00:00 UTC2026-01-05 12:00:00 UTC000
Jan 5, 12:002026-01-05 12:00:00 UTC2026-01-05 13:00:00 UTC101

What Hacker News says

2 sources
> The article doesn't show any function lifetime annotations, only @safe and @unsafe. It does, but it's under the "External Annotations" section: // External annotations go in a header file // @external: { // strlen: [safe, (const char* str) -> owned] // strcpy: [unsafe, (char* dest, const char* src) -> char*] // strchr: [safe, (const char* str, int c) -> const char* where str: 'a, return: 'a] // // // Third-party libraries work the same way // sqlite3_column_text: [safe, (sqlite3_stmt* stmt, int col) -> const char* where stmt: 'a, return: 'a] // nlohmann::json::parse: [safe, (const string& s) -> owned json] // } > The where clause specifies lifetime relationships—like where stmt: 'a, return: 'a means the returned pointer lives as long as the statement handle. This lets the analyzer cat
Read the rest
ch dangling pointers from external APIs. The GitHub repo also has an annotations guide with some more info [0]. The general syntax appears to be: // @lifetime: (parameters) -> return_type where constraints [0]: https://github.com/shuaimu/rusty-cpp/blob/main/docs/annotati...
In Building a Rust-style static analyzer for C++ with AI
Very cool project! Always happy to see more work around static analysis. However, looking at the recent commits it doesn't quite look like the most solid foundation: https://github.com/shuaimu/rusty-cpp/commit/480491121ef9efec... fn is_interior_mutability_type(type_name: &str) -> bool { type_name.starts_with("rusty::Cell<") || type_name.starts_with("Cell<") || type_name.starts_with("rusty::RefCell<") || type_name.starts_with("RefCell<") || // Also check for std::atomic which has interior mutability type_name.starts_with("std::atomic<") || type_name.starts_with("atomic<") } … which then 30 minutes later is being removed again because it turns out to be completely dead code: https://github.com/shuaimu/rusty-cpp/commit/84aae5eff72bb450... There's also quite a lot of dead code.
Read the rest
All of these warnings are around unused variable, functions, structs, fields: warning: `rusty-cpp` (bin "rusty-cpp-checker") generated 90 warnings (44 duplicates)
In Building a Rust-style static analyzer for C++ with AI

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.