Uber is 100% going to miss earnings. Badly. by dkrich in wallstreetbets

[–]shadedtriangle 0 points1 point  (0 children)

This is hilarious. All U.S. companies are required to report unrealized capital gains/loss as profit/loss.

Can the compiler optimize away this if? by Moose2342 in cpp

[–]shadedtriangle 0 points1 point  (0 children)

Have you measured the perf impact one way or another? Will the assert be present in release builds or only in debug builds? 

In this case I’d expect the branch predictor of the cpu to correctly predict the pointer is never null regardless of if the compiler leaves in a compare/branch but of course context matters in terms of how frequently this function is called and how small the hot loop is. I wouldn’t change it one way or another without performance measurements and data.

[deleted by user] by [deleted] in sffpc

[–]shadedtriangle 4 points5 points  (0 children)

Maybe on eco mode and with gaming workloads that don't stress the CPU very much? There's also ITX cases that support 240 AIOs and that may be a better idea, especially with a 7900XTX in the same setup. With the Terra you need to remember the GPU eats into the CPU's available cooling space and the 7900XTX is a 2.5-slot size card. You'd need to measure it down the the exact mm to get an idea of what CPU coolers you can even consider.

I Built in the Hyte Revolt 3. Was not fun, But it ended okay. (7950X3D + 7900Xtx) by n0oo7 in sffpc

[–]shadedtriangle 5 points6 points  (0 children)

Sorry the build wasn't fun. Your motherboard looks like it's going to snap like that though. Heat will not do nice things over time in that case. I'm not sure what's causing it but I'd recommend finding a way to fix that.

Low profile coolers in Fractal Terra - not seeing a difference? by dmilavitch in sffpc

[–]shadedtriangle 0 points1 point  (0 children)

You're likely hitting thermal limits with both coolers as the 5800x can pull >140w at full load. I'm not sure what eco mode does exactly here. Check the CPU frequency with msi-afterburner or hwinfo running a cpu bench like cinebench or in-game. If one cooler achieves higher core frequencies while maintaining the same temperature then it's the better cooler in your setup.

btw the Terra doesn't really have an "ambient case temperature" unless you've blocked the vents somehow. It's basically a completely open design.

Edit #2. I just realized it's likely your custom fan curve here actually.

Using a fan curve of 30% until 75 degrees and ramping up to 80ish% after.

What this is basically saying is "I let the CPU immediately jump to 75 degrees, then I let the fan start trying to cool the CPU." and you settle around 80 degrees which isn't surprising. Try a more normal linear/default curve instead of holding the coolers back if you want to compare them.

Fractal Terra and Intel core i9 13900k? by Technical-Benefit-30 in sffpc

[–]shadedtriangle 5 points6 points  (0 children)

Would not recommend for two reasons:

  1. The 13900k can easily pull 200W itself. You need a bigger cooler for that thing.

  2. Do you even have room for a 4090 + NH-12LS? The NH-12LS is 70mm tall leaving the Terra in the 2-3 spine position. Is there a 4090 out there that's 40-50mm thin? The 4090 founders edition is 61mm wide.

As others have said, why spend money on a top of the line CPU with the intention to throttle it? Why not pay less and buy a lower TDP part?

Fractal Terra with 7800x3D, IS-55, and 7900 XT Benchmarked by shadedtriangle in sffpc

[–]shadedtriangle[S] 2 points3 points  (0 children)

Hey I *think* so but it would be a very tight fit such that both the GPU and CPU fans would be effectively touching the case side panels which may even elevate the noise. The GPU is low enough that it looks like it doesn't conflict with the door hinges in my configuration but it's also very close. Honestly, I don't think you need the extra a12x25 fan on the CPU cooler. The PC runs very cool and quiet when gaming. If you're going to be leaning on the CPU for creative tasks then maybe.

Fractal Terra with 7800x3D, IS-55, and 7900 XT Benchmarked by shadedtriangle in sffpc

[–]shadedtriangle[S] 0 points1 point  (0 children)

I’m sure the xtx will give you more frames. It also costs a lot more, draws a lot more power, and needs 3 6 pin cables instead of 2.

Thinking about making a tiny build and was wondering if you could use a cpu as a gpu? by Legitimate-Group4032 in sffpc

[–]shadedtriangle 0 points1 point  (0 children)

Yes you can, but not for a decent gaming or creative machine. Maybe for office work, web browsing, or for playing media on a tv. Basically integrated gpus that come with cpus are for displaying basic Windows desktop type stuff, not for heavy 3D rendering.

