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
| function f(x) { let y = 0; while (x > 1) { if (x % 2 == 0) x /= 2; else x = x * 3 +1; ++y; } return y; } | |
| function g(a, b) { let t = 0; for(let i = a; i < b; ++i) { t+=f(i); } return t; } | |
| function h() { let n = 0; for(;;) { print(g(n*10000, (n+1)*10000)); ++n; } } | |
| 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
| F/MOZ_Assert( 1109): Assertion failure: ((bool)(__builtin_expect(!!(!NS_FAILED_impl(rv)), 1))), at /home/jld/src/B2G/gecko/dom/ipc/TabChild.cpp:675 |
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
| rustc: /usr/local/src/rust/src/llvm/include/llvm/Support/IntegersSubsetMapping.h:86: bool llvm::IntegersSubsetMapping<SuccessorClass, IntegersSubsetTy, IntTy>::isJoinable(llvm::IntegersSubsetMapping<SuccessorClass, IntegersSubsetTy, IntTy>::CaseItemIt&, llvm::IntegersSubsetMapping<SuccessorClass, IntegersSubsetTy, IntTy>::CaseItemIt&) [with SuccessorClass = llvm::MachineBasicBlock; IntegersSubsetTy = llvm::IntegersSubset; IntTy = llvm::IntItem; llvm::IntegersSubsetMapping<SuccessorClass, IntegersSubsetTy, IntTy>::CaseItemIt = std::_List_iterator<std::pair<llvm::IntegersSubsetMapping<llvm::MachineBasicBlock>::RangeEx, llvm::MachineBasicBlock*> >]: Assertion `!isIntersected(LItem, RItem) && "Intersected items with different successors!"' failed. |
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
| > (define (usable? n) (or (zero? n) (let ((i (modulo n 223))) (and (or (< i 26) (and (>= i 32) (< i (+ 32 26)))) (usable? (quotient n 223)))))) | |
| > (time (let loop ((n 1)) (and (< n 100000000) (if (usable? (* n (expt 2 63))) n (loop (+ n 1)))))) | |
| (time (let loop ((n 1)) (and (< n 100000000) (if (usable? (* n (expt 2 63))) n (loop (+ n 1)))))) | |
| 44377 ms real time | |
| 44359 ms cpu time (44339 user, 20 system) | |
| 58806 collections accounting for 2957 ms real time (2920 user, 0 system) | |
| 17930827840 bytes allocated | |
| no minor faults | |
| no major faults | |
| 23411452 |
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
| # fun b -> if b then `DjEKseMUFXem else `AAAAAAAAAAAA;; | |
| Error: Variant tags `DjEKseMUFXem and `AAAAAAAAAAAA have the same hash value. | |
| Change one of them. |
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 os, sys, struct, subprocess | |
| READELF = os.getenv("READELF") or "readelf" | |
| def main(argv): | |
| filename = argv[1] | |
| phdrs = subprocess.Popen([READELF, "-l", filename], | |
| stdout = subprocess.PIPE, stderr = sys.stderr) | |
| offset = None | |
| fsize = None | |
| for line in phdrs.stdout: |
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
| /* | |
| * The instruction encodings. | |
| */ | |
| /* instruction classes */ | |
| #define BPF_CLASS(code) ((code) & 0x07) | |
| #define BPF_LD 0x00 | |
| #define BPF_LDX 0x01 | |
| #define BPF_ST 0x02 | |
| #define BPF_STX 0x03 | |
| #define BPF_ALU 0x04 |
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
| GITREPO=git://github.com/jld/b2g-manifest BRANCH=mac-keon ./config.sh keon | |
| ./build.sh out/target/product/keon/boot.img |
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
| # On branch seccomp-goldfish | |
| # You are currently cherry-picking. | |
| # (fix conflicts and run "git cherry-pick --continue") | |
| # (use "git cherry-pick --abort" to cancel the cherry-pick operation) | |
| # | |
| # Changes to be committed: | |
| # | |
| # new file: Documentation/prctl/no_new_privs.txt | |
| # new file: Documentation/prctl/seccomp_filter.txt | |
| # new file: arch/arm/include/asm/syscall.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
| GITREPO=https://github.com/jld/b2g-manifest BRANCH=hamachi-kernel-maybe-broken ./config.sh hamachi | |
| rm -rf out | |
| ./build.sh | |
| adb pull /dev/mtd/mtd0 orig-boot.img | |
| ./flash.sh boot | |
| # At this point, if the device stays in the Alcatel boot screen, | |
| # it has an incompatible bootloader and this can't work. | |
| # Unbrick the phone thusly: | |
| fastboot flash boot orig-boot.img |