Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pfusik
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
pfusik
5y ago
Please show us real code where std::unique_ptr vs std::shared_ptr makes a considerable difference (with benchmarks). A pointer indirection causes a cache miss? A shared_ptr can be optimized to unique_ptr if it's not copied. Not sure wh
2.
▲
by
pfusik
5y ago
I do not expect anyone to code a C or C++ library with no awareness of memory errors. This isn't a safe language on top of C++. If you target C++, you need to know it. On the other hand, if you only know "safe" languages and
3.
▲
by
pfusik
5y ago
Let's discuss it in https://github.com/pfusik/cito/issues/30
4.
▲
by
pfusik
5y ago
I'd like to rewrite cito to Ć at some point. One problem is that it's written in a fairly recent C#, so either Ć would need to catch up with two decades of C# development or the codebase be downgraded to an older language. And we
5.
▲
by
pfusik
5y ago
No. As much as I love LINQ in C#, I don't see it easily translating to all the target languages.
6.
▲
by
pfusik
5y ago
Yes, benchmarking is interesting. I will post benchmarks of different target languages.
7.
▲
by
pfusik
5y ago
> Are there any samples of the final sources? https://github.com/pfusik/cito/issues/21 I generally check-in just the Ć source and not the translations, but if you want a quick look at the generated C code,
8.
▲
by
pfusik
5y ago
Yes, you can make a memory leak when targetting C, C++ and Swift. Same as when you code in C, C++ and Swift directly.
9.
▲
by
pfusik
5y ago
There are still many Windows programs that default to current Code Page instead of UTF-8. I prefer to have the encoding explicit in the file contents rather than rely on some external file type configuration. This is just a loose recommenda