Thank you! Comments are welcome. :)
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
stack backtrace: | |
0: 0x564c3c757f93 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::hf8722b0178fb1b63 | |
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 | |
1: 0x564c3c753648 - std::sys_common::backtrace::_print::hc40139e5f1d656ee | |
at src/libstd/sys_common/backtrace.rs:70 | |
2: 0x564c3c7568b2 - std::panicking::default_hook::{{closure}}::h993d43465919c16a | |
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
thread 'main' panicked at 'invalid key', /home/maidsafe/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs:798:18 | |
stack backtrace: | |
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace | |
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 | |
1: std::sys_common::backtrace::_print | |
at src/libstd/sys_common/backtrace.rs:70 | |
2: std::panicking::default_hook::{{closure}} | |
at src/libstd/sys_common/backtrace.rs:58 | |
at src/libstd/panicking.rs:200 | |
3: std::panicking::default_hook |
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
thread 'Crust-Event-Loop' panicked at 'invalid key', /home/maidsafe/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs:798:18 | |
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. | |
thread 'Crust-Event-Loop' panicked at 'invalid key', /home/maidsafe/.cargo/registry/src/github.com-1ecc6299db9ec823/slab-0.4.2/src/lib.rs:798:18 | |
stack backtrace: | |
0: 0x563176398923 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::hf8722b0178fb1b63 | |
at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 | |
1: 0x563176393fd8 - std::sys_common::backtrace::_print::hc40139e5f1d656ee | |
at src/libstd/sys_common/backtrace.rs:70 |
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
// To compile this: | |
// g++ -lsafe_app test.cc | |
// Don't forget to put libsafe_app.so (or libsafe_app.dll, depending on your OS) with the source code. | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <iostream> | |
// https://docs.rs/ffi_utils/0.2.0/ffi_utils/struct.FfiResult.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
"cc" "-m64" "-L" "/root/rust/build-1.11-rel/x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib" "x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib/rustc_llvm-fe3cdf61.0.o" "-o" "x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib/librustc_llvm-fe3cdf61.so" "x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib/rustc_llvm-fe3cdf61.metadata.o" "-Wl,-z" "-Wl,ignore" "-nodefaultlibs" "-L" "x86_64-sun-solaris/rt" "-L" "/root/rust/build-1.11-rel/x86_64-sun-solaris/llvm/lib" "-L" "/root/rust/build-1.11-rel/x86_64-sun-solaris/stage0/lib/rustlib/x86_64-sun-solaris/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l" "rustllvm" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMInterpreter" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMMCJIT" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMExecutionEngine" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMRuntimeDyld" "-Wl,--no-whole-archive" "-Wl,--whole-archive" "-l" "LLVMipo" "-Wl,--no-whole-archive" "- |
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
impl f64 { | |
// ... | |
#[stable(feature = "rust1", since = "1.0.0")] | |
#[inline] | |
pub fn ln(self) -> f64 { | |
if self.is_finite() { | |
if x > 0.0 { | |
return unsafe { intrinsics::logf64(self) } | |
} | |
return if x == 0.0 { |
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
[package] | |
name = "rust-chat" | |
version = "0.1.0" | |
authors = ["Nikita Baksalyar <[email protected]>"] | |
[dependencies] | |
http-muncher = "0.2.*" | |
sha1 = "0.1.*" | |
rustc-serialize = "0.3.*" | |
byteorder = "0.3.*" |
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
/* Polyalphabetic encryption - Enigma-like. */ | |
#include <stdio.h> | |
#include <string.h> | |
char *alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; | |
unsigned long rand = 42; | |
#define RNG_M 4294967296 |
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
В цепи у велосипеда Тьюринга дефектное звено. В заднем колесе погнута одна спица. Когда | |
звено задевает спицу, цепь сваливается и падает на дорогу. Это происходит не при каждом | |
обороте колеса — иначе велосипед проще было бы выкинуть. Это происходит при | |
определенном взаимном расположении цепи и колеса. | |
Исходя из разумного предположения, что доктор Тьюринг находится в хорошей спортивной | |
форме и развивает скорость примерно 25 км/час, а радиус колеса — примерно треть метра, | |
если бы дефектное звено задевало гнутую спицу при каждом обороте колеса, то цепь | |
сваливалась бы каждую третью долю секунды. |
NewerOlder