Slashdot Mirror


User: AtATaddict

AtATaddict's activity in the archive.

Stories
0
Comments
35
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 35

  1. Re:Eiffel.NET on Fifth International Eiffel Programming Contest · · Score: 1

    Say I want to find documentation on the DICTIONARY class.

    localhost% short dictionary

    Or maybe I'd rather look up the array class.

    localhost% short array

  2. Re:In C# 2.0 on EiffelStudio 5.3 for Linux · · Score: 1

    Interesting, though I think I still prefer the Eiffel syntax, which sees no use for repeating "KeyType" later when the constraint is placed on its type.

  3. Re:Sad... on Preliminary OS X & PPC 970 Benchmarks · · Score: 1

    I agree, but I would clarify that the PowerPC architecture didn't "scale to" 64-bit, but rather started out as 64-bit, with a 32-bit subset.

  4. Re:Hold your horses!!! on Preliminary OS X & PPC 970 Benchmarks · · Score: 1

    Yes, we like stylish, happy computers. But stylish, happy, and blazingly fast computers are even better.

  5. Re:Two Problems on EiffelStudio 5.3 for Linux · · Score: 1

    I think I still prefer "class DICTIONARY[V, K->HASHABLE]". ;-)

  6. Re:Eiffel features on EiffelStudio 5.3 for Linux · · Score: 1

    Eiffel is purely object-oriented(in the same vein as SmallTalk or Ruby, but statically typed). Everything is an object. Strings, integers, floating point numbers. Yet they can be used with no less flexibility than primitive types in other languages, and have little negative impact on executables. Quite a feat.

    Eiffel is no more verbose than it needs to be to express the concepts at work. Additionally, it does several things to cut down on syntax.

    1. Semi-colons aren't required.
    2. Parentheses don't have to follow routine calls which don't require arguments.
    3. Groups of arguments to routines with the same type don't have to be individually typed.
    4. Access qualifiers don't have to be individually applied(vs. Java/C#)

  7. Re:Two Problems on EiffelStudio 5.3 for Linux · · Score: 1

    Eiffel's genericity is far more powerful than that which C++ provides. In Eiffel it is possible to restrict the type that may be used. This becomes useful in cases like the DICTIONARY class, where the class provided for the key must inherit HASHABLE.

    Yes, this could be done in lots of other languages by not using generics and simply ensuring that the key must be of type HASHABLE. Yet, how then do you ensure that every object bound to that key variable is of the same type? You can't.

    So you must have constrained genericity. Eiffel provides this while C++ does not.

  8. Re:Right on Intel's Itanium Will Get x86 Emulation · · Score: 1

    Well, one PPC970 might not compete against an Itanium2, but how many 970s will you be able to buy(I'm assuming the pricing will be comparable to what Motorola currently gets for its high-end) for the price of a single Itanium2?

  9. Re:Emulator, converter? on Intel's Itanium Will Get x86 Emulation · · Score: 1

    Could the second example be achieved more easily(if not more effectively in all cases) by translating on an instruction-by-instruction basis, then optimizing using whatever normally optimizes the native instruction set?

  10. Re:The revolution: Generic Programming on The Post-OOP Paradigm · · Score: 1

    I'm going to have to shill for Eiffel again. Eiffel allows for generics in a much cleaner way than C++, and it also allows for constrained genericity, whereby one can explicitly state that the class T(just because everyone uses T) must inherit (or "implement")some other class or interface.

    For instance, in the DICTIONARY class, the KEY class must inherit from the deferred class HASHABLE. If it doesn't, then the class might not have the proper routine to generate a hashcode, which is essential to the DICTIONARY class, and trouble could result.

    class DICTIONARY[V, K -> HASHABLE]
  11. Re:Aspect complements OOP on The Post-OOP Paradigm · · Score: 2, Insightful

    There is a language which allows for this kind of "access qualifier". It's called Eiffel. In the classic example, only the TELLER and BANK classes have access to the balance feature of the ACCOUNT class.

    class ACCOUNT
    feature { TELLER }
    balance: INTEGER
    end

    -- this causes problems:

    class ROBBER
    feature
    stash: INTEGER
    do_something(acc: ACCOUNT) is
    do
    stash := stash + acc.balance
    end
    end

  12. Re:Trolling Trolling Trolling ....Haza on Coding Standards for C#? · · Score: 1

    I was thinking that functions can only modify their own local variables, and must return a value. Procedures may modify the object's instance variables(or class variables), as well as their ownn local variables, but may not return a value.

    Sort of...

    class A {
    private int foo;
    public void setFoo(int foo) {
    this.foo = foo;
    }
    public int getFoo() {
    return this.foo;
    }
    }

    Rather than...

    public int setFoo(int foo) {
    this.foo = foo;
    return this.foo;
    }

  13. Re:One simple suggestion on Coding Standards for C#? · · Score: 1

    I'll add one to this and see which category the folks here think it belongs in.

    Functions/methods should be separated into "functions", which return a value without modifying external values, and "procedures", which do exactly the opposite.

  14. Re:This is somewhat of a smoke screen.. on Public Standards: C# 2, Java 0 · · Score: 2, Informative

    They're targetting education. From what I've seen, Math and CS departments are really keen on languages being standardized before they'll add it to the curriculum.

    At least at my school, we were late in getting on the Java bandwagon, and still have only grudgingly accepted it as a "slightly cleaner C++", which I strongly object to(since Javva is most definitely not C++).

    If C# has the standards going for it, plus the blessing of Microsoft, and looks more like C++ than Java, it'll supplant Java quickly in academic settings, which buys Microsoft greater control over the cycle*.

    * Schools teach what's in demand, and businesses look to colleges to see what knowledgeable people are using.

  15. Re:Frelled, Frelling, Get Frelled, etc... on Farscape Finale Tonight · · Score: 1

    You can't remember any others? What the hezmana is wrong with you? ;-)

  16. Re:Make the OTHER switch on GNU Pascal Compiler Released For Mac OS X · · Score: 1

    I haven't yet found anybody who'll pay me to use it, but I do to keep my design skills reasonably close to my coding skills. I've found the statement that "it's only as verbose as it need to be to describe the concepts going on" quite accurate.

    It also does a great job of handling multiple inheritance and operator overloading, with keywords to explicitly distinguish infix, prefix, and postfix operators. Constrained genercicity can be a nice tool too.

  17. Re:Make the OTHER switch on GNU Pascal Compiler Released For Mac OS X · · Score: 1

    Since you mentioned "excessive syntax", I figure I'll just quickly ask...

    What are your thoughts on Eiffel?

  18. Re:Explanation on PowerPC 970 Running at 2.5 GHz · · Score: 1

    MPC 74xx wuld be an even more accurate way of describing the processor. And Motorola isn't out of the running, if they can deliver with the 7447/7457, 75xx and maybe even some 85xx series processors, they could be a good source of consumer-level chips for Apple.

  19. Re:Parrot on Perl Features of the Future - Part 2 · · Score: 1

    There are, if memory serves, 32 integer registers, 32 "number" registers, 32 string registers, and 32 "Parrot Magic Cookie" or PMC registers which deal with more complex data.

  20. Re:I'll bite on Intel Announces New, Slower, Chip · · Score: 1

    Actually, AltiVec/VMX(IBM) is basically just a whole mess of extra instructions that result in performance gains for some(but a large "some") applications.

  21. Re:Smells of a Fake on Even Sun Can't Use Java · · Score: 2, Informative

    Python modules can be compiled. Write a simple little script that imports your module(which in Python means just about any source file). You'll notice a *.pyc file now hanging out in your directory. Cngratulations, it's Python bytecode.

  22. Re:mmmm perlish... on Sneak Peak at Java's New Makeover · · Score: 1

    How about the following?

    for @i -> $c { print "$c\n" }

  23. Re:Great idea on Running Mac OS X Binaries With NetBSD · · Score: 4, Informative

    Umm.... you could just buy a Mac and VirtualPC, then install Xfree86 in rootless mode. Seems like a simpler means to the stated end, considering that a Mac running Mac OS X is a "unix box".

  24. Re:Pike and Mac OS X on Pike Scripting Language · · Score: 1

    Well, it doesn't seem to be able to find GMP with the standard Dev Tools installed. Downloading GMP from the GNU site, and building and installing it seems to have eliminated the problem, though it occasionally gets a few warnings.

  25. Pike and Mac OS X on Pike Scripting Language · · Score: 1

    Has anyone had luck getting Pike installed on Mac OS X(10.1.x)/Darwin(1.4)?