Slashdot Mirror


User: Cyberax

Cyberax's activity in the archive.

Stories
0
Comments
5,567
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 5,567

  1. Re:C# compatibility? duh... on Java Generics and Collections · · Score: 1

    That won't work if you use new Tiger features. It's just like you're using an older version of compiler.

  2. Re:Java 'generics' are not real generics on Java Generics and Collections · · Score: 1

    void doSomething(List lst)
    {
          lst.add("Hello, world!");
    }

    List<Integer> intList=new ArrayList<Integer>();
    doSomething(intList);

    assert(intList.get(0) instanceof Integer); //Oops!

  3. Re:Java 'generics' are not real generics on Java Generics and Collections · · Score: 1

    Yes, I absolutely hate to maintain old pre-1.5 code because generics make it so much easier to use.

    But the problem is that generics could be implemented in a much better way, C# proves that.

  4. Re:C# compatibility? duh... on Java Generics and Collections · · Score: 2, Interesting

    It means that you can create List and pass it to a legacy method which takes only unparameterized List. Or you can get unparameterized List and cast it to parameterized type.

    It's impossible to do in C#/C++.

  5. Re:C# compatibility? duh... on Java Generics and Collections · · Score: 1

    No, you can't.

    If your code uses Java 5 features then it won't run on JDK1.4. You can use tools like Declawer or Retroweaver to run 1.5 code on 1.4 but only to a certain degree.

  6. Re:Reading Generified Code Makes My Brain Hurt on Java Generics and Collections · · Score: 3, Insightful

    Bullshit.

    Generics syntax is quite readable and easy-to-use, especially with good IDE support. And generics certainly make the code more readable because the add type information.

    Foreach loops, varargs and autoboxing is just a minor syntax sugar, nothing really big.

    I've used a lot of collection frameworks in a lot of languages (and even wrote my very own vector and string for C++), Java Collections Framework is quite OK. It's not hard and reasonably fast.

  7. Re:All Roads Lead to Rome on Java Generics and Collections · · Score: 2, Informative

    Unworkable. Polymorphism and ifs/switches are SEVERAL ORDERS OF MAGNITUDE faster than database access. So it's better to keep them separated.

    As for metaprogramming - you can look at Nemerle (http://nemerle.org/Main_Page) which excels at metaprogramming. It's one of the best languages I've seen.

    But there's research in bridging the gap between databases and code - see http://en.wikipedia.org/wiki/Language_Integrated_Q uery for an example.

  8. Re:Java 'generics' are not real generics on Java Generics and Collections · · Score: 2, Informative

    Sorry, Slashdot ate "<" and ">".

    "you can easily put Strings in List" should be "you can easily put Strings in List<Integer>".

    "so you can have List without overhead of boxing" should be "so you can have List<Integer> without overhead of boxing"

  9. Java 'generics' are not real generics on Java Generics and Collections · · Score: 5, Informative

    Java generics are not real generics, then you parametrize a generic class in Java you don't really create a new type. You just attach some information for Java compiler so it can perform automatic casting and save you some typing.

    Java generics don't provide real type safety, for example, you can easily put Strings in List (that's why Collections.checkedCollection kludge was added).

    In C# (or C++), on the other hand, parameterizing a generic type creates a _new_ _type_ which guarantees type safety and allows some quite interesting tricks. For example, in C# generics can be parametrized by primitive types and structs (which don't exist in Java, anyway) so you can have List without overhead of boxing. That's impossible in Java.

  10. Re:What? on Working Around Vista Apps' Incompatibilities · · Score: 1

    I'm using OpenSource VPN driver. Besides, I'm slowly porting FUSE to Windows on my free-time and it also requires kernel module.

  11. Re:What? on Working Around Vista Apps' Incompatibilities · · Score: 1

    Yep. Just try to install OpenSource driver on Vista x64.

  12. Re:Prove it! on Photosynthesis May Rely On Quantum Effect · · Score: 1

    Yes, of course is 'perturbation theory'. Sorry, English is not my native language.

    By 'nope' I mean that QM and GR _do_ work together, because we've tested both of them and found them to be correct. We just don't know how to use both of them at the same time :)

    And quantum mechanics and special relativity (i.e. quantum mechanics in flat Minkowski space) were successfully united back in 30-s. It's GR which causes problems.

    String theory has exactly the same problems with renormalization.

  13. Re:Prove it! on Photosynthesis May Rely On Quantum Effect · · Score: 1

    Nope, current methods (renormalization and permutation theory) used in quantum mechanics just do not work well in curved space.

  14. Re:Ethnic cleansing is largely accepted on Google Earth Highlights Darfur · · Score: 1

    OK, so ethnic cleansing (i.e. burning people's houses and forcing them to move or starve to death) is now OK?

    And it will be OK for Iran to force Israel (using nuclear and biological weapons threat) to move somewhere else so Palestinians can live freely? If a wrong thing has been done several times it doesn't stop being wrong.

    You might notice, that such cleanings rarely solve problems: India and Pakistan, Israel and Palesting, Georgia and Abkhazia, etc.

  15. Re:anti-christ on Google Earth Highlights Darfur · · Score: 1

    Don't flatter me, I'm not incompetent enough to be the real antichrist :)

    It's funny, but my second name can be translated from Russian as "demon expeller".

  16. Re:Bosnia a good counterexample on Google Earth Highlights Darfur · · Score: 1

    Sorry, I've overlooked 'Bosnia'. Yes, the role of NATO and UN in the resolution of Bosnia conflict was more successful than the later conflict.

    I'm not confusing 'genocide' with 'refugee', I'm confusing 'genocide' with 'ethnic cleansing'. Albanians permitted large scale ethnic cleanings which are also prohibited by international law.

  17. Re:Bosnia a good counterexample on Google Earth Highlights Darfur · · Score: 1

    Compare Milosevic trial with Saddam's trial. Do you see any difference?

    Oh, and do you remember photo of concentration camp with poor starving Albanians? Which turned out to be a holding center for Serb refugees?

    So are you saying that genocide of Serbs is OK since they did that to Albanians earlier? Maybe we should use biological weapons on the USA population because US did that to native Americans earlier?

    Do you realize that almost every war results in war crimes? Why don't we see Albanian warlords tried for their crimes?

  18. Re:Sources please? on Google Earth Highlights Darfur · · Score: 2, Informative

    http://en.wikipedia.org/wiki/Kosovo#Kosovo_after_t he_war - this article cites a lot of credible references (see the list below). There is much more material in Russian. You can google for it yourself.

    It was publicized a bit by Russian TV and newspapers, but Europe completely is silent about the whole Kosovo situation. Small wonder, because number of misplaced Serbs exceed number of Albanian refugees misplaced by evil Milosevic.

  19. Re:Bosnia a good counterexample on Google Earth Highlights Darfur · · Score: 3, Insightful

    Yes? What sort of Kool-aid do you drink?

    About a quarter million of serbs were forced to move after the end of "humanitarian bombings" ("After the war ended, the UN Security Council passed Resolution 1244 that placed Kosovo under transitional UN administration (UNMIK) and authorized KFOR, a NATO-led peacekeeping force. Almost immediately returning Kosovo Albanians attacked Kosovo Serbs [1], causing some 200,000-280,000[20] Serbs and other non-Albanians[21] to flee"). But that's not a genocide, sure. That's just a "normal migration".

    And now Kosovo is the major center of drug trafficking in Europe and poverty levels there are highest in Europe.

    Maybe you should read transcripts of Milosevic's trial? Have you ever wondered why such prominent trial was not widely published? My brother did a research for his term paper and found that the court found sufficient evidence for exactly ONE case of war crimes.

  20. Re:anti-christ on Google Earth Highlights Darfur · · Score: 3, Funny

    At least it's a COMPETENT antichrist. As opposed to US government...

  21. Re:That sorts him out but one major fault remains on Gates to join Simonyi in Space? · · Score: 2

    But just imagine the possibilities! If you throw a chair in the space - it will fly almost eternally (until its orbit decays).

  22. Obvios on Gates to join Simonyi in Space? · · Score: 1, Funny

    Well, we'll all hope that they'll remain there and never return to the Earth.

    On the other hand... 'Space overlords' line doesn't look good...

  23. Re:Straw poll: on Water Found in Exoplanet's Atmosphere · · Score: 1

    The problem with silanes is lack of stable aromatic compounds - carbon seems to be unique in that sense, AFAIR. Si atoms just have a lot more degrees of freedom - they don't hybridize, they just oxidize/reduct.

  24. Re:Regardless.... on Blizzard Seeks to Block User Rights, Privacy · · Score: 1

    Why not? Let them catch me if they can :)

    Games should not be designed so you need to kill 123954 boars to obtain SuperDuperSwordOfPower. Particularly, Lineage is unplayable without bots :)

  25. Re:Specifically... on S.T.A.L.K.E.R. Using Unlicensed Assets From Doom 3? · · Score: 2, Informative

    Boris Strugatskiy (http://en.wikipedia.org/wiki/Arkady_and_Boris_Str ugatsky) allows copying and reproduction of his works without royalties. He's a rare example of a writer who does not write only for money.

    I've played STALKER and it's absolutely not similar to HL2 or Doom. I don't deny that they may have 'borrowed' some models (probably, it was accidental) but the game itself is absolutely NOT a rip-off from Doom/HL.