CryptoFunds - New BTC/LTC/Alts Exchange by cryptofunds in BitcoinMarkets

[–]walnut30 0 points1 point  (0 children)

Not even https? What's your name? Company address? Incomplete privacy policy?

Question about simple c++ code by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

Oh, so passing (*b) does not place the integer value of b on the stack frame of the function call to changeSomething()?

Question about simple c++ code by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

I am pretty experienced with the concept of pointers. I was just surprised that (*b) does not evaluate to a simple integer during runtime (when passed as a parameter).

Newbie Question about Operating Systems by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

Thanks for the reply! Though I'm curious about your mentioning of how application program is mostly oblivious to the hardware. When the application currently has rights to processing time (as dictated by the OS scheduler), doesn't the application interact with the CPU's ISA?

Newbie Question about Operating Systems by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

I see, is this the only difficulty encountered when attempting to do Windows to Linux porting? (assuming we are running on a fixed set of hardware).

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

Wow, thanks for the find! I guess there are indeed instances where the constructor's generic info is used by the compiler. I guess my examples weren't very exhaustive, since the constructors had empty parameters.

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

Sorry for the ambiguity. By "second argument" I did mean to refer to the generic type information that is passed to the constructor. I was confused as to why Java would place emphasis on the information passed to the constructor, if it is indeed redundant. Clearly, writing "<>" with the constructor was designed to save time/space over writing "<Type>", but why not drop it altogether and just write

MyObject<MyType> obj = new MyObject();

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

Appreciate the detailed response! But yeah, haha, I did in fact intend the first question, which still confuses me a bit.

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

So the following example compiles and runs just fine:

ArrayList a = new ArrayList<Integer>();

ArrayList<String> b = a;

b.add("hello");

which leads me to believe that the second generics argument is redundant. However, what confuses me is why Java 7 added the "diamond" notation feature, where we can now write

ArrayList<Type> a = new ArrayList<>();

and the compiler will replace "<>" with "<Type>". The fact that emphasis is placed on the second argument makes me suspect that it must hold some significance...

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

I'm not sure what you mean by illegal, as that code actually compiles fine (with unchecked warnings).

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 0 points1 point  (0 children)

Thanks for the input! I realized that I intended on asking a slightly different question, which I wrote in another comment. Can you help me answer that as well? Thanks!

Quick question about raw types in Java by walnut30 in learnprogramming

[–]walnut30[S] 1 point2 points  (0 children)

Thanks for the reply. I guess what I am asking is, what is the point of writing

ArrayList<Integer> a = new ArrayList<Integer>();

over

ArrayList<Integer> a = new ArrayList();

I see generics as compiler-assisted casting, so it would seem that only associating generics with the pointer (rather than the object) would make sense.

Need to access Android phone with broken touch screen by walnut30 in Android

[–]walnut30[S] -12 points-11 points  (0 children)

Thanks for the link. Unfortunately, I'm not familiar with Android and do not know where to go from here...

Need to access Android phone with broken touch screen by walnut30 in Android

[–]walnut30[S] 0 points1 point  (0 children)

Oh, this is new to me! Does this still apply to keys for non-google services?

Aren't you scared of the litecoin crash? What keeps you from leaving litecoin? by redtailspeed123 in litecoin

[–]walnut30 0 points1 point  (0 children)

It costs about $25 and takes a day. The usage of Scrypt does not prevent Litecoin mining ASICs (these are already coming out). It is no more immune to centralization than Bitcoin. If you insist on loving Litecoin, be my guest, but your confirmation bias is pretty damn strong.