Skip to content

Instantly share code, notes, and snippets.

View reeze's full-sized avatar
🎯
Focusing

Reeze Xia reeze

🎯
Focusing
View GitHub Profile
#import <Foundation/Foundation.h>
@interface XmlParser : NSObject <NSXMLParserDelegate>
@property (strong, nonatomic) NSData *xmlData;
@property (strong, nonatomic) NSMutableDictionary *dictionary;
@property (strong, nonatomic) NSMutableDictionary *currentNode;
@property (strong, nonatomic) NSMutableDictionary *currentParentNode;
- (id)initWithXMLData:(NSData *)xmlData;
@reeze
reeze / HD.txt
Created June 27, 2013 11:25 — forked from lexrus/HD.txt
http://devstreaming.apple.com/videos/wwdc/2013/710xfx3xn8197k4i9s2rvyb/710/710-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/202xdx2x47ezp1wein/202/202-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/200xdx2x35e1pxiinm/200/200-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/413xdx5x97itb5ek4yex3r7/413/413-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/612xax4xx65z1ervy5np1qb/612/612-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/221xex4xxohbllf4hblyngt/221/221-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/220xbx4xipaxfd1tggxuoib/220/220-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/711xcx4x8yuutk8sady6t9f/711/711-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/404xbx2xvp1eaaqonr8zokm/404/404-HD.mov?dl=1
http://devstreaming.apple.com/videos/wwdc/2013/505xbx4xrgmhwby4oiwkrpp/505/505-HD.mov?dl=1
> [百度Lamp技术博客](/) 原创作品,转载时请务必以超链接形式标明文章 [原始出处](http://lamp.baidu.com/2014/11/03/hhvm-in-baidu/) 、作者信息和本声明。否则将追究法律责任。
##背景
HHVM 其前身是hiphop(hphpc),进行php代码->cpp代码->二进制的转换,这个引擎属于静态编译优化,在Facebook应用了4年(2007-2011),但是由于开发、编译、调试、维护并不方便,所以2011年12月Facebook 开始了HHVM的开发和调研;
也就是hiphop->hphpi->hhvm的一个发展。
1. HipHop PHP: 将PHP代码翻译成C++代码,然后编译成二进制运行
1. hphpi: 为了解决编译太慢的问题,实现的一个PHP解释器,不过代码和hphpc很多都不一样,有很多的问题
1. HHVM:一个真正的虚拟机,目标是和Zend VM保持兼容。
# 2014-11-09 Issue #2 第二期
Arch Weekly ——arch同学共同整理的技术周报
> 投稿专线: tbrd_arch@baidu.com hi群 QQ群
## 会议
1. AWS亚马逊技术峰会:<http://www.awssummitbeijing.com/index.html?Code=infoq>
diff --git a/build/config-stubs b/build/config-stubs
index 765eb54..0d84f4b 100755
--- a/build/config-stubs
+++ b/build/config-stubs
@@ -6,5 +6,11 @@ dir=$1; shift
for stubfile in $dir/*/config0.m4 $dir/*/config.m4 $dir/*/config9.m4; do
echo "config_m4_src=$stubfile
config_m4_dir=`dirname $stubfile`
+
+dnl Define where extension directories are located in the configure context
@reeze
reeze / 0001-Improved-fix-for-bug-70944.patch
Last active November 21, 2015 06:03
0001-Improved-fix-for-bug-70944.patch
From 3899310384cd2416156dd54d9a6fa2889ba16698 Mon Sep 17 00:00:00 2001
From: Reeze Xia <reeze@php.net>
Date: Sat, 21 Nov 2015 13:46:07 +0800
Subject: [PATCH] Improved fix for bug #70944
---
Zend/tests/bug70944-2.phpt | 20 ++++++++++++++++++++
Zend/zend_exceptions.c | 18 +++++++++++++-----
2 files changed, 33 insertions(+), 5 deletions(-)
create mode 100644 Zend/tests/bug70944-2.phpt
cluster 4be85a98-8ef4-4844-bfbe-62817179c02c
health HEALTH_WARN
11585 pgs backfill
8417 pgs backfill_toofull
3169 pgs backfilling
829 pgs degraded
11 pgs incomplete
5 pgs recovering
72 pgs recovery_wait
829 pgs stuck degraded