Status
Not open for further replies.

dockeen

Ars Tribunus Militum
1,600
My experience point is this. I downloaded the .NET Framework,
I have compiled some simple stuff in C#, VB and C++. I bought
a book on C# yesterday that I am working through. So far, so
good. I found an open source IDE that works with C# and VB,
(Sharp IDE), and have configured JGrasp to work with the C++
compiler.

So far, so good, but I am only just starting.

Downloads of the Framework and the Platform SDK, while free,
do take quite a bit of time, even with a cable modem.

Hope that was not too much of a beginners intro, its where I am
now. Sort like Kindergarten.

Wayne
 
Originally posted by dockeen:
Hmmm, funny, they send it to people who aren't that
interested, me, they want to charge for.

:)

Only kidding, I bet you are MSDN or something important,
in contrast to me...

I keep trying to figure out how to qualify for academic,
because these days, I AM pretty academic.

Wayne

Are you at or near a University? At mine (Purdue) we get microsoft products for $5 each. If you are not in any classes you could go register for 1 class, never go to it, qualify for the $5 Visual Studio, and still end up paying less than the full retail.
 

urania

Ars Tribunus Militum
1,784
We downloaded it from MSDN and I burned CD's from the down load (6 total) and installed it at home and at work.
I have been playing around with it some, C++, COM/ATL, VB.

Bottom line, I am very impressed.

Other impressions;

VB is very different than VB 6.0.
Old programs have to be rewritten to port to .NET.
Not true of C++.
I have quit doing any development in VB 6.0 at work because it won't port and they haven't moved to .NET yet.
With C#, I may abandon using VB for quick and dirty programs and utilities.

I will take a serious look at C#.

Big learning curve involved compared to previous releases.

The IDE is a major improvement. I really, really like it.

COM/ATL support is greatly improved. Night and Day.

I wouldn't be surprised to see Java relegated to legacy systems and academia within ten years. If the productivity gains flowing from this and future releases of Visual Studio keep coming, it will happen.

My shop switched from all Java to all Microsoft and I get the impression that management has no intentions of going back. They are making too much money. Once they get into .NET, it will seal the deal.
 

dockeen

Ars Tribunus Militum
1,600
I bought the "C# Primer Plus". It is an interesting combination (so far) of stuff that is much simpler than I need (which I can skip over), and stuff that I do need. It helps my confidence to know that THEY are not skipping over stuff I need.

The assume in their example work by the way that you are working from the .Netfx, not the Studio, which is nice, because I don't have the studio yet. :)

I like what I see so far. It looks like stuff from my C/C++/Perl background will carry right over in the basic syntax. It also looks (so far anyway), that most of the stuff you need that would come in in seperate includes in C/C++ seems to all come in with

using System;

I am still just getting a rough picture of the whole .net idea with the CLS - bytecode idea. It seems an interesting idea. The big point they seem to be making is that you can program in whatever you want and work seemlessly with others programming in what they want. That sounds great, I don't know the degree to which it actually works.

I really don't understand why, what will all the crap going on at work, but this seems pretty exciting. God, I'm getting old, or am I just regressing to childhood.

Wayne
 

Don

Ars Tribunus Militum
2,673
Originally posted by dockeen:
I am still just getting a rough picture of the whole .net idea with the CLS - bytecode idea. It seems an interesting idea. The big point they seem to be making is that you can program in whatever you want and work seemlessly with others programming in what they want. That sounds great, I don't know the degree to which it actually works.
Wayne


Well..except for the fact thats not really true at all...NET is only PARTLY language neutral

http://www.javalobby.org/clr.html

While .NET's runtime tries to be language-neutral, this is true mostly for languages that look a lot like C#..



  • Implementation Inheritance. The CLS only supports single, static inheritance.


Languages such as C++ and Eiffel need multiple inheritance of implementation. Cross-language support for MI may not be possible, as MI creates some hard problems (like repeated inheritance and name clashes) that different languages solve in different, incompatible ways.

Another alternative is mix-ins (considered by many a superior alternative for MI, enabling a dynamic, loosely-coupled mechanism for behavioral reuse). This is not supported by the CLR, but required by languages such as Python.

