Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #3638 > unrolled thread

c 2 java

Started byvjp2.at@at.BioStrategist.dot.dot.com
First post2015-11-06 20:30 +0000
Last post2015-11-09 00:41 +0000
Articles 5 — 2 participants

Back to article view | Back to comp.lang.java.help


Contents

  c 2 java vjp2.at@at.BioStrategist.dot.dot.com - 2015-11-06 20:30 +0000
    Re: c 2 java Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-11-06 16:16 -0500
      Re: c 2 java vjp2.at@at.BioStrategist.dot.dot.com - 2015-11-08 02:53 +0000
        Re: c 2 java Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-11-08 07:39 -0500
          Re: c 2 java vjp2.at@at.BioStrategist.dot.dot.com - 2015-11-09 00:41 +0000

#3638 — c 2 java

Fromvjp2.at@at.BioStrategist.dot.dot.com
Date2015-11-06 20:30 +0000
Subjectc 2 java
Message-ID<n1j2kd$5sf$3@reader1.panix.com>
Is there an online c-to-java converter?


				    - = -
 Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
		    http://www.panix.com/~vjp2/vasos.htm
  ---{Nothing herein constitutes advice.  Everything fully disclaimed.}---
   [Homeland Security means private firearms not lazy obstructive guards]
 [Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]



[toc] | [next] | [standalone]


#3639

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2015-11-06 16:16 -0500
Message-ID<n1j57l$aqg$1@dont-email.me>
In reply to#3638
On 11/6/2015 3:30 PM, vjp2.at@at.BioStrategist.dot.dot.com wrote:
> Is there an online c-to-java converter?

     I don't know, but I doubt it.  C's and Java's models of computing
are significantly different, and I think it would be very difficult to
translate C to Java.  For starters, C can inspect and alter individual
bytes of an object representation, while Java cannot.  This means that
almost anything you do with a C pointer would be very hard to simulate
in Java.

     Lisp-to-Java might be easier. ;-)

     What is the larger problem you are trying to solve?  What piece of C
are you interested in translating to Java, and why?

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

[toc] | [prev] | [next] | [standalone]


#3641

Fromvjp2.at@at.BioStrategist.dot.dot.com
Date2015-11-08 02:53 +0000
Message-ID<n1mdf8$1ed$1@reader1.panix.com>
In reply to#3639
Actually I wanted to learn Java. I thought Java worke djust like C.
I was gonna convert a few progs I use and play with them.


				    - = -
 Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
		    http://www.panix.com/~vjp2/vasos.htm
  ---{Nothing herein constitutes advice.  Everything fully disclaimed.}---
   [Homeland Security means private firearms not lazy obstructive guards]
 [Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]



[toc] | [prev] | [next] | [standalone]


#3642

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2015-11-08 07:39 -0500
Message-ID<n1nfm3$qsa$1@dont-email.me>
In reply to#3641
On 11/7/2015 9:53 PM, vjp2.at@at.BioStrategist.dot.dot.com wrote:
> Actually I wanted to learn Java. I thought Java worke djust like C.
> I was gonna convert a few progs I use and play with them.

     "A Real Programmer can write FORTRAN in any language."

     ... and that's a likely outcome if you try to learn Java by
studying translations of C (or Pascal or Lisp or COBOL or ...).
When you study Latin, you read Caesar and Cicero and Vergil,
not translations of Goethe and Rabelais and Tolstoy.  It's much
the same with programming languages: Translations have odd quirks
to paper over the cracks (or even the canyons), and as a beginner
you'll have a hard time knowing what's "really" part of the language
you're studying and what's an artifact of the simulation framework.

     Java source code has some superficial resemblances to C, but
they are at best superficial.  You'll be better off studying Java
on its own turf than by imagining it's a "C dialect."  It's not.

-- 
esosman@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM

[toc] | [prev] | [next] | [standalone]


#3643

Fromvjp2.at@at.BioStrategist.dot.dot.com
Date2015-11-09 00:41 +0000
Message-ID<n1oq41$klf$1@reader1.panix.com>
In reply to#3642
Thanks, but I'm surprised because for 20yrs I heard it was
(not doubting you)


				    - = -
 Vasos Panagiotopoulos, Columbia'81+, Reagan, Mozart, Pindus, BioStrategist
		    http://www.panix.com/~vjp2/vasos.htm
  ---{Nothing herein constitutes advice.  Everything fully disclaimed.}---
   [Homeland Security means private firearms not lazy obstructive guards]
 [Urb sprawl confounds terror] [Phooey on GUI: Windows for subprime Bimbos]



[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.help


csiph-web