kerneloops
const cast: <A, B> (a: A) => B = function <B> (): B {
return arguments[0]
}
const n: string = cast(1)English-Centric Icons
Experimenting with local alt text generation in Firefox Nightly
C printf: MT-Safe locale.
C++ std::cout: safe, unless you call sync_with_stdio(false).
JVM System.out.println: safe in common JVMs.
C# Console.WriteLine: safe.
Go fmt.Printf: safe.
Rust println!: safe.
Ruby puts: safe.
So it seems that Python is the outlier here.
Tell HN: Python's print function is thread-unsafe
Some days ago I found that Python's print function is by default thread-unsafe, as the underlying sys.stdout is by default a TextIOWrapper, which is not thread safe. That means, for the code below from threading import Thread def target(x): for _ in range(100000): print(x) Thread(target=target, args=['a' * 10]).start() Thread(target=target, args=['b' * 10]).start() Python could...
Joint statement on data scraping and the protection of privacy [pdf]
Bootstrapping the Compiler – Rust Compiler Development Guide
An Introduction to Oblivious RAM (2020)
In fact the source language is likely to be JS itself; a JS-to-some-sort-of-vm-bytecode-to-JS compiler is made. I know that Tencent has a similar VM; an interesting aspect of that VM is that the instruction set is dependent on the code being compiled (and the opcodes are dynamically generated and shuffled when compiling), so unused instructions are not generated.