4 ms·
If you want to compare languages on features, lack of complexity is also a feature.
by grey-area 5y ago
If you want to compare languages on features, lack of complexity is also a feature.
- kaba0 5y agoBut lack of proper abstractibility, expressivity is not a “feature”.
- jhoechtl 5y agoAfter all, abstraction is a layer of indirection, hiding meaning. What is a "proper abstraction"?
- kaba0 5y agoFeel free to add together the set of a set of an empty set and a set of a set of a set of an empty set, but I prefer calling it 2+3. Or feel free to manipulate the voltage in some wire, and make sure that it is reliably understood at the other side as the same bit pattern you sent, but I prefer issuing an HTTP packet. These are all abstractions, hell, there is no field building as much on abstractions as IT does. We have to be on like 8-9 levels of abstraction to even do anything non-trivial.
- grey-area 5y agoLack of other people's abstractions is a feature too :)
- kaba0 5y agoIf it is a bad abstraction, sure. But a good abstraction is much much easier to understand then God knows how many lines of code with God knows what program flow.
- deleted 5y ago[deleted]
- nikki93 5y agoI don't think goroutines / channels is a clear win or even that relevant for data-oriented gameplay code. I go into this more in-depth in this comment: https://www.reddit.com/r/golang/comments/r2795t/i_wrote_a_simple_goc_compiler_to_use_for_gameplay/hm93ycc https://www.reddit.com/r/golang/comments/r2795t/i_wrote_a_si... (it addresses a bunch of points) This is what the game code looks like: https://gist.github.com/nikki93/0425d9ead9eb7810075434d006f3b790?ts=2 https://gist.github.com/nikki93/0425d9ead9eb7810075434d006f3... -- I don't think CSP helps much to improve on that while keeping serializability of state.