Varities of REPLs
1. C
2. Rust
3. (g)Forth
4. Haskell
And, finally:
5. Lisp
1. C
#include <stdio.h>
int main() {
char input[100];
while (fgets(input, sizeof(input), stdin)) {
printf("%s", input);
}
return 0;
}
2. Rust
use std::io::{self, Write};
fn main() {
let mut input = String::new();
while io::stdin().read_line(&mut input).unwrap() > 0 {
print!("{}", input);
input.clear();
}
}3. (g)Forth
: repl
BEGIN
TIB DUP >IN !
0 WORD COUNT TYPE
AGAIN ;
4. Haskell
main :: IO ()
main = do
input <- getLine
putStrLn input
main
And, finally:
5. Lisp
(loop (print (eval (read))))
😁5❤🔥2❤1
The problem is that coding isn’t fun if all you can do is call things out of a library, if you can’t write the library yourself. If the job of coding is just to be finding the right combination of parameters, that does fairly obvious things, then who’d want to go into that as a career?
Donald Knuth in an interview with Peter Seibel. Unfortunately, the answer Knuth would get today is: everybody.
❤1💯1
Forwarded from Symptoms
Symptoms
Photo
Wark,_McKenzie_Hacker_Manifesto_Harvard_University_Press_2009.pdf
3.3 MB
McKenzie Wark, A Hacker Manifesto (2009)
Forwarded from Deputy Sheriff The Viking Programmer
: birthday 0 100 do ." Happy Birthday Chuck " cr next ;
birthday
Happy birthday Chuck, aka Charles H. Moore, the inventor of Forth and subsequently the concatenative programming paradigm, the threaded code model, and much more.
Forwarded from Mathematics Channel
Interactive Mathematical applets and animations
https://www.dynamicmath.xyz/
"A mathematical formula should never be 'owned' by anybody!"
Donald Knuth, Digital Typography, ch1, p. 8 (1999).
#site
https://www.dynamicmath.xyz/
"A mathematical formula should never be 'owned' by anybody!"
Donald Knuth, Digital Typography, ch1, p. 8 (1999).
#site
Dynamic Mathematics
Interactive Mathematical Applets and Animations
Forwarded from Mathematics Channel
https://virtualmathmuseum.org/
3D-XplorMath is a freely available Mathematical Visualization program.
The group in charge of the 3D-XplorMath software development project and the related Virtual Mathematics Museum website project is the 3DXM Consortium, an international volunteer group of mathematicians.
#site #software
3D-XplorMath is a freely available Mathematical Visualization program.
The group in charge of the 3D-XplorMath software development project and the related Virtual Mathematics Museum website project is the 3DXM Consortium, an international volunteer group of mathematicians.
#site #software
❤🔥2❤1
(φ (μ (λ)))
Photo
The_Haskell_School_of_Music_From_Signals_to_Symphonies_Paul_Hudak.pdf
3.8 MB
Paul Hudak, Donya Quick, The Haskell School of Music: From Signals to Symphonies (2018)
(φ (μ (λ)))
Photo
saint-petersburg-mathematicians.pdf
31.9 MB
(ed. Nikita Kalinin, Stanislav Smirnov,
Nikolai Reshetikhin, Galina Sinkevich, Dmitriy Stolyarov, Anastasia Reshetikhin) St. Petersburg Mathematicians and their Discoveries (2024)
Nikolai Reshetikhin, Galina Sinkevich, Dmitriy Stolyarov, Anastasia Reshetikhin) St. Petersburg Mathematicians and their Discoveries (2024)
👍1