Messages - Jibz [ switch to compact view ]

Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 230next
66
General Software Discussion / Beyond Compare 20th anniversary
« on: October 03, 2016, 10:31 AM »
Just noticed Scooter Software (Beyond Compare) are having some events for the 20th anniversary of BC. There are some contests where you can win a t-shirt, and some discounts.

It also looks like you can get a free t-shirt if you've had a license key for more than 10 years (looks like I bought my first license back in 2004 .. time flies!).

http://www.scootersoftware.com/

67
General Software Discussion / Re: More Programming Blogs
« on: September 16, 2016, 04:07 AM »
Thanks for the link, looks interesting :Thmbsup:.

I have to note though, that the memory usage of most STL containers can't be too surprising.

List is a doubly linked list, so each node will contain two 8 byte pointers (on 64-bit) as well as the value. Set is probably a binary search tree, so it will need at least left and right pointers. unordered_set might be a hash-table of some sort, which will need to not be full in order to be efficient.

If you change his custom allocator's constructor to print some information:

Code: C++ [Select]
  1. MemoryCountingAllocator() : base() {
  2.     std::cout << "+ Allocator for " << __PRETTY_FUNCTION__
  3.               << ", with size " << sizeof(T) << std::endl;
  4. }

You get something like:

Displaying memory usage in bytes.
Filling data structures with 1024 elements and reporting the per element memory usage.
+ Allocator for MemoryCountingAllocator<unsigned int>::MemoryCountingAllocator() [T = unsigned int], with size 4
memory usage per element of a vector<uint32_t> : 4
+ Allocator for MemoryCountingAllocator<std::_List_node<unsigned int> >::MemoryCountingAllocator() [T = std::_List_node<unsigned int>], with size 24
memory usage per element of a list<uint32_t> : 24
+ Allocator for MemoryCountingAllocator<unsigned int>::MemoryCountingAllocator() [T = unsigned int], with size 4
memory usage per element of a deque<uint32_t> : 4.64062
+ Allocator for MemoryCountingAllocator<std::__detail::_Hash_node<unsigned int, false> >::MemoryCountingAllocator() [T = std::__detail::_Hash_node<unsigned int, false>], with size 16
memory usage per element of an unordered_set<uint32_t> : 29.6016
+ Allocator for MemoryCountingAllocator<std::_Rb_tree_node<unsigned int> >::MemoryCountingAllocator() [T = std::_Rb_tree_node<unsigned int>], with size 40
memory usage per element of a set<uint32_t> : 40

Which shows that list, set, and unordered_set are allocating nodes for their respective implementations and not just uint32_t.

68
Announce Your Software/Service/Product / Re: Cubiq - Beta Testers Wanted
« on: September 14, 2016, 03:07 AM »
Very nice cleanup of the graphics.

69
it appears you have to connect your steam account to your humble account

I thought this was the case for any steam purchases from Humble for a while now?

No, I still have a redeem button for each game that gives me an activation code for steam when I click it.

70
Just noting that it appears you have to connect your steam account to your humble account in order to get the game.

Not that this is necessarily a problem.

Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 230next
Go to full version