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

Pages: 1-

21st century calling

Name: Anonymous 2015-05-03 7:00

Why are you still coding in unsafe, primitive languages such as C and C++, both are more than 30-40 years old?
There is like zero type safety or even guarantees it works right after compiling. You could be corrupting your memory right and left and never know that as long as it compiles.

Name: Anonymous 2015-05-03 7:20

>>1
clang --help | grep "--analyze"

Name: Anonymous 2015-05-03 7:22

This post convinced me to switch to Pythong.

Name: Anonymous 2015-05-03 7:37

You know, I just...program things. The Haskell has safety, Rust has safety, Ada got plenty of safety. You know, they’re schemers. Schemers trying to control their little worlds. I’m not a schemer. I try to show the schemers how pathetic their attempts to control things really are.

Name: Anonymous 2015-05-03 9:03

>>3
In this moment i'm pythonic. Not because of phony lambdas and type classes, but because i'm enlightened by my indentation.

Name: Anonymous 2015-05-03 9:22

>>1
both are more than 30-40 years old?

Have you even heard of ML?

Name: Anonymous 2015-05-03 9:25

>>5
If indentation so bad, how come Python is so popular?

Name: Anonymous 2015-05-03 11:10

When naming the features that a 21st century /prog/-ramming language must have to be non-obsolete, I'd list the following:

1) no null pointers (1 billion dollar mistake and an instant show-stopper), heterogenous types (aka sum-types, tagged unions) instead.

2) encourage wholemeal programming - manipulation of arrays and matrices without mentioning any indices, no manual loop variable mutation, etc.

3) closure principle everywhere - values of type A must always be composable to produce a value of the same type A, not of some "subtype" or any other type, not the A -> A -> B bullshit from OOP.

Name: Cudder !cXCudderUE 2015-05-03 11:24

"Those who give up freedom for security deserve neither."

Name: Anonymous 2015-05-03 11:51

>>9
Enjoy reinventing GC in your every project.

Name: Anonymous 2015-05-03 12:32

dubs

Name: Cudder !cXCudderUE 2015-05-03 13:49

>>10
If you plan your algorithms right, you don't even need dynamic memory allocation.

Of the few cases that something like GC is needed, I'll enjoy reinventing a specialised version that's actually fit for the purpose.

Name: Anonymous 2015-05-03 14:15

>>12
Try writing a tree without dynamic memory allocation.

Name: Cudder !cXCudderUE 2015-05-03 14:42

>>13
Try looking at lzhuf.c

Name: Anonymous 2015-05-03 15:17

>>1
There's literally nothing better

that's how much computing has advanced in those years

Name: Anonymous 2015-05-03 16:21

>>14
It's horrible. For example, this is just the insertion:

static void InsertNode(int r) { /* insert to tree */
int i, p, cmp;
unsigned char *key;
unsigned c;

cmp = 1;
key = &text_buf[r];
p = N + 1 + key[0];
rson[r] = lson[r] = NIL;
match_length = 0;
for ( ; ; ) {
if (cmp >= 0) {
if (rson[p] != NIL)
p = rson[p];
else {
rson[p] = r;
dad[r] = p;
return;
}
} else {
if (lson[p] != NIL)
p = lson[p];
else {
lson[p] = r;
dad[r] = p;
return; } }
for (i = 1; i < F; i++)
if ((cmp = key[i] - text_buf[p + i]) != 0)
break;
if (i > THRESHOLD) {
if (i > match_length) {
match_position = ((r - p) & (N - 1)) - 1;
if ((match_length = i) >= F)
break; }
if (i == match_length) {
if ((c = ((r - p) & (N-1)) - 1) < (unsigned)match_position) {
match_position = c; }}}}
dad[r] = dad[p];
lson[r] = lson[p];
rson[r] = rson[p];
dad[lson[p]] = r;
dad[rson[p]] = r;
if (rson[dad[p]] == p)
rson[dad[p]] = r;
else
lson[dad[p]] = r;
dad[p] = NIL; /* remove p */}

Name: Anonymous 2015-05-03 16:25

match_position = c; }}}}
}}}}
What

Name: Anonymous 2015-05-03 16:26

>>1
I am not coding, I am programming. Don't get them mixed up.

Name: Anonymous 2015-05-03 16:27

test

Name: Anonymous 2015-05-03 16:47

>>15
Dethroning C/epples will take decades even if some magical lang fixes all problems,running faster than C.
Even with games and OSes switching from C/epples, C/epples will be improved by getting new compiler upgrades/standards and developers could switch back.
Lets say Ada suddenly got major upgrades that would put it on par with C++, do people start migrating to it? No, they'll wait for new Ada to stabilize/get implemented, benchmark it, test it, debate it etc.
It would have to be clearly superior in all aspects to switch. All talk about safety and correctness wouldn't cut. Realistically Pascal family(Ada,FreePascal,Oberon) are the only non-C languages that can evolve into a C contender in the future because they don't depend on C/C++ codebases and are simple enough to program/read/port/etc for all architectures.

Name: Anonymous 2015-05-03 17:01

Name: Anonymous 2015-05-03 17:24

>>17
LISP

Name: Anonymous 2015-05-03 17:25

>>20
Ada suddenly got major upgrades that would put it on par with C++
It would need downgrades, not upgrades, for that.

Name: Anonymous 2015-05-03 18:03

Ada, SPARK, Eiffel and all those Franco-languages using DESIGN-BY-CONTRACT are shit. You only need to enforce your team to do things when some of the members are incompetent apes who shouldn't be programming in the first place. That's why FOIC is also useless shit.

Name: Anonymous 2015-05-03 18:06

Excuse me, I meant FIOC.

Name: Anonymous 2015-05-03 18:12

>>24
Bullshit. It's just that in your company, buggy and error-prone code is considered okay because you're so AGILE and TEST-DRIVEN. Programmers who care about getting stuff right actually need to enforce invariants at various interfaces, and contracts are one of the ways to do it.

Name: Anonymous 2015-05-03 18:39

>>26
No, we don't use mememethodologies because we know exactly what we're doing. A good macro-assembler, well designed algorithms, and proper documentation and comments are everything you will ever need iff you are a good programmer.

Name: Anonymous 2015-05-03 18:43

>>27
Except that good programmers would never a use macro-assembler, as it is really unproductive and unportable. Your opinion was disregarded.

Name: Anonymous 2015-05-03 19:10

>>28
But it's a macro-assembler.

Name: Anonymous 2015-05-07 17:49

>>1
Because in 22nd century, my programs will still run due backward compatibility, legacy support and portability of C runtimes.

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