5,306 karma · joined June 8, 2015
For me, C as an intermediate vs LLVM language is a "worse is better" or "good enough" issue.
LLVM is far more powerful but more complex. C is simpler and already works everywhere.
It's the best reference I found. The paper only talks of capturing "*this" by value (as in the original post of the topic).
I think I read that in a draft about coroutines. The idea was to capture "this" by reference and convert the lambda to a function pointer to make it movable.
It would useful for delegates or signals too.
Possibility to cast a lambda to a function pointer.
It will become possible to store a lambda as a struct/member that could bind to "this" (like in Javascript).
Not so easy way :-)
The video says that 20% of the wealth is cultural. I guess it's more. Western countries are probably so successful because they inherited the greek and roman culture.
Some countries in Asia (like Japan) switched from feudalism to capitalism in few decades.
The difficulties of Africa could be explained by the lack of the writing (unless it's a consequence). The society is more flat than vertical.
The voice synthesis with the "say" command is impressive: http://doc.basic256.org/doku.php?id=en:say
Say "Hello, World" (instead of Print...)
In Lisp you can write (+ 1 2 3 ... n).
With a stack-based language, you might write:
1 //push 1
2 //...
3
+ //add 3,2 and push 5
+ //add 5,1 and push 6 time echo "scale=10000; 4*a(1)" | bc -l
3.141592...
real 2m33.930s
user 2m32.304s
sys 0m1.308sOr the weakness of those countries towards US that can be explained by recent history.
Until next war.
I think it's more pride than shyness mostly because of history and the rivalry with England. It's unconscious too.
Maybe his company will become the biggest in the world like GE. A small posthumous revenge for Nikola Tesla.