>c/c++
c and c++ are NOT the same languages. not even close. i wish people stopped treating them as if they're just minor variations
@chjara They are so much closer to each other than to anything else. The major difference is that C actually still has a place in society other than "oops we wrote this in this language a decade ago and migration cost is too high".

@clacke @chjara a distressing number of companies i've worked for (100% of those who have employed me in the past few years) had authored new C++ codebases clean-sheet in the past few years.

@chjara @clacke hmm yes the language features here are made out of RAII and unique_ptr but still no way to in any way validate references to things. maybe i'm not enough of a modern c++ expert but
- no typeclasses
- inheritance (and mandatory vtables even when you're statically monomorphizing)
- use-site checked polymorphism and the shithole that is SFINAE
- having to use shit like immer to regulate mutability
etc. etc.

@chjara @clacke the "modern c++" ecosystem to me basically just feels like backporting ideas from more modern tooling. and all the old cruft is still there. also all of the build tools suck, especially bazel.

@clacke @chjara well, i don't particularly like CL, and while I adore scheme it isn't exactly a systems language, nor does it do a good job of facilitating the sort of static analysis I want when working in environments where reliability and predictability are crucial. Unfortunately most of the places I've mentioned were using C++ for highly specific ecosystem reasons (one had me writing CUDA kernels, another had this big imgui-based industrial visualization system, etc.)

@syntacticsugarglider @chjara Ah yes, I forgot the reason "oops *other people* wrote stuff in this language over a decade ago and the adapter cost is too high". =)

@clacke @chjara a systems language is legitimately necessary for some cases though. that's not to say a systems language shouldn't be more expressive and incorporate more PLT innovations, it absolutely should. A properly linear-typed pure systems language would be really incredible.

@syntacticsugarglider @chjara We need a systems language. It should be higher level than C and C++. We also need a systems language on the level of C that is just as bootstrappable and ubiquitous but safer to use. I'm interested to see what happens in this field, and where e.g. Nim and Zig end up.

But I don't know how big the gap really is. Already in the 90s people used tcl, perl and bash for things that some people would believe you need a systems language for. We should probably use Lua a lot more than we are.
Follow

@clacke @syntacticsugarglider @chjara Forget the 90's: I had a colleague using Bash to basically do what Docker Compose does before Docker compose existed. It was godawful, but I learned some fairly robust hacks (contradiction?) for process control in Bash from that.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.