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
| {-# LANGUAGE ForeignFunctionInterface #-} | |
| import Haste | |
| import Haste.App | |
| import Haste.Foreign | |
| anything :: Server () | |
| anything = return () | |
| entry_point :: String -> String -> IO () | |
| entry_point regex_str lang = do |
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
| .LBB0_10: # Parent Loop BB0_9 Depth=1 | |
| # => This Inner Loop Header: Depth=2 | |
| cltq | |
| imulq $-2004318071, %rax, %rbp # imm = 0xFFFFFFFF88888889 | |
| shrq $32, %rbp | |
| movl %eax, %ebx | |
| addl %ebp, %ebx | |
| movl %ebx, %ebp | |
| sarl $6, %ebp | |
| movl %ebx, %edi |
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
| .L13: | |
| movl $-2004318071, %eax | |
| movl $120, %esi | |
| movl %ecx, %r11d | |
| imull %ecx | |
| movl %ecx, %eax | |
| andl $1023, %r11d | |
| sarl $31, %eax | |
| leal (%rcx,%rcx), %r10d | |
| leal (%rcx,%rbx), %r8d |
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
| .LBB0_10: # Parent Loop BB0_9 Depth=1 | |
| # => This Inner Loop Header: Depth=2 | |
| movl %r8d, %ecx | |
| movl $2290649225, %eax # imm = 0x88888889 | |
| imulq %rcx, %rax | |
| movq %rax, %rdi | |
| shrq $38, %rdi | |
| imull $120, %edi, %edi | |
| movl %r8d, %r14d | |
| subl %edi, %r14d |
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
| .LBB0_10: # Parent Loop BB0_9 Depth=1 | |
| # => This Inner Loop Header: Depth=2 | |
| leal (%rdi,%rdi), %ecx | |
| movl %edi, %eax | |
| movl $2290649225, %r9d # imm = 0x88888889 | |
| imulq %rax, %r9 | |
| movq %r9, %r8 | |
| shrq $38, %r8 | |
| imull $120, %r8d, %edx | |
| movl %edi, %r8d |
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
| // c++ -std=c++11 -O3 sort.cpp ; ./a.out | |
| // qsort: 674 ms | |
| // std::sort: 1104 ms | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <chrono> | |
| #include <string> | |
| #include <vector> | |
| #include <iostream> |
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
| diff --git a/autoload.cpp b/autoload.cpp | |
| index c883f8b..12ae9db 100644 | |
| --- a/autoload.cpp | |
| +++ b/autoload.cpp | |
| @@ -3,15 +3,23 @@ | |
| The classes responsible for autoloading functions and completions. | |
| */ | |
| -#include "config.h" | |
| #include "autoload.h" |
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
| #include <stdio.h> | |
| #include <functional> | |
| void func(std::function<void(void)> func) { | |
| printf("func1\n"); | |
| } | |
| template<typename ANYTHING> | |
| static void foo() { | |
| func([](){}); |
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
| #include <wchar.h> | |
| #include <stdio.h> | |
| #include <locale.h> | |
| int main(void) { | |
| char *loc = setlocale(LC_ALL, ""); | |
| printf("%s %d\n", loc, wcwidth(0xFE0F)); | |
| return 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
| #include <string> | |
| #include <sys/types.h> | |
| #include <pwd.h> | |
| #include <uuid/uuid.h> | |
| #include <vector> | |
| #include <thread> | |
| static size_t burn() { | |
| size_t ret = 0; | |
| setpwent(); |