« first day (3046 days earlier)      last day (1885 days later) » 

12:06 AM
Thank you!
 
12:19 AM
Just noticed the label on the bottle, at least the story is starting to get some media coverage
 
 
2 hours later…
2:18 AM
@Mikhail If you know the formula, the duration and there is no random variable in the formula, inversion should be straight forward. If you lack such information, process might be tricky.
 
2:55 AM
I wonder how many A.I. startups end up like Theranos. The accuracy of machine learning is simply not good enough for most of the applications.
To be honest, google search is mostly imperfect and getting more so everyday IMHO because of so many people gaming its search algorithm. But since no one is paying for the service as long as search engine is concerned, I guess they don't have to worry about litigations .
Also at this event, I saw some pawns chasing after hedge funds because this new 'bank' was trying to get fund to meet the $50 million required to hold a banking license. Of course they didn't tell me this, I inferred this from all the information during the event and on the internet afterwards.
Nowadays startups are very little to do with real innovation, more about making money. Real innovation is still driven by universities and military.
This 'new bank' calls them an innovation, because they have no physical office and offer entire services online. So far, they have raised more than half of the capital required. Banks are like casinos, given enough clients, your chance of making money is certain (before paying out wages and forking out everyday costs).
 
3:20 AM
@TelKitty then also consider that not everyone is getting the same search results
I heard that one guy did a test and had his friends search Egypt, some people just got the vacation folders, others got news about the unrest going on at the time
 
3:32 AM
@ratchetfreak IMHO, the search results returned are often related to most recent events, but a lot of the times, people are just searching for general knowledge, which is lacking in the search results.
 
or just a lack of people actually making articles with the general knowledge and instead making the newsy articles
 
News are not exactly the true knowledge, true knowledge needs to stand the test of time.
 
 
5 hours later…
9:03 AM
My friend's cute fur babies. I need to visit her more.
 
9:26 AM
I have this feeling, if Marie Kondo tries to tidy up a professor's study or a scientist's lab, she's going to get chased out by the owner holding a weapon.
A lot of highly intelligent messy people actually have a mental map of where everything is. Constantly tidying up is extremely inefficient - unless you have photographic memory, you will constantly be looking for your things.
For an efficient person who process a lot of things, one would organize items in the order of how important and how urgent the item is, not how tiny the collection is.
 
9:50 AM
 
 
2 hours later…
11:57 AM
Hi Everyone!
I'm lunching std::async tasks with `std::launch::async` in a loop, so I would expect it to use one thread per iteration (newly spawned or reused from the thread pool)
I'd like it to use all possible cores my cpu has

instead it only launches a single thread at a time and waits with the next one until the previous is done
could you please give me some hints how to approach this problem?
 
 
2 hours later…
1:59 PM
@wklm Implementation defined
 
2:14 PM
Hi guys
I have a quick question I can't find an answer for
in template definitions
is there any advantage in defining mehtods outside the class definition?
(i.e. using the scope operator?)
Since templates are inline by definition and we are forced to put the implementation together with the definition I can't see any advantage
but only disadvantages
 
 
1 hour later…
3:21 PM
@Aurelius it used to be that if they were outside the definition the compiler was free to not include them in the final compiled result IIRC
not sure if that's still the case
 
4:18 PM
@wklm you'll want to learn about the return value (not just its type) of std::async
 
std::async is IIRC useless by standard
 
@Mgetz for all its faults it still returns immediately if you request it
 
4:47 PM
@LucDanton yes, but IIRC it's not actually threadpool compatible
 
what are you telling me that for?
 
it was regarding the "useless by standard" part
 
it's 'useless' in the sense that it's of little to no use to anyone but it does remain functional, so it’s a fine object of (personal) study
on a more subjective note I think it’s a great lesson in API design, if you’re interested in that kind of things
 
5:39 PM
It's technically compatible with a threadpool but only if you can reset all of a thread's thread locals
 
user7659542
I feel like critical software apps shouldn't use multithreading. Assume, hypothetically, a worker thread encounters a segfault whilst polling another device for new data or some other non critical stuff.
 
user7659542
the segfault propagates to the entire process
 
user7659542
and that's where your airplane crashes
 
10:20 PM
I feel that you're wrong
multithreading is complex but a necessary evil
and in your example, you've used it for the wrong case anyway as it sounds like you want separate processes, not separate threads.
furthermore if your code segfaults on one thread, you're still bringing down the process
 
10:35 PM
@fredoverflow What's with the sad face in the code? You know, this sad face:
 
11:11 PM
More like he expressed an opinion held by a lot of the avionics industry. The underlying problem is that mulithreading introduces additional complexity. On the other hand you have to have some kind of parallelism as multiple systems need to be simultaneously running. So, you often get compartmentalization at the a higher level. You may have multiple systems but they aren't quite aware of each other and communicate with message passing rather than lets say condition_variable_notify().
Whats amusing here is that the systems can often fail, especially on startup, but are redundant to these "failures" in the sense that they will reboot. I think many people will be amused that some avionics systems "crash" hundreds of times before the system actually is operation.
 
dont you just love useful hints :)
 
11:32 PM
So, I'm thinking about the best design this kind of a system. I want a wrapper that will send an email when it detects that a child process has "crashed". One way is to have the child send a keep-alive signal, with the absence of the keep alive denoting a crash. I'm wondering if there is some other magic that can be done. For example, is there a way another process can catch the a segfault? Maybe catch SIGSEGV?
 
it can just wait on the process
 
I don't know what waiting on a process means
Are you taking about wait(), doesn't that wait until the process has completed? When windows has a segfalted process it often tries to bring up a debugger or some other nonsense, which blocks the process from completely terminating.
 
on linux there is the SIGCHLD signal that will notify when the child terminates
 
11:56 PM
kill pid
Linux has a straight forward way to kill all those zombie processes.
 

« first day (3046 days earlier)      last day (1885 days later) »