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

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.

主站蜘蛛池模板: 金坛市| 张家港市| 阿瓦提县| 蚌埠市| 蓬莱市| 禄丰县| 崇礼县| 东阿县| 炎陵县| 屏山县| 凤山县| 乐山市| 郯城县| 金沙县| 桦川县| 罗平县| 晋城| 延安市| 潼南县| 婺源县| 宝清县| 昌宁县| 稷山县| 兰考县| 南岸区| 朝阳区| 东莞市| 冀州市| 金门县| 荣成市| 海兴县| 福建省| 望城县| 莒南县| 凤阳县| 保康县| 湘潭市| 且末县| 梨树县| 右玉县| 梁河县|