Angel \”Java\” Lopez on Blog

December 29, 2016

Blockchain: Links And Resources (23)

Filed under: Bitcoin, Blockchain, Ethereum, FinTech, Links, RSK, Smart Contracts — ajlopez @ 11:46 am

Previous Post
Next Post

What 2016 Taught Us About Smart Contracts
http://www.coindesk.com/2016-taught-us-smart-contracts/

Blockchain in Finance: From Buzzword to Watchword in 2016
http://www.coindesk.com/blockchain-finance-buzzword-watchword-2016/

Global Banks Pilot Blockchain-based Gold Settlement Platform
http://www.coindesk.com/global-banks-pilot-blockchain-gold/

Bitcoin Prices Break Past $800
http://www.coindesk.com/bitcoin-price-800/

BNP Paribas Clients Conduct ‘Live’ Blockchain Payments
http://www.coindesk.com/bnp-paribas-clients-live-blockchain/

SMART CONTRACTS USING BITCOIN’S BLOCKCHAIN? RSK.CO IS MAKING IT HAPPEN!
http://www.futuretechpodcast.com/podcasts/smart-contracts-using-bitcoins-blockchain-rsk-is-making-it-happen/

Towards a Clearer Understanding of Blockchain’s True Value
http://www.coindesk.com/towards-a-clearer-understanding-of-blockchains-true-value/

Why Blockchain Won’t Be Connecting Banks in 2017
http://www.coindesk.com/why-blockchain-wont-be-connecting-banks-in-2017/

2017: The Year Regulators Engage with Blockchain
http://www.coindesk.com/2017-regulators-engage-blockchain/

ABN Amro Tests Blockchain for Real Estate Transactions
http://www.coindesk.com/abn-amro-blockchain-real-estate/

My Links
http://delicious.com/ajlopez/blockchain

Stay tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

December 27, 2016

Blockchain: Links And Resources (21)

Filed under: Bitcoin, Blockchain, Ethereum, FinTech, Links, Machine Learning, Smart Contracts — ajlopez @ 12:03 pm

Previous Post
Next Post

Blockchain, Smart Contracts and Machine Learning to Drive Insurtech Platform Revenue
http://allcoinsnews.com/2016/12/13/blockchain-smart-contracts-and-machine-learning-to-drive-insurtech-platform-revenues-to-235bn-by-2021/

Blockchain Startup Set To Disrupt Prime Brokerage Sector, Launches Equity Crowdfunding
https://cointelegraph.com/news/blockchain-startup-set-to-disrupt-prime-brokerage-sector-launches-equity-crowdfunding-campaign

Blockchain Industry In 2017: Ready For New Exploits
https://cointelegraph.com/news/blockchain-industry-in-2017-ready-for-new-exploits

Time is Money as Alternative Banking Moves to the Blockchain – CoinDesk
http://www.coindesk.com/time-money-alternative-banking-moves-blockchain/

Why Bitcoin’s Remittance Disruption Slowed to a Crawl – CoinDesk
http://www.coindesk.com/why-bitcoins-remittance-disruption-slowed-to-a-crawl/

The State of Global Blockchain Consortia – CoinDesk
http://www.coindesk.com/state-global-blockchain-consortia/

Why Circle’s Bitcoin ‘Pivot’ Isn’t What it Seems – CoinDesk
http://www.coindesk.com/circle-bitcoin-shift-isnt-what-it-seems/

27 Financial Firms Form Korean Blockchain Consortium – CoinDesk
http://www.coindesk.com/27-financial-firms-form-korean-blockchain-consortium/

New Paper Explores Cryptocurrency for Space Colonies – CoinDesk
http://www.coindesk.com/new-paper-explores-cryptocurrency-space-colonies/

Dutch City Trials Blockchain for Real Estate Contracts – CoinDesk
http://www.coindesk.com/dutch-city-trials-blockchain-tools-real-estate-contracts/

The History of Casper — Chapter 4 – Medium
https://medium.com/@Vlad_Zamfir/the-history-of-casper-chapter-4-3855638b5f0e#.76m5lptb8

Awards, conferences, hackathons & more
https://blog.signatura.co/awards-conferences-hackathons-more-f98250517de#.tz79zfqmv