The result: Dialects that cripple the original languages to become CLR-compatible. Examples are Managed C++ and Eiffel#, both not supporting implementation MI.



  • Generic Types. There is currently zero support for generic programming in the CLS.


Compile-time mechanisms like C++'s templates are supported, but they are not cross-language: no way to instantiate your stack<T> from C#. Instantiated templates will be accessible from other languages, but not interoperable. If a C++ stack<T> class expands to stack<Dog>, methods such as stack<Dog>::add(Dog) will be generated according to some set of rules (such as name mangling rules) that are not part of the CLS. This makes impossible for an Eiffel program to "see" this class as Eiffel's STACK[DOG], unless accepting C++'s rules as a de facto standard. The erasure model, used for example by Generic Java, is another challenge. Again, generic types are not made all equal; creating a cross-language standard may also prove to be impractical.

The Result: Half-baked generic type support without cross-language capability. Crippling important details of some implementations, like covariance (gone from Eiffel#). Enforcement, through the system libraries, of "poor man's generics" (use of opaque Object references).


  • Static Typing. The CLS offers a mix of primitive and structured types and objects, requiring static declaration of at least the fundamental type information. (Objects can have their specific type [the class] discovered at runtime, but the system must be informed statically that a particular memory word is an object pointer, integer, float or some other primitive).


This is not good for languages that use completely dynamic typing to avoid the complexity of static type systems. Examples are Smalltalk, LISP and their relatives. However, storing critical values such as integers, floats and booleans as full-blown dynamic-typed entities is expensive. Therefore, these languages resort to tagged memory: a few bits of every memory word are used as type IDs, to cheaply identify end encode at least the most critical objects. (A common side effect of this implementation is that integral types have odd sizes, e.g. 30 bits instead of 32 for a 4-byte integer; this is because 2 bits were taken by the tag bits.)

Techniques used in such systems are different from those used elsewhere. The major problem is that any high-performance GC needs to identify pointers precisely. In static-typed systems, the JIT compiler generates "type maps" for every class and method. The GC uses these maps to know which fields, stack positions, or registers are pointers. But this is not good enough for dynamic-typed languages, where the GC relies on tag bits to tell objects from primitives. The CLR would need to support a mix of tagged and untagged primitives in the same heap (plus references); and different dynamic languages may use different tagged memory specs.


  • Methods. If the CLS has some deficiencies for inheritance models, it's even worse for methods. The CLS only supports a standard model of vtable-based / single-receiver method dispatch, static-typed signatures, and single return. There are no first-class methods.


Again, not all languages agree how to define and dispatch methods. In dynamic-typed languages, there is no way to automatically produce typed signatures for methods. The compiler could declare 'Object' for everything, but users of other languages would hate such interfaces.

Some languages support multi-methods, where the dispatch is polymorphic on several arguments and not on a single argument (the receiver, a.k.a. this or self). For example if you may have Float and Matrix classes and four versions of "multiply (lhs, rhs)", and the correct version is selected at compile time after inspecting the type of both arguments. (Overloading emulates this behavior in many languages, but dispatch is static, so it doesn't play well with by-ref parameters. Multi-method dispatch is dynamic and it fully supports inheritance and polymorphism.)

Vtables (tables of code pointers) are not capable enough for all languages. This dispatch mechanism is great when there is static type data specifying, at least, the invoked method. For example, if you're calling "obj1.doThis()" and "doThis()" is defined by type X, you need to know at least that obj1 is an X. If you lack this information, alternative dispatch methods are required (reflection works, but not efficiently). Dynamic languages often use a model where method invocations use a selector (an internalized signature). The receiver's dynamic type is combined with the selector to efficiently locate methods in hash tables maintained by the VM.

Finally, the CLR supports method pointers but not full closures (a.k.a. blocks). A method pointer associates the method address and a receiver in one variable, and it's good enough for tasks such as event handlers. A closure goes one step beyond; it is bound to all variables visible at its static scope (possibly another closure). This makes possible a range of novel programming techniques (if you want to make a Smalltalker happy, ask him to explain these). Just like Java's inner classes, C# (and the CLR) chose a crude alternative to closures with the excuse of performance.
 

dockeen

Ars Tribunus Militum
1,600
OK, here is a top level, "what planet are we on?" sort of question.
Are the problems you cite indicative of the difficult or impossible nature of the problem, or shortcomings in the .Net approach to solving the problems?

Remember, in asnwering this question, I am a Physicist, which means I don't know a lot about a lot of things...err..something like that.

Wayne
 

EgalitarianBovine

Ars Tribunus Angusticlavius
8,086
Originally posted by dockeen:
OK, here is a top level, "what planet are we on?" sort of question.
Are the problems you cite indicative of the difficult or impossible nature of the problem, or shortcomings in the .Net approach to solving the problems?

Remember, in asnwering this question, I am a Physicist, which means I don't know a lot about a lot of things...err..something like that.

Wayne

This is actually an interesting question. For what it does, the .NET approach is probably the best you can do to get as many languages running on a common portable platform. The main problem arises out of the fact that .NET tries to be very efficient. This means that it's bytecode is pretty high level compared to assembly. The high level nature of .NET bytecode allows the .NET runtime to efficiently translate from bytecode to native machine code for most CPUs. Another reason the bytecode needs to be high level is that .NET (like java) does checks on the bytecode to ensure a certain amount of correctness in programs.

The higher level the bytecode is, the harder it is to get it to do things that it's not designed to do. The reason everything compiles to assembly well is because assembly is a nearly 1-to-1 mapping of the hardware's core capabilities. As soon as you make the bytecode high level, you incorporate certain preconceived notions about computing, and it becomes harder to do something you didn't design the system to do.

Now, wether it's possible to have a high level machine abstraction that successfully adapts to all features of all languages, is kind of a cool question.

Maybe a lisp-style S-expression system is a good common base to build all of these features on top of..

-EB
 

dockeen

Ars Tribunus Militum
1,600
You can get what is referred to as the .NET Framework, or .NETfx for short, for free from Microsoft,from here

http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/976/msdncompositedoc.xml&frame=true

Sorry about the format, just pulled it off my favorites. Now,
this includes the command line compilers for C#, C++ and VB.net. there are probably others in there, those are the ones I have used so far.

There is an relatively new open source IDE for C# and VB, which you can find here. I have done some simple things with it, so far so good. You can find it here

http://www.icsharpcode.net/OpenSource/SD/

I have also used JGrasp with the C++ compiler.

I just got a book this weekend of C#, so I am still very much in kindergarten here.

Also note that there are academic discounts out there, as noted earlier in this thread, for Visual Studio.

Wayne
 

urania

Ars Tribunus Militum
1,784
How much does .NET cost? Does it is posssible to download somewhere for free?
Unless you have an academic discount, or access to an MSDN subscription, it is pretty expensive.

Microsoft .NET Framework Software Development Kit is free for download, but unless you have a high speed connection, forget it. (131mb).

This is NOT the Visual Studio version and I haven't worked with it.

They have gone a long way towards allowing you to mix languages. You can debug asp, VB scripting, and COM/ATL all in the same session, same IDE. That helps a lot.

The_Hitman: Interesting points, just not too sure how relevent they are to 'getting the job done'. I rarely use multiple inheritance. If I need it, I will write in C++. Same for the other points.
You know, I have never run across a company in my area that uses Eiffel. Ever. There is no demand for it here. Same for Lisp and Smalltalk. Outside of the mainframe world, virtually all of the demand here is either for MS DNA or Java/Oracle/Unix.
Frankly, the points made there are not an impedment to me getting my job done.

Also, keep in mind that this is the first version for this and MS is well known for incremental but constant development.

But then again this isn't a religious issue for me. I do this for money.

Right now I would say I code 20 times slower with .Net, but I guess that is what they call a learning curve.
My observation. I do feel that once I am up to speed, my productivity will be greatly improved under .NET.
 

dhopton

Ars Tribunus Militum
2,009
Generics are coming. No questions about this - it is in the works.
Multiple inheritance is on the cards
I also suspect many of the problems mentioned in that article are on the cards for inclusion. I feel that the article in some respects is takeing a rather "we hate it because it's microsoft" approach. It's also from a bunch of java people. I'm not saying that it's not wrong, but it's not exactly unbiased (nor are microsoft). There are a fair few academics who are messing pretty deeply with .net. We'll have to see what happens.
 

dockeen

Ars Tribunus Militum
1,600
I have had tangential contact with some programs (government) which use Eiffel. Part of that is probably a spin-out for the folks who for years were required by law to use Ada. I thought for a while, I was going to have to use it, I got a book, and looked at the first couple of chapters, but thats as far as I got...

I still run across the need for Ada from time to time. Wonder if Ada will fit in .net? ;-) I would think they might try, they did, after all, build JGNAT.

By the way, I was very impressed by HITMAN's respnse to my follow-up question.

Wayne
 

Don

Ars Tribunus Militum
2,673
Originally posted by dockeen:
Are the problems you cite indicative of the difficult or impossible nature of the problem, or shortcomings in the .Net approach to solving the problems?
Wayne


The bottom line is that Microsoft has been going around saying that you can use "any language" to program in .NET... and we are now finding out that this is not the truth... you can only use PARTS of any language... and the only languages that will really work are the ones that are "conceptually" just like C#... like java.. if its substantially a different way of doing things.. such as maybe Scheme or LISP then it will not work in .NET except as a crippled /bastardized version of that language.
 

dockeen

Ars Tribunus Militum
1,600
Which seems to indicate that the nature of the problem
of bringing disparate languages together leads to some
compromises being made, regardless of the path.

OK.

Now the question becomes, is it still possible to
do meaningful development with the subset of the
languages that are left, or are they so different
or compromised that (a) No one will want to use
them and/or (b) So much of the legacy software
will be hopelessly broken that the costs are too
high to port it to .net.

Some of this discussion has started with an earlier
pst which talked about whether multiple inheritance
was really needed. (Hmm, that brought something to mind,
I seem to remeber in the old eC++ standard that
multiple inheritance and templates were some of the
things that were eliminated)

Wayne
 

Don

Ars Tribunus Militum
2,673
Well.. I think the point of it will be so different that there will be more effort/cost involved with trying to port code from exsisting regular versions of a language to the limited subset .NET versions that cost/benifit will not be there... at best it would only be of use when you could start fresh and accept all the various limitations you have using .NET, and can design/work around all of them... but then the questions is.. .WHY... why not use the more powerfull industry standard versions of the language...

What we will end up with is

-C++ .NET that looks the same but is substantially different than industry ANSI standard C++
-C.NET that looks the same but is substantially different than industry standard ANSI C
-Java.NET that looks the same but is substantially different than industry standard Java
-Python.NET that looks the same but is substantially different than industry standard Python.
-Pascal.NET that looks like pascal but is different than normal pascal

The question is... why not use the native version of these languages since they aleady are available and compile on just about every OS, and platform out there..

Basically, Microsoft is going to have THEIR OWN propetary version of every programming language there is that is supported on .NET, and no one outside of people using Microsoft Operating Systems will use them.. sort of like DirectX is a single platform, single vendor solution that is useless to people who want to make games that work on more than just Windows.
 

Sheriff

Ars Tribunus Militum
1,841
Well.. I think the point of it will be so different that there will be more effort/cost involved with trying to port code from exsisting regular versions of a language to the limited subset .NET versions that cost/benifit will not be there... at best it would only be of use when you could start fresh and accept all the various limitations you have using .NET, and can design/work around all of them... but then the questions is.. .WHY... why not use the more powerfull industry standard versions of the language...

we have about 10 coders on our staff at the school district who know and work strictly with cobol. We are transitioning away from those systems that they made and they were given a choice: Learn a new language to write the new system (we were going to go with java), or lose your job. now, not paying mind to the legal issues that would have come up (union was starting to grumble) , .Net will allow them to develop the new system using COBOL.net and they wont have to learn an entirely new language. It gives the older programmers a choice.

if that is all that .Net provides ill be happy with it. just my opinion though.
 
Status
Not open for further replies.