97 karma · joined Dec 7, 2019 (6y ago) · 39 submissions
comment 6y ago · link · parent
Something like https://docs.microsoft.com/en-us/windows/win32/procthread/us...
comment 6y ago · link · parent
https://riotimesonline.com/brazil-news/brazil/zuckerberg-cit...
comment 6y ago · link · parent
Moreover, the naturalness argument is pretty strange. Of course complexity arguments are useless if big constants dominate the run time, but, why is it justified to assume the constants are small enough? Is it to make our life simpler? Real life is seldom that simple.
comment 6y ago · link · parent
So you suggest it's better to not test people?
comment 6y ago · link · parent
It's not ten or 20 years, the first release of Rust was in 2015. Pre-1.0 Rust was a wildly different language, with green threads, segmented stacks, regular and wild breakage, not really a C replacement! Please understand this point.
But anyway here are some projects:
https://github.com/ctz/rustls a TLS library that uses https://github.com/briansmith/webpki a pki library
https://github.com/burntsushi/rust-snappy a compression library
https://github.com/tikv/tikv a database engine
https://github.com/hyperium/tonic a gRPC library
https://github.com/tock/tock an embedded OS
https://lib.rs/command-line-utilities lots of CLI utilities which include system management
You ask for "pervasively used" but this is not under control of Rust itself. It's not feasible to replace decades old setups in five years.
The most widely deployed Rust stuff is in Firefox and some Gnome libraries AFAIK.
> I mean, is it maybe fair to say that the window is closing for rust to take over a significant fraction the systems programming world?
I don't see why this should be the case.
comment 6y ago · link · parent
> In this case, I used the subtitle, which wasn't exactly editorializing.
Technically it is, in the sense that it's the editor's job in a publication to select exactly which citation best summarizes the content of the whole piece.
So I suggest to perhaps change the "don't editorialize" part to rule to better reflect the nuance of the subject.
comment 6y ago · link · parent
Without recursive functions, we have a bounded call depth and thus don't actually need a growable stack; a fixed-size array suffices.
We take for granted that function calls are always implemented with a stack, because that's how processors work today, but it could have been done differently. We could imagine an alternative timeline with much restricted functions and no implicit call stack.
And indeed, tail recursive functions are usually implemented with tail call elimination, in which the caller reuses the stack frame of the callee; function call becomes a simple goto, which transforms recursion into loop iteration. If we didn't have an implicit stack we could still have tail recursive functions (and a bounded number of non-tail calls), and manage other recursion cases with explicit stacks.
See for example pratt parsing https://matklad.github.io/2020/04/13/simple-but-powerful-pra... which uses the implicit call stack, and contrast with Dijkstra's shunting yard algorithm https://matklad.github.io/2020/04/15/from-pratt-to-dijkstra.... which is the same thing but with an explicit stack. If we didn't have a call stack, we could always program in Dijkstra's style and be none the wiser.
comment 6y ago · link · parent
In surreal numbers there's a number called ε a number infinitely close to 0 (but larger than it), so what you would think that 0.9999.. represent is actually written 1-ε maybe?
But there's another number ε/2 that is between 0 and ε; 1-ε/2 is even closer to 1 than 1-ε is. Indeed, there are infinite numbers infinitely close to 1! (and none is really represented by 0.999...)
comment 6y ago · link · parent
https://www.nebraskamed.com/sites/default/files/documents/co...
comment 6y ago · link · parent
https://en.wikipedia.org/wiki/Beacon#For_defensive_communica...
comment 6y ago · link · parent
https://www.youtube.com/watch?v=i6LGJ7evrAg
I wonder if this method of communication was EVER used by any civilization.