{"id":6328,"date":"2023-07-20T08:32:38","date_gmt":"2023-07-20T08:32:38","guid":{"rendered":"https:\/\/metaschool.so\/articles\/?p=6328"},"modified":"2023-07-25T11:38:19","modified_gmt":"2023-07-25T11:38:19","slug":"solana-introduces-solang-solidity-compiler","status":"publish","type":"post","link":"https:\/\/metaschool.so\/articles\/solana-introduces-solang-solidity-compiler\/","title":{"rendered":"Solana Unveils Solang to Woo Ethereum Devs"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_56_1 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/metaschool.so\/articles\/solana-introduces-solang-solidity-compiler\/#Why_did_Solana_introduce_Solang\" title=\"Why did Solana introduce Solang?\">Why did Solana introduce Solang?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/metaschool.so\/articles\/solana-introduces-solang-solidity-compiler\/#How_does_the_Ethereum-Solana_compatibility_help_developers\" title=\"How does the Ethereum-Solana compatibility help developers?\">How does the Ethereum-Solana compatibility help developers?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/metaschool.so\/articles\/solana-introduces-solang-solidity-compiler\/#How_to_install_Solang\" title=\"How to install Solang?\">How to install Solang?<\/a><\/li><\/ul><\/nav><\/div>\n\n<p>When it comes to innovation and adapting new technologies, Solana Labs are way ahead in the game. After becoming the first <a href=\"https:\/\/metaschool.so\/articles\/layer-1-blockchain\/\" target=\"_blank\" rel=\"noreferrer noopener\">Layer-1 <\/a>blockchain to have integrated ChatGPT in May 2023, Solana is all set to set some new records. No wonder it is called the <em>Apple<\/em> of <a href=\"https:\/\/metaschool.so\/articles\/what-is-web3-guide\/\">Web3<\/a>. And so, on July 19, 2023, <a href=\"http:\/\/metaschool.so\/blockchains\/solana\" target=\"_blank\" rel=\"noreferrer noopener\">Solana<\/a> got on Twitter and officially announced the much-anticipated unveiling of Solang.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">1\/ \ud83c\udf89Introducing Solang: Building on Solana with Solidity<br><br>Today, <a href=\"https:\/\/twitter.com\/solanalabs?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">@solanalabs<\/a> announces Solang, a compiler enabling developers to write smart contracts on Solana in Solidity, the primary programming language of Ethereum.<a href=\"https:\/\/t.co\/X703sAMJBC\" target=\"_blank\">https:\/\/t.co\/X703sAMJBC<\/a><br><br>Learn more\ud83d\udc47<\/p>&mdash; Solana (@solana) <a href=\"https:\/\/twitter.com\/solana\/status\/1681654377059319808?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">July 19, 2023<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><figcaption>Source: <a href=\"https:\/\/twitter.com\/home\" target=\"_blank\" rel=\"noopener\">Twitter<\/a><\/figcaption><\/figure>\n\n\n\n<p>Solang is a Solidity compiler that is created and written in the <a href=\"https:\/\/metaschool.so\/articles\/guide-rust-smart-contract-programming-language\/\">Rust programming language<\/a>. Its main goal is to make it easier for <a href=\"https:\/\/metaschool.so\/articles\/what-is-ethereum-virtual-machine-evm\/\">Ethereum Virtual Machine (EVM)<\/a> users to smoothly transition to the Solana ecosystem.\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why-did-solana-introduce-solang\"><span class=\"ez-toc-section\" id=\"Why_did_Solana_introduce_Solang\"><\/span>Why did Solana introduce Solang?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Before Solang, Solana developers mainly leveraged Rust and C as the primary <a href=\"https:\/\/metaschool.so\/courses\/write-fungible-token-flow-blockchain\" target=\"_blank\" rel=\"noreferrer noopener\">smart contract development<\/a> languages.&nbsp;However, Solana, being a trailblazing innovator, soon realized that a Solidity compiler would lead to an immense increase in its users.<\/p>\n\n\n\n<p>This is because the native language of the <a href=\"https:\/\/metaschool.so\/blockchains\/ethereum\" target=\"_blank\" rel=\"noreferrer noopener\">Ethereum blockchain<\/a>, Solidity, happens to be the most popular programming language with a massive user base.\u00a0In fact, as per a survey conducted in 2023, out of 1401 respondents in a representative sample around 64% shared that they <a href=\"https:\/\/metaschool.so\/articles\/guide-solidity-contracts\/\">use Solidity<\/a> at work. The number of average daily users of Solidity is over 500,000. Solana, on the other hand, has 160,000 daily users.\u00a0<\/p>\n\n\n\n<p>\u2728 <strong>Read this:<\/strong> <a href=\"https:\/\/metaschool.so\/articles\/metaplex-guide-solana-nfts\/\">Guide to Metaplex, a Solana-based NFT Creator Studio<\/a><\/p>\n\n\n\n<p>So, with Solana\u2019s built-in features &#8211; efficiency, high TPS rate, and scalability &#8211; and the EVM-compatible Solang compiler, that leverages the usability and numbers of Solidity, the Solana network is poised to give the greatest development experience to its users and rise to the top.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-does-the-ethereum-solana-compatibility-help-developers\"><span class=\"ez-toc-section\" id=\"How_does_the_Ethereum-Solana_compatibility_help_developers\"><\/span>How does the Ethereum-Solana compatibility help developers?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>There is no doubt that Solang is especially great <a href=\"https:\/\/metaschool.so\/articles\/category\/trending-web3\/\" target=\"_blank\" rel=\"noreferrer noopener\">news for blockchain developers<\/a>. Because with the compiler, they can now build on Solana with Solidity and help bridge the gap between EVM and the Solana ecosystems.\u00a0This provides developers with a direct gateway to <a href=\"https:\/\/metaschool.so\/courses\/build-your-own-web3-twitter-dapp-with-solidity\" target=\"_blank\" rel=\"noreferrer noopener\">build decentralized applications<\/a> on Solana. That\u2019s some intricate level of interoperability.\u00a0<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"659\" src=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2023\/07\/F1cVtS3WIAA-Mcj.png\" alt=\"\" class=\"wp-image-6334\" srcset=\"https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2023\/07\/F1cVtS3WIAA-Mcj.png 852w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2023\/07\/F1cVtS3WIAA-Mcj-300x232.png 300w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2023\/07\/F1cVtS3WIAA-Mcj-150x116.png 150w, https:\/\/metaschool.so\/articles\/wp-content\/uploads\/2023\/07\/F1cVtS3WIAA-Mcj-768x594.png 768w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><figcaption>Image taken from <a href=\"https:\/\/github.com\/hyperledger\/solang\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Twitter<\/a><\/figcaption><\/figure><\/div>\n\n\n\n<p>Compatible with Ethereum Solidity version 0.8, Solang makes it easier for developers to make cross-chain applications, increases the overall interoperability between Solana and Ethereum, and eventually attracts more developers to the Solana network.<\/p>\n\n\n\n<p>\u2600\ufe0f <strong>Also see:<\/strong> <a href=\"https:\/\/metaschool.so\/courses\/create-your-own-solana-token-in-just-10-mins\" target=\"_blank\" rel=\"noreferrer noopener\">Create your own Solana token in Rust<\/a>\u00a0<\/p>\n\n\n\n<p>Moreover, Solang is going to be extra useful for those developers who want their dapps to gain value and a user base beyond their immediate blockchain ecosystem. All in all, the developers will now be able to <a href=\"https:\/\/metaschool.so\/courses\/writing-your-first-hello-world-contract-in-solidity\" target=\"_blank\" rel=\"noreferrer noopener\">write Ethereum smart contracts<\/a> that are compatible with Solana and vice versa. Developers can also leverage SPL tokens, Anchor and access Solana&#8217;s native built-in functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-install-solang\"><span class=\"ez-toc-section\" id=\"How_to_install_Solang\"><\/span>How to install Solang?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>When installing Solang, ensure to check your prerequisites These prereqs are having Rust and <a href=\"https:\/\/metaschool.so\/articles\/nodejs-crypto-module\/\">Node.js<\/a> installed on the system. Windows users will also need to have Windows Subsystem for Linux set up.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>Then, install the Solana Tool Suite which contains the latest version of Solang as well as Solana Command Line Interface (CLI).<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"3\"><li>Now, install the Anchor Framework, a widely used  Solana framework which greatly helps in simplifying the process of building Solana programs. Version 0.28 allows you to build Solang directly through Anchor.<\/li><\/ol>\n\n\n\n<ol class=\"wp-block-list\" start=\"4\"><li>Lastly, if you&#8217;re a Visual Studio Code (VSCode) user, Solana recommends to install the Solang extension to assist with syntax highlighting.<\/li><\/ol>\n\n\n\n<p><strong>In conclusion, <\/strong><\/p>\n\n\n\n<p>Solang is essentially a merger of two popular and powerful blockchains. It is the result of Solana\u2019s excellent efficiency and Solidity\u2019s popularity, diversity, and user base. What are your thoughts on this recent development? Tell us in the comments section below.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":11,"featured_media":6330,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[17],"tags":[],"class_list":["post-6328","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blockchain"],"_links":{"self":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/6328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/comments?post=6328"}],"version-history":[{"count":8,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/6328\/revisions"}],"predecessor-version":[{"id":6367,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/posts\/6328\/revisions\/6367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/media\/6330"}],"wp:attachment":[{"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/media?parent=6328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/categories?post=6328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/metaschool.so\/articles\/wp-json\/wp\/v2\/tags?post=6328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}