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
int sum_unrolled( int n, int *a ) | |
{ | |
int sum = 0; | |
/* do the body of the work in a faster unrolled loop */ | |
for( int i = 0; i < n/4*4; i += 4 ) | |
{ | |
sum += a[i+0]; | |
sum += a[i+1]; | |
sum += a[i+2]; |
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
#!/bin/bash | |
if [ -z $1 ] || [ -z $2 ] || [ -z $3 ] || [ -z $4 ]; then | |
echo "usage: ../make_release src_dir tag_name version rc_num" | |
exit -1; | |
fi | |
cd $1 | |
CANDIDATE_TAG=`git tag --list $2` | |
if [ -z $CANDIDATE_TAG ]; then |
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::mem; | |
#[repr(packed)] | |
struct S4 { | |
a: u8, | |
b: [u8; 3], | |
} | |
#[repr(packed)] | |
struct S5 { |
- [The Rust Programming Language] (http://killercup.github.io/trpl-ebook/)
- [Rust for C++ programmers] (http://alvalea.gitbooks.io/rust-for-cpp/content/index.html)
- [The Advanced Rust Programming Language] (http://cglab.ca/~abeinges/blah/turpl/_book/)
- [Rust for Rubyists] (http://www.rustforrubyists.com/book/index.html)
- [Abstraction without overhead: traits in Rust] (http://blog.rust-lang.org/2015/05/11/traits.html)
- [CPU Flame Graphs] (http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html#FlameGraph)
- [perf Examples] (http://www.brendangregg.com/perf.html)
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
public interface FormatProperties { | |
boolean splittable(); | |
boolean compressible(); | |
boolean seekable(); | |
boolean projectable(); | |
boolean filterable(); |
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
{ | |
"spaces": { | |
"default": { | |
"uri": "hdfs://localhost:8020/tajo/warehouse", | |
"configs": [ | |
{"x": "y"}, | |
{"x": "y"} | |
] | |
}, | |
"ssd1": { |
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
{ | |
"pi": 3.141, | |
"happy": true, | |
"name": "Niels", | |
"nothing": null, | |
"answer": { | |
"everything": 42 | |
}, | |
"list": [1, 0, 2], | |
"object": { |
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
CREATE EXTERNAL TABLE tweets ( | |
coordinates TEXT, | |
favorited BOOL, | |
truncated BOOL, | |
created_at TIMESTAMP, | |
id_str TEXT, | |
/*entrities RECORD ( | |
urls ARRAY<TEXT> | |
)*/ | |
in_reply_to_user_id_str TEXT, |
OlderNewer