If God were a programmer, what language would he use?
If God were a programmer, what language would he use?
Other urls found in this thread:
kristoff.it
ziglearn.org
twitter.com
C++
But he doesn't exist
ASM
Shut up Antichrist
Why would God need a programming language when he uses binary?
newfag
[spoiler]HolyC
HolyC
inb4 a joke about templeOS
>what language would he use?
Zig, obviously. It has all the features he would want.
>concurrency
Built in event loop style N:M threading, just like Go. Just add one line of code and you're able to run millions of coroutines with ease. Solving the C10k (and C10M) problem was never easier.
pub const io_mode = .evented;
kristoff.it
>performance
It's a compiled language with a backend that uses LLVM, so it has all of the optimizations that Clang will ever give you in C/C++. No slow or unpredictable GC, so you can be sure there won't be any GC lag spikes. No more worrying about the 95% percentile response times!
Tired of memory management? Just use the 'defer' keyword user, EZ RAII style cleanup. Want to be be even lazier? Have a single arena allocator scoped per HTTP request and forget about memory management entirely!
>Is there any alternative lang?
Just embrace the Zig future that God intended, for you and head on over to ziglearn.org
pub fn helloWorld(req: Request, res: Response) !void {
try res.print("Hello {}!", req.queryParam("name") orelse "World");
}
Which god(s)? Quite a few are described to be utterly retarded, so it could be MS BASIC.
Java sir.
Lisp
S(ixth)PBP
He acts like a retarded webshitter, so JavaScript probably
ASM?
obviously
Lightspeed draw distance implies lazy loading, so Haskell maybe.
He'd make an analogue computer designed specifically to run the entire universe, which is itself the size of the entire universe.
>But he doesn't exist
The untyped lambda calculus.
DNA
Spoken truth, made manifest into reality.
...