4

Would it be feasible to implement Clojure (and persistent data structures) on EVM? Or another functional language?

  • to do so you need to code your own compiler or rewrite the VM – Arslan Smal Dec 21 '16 at 22:58
  • Why would you have to rewrite the vm? Thats not true, as all functional languages run on normal vms and normal cpus alike. – RFV5s Dec 23 '16 at 4:35
  • Ethereum VM is special read the yellow paper – Arslan Smal Dec 23 '16 at 10:48
  • 2
    As long as you wrote a compiler that created byte code that the existing VM could understand, you wouldn't need to create a new EVM. – Richard Horrocks Jan 6 '17 at 21:58
1

Sure you'd need to create your compiler to generate EVM bytecode. There are alternatives to solidity, they are LLL (which is functional and Lisp like) https://github.com/nexusdev/lll-resurrected

and Serpent which looks more like a Python. https://github.com/ethereum/wiki/wiki/Serpent

Assumed you generate a proper bytecode and an ABI, I guess you can use almost any language to write contracts.

https://solidity.readthedocs.io/en/develop/abi-spec.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.