by ejcx · 11y ago · 0 comments
"Its main goals are security.."
Is it actually?
I also don't really see an advantage of using something like this over something like the Go net/http package.
Web-type API stuff is usually high enough level that something like C doesn't make sense. Go has nice enough standard packages for system things that even if I was doing a lot of system-y stuff I would be alright. I don't really see the type of work I would be doing where I want to use this.
C runs "everywhere". Your old C64 from the 80's? Has C compilers.
Go does not, even with gccgo.
I'd bet there are also still likely at least two orders of magnitude more programmers that know C well, and still more programmers with in depth experience of embedded development in C than have even tried Go.
I've still yet to meet anyone outside of the startup devops bubble that have written any Go, and often what language the developers have experience with matters more.
Yeah, but the idea to use them back then was like trying to use Ruby for real time applications in modern days, given how shitty they were.
Home computers might have had implementations of C and Pascal dialects, but we all used Assembly when stepping out of the built-in Basic and Forth enviroments.
For example being strict on the network input path and doing proper validation of incoming data is a strong part of the design.
Or was the question more related to, it is C therefor security cannot be part of the process?
Sure high level language can help with memory management... but plenty of CVE are because of sloppy coding, not because of low level language.
A high level language should reduce boilerplate and 'force' you to write concise and predictable code.
PHP does none of that especially in the context of error/exception handling.