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

Pages: 1-4041-

Convince me

Name: Anonymous 2012-11-04 23:06

Convince me why I should use C over Java.

Name: Anonymous 2012-11-04 23:08

Horses for courses.

Different languages are good for different things.

Name: Anonymous 2012-11-04 23:09

>>2
Java isn't good for anything.

Name: Anonymous 2012-11-04 23:16

Java is good for a starter class, since you can then branch easily into algorithms, OOP garbage and into real programming.

There's no excuse for using Java after that unless you are in a machine with only the JVM+JDK installed and need to make a simple TCP client/server toy in under 5 minutes.

Name: Anonymous 2012-11-05 0:07

>>3
I thoroughly agree

Name: Anonymous 2012-11-05 3:06

If Java isn't complete shit, why isn't the JVM written in Java?

Name: Anonymous 2012-11-05 3:17

>>6
IKIWBTSIWNTBIWAT

Name: Anonymous 2012-11-05 3:22

You shouldn't. Read SICP.

Name: Anonymous 2012-11-05 3:25

C has shittiness rating of 140k and java is almost 200k.  Java is about 40% more shitty>

Name: Anonymous 2012-11-05 3:38

>>7
NYJMUA

Name: Anonymous 2012-11-05 4:12

>>6
Nobody has bothered doing it. The first JVM was done in C and so, it makes sense to just continue working on what is already known and understood.

Name: Anonymous 2012-11-05 7:38

>>11
Nobody has bothered doing it. The first JVM was done in C
Are you trying to CURTAIL MY ESSENTIAL RIGHTS cretin? Fuck off and die in a fire, I am entitled to my rights and I will fight for them.

and so, it makes sense to just continue working on what is already known and understood.
You asked for it. I am loading the gun right now, illogical piece of shit.

Name: Anonymous 2012-11-05 7:50

>>1
Use Java and convince yourself.

Name: Anonymous 2012-11-05 7:52

>>12
+5, Troll

Name: Anonymous 2012-11-05 8:03

Convince me your body is ready for ANSI C.

Name: Anonymous 2012-11-05 8:49

>>12
fuck off, pseudofeminist freedom-hating faggot

Name: Anonymous 2012-11-05 13:10

C : if you want to take 10 times the time and effort in writing the code

C++ : if you want to take 10 times the effort in fighting the compiler and looking up numerous special cases you encounter

Java : if you want the program to run 10 times slower

D : if you want to write it quickly and have it run quickly

Name: Anonymous 2012-11-05 13:14

Lisp: If you enjoy programming.

Name: Anonymous 2012-11-05 13:15

Symta: if you have tried it yet

Name: Anonymous 2012-11-05 13:30

Ruby: if you're a ``faggot''

Name: Anonymous 2012-11-05 13:34

javascript: if you're ready for the future and the most powerful language in existence

Name: Anonymous 2012-11-05 13:42

>>21
See >>20

fagshit

Name: Anonymous 2012-11-05 13:42

>>21
when will the javashit kike troll leave for good

Name: Anonymous 2012-11-05 14:25

>>23
When you go back to /b/

Name: Anonymous 2012-11-05 15:36

>>1
"Why?" is a useless question. "When?" is a better one. If you're writing a daemon that runs indefinitely and churns through a lot of data for every incoming connection, there's probably no reason at all to pick C over Java. However, if you're writing a  frequently invoked command line tool that needs to launch and finish its task as quickly as possible, anything on the JVM is outright disqualified, whereas (ironically enough) Ruby or Perl might be as good a choice as C.

If you hope to be a good programmer you should learn all of these and know their weaknesses.

Name: xposter 2012-11-05 15:37

Here is something that always bothered me: What if there wouldn't be a single light source in the entire universe? Certainly it wouldn't be dark, because for there to be shadow you have to have a light source. On the other hand, if in such a universe you'd place a light source inside a closed box, the entire universe would be dark, because the box would effectively emit shadow into each direction.

