3 ms·
I'm just gonna say I oppose this proposal because I'm really tired of seeing developers shy away from utilizing or learning C/C++ only to admit much later in a
by norea-armozel 10y ago
I'm just gonna say I oppose this proposal because I'm really tired of seeing developers shy away from utilizing or learning C/C++ only to admit much later in a project's life cycle that those languages and their associated libraries are the best for the job. I'm all ears on utilizing JS for front end to even a desktop application but if the entire thing gets written to be ran on Servo or whatever browser engine they choose then I oppose it categorically. JS might be fine for some things but as a general programming language on a substandard runtime is just asking for trouble. Learn to write in C/C++ for native applications or go home.
- Kinnard 10y agoWhy do you oppose things being run on something like Servo categorically?
- norea-armozel 10y agoBecause there's existing libraries which solve many of the same problems which they inevitably run into and then re-implement them in JS. The "not invented here" mentality has to stop. Unless there's a significant reason to not utilize a library then it shouldn't be avoided. There's no good reason to replicate that functionality.
- Silhouette 10y agoThe "not invented here" mentality has to stop. This is true, but the track record of bugs and poor security inherent in using relatively low-level languages like C and C++ for everyday Internet-connected applications also has to stop.
- norea-armozel 10y agoThat doesn't really help you when the platform you run on be it a browser or a virtual machine is written in C/C++ which by implication can be exposed to the same security flaws if/when they utilize unsafe design patterns or idioms. So, all you've done is pass the buck onto Servo/Gecko/Safari. The reality is that you can't make an argument that's ironclad in favor of forcing JS to become the new C. Let JS do it's wonders for the web and let C/C++ and other languages that have great native application tools do their wonders for the desktop?
- Silhouette 10y agoI didn't say anything about using JS as the alternative. I happen to think it's a rather poor language and that using it for anything other than running front-end code on a web site until we have better alternatives is usually a mistake. But there are a lot more languages out there than C, C++ and JS, and I don't think any of those is a particularly good choice for this sort of task.
- norea-armozel 10y agoOh no doubt there's better languages in terms of general purpose programming. I'm biased towards OCaml myself since it has nice syntax but there's plenty of options to choose from. I'm just pointing to C/C++ languages since they're the most mature and widely available in terms of documentation, IDEs, etc.
- deleted 10y ago[deleted]