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

Pages: 1-

C++ or Java

Name: Anonymous 2014-03-11 12:01

You are forced to choose at gunpoint. You will then proceed to work on a random project for a random company that uses the language you just chose. Or you can just take the gunshot. Provide reason for such a decision.

Name: Anonymous 2014-03-11 13:36

C++

It's shitty language sure. But Java is designed for moron code monkeys and is much more limited. With C++11 I can get at least some nice features and surely a lot of control over things.

Gunpoint is not a good option from these, since it most probably involves dying.

Name: Anonymous 2014-03-11 14:31

(I assume, although it's not explicitly stated, that I'll have to write primarily in the language I choose, and that there's no dickery such as getting shunted to writing epic web apps in Javashit because the company also does C++.)

I'm choosing Sepples as well. Most of my issues with C++ come from a bloated specification and the incessant feature creep, which I can ignore in my own work. My issues with Java are more fundamental, and cannot be ignored as easily. The project itself would factor into my decision more, but as stated, the situation seems to be so wide open that I can't even say ``I'll choose Sepples because that way I have less chance of writing ESBs for a living''.

I'd still rather take the gunshot, but mostly because of the ``random project for a random company'' bit. Life sucks enough as it is, and not being able to have any choice where I work would push it over the line.

Name: Anonymous 2014-03-12 0:01

>>3

But anon, if you take the gunshot, what about the people who care about you? Didn't you consider how they feel? I care about anonymous :3

Name: Anonymous 2014-03-12 0:53

Tough call.

If Java had static metaprogramming I'd choose Java instantly.

On the other hand and similarly, if C++ had reflection, eval (with JIT), a package convention and standard garbage collection, I'd choose C++.

I do prefer the approach of the (Hotspot) JRE over LLVM (which doesn't provide as many run-time services) theoretically.

Java libraries also tend to be more well engineered and stable.

I think as things are Java is the better choice.

Both are very far from ideal languages, however.

Name: Anonymous 2014-03-12 1:32

I'd pick Sepples in a heartbeat. I'd silently replace #include <iostream> with #include <stdio.h>. The C++ -> C translation project is left as an exercise to my fellow curryniggers.

Name: Anonymous 2014-03-14 1:27

>>6
The term is ``butter chickens''.

Name: Anonymous 2014-03-20 12:36

Javascript.

Name: Anonymous 2014-03-20 16:32

java because of gc, i don't do manual memory management just like i don't do manual compilation: i get a program to do that for me.

Name: Anonymous 2014-03-20 18:36

Am I getting paid? If not, gunshot please. I don't work for free.

Name: Anonymous 2014-03-20 22:30

I only work for free because I hate--nay--I utterly despise myself.

Name: Anonymous 2014-03-20 23:56

>>8
Brazil-kun, pls.

Name: Anonymous 2014-03-21 2:43

>>8
Go back to that PUA forum you crawled out from.

Name: Anonymous 2014-03-21 12:57

>>13
I'll go back to /lounge/

Name: Anonymous 2014-03-24 13:07

Not all gunshots are lethal.

Name: Anonymous 2014-03-27 15:56

>>1

C++. It has gotoes and TCO, so you can easily compile Lisp into it.

Name: Anonymous 2014-03-30 11:07

In the very very very old version of C language (think of the time dinosaurs roamed the Earth), known as "Reference Manual" version of C (which refers to a document written by Dennis Ritchie), labels formally had type "array of int", meaning that you could declare an int * variable

int *target;

and assign the address of label to that variable

target = label; /* where `label` is some label */

Later you could use that variable as the operand of goto statement

goto target; /* jumps to label `label` */

However, in ANSI C this feature was thrown out. In the standard modern C you cannot take address of a label and you cannot do "parametrized" goto. This behavior is supposed to be simulated with switch statements, pointers-to-functions and other methods etc. Actually

Name: Anonymous 2014-04-01 2:04

>>17

C is like a portable assembler
doesn't have indirect jumps

Name: Anonymous 2014-04-01 11:06

>>18
Who are you quoting?

Name: Anonymous 2014-04-01 14:14

>>18

That is why they still use Fortran.

Name: Anonymous 2014-04-01 19:36

>>19

people who say C is a portable assembler

Name: Anonymous 2014-04-02 15:48

>>21
c
portable assembler
That's just stupid. You can't even mov stuff to registers in C. Where's the nop-instructions. Worst assembler ever.

Name: Anonymous 2014-04-02 16:20

>>22
You can't even mov stuff to registers in C.
C has "register" instruction, which should warn you, if compiler fails to keep some data in a register.

Name: Anonymous 2014-04-03 14:14

indirect jumps and registers are specific to particular processors, geniuses

Name: Anonymous 2014-04-03 15:38

>>24

Vast majority of CPUs support register jumps, otherwise buffer overflow attack wouldn't have worked. If hackers can do that, then what stopped the ANSI standard committee?

Name: Anonymous 2014-04-03 17:18

the whole point of C is that it doesn't specify how it should be implemented, c.f. the C abstract machine. guess what, it's DESIGNED to be ran on more than the "vast majority." you wont see any references to stacks or heaps in the standard either

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