Jump to content

Does programming require a good CPU?

Surpuppa
11 hours ago, Surpuppa said:

Does programming benefit from a better CPU? For example an i7 vs an i5?

I have no experience programming but I will start soon so I'm planning my next build. (Waiting for Ryzen though)

Yes and no. As others have said, programming itself is using an IDE or a text editor. However, if you're working with a resource heavy IDE, such as IntelliJ IDEA (Java), Android Studio (also Java), Visual Studio (C#/.NET), or perhaps Eclipse, they are nearly unusable on slower hardware, without disabling a lot of the features that make them good. With that said, compile times can also take a hit. Even for a relatively small project like my own personal C++ libraries (~1000 lines of code), differences in hardware show up. I have a desktop with a Skylake i7 6700K that compiles those libraries in less that 30 seconds. I also have a bottom of the line HP Chromebook with an Intel Celeron processor that takes about 2 minutes to compile them. Then, on the very bottom end, a Raspberry Pi takes around 7-10 minutes to compile. For a company codebase that could be hundreds of thousands to millions of lines long, the compile times increase exponentially, which is where faster hardware really pays off.

In the end, though: For learning, it doesn't matter all that much. If you make it your profession, hardware matters.

Link to comment
Share on other sites

Link to post
Share on other sites

On 14.2.2017 at 1:19 AM, Pinguinsan said:

Yes and no. As others have said, programming itself is using an IDE or a text editor. However, if you're working with a resource heavy IDE, such as IntelliJ IDEA (Java), Android Studio (also Java), Visual Studio (C#/.NET), or perhaps Eclipse, they are nearly unusable on slower hardware, without disabling a lot of the features that make them good. With that said, compile times can also take a hit. Even for a relatively small project like my own personal C++ libraries (~1000 lines of code), differences in hardware show up. I have a desktop with a Skylake i7 6700K that compiles those libraries in less that 30 seconds. I also have a bottom of the line HP Chromebook with an Intel Celeron processor that takes about 2 minutes to compile them. Then, on the very bottom end, a Raspberry Pi takes around 7-10 minutes to compile. For a company codebase that could be hundreds of thousands to millions of lines long, the compile times increase exponentially, which is where faster hardware really pays off.

In the end, though: For learning, it doesn't matter all that much. If you make it your profession, hardware matters.

Agreed. I'm trying to use IntelliJ on our school pcs and it takes ages to even create a class :P. While still better than BlueJ, which is pre-installed its quite annoying. Though any modern CPU will have no problems running any IDE. 

My Rig: AMD Ryzen 5800x3D | Scythe Fuma 2 | RX6600XT Red Devil | B550M Steel Legend | Fury Renegade 32GB 3600MTs | 980 Pro Gen4 - RAID0 - Kingston A400 480GB x2 RAID1 - Seagate Barracuda 1TB x2 | Fractal Design Integra M 650W | InWin 103 | Mic. - SM57 | Headphones - Sony MDR-1A | Keyboard - Roccat Vulcan 100 AIMO | Mouse - Steelseries Rival 310 | Monitor - Dell S3422DWG

Link to comment
Share on other sites

Link to post
Share on other sites

TL;DR: If you are asking the question then probably not.

 

Some less beginner forms of programming like machine learning can require absurd amounts of power to use effectively. Genetic algorithms and other programs that need to be 'trained' over many iterations, or on monstrous data sets benefit greatly from increased parallelization and computational power.

 

Other than that, resource hungry IDEs and large complex programs with difficult compilation procedures will require slightly above minimum available specs.

Link to comment
Share on other sites

Link to post
Share on other sites

Certainly some IDEs benefit greatly from a better CPU (ie Visual Studio). As for the programs you write, it depends on the programs you plan to make. Some might gain while others may not. Some programs may gain from more cores while others may not. It depends very much on what you're trying to do.

Link to comment
Share on other sites

Link to post
Share on other sites

On 21/02/2017 at 9:39 PM, -iSynthesis said:

Agreed. I'm trying to use IntelliJ on our school pcs and it takes ages to even create a class :P. While still better than BlueJ, which is pre-installed its quite annoying. Though any modern CPU will have no problems running any IDE. 

Runs software worth hundreds of dollars on a potato, typical school logic there ;)

 

OP since you're just learning - Basically any modern-ish PC should be fine to run whatever IDE you decide to use. Whether or not you can take advantage of that i7 is going to come down to how you implement your code, but multi-threading isn't something I would think you'd be doing anytime soon. I'd roll with the i5 unless you need the i7 for something else

