Logo
Cardano Ecosystem

Crypto News Flash (EN)

12/15/2022

·

162 views


Cardano: Haskell can now run in your browser

Cardano chief Charles Hoskinson announced that the smart contracts programming language Haskell can now run in the browser. The Haskell language addresses some of the shortcomings of JavaScript allowing...

Cardano: Haskell can now run in your browser
  • Cardano chief Charles Hoskinson announced that the smart contracts programming language Haskell can now run in the browser.
  • The Haskell language addresses some of the shortcomings of JavaScript allowing developers to write performant, correct, and maintainable code.

In the latest announcement on Wednesday, December 14, Cardano chief Charles Hoskinson announced that their native smart contracts programming language Haskell can run in the browser.

It took awhile, but haskell now can run in the browser. I wonder what Haskell to Javascript means for the industry? https://t.co/mpm6XWS1sK

— Charles Hoskinson (@IOHK_Charles) December 14, 2022

Haskell is a purely functional programming language that can handle a wide range of applications. It has an expressive syntax and a very rich built-in architecture. Cardano founder Charles Hoskinson has been quite optimistic about the capabilities of Haskell.

Cardano’s smart contracts and Marlowe, the domain-specific language for financial smart contracts, run on the Haskell programming language. Additionally, Cardano’s on-chain and off-chain codes are both written in Haskell.

One of the reasons Cardano’s Hoskinson chose Haskell is because it allows Plutus and Marlowe smart contracts to be built in a precise, formally proven language. This helps to deliver a high level of assurance right away. Now that the Haskell language can run in the browser, it would make the job of developers easier.

Cardano’s engineering team noted that they merged a new JavaScript backend into GHC recently. Thus, in the next release of GHC, it would be able to emit code that can run in browsers without needing any extra tools. This would further enable Haskell for both back-end and front-end applications.

Why JavaScript and why Haskell?

The engineering team at Cardano explains why they chose to have JavaScript in the backend. One of the biggest reasons is that JavaScript has a lion’s share of 97.3 percent of client-side programming. Besides it also offers portability allowing the Cardano team to focus majorly on the massive investments in the language and platform.

The Cardano engineering team believes that JavaScript backends provide different strengths. This would ultimately benefit the Haskell community to support both code generation paths in GHC for different use cases and requirements.

However, as per the Cardano team, the JavaScript language has a few shortcomings in early design decisions and downstream effects. Besides, with JavaScript, there are also some fundamental issues with asynchronous and concurrent programming as well as ecosystem security issues. The engineering team of Cardano writes:

Haskell makes this easy; or to get a little technical, the combination of Strong Static Hindley-Milner based typing allows us to write performant, correct, and maintainable code.

The benefit of using Haskell instead is code sharing: we can write the front-end of a web app in Haskell that compiles to JavaScript and the back-end in Haskell that compiles to machine code. In particular, the (de)serialization code (e.g. from/to JSON) is shared and cannot get out of sync between the front-end and the back-end.

Thus, they think that having a JavaScript backend in sync with GHC will add overall value to the Haskell ecosystem while offering a better user experience and reducing costs.

AD

World’s First Multi-Token ISPO — By Genius X - Starts on 12th of September, epoch 363!

Genius X, a revolutionary launchpad and business accelerator helping Web3 startups attain speed, scale, and edge, is thrilled to announce the world’s first Multi-Token ISPO.I WANT TO KNOW MORE!


Read Original Article on Crypto News Flash (EN)

ORIGINAL SOURCE

https://www.crypto-news-flash.com/cardan...

Disclaimer: Cardano Feed is a Decentralized News Aggregator that enables journalists, influencers, editors, publishers, websites and community members to share news about the Cardano Ecosystem. User must always do their own research and none of those articles are financial advices. The content is for informational purposes only and does not necessarily reflect our opinion.


NotifyLog - One stop tool for events tracking and analytics

More from Crypto News Flash (EN)

See more
Cardano gets a new sidechain with Cosmos and IOG's new interoperability partnership with World Mobile
Crypto News Flash (EN)
Cardano gets a new sidechain with Cosmos and IOG's new interoperability partnership with World Mobile

yesterday at 12:41 PM

·

4 views

Related News

See more
WingRiders Governance Token

Featured News

See more



    DEFAULTENGLISH (EN)SPANISH (ES)RUSSIAN (RU)GERMAN (DE)ITALIAN (IT)POLISH (PL)HUNGARIAN (HU)JAPANESE (JA)THAI (TH)ARABIC (AR)VIETNAMESE (VI)PERSIAN (FA)GREEK (EL)INDONESIAN (ID)ROMANIAN (RO)KOREAN (KO)FRENCH (FR)CZECH (CS)PORTUGUESE (PT)TURKISH (TR)
NotifyLog - One stop tool for events tracking and analyticsWorld’s First Multi-Token ISPO — By Genius X