# Proof-of-concept VM Development

**URL:** <https://forums.counterparty.io/t/proof-of-concept-vm-development/3031>\
**Category:** Counterparty\
**Created:** [May 23, 2017, 3:36am UTC](https://forums.counterparty.io/t/proof-of-concept-vm-development/3031 "2017-05-23T03:36:59Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![insette](https://avatars.discourse-cdn.com/v4/letter/i/c0e974/32.png) [@insette](https://forums.counterparty.io/u/insette)\
**Post date:** [June 30, 2017, 12:30am UTC](https://forums.counterparty.io/t/proof-of-concept-vm-development/3031/11 "2017-06-30T00:30:12Z")

</div>

> [@chiguireitor](#):
>
> Regarding code rewrite, that would be completely out of question with current funding status (read: none, just bounties for cips).

At a bare minimum, [counterparty-server](https://github.com/CounterpartyXCP/counterparty-server)’s reliance on a fork of Bitcoin Core with addrindex is problematic. Even if we were on good terms with Bitcoin Core, they’ve failed to merge addrindex functionality for _years_. The patch we’re relying on as a workaround is practically unmaintained.

btcd, bcoin and libbitcoin all feature native address indexing, so switching to any one of these altnodes on the backend would be a major step in the right direction for Counterparty. It would also be simple enough to not require a rewrite. To that end, would be interesting to discuss e.g. funding a Venezuelan full time dev team for Counterparty, paid in digital currency, but that is getting off-topic here.

> [@chiguireitor](#):
>
> However, if you asked me… i would go for BCoin. Their codebase is WAY cleaner than most out there, and it’s pretty extensible. IIRC they have an addrindex implementation too, so it wouldn’t be too crazy to use it instead of bitcoin core.

It’d be crazy _not_ to use bcoin/btcd/libbitcoin. We must break the dependency on our _patched version_ of Bitcoin Core.

Something to consider about BCoin, however; BCoin includes native C code for performance reasons. Hence, BCoin is going to ship a mixed JS/C codebase forever and ever. Not that I don’t trust JJ to write C, but impurity creates complications.

Conversely, btcsuite is pure Go, and Go has _very_ nice deployment properties. Nicer than JS and much nicer than C++. I also see @rubensayshi is contributing some code to btcsuite.

JS makes a lot of sense when writing consumer facing software that is intended to run inside a web browser. Also, the immensity of the JS ecosystem makes it a stronger contendor than Python for a wide range of uses IMO; but I’m biased there, I’m not a fan of Python whatsoever so JS being better than Python doesn’t mean much.

Enterprise server deployments are in a different category, and for what we’re doing with indexing the blockchain, and parsing the blocks for Counterparty data, I think you pretty much have to favor C++ and Go over JS.

---

_[View the full topic](https://forums.counterparty.io/t/proof-of-concept-vm-development/3031)._
