All Projects → yvt → Stella2

yvt / Stella2

Licence: GPL-3.0 License
Light-weight desktop client for instant messaging services (abandoned)

Programming Languages

rust
11053 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Stella2

USB-Rubber-Ducky-App
🐣 Windows GUI for USB Rubber Ducky
Stars: ✭ 63 (+34.04%)
Mutual labels:  gui-application
CemUI
A small launcher for the Cemu WiiU emulator made with Electron. Currently on hiatus, development is currently being focused on Pretendo https://github.com/PretendoNetwork/Pretendo
Stars: ✭ 118 (+151.06%)
Mutual labels:  gui-application
SimpleDrawing-Desktop-App
SimpleDrawing is a basic desktop sketching application build using the Dear PyGui Graphical User Interface Toolkit in python for producing neat and quick sketches.
Stars: ✭ 14 (-70.21%)
Mutual labels:  gui-application
ExpertVideoToolbox
A lightweight, versatile GUI of x264, x265. Nearly full input formats support, .mkv and .mp4 output support. Avs support will be added soon. Language: Chinese
Stars: ✭ 12 (-74.47%)
Mutual labels:  gui-application
Tkinter-Designer
An easy and fast way to create a Python GUI 🐍
Stars: ✭ 4,697 (+9893.62%)
Mutual labels:  gui-application
guiserver
A server application, providing GUI service.
Stars: ✭ 24 (-48.94%)
Mutual labels:  gui-application
glimmer-cs-gladiator
Gladiator (Glimmer Editor) - Glimmer Custom Shell
Stars: ✭ 26 (-44.68%)
Mutual labels:  gui-application
mbsim
A multi-body simulation software
Stars: ✭ 22 (-53.19%)
Mutual labels:  gui-application
hexrdgui
Qt5 PySide2 based GUI for the HEXRD library.
Stars: ✭ 15 (-68.09%)
Mutual labels:  gui-application
Neel
A Nim library for making Electron-like HTML/JS GUI apps, with full access to Nim capabilities.
Stars: ✭ 144 (+206.38%)
Mutual labels:  gui-application
libnvc
Easy way to embed (neo)vim in your application
Stars: ✭ 32 (-31.91%)
Mutual labels:  gui-application
dynamoit
A simple AWS DynamoDB viewer
Stars: ✭ 32 (-31.91%)
Mutual labels:  gui-application
voce-browser
Voice Controlled Chromium Web Browser
Stars: ✭ 34 (-27.66%)
Mutual labels:  gui-application
YANGstraight source
Analytic signal-based source information analysis for YANGstraight and real-time interactive tools
Stars: ✭ 31 (-34.04%)
Mutual labels:  gui-application
JavaQemu
JavaQemu is a Graphical User Interface Front End for QEMU, written in Java.
Stars: ✭ 28 (-40.43%)
Mutual labels:  gui-application
Python-GUI-Bookstore
database application(SQLITE) with simple graphical user interface built by Tkinter
Stars: ✭ 41 (-12.77%)
Mutual labels:  gui-application
erk
Ərk is an open source, cross-platform IRC client written in Python 3, Qt 5, and Twisted.
Stars: ✭ 21 (-55.32%)
Mutual labels:  gui-application
TwitchLink
Twitch Stream & Video & Clip Downloader.
Stars: ✭ 24 (-48.94%)
Mutual labels:  gui-application
Spedread
GTK speed reading software: Read like a speedrunner!
Stars: ✭ 23 (-51.06%)
Mutual labels:  gui-application
Qt5-MusicPlayer
基于Qt5开发的一个小巧精美的本地音乐播放器。代码注释详细,适合作为一个用于入门的Qt5实战项目。
Stars: ✭ 136 (+189.36%)
Mutual labels:  gui-application

Stella 2

Build Status

Work in progressNightly builds

This project aims to create a lightweight instant messaging client in the Rust programming language.

  • Widget toolkit (in progress)
  • UI state persistence
  • UI translation system
  • Data model
  • Connectivity

Goals

Important goals:

  • Security. Memory safety is the foundation of almost all security features, and it is the great offering of the Rust programming language. However, as many of us have seen, native libraries written in a traditional way tend to be poor in terms of security and stability, thus may go against this goal. But it is also possible that such libraries are already well-audited and battle-tested through a widespread adoption. Even Rust itself is not a panacea against all memory safety issues. Therefore, we should not dismiss practical and lightweight defensive techniques such as stack protector, control-flow integrity, code signing enforcement, address space layout randomization, and OS-level sandboxing.
  • Small memory footprint and preferring file mapping over anonymous mapping. It's been repeatedly shown that rewriting a system in Rust leads to a lower memory consumption. But it's actually merely a starting point for this project. Short-sighted coding practices such as using HashMap for storing measly one or two elements cause unnecessary code bloat and it takes only a few lines of code to cause that. All possibilities should be taken into consideration. Other techniques to reduce the code size include: A plain static generates less code than lazy_static!. Static drawing commands are better expressed as data than code. Padding a data structure to 2ⁿ bytes decreases the code size because copying can be done in a single instruction. LinkedList produces less code than Vec for some usage patterns. SIMD instructions not only reduce the μ-ops count and improve the execution speed, but also reduce the code size by multiple factors. Bit flags are more space-efficient than bool fields even if they are local variables.
  • Cross platform.
  • Responsive (fast-reacting) UI. Updating the UI should not be delayed by something that has nothing to do with updating the UI (this is somewhat ill-defined - what if you need some data from disk to render the UI?).
  • Support for handling multilingual texts. Some scripts are incredibly hard to process, but most desktop environments already include a provision for doing that.

