« first day (3142 days earlier)      last day (1799 days later) » 

12:22 AM
I am having a brainfart here:

I have a stack of things and want to look at the top of the stack and decide if I want to leave the thing on top of the stack or remove it. IF I remove it I want to repeat the process for every thing on the stack until it is either empty or I find an element I do not want to throw away. Is there a way to do this elegantly without recursion?
 
Rob
12:53 AM
@salbeira Seems more suitable to have a while loop rather than recursion
while condition being the stack isn't empty, and then break when you've found an element to keep
 
 
3 hours later…
3:42 AM
Sharing is not always caring. Especially those who shared cold/flu with you.
 
4:39 AM
@Mik You need to show more appreciation towards your team members, try hugging and express gratitude when you are in close proximity with them ... when you suffer a severe cold/flu.
 
What's something I can build in C++ that people will pay to use
 
Rob
Software, probably
 
I don't care how boring or hard it might be.
@Rob what kind of software? I lack imagination
 
Rob
If I had an idea for a piece of software that'd definitely generate decent money... I'd be working on it already
 
4:55 AM
I have given up on software, too many people don't want to pay for software. You usually have to provide software for free, then try to get enough users. Then you can sell users or sell ads to users.
Or you can sell your labour time, writing C++ code for others for a living like most.
 
5:54 AM
@Rick Video game console emulators that run on mobile
 
6:09 AM
@Mikhail seems like there is already a lot of those
@Mikhail it has to be something no one cares about but people will care about in the future
 
Android emulator on Android to run legacy Android apps
People will pay for a binary level optimizer that can optimize existing EXEs, in particular to take advantage of new instruction sets.
You may be able to get away with dumping to Ghidra and then recompiling that code.
 
6:40 AM
Optimize binary sounds interesting, but that would mean learning assembly and compilers . Learning C++ is hard enough.
 
I wish I could turn the fat cells into fighting cells against the flu/cold.
 
6:56 AM
Automating this procedure
So how does it work? The game was fully disassembled with IDA, then converted from x86 disassembly to C with my custom tools that I wrote as the project progressed, then compiled as a normal program and linked against ARM winelib (so the Win32 API is provided by ARM port of wine). Sounds easy?
 
7:31 AM
^This skill set is worth increasingly less as GPUs have become faster
 
8:05 AM
But it is about GPU.
 
8:28 AM
Cool :)
For a minute I thought they were breaking the laws of physics.
 
then how is it done?
the rocks loot quite flat, almost 2d, so I am wondering if it's an illusion involving a TV
 
Suction? Besides the suction failing, what happens when some kid sticks their soapy hand into the aquarium?
 
the infographic above the tank does imply suction was used
 
But really, the guy just had the camera upside-down
 
8:49 AM
Wait until a fish becomes too sick to maintaining its balance.
 
gravity is still downward, pressure is just a little bit less than normal but well within bounds
 
9:14 AM
The camera guy says it uses a suction pump.
 
@ratchetfreak People can live in zero gravity environment too, but they develop problems in the long run in such an environment.
 
@TelKitty this is more about the equivalent of living on top of a mountain than in low grav
 
https://www.anandtech.com/show/14380/sugon-workstation-with-hugon-dhyana-cpu
UPDATE 5/24: According to Hao Feng from Hugon, secure encryption virtualization (SEV) pipeline of Dhyana processors works similarly to SEV of AMD’s Ryzen, but uses China national standard cryptographic algorithms SM2, SM3, SM4 instead of RSA, ECDSA,
ECDH, SHA, and AES.
How fucked is the s-box on SM2?
 
9:33 AM
Humans (and most other creatures I suspect) are hard coded to survive on small part of earth.
 
 
1 hour later…
10:47 AM
If it's not for the fishes in the tank (that need oxygen), the same effect can be achieved by partial vacuum at top.
 
it is a partial vaccuum
 
Yeah, but you can suck once & with enclosed top you don't need continuously getting air out.
But if you pump air/oxygen into water, you have to suck it out at the top to achieve equilibrium.
 
user7659542
11:14 AM
Is there any situation where initializing a structure to 0 using memset is the way to go?
 
