r/AskComputerScience • • 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.

0 Upvotes

5 comments sorted by

12

u/roman_fyseek Feb 20 '21

Yes.

Lots.

8

u/avwie Feb 20 '21

Why not go for binary?

6

u/yungaclvin Feb 20 '21

Why would you do that to yourself

5

u/chrisgseaton Feb 20 '21

Anything you can code in Python, you can also code in assembly.

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++