« first day (3145 days earlier)      last day (1786 days later) » 

12:04 AM
My code is quickly becoming functor hell, where to protect resources, everything is a fucking functor
There is some way to use structured bindings to return a lock (lifetime) and the buffer, but I don't know enough C++ or alternatively it won't build on MSVC 2017.
 
you need to hold C++ by the horns with references and const otherwise it will start copying and mutating shit you never expected.
 
That is not the issue. The discussion is about how to enure that all accesses to a buffer go through a mutex. If threading wasn't a concern we'd just access the buffer.
 
there are mutex lock and unlock
 
Now, the question here is how to enforce that kind of behavior without explicit lock/unlock
 
12:23 AM
@Mikhail Yeah I did.
 
I don't think the way you are passing your lamdas in is correct
 
probably because I was too lazy to write the const and reference
 
Also, I haven't gotten to multi-threading yet. For Multithreading to be done right you need to learn to distribute workloads evenly. That's probably going to take me a month just to get to it.
 
don't tell me how to do my job :-)
 
@Mikhail you are for sure much smarter than me :-). But C++ has a lot of tooling and mastering them for me will take some time. A good solution requires knowing the tool and how best to model a solution around that tool. I'm not there yet unfortunately.
 
12:39 AM
No. In C++ you dig your own grave, the paradigmatic solution isn't given by the limitations of the language.
 
I've noticed that C++ gives you a lot of control and a lot of power. But it doesn't trust you with it, so it has a lot of conventions to help direct you in the right directions. I'm sure It can be master, it just requires time to learn the rules well.
 
Notice that many languages, for example Go, try to reduce the number of conventions
 
12:56 AM
I also found it makes me a better thinker, with respect to memory and how that data is represented and used. Just started using Visual Studio I love how you can see the bits and bites. This is a level of detail I wish I knew existed earlier. Go is cool too. but C++ is where it's at.
Also, performance is a real thing in C++. It's not some abstract thing based on some underlying assembler that's apt to change.
 
You will never be able to explain why it took you 5x longer to write the code, and why you can't hire a dev
Then, as my friends learned, you're going to get replaced by some guy in Poland/Ukraine, who works for $60,000
 
1:14 AM
That's what's been happening, there will always be someone somewhere willing to do the work for less, but companies are just exporting these skills outside the country. I don't think that's going to be happening anymore.
Also explaining it is part of the job. I am also trying to get better at that too.
I need to get better at telling jokes and mixing some humor into my explanations.
 
1:55 AM
You're wrong on this one. C++ isn't the language of first to market protoypes. Countries like the US are about innovation, which isn't done in C++.
 
2:34 AM
@Mikhail Whats the RGB of a tree? (I legit saw that somewhere as a quiestion)
 
2:57 AM
Underwhelming Navi reveal
I guess we'll know whats what in July
 
Still junk because AMD won't invest on the software side and make a CUDA compiler.
 
AMD is way too invested in OpenCL to do that
They would also be admitting defeat to Nvidia so to speak
 
But the real reason may be a lack of funds and technical expertise.
 
3:22 AM
Ryzen 9
More than 8 cores.
 
I,m a bit behind on the presentation
I'm going back and forth between it and OW so I can skip the boring bits
 
12 cores/24 threads (3.8 base, 4.6 boost, 105 W)
No 16?
 
