Skip to content

aldrinmartoq/brayatan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brayatan

Brayatan is a high performance, memory efficient and easy to program runtime for building services. It is part of «Brayatan Azikalao Pa las Nenas», a new platform for building the next generation of web applications.

Brayatan is based in core OS X technologies, like:

  • Objective-C 2.0
  • Blocks
  • Foundation framework
  • ARC Automatic Reference Counting
  • GCD Grand Central Dispatch

The project started using http_parser and libuv from nodejs project, the current status is:

  • libuv has been replaced by brayatan-core, a high performance libdispatch aware library that uses clang's blocks.
  • http_parser can't be replaced yet, but it works nicely with the current framework.

Building

Mac OS X

Download the latest Xcode from the App Store. Choose the scheme "sample01" and hit Run.

Linux

Prerequisites:

  • Ubuntu

      $ sudo apt-get install wget build-essential subversion
    
  • CentOS

      # yum install make gcc-c++ wget subversion
    

Add the following to your .bashrc, .profile or equivalent:

export BRAYATAN=$HOME/local/brayatan
export PATH=$BRAYATAN/bin:$PATH

Go to the linux/build folder and run make:

$ cd linux/build
$ time make -j 4

There is a makefile for the Raspberry Pi using the Raspbian image:

$ cd linux/build
$ time make -j 4 -f Makefile.raspbian

Go and get some coffe: everything will be downloaded, compiled and installed in your $HOME/local/brayatan folder. To build the sample01 source code, go to samples/sample01 and build it with brayatan-cc compiler:

$ cd samples/sample01
$ brayatan-cc main.m -o main
$ ./main

About

The best runtime for building web services, ever

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages