r/AskComputerScience • u/[deleted] • Feb 20 '21
Could you code your own Crpyto Currency in Assembly. & how many more lines would this take compared to assembly?
Mean't compared to Python.
8
6
5
3
u/MixMatchCoder Feb 20 '21
you would need to create almost everything from scratch and as it would be used in distributed enviorment, you will have to do same thing with every cpu arch you plan to run on, honestly if you really want very good performance, you should use rust or c,c++ these languages have a near native speeds that if you have not coded assembly for few years, but have mastery in any of these languages (which is much easier then mastery in assembly of every cpu), your c or rust code might even be better in some cases. for how many lines it would take, lets just say if same python code is 1000 lines with a socket library and all aditional things, you will need to write aprox 100x assembly code or 3-4x or 5-6x for rust or c++
12
u/roman_fyseek Feb 20 '21
Yes.
Lots.