CPU: Intel Core i7-4770k | Mobo: MSI Mpower Max | Cooling: Cryorig R1 Ultimate w/ XT140 front Fan | GPU: EVGA GTX 770 Dual SC SLI | Case: NZXT H440 | Case Fans: Phanteks PH-140SP x5 | PSU: EVGA Supernova P2 1000W | RAM: 16GB Crucial Ballistix Tactical Tracer | SSD: Kingston HyperX 3k 120GB | HDD: Seagate Barracude

Keyboard: Razer Blackwidow Ultimate 2013 | Mouse: Razer Deathadder 2013 | Headphones: Sennheiser HD438s | Mousepad: Razer Goliathus Control | Monitor 1: Benq XL2430T | Monitor 2: BenQ RL2455HM 

 

Link to comment
Share on other sites

Link to post
Share on other sites

51 minutes ago, VulsaviiK said:

Runs software worth hundreds of dollars on a potato, typical school logic there ;)

 

OP since you're just learning - Basically any modern-ish PC should be fine to run whatever IDE you decide to use. Whether or not you can take advantage of that i7 is going to come down to how you implement your code, but multi-threading isn't something I would think you'd be doing anytime soon. I'd roll with the i5 unless you need the i7 for something else

My school has close to if not more than 1000 pcs with 4770k's. Better than mine!

Link to comment
Share on other sites

Link to post
Share on other sites

  • 1 month later...
On ‎26‎/‎02‎/‎2017 at 3:45 AM, SpaceNugget said:

My school has close to if not more than 1000 pcs with 4770k's. Better than mine!

Meh I'm programing at home using VB.net, C#/++, etc. on I3-2100 and I don't really feel like it's being sluggish.... Though may its because I've never had a better computer that I could compare. 

Link to comment
Share on other sites

Link to post
Share on other sites

13 hours ago, JuNex03 said:

Meh I'm programing at home using VB.net, C#/++, etc. on I3-2100 and I don't really feel like it's being sluggish.... Though may its because I've never had a better computer that I could compare. 

Pro tip: never delimit C# and C++ with a forward slash; always use commas.

 

OP:

Processing power shouldn't really matter (e.g. hold you back) but it can certainly make things tangibly slower. 

As people have said, it depends on what you plan on doing. If you were getting into 3d game development with UDK or something, I'd suggest a good processor and GPU. If you were just beginning web development, it probably won't matter that much. The heaviest tools are gonna be your IDE. Your compilation process may benefit from faster compile times with a better processor but, at the same time, unless it's mind-numbingly slow, you probably won't care much for it at first.

 

Put it this way: most good programmers alive today never learned programming on an i7.

 

But yeah, you literally could use a raspberry pi to program very easily:

9FnLgoW.png

Especially the newer revision of the pi.

 

The biggest concerns would be compile time (which is only really a tangible issue for large projects and, even then, there's ways to counter that somewhat depending on what language you're using) and actual runtime performance (depending on what you're doing - e.g. don't do heavy game development on an i3 or something; it may work, but it will suck).

And, if my thought-dreams could be seen,
they'd probably put my head in a guillotine.
But, it's alright, ma, it's life, and life only.

Link to comment
Share on other sites

Link to post
Share on other sites

like most others have said, coding itself will not demand power but compiling it will

if youre using an IDE like Visual Studio id recommend a fast drive though for general usability

and a higher resolution screen also benefited me more than a uber performance rig

also get keyboard you really feel comfortable with because you gonna do a lot of typing and little things like a shortened backspace or something really tends to anoy me 

 

everything else depends on what you actually want to do e.g. virtualization takes a lot of ram, graphical stuff may stress graphics card etc.

"You know it'll clock down as soon as it hits 40°C, right?" - "Yeah ... but it doesnt hit 40°C ... ever  😄"

 

GPU: MSI GTX1080 Ti Aero @ 2 GHz (watercooled) CPU: Ryzen 5600X (watercooled) RAM: 32GB 3600Mhz Corsair LPX MB: Gigabyte B550i PSU: Corsair SF750 Case: Hyte Revolt 3

 

Link to comment
Share on other sites

Link to post
Share on other sites

PS: im coding very well on my 8120 and i wouldnt call that a powerfull cpu. but getting my ultrawide i have to say was the best thing i could've done for coding. 

 

if youre like me youll want ot monitpr all the things of your developed application and that takes alot of screen space im not get an ultrawide necessarily im just suggesting where the focus should be

"You know it'll clock down as soon as it hits 40°C, right?" - "Yeah ... but it doesnt hit 40°C ... ever  😄"

 

GPU: MSI GTX1080 Ti Aero @ 2 GHz (watercooled) CPU: Ryzen 5600X (watercooled) RAM: 32GB 3600Mhz Corsair LPX MB: Gigabyte B550i PSU: Corsair SF750 Case: Hyte Revolt 3

 

Link to comment
Share on other sites

Link to post
Share on other sites

Guest
This topic is now closed to further replies.

×