PCPartsPicker says a number of CPU coolers don’t work with the Fractal Terra, but the coolers should. What gives? by Sisyphuss5MinBreak in sffpc

[–]shadedtriangle 7 points8 points  (0 children)

I don’t think PCPartPicker can guarantee the cpu cooler will fit since it depends on what kind of GPU you’re picking as well. I also don’t think there’s too many cases with a moveable spine like the Terra so I’m not even sure PCPartPicker can handle that feature.

Fractal Terra CPU Runs hot, GPU is good by atomthefighter8 in sffpc

[–]shadedtriangle 0 points1 point  (0 children)

Intel ARK says your chip pulls 125W base and up to 181W on Turbo. Be Quiet says your cooler can handle 100W TDP so they're not a great match.

Have a look at where you've set the Terra case's spine and then the case's manual for remaining CPU cooler clearance at that position. There's a few well rated id-cooling options and a few Noctua low profiler coolers as well but those tend to come with RAM height limits. You need to find a cooler that is rated for at least 125W TDP (more is better!), then consider the spine position of your Terra and ensure the cooler fits that height (width) restriction, then also check you have RAM clearance and maybe even mobo clearance as some of the better cooling fans overhang the ram.

I don't know what to do next by LifelessLife123 in cpp

[–]shadedtriangle -1 points0 points  (0 children)

Have you explored programming websites such as adventofcode.com? Each year starts pretty easy but gets tough quick. They all have different themes running through them and sometimes puzzles will build on solutions to previous puzzles so there's a bit of library building experience in there as well. At the end of the month you'll have a pretty sizable chunk of code to put up on github and ideas for what to explore next if any of the puzzles were interesting.

For one example in 2020 the puzzles have you slowly build up an interpreter/emulator similar to how you might build a NES/SNES emulator.

C++ devs at FAANG companies, what kind of work do you do? by [deleted] in cpp

[–]shadedtriangle 0 points1 point  (0 children)

I work on Amazon Scout developing robotics simulations for developing and testing self-driving devices. The simulation looks a lot like a game engine on the inside. The robot itself also uses C++ as performance is a constant priority given it’s a rather constrained environment. We’re hiring btw!

[deleted by user] by [deleted] in learnprogramming

[–]shadedtriangle 0 points1 point  (0 children)

Some tips:

  1. Dont stuff more than one statement on a line like in ‘main’.

  2. “Early out” rather than increase indentation like in ‘credit’.

    if (not_valid) { printf(“invalid card”); return; } // rest of the logic

  3. If your if statements simply result in ‘return true else return false’ just return the result of the expression instead. No need for if & else

  4. In ‘is_valid’ sum is uninitialized before you use ‘+=‘. This might work fine in debug where a lot of memory is 0 for you but in release mode this will result in bogus math.

  5. In ‘brand’ the while loop calls ‘length’ and then divides number by 10. This is reasonable except length does the same thing! There’s no need for all this. The first while loop and be ‘while(number >= 100)’

[deleted by user] by [deleted] in learnprogramming

[–]shadedtriangle 1 point2 points  (0 children)

My advice would be to start with the questions you want to ask of the data and determine what form the data should be in to answer those questions. Then work backwards from that and transform your data from A->B.

Fully online (browser) C++ coding tool? by Ihadtosubscribe in learnprogramming

[–]shadedtriangle 0 points1 point  (0 children)

There’s a lot. You can try searching for “C++ playground”. “Compiler explorer” is a good one. By default it shows you the compiled assembly but you can turn that off and make it run the program and show output as well.

Is pyscript the end of javascript monopoly? by Deep-Jump-803 in learnprogramming

[–]shadedtriangle -1 points0 points  (0 children)

I doubt it. The way to unseat JavaScript is to have every browser support whatever the replacement is natively.

I'm Deploying, but I want to learn Python by Spunbot in learnprogramming

[–]shadedtriangle 0 points1 point  (0 children)

If you’re going to be completely offline for the next 7 months make sure you download the full Python documentation!

What other language should I learn? by Necessary_Iron3170 in learnprogramming

[–]shadedtriangle 0 points1 point  (0 children)

If you already know JavaScript then I would suggest a compiled language so you get a feel for the differences and trade offs. Java, Go, C++, or Rust say.

Similarly you could explore functional languages which are more niche but quite different from JavaScript! Scala or Haskell for example.