All Projects → jangko → razcal

jangko / razcal

Licence: MIT License
Build cross platform desktop app with Lua, MoonScript, and Layout Language

Programming Languages

nim
578 projects
lua
6591 projects

Projects that are alternatives of or similar to razcal

Driveway
pure CSS masonry layouts
Stars: ✭ 607 (+3946.67%)
Mutual labels:  layout, layout-engine
Framelayoutkit
FrameLayoutKit is a super fast and easy to use autolayout kit
Stars: ✭ 53 (+253.33%)
Mutual labels:  layout, layout-engine
Manuallayout
✂ Easy to use and flexible library for manually laying out views and layers for iOS and tvOS. Supports AsyncDisplayKit.
Stars: ✭ 286 (+1806.67%)
Mutual labels:  layout, layout-engine
Flexlayout
FlexLayout adds a nice Swift interface to the highly optimized facebook/yoga flexbox implementation. Concise, intuitive & chainable syntax.
Stars: ✭ 1,342 (+8846.67%)
Mutual labels:  layout, layout-engine
Core Layout
Flexbox & CSS-style Layout in Swift.
Stars: ✭ 215 (+1333.33%)
Mutual labels:  layout, layout-engine
StackViewLayout
Coming soon!
Stars: ✭ 26 (+73.33%)
Mutual labels:  layout, layout-engine
Allkit
🛠 Async List Layout Kit
Stars: ✭ 40 (+166.67%)
Mutual labels:  layout, layout-engine
Pinlayout
Fast Swift Views layouting without auto layout. No magic, pure code, full control and blazing fast. Concise syntax, intuitive, readable & chainable. [iOS/macOS/tvOS/CALayer]
Stars: ✭ 1,870 (+12366.67%)
Mutual labels:  layout, layout-engine
Muuri React
The layout engine for React
Stars: ✭ 163 (+986.67%)
Mutual labels:  layout, layout-engine
TextGraphic
TextGraphic is a framework for creating Textual Graphics. It provides layers, styling, rich color, text justification, layouts, tables, view-ports, transparency, etc.
Stars: ✭ 83 (+453.33%)
Mutual labels:  layout, layout-engine
Neel
A Nim library for making Electron-like HTML/JS GUI apps, with full access to Nim capabilities.
Stars: ✭ 144 (+860%)
Mutual labels:  desktop-app, nim-lang
Xampane
Xamarin Forms Layouts Library
Stars: ✭ 29 (+93.33%)
Mutual labels:  layout
ErrorLayout
Simple layout to show custom error toast with animation
Stars: ✭ 13 (-13.33%)
Mutual labels:  layout
cosmonim
A simple example to show how cosmopolitan libc can be used with Nim
Stars: ✭ 90 (+500%)
Mutual labels:  nim-lang
URTube
URTube, a YouTube video to MP3 downloader built in NodeJs and Electron
Stars: ✭ 20 (+33.33%)
Mutual labels:  desktop-app
ci4-album
🔥 CodeIgniter 4 example Album module uses Domain Driven Design Architecture with Tactical Pattern
Stars: ✭ 67 (+346.67%)
Mutual labels:  layout
quickmd
Quickly preview a markdown file
Stars: ✭ 24 (+60%)
Mutual labels:  desktop-app
FastBanner
🔥快速轮播图,支持自定义布局和使用自有图片显示组件
Stars: ✭ 27 (+80%)
Mutual labels:  layout
nimodpi
Oracle ODPI-C wrapper for Nim
Stars: ✭ 17 (+13.33%)
Mutual labels:  nim-lang
ben
Fast, native*, cross-platform Slack client, develop with React QML
Stars: ✭ 19 (+26.67%)
Mutual labels:  desktop-app

razcal

a cross platfrom desktop app framework written in Nim


A bit history

If you come here, you should already know something about electron, a big desktop app framework written in C++. Perhaps you also know CEF, electron minus node.js.

Well, I used them both in the past, and some of my project still depend on earlier version of CEF, but they grow up immensely, adding much features I don't need at all. Building the binary myself already a nightmare, removing unneeded features is worse.

Then I stumbled upon Layx, a layout language written in javascript. Then I thought, hey, why not we have something like electron/CEF, but lightweight and hackable. And of course, don't use xml-like whatsoever for the layout, we already have too much xml-like language to describe GUI.

That is how razcal idea was born, written in Nim, using Layx inspired layout language, scripted by MoonScript on top of Lua vm. Currently using kiwi as it's constraint solver algorithm. Thanks to Nim powerful metaprogramming feature, binding to Lua is easy, razcal use nimLUA to automate binding process interleaved with hand coded glue code.

You might be tempted to say this is an overly ambitious project. Using new emerging language like Nim and MoonScript, plus a home brew layout language, what kind of hybrid mutant razcal will be?

I will be nice, you can choose what component to be included in your final executable, you can add more functionality either using Nim, Lua, or MoonScript as a module. It already and always be easy to build.

Interesting facts

  • The main language to develop razcal is Nim, it has indentation significant syntax.
  • MoonScript provides a clean syntax using significant whitespace that avoids all the keyword noise typically seen in a Lua script.
  • razcal Layout Language, being inspired by Layx, also has significant whitespace syntax.

And I'm thinking to use Yaml as configuration script, which is also use indentation based syntax. Python?, hmm....., the standard Python is too big, perhaps MicroPython is more suitable.

Construction phase

The first phase already done. Now we can move to the next construction phase, a lot of work to do:

  • Parser
    • parse more styling syntax
      • text & fonts
      • colors & backgrounds
      • transformations
      • tables
      • input widget
    • parse conditional constraint
    • overflow/scrolling content
    • content size constraint
  • Semantic pass
    • activating more style
    • applying functional constraint
    • applying conditional constraint
    • exposing events to lua
  • API
    • widget geometry
    • anim/hierarchy
    • style
    • events
  • Test
    • conditional compilation system
    • robust test suite for Nim
    • for Lua side
    • automated build system
  • Docs
    • documentation
    • tutorial
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].