This file contains hidden or 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
| [yannick@alarm vibe.d]$ strace ~/bin/dub build | |
| execve("/home/yannick/bin/dub", ["/home/yannick/bin/dub", "build"], [/* 17 vars */]) = 0 | |
| brk(0) = 0x3f1000 | |
| uname({sysname="Linux", nodename="alarm", ...}) = 0 | |
| mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x76f20000 | |
| access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
| open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
| fstat64(3, {st_mode=S_IFREG|0644, st_size=133523, ...}) = 0 | |
| mmap2(NULL, 133523, PROT_READ, MAP_PRIVATE, 3, 0) = 0x76ed2000 | |
| close(3) = 0 |
This file contains hidden or 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
| { | |
| "name": "test", | |
| "description": "A simple vibe.d server application.", | |
| "copyright": "Copyright © 2015, yannick", | |
| "authors": ["yannick"], | |
| "dependencies": { | |
| "memutils": { "version": "~master", "path": "submodules/memutils" }, | |
| "libasync": { "version": "~master", "path": "submodules/libasync" }, | |
| "vibe-d": { "version": "~master", "path": "submodules/vibe.d" } | |
| }, |
This file contains hidden or 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
| typedef struct rd_kafka_metadata { | |
| int broker_cnt; /* Number of brokers in 'brokers' */ | |
| struct rd_kafka_metadata_broker *brokers; /* Brokers */ | |
| int topic_cnt; /* Number of topics in 'topics' */ | |
| struct rd_kafka_metadata_topic *topics; /* Topics */ | |
| int32_t orig_broker_id; /* Broker originating this metadata */ | |
| char *orig_broker_name; /* Name of originating broker */ | |
| } rd_kafka_metadata_t; |
This file contains hidden or 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
| import std.stdio; | |
| import std.string; | |
| import std.zlib; | |
| void main(){ | |
| string bla = "VERYLONGSTRING"; | |
| auto comp = new Compress(HeaderFormat.gzip); | |
| auto compressed = comp.compress(cast(byte[])bla); | |
| compressed ~= comp.flush(); |
This file contains hidden or 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
| import std.stdio; | |
| import std.string; | |
| import std.zlib; | |
| void main(){ | |
| string bla = "VERYLONGSTRING"; | |
| auto compressed = std.zlib.compress(cast(void[]) cast(ubyte[])bla); | |
This file contains hidden or 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
| module holyzip; | |
| import std.zlib; | |
| ubyte[] zipS(string data) | |
| { | |
| return cast(ubyte[])std.zlib.compress(data); | |
| } | |
| string unzipS(ubyte[] data) | |
| { |
This file contains hidden or 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
| linux-vdso.so.1 (0x00007ffd3071e000) | |
| libevent_pthreads-2.0.so.5 => /usr/lib/libevent_pthreads-2.0.so.5 (0x00007fd28786b000) | |
| libevent-2.0.so.5 => /usr/lib/libevent-2.0.so.5 (0x00007fd287622000) | |
| libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007fd2873a8000) | |
| libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fd286f31000) | |
| libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fd286d14000) | |
| libm.so.6 => /usr/lib/libm.so.6 (0x00007fd286a10000) | |
| librt.so.1 => /usr/lib/librt.so.1 (0x00007fd286808000) | |
| libc.so.6 => /usr/lib/libc.so.6 (0x00007fd286466000) | |
| /lib64/ld-linux-x86-64.so.2 (0x00007fd287a6e000) |
This file contains hidden or 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
| source/app.d(19,99): Error: template std.algorithm.searching.endsWith cannot deduce function from argument types !()(DirEntry, string), candidates are: | |
| /usr/local/Cellar/dmd/2.067.1/include/d2/std/algorithm/searching.d(946,6): std.algorithm.searching.endsWith(alias pred = "a == b", Range, Needles...)(Range doesThisEnd, Needles withOneOfThese) if (isBidirectionalRange!Range && Needles.length > 1 && is(typeof(.endsWith!pred(doesThisEnd, withOneOfThese[0])) : bool) && is(typeof(.endsWith!pred(doesThisEnd, withOneOfThese[1..__dollar])) : uint)) | |
| /usr/local/Cellar/dmd/2.067.1/include/d2/std/algorithm/searching.d(1013,6): std.algorithm.searching.endsWith(alias pred = "a == b", R1, R2)(R1 doesThisEnd, R2 withThis) if (isBidirectionalRange!R1 && isBidirectionalRange!R2 && is(typeof(binaryFun!pred(doesThisEnd.back, withThis.back)) : bool)) | |
| /usr/local/Cellar/dmd/2.067.1/include/d2/std/algorithm/searching.d(1041,6): std.algorithm.searching.endsWith(alias pred = "a == b", R, E)(R doesThisEnd, E withTh |
This file contains hidden or 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
| source/app.d(19,99): Error: template std.algorithm.searching.endsWith cannot deduce function from argument types !()(DirEntry, string), candidates are: | |
| /usr/local/Cellar/dmd/2.067.1/include/d2/std/algorithm/searching.d(946,6): std.algorithm.searching.endsWith(alias pred = "a == b", Range, Needles...)(Range doesThisEnd, Needles withOneOfThese) if (isBidirectionalRange!Range && Needles.length > 1 && is(typeof(.endsWith!pred(doesThisEnd, withOneOfThese[0])) : bool) && is(typeof(.endsWith!pred(doesThisEnd, withOneOfThese[1..__dollar])) : uint)) | |
| /usr/local/Cellar/dmd/2.067.1/include/d2/std/algorithm/searching.d(1013,6): std.algorithm.searching.endsWith(alias pred = "a == b", R1, R2)(R1 doesThisEnd, R2 withThis) if (isBidirectionalRange!R1 && isBidirectionalRange!R2 && is(typeof(binaryFun!pred(doesThisEnd.back, withThis.back)) : bool)) | |
| /usr/local/Cellar/dmd/2.067.1/include/d2/std/algorithm/searching.d(1041,6): std.algorithm.searching.endsWith(alias pred = "a == b", R, E)(R doesThisEnd, E withTh |
This file contains hidden or 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
| yannick@hackbook4 /opt/gdc find libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2 | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2 | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/cc1 | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/cc1d | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/collect2 | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/install-tools | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/install-tools/fixinc.sh | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/install-tools/fixincl | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/install-tools/mkheaders | |
| libexec/gcc/x86_64-apple-darwin14.4.0/4.9.2/install-tools/mkinstalldirs |