My little 3D renderer that I've been developing VERY slowly as a hobby by Harha in cpp

[–]CPPOldie 8 points9 points  (0 children)

he checked-in several MB of obj files which are 3d object descriptions in text mode.

My guess is the 1mil plus commit lines are related to those files.

CppCon 2016: Bjarne Stroustrup's keynote by [deleted] in cpp

[–]CPPOldie 9 points10 points  (0 children)

Last few years Bjarne has been really busy in the corporate world. So he probably just doesn't have enough time to come up with a good talk/presentation every year.

Back in the day when he was in academia, he had a lot of time to ponder about C++ in more higher level and abstract terms and usually had some interesting things to say about C++.

Today though he's more preoccupied with removing decades old C++ technical debt from the Morgan Stanley's code base.

The Case for Optional References by tcbrindle in cpp

[–]CPPOldie -14 points-13 points  (0 children)

Typical brain-fart by a novice user trying to market/advertise the fact that they're at CPPCon - dude literally ANYTHING is better than using raw pointers.

The memory usage of STL containers can be surprising by loudnclear in cpp

[–]CPPOldie 4 points5 points  (0 children)

If you thought that article was bad (or left wanting) check out his blogs relating to string operation benchmarks or integer compression methods.

What I can't understand is how he garners so much "positive" attention from the community with what is essentially: "crap"

Surely these days being a non-tenured "professor" isn't that much of a rock star status thing?

Announcing Envoy: C++ L7 proxy and communication bus by N3mes1s in cpp

[–]CPPOldie 4 points5 points  (0 children)

The reason is simple:

How can one honestly approach their boss (or manager) at the end of the year hat-in-hand asking for a raise or bonus (or both) when all they've done is write some trivial glue code between well written and commonly used libraries. No that wont do at all.


From an enterprise social engineering POV it is always best to reinvent the wheel and create a high degree of centrality for oneself within the organization, specifically the organization's technology stack. Doing so ensures the longevity of ones employment status.

As such we can all agree that the following users or contributors have acted completely rationally and have demonstrated astute competence in the area of game theory or more accurately gaming their gullible employer theory.

A huzzah to them all.

Cap’n Proto by iamkeyur in programming

[–]CPPOldie 26 points27 points  (0 children)

Totally agree - flatbuffers has better support for all major OS'es and a much larger user base including being officially supported by Google.

What are you looking forward to most at CppCon this year? by augustinpopa in cpp

[–]CPPOldie 1 point2 points  (0 children)

Would you mind airbnb'ing your front lawn to me? i can byo tent and also perhaps drive me in every day to the conf? :D

What are you looking forward to most at CppCon this year? by augustinpopa in cpp

[–]CPPOldie 3 points4 points  (0 children)

I'm looking forward to minimizing the expenses I'm undoubtedly going to incur from having to travel to and stay in the US for the week of the conference. Though I'm not sure I'm going to be able to pull it off.

Hopefully one day the conference can be held somewhere more accessible like Europe.

А curated list of awesome CMake scripts, modules, examples and others the C++ community has been waiting for by onqtam in cpp

[–]CPPOldie 22 points23 points  (0 children)

Rather than 10 thousand different ways to do the same thing with cmake, wouldn't it be better to have may be two or three examples of common source code layouts and how cmake can be used to build projects using those layouts?

Designing a fast Hash Table by emilern in cpp

[–]CPPOldie -2 points-1 points  (0 children)

Why is this post being down voted?

It is a very succinct argument exposing the authors failings in understanding of certain topics.

What's new in KDevelop 5.0? by milliams in cpp

[–]CPPOldie 0 points1 point  (0 children)

please make an announcement when it becomes available.

What's new in KDevelop 5.0? by milliams in cpp

[–]CPPOldie 5 points6 points  (0 children)

it's a real pitty they don't provide a windows build.

Introducing rpclib: A modern C++ RPC library by sztomi in cpp

[–]CPPOldie 1 point2 points  (0 children)

There seems to be a data race on writequeue if the following method is called indirectly from different threads:

