Skip to content

Instantly share code, notes, and snippets.

@sthalik
sthalik / cells.js
Created September 23, 2013 21:00
for Mike, unfinished, untested, 20130923
var Sheet = (function () {
"use strict";
var Integrity = []; // XXX TODO add integrity togglage -sh
var CellStack = [];
function BaseCell(formula) {
this._cached_value = null;
this._formula = formula;
this._fresh = false;
this._deps = [];
@sthalik
sthalik / cells.js
Created September 23, 2013 21:04
for Mike, fixed bug
var Sheet = (function () {
"use strict";
var Integrity = []; // XXX TODO add integrity togglage -sh
var CellStack = [];
function BaseCell(formula) {
this._cached_value = null;
this._formula = formula;
this._fresh = false;
this._deps = [];
@sthalik
sthalik / cells.js
Last active December 23, 2015 19:09
for Mike, 20130924_2
//noinspection JSUnusedGlobalSymbols
var Sheet = (function () {
"use strict";
var CellStack = [];
function BaseCell() {
this._cached_value = null;
this._fresh = false;
this._deps = [];
}
@sthalik
sthalik / cells.js
Created September 24, 2013 08:46
cells-js 20130924_2
//noinspection JSUnusedGlobalSymbols
var Sheet = (function () {
"use strict";
var CellStack = [];
function BaseCell() {
this._cached_value = null;
this._fresh = false;
this._deps = [];
}
@sthalik
sthalik / pachi-lto-comparison
Created November 14, 2013 17:09
pachi lto profiled and non-lto non-profiled
1272 pachi:lto-pessimizes!? % for i in `seq 1 5`; do { echo boardsize 19; echo genmove b } | **./pachi** 2>&1 | grep games/s ;done
genmove in 11.31s (1042 games/s, 1042 games/s/thread)
genmove in 12.81s (1303 games/s, 1303 games/s/thread)
genmove in 11.41s (1276 games/s, 1276 games/s/thread)
genmove in 12.81s (1286 games/s, 1286 games/s/thread)
genmove in 11.31s (1272 games/s, 1272 games/s/thread)
1273 pachi:lto-pessimizes!? % for i in `seq 1 5`; do { echo boardsize 19; echo genmove b } | **./pachi-norice** 2>&1 | grep games/s ;done
genmove in 12.81s (2038 games/s, 2038 games/s/thread)
genmove in 12.81s (2544 games/s, 2544 games/s/thread)
genmove in 12.81s (2551 games/s, 2551 games/s/thread)
@sthalik
sthalik / no results :(
Created November 14, 2013 17:54
pachi PGO attempt
---- pachi
genmove in 11.31s (2489 games/s, 2489 games/s/thread)
genmove in 12.81s (2542 games/s, 2542 games/s/thread)
genmove in 11.61s (2517 games/s, 2517 games/s/thread)
genmove in 12.81s (2485 games/s, 2485 games/s/thread)
genmove in 12.81s (2511 games/s, 2511 games/s/thread)
---- pachi-norice
genmove in 12.81s (2507 games/s, 2507 games/s/thread)
genmove in 12.81s (2541 games/s, 2541 games/s/thread)
genmove in 11.31s (2534 games/s, 2534 games/s/thread)
@sthalik
sthalik / gist:7475518
Created November 14, 2013 22:35
pachi with clang -flto and not
---- pachi-clang
genmove in 12.81s (2277 games/s, 2277 games/s/thread)
genmove in 12.81s (2325 games/s, 2325 games/s/thread)
genmove in 11.31s (2271 games/s, 2271 games/s/thread)
genmove in 12.81s (2373 games/s, 2373 games/s/thread)
genmove in 12.81s (2309 games/s, 2309 games/s/thread)
---- pachi-norice
genmove in 11.31s (2442 games/s, 2442 games/s/thread)
genmove in 12.81s (2494 games/s, 2494 games/s/thread)
genmove in 12.81s (2465 games/s, 2465 games/s/thread)
@sthalik
sthalik / gist:8406027
Created January 13, 2014 19:01
potentially fix hang despite volatile
diff --git a/facetracknoir/facetracknoir.cpp b/facetracknoir/facetracknoir.cpp
index b83f59d..d93f213 100644
--- a/facetracknoir/facetracknoir.cpp
+++ b/facetracknoir/facetracknoir.cpp
@@ -360,7 +360,6 @@ void FaceTrackNoIR::startTracker( ) {
#endif
if (tracker) {
- tracker->wait();
delete tracker;
diff --git a/src/gallium/state_trackers/nine/basetexture9.c b/src/gallium/state_trackers/nine/basetexture9.c
index 12da1e0..51bb2a6 100644
--- a/src/gallium/state_trackers/nine/basetexture9.c
+++ b/src/gallium/state_trackers/nine/basetexture9.c
@@ -452,8 +452,9 @@ NineBaseTexture9_UpdateSamplerView( struct NineBaseTexture9 *This,
if (unlikely(This->format == D3DFMT_NULL))
return D3D_OK;
NineBaseTexture9_Dump(This);
+ NineBaseTexture9_CreatePipeResource(This, true);
}
account:subscribe_mailbox('INBOX')
account:subscribe_mailbox('Junk')
E_JUNK = 'imapfilter-junk'
E_SEEN = 'imapfilter-seen'
E_SZ = 1024 * 512
update = false
repeat
new_sz = account.INBOX:is_smaller(E_SZ)