Skip to content

Instantly share code, notes, and snippets.

@schlangster
schlangster / main.cpp
Last active August 29, 2015 14:04
Cellscpp vs C++React benchmark
#include <chrono>
#include <iostream>
#include "react/Domain.h"
#include "react/Signal.h"
#include "cells.hpp"
using namespace std;
using namespace std::chrono;
scriptname DLI_ExampleLib_1 extends DLI_LibBase
; LIBRARY INFO ------------------------------------------------------------------------------------
; @override DLI_LibBase
string function GetLibraryName()
return "Example Library"
endFunction
; @override DLI_LibBase
scriptname Peer extends Quest
; debug
string property DebugName auto
string function Dump()
if (Successor)
return DebugName + " -> " + Successor.Dump()
else
scriptname UILIB_Base extends Quest
; SCRIPT VERSION ----------------------------------------------------------------------------------
int function GetVersion()
return -1
endFunction
; CONSTANTS ---------------------------------------------------------------------------------------
scriptname UILIB_1 extends UILIB_Base
; SCRIPT VERSION ----------------------------------------------------------------------------------
int function GetVersion()
return 1
endFunction
; FUNCTIONS ---------------------------------------------------------------------------------------
import skyui.util.GlobalFunctions;
// This is basically an exact copy of Messages.as from the vanilla repository
import uilib_2.Messages;
class uilib_2.NotificationArea extends MovieClip
{
/* CONSTANTS */
public static var UILIB_VERSION: Number = 2;