Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly

Four months had passed since the kick off of our awesome blockchain developers meetup. So far we’ve had very good speakers and topics. Moreover, we are happy to see new faces in the rows and to see our community growing.

Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 1
Blockchain Developers Meetup Bulgaria — 04

This time we had a small technical issue, the youtube live stream crashed a few times and we were unable to fix it on time, so we couldn’t record the whole session and we would like to apologize for that to the people watching us online. In this post, we will share with you the essence of yesterday’s meet-up.


The event went as follows.

In the first part

We covered crypto related news covering Forks, Security, and technology advancements, without going into many technical details. In the second part we have our fantastic speaker Preslav Mihaylov, head of blockchain training at Software University (SoftUni Sofia), introduce the public to Solidity Assembly.

Let’s look more into the details …

Our CEO Milen Radkov went to meet with some cool guys at Web Summit in Lisbon, so this time our Business Development Manager Hristo led the party — it was about time someone else to do so.

We spoke about the recently released Cardano Rust Project, which is basically an API allowing third-party developers to dive into Cardano. It is worth mentioning that the project is a toolkit compatible for iOS, Web, and Android.

Secondly, we discussed the rise of the Bitcoin sidechains with the release of Blockstream’s Liquid Network. An alternative to the Lightning network but with focus on exchanges and the big financial institutions(worth having a look at).

We did not miss to mention the unsuccessful release of Constantinople Hard Fork that did not manage to sync after launch with the Testnet. Few reasons were mentioned by Afri Schoedon, Parity dev and the takeaway is that the fork will be delayed until sometime in 2019.

Next, we looked at a rather worrisome report saying that over 54% of the 100 top daily volume exchanges have security issues. And the most common issues are related to:

  • Console errors
  • User Account Security
  • Registar and Domain Security
  • Web Protocol Security

Next topic was the exiting release of Sapling, Zcash hard fork allowing shielded transfers to be completed with 100 times less memory (around 40mb) and probably six or more times faster. With this upgrade Zcash confidential transactions are getting mobile friendly because one does not need to run a full node anymore to run them. Zcash are bringing to us their awesome technology that will lead to us to the era of “privacy-by-default”.

Just before the end of the news review, we mentioned the first Truckload Shipment Using Bitcoin Smart Contracts with Rootstock (RSK). During the shipment, the Funds for the transaction were held in escrow by the smart contract on the integrated RSK platform and were automatically released to the carrier upon delivery.

And lastly, we discussed a recent EOS report pointing out the EOS has misled the public on the number of transaction that it can handle. The study was funded by the Bounties Network which is led by Brent Xu of ConsenSys and for this purpose replicated the EOS network to analyze its performance during two months of testing. The conclusions it reached are fairly damning. They say, for example:

— “EOS is not a blockchain, rather a distributed homogeneous database management system, a clear distinction in that their transactions are not cryptographically validated.”

— “The performance metrics observed when factors such as real-world network latency and packet loss are implemented indicate that TPS in EOS approaches levels comparable to Ethereum.”

— Various forms of consensus failure were shown in the network testing. Consensus is entirely dependent upon the voting mechanism which is based on social consensus, not algorithmic BFT consensus.”

Getting more technical

Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 2
Preslav Mihaylov

Before we dive into Assembly, Preslav gave to the audience an overview of Assembly Language and the Programming Language Types.

We discussed what are the advantages and the disadvantages of Compiled Languages over Interpreted Languages VM based Languages.

We also looked at how they actually work:

Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 3
from assembly via Assembler directly to Machine code
Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 4
Compiled Languages — Best Performance/ Lack of portability
Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 5
Comfortable high-level features/ Worst Performance
Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 6
a mix between compiled and interpreted languages

We also discussed how the EVM is working and what are its benefits

Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 7
platform independent

Preslav explained the benefits of using Solidity Assembly, but also did not miss to explain the risks related to using it. Using Assembly to achieve features that are not yet introduced into Solidity can come to a high price if one messes up the opcode.

During the Live Demo, we have been introduced to Basic Operations in Assembly aiming to boost developers confidence when they encounter Assembly at work.

Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 8
Basic operations in Assembly
Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 9
using jump to implement for loop in Assembly

At the last part of Preslav’s presentation, we discussed the different types of memory in the EVM and their particularities.

Looking forward to meeting you on our next meetup.


If you liked this article don’t hesitate to follow us on Medium. We are committed to developing the best Blockchain Developers Community in Europe!

Special thanks to our guest lecturer Preslav Mihaylov and to the host of our fourth meetup SoftUni.


Watch the meetup session here:

Introduction to Solidity Assembly – 0x04 [Blockchain Developers Meetup]

References and Resources

News Sources mentioned in the meetup


If you are interested in talking on some cool topic, or you want to propose some topic to be discussed — just drop us a line at events@hack.bg or write down a comment / reply.

If you want to be informed for our next events and meetups — join us:

Blockchain Developers Meetup Group:

Blockchain Developers Meetup (Bulgaria)

Sofia, BG
144 Developers

Blockchain Developers Meetup Bulgaria- #0x04  - Introduction to Solidity Assembly 10

In this group, we will share knowledge about blockchain and smart contract development. We will talk about Ethereum, Aeternity, Polkadot, NEO, EOS, RSK, Hyperledger and other …

Next Meetup

0x09. TBA

Thursday, Apr 25, 2019, 7:00 PM
1 Attending

Check out this Meetup Group →

Blockchain Developers Facebook Group:

Website: https://hack.bg

Follow us on social media:


Also published on Medium.

About the author

Business Developer

Hristo is a Business Development Manager who is helping businesses to harness the potential of blockchain technology. His broad view on the world and natural communication talent are helping him to connect ideas and people. His curiosity is pushing him to explore new trends and new technologies. Hristo likes to digest huge amounts of information and to share his findings and experience with his readers to help them make better decisions for their lives and their businesses.

Hristo Georgiev

Let's build the decentralized future together!

Subscribe for updates from the blog

Leave a Reply

Your email address will not be published. Required fields are marked *