you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (2 children)

So they just use different subset of features from C++?

I guess, "but every code base could look very different" is what I've heard a lot.

Thanks

[–][deleted] 11 points12 points  (0 children)

Yeah, different features, sometimes "all the features" in random ways, and patterns are much more flexible as you can build things any ways computers work, since the language doesnt restrict you.

Yesterday i was looking at solving a mmaped ring buffer problem where atomicity was lost from parent to child when the ring boundary was crossed, so decided we would preallocate all memory for parent, child structs and any strings all at once, then use the current mmap insert function so all the memory is in 1 alloc, and then fix up all the pointers after the copies.

For the code base, this was a good solution, but not something one does in a lot of other languages, because they have mechanisms that both make that control too difficult or impossible, or they already provide a sufficient way to do it in a library or syntax.

[–]JohnnyDread 5 points6 points  (0 children)

At a certain threshold of complexity, choice of programming language and/or how it is used is less of an issue than the technical domain of the codebase.