user7659542
eg:
 
user7659542
foo_t a;
memset(&a, 0, sizeof foo_t);
 
user7659542
this looks totally ridiculous to me
 
user7659542
why not simplu foo_t a = {0};
 
user7659542
or in cpp you can ommit the '0'
 
11:17 AM
memset will also set the alignment bytes to zero, one wonders if its also faster because the struct including the alignment bytes is better aligned.
 
@TelKitty you have to do that anyway to account for offgassing/evaporation and leaks
 
user7659542
@Mikhail unless you are doing type punning or casting your structs to other structs or something that exotic, it looks to me like you actually shouldn t care about those padding bytes
 
user7659542
so using memset is not needed imo
 
user7659542
@Mikhail interesting website! will read it!
 
11:28 AM
So, that website is integrated into the latest version of ReSharper. So, if you violate any of these rules, you get a little green swiggle under your code.
 
user7659542
@Mikhail it isn't free :'C
 
life ain't free
 
Your biggest problem is that it isn't C
 
not being C isn't a problem it's a benefit
 
Also $200 per year compared to Coverity?
Being C means it won't work for this code
 
11:33 AM
will help incentivise him to write code that isn't shit by definition
sounds like a win to me
 
user7659542
Do you happen to know whether there is a similar good plugin for VIM?
 
11:49 AM
@Mikhail Assume completely
 
12:10 PM
@Mikhail compiler should optimize both to the same code
 
12:21 PM
@traducerad even if you are, if are there are actually guarantees about compatible types in the standard if they are standard layout
 
user7659542
1:14 PM
@Mgetz if performance is equal because you get the same code (if you are using a respectable compiler). Then you should optimize for time, writing memset and its parameters takes more time
 
user7659542
I don t know whether every compiler is smart enough to generate the same code
 
user7659542
Seems like you don't get the same code: godbolt.org/z/dRf4pN
 
user7659542
not sure why different assembly code got generated for me but not for you
 
user7659542
Hahaaaa
 
user7659542
Clang generates the same assembly code, but gcc doesn't
 
1:24 PM
Build for O3, I think only ICC would make different code for Mgetz's example
 
1:52 PM
How can I find people who want to talk about design concepts of low level UI Code?
 
2:29 PM
@traducerad actually you should optimize for clarity but that's my two cents
@traducerad try turning on optimization
unoptimized definitely won't
and if I turn on optimization... I get all your code removed
because you didn't return like I did
 
user7659542
why would people at a company chose to compile with O2 instead of O3? shouldn't ideally everybody always want the highest level of optimization?
 
@traducerad O3 is unstable optimizations
so it requires a LOT more compiler verification
Usually you see people do O2 and then optimizations they've verified on top of that
it's worth noting that O3 can actually be slower than O2 in some cases
 
user7659542
@Mgetz yep loop unrolling, which leads to code not fitting in instruction cache
 
@traducerad there are other reasons too, things like port overloading etc.
 
user7659542
in which case should you go for O2 and in which case for O3 and O?
 
2:42 PM
@traducerad generally I'd test. But unoptimized would only be used for code I dare not touch because of UB issues that I can't fix.
I have literally seen that with some FORTRAN code before
 
user7659542
what does your CI/CD do? O3 or everything?
 
2:54 PM
@traducerad Personally I use O2 because I'm lazy and I don't want to validate. Professionally I haven't had to do C++ projects in awhile. Even if I do I'd still do O2 because there is rarely a reason to go beyond that
 
 
2 hours later…
5:06 PM
 
 
1 hour later…
6:25 PM
 
:46314442 "I made it to the top of Mt. Everest (by being carried by a train of climbers all the way from the base camp to the peak)."
 
they call those sherpa reindeer
what a ridiculous line. does each one spend 5 seconds on top
 
6:42 PM
@JerryCoffin There is a guy that made it to the top with a helicopter.
Basically a stunt by the helicopter company to show how awesome their helicopters are.
 
Is it considered a waste of time to respond to a Google recruiter?
 
@Rick Are you even remotely interested?
 