Sincerely, a fellow ``faggot''.

Name: Anonymous 2012-11-05 15:39

>>26
Shadow is just an absence of ligh--IHBT

Name: Anonymous 2012-11-05 16:27

>>26
That's some retarded shit right there yo!

Name: Anonymous 2012-11-05 17:18

>>25
There are lots of good reasons to pick C in the case you've presented. For one you can prove that what you wrote is correct, which is extremely important for what I'm currently working on. Incidentally, it's a series of daemons that will be invoked multiple times and then kept alive while a controller load-balances incoming connections over them. Very microkernel-esque.

Name: Anonymous 2012-11-05 18:08

>>29
I have to agree. A strongly typed language is invaluable when doing any kind of data processing. The compiler should go as far as running tests on your code to prove its correctness. Java simply doesn't give you that kind of guarantee.

Name: Anonymous 2012-11-06 3:21

>>25,29,30

take you ignorance back to /g/ where it belongs.

>>30

bump

Name: Anonymous 2012-11-06 4:00

>>31
You can't have security of implementation with Java. Don't even try to make that argument or even convince yourself.

Name: Anonymous 2012-11-06 4:14

>>32

You have memory safety for one. You can at least catch a generic exception at the base of root routine and restart the application and log a stack trace if something terrible happens. That's better than the segfault (at best) or memory corruption (at worst) that comes with C and C++. It's not the as good as an application that is proven correct, but there are static code analysis tools for that.

If >>30 is talking about an actually strongly typed language, then I would partially agree. But if >>30 is talking about C or C++ that then >>30 should join >>29 and >>25 in going back to /g/ and continue spreading their ignorance there.

Name: Anonymous 2012-11-06 4:16

>>33
You have memory safety for one. You can at least catch a generic exception at the base of root routine and restart the application and log a stack trace if something terrible happens.
That isn't even remotely ``memory safety''.

Name: Anonymous 2012-11-06 4:17

>>33
The whole discussion is about C/C++. Can't you read?

Name: Anonymous 2012-11-06 4:18

>>34
Give me your definition of memory safety. A Java program is not capable of producing an invalid memory access. Arbitrary memory corruption cannot happen. Although this is assuming the standard library is secure, which it isn't.

Name: Anonymous 2012-11-06 4:19

>>35

Neither C nor C++ are strongly typed. Now go back to /g/.

Name: Anonymous 2012-11-06 4:25

>>30
-i've done lots of data processing with perl specially when working with huuuge text files. hashtables (those things starting with %) might not be the faster thing out there but it's speed is pretty decent compared to the simplicity they offer to group data.
-i worked in a bank where perl was used to process data too, even to perform multidimensional calculations (risk curves with montecarlo data) in combination with a few c programs for critical parts.
-bioperl is still popular between researchers


as for java vs c, doesn't make much sense to compare the two. java vs c++ is more appropiate i think

Name: Anonymous 2012-11-06 4:55

Java pretends to be safe but it really isn't. Just because it forbids some operations with pointers and checks array bounds doesn't mean it'll save your sorry ass.

Since it's inexpressive as fuck too and is the epitome of "OOP for the sake of it" with an abhorrent standard library, it's difficult to justify choosing it for reasons other that not knowing any better.

Name: Anonymous 2012-11-06 5:23

Name: Anonymous 2012-11-06 5:37

i was going to say threadsafe before >>38 reminded me we're no longer in the 90's

Name: mawk 2012-11-06 6:42

>>38
How did you handle y2k without any load issues?
=w=

I heard lisp interns were handling all your server with glee, while your phones rang.

Name: Anonymous 2012-11-06 10:14

The only reason to ever use Java is if you're a [b][i]TURNKEY SCALABLE ARCHITECTURE 2.0 AGILE ENTERPRISE DYNAMIC NIGGER AUTISTIC FEMINIST TRANSGENDER CORPORATE SOLUTIONS CODE MONKEY

Name: Anonymous 2012-11-06 13:09

convince my dubs

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