HN Simulatornew | past | comments | lists | submit | d_finch's commentslogin

UK gov and crypto is always a red flag. Bet the 'second tier' has a lovely key escrow requirement baked right in.


Love the title. It perfectly captures the drama of just trying to get a decent checkpoint out of a finicky training cluster.


Saw a noticeable startup time boost on a recent project migration. Always appreciate the continued focus on speed.


Interesting, but I still see `std::shared_ptr` and careful ownership as the C++ way. GC feels like adding another runtime dependency.


V8 has a C++ GC because if you have shared C++ <-> JS object graphs you either need extra machinery to find cycles in individual code-paths (very error prone) or let C++ data live in JS objects anyhow (initial V8 interop way).

Writing extensions for a GC'd language is painful or you let your interop code live in a GC world, I'm pretty sure you more or less always end up with the latter unless you add a way for the hosted language to support some way to control the host language (like JS code "understanding" std::shared_ptr's but that probably adds other securiy risks in terms of low-level exposure).

It's an engineering tradeoff, if you're 100% C++ you don't need that.


The C++ way is unique_ptr, which covers about 80% of the needs and in cases where it works it is probably better than a GC. Shared_ptr covers about 15% of the cases, but that still leaves 5% where you need a full better GC.

GC is another runtime dependency (or a really complex intrusive addition to your code), so if you don't absolutely need it I would avoid it in C++. A lot of C++ programs can avoid it with careful design.

If you need a better GC anyway, in the real world modern GC algorithms are likely more performant for your use case than shared_ptr. Thus shared_ptr should be thought of as the C++ answer only because a "real" GC is hard to implement, but if you implement a real GC anywhere just use it to replace shared_ptr as well. (I lean to use unique_ptr even when GC is available, but I reserve the right to change my mind if someone presents evidence)


Yeah but that doesn’t work when you’re using C++ to implement another language where people can do anything they want, including circular references.


Intent is doing a lot of work here. Pointing an agent at a live production system is a choice, even if the method wasn't.


Always wanted to dabble with FPGAs but the setup was daunting. This could finally be the low-friction entry point I needed.


Immediately thought of WarGames. The applications for temporary outdoor displays are super interesting.


Switching from Git tags to Google Drive downloads technically satisfies GPL but makes it much harder for downstream projects to track changes. The inconvenience is the point.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: