- Processor: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
- Platform: AMD64
- Hypervisor: VirtualBox 6.1.16 with KVM
- Command
pv -a /dev/urandom
The values are taken after the rate has been stable for a few seconds.
| set constantshow | |
| set linenumbers | |
| set nonewlines | |
| set noconvert | |
| set smarthome | |
| set nohelp | |
| set minibar | |
| #set mouse | |
| bind ^F whereis all |
| import std.stdio; | |
| import std.getopt; | |
| import std.digest.sha : SHA1; | |
| import std.datetime.stopwatch : StopWatch; | |
| import std.range : chunks; | |
| import std.mmfile : MmFile; | |
| import std.file : getSize; | |
| import core.memory : GC; | |
| enum CHUNKSIZE = 4096; |
| wchar* GetCommandLineWFast() { | |
| version (X86_64) asm { | |
| mov RAX,GS:[0x60]; | |
| mov RAX,[RAX+0x20]; | |
| mov RAX,[RAX+0x78]; | |
| } else version (X86) asm { | |
| mov EAX,FS:[0x30]; | |
| mov EAX,[EAX+0x10]; | |
| mov EAX,[EAX+0x44]; | |
| } |
| <# | |
| Bored shit | |
| by dd86k | |
| #> | |
| function ErasePlayer() { | |
| [Console]::SetCursorPosition($x, $y); ' ' | |
| } | |
| function PrintPlayer() { | |
| [Console]::SetCursorPosition($x, $y); '@' | |
| } |
| fn main() { | |
| let mut x; | |
| for i in 0..101 { println!("{}", if i % 15 == 0 { "FizzBuzz" } else if i % 5 == 0 { "Buzz" } else if i % 3 == 0 { "Fizz" } else { x = format!("{}", i);x.as_str() } ); } | |
| } |
| using static System.Console; | |
| namespace FizzBuzz | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| for (int i = 0; i < 100; i++) { WriteLine(i % 15 == 0 ? "FizzBuzz" : (i % 5 == 0 ? "Buzz" : (i % 3 == 0 ? "Fizz" : i.ToString()))); } | |
| } |
| Language | First appeared |
|---|---|
| Assembly | 1949 |
| Speedcoding | 1953 |
| Fortran | 1957 |
| Lisp | 1958 |
| ALGOL 58 | 1958 |
| COBOL | 1959 |
| ALGOL 60 | 1960 |
| CPL | 1963 |
| fn main() { | |
| generate_box(10, 4, 5, 4); | |
| } | |
| // ┌┐└┘─│ | |
| fn generate_box(x: i32, y: i32, width: i32, height: i32) { | |
| let mut nwidth = width - 2; // Corners included | |
| let mut nheight = height - 2; | |
| if nwidth < 2 { nwidth = 0; } |