All Projects → magicmouse → Beads Examples

magicmouse / Beads Examples

Licence: other
Examples of Beads programs

Programming Languages

language
365 projects

Projects that are alternatives of or similar to Beads Examples

Runnerty Quick Start
Runnerty quick start example project
Stars: ✭ 11 (-78.43%)
Mutual labels:  sample
Codegen
A model-view based code generator written in Java
Stars: ✭ 36 (-29.41%)
Mutual labels:  generation
Openui5 Pwa Sample
How to build a progressive web app (PWA) with OpenUI5.
Stars: ✭ 43 (-15.69%)
Mutual labels:  sample
Yaas Getting Started Yaasbites
YaaS bites (our getting started series) is a tutorial and sample code set consisting of small, incremental coding exercises to help a developer learn the basics of the YaaS platform. Its goal is to ensure that a Software Developer's initial journies into YaaS are productive and successful.
Stars: ✭ 13 (-74.51%)
Mutual labels:  sample
React Firebase
🔥 Sample React + Firebase setup
Stars: ✭ 35 (-31.37%)
Mutual labels:  sample
Gpt2 Telegram Chatbot
GPT-2 Telegram Chat bot
Stars: ✭ 41 (-19.61%)
Mutual labels:  generation
Py Style Transfer
🎨 Artistic neural style transfer with tweaks (pytorch).
Stars: ✭ 23 (-54.9%)
Mutual labels:  generation
Viewtooltip
A fluent tooltip for Android
Stars: ✭ 1,029 (+1917.65%)
Mutual labels:  sample
Cloud Sfsf Benefits Ext
SAP Employee Benefits Management is a sample extension application for SuccessFactors Employee Central. The application runs on SAP Cloud Platform and can be used by employees to make orders in specific benefits' campaigns and by HR managers to manage employee benefits and set up new benefits campaigns.
Stars: ✭ 35 (-31.37%)
Mutual labels:  sample
Node Prince
Node API for executing PrinceXML via prince(1) CLI
Stars: ✭ 42 (-17.65%)
Mutual labels:  generation
Cloud Sample Library
TBD
Stars: ✭ 14 (-72.55%)
Mutual labels:  sample
Rxjava Android Samples
Learning RxJava for Android by example
Stars: ✭ 7,520 (+14645.1%)
Mutual labels:  sample
Describing a knowledge base
Code for Describing a Knowledge Base
Stars: ✭ 42 (-17.65%)
Mutual labels:  generation
Metrica Sample Dotnet
Yandex AppMetrica SDK Sample for Windows
Stars: ✭ 11 (-78.43%)
Mutual labels:  sample
Ci Samples
Sample configurations for various CI systems.
Stars: ✭ 44 (-13.73%)
Mutual labels:  sample
Kotlinsample Mvp
Sample Kotlin project with MVP implementation
Stars: ✭ 11 (-78.43%)
Mutual labels:  sample
Aspnetcore Tests Sample
A project to help demonstrate how to do unit, integration and acceptance tests with an web api project using ASP.NET Core and Angular 7 front end.
Stars: ✭ 40 (-21.57%)
Mutual labels:  sample
Swiftysampleproject
A starter project for Sample Project in swift 3.0/4.0 (also bridging header included so you could use objective c code in it as well ). For objectiveC version : https://github.com/xeieshan/SampleProject > Supports iOS 8.4+ > Swift 4.x
Stars: ✭ 47 (-7.84%)
Mutual labels:  sample
Randomdatagenerator
This is a configurable generator to create random data like Lorum Ipsum Text, Words, Text Patterns, First/Last Names, MAC-Addresses, IP-Addresses, Guids and DateTime.
Stars: ✭ 45 (-11.76%)
Mutual labels:  generation
Color.js
Extract colors from an image (0.75 KB) 🎨
Stars: ✭ 42 (-17.65%)
Mutual labels:  sample

Programming examples

These are examples with specifications posted in our GitHub repository, and are included in the SDK which you can download at Beadslang.org

Beads is not a minor rehash of Python or JS. It is a clean sheet design, carefully crafted to catch as many errors at compile time as possible so you spend less time debugging. These examples barely scratch the surface of the full range of Beads features, such as:

  1. can run in reverse (AKA time-travel-debugging)
  2. automatic refresh of screen areas when the underlying model changes
  3. protected arithmetic like Excel
  4. units of measure like 3 m + 2 ft (even at runtime)
  5. a proportional layout system that responds to size changes beautifully
  6. greatly simplified regular expressions
  7. a simple and flexible module system
  8. no make system needed for most projects

Example: Realtime stock price graph

screenshot

This is an example of a client + server program, showing how you can build both the client and the server in Beads. To develop this app, you start by first coding it as a standalone program, with fake data, and once you have the drawing part working well, you split off the data generation part into the server module. In this example you connect to the server (running the emitted JS code under Node.JS), and it will transmit to the client the prices. run here. Note that the server has to be running for the client to be able to connect. We don't run the server 24/7, mention it on the Discord group to fire it up.