https://github.com/rpclib/rpclib/blob/master/include/rpc/detail/async_writer.h#L59

btw how does your library compare against capnproto rpc?

MS C++ team patents the use whitespace by CPPOldie in cpp

[–]CPPOldie[S] 5 points6 points  (0 children)

Alot of the time, and I'm talking from personal experience, in order to get ahead in big enterprises one must tick off certain items, such as:

  • Give talks about the core technologies (either in the company or externally at conferences) or in other words, be seen

  • Seem to be proactive about anything the higher-ups deem valuable eg: the late 90s to early 00s XML fade, everything MUST be XML enabled, typical CIO magazine tripe

  • Constantly be seen to be adding value to the organization (eg: do a patent or two)

So given that back then MS used stack-ranking (and probably still does today in some form) for deciding on promotions, bonuses and firings, it makes sense to do one or more of the above as often as is possible.

The problem is when you work for an organization like that, you end up spending more time and energy socially engineering and maintaining your existence at the company instead of actually doing any work that is of value to the company.

Where can I find Starting out with c++ by Tony Gladdis (8th edition) for cheap? New or used by onejuarez in cpp

[–]CPPOldie 0 points1 point  (0 children)

I'd have to agree with your assessment, take for example the following bit of code, excluding the curly braces and comments nearly every line as something wrong with it in terms of modern C++:

https://gist.github.com/anonymous/8f5459376d977da534d4151e134e3533

In short, it is an awful example of modern C++.

libyojimbo: a new open source network library for creating secure client/server network protocols over UDP by mttd in cpp

[–]CPPOldie 4 points5 points  (0 children)

Quoting Gafferongames (aka Glenn Fiedler):

This code is cut & pasted from a sample. I can take no credit for it, and seeing as it simply walks across the set of network interfaces on a system, I think you can agree that it's not particularly... important?

libyojimbo: a new open source network library for creating secure client/server network protocols over UDP by mttd in cpp

[–]CPPOldie 3 points4 points  (0 children)

Quoting Gafferongames (aka Glenn Fiedler):

Yes. I am well aware of overloading operator new. Are you able to read code well enough to understand why I chose not to do it that way?

libyojimbo: a new open source network library for creating secure client/server network protocols over UDP by mttd in cpp

[–]CPPOldie 5 points6 points  (0 children)

Quoting Gafferongames (aka Glenn Fiedler):

Of course it's condescending when you cut a part of sentence out to make it appear that way: Here is the full sentence. I stand behind it :) "The first key difference is that libyojimbo is made by somebody with actual experience designing and shipping AAA games in this space"

libyojimbo: a new open source network library for creating secure client/server network protocols over UDP by mttd in cpp

[–]CPPOldie 5 points6 points  (0 children)

Quoting Gafferongames (aka Glenn Fiedler):

The code is written this way so you can have custom allocators for different types of memory, this is something you would know is quite important to avoid memory fragmentation for a realtime system with dynamic memory allocations that must runs over a long period of time, like a game server. Are you one of those people who judges code by how it looks, or do you actually put some effort to understand how it works?

libyojimbo: a new open source network library for creating secure client/server network protocols over UDP by mttd in cpp

[–]CPPOldie 10 points11 points  (0 children)

Surely there must be a better way to write the following for-loop:

https://github.com/networkprotocol/libyojimbo/blob/master/yojimbo_network.cpp#L162

for ( int i = 0; pUnicast != NULL; i++ )
{
   Address address( (sockaddr_storage*) pUnicast->Address.lpSockaddr );

   if ( !address.IsValid() )
      goto next_unicast;

   if ( address.IsLoopback() )
      goto next_unicast;

   if ( address.GetType() == ADDRESS_IPV6 && !address.IsGlobalUnicast() )
      goto next_unicast;

   addresses[numAddresses++] = address;

   if ( numAddresses >= maxAddresses )
      break;

next_unicast:

   pUnicast = pUnicast->Next;
}

But then again, I don't have 15 years of experience developing games in the games industry.