Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jguegant
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
jguegant
10y ago
At a higher level, one could use Gentoo to learn a lot about Linux internals with at least up-to-date packages and a "usable" distribution. One can experiment alot with Arch Linux too, if compiling is a burden.
32.
▲
by
jguegant
10y ago
If you are using a simple type (int, unit...), it could be optimized by the compiler. But if i is an iterator, you will create an unnecessary copy. Maybe a special treatment can be done for STL types. But in some other cases, expecting ++i&
33.
▲
by
jguegant
10y ago
"and especially in the domain of networked services, it is rapidly replacing C/C++." Rapidly? Where?
34.
▲
by
jguegant
10y ago
"Use of old style cast -> Well I'm old style, get over it." "By using Linux I haven't been limited by the lacking Microsoft C++ compilers only supporting a fraction of the language, but instead been able to use t
35.
▲
by
jguegant
10y ago
Here take your rustwin point! I really like the explicit capture of C++'s lambdas more than the implicit one in most other languages (C#, Java, Python...) where you easily ends-up with a closure not referencing the expected variable. S
36.
▲
by
jguegant
11y ago
I already saw such a colleague training hard at competitive programming, everyday. Yet, he wrote that kind of C++ code: ressource AClass::CopyACriticalRessource() { { std::lock l; } // Optimization for
37.
▲
by
jguegant
11y ago
Here starts the rustwin point.
38.
▲
by
jguegant
11y ago
You just reached the Rustwin's point of Hackernews: "As a discussion about C++ or C grows longer, the probability of a comparison involving Rust, as a savior, approaches 1. Afterwards any further discussion is considered null and
39.
▲
by
jguegant
11y ago
I yet didn't check the proposal for C++17 concepts, it seems to constantly change since C++11. Does it includes anything related to variadic templates? Anyway, you must have had a lot of fun with Jaakko Järvi as a teacher!
40.
▲
by
jguegant
11y ago
Haskell and C++ look like the "elite" combo these days, especially when it comes to meta-programming and FP as you said! It's funny how these two different communities are mixing. It feels like JavaScript and Ruby having a ch
41.
▲
by
jguegant
11y ago
I see it as a language in itself. Once done with the steep learning curve you start to observe repeated patterns and get it more easily. I do agree that the syntax is a huge drawback from now.
42.
▲
by
jguegant
11y ago
Yes definitely tricky. It might give a heart attack to some high frequency system designers! I will investigate this topic in future: maybe someone can come up with a spin-lock or lock free solution.
43.
▲
by
jguegant
11y ago
Thank your Sir! Sadly C++ drags a bad reputation from its earlier years. I wish my posts make C++ reachable and enjoyable for common guys like me.
44.
▲
by
jguegant
11y ago
As I explained in a commentary: As far as I understand gcc implementation. In a pseudo-code it would be: Mutex mutexes[SIZE_OF_POOL]; int hash(void* p) { ... } std::shared_ptr<t> atomic_load( const std::shared_ptr<t>* p ) {
45.
▲
An introduction to C++11's variadic templates: a thread-safe multi-type map
(jguegant.github.io)
2 points
by
jguegant
11y ago
|
0 comments
46.
▲
by
jguegant
11y ago
YCM is good for vim too: https://github.com/Valloric/YouCompleteMe It uses Clang for C/C++/Objective-C/Objective-C++ and exposes itself as a server usable from vim, emacs, sublime ...
47.
▲
by
jguegant
11y ago
I have no clue on how to generate a patch. But I did a fair amount of pull requests... It might be a generation problem.
48.
▲
by
jguegant
11y ago
I have to agree on this. I was surprised to see that a majority of the Rust community actually comes from some web-development domains. Especially when comparing Ruby, a highly flexible dynamic language, to Rust a language full of constrain
49.
▲
by
jguegant
11y ago
I am genuinely interested in this. Do you have any good reference about it?
50.
▲
by
jguegant
11y ago
It's not really a bug, but a feature standardised in C++11 to avoid unwanted failures with a trailing template somewhere in your code. But this feature was hijacked to do type checks! Maybe a better example would be a project that mix
51.
▲
by
jguegant
11y ago
Exactly! No matter the future of Rust, it has already shaken the programming community and motivated the other language designers to catch up in that domain. As to guess whether Rust will put down C++ forever and ever, is another hard quest
52.
▲
by
jguegant
11y ago
One can simply ditch the C++ backward compatible features into an "unsafe" part of C++. That's exactly what the talk given by Herb at the CppConf is trying to address. All the old unsafe part of C++ will trigger errors or war
53.
▲
C++'s SFINAE concept: compile-time introspection of a class
(jguegant.github.io)
72 points
by
jguegant
11y ago
|
11 comments
54.
▲
How to Interview a Programmer (2003)
(artima.com)
1 points
by
jguegant
11y ago
|
0 comments
55.
▲
by
jguegant
11y ago
The GDP per capita tab is really interesting if you want to estimate the life standard of each province. GDP itself is interesting for the "global power"/influence of each province over another one.
56.
▲
by
jguegant
11y ago
You can click on the tab: GDP per capita. And there you will see that Guangdong is as rich as kazakhstan.
57.
▲
by
jguegant
11y ago
Rust is kinda the Godwin's law of C++ threads these days.
58.
▲
Writing Good C++14 by Default – Video – Strict ownership, memory bounds
(youtube.com)
4 points
by
jguegant
11y ago
|
0 comments
59.
▲
by
jguegant
11y ago
One can do a ray tracer in O(1) at runtime in C++ ;) https://github.com/phresnel/metatrace Performance 100%! OCaml is a really clean language though!
60.
▲
PaperBack – How to store data on a single A4/Letter sheet
(ollydbg.de)
255 points
by
jguegant
11y ago
|
114 comments
More ›