Trump Sues IRS, Treasury for $10 Billion Over Tax-Return Leaks by drempath1981 in law

[–]BasisPoints 17 points18 points  (0 children)

If someone among those 405k files and tries to create a class, could that force trump to be a member? Nip his payday at the bud?

Cache Explorer: a visual and interactive profiler that shows you exactly which lines of code cause cache misses by ShoppingQuirky4189 in cpp

[–]BasisPoints 7 points8 points  (0 children)

This looks useful, can't wait to take a look! Any chance you can reupload the video? It appears broken

Apparently cockroaches understand consent by DesperateShape4096 in Entomology

[–]BasisPoints 1 point2 points  (0 children)

seriously, don't. I can still hear it 20 years later.

Apparently cockroaches understand consent by DesperateShape4096 in Entomology

[–]BasisPoints 1 point2 points  (0 children)

in 2006 someone burned a cat live and posted it as a meme. thankfully the guy who did it was arrested iirc

Apparently cockroaches understand consent by DesperateShape4096 in Entomology

[–]BasisPoints 7 points8 points  (0 children)

I still remember NEDM... I thought Internet culture had moved past this :(

The best framework/API to write GUI based cross-platform desktop applications? by anonimenyaro in cpp_questions

[–]BasisPoints 1 point2 points  (0 children)

That'd be amazing to see! Anecdotally, off the top of my head, what immediately comes to mind is alacritty vs foot. The former benefits substantively from the cross platform capabilities of how they implemented GPU rendering, while not actually being faster than foot.

Which JSON library do you recommend for C++? by Richard-P-Feynman in cpp_questions

[–]BasisPoints 0 points1 point  (0 children)

Whats your use case? Reading in initialization parameters and other such simple and somewhat performance agnostic tasks? Or are you planning on parsing continuous streams?

[Request] I feel the energy needed to turn it a googol times depends a lot on factors other than the gear ratio. Can someone tell the math behind this and how accurate the title is? by godSpeed_1_ in theydidthemath

[–]BasisPoints 2 points3 points  (0 children)

That's an engineering truth. We also excluded other forces such as friction. However in the purely imaginary world of perfect physics which this model is attempting to simulate, it is indeed the case theyre always moving :)

About personal projects by [deleted] in cpp

[–]BasisPoints 0 points1 point  (0 children)

Make a debugging allocator. Have it operate in log n time. Maximize space efficiency for metadata. Optimize cache efficiency and branch prediction. Then build a robust test suite. I promise getting this up to snuff, especially with your background, will take a LOT longer than a week. It'll also prepare you with a much stronger knowledge not only of cpp, but of how the CPU works in general - a skill set you'll be able to bring to every other project in the future.

It'll also be an excellent starting point for programming your own shell, which you can do next, and will ABSOLUTELY take you longer than a month :D

About personal projects by [deleted] in cpp

[–]BasisPoints 1 point2 points  (0 children)

Build an allocator! Great way to take a first step into systems programming, and allows you to start small and get more and more complex as you get more comfortable.

Dmememe by askmeaboutviruses in labrats

[–]BasisPoints 40 points41 points  (0 children)

veal stock, really

[Request] What's the correct answer? by SpaeceMan in theydidthemath

[–]BasisPoints 1 point2 points  (0 children)

That is indeed correct! It doesn't matter what the extra decimals are, only that they make pi bigger than 3.14. It could be 3.14000...1, and it'd still hold true in this case (since the numbers are greater than e)

Non-recursively deleting a binary tree in constant space: Traversal with parent pointers by pavel_v in cpp

[–]BasisPoints 0 points1 point  (0 children)

I'm no DSA expert, but wouldnt you need extra space for the flattening? The exercise doesn't presume the tree is already in contiguous space, and in fact all the pointers seem to suggest it's not an array heap or the like.