@rightfold to prevent having to use a std::map and do O(n log n) compacting sweep, what I do now is that after copying an object to the new heap I store its new location in the old location, then do another walk updating all pointers before releasing the old memory
So, I have been searching and searching for c++ programming Ideas. I get everything from cout to structures. I've already made tic-tac-toe against an A.I. that wins or at least ties every time it goes first and wins, loses, or ties when you do depending on how good you are. I've made a near impos...
> One day, a programmer's wife asks a programmer to go to the store and by 2 dozen eggs, and if there's any cookies, by 10. The programmer came home with 10 dozen eggs.
@milleniumbug Oh, I thought it was a tagged ptr, in that you could add a string tag to an allocation to be retrieved later for debugging or analyzing memory usage, like "oh this 2MB buffer is a XYZ, and this one is ..."
The U.S. wants Greece to stay in the Euro & the pope said that 'Poor are sacrificed on the altar of money' but neither the U.S. or Vatican intent to fork out bail out money to rescue Greece.
Definitely. I'm working on image acquisition system (phd, in physics/optics) and where I pass around pointers. But then the camera sometimes dies or silently fails so I need to count my pointers. For failure detection I need to understand where all the pointers are, on the other hand for multiprocessing I need to make sure that pointers are only held by one queue. The thing is a nightmare, I wish somebody wrote some articles about how to manage task-parralel queues with some error tolerance.
@StackedCrooked Mhmm. "Eastern Coast." Do they have a Western Coast as well?
@uselesschien I was surprised to learn that I can star a message in the transcript of a room I have never been in. Sometimes this chat is just strange.
user1804599
@sehe the bars represent threads.
user1804599
Concurrency is an important aspect and concurrency without threads is an awful model.
@sbi well... I guess you could could argue it has a 'east' 'north east' and 'south east' coast... it's all the one coast... but subtly different facings
@Griwes Shrug. I just looked at our Jenkins. There's probably 50 tasks on its front page. From what I understand from our infrastructure engineer, she isn't even making them in the UI anymore, but they are made up on the go from some scripts in some language or other. Still, I don't think I have ever looked at Jenkin's under-the-hood XML.
@Xeo Yeah, same here - and thankfully we've migrated one of the projects to Teamcity already, because sometimes loading the main Jenkins site took ~30 seconds.
o_0 I think for some reason the two test suites were run in parallel... against the same server... this is going to make for some very interesting to read logs
@thecoshman Making sure developers didn't fuck up, or trying to figure out what they fucked up without having to manually run all tests (...which does take a while. These aren't only unit tests, mind you).
Nun is the fourteenth letter of the Semitic abjads, including Phoenician Nūn , Hebrew Nun נ, Aramaic Nun , Syriac Nūn ܢܢ, and Arabic Nūn ن (in abjadi order). It is the third letter in Thaana (ނ), pronounced as "noonu".
Its sound value is [n].
The Phoenician letter gave rise to the Greek nu (Ν), Etruscan , Latin N, and Cyrillic Н.
== Origins ==
Nun is believed to be derived from an Egyptian hieroglyph of a snake (the Hebrew word for snake, nachash begins with a Nun and snake in Aramaic is nun) or eel. Some have hypothesized a hieroglyph of fish in water as its origin (in Arabic, nūn means large...
I was asked by a colleague how to capture a unique pointer into a lambda in VS2013 so I suggested the std::bind workaround. I was surprised I had to take the unique pointer by lvalue reference in the lambda
another option is using a shared pointer to a unique pointer but meh
std::bind works fine with move-only types. However it creates a move-only functor in the process. std::function requires a copy constructible functor. It sounds like boost::asio does too.
When you call the move-only bind functor, it will pass its bound arguments as lvalues to the target opera...
> When you call the move-only bind functor, it will pass its bound arguments as lvalues to the target operator()
Aaand. Even if you are in "god mode", full cheats enabled, the wind is right and no files are magically in use, then still your loop has the obvious race-condition (when files are created/modified after/during iteratoion) — sehe6 secs ago
user1804599
@AndyProwl What if you make the function to bind to take a reference to a unique pointer?