官术网_书友最值得收藏!

Why not use Python?

Python is a popular language in the security field. This is most likely because of its ubiquity, short learning curve, and plethora of libraries. There are already several useful tools for security written in Python, namely Scapy for packet capturing, Scrapy for web scraping, Immunity for debugging, Beautiful Soup for parsing HTML, and Volatility for memory forensics. Many vendors and service providers also provide API examples in Python.

Python is easy to learn, and there are plenty of resources. Go is also easy to write and has a gentle learning curve. The learning curve and the ease of programming is not a major differentiating factor between Go and Python in my opinion. This biggest distinction, and where Python falls short, is performance. Python cannot compete with Go in terms of performance. Part of it is the interpreted nature of Python, but a larger factor is the global interpreter lock or GIL. The GIL prevents the interpreter from using more than one CPU worth of processing power, even with multiple threads executing. There are some ways to get around this, such as using multiprocessing, but this has its own drawbacks and limitations, as it actually forks a new process. Other options are using Jython (Python on Java) or IronPython (Python on .NET), and these have no GIL.

主站蜘蛛池模板: 电白县| 宜州市| 遂宁市| 桓台县| 沈丘县| 福贡县| 大埔县| 横峰县| 盐边县| 治县。| 通河县| 张家川| 普定县| 罗田县| 德清县| 新绛县| 册亨县| 汕头市| 西乌珠穆沁旗| 东至县| 二手房| 项城市| 哈密市| 襄垣县| 凤台县| 广饶县| 金寨县| 萍乡市| 永善县| 吉木萨尔县| 建昌县| 苍溪县| 开远市| 大埔区| 景泰县| 四平市| 宜兰县| 庆阳市| 洛南县| 龙里县| 长乐市|