Wuuuut all the leaked slides said 16 cores :(
 
@Borgleader yeah...
$500 for the 12 core.
Still no word on the 16 core.
July 7th release date.
So no 16 core.
 
Damn
I belive there was as 3950X in the leaked slides, and I dont see it here?
 
3:30 AM
I wonder if they're simply power limited for the 16 core. Or if they're just holding back to see what Intel does.
 
idk about power limited, they seem to be at a lower power point than Intel
maybe not for the 16 cores though
 
Power shouldn't matter. They can just lower the base clock speed while maintaining the same boost.
They have to be just trolling Intel at this point.
 
3:45 AM
@Mysticial Holy shit, that's cheap
 
I guess they might just be keeping it in their back pocket in case intel comes out swinging
but thats annoying because I was really looking forward to buying a 16 core CPU
so I'll be disappointed if they release it like 4-6 months after I buy say the 3900X
@EtiennedeMartel US, so about 1000$ CAD ;)
Actually :(
 
4:07 AM
60
Q: Employer demanding to see degree after poor code review

SingraToday I had a code review at a new position I started almost 3 weeks ago. I was assigned a task working with my company's own CMS and a senior dev was supposed to do the code review. My employer joined in during the review. While we were reviewing we came upon some sloppy mistakes on my end. Ne...

ouch
 
4:19 AM
@Borgleader They're either holding back to watch Intel or they trying to shift the demand curve to match their yields.
If you release a 16-core at launch, everybody is just gonna buy that instead. Now your demand is 100% for the 8-core die. And there's no way to get rid of all your 6-core dies unless they hold them until the R5 line.
The way to counter that is to raise the price of the 8-core die high enough to shift the demand back to the 12 core.
But that's just gonna piss people off.
The reason why Intel's 28-core Platinum chips are so expensive is because of yields. So Intel is pricing them high enough to shift the demand curve to match the yields.
 
I see
I guess the one advantage of going AMD this time is I can reasonably expect to be able to change CPU without buying a new mobo in 2-3 years
so possibly I can get a 16 core CPU "soon-ish"
At the end of the day, it's still gonna be a massive upgrade for me, I'd be going from:
4 core (8 HT) 3.4Ghz (3.9Ghz boost) CPU
to
 
>= 12
lol
 
12 core (24 HT) 3.8Ghz (4.6Ghz boost) CPU
 
If the 16 core thing does become a thing, I anticipate that the bandwidth bottleneck will be worse than the Intel HEDT 16-core even for AVX512 workloads.
 
Also their slides say 70MB total cache, but I'd love to know what the breakdown is
 
4:35 AM
@Borgleader That doesn't make a ton of sense. Why can't the boss just contact the university directly to get a confirmation that the person graduated?
For that matter, I lost my Masters degree certificate when I moved back to California. But any employer can easily just talk to the university.
That's kinda what background checks are for. Some universities may require that you sign off to allow them to tell the employer of your status, but that's not an issue.
 
@Mikhail you shouldn’t expose the lock, should you? after all, in the 'inverted' aka callback version the continuation doesn’t see it
other than that, you have the right idea
 
@Borgleader "I can't show them my degree. It's under audit!"
 
@Mysticial idk maybe they never asked during recruitment?
 
@Borgleader he should show the code being scrutinized
 
that would be amateurish af but i guess its possible
 
4:44 AM
@Borgleader My last job hires a professional background checker to check all their new hires.
 
In financial trading I'm not surprised
too much money involved
 
@LucDanton I'm thinking it looks something like [buffer_reference,unique_lock] = buffer_holder.get_buffer()
but its too hard to write so instead I'll use a continuation :-(
I believe a similar paradigm for some error code or return code library caused a shit storm a few years ago.
 
 
1 hour later…
6:13 AM
@Mikhail I share your disappointment, I’ve griped about the same before
@Mikhail could it be you are thinking of Google Go’s error reporting convention?
if so, it’s only really a superficial similarity I would say
 
6:50 AM
@LucDanton It was on CppCast a year or two back. Maybe Boost Outcome? Where you get the .value() and if you don't service the error code, the result object (with either result or error) throws on destruction?
 
that rings a bell, but I stayed out of these discussions so I can’t be of help
 
7:08 AM
Feb 14 '18 2:11 AM
 
@Mikhail Why not.. just return one single object that holds a buffer reference and also a unique_lock?
 
this could look like this, destructuring optional and up to personal preference
in the long, long ago we used to joke about co-opting for(auto&& synced_item: sync_deeper()) { syntax for this kind of stuff
 
 
5 hours later…
12:13 PM
I wonder how much does 1k facebook likes worth in monetary value? I mean this woman has an army of haters and she's making a comfortable living out of it.
Do you make more as an influencer if you have 10 million 'friends' rather than 10 million dedicated haters?
 
nwp
It doesn't matter. Ad views are ad views. As long as you can manipulate people into buying products you can make money off it.
 
actually having vocal haters means that those haters will send eyeballs your way
 
@ratchetfreak eyeballs are sticky and gross
 
nwp
At least it's not rotten tomatoes.
 
12:28 PM
One of the most hurtful comments by a dedicated hater of said women: 'I'll be ad blocking you.'
 
 
1 hour later…
1:32 PM
One of the most inhumane photo taking places in the world: some country's customs at airport. It's like, you are crammed like a cattle on a long haul flight for more than 20 hours(business or first class get bigger enclosure, but still, it's not an ideal situation), you are tired and almost in hallucinating state, with under groomed appearance. Then you are made to appear in a photo. That's brutal.
 
nwp
1:46 PM
error: unknown conversion type character '\x0a' in format [-Werror=format=]
  fprintf(f, "number of things: %z\n", things.size());
                                                    ^
(%zu would have been correct, but I'm pretty sure that's UB inside gcc for accessing an uninitialized variable)
 
 
2 hours later…
nwp
3:41 PM
Why did libusb change their prefix from usb_ to libusb_? :notlikethis:
Namespaces are underappreciated.
 
4:41 PM
 
5:11 PM
I've just found how interesting is the feedback page of Coliru :)
 
5:35 PM
It needs some cleanup :)
 
6:11 PM
@StackedCrooked I even found people seeking for their future girl/boyfriends in the feedbacks xD
 
Cool. Just found it.
Thanks to Google Translate.
 
 
5 hours later…
11:06 PM
Fuck, my code is too complicated. Like I changed 120 files yesterday as part of refactoring. But wrote almost nothing. The people I work for don't understand that code needs to be tested. Not to mention, that some of our equipment will literally catch on fire if I have bugs (mostly shutting of fans on heating elements before the heat sinks have cooled down).
 
11:56 PM
So, people complain about Electron eating all their RAM. This machine learning model evaluate as 800x800 image. The model is ~400 megabytes in RAM, the DLLs to run it occupy about ~700 megabytes. Total memory to run what is essentially BLAS exceeds 1.5 GB.
 
@Mikhail People used to complain the emacs used too much memory. One supposed expansion was "Eight Megs And Constantly Swapping". Most people can hardly imagine trying to boot with only 8 megs of RAM anymore, not to mention thinking of running a program in it without having to use virtual memory.
 

« first day (3145 days earlier)      last day (1786 days later) »