@Rick do you have a masters degree? If the answer is no... don't bother
 
@Mysticial of course, but I hear it's harder than Harvard to get in.
 
@Rick If you're interested, then follow up. All the "Harvard" comparison bullshit is usually taken out of context.
Obviously if you're somebody in liberal arts applying to Google for a dev position because "you want a lot of money", then you have no chance.
As is the case for anybody with a shitty GPA applying to Harvard.
In this case, they approached you, which means you passed the smell test.
 
6:53 PM
@Mysticial not really, it depends on which unit you're applying to. Quite a few ONLY accept people with masters degrees. Literally ran into this twice to the point I just gave up on google in colorado.
 
@Mgetz When I was there, more than half of my coworkers only had Bachelors.
A few didn't even have college - self-taught programmers.
 
@Mysticial lol ya if I was doing this for the money, I wouldn't be doing it.
There are a lot of easier ways to make money
 
The main thing being that there's a ton of people out there who have absolutely no credentials trying to get into Google because it's cool and they want money.
 
@Mysticial I was never even able to get an interview. The recruiters were interested in me but the teams always responded that I didn't 'fit their criteria' and specifically called out education.
 
That said, even if you do have the credentials, you're still likely to get rejected for culture and job fitness.
 
6:56 PM
@Mysticial yeah... still never got an interview
 
@Mgetz They're probably using education to filter out a lot of the crap that they get.
 
@Mysticial I have a bachelors of science in CS... so w/e they have recruited friends of mine from the same school.
 
Speaking of which shit. I have an interview in 2 min.
 
Have fun.
 
7:53 PM
@Mysticial It is actually pretty impressive--in the past they haven't been able to rescue climbers dying at (or close to) the top, because no helicopter could fly there to do the rescue. Of it doesn't mean much about the guy who got out and stood on the peak though.
@Mysticial Ironic, given that costs are high enough in the bay area that Google's salary isn't really particularly special.
 
8:09 PM
@JerryCoffin He didn't get out. He touched down for a couple min. and took off.
AFAIK, he was strapped to his seat in a full oxygen suit and everything.
The helicopter was also stripped down to minimal weight. So it wouldn't be feasible as a rescue tactic.
Because the helicopter was so light, the winds were stronger than the propulsion.
So a big part of it was navigating the direction of the winds rather than just flying to the top and landing.
@JerryCoffin Google dev salary isn't special for the Bay Area, but it's still probably higher than most other normal jobs.
 
@Mysticial In that case, I have to agree with your assessment: pretty much a pointless stunt.
 
@JerryCoffin Kinda. They proved that their helicopter was "capable" of flying at much higher than its rated ceiling.
IIRC, they did do open air tests at like 35000 ft. before they headed to Everest.
 
@Mysticial Oh, undoubtedly more than a janitor, schoolteacher, etc. makes, but IIRC, on the low-average side for vaguely similar companies (Facebook, Linkedin, Twitter, etc.)
@Mysticial I'd certainly expect. And at 35000 feet, you can see some pretty serious winds almost anywhere.
 
@JerryCoffin It's funny though because shortly after the Google Cloud conference, they made a small effort to bring be back to Google. But after a short side discussion, judging by the body language, it looked a bit like I was out of their price range for the position they were thinking of.
 
@Mysticial I'd have thought the minute they heard you were now doing HFT, they'd have known that competing on price was going to be damned hard, at best. Worse, while Chicago isn't exactly a cheap place to live, it's still nothing like the bay area.
 
8:24 PM
@JerryCoffin Not just that. I told them that I basically own the entire high performance data structures library for the entire firm - i.e. a one bus factor.
 
One bus to rule them all.
 
Entry-level HFT devs aren't much higher than tech devs.
 
Erm. That didn't make sense.
 
@JerryCoffin It isn't difficult for them to figure it out. All they have to do is ask my former boss at Google. He would know how much I asked for in order to stay at the time.
 
@StackedCrooked Sure it does--it pretty much what PCIe has become. :-)
 
8:28 PM
Ah. That's right.
 
@Mysticial No, but at least from what I've heard, if somebody's good, they stand a much better chance of getting promoted from entry level to reasonably senior developer quite a bit faster.
 
