Scala Development with Ergo#
If you're new to Scala development with Ergo, the Ergo Scala Skeleton App is a great place to start.
Ergo's primary language is Scala. Similarly, the scripting language used by Ergo, ErgoScript, is also based on Scala, but the off-chain code can be written in any language. Developers have access to a growing selection of tools and Software Development Kits (SDKs) for JVM, Rust and JS/TS.
Scala has several features that set it apart from other JVM languages.
- Additionally, key ecosystem libraries for Scala support all platforms, and the popularity of Scala.js and Scala-native is increasing.
- Another advantage of Scala is its conciseness, both in terms of syntax and conceptual level.
- Despite its high-level nature, Scala can also be more efficient than similar Java code due to its ability to use primitive unboxed types, and the ability of the Scala compiler to perform code specialization.
- Furthermore, Scala is multi-paradigm, allowing for the combination of OOP, FP, and LP, making it suitable for a wide range of domains.
- Lastly, Scala3 brings even more powerful features such as metaprogramming and tools for zero-cost abstractions.
Here are some tutorials, guides, and explanations to help you get started with Scala development on Ergo:
- ErgoScript: Learn about ErgoScript, Ergo's scripting language.
- AppKit: Discover how to use Ergo's AppKit to develop applications.
- Ergo Tutorials by Zackbalbin: A collection of tutorials for Ergo development.
- Learning Ergo 101: Development Workflow: A guide to the development workflow for Ergo.
Here are some resources that can assist you in your Scala development journey with Ergo:
- Sigmastate-Interpreter: This is an ErgoScript compiler and ErgoTree Interpreter implementation for Ergo blockchain's Sigma Language. For the development of Ergo applications using JVM languages, consider using Appkit.
- ScoreX: An open-source, modular blockchain & cryptocurrency framework.
- Scrypto: An open-source cryptographic toolkit designed to make it easier and safer for developers to use cryptography in their applications. It's based on Scorex and used internally in Ergo Node and ergo-wallet.
- Ergo Scala Style Guide: Follow this guide to maintain consistency and readability in your Scala code.
Note: The public interfaces of these libraries are subject to change.