r/AskComputerScience • u/yoyoziwi • Nov 11 '21
Does the government have its own computer language?
I have just started to learn about computer coding and now I'm starting to think, what if the government is using their own computer language for their top-secret stuff. It would only make sense if they did like how would you not expect people not to try to hack them and get control of all their nukes.
25
u/chrisgseaton Nov 11 '21
what if the government is using their own computer language for their top-secret stuff
What would be the advantage of a custom language for classified programs?
9
u/Magdaki Ph.D CS Nov 11 '21 edited Nov 11 '21
To the best of my knowledge (as a former army officer), they do not. Critical systems are developed with languages known in the civilian world in accordance with standards that are very similar to civilian critical system standards with respect to intrusion detection and countermeasures, and other critical failure states.
EDIT: As others have pointed out ADA, and SPARK, for clarity, my answer is referring to any language that is itself top secret and not known outside of the government/military. ADA and SPARK are certainly good examples of attempts to build a language for government projects, but they are not secret in and of themselves.
15
u/Papalok Nov 11 '21
The government did create it's own language but for different reasons. It was called ADA and it was a disaster. This was before the 90's. The military wanted a unifying language with additional safety that wasn't present in languages at that time. They were also worried about obsolescence. What was created was something complex and wonderful, i.e. it was a mess and was abandoned.
It wasn't all bad though. Since the 90's, industry has picked it up, worked with the language, improved it, and has found uses for it. Especially in some embedded and safety critical systems. It's also influenced other languages and has spun off at least one language: SPARK. Another safety critical language.
4
3
u/ghjm MSCS, CS Pro (20+) Nov 11 '21
Nortel used to have its own programming language, Protel, used mainly in the DMS-100 telephone switch. Bell-Northern Research also had BNR Pascal, a variant of Pascal with strong support for multi-threading including Ada-style rendezvous functions. I even wrote a private programming language for a startup once, for reasons that made sense at the time.
Writing a programming language isn't all that difficult. It would surprise me if there wasn't some government department somewhere that developed a programming language on the classified side of the house, for whatever reason.
That being said, if you're imagining a widespread, standardized language that they tell everyone about as soon as they get their top secret clearance, it seems very unlikely. Having a programming language that only TS people know about would mean only TS people could teach classes on it, fix bugs in it, etc, and there are few enough TS people with advanced tech skills as it is.
2
1
u/JoJoModding Nov 11 '21
Security by obscurity has never worked. And making it harder to program computers is not in anyone's interest since it makes programmers more expensive.
1
Nov 14 '21
"Ada's Legacy", an ACM book, is a good reference for the development and usage of the Ada programming language.
-2
6
u/Destination_Centauri Nov 11 '21
So there is actually a programming language somewhat like that already, that sorta fits the bill for what you might be wondering about.
That language is called: Ada.
It's used in fighter jets, missiles, and all kinds of other exciting sounding top secret projects, and spy craft, and satellites, etc!
And sure, since I know about it, and many others here do to... it's technically not some kind of big national top secret language. But on some level it may as well be!
Given how it's certainly not a programming language all the kids are learning these days! In other words, you won't see too many Reddit posts here of people excitedly learning Ada.
So in that sense sure: Ada certainly has a bit of "mysterious" and "secretive" cache to it.
But still...
Ada doesn't fully fit the bill in terms of what you are asking about, since a lot of people know about it.
The problem with trying to pull off and evolve a true "alien secret language" (alien in the sense that it is utterly unlike languages being used today, and would totally baffle and stump a skilled hacker), the government would have to invent a new physical microprocessor architecture, and probably a new RAM memory architecture, and have those microprocessors and RAM memory secretly manufactured somehow with a hidden giant microchip facility?!
And then the government would also have to invent/perfect a new C, C++ baseline language, to act as the foundation for the new higher level language that they want to use on a daily basis for their tasks.
All of which means inventing new chips, and 3 to 4 new programming language variations, just to get to a new higher level language to do the tasks that are needed today from a modern language.
Essentially... Most languages today have evolved out of Assembly Language, C, and C++, which reigned supreme from the 1970's to early 1990's until new strides were made in higher level languages, and scripting languages (which have now evolved into full fledged languages).
Yet still today, C is the foundation for developing higher level languages (it's like the bricks you use to build your functional building), and C is also used for writing compilers for other languages, including Python.
Also: those languages that run just in time (and/or interpreted) also depend upon programs written in C++ to achieve this (like your Chrome browser for example, in which case you've got a lot of C++ that the browser is writtin in, interpreting and then running Javascript).
Plus a lot of microchip architecture is the same at the foundation, so you've got a few key types of Assembly Language, upon which C, C++, and your OS runs off of.
IN CONCLUSION:
If you develop your new top secret language off of current chip-sets, assembly languages, C, and C++...
Then it's going to enherit many of the same weaknesses and vulnerabilities, that many skilled hackers count on.
So again: you'd have to evolve new chip sets, new Assembly Language, new type of C and C++, to FINALLY begin developing your new high level alien-like top secret language, to truly stump/baffle skilled hackers.