HNHacker News
TopNewBestAskShowJobs

vitaut

1,365 karma · joined May 12, 2014

Carbon-based open sourcerer, code necromancer and a former alien. Author of C++20 std::format and http://github.com/fmtlib/fmt. Opinions are not mine.
submissionscomments
vitaut··on Why should I have written ZeroMQ in C, not C++ (2012)
These are trivial issues compared to major safety and usability flaws inherited from C that I mentioned. BTW the C grammar is not context-free either. The compilation speed is mostly due to header system which is again a C heritage, not because the C++ grammar is undecidable. And template error messages are much better now in modern compilers such as Clang. As for the const, its semantics is the same as in C.
vitaut··on Why should I have written ZeroMQ in C, not C++ (2012)
Could you give an example?
vitaut··on Why should I have written ZeroMQ in C, not C++ (2012)
From my experience, if you need to write many exception handlers then you have a problem in your design as you are using exceptions where you should have used explicit control flow. There is nothing fundamentally wrong with the exceptions and they are used in most modern languages, not only C++.
vitaut··on Why should I have written ZeroMQ in C, not C++ (2012)
Actually avoiding C++ pitfalls is not that difficult as most of them come from C: manual memory management, macros, varargs, unsafe casts. In fact C++ provides safe alternatives to many of the unsafe C constructs, so if you stick to them you are fine.
vitaut··on C++ Kernel for Jupyter with Cling
Since the readme doesn't give much details, I recommend looking at the example: https://github.com/minrk/clingkernel/blob/master/cling.ipynb
vitaut··on The Pragmatic C++ Programmer
I think you are nitpicking here. There is a figure of speech called "hyperbole" which "the use of exaggeration as a rhetorical device" (http://en.wikipedia.org/wiki/Hyperbole).

BTW I don't understand why you refuse to comment on the original post. The author could clarify to you what exactly he meant.

vitaut··on The Pragmatic C++ Programmer
Calling C, C++ and Java "the most different programming languages in the world" is, of course, an exaggeration, but it's hard to disagree that the way you write idiomatic code in the three language is completely different.
vitaut··on How does D improve on C++17?
In many cases you don't need preprocessor for this even in C++. For example you can detect the availability of system functions using function overloading as described in http://zverovich.net/2015/03/13/reliable-detection-of-strerr...
vitaut··on What will C++17 be?
There is a package manager for C++ called Biicode: https://www.biicode.com/
vitaut··on Debian 8.0 Jessie has been released
Looks like everything went according to the plan =).
vitaut··on Today is Debian 8 release day
And here's the official announcement: https://bits.debian.org/2015/04/jessie-released.html
vitaut··on A minimal blog engine written in Go, compatible with Ghost themes
I'd say more: "X that noone uses, now written in language Y that noone uses".
vitaut··on The Time Needed to Write “Effective Modern C++”
When you develop something you consider not only the features of the language itself, but also the availability of libraries in this particular language. There is a large amount of high-quality C++ libraries and C++ can consume C libraries seamlessly. In most other languages you need to write often unsafe bindings to connect to C.

D simply doesn't have enough libraries to make it a viable choice except maybe for some niche area. For example, there are only 6k D repos on GitHub (https://github.com/search?utf8=%E2%9C%93&q=language%3AD&type...) compared with 340k C++ repos. Also any high-performance code (at least in the area I'm working) is written in C++ or, sometimes, in C.

← PreviousPage 5 of 5