Goals:

  • Reasonable user experience.
  • Reasonable developer experience.
  • High quality rendering.
  • Accurate color reproduction.
  • Low power consumption. This is related to some of the other goals: Smaller memory footprint leads to lower power consumption because fewer data has to be moved between different levels of the memory hierarchy. Fast-reacting UI correlates with this, but it is also important that simply doing work in a background thread does not reduce the power consumption. This goal ultimately leads to a better user experience because of a prolonged battery lifetime and less frequent thermal throttling of CPU.
  • Space-efficient UI that doesn't fill the desktop of an 11-inch netbook.
  • UI localization. Preferably with platform-independent translation data.
  • Resilience against recoverable I/O errors. Terminating the application should not leave the stored data in an inconsistent state. The disk running out of space should not corrupt the stored data. Graphics driver failure should not disrupt the application's behavior unless it also breaks the target window system.

Neutral:

  • Cold build time. While I care much about the final executable, I don't care very much about the compilation process. It would be nice to get it to compile faster, though.
  • Stable Rust support.
  • Using innovative and/or awesome technologies. Other goals shown here should be taken into consideration when choosing technologies and approaches. Nothing should be preferred simply because it's cool. Nothing should be disregarded simply because it's old-fashioned.
  • "Rusty" Rust code.
  • Supporting running on the web platform.

Anti-goals:

  • Memory imperialism. We may be tempted to put everything (e.g., a 2D vector graphics library or even the entirety of a web rendering engine) in the executable by static linking and get rid of runtime dependencies. This practice is harmful for several reasons: (1) It prevents individual components from being updated and causes security problems. (2) It increases the total working set of the system because static linking impedes code sharing between processes. Instead, we should make a liberal use of common/system libraries offered by the target platform. We should leverage the target platform's error reporting facility such as CrashReporter (macOS) and MiniDumpWriteDump (Windows).
  • Native-looking widgets. Attempts to imitate the look and feel of each platform's native widgets are prone to end up with being alien to every platform.
  • Writing UI completely separately for every supported platform. That makes it hard to make changes to UI and to maintain feature parity between platforms.
  • Supporting mobile platforms. Their UI norms are significantly different from those of desktop apps and practically require us to write a separate UI front-end for each kind of platform.
  • Interpreted language. The bytecode of an interpreted language is more compact than native machine instructions, but it's utterly inefficient to execute, contradicting many of this project's goals. Furthermore, its control flow is defined purely by read/writable data, meaning its not protected by control-flow hardening techniques. Practical interpreted languages usually have an escape hatch such as FFI that enables memory-unsafe operations. This implies interpreted languages can be less secure than compiled languages which are designed for memory safety.

Directory structure

stella2
 │
 ├╴ci               CI configuration
 │
 ├╴docs             Assets for README.md
 │
 ├╴stella2          The main program
 │
 ├╴stella2_assets   Image resources for the main program
 │
 ├╴res              Things related to metadata attached to Stella2's executable
 │  │
 │  ├╴mkmacosbundle A command-line utility for creating a macOS application
 │  │               bundle (This program is invoked from `/build-mac.sh`.)
 │  │
 │  └╴windres       Windows resources (application icon, manifest, etc.)
 │
 ├╴tcw3             TCW3, the GUI framework
 │
 ├╴harmony          A state management library
 │
 ├╴stvg             A library for encoding/decoding vector images
 │
 └╴support          An assortment of supporting libraries

Testing

TCW3 includes a headless backend named testing, which is provided for testing purposes. It's disabled by default because of the additional dependencies it introduces. Use the feature flag tcw3/testing to enable it:

 cd tcw3
 cargo test --features testing

When testing the whole workspace, specifying features on individual crates won't work (rust-lang/cargo#6195), so pass --all-features instead:

 cargo test --workspace --all-features

Prerequisites

Build Toolchain

The nightly Rust compiler is required. Depending on when you are reading this, a stable compiler might work. If you use rustup, it will automatically install the required toolchain (specified by rust-toolchain) when running the cargo command.

Windows:

You need a MSVC toolchain with MSVC 2019 and the latest Windows SDK. MinGW toolchains are not supported.

GTK/GLib

When building for a Linux system or using TCW3's testing backend, some crates expect GLib, Cairo, and Pango development files to be installed on your system. You also need GTK3, GDK3, and ATK development files when building for a Linux system.

Fedora:

sudo yum install glib2-devel cairo-devel cairo-gobject-devel pango-devel \
     gtk3-devel atk-devel

Nix: (Works on macOS and NixOS)

nix-shell --run 'cargo build --release -p stella2'

Windows:

gtk-rs's Requirements page provides an excellent guide on how to configure a development environment for GTK.

Third-party software

This source tree includes the following third-party projects:

License

The project as a whole is licensed under the GNU General Public License v3.0 or later.

Some subprojects such as TCW3 are licensed under a more liberal license. Some supporting libraries (especially those which are vendored) such as alt_fp are considered independent and have their own license, while other libraries are considered as a part of this project and thus licensed under the GPL 3.0+. Please check the license field of Cargo.toml to find out their license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].