Click here to Skip to main content
15,917,592 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Java vs. C# Pin
Ian Shlasko16-Jul-15 4:01
Ian Shlasko16-Jul-15 4:01 
GeneralRe: Java vs. C# Pin
loctrice16-Jul-15 3:53
professionalloctrice16-Jul-15 3:53 
GeneralRe: Java vs. C# Pin
Ian Shlasko16-Jul-15 4:04
Ian Shlasko16-Jul-15 4:04 
GeneralRe: Java vs. C# Pin
Eric Whitmore17-Jul-15 3:13
Eric Whitmore17-Jul-15 3:13 
GeneralRe: Java vs. C# Pin
Ian Shlasko17-Jul-15 3:38
Ian Shlasko17-Jul-15 3:38 
GeneralRe: Java vs. C# Pin
harold aptroot16-Jul-15 4:09
harold aptroot16-Jul-15 4:09 
GeneralRe: Java vs. C# Pin
Ian Shlasko16-Jul-15 4:17
Ian Shlasko16-Jul-15 4:17 
GeneralRe: Java vs. C# Pin
irneb17-Jul-15 21:51
irneb17-Jul-15 21:51 
Regarding the value types: Well, seeing as you're basically compiling to JS it "shouldn't" really matter. But if direct compilation to bytecodes/IL those value types do help a LOT on CPU caching optimizations. I've seen speedups of orders of magnitude on number crunching, simply by changing a class to a struct.

I mean, for the love of Pete why can't I have something like a struct in Java? Do I always have to make use of several disjoint arrays of ints (necessitating multiple corroboration methods just to keep all of their indexes aligned) if my actual data is correlated in groups, why can't I just use an encapsulation to group them and still derive the benefits of sequential memory locations?

True struct/class in C# isn't "wonderful" (i.e. not like C++ where you could have both in both manners), but at least it's "something". With Java there simply isn't any equivalent!

GeneralRe: Java vs. C# Pin
Ravi Bhavnani16-Jul-15 4:34
professionalRavi Bhavnani16-Jul-15 4:34 
GeneralRe: Java vs. C# Pin
Ian Shlasko16-Jul-15 4:52
Ian Shlasko16-Jul-15 4:52 
GeneralRe: Java vs. C# Pin
Nagy Vilmos16-Jul-15 20:31
professionalNagy Vilmos16-Jul-15 20:31 
GeneralRe: Java vs. C# Pin
Ian Shlasko17-Jul-15 2:55
Ian Shlasko17-Jul-15 2:55 
GeneralRe: Java vs. C# Pin
jibalt17-Jul-15 9:30
jibalt17-Jul-15 9:30 
GeneralRe: Java vs. C# Pin
Kevin McFarlane16-Jul-15 4:56
Kevin McFarlane16-Jul-15 4:56 
GeneralRe: Java vs. C# Pin
Ian Shlasko16-Jul-15 5:03
Ian Shlasko16-Jul-15 5:03 
GeneralRe: Java vs. C# Pin
NickPace16-Jul-15 5:06
NickPace16-Jul-15 5:06 
GeneralRe: Java vs. C# Pin
Ian Shlasko16-Jul-15 5:31
Ian Shlasko16-Jul-15 5:31 
GeneralRe: Java vs. C# Pin
Luiz Monad21-Jul-15 5:49
professionalLuiz Monad21-Jul-15 5:49 
GeneralSkype Support Pin
C-P-User-316-Jul-15 3:26
C-P-User-316-Jul-15 3:26 
GeneralRe: Skype Support Pin
NickPace16-Jul-15 5:08
NickPace16-Jul-15 5:08 
GeneralI was about to post a joke about posting a joke Pin
Nick Polyak16-Jul-15 3:13
mvaNick Polyak16-Jul-15 3:13 
GeneralRe: I was about to post a joke about posting a joke Pin
C-P-User-316-Jul-15 3:38
C-P-User-316-Jul-15 3:38 
NewsRe: I was about to post a joke about posting a joke Pin
clientSurfer16-Jul-15 9:50
professionalclientSurfer16-Jul-15 9:50 
GeneralRe: I was about to post a joke about posting a joke Pin
irneb17-Jul-15 21:56
irneb17-Jul-15 21:56 
GeneralIf you post anything with the word "Joke" in it Pin
Slacker00716-Jul-15 3:06
professionalSlacker00716-Jul-15 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.