View phpironman.vim
1 2 3 4 5 6 7 8 9 10
" Vim color file
" Author: Yo-An Lin <yoanlin93@gmail.com>
" Last Change: 2015-2-26
" Version: 1.0
" GUI only
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
View token.php
1 2 3 4 5 6 7 8 9 10
<?php
class Token
{
public $type;
public $val;
public function __construct($type, $val) {
$this->type = $type;
$this->val = $val;
View fab.asm
1 2 3 4 5 6 7 8 9
; nasm -f macho64 fab.asm && ld -arch x86_64 -lSystem fab.o -o fab && ./fab
 
global start
 
extern _printf
 
section .text
 
 
View perl5-jit-plan.md

Perl5: method based tracing for JIT (just in time complation)

During the execution:

  • Trace and collect the argument types for the method and the return value type. (some method returns mixed type variable, we should ignore that kind of the method)
  • Add the type signature to the method, each type signature refers to the compiled machine code.
  • Calculate the execution times of a method and see if it exceeds the threshold.

When compiling a method, the compiler:

View gist:7c090cd1f43b55344688
1 2 3 4 5 6 7 8 9 10
php benchmarks/serializer.php
n=30000
Runing json_encode - . 83464.528488116/s
Runing json_decode - . 59165.647102636/s
Runing serialize - . 76887.615465133/s
Runing unserialize - . 63165.897104579/s
Runing yaml_emit - . 26203.323636738/s
 
Rate Mem json_encode serialize unserialize json_decode yaml_emit
json_encode 83.46K/s 0B -- -92% -75% -70% -31%
View xhprof.php
1 2 3 4 5 6 7 8 9 10
<?php
require 'vendor/autoload.php';
use SQLBuilder\RawValue;
use SQLBuilder\ToSqlInterface;
use SQLBuilder\ArgumentArray;
use SQLBuilder\Query\InsertQuery;
use SQLBuilder\Query\SelectQuery;
use SQLBuilder\Query\SelectQueryX;
use SQLBuilder\Driver\MySQLDriver;
View gist:3d2da09057cefde36292
1 2 3 4 5 6 7 8 9 10
09:07 -!- Irssi: Join to #webconf.tw was synced in 133 secs
09:08 < MouseMs> 大家早安
09:08 < locy69> 早安
09:09 < StarNight> 早安!~
09:10 < MouseMs> [SITCON] 答案填寫單將於9:30開放submit答案 PS:同時也會開放第五題唷 今天的題目都比較簡單 歡迎大家挑戰:)
09:13 < bency> 早安
09:13 < BeataLin> 早安!
09:21 < SITCON> 今天也有3題等著大家挑戰唷^^
09:23 < kikiqqp_> 今天R0的有線網路有點怪怪的
09:25 < ChAndrew> Good Morning!!
View gist:85315d841810ccbe26aa
1 2 3 4 5 6 7 8 9 10
make VERBOSE=1
/Applications/Xcode.app/Contents/Developer/usr/bin/make rec.opt
set -e; for i in fsevents utils fsnotify_darwin avl dfind globals hhi heap procs deps parsing naming typing server socket client stubs; do /Applications/Xcode.app/Contents/Developer/usr/bin/make -C $i all.opt || exit 1; done
ocamlc -g -dtypes -w -21 -warn-error +a -ccopt -g -c fsevents_stubs.c -o fsevents_stubs.o
ocamlc -g -dtypes -w -21 -warn-error +a -c fsevents.mli
ocamlopt -g -dtypes -w -21 -warn-error +a -c fsevents.ml
ocamlmklib -o fsevents -L. -framework CoreServices -framework CoreFoundation fsevents_stubs.o fsevents.cmx
ocamlopt -g -dtypes -w -21 -warn-error +a -c hh_json.ml
ocamlc -g -dtypes -w -21 -warn-error +a -c path.mli
ocamlopt -g -dtypes -w -21 -warn-error +a -c path.ml
View cmake.log
1 2 3 4 5 6 7 8 9 10
cat cmake.log
-- The C compiler identification is GNU 4.8.3
-- The CXX compiler identification is GNU 4.8.3
-- The ASM compiler identification is GNU
-- Found assembler: /opt/local/bin/gcc-mp-4.8
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /opt/local/bin/gcc-mp-4.8
View install-hhvm-macports.sh
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
git clone --recursive git://github.com/facebook/hhvm.git
cd hhvm
git checkout -t origin/HHVM-3.2
 
wget http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2
tar xvf jemalloc-3.6.0.tar.bz2
cd jemalloc-3.6.0
 
cat <<END | patch -p0 src/jemalloc.c
Something went wrong with that request. Please try again.