Discussion:
c 2 java
(too old to reply)
v***@at.BioStrategist.dot.dot.com
2015-11-06 20:30:05 UTC
Permalink
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]
Eric Sosman
2015-11-06 21:16:41 UTC
Permalink
Post by v***@at.BioStrategist.dot.dot.com
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?
--
***@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM
v***@at.BioStrategist.dot.dot.com
2015-11-08 02:53:28 UTC
Permalink
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]
Eric Sosman
2015-11-08 12:39:34 UTC
Permalink
Post by v***@at.BioStrategist.dot.dot.com
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.
--
***@comcast-dot-net.invalid
"Don't be afraid of work. Make work afraid of you." -- TLM
v***@at.BioStrategist.dot.dot.com
2015-11-09 00:41:37 UTC
Permalink
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]
Loading...