The Blockchain’s Great Power Shift… to us. Welcome to our weird future.
https://toa.life/the-great-power-shift-to-us-81d2d1b1d080#.r4u6iq5gq

BCG – Thinking Outside the Blocks
https://www.bcg.com/blockchain/thinking-outside-the-blocks.html

AISB 2016 – Institute for Blockchain Studies Website
http://blockchainstudies.org/BlockchainCogAI.html

My Links
http://delicious.com/ajlopez/blockchain

Stay tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

December 26, 2016

Blockchain: Links And Resources (20)

Previous Post
Next Post

Euklid, The New Blockchain, Artificial Intelligence-Powered Investment Bank
http://www.finsmes.com/2016/09/euklid-the-new-blockchain-artificial-intelligence-powered-investment-bank.html

How Fintech Is Dragging Banks to Blockchain and AI – CryptoCoinsNews
https://www.cryptocoinsnews.com/fintech-dragging-banks-blockchain-ai/

IBM Watson is Working to Bring AI to the Blockchain – CoinDesk
http://www.coindesk.com/ibm-watson-artificial-intelligence-blockchain/

The idea maze for AI startups | cdixon blog
http://cdixon.org/2015/02/01/the-ai-startup-idea-maze/

The Fantastic Possible Futures of AI + Blockchain in 2026
http://www.getlittlebird.com/blog/ai_blockchain_futures

Artificial Intelligence Intersects with Blockchain | Frank Diana’s Blog
https://frankdiana.net/2016/08/13/artificial-intelligence-intersects-with-blockchain/

Why Smart Contracts Will Need ‘Smart Term Sheets’ to Match – CoinDesk
http://www.coindesk.com/smart-contracts-will-need-smart-term-sheets-match/

Ethereum Classic’s Volume Has Fallen 99% From Its Peak – CoinDesk
http://www.coindesk.com/ethereum-classic-trading-volume-decline-99-percent/

A16z, USV Invest $10 Million in Blockchain Token Trading Firm – CoinDesk
http://www.coindesk.com/a16z-usv-invest-10-million-blockchain-token-trading-polychain-capital/

Wal-Mart Tackles Food Safety With Trial of Blockchain – Bloomberg
https://www.bloomberg.com/news/articles/2016-11-18/wal-mart-tackles-food-safety-with-test-of-blockchain-technology

Talking Bitcoin With International Experts In Cartagena | Tropical Gringo
http://www.tropicalgringo.com/english/general-english/bitcoin-cartagena/

Overstock Faces Investor Hurdles Ahead of Blockchain Stock Sale – CoinDesk
http://www.coindesk.com/overstock-investor-hurdles-blockchain-stock-sale/

My Links
http://delicious.com/ajlopez/blockchain

Stay tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

December 11, 2016

Blockchain: Links And Resources (17)

Filed under: Bitcoin, Blockchain, Ethereum, FinTech, Links, Smart Contracts — ajlopez @ 10:27 am

Previous Post
Next Post

The History of Casper – Chapter 1 – Ethereum Blog
https://blog.ethereum.org/2016/12/06/history-casper-chapter-1/

Why Stock Markets Love Blockchain
https://cointelegraph.com/news/why-stock-markets-love-blockchain

Stellar Launches SWIFT-like Blockchain-Backed Money Transfer Network
https://cointelegraph.com/news/stellar-launches-swift-like-blockchain-backed-money-transfer-network-

Empresa argentina Signatura validará documentos legales a través de Blockchain
http://www.diariobitcoin.com/index.php/2016/10/18/empresa-argentina-signatura-validara-documentos-legales-a-traves-de-blockchain/

Ethereum’s Woes Continue as Price Sinks to 9-Month Low – CoinDesk
http://www.coindesk.com/ethereums-price-woes-continue-digital-currency-hits-9-month-low/

US Federal Reserve Releases First Distributed Ledger Research Paper – CoinDesk
http://www.coindesk.com/federal-reserve-central-bank-distributed-ledger-research-paper/

Donald Trump’s Transition is a Trial Run for Smart Contracts – CoinDesk
http://www.coindesk.com/blockchain-builders-can-thrive-donald-trumps-america/

