mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-04 22:00:34 +08:00
112 lines
5.6 KiB
Markdown
112 lines
5.6 KiB
Markdown
|
[#]: subject: "Slint 1.0 Release Gives Us a New Rust-based Open-Source GUI Toolkit"
|
||
|
[#]: via: "https://news.itsfoss.com/slint-1-0-release/"
|
||
|
[#]: author: "Sourav Rudra https://news.itsfoss.com/author/sourav/"
|
||
|
[#]: collector: "lkxed"
|
||
|
[#]: translator: " "
|
||
|
[#]: reviewer: " "
|
||
|
[#]: publisher: " "
|
||
|
[#]: url: " "
|
||
|
|
||
|
Slint 1.0 Release Gives Us a New Rust-based Open-Source GUI Toolkit
|
||
|
======
|
||
|
|
||
|
Slint is a new open-source GUI toolkit for desktops and embedded systems. What do you think about it?
|
||
|
|
||
|
![slint ui framework toolkit logo][1]
|
||
|
|
||
|
![][2]
|
||
|
|
||
|
Slint is a product of SixtyFPS GmbH, a start-up. It is an open-source toolkit for developing graphical user interfaces for **embedded devices** or **desktops**.
|
||
|
|
||
|
In a recent announcement, they introduced v1.0 after 3 years of development. They also shared insights on what they plan to do with this product offering.
|
||
|
|
||
|
Let's dive in and see what this is all about.
|
||
|
|
||
|
**What is happening?:** Initially known as SixtyFPS, Slint has come a long way since its inception in 2020. The GUI toolkit is now finally out of 'development mode'.
|
||
|
|
||
|
![a poster of slint 1.0][3]
|
||
|
|
||
|
Built from the ground up using **Rust**, it is a **modern GUI toolkit** conceived with scalability, inclusivity, tool-ability, and cross-platform compatibility in mind.
|
||
|
|
||
|
**How does it work?:** Slint uses **declarative programming** to streamline the development of a user interface by using a syntax that provides an extensive way to describe the various graphical elements that are easy to go through.
|
||
|
|
||
|
They also have a video to give you a head start:
|
||
|
|
||
|
![Simple GUI application with Slint and Rust][4]
|
||
|
|
||
|
The Slint compiler can also optimize and translate the UI description to native code.
|
||
|
|
||
|
To accelerate the UI development process, Slint has an **extensive tooling package** consisting of support for code completion, navigation, refactoring, and syntax highlighting.
|
||
|
|
||
|
![a gif showing the extensive tooling package on slint 1.0][5]
|
||
|
|
||
|
As you can see, it also has live preview support to see changes happening in real-time for instant feedback.
|
||
|
|
||
|
They also offer **Slint extension on the VS Code [marketplace][6]**, which works across Linux, Windows, macOS, and VS Code Web.
|
||
|
|
||
|
[Slint UI (Official Website)][7]
|
||
|
|
||
|
If you are curious and want to try it out now, you can check out their online demo [SlintPad][8], an online editor with a live preview.
|
||
|
|
||
|
Furthermore, Slint allows you to develop user interfaces for various operating systems and processor architectures, some of which include:
|
||
|
|
||
|
- **Linux (desktop and embedded), macOS, Windows, WebAssembly, Blackberry QNX, and bare metal.**
|
||
|
- **ARM Cortex-M and Cortex-A, Intel x86, RISC-V, Cadence Tensilica, and more.**
|
||
|
- **Software rendering/Hardware-accelerated graphics APIs, such as OpenGL ES.**
|
||
|
|
||
|
The lightweight nature of Slint can also be leveraged to build applications that **run on systems with significantly less RAM**.
|
||
|
|
||
|
They shared an example to demonstrate that claim with a **Raspberry Pi Pico** (with a mere 264 KB of RAM) running a printer demo built using Slint.
|
||
|
|
||
|
![a photo showcasing a printer demo made using slint running on an raspberry pi pico][9]
|
||
|
|
||
|
They shared an exciting piece of information: even if Slint is implemented using Rust, it **still supports other programming languages**, such as C++ and JavaScript.
|
||
|
|
||
|
Now.
|
||
|
|
||
|
**What's their business Model? How is all this financially viable?**
|
||
|
|
||
|
For starters, **Slint is an open-source project**, with its code available on [GitHub][10] under a **GPLv3 license**.
|
||
|
|
||
|
But, they also have a **proprietary license** that can be accessed via opting for one of the **paid plans** or by joining their '[Ambassador Program][11]' and getting the license for free.
|
||
|
|
||
|
> 📋 There are a few requirements that a project needs to comply with to have Ambassador status.
|
||
|
|
||
|
The proprietary license is compelling for businesses because it has added perks such as premium customer support, unlimited user seats, and more.
|
||
|
|
||
|
**Any plans for the future?**
|
||
|
|
||
|
They have laid out some promising plans for the future of Slint, one is to build a graphical editor for designers that would let them drag and drop widgets/elements to build the UI.
|
||
|
|
||
|
Then, there are plans to extend support for building **native iOS and Android apps,** and, of course, support for more programming languages.
|
||
|
|
||
|
⭐ This looks like it has good potential, but only time will tell.
|
||
|
|
||
|
Until then, you can go through its [announcement blog][12] to dive deeper.
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
|
||
|
via: https://news.itsfoss.com/slint-1-0-release/
|
||
|
|
||
|
作者:[Sourav Rudra][a]
|
||
|
选题:[lkxed][b]
|
||
|
译者:[译者ID](https://github.com/译者ID)
|
||
|
校对:[校对者ID](https://github.com/校对者ID)
|
||
|
|
||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||
|
|
||
|
[a]: https://news.itsfoss.com/author/sourav/
|
||
|
[b]: https://github.com/lkxed/
|
||
|
[1]: https://news.itsfoss.com/content/images/size/w1304/2023/04/slint-1-0-release.png
|
||
|
[2]: https://news.itsfoss.com/content/images/2023/03/linux-mega-packt.webp
|
||
|
[3]: https://news.itsfoss.com/content/images/2023/04/Slint_1.0.png
|
||
|
[4]: https://youtu.be/WBcv4V-whHk
|
||
|
[5]: https://news.itsfoss.com/content/images/2023/04/Slint_1.0_3.gif
|
||
|
[6]: https://marketplace.visualstudio.com/items?itemName=Slint.slint&ref=news.itsfoss.com
|
||
|
[7]: https://slint-ui.com/?ref=news.itsfoss.com
|
||
|
[8]: https://slint-ui.com/releases/1.0.0/editor/?ref=news.itsfoss.com
|
||
|
[9]: https://news.itsfoss.com/content/images/2023/04/Slint_1.0_2.jpeg
|
||
|
[10]: https://github.com/slint-ui/slint?ref=news.itsfoss.com
|
||
|
[11]: https://slint-ui.com/ambassador-program.html?ref=news.itsfoss.com
|
||
|
[12]: https://slint-ui.com/blog/announcing-slint-1.0.html?ref=news.itsfoss.com
|