Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why are there high level languages?

Name: Anonymous 2013-09-10 3:46

Why the hell would anyone use Python or Ruby over C. The software should be nice to use. It's not nice when the program is slow as fuck.

Their dynamic nature makes debugging software increasingly hard. Basically developing with these higher level languages takes more time than with C.

Every program should be written in C. In most cases, it would be good to also optimize tight loops with Assembly. This way programs would be fast and fun to use.

Languages such as C# and Java have no point at all. They are essentially crippled versions of C. Limited pointers and limited memory management. The virtual machine takes forever to JIT-optimize the code, thus harming the user experience. Not to mention GC, which slows everything down, providing nothing useful in return. GC is shit.

Then there are these C++-retards. Sure, you can in theory make as fast C++-code as C-code, but is it really worth it? Every C++ program in practice is slower, harder to debug, and harder to develop.

Functional languages, such as Haskell are no answer to problem. They abstract the hardware to hell and are very slow in practice.

So tell me: Why is C and Assembly not used for every program today?

Name: Anonymous 2016-05-17 9:16

>>54
Well, one could probably also write a memory-safe string system for C that uses zero termination then that does the things (or similar things) you described. So the problem isn't how the string is represented. Length-prefixed just isn't the silver bullet.

it isn't a silver bullet but writing such a handler is easier here: you don't need to iterate through a string in search for a nullbyte. this means that the security vs muh performance becomes a false dilemma. it' also means that you can use the same functions to handle different kinds of data stored continously in memory as they don't start going crazy when they se \x00.

But let's be honest here: I think the one big problem with C and strings is that it doesn't offer dynamic allocation. I think C works just fine with fixed-length/pre-allocated strings. When you need dynamic strings, you have to at least write a wrapper for a dynamic string struct -- but even then some of the C string functions will come in pretty handy.

no disagreement here

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List