Six Blockchain Application Verticals (+1 Bonus)
https://blog.bigchaindb.com/six-blockchain-application-verticals-1-bonus-aa7caa5764e2#.yd1wu7vzt

My Links
http://delicious.com/ajlopez/blockchain

Stay tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

June 5, 2016

Compiling and Executing Smart Contracts (1)

Filed under: Bitcoin, Blockchain, Ethereum, Smart Contracts — ajlopez @ 10:22 am

I want to explore some options to compile and execute smart contracts in a blockchain. Some of these options already exist, but others are experimental or only base ideas. Although this initial post is centered around smart contracts in Ethereum, I plan to explore other implementations in upcoming posts.

If you are a newbie to smart contracts on Ethereum, read:

A 101 Noob Intro to Programming Smart Contracts on Ethereum
Making Sense of Blockchain Smart Contracts
Writing a contract

The usual path to program and execute smart contracts in that platform, is to write source code in Solidity programming language, compile it to bytecodes, and execute the resulting program using the Ethereum Virtual Machine:

But they are other options in programming language, compiling to Ethereum bytecodes, like Serpent, LLL:

But by far, Solidity is the most popular programming language in use. There is an emerging tool ecosystem around Solidity, and lots of examples.

Another option (to be explored, yet) is to compile a classic programming language to Ethereum bytecodes:

It is not an easy task: the programming language (Java, JavaScript, C#) has its own semantics, that it could be not easy to implement in pure Ethereum bytecodes. But one advantage of this approach, is that the developers can use all the tooling (IDEs, testing, … ) to write the smart contracts.

Executing the bytecodes in an Ethereum Virtual Machine implies to read bytecode by bytecode, and execute its semantic in a big code switch and loop. But it is not the only option. The bytecodes could be compiled to something more optimized:

As an implementation of this approach, there is the Ethereum Go approach: having a JIT optimizing compiler, read Optimising the Ethereum Virtual Machine. Excerpt:

The go-ethereum repository implements —among the Ethereum client and tool suite— the Ethereum Protocol in the Go language. It contains two implementation of the EVM, one extremely simple byte code interpreter that simple loops over the byte code and a JIT-like interpreter that compiles the byte code in to manageable data types and structures.

And there is another approach: to compile the bytecode semantic directly to programming language, then compile/interpret the resulting source code using the native compiler/interpreter:

The output source code would use the Ethereum VM data and structures, like the storage. One issue with this approach is that the bytecode could be a bit complicated, because it is oriented to the original programming language (ie Solidity) semantic, mapped by the compiler to the Ethereum VM bytecodes. As an example: a simple integer or string operation in Solidity could be mapped to too many bytecodes, because there is no simple operations in Ethereum VM specification to manage integers nor strings: the VM is oriented to manage integer numbers of 32 bytes (sometimes, 20 bytes as an address). Then, the bytecodes usually don’t reflect the original intention in a clear way.

A variant of the above approach: instead of generating source code in classic programming language, the output could be the bytecodes of the final executor, ie, Java bytecodes or CLR (.NET) bytecodes. But I think that this is only an optimized case, that could be implemented after the main case: the generation of source code could be a plus, to use it directly in programs, and in the final programming language tools, like an IDE.

Another idea: to compile existing source code in smart contract programming language, to classic language source code:

In this way, the original semantic of integers, strings, maps, could be implemented directly in Java or C#: at the end, only the storage status is important for a smart contract in Ethereum blockchain. If a Solidity contract could be compiled to programming language without altering the expected result, a programmer could use a lot of tools to run the generated contract.

I think that Solidity+Ethereum VM is the most popular implementation, and it is in the path to be the “de facto” approach, with more and more tooling and emerging ecosystem. But the other options deserve an exploratory implementation.

Upcoming post: out-of-Ethereum approachs, like Lisk running JavaScript smart contracts in NodeJS; more discussion of the options enumerated in this posts; more alternative implementations; specific discussion of Solidity to bytecodes compiling.

Stay tuned!

Angel “Java” Lopez
http://www.ajlopez.com
http://twitter.com/ajlopez

Blog at WordPress.com.