Bitcoin Forum
November 18, 2024, 01:05:04 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: If you could use any programming language for smart contracts, what would it be?  (Read 377 times)
earlz (OP)
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250


mmmmmm


View Profile WWW
July 13, 2017, 07:52:05 PM
 #1

I'm wanting to gauge what people are thinking about smart contracts. I know a lot of people don't like Solidity, but if you had a magic box that could support any programming language for smart contracts, what language would you choose and why?

Check out my full list of Coin Reviews
Currently working on the Qtum Project
My Skype account earlzdotnet has been compromised. Please report to me any usage seen from it, or from the email earlz@earlz.biz.tm
ranih
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Snip - The Future of News on the Blockchain


View Profile WWW
July 13, 2017, 08:04:47 PM
 #2

I'd choose the language I'm most familiar with, and I guess that would be the answer of most people.
In my case it'd be python.

You can try looking at open source projects in the crypto world to estimate which language is the most popular...

earlz (OP)
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250


mmmmmm


View Profile WWW
July 13, 2017, 09:09:07 PM
 #3

I'd choose the language I'm most familiar with, and I guess that would be the answer of most people.
In my case it'd be python.

You can try looking at open source projects in the crypto world to estimate which language is the most popular...

Interesting. I figured most people would want a particular language that has more of an emphasis on safety, like Haskell or Rust or something

Check out my full list of Coin Reviews
Currently working on the Qtum Project
My Skype account earlzdotnet has been compromised. Please report to me any usage seen from it, or from the email earlz@earlz.biz.tm
ranih
Full Member
***
Offline Offline

Activity: 168
Merit: 100


Snip - The Future of News on the Blockchain


View Profile WWW
July 13, 2017, 09:41:59 PM
 #4

I'd choose the language I'm most familiar with, and I guess that would be the answer of most people.
In my case it'd be python.

You can try looking at open source projects in the crypto world to estimate which language is the most popular...

Interesting. I figured most people would want a particular language that has more of an emphasis on safety, like Haskell or Rust or something

Maybe...
I think minimum friction is stronger. Moreover, safety ia more a matter of your code than the language you choose.

s1gs3gv
Legendary
*
Offline Offline

Activity: 1316
Merit: 1014

ex uno plures


View Profile WWW
July 13, 2017, 10:27:20 PM
 #5

Clojure has a lot to recommend itself but you'd want to avoid JVM based languages for resource contraint reasons.

Haskell  has a lot going for it but you'd want to avoid compiled languages for portability reasons when dealing with heterogenous p2p systems.

Agda, Idris, Coq et all have a lot going for them too but they're too complex for common use.

That doesn't leave many choices.
s1gs3gv
Legendary
*
Offline Offline

Activity: 1316
Merit: 1014

ex uno plures


View Profile WWW
July 13, 2017, 10:30:26 PM
 #6

Moreover, safety ia more a matter of your code than the language you choose.

I couldn't disagree more strongly. Type safety is essential. Going further, in soft contract programming you really want a language that allows proofs of correctness.
earlz (OP)
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250


mmmmmm


View Profile WWW
July 13, 2017, 10:43:59 PM
 #7

Clojure has a lot to recommend itself but you'd want to avoid JVM based languages for resource contraint reasons.

Haskell  has a lot going for it but you'd want to avoid compiled languages for portability reasons when dealing with heterogenous p2p systems.

Agda, Idris, Coq et all have a lot going for them too but they're too complex for common use.

That doesn't leave many choices.

Yes, this is what I'm seeing as well. There's no good language really built for this yet

Check out my full list of Coin Reviews
Currently working on the Qtum Project
My Skype account earlzdotnet has been compromised. Please report to me any usage seen from it, or from the email earlz@earlz.biz.tm
systemv
Member
**
Offline Offline

Activity: 84
Merit: 10

StuffGoGo Developer


View Profile WWW
July 13, 2017, 11:22:05 PM
 #8

In my opinion that should be either pure javascript or better, typescript. Lots of people know it, tremendous amount of tools, IDE's, testing frameworks, etc. Also integrating ability to use frameworks like Angular with ts can finally make dapps useful and beautiful and not that ugly looking geeky ones we have today. Bridging gap of dapps and users...

earlz (OP)
Sr. Member
****
Offline Offline

Activity: 439
Merit: 250


mmmmmm


View Profile WWW
July 14, 2017, 04:00:22 PM
 #9

In my opinion that should be either pure javascript or better, typescript. Lots of people know it, tremendous amount of tools, IDE's, testing frameworks, etc. Also integrating ability to use frameworks like Angular with ts can finally make dapps useful and beautiful and not that ugly looking geeky ones we have today. Bridging gap of dapps and users...

I don't know enough about Typescript and it's improvements, but for javascript at least, I wouldn't want to trust millions of dollars to some code written in Javascript. Similar to Solidity there are just too many pitfalls and ways to write code that looks clear and concise but has unexpected behavior. If you want a laugh, watch this "wat" lightning talk (it covers Javascript 1 minute in) to see what I mean https://www.destroyallsoftware.com/talks/wat

Check out my full list of Coin Reviews
Currently working on the Qtum Project
My Skype account earlzdotnet has been compromised. Please report to me any usage seen from it, or from the email earlz@earlz.biz.tm
coin_coin
Full Member
***
Offline Offline

Activity: 182
Merit: 100



View Profile
July 14, 2017, 04:09:54 PM
 #10

JAVA, the most useful and wide accepted.

CINDICATOR.COM12 September 2017 Token Sale
WP
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!