r/AskComputerScience • u/smm_h • Jul 31 '19
What needs to be completely recreated?
If turning a piece of hardware off an on again makes it perform better and swiftlier, wouldn't writing a piece of software from scratch in a higher level language with better lower integration and more robust compilation accomplish the same?
Even if you disagree with the analogy above, what do you think, in the world of computer science, would be vastly improved if were remade?
6
4
u/claytonkb Jul 31 '19
Hardware is not deterministic, software (more or less) is.
That aside, as I grow older, the more I see the "QWERTY effect" in everything around us, even "bad" technologies. I hate browsers and I hate phone apps. They're badly architected from top to bottom. But my life really is smoother and easier because of them. So, if I could flip a switch and make them disappear (but not the knowledge of how to re-write them, better this time), I would not flip it.
I am increasingly convinced that Machine Learning is going to help us fix a lot of the boo-boos of history. A bad interface can be fixed with a glue layer consisting of a good interface that is trained using ML to make the appropriate calls to the bad interface. Fixing bad interfaces now becomes a much lower-cost proposition -- it is merely the GPU-hours rented from AWS instead of thousands of hours of human sweat spent toiling over every off-by-one error in a hand-crafted piece of code.
Of course, re-wrapping a library in a new API has a performance cost but this, too, can be remedied with the help of ML. Simply throw the entire library into an ML-based, automatic code-optimization tool (the kind of tool I'm thinking of doesn't exist yet) and let it optimize the original library based on real-world patterns of calls to the new, clean API. Now, imagine wrapping multiple libraries together and repeating this process to create a bundled library with a fresh, clean API. Then bundle this into yet other libraries, and so on and so forth. I believe something like this is the path we will walk as we transition to Software 2.0.
5
u/smm_h Jul 31 '19
I hate browsers and I hate phone apps. They're badly architected from top to bottom.
Could not agree more.
...increasingly convinced that Machine Learning...
Could you point me in the direction of the information you've been reading/hearing that led you to believe in it more? Because so far I have absolutely zero faith in ML. It's just wrong. It's... very very wrong.
A bad interface can be fixed with a glue layer consisting of a good interface that is trained using ML to make the appropriate calls to the bad interface.
Do you realize how many interfaces there are? Probably ten more were born since I started writing this comment. A neural network would require thousands of datapoints to semi-acceptably learn a pattern. This would never fly. Maybe for a few specific, popular interfaces but not more.
a fresh, clean API
This is the dream. I believe this too but you have to realize, not all sw run on API. Many lower level, more fundamental and actually way bigger pieces of sw such as OS kernels, accelerator libraries, hardware layers, etc. use an ABI instead of an API which is not as abstract.
12
u/Steve132 Jul 31 '19
OpenSSL
http
Ip4 (though they tried)
The C++ ABI
5
u/james41235 Aug 01 '19
By Ip4 do you mean IPv4, being replaced by IPv6? Or some language/product I don't know?
1
19
Jul 31 '19
JavaScript. Currently it's the work of the Devil.
7
u/m-chrzan Aug 01 '19
Honestly, the current ECMA standards make it a really nice high level scripting language. Of course, the old cruft has to remain for backwards compatibility reasons, but with a good linter configuration it's actually enjoyable to write in. And gets even better when you use TypeScript.
6
u/HasFiveVowels Aug 01 '19 edited Aug 01 '19
Yea, I've noticed that my brother's peers (college aged) are now using python like crazy. I think this is in no small part due to the javascript hate that's pervaded the internet for these past few years. It's trendy to hate javascript. It's like.. congrats, you know python - you can... run statistical analysis? Javascript is honestly a great language, especially for async programming, with a wide range of potential applications. I've been programming for about 20 years now - 10 professionally - and I've learned tons of languages. Javascript's my favorite (TypeScript, technically). (inb4 someone links the "wat" video)
0
Aug 01 '19
[deleted]
1
u/HasFiveVowels Aug 02 '19
What exactly would the deployment of that look like, though? They'd include both interpreters in browsers for a while? We'd have to wait until pretty much every browser has the v++ interpreter before starting to use it. I suppose engines like Node could use it ahead of time.
4
u/phyzyk Aug 01 '19
Python documentation == hellscape of half-cocked, incomplete thoughts
And Python standard libraries. I still don't know how a language designer can deprecate half of an existing library and tell people to use the new library for the updated functions, but force them to use the old library for supported functions that they have no intention of migrating.
2
u/beeskness420 Jul 31 '19
Operating Systems like Linux. One of the biggest barriers to adopting new approaches is backwards compatibility with existing systems.
No one will want to use your OS if it can’t compete with modern OSs out the gate.
26
u/gibson1027 Jul 31 '19
Medical devices by far. There are a large number of medical devices on the market that could have rewritten or integrated IOT technology for patients/physicians to use that would take the guess work out of alot of parts. Before anyone says anything I know there are a ton of devices like this but I'd love to see more. Good pertinent data,despite there being alot, can help the future of medicine.
Simple example would be a simple chip integration into a hearing aid that detects battery and can run a simple diagnostic of failing parts.
Also the entire pornhub website because running such a useful site with php anywhere near it might as well be a warcrime.