9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions
comment 9y ago · link · parent
We're not talking about trades, but rather the illusion of an intent to trade, when really there is no intent, and pushing that illusion onto the world to give the market the impression you will trade that amount, causing other market participants to react accordingly, which causes the market to move in the direction you wanted. Then you cancel your planned trade and profit off the move you manipulated.
That's the gist of it, and yes there are laws against it.
comment 9y ago · link · parent
The complexities surrounding state in CL are not unlike any other non-functional language. I find it hard to call a language functional if it doesn't strongly encourage immutability (or require it) and, preferably, have persistent data structures.
It's for these two reasons that I don't think Swift is functional, and I don't consider CL to be functional.
comment 9y ago · link · parent
comment 9y ago · link · parent
GC is an abstraction that can work well but can also interfere with how a developer thinks.
comment 9y ago · link · parent
comment 9y ago · link · parent
comment 9y ago · link · parent
push_back with a stack object will copy the object, yes. Emplace_back with a stack object will also, they are not much different. But if you emplace by creating the object inside the emplace call itself, then there is no copy.
see the examples here:
http://en.cppreference.com/w/cpp/container/vector/emplace_ba...
comment 9y ago · link · parent
Vectors already own their contents, so there is no need to use unique_ptr here. The objects will be allocated on the heap either way, and you don't need a stack object either. Just push or emplace the object into your vector and be done with it. When the vector is deleted, so will its contents, automatically.