@JerryCoffin At HFT? Or tech?
 
@Mysticial HFT. Most stories seem to indicate it's high enough pressure that pretty quickly you either move up or find a different job...
 
@JerryCoffin That is actually kinda true. Part of it is competition. Because if you have a good employee, they're also at risk of getting poached by a competitor. So you have to pay them or risk losing them.
But if you're not a good contributor, HFT (and Wall Street in general) won't hesitate to kick you out asap.
 
@Mysticial Yup--little or no tolerance for ROAD (Retired On Active Duty) types.
 
8:41 PM
@Mikhail Finally. RGB on NVMe: anandtech.com/show/14386/…
How does it not overheat?
I have larger heatsinks on mine and they still overheat.
 
@Mysticial "ADATA is not listing how many LEDs the drive has, but indicates that they can be customized using the company's proprietary software." So nobody's defined a standard interface and device driver to talk to this stuff?
 
@JerryCoffin yeah...
Ram RGB is like that too. So you have a ton of different standards.
JEDEC really needs to add RGB to its specifications to stop this.
 
@Mysticial The mind boggles giggles!
 
At least the 4/5-pin RGB and ARGB are reasonable standardized so that you can buy a LED strip from anywhere and just plug it into the mobo.
 
@Mysticial I was thinking more along the lines of Microsoft and Linux folks, at least defining some sort of class driver for RGB LEDs in general, and a manufacturer would write something vaguely like a miniport driver for networking.
 
8:52 PM
@JerryCoffin None of the PC RGB vendors support Linux.
The software for it only exists for Windows. But in some cases, the settings are persistent across reboots. So you can get it in Linux - if you set it up in Windows.
 
@Mysticial A serious missed opportunity for the Linux folks--much of the point of defining a class driver is to make it easy for the device vendor to write only a tiny bit of code to let their hardware work with the OS, and from there anybody who wants to can easily write all sorts of cool UI stuff.
 
9:11 PM
@JerryCoffin I have a feeling that the overlap between those who want RGB and the those who use Linux day-to-day is probably negligibly small.
 
@Mysticial Given complete lack of support, that's probably true (today). On the other hand, if they started providing decent support (and, especially, if they started supporting it better than Windows does) that could change.
 
9:48 PM
@Mysticial what did you guys ask?
 
10:08 PM
@Mikhail "How many sheets could a sheet slitter slit if a sheet slitter could slit sheets?"
 
nwp
18
 
wrong, the answer is:
What material is being slit?
How thick is the material being slit?
What tension does the material need to be at when slit?
Does the material being slit have an adhesive coating?
How fast is the slitter being run at when slitting the sheets?
What type of slitting is being used to slit the sheets? Is it razor, shear or crush-cut slitting?
 
"how much rep do you have on SO"
Also ended up using a continuation
Also ended up using a continuation to facilitate my render object to pass a buffer to an ip function without a deep copy, or exposuring the pointer outside the class
 
@Mysticial You're a Windows guy right?
 
@CaptainGiraffe yes
 
10:32 PM
@CaptainGiraffe that's what she said
 
@Mikhail Somehow, I can just imagine hearing something about: "Oh, that's way too much! You obviously spend all your time answering questions there instead of doing any real work."
 
 
1 hour later…
11:42 PM
@JerryCoffin I'm tutoring thesis writers. So this is the last contact we will have. me and them of course.
 
Have you ever tried to form a company using your students code/research results?
 
@TelKitty Yes, it is done and done.
 
~_~
 
@TelKitty 2011 was when it snowballed.
 
I thought you were a morally upright person, now I have found out that you are just like the rest of us.
 
11:46 PM
@TelKitty Neat =9 How does this compromise my morals?
 
Ask @Mikhail. He thought he was exploited by his thesis supervisor.
 
@TelKitty That's asinine.
 
Yo. So whats everybody work on?
 
@Mikhail version control for improving course material =) apparently svn/git is not enough.
Funny thing , i got angry during class. I can't recall last time that happened.
 

« first day (3142 days earlier)      last day (1799 days later) »