News for hackers. Stuff that matters.
Re:Maintain It with Zig by abledon on Wednesday September 08, 2021 @02:54PM (#28461518)
We already have c/c++ as low level bases, now zig/rust are coming for the throne, I really hope contenders dont keep spawning like rabbits. If everyone got behind a smaller # of initiatives the worlds codebase would be simpler going forward?

I'm imaging some poor software engineer in 2065, having to maintain an enterprise legacy stack... levels of FORTRAN/COBOL->C->C++->ZIG->RUST->PERL->PYTHON.... all the way up....JS..etc..

Re:Maintain It with Zig by roca on Wednesday September 08, 2021 @10:59PM (#28465729)
I don't want contenders to spawn like rabbits. I want the industry to coalesce around just a few contenders to maximise network effects so as to kill off C and C++ more effectively.
Re:Maintain It with Zig by IggleSniggle on Wednesday September 08, 2021 @09:53PM (#28465322)
While I would absolutely love to have that job, I’m afraid I’ll never get to do it. Language cross-compilers seem to keep getting better. It may be that case that one day, you will run a legacy program through a babelfish and get something understandable to you back out.

Of course, the complexity might explode from there…or you might just not really notice it all that often. Anybody familiar with LLVM or WASM or heck even a language that can transpile to JavaScript can probably relate to this possibility.

The thing that’s harder to fathom is going from low-level to high-level. High-level -> intermediary low-level -> high-level is fathomable though.

Re:Maintain It with Zig by flohofwoe on Thursday September 09, 2021 @04:56AM (#28467715)
> I really hope contenders dont keep spawning like rabbits

I do, because that would mean that more attention must be paid to make languages work together, instead of each language ecosystem becoming its own little island. Maintaining a project built from a dozen languages (where each language does one thing well) should be just as simple as maintaining a mono-language project.

Re:Maintain It with Zig by kaibee on Wednesday September 08, 2021 @03:23PM (#28461836)
> I'm imaging some poor software engineer in 2065, having to maintain an enterprise legacy stack... levels of FORTRAN/COBOL->C->C++->ZIG->RUST->PERL->PYTHON.... all the way up....JS..etc..

I have good news and bad news: That programmer will not know any of those languages, as they will just program in English and GPT-3000 will convert it into code.

Re:Maintain It with Zig by PaulDavisThe1st on Wednesday September 08, 2021 @04:35PM (#28462696)
The reason that we have programming languages at all is that English and all other natural languages are too ambiguous to be used for this purpose.

GPT-3000 will have no problem understanding some interpretation of your English (or Spanish or Mandarin) "program", but will it be the right one? How long will it take to get GPT-3000 to understand what you mean when you can only talk to it in English (or Spanish or Mandarin) ?

Re:Maintain It with Zig by AnIdiotOnTheNet on Wednesday September 08, 2021 @05:59PM (#28463576)
Eventually maybe only the same amount of time it takes the average programmer to understand your meaning.
Re:Maintain It with Zig by chubot on Wednesday September 08, 2021 @07:40PM (#28464398)
So like months and years? On every project I’ve worked on, the programmers conception of the requirements evolves until the minute they stop working on it. And they only understand the part they worked on, not the whole thing
Re:Maintain It with Zig by PaulDavisThe1st on Wednesday September 08, 2021 @07:48PM (#28464460)
The discussion is not about understanding "requirements".

A piece of software is a set of instructions that tell a computer how to do something. We use languages like C, Python, Haskell and Lisp to describe what to do in ways that avoid as much ambiguity as possible.

The question is: if you used a natural (human) language, how much confusion would (a) the putative GPT-3000 (b) another programmer (c) a compiler/interpreter incur when trying to understand your instructions?

Re:Maintain It with Zig by PaulDavisThe1st on Wednesday September 08, 2021 @07:50PM (#28464476)
That might be true. But the comparison is not with another programmer. Rather, it's with the essentially instantaneous understanding that a compiler/interpreter has when you feed in a programming language.
Re:Maintain It with Zig by flohofwoe on Thursday September 09, 2021 @05:09AM (#28467784)
This has been attempted many times in the last century but never happened, I think it's quite safe to say that this also won't happen in the next century.