Asset streaming would require placeholder assets, as well as an ability to reload assets as needed. The placeholder would be returned, and then the real asset would be downloaded in the background. Once the asset has completed downloading, it would be refreshed, returning the real asset.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Title: std.ssl | |
Binds GnuTLS for easy interface with std.socket */ | |
module std.ssl; | |
import std.string, c.unistd, c.sys.socket, c.netdb, c.string, c.errno, c.gnutls.gnutls, std.socket; | |
pragma(lib,"gnutls"); | |
enum AuthType { | |
Client, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCost(A,B) | |
return (A-B).magnitude(); | |
end | |
while true | |
local point = getPosition(); | |
local points = { | |
point+vec2i( 1, 0), | |
point+vec2i( 0, 1), | |
point+vec2i( 1, 1), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tiffany@localhost scripts]$ fcc -O -release primes.nt | |
[tiffany@localhost scripts]$ time -p ./primes | |
real 3.47 | |
user 3.46 | |
sys 0.00 | |
[tiffany@localhost scripts]$ time -p luajit -O3 primes.lua | |
real 3.78 | |
user 3.77 | |
sys 0.00 | |
[tiffany@localhost scripts]$ gcc -std=c99 -o primes-c primes.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARGS = {...} | |
COLORCTL = string.char(3) | |
HOMESCREEN = { | |
screen = "hello, world!", | |
click = function(x,y) end, | |
line = function(str) end | |
} | |
function log(chan, msg) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tiffany@arch scripts]$ gcc -shared luajit_test.c -o libluajit_test.so | |
[tiffany@arch scripts]$ export LD_LIBRARY_PATH=. | |
[tiffany@arch scripts]$ luajit luajit_test.lua | |
hello, world | |
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local fun = {} | |
--[[ | |
fun.lua, tiffany's typeclass implementation in lua | |
Copyright (c) 2013 tiffany <tiffany@stormbit.net> | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tiffany@localhost ycm_build]$ make | |
[ 75%] Built target BoostParts | |
[ 87%] Built target ycm_core | |
[ 88%] Building CXX object ycm/tests/gmock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o | |
In file included from /home/tiffany/.vim/bundle/YouCompleteMe/cpp/ycm/tests/gmock/gtest/include/gtest/internal/gtest-linked_ptr.h:74:0, | |
from /home/tiffany/.vim/bundle/YouCompleteMe/cpp/ycm/tests/gmock/include/gmock/internal/gmock-port.h:45, | |
from /home/tiffany/.vim/bundle/YouCompleteMe/cpp/ycm/tests/gmock/include/gmock/internal/gmock-generated-internal-utils.h:44, | |
from /home/tiffany/.vim/bundle/YouCompleteMe/cpp/ycm/tests/gmock/include/gmock/internal/gmock-internal-utils.h:45, | |
from /home/tiffany/.vim/bundle/YouCompleteMe/cpp/ycm/tests/gmock/include/gmock/gmock-actions.h:46, | |
from /home/tiffany/.vim/bundle/YouCompleteMe/cpp/ycm/tests/gmock/include/gmock/gmock.h:58, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 1 | |
required-version: 140 // GLSL version | |
name: "Example Shader" | |
description: "A simple example shader, which shows how you could have conditional compilation based on whether or not texture coordinates are available." | |
#vertex-shader | |
#array-attrib position vec3 in_Position | |
#if drawable.texcoord | |
#array-attrib texcoord vec2 in_Texcoord | |
out vec2 texcoord; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::os; | |
enum Token { | |
Add, | |
Sub, | |
Mul, | |
Div, | |
Mod, | |
Func {name: ~str, args: ~[~str]}, | |
Num (int), |
OlderNewer