News for hackers. Stuff that matters.
Re:“C is how the computer works” is a dangerous mindset for ... by pdimitar on Tuesday March 31, 2020 @01:40PM (#22740138)
As your parent said, this is also an answer I can understand.

Still, have you guys looked at alternatives -- and seriously evaluate them? Rust, Zig, Nim, D, others?

If you tell me "we can't afford to, we have too much work" then that's also a valid answer (for a while at least).

Re:“C is how the computer works” is a dangerous mindset for ... by amiga_500 on Tuesday March 31, 2020 @02:02PM (#22740430)
The bespoke libraries etc have god knows how many man hours invested, it would be possible but gargantuan.
Re:“C is how the computer works” is a dangerous mindset for ... by pjmlp on Wednesday April 01, 2020 @03:07AM (#22746423)
Our alternatives are Java and .NET languages, with native bindings to C++ libraries.

C++ alternatives still need to grow up to this kind of mixed language development, where I can have .NET code with C++ libraries and easily debug across them on the same Visual Studio session.

Same applies to Java and C++ development experience.

Re:“C is how the computer works” is a dangerous mindset for ... by pdimitar on Wednesday April 01, 2020 @01:31PM (#22751300)
Not sure how fair to newcomers (as in languages) this requirement is.

F.ex. when coding in Erlang/Elixir I can use an excellent bridging library between their VM and Rust. There's also an excellent support for working with C libraries. Not sure what else can be expected.

Maybe I am not reading you correctly and I apologise if so. It just kind of sounded like "the newer languages must be compatible with 20+ different ABI standards if they want us the older programmers working in C/C++ to adopt them"?

Back on the original topic, I completely understand if a project has too much baggage and sunk cost so as to make even a partial migration (and hardening via using memory-safe languages and/or professional paid code analysis tools) unrealistic.

Re:“C is how the computer works” is a dangerous mindset for ... by pjmlp on Wednesday April 01, 2020 @01:47PM (#22751471)
Naturally it isn't fair, but one cannot expect teams to drop velocity and diminish their productivity only on basis of adopting a new language that doesn't support existing workflows, IDE tooling and libraries.

It is like telling someone to delivering games in Unity and Unreal that they should use Amethyst instead, without understanding what it means to actually having a team working in those ecosystems.

Naturally Rust will get there, however it took C++ 30 years to be where it is today, and that is what any replacement attempt should take into consideration.

Re:“C is how the computer works” is a dangerous mindset for ... by pdimitar on Wednesday April 01, 2020 @01:52PM (#22751553)
This is probably a much larger and not very relevant to the topic here discussion but I feel a lot of the newer breed of languages don't emphasise IDE tooling very much (not in the sense of Visual Studio / Eclipse and the like at least; VS Code gets a lot of attention though). So I fear if that's an expectation from a certain group of devs that this might already be a generational difference that's impossible to overcome.

That being said, I agree -- existing teams can't be expected to just run away to the new thing, that much is true.

Re:“C is how the computer works” is a dangerous mindset for ... by pjmlp on Wednesday April 01, 2020 @04:22PM (#22753139)
Depends where you look, Swift, Kotlin and TypeScript live from their tooling.
Re:“C is how the computer works” is a dangerous mindset for ... by pdimitar on Wednesday April 01, 2020 @04:29PM (#22753195)
My favourite language -- Elixir -- is the same. I also quite admire Rust's and Golang's tooling.

CLI tooling is the best it ever was in history (from where I stand at least). But IDE tooling isn't a first class citizen for many languages these days, is what I was saying.

Re:“C is how the computer works” is a dangerous mindset for ... by pjmlp on Thursday April 02, 2020 @01:15PM (#22761238)
I beg to differ, I rather enjoy languages that pursue the dream from Xerox PARC than working like when I was in high school during the late 80's.

Just for reference, my first UNIX was Xenix.

Don't see the point why people buy expensive computers to just use them like we did at the university lab with IBM X terminals.

The main difference was that instead of Slack we had xterms dedicated to run talk sessions.

Re:“C is how the computer works” is a dangerous mindset for ... by otabdeveloper2 on Tuesday March 31, 2020 @02:26PM (#22740727)
> C++ has a standard that's too long and hard to understand, so let's use a language without any standard whatsoever instead!

Good lord, if that's the kind of human capital that's involved in making next-generation languages, then I have no doubt what will still be used to write serious software in 2080.

(Hint: not Rust.)

Re:“C is how the computer works” is a dangerous mindset for ... by pdimitar on Wednesday April 01, 2020 @01:34PM (#22751338)
You'd be more helpful if you specified what else would you deem appropriate -- as opposed to resorting to snarky sarcasm that brings nothing interesting to the discussion except supposedly degrade people whose tech choices you disagree with.
Re:“C is how the computer works” is a dangerous mindset for ... by otabdeveloper2 on Friday April 03, 2020 @02:54AM (#22766847)
The phrase 'undefined behavior' only makes sense in the context of an ISO standard.

For any particular combination of compiler, OS and computer architecture there are no 'undefined behaviors'; you only care about the concept if you want portability to a different compiler/OS/architecture.

So the idea that C++ sucks because of 'undefined behavior', so let's use some random language without an ISO standard or any portability guarantees at all is completely and utterly insane.