Problem with guns isn't lethality per se. Sword and arrow can kill you as easily as 5.56mm round. It's ranges. Rules of d&d are centered around melee combat. Longbow has 150 feet/ 50m range without disadvantage. Your run of the mill regular 9mm pistol has 75ft/25m. Regular M4 semi auto with ACOG, you are looking at 900ft/300m range without penalties and 1500ft/500m max effective range. With DMRs, anti material rifles or just plain old bolt action hunting rifles, you go in 500-600m no penalty ranges.
This reminds of Dresden Files and talk between Harry and Kincaid. When Harry asked Kincaid how would he take out wizard, he replied : "How would I kill a wizard? I’d do it from a mile away with a high-powered rifle and a scope. You wouldn't even know I was there. You wouldn't have time to put up a shield. You wouldn't even have time to think about a death curse. By the time the sound of the shot reached you, you'd already be dead"
That's why guns in D&D don't work. D&D is based around close ranges. Even ranged weapons and spells are close range engagements in modern terms ( more like point blank engagements, close range are 100-300m). At 300feet range, you use red dot/reflex sights, not acog.
Also, hacking in reality is much more tied to HUMINT than to glowing green terminals and typing like maniac. In CS, human is usually weakest spot in whole system. Reusing passwords, having them on post its on monitors etc. Your best hacker would be high CHA bard with some charm spells and high deception skill.
Now, all that aside, main question of the setting is, how rare are casters? In world with 4-8 billion people, are casters dime a dozen or are they 0.001% of population. Other is, how hard do you need to study to become one? If becoming lv1 wizard is same as getting say phd, while rare ( about 0.5% of adults), it's still numbers in tens of milions, but it's same as phd, distribution is uneven, access to education is uneven. Just enough that they can make real dent on society. With magic that prevalent, tech development would be very different than it is.