Example: Sliding block puzzle

screenshot

The puzzle can be run here

Example: Translation tool

This is the handy graphical interactive localization utility for Beads. It allows you to visit Google translate to get your translation started, and lets you keep track of your translation progress, add new languages, etc.

Beads has a wonderful localization methodology, that people will find user friend and convenient.

for a video explanation of how to use it

screenshot

Example: Dijkstra's pathfinder algorithm

This Beads language sample program runs a simulation of Dijkstra's famous pathfinding algorithm.

You draw a wall with the mouse (right click to erase wall cells), and then you press ENTER and let the simulation run. You can also press SPACEBAR to go one step at a time.

snake example

Example: Temperature control

This is a simple temperature control which demonstrates the physical units of measurement in Beads, and how you can have a dual control and either one will update the model and refresh the other version of the control that uses the same data, all without locks or conflicts arising.

screenshot

Here is a short video talking about it.

Beads ep.005 video on YouTube

Example: Cycler utility

This handy utility shows how you can run a program inside another program in Beads (by using the monitor keyword instead of program on the first line of code).

screenshot

Here is a short video talking about it.

video example on YouTube

Example: Heat transfer simulation

In this example we show how you can use the physical units of measure features in the Beads language, where you can easily switch between the different temperature scales. Beads includes all the basic units used in engineering and science, with the unit conversions built into the language.

heat

Example: Animate1 -- Animation using the HTML Canvas

In this example we show how you can use the HTML canvas layer to achieve smooth animation effects.

constellation

Example: Animate1 -- Animation program execution

In this example we show a prototype of a way of illustrating program execution, as we call and return from functions:

constellation

Example: Beads versus Python

In this short 200 word example we take an existing Python program and rewrite it in Beads. They Python version draws to the console as if we were in 1970's, while the Beads version runs in the browser (or could be emitted for Desktop or Mobile platforms), and resizes even while running without skipping a beat.

The Python version is slightly shorter, but imports 4 libraries, and uses about 15 external functions. Beads uses only 7 external functions, and they are the same ones used in every program. The Python version uses a complex multi-threated scheme that requires semaphores and locking of critical sections. A rather advanced set of concepts. The Python version requires an external file to be read, because it doesn't have a powerful literal syntax.

tree

Example: HTTP form that re-arranges its layout

It is very common to need to have input forms and collect user data. This example shows how beads can rearrange a form based on the pixel density and size of a screen. As you make the window larger or smaller it resizes all the elements. This is different than HTML Flex boxes, as it completely rearranges the form using IF statements and can accomodate a very wide range of display densities and sizes. This means your forms can work on mobile devices which can have pixel densities 5 times that of a desktop. Many desktop forms are unusable on mobile. Complexity rating: 1200 words

form1A form1B form1C

Example: Chess

The classic board game. Complexity rating: 1500 words

chess example

Example: Tic-tac-toe client/server version

The classic board game, but in multiplayer form, where you can play or watch 12 different pairs of people playing across the internet, using TCP sockets. We write both the client and the server in Beads. The server publishes the game state, and the client subscribe to the published shared mutable state. Each of the players receives without any message handling code the updated state of the game. The clients make their moves by invoking remote function calls. You code the program as a standalone, then split the code into two parts. Client/server has never been so easy. No messy API's for message handling, all encoding and decoding is done automatically, and packets are sent in binary not JSON for maxiumum compactness and performance. A complexity rating of 1500 words.

tictactoe example

Example: Tic-tac-toe game standalone version

The classic children's game, two player (no AI). Complexity rating: 520 words

tictactoe example

Example: Color picker utility

A handy tool for programming; shows the HTML named colors, sorted in a convenient to use sort order. Approx. 1300 words.

color picker

Example: Bearsweeper game

The classic Minesweeper game, recast with a Bear in the starring role. Complexity rating: 1000 words

bearsweeper example

Example: Lumberjack game

A very simple wood chopping game, built for little kids. A rewrite of an existing React/TS game that is can be run here. We compare the two implementations to see how it differs in word count, number of dependencies, memory usage. Complexity rating: 750 words

lumberjack example

Example: Calculator

The classic Apple calculator program, except without the bugs that Apple has! Complexity rating: 500 words

calculator example

Example: Snake game

The classic snake game as popularized by Nokia cellphones. Probably the most fun per line of code ever made. Program complexity rating: 500 words.

snake example

Example: Sort method contest

The classic bubble sorting algorithm is pitted against the just slightly more complicated but a zillion times faster Quicksort amethod. Watch the two side by side sort the same number list, and see why Quicksort is so much more clever, by moving things larger distances. The larger the sample size the more terrible the bubble sort works. Program complexity rating: 440 words.

sort example

Example: Wristwatch simulation

This simple program simulates a wristwatch. Program complexity rating: 180 words.

watch example

Example: Analog clock

This simple program will draw a clock on the screen. This is among the shortest possible graphical programs one can imagine. Program complexity rating: 150 words.

clock example

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].