[Mono-docs-list] New docs tools, offline html output

2004-04-10 Thread Joshua Tauberer
Hey, all.

In trying to get my PerlSharp binding to look nice and professional, I 
started working on an off-line HTML generator for Monodoc XML files.  It 
basically runs docs through a modified version of the main XSL 
stylesheet that Monodoc uses.  The output is a lot like Javadoc output.

I'd like to commit this, plus my stub.cs program (no longer creating 
duplicates of operators), into a new /monodoc/tools directory. 
Objections anyone?

After I get this in CVS, I'll post HTML documentation for the Mono 
assemblies somewhere, since someone had asked for that a while back.

--
- Joshua Tauberer
http://taubz.for.net

** Nothing Unreal Exists **

___
Mono-docs-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-docs-list


[Mono-docs-list] New docs tools, offline html output

2004-04-10 Thread Daniel Morgan
Hey Joshua,

This is wonderful news!

I can not wait for the static HTML documentation for Mono.

Miguel,
Once he has those docs, can we put it up on the web site for download and
include it in release packages?

Thanks,
Daniel


[Mono-docs-list] New docs tools, offline html output
Joshua Tauberer [EMAIL PROTECTED]
Sat, 10 Apr 2004 18:19:03 -0400

Previous message: [Mono-docs-list] Proposed change to monodoc to support
printing
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]




Hey, all.

In trying to get my PerlSharp binding to look nice and professional, I
started working on an off-line HTML generator for Monodoc XML files.  It
basically runs docs through a modified version of the main XSL
stylesheet that Monodoc uses.  The output is a lot like Javadoc output.

I'd like to commit this, plus my stub.cs program (no longer creating
duplicates of operators), into a new /monodoc/tools directory.
Objections anyone?

After I get this in CVS, I'll post HTML documentation for the Mono
assemblies somewhere, since someone had asked for that a while back.

___
Mono-docs-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-docs-list


[Mono-list] System.Data.OracleClient - RAW support

2004-04-10 Thread Eduard Nesiba
Hi,

I added support for basic RAW data type in System.Data.OracleClient library.
If is someone responsible for this library please add attached patch to 
CVS tree.

Copy this patch to mcs directory and type:

patch p1  Systen.Data.OracleClinet-raw_support.diff

Eduard
--- mcs/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciDefineHandle.cs 
 Sat Apr  3 17:19:03 2004
+++ 
mcs-my/class/System.Data.OracleClient/System.Data.OracleClient.Oci/OciDefineHandle.cs  
 Thu Apr  8 11:38:14 2004
@@ -110,6 +110,9 @@
definedSize = -1;
DefineLob (position, definedType);
return;
+case OciDataType.Raw:
+DefineRaw( position);
+return;
default:
DefineChar (position); // HANDLE ALL OTHERS AS CHAR 
FOR NOW
return;
@@ -205,6 +208,32 @@
}
}
 
+void DefineRaw( int position)
+{
+   ociType = OciDataType.Raw;
+   
+   value = Marshal.AllocHGlobal (definedSize);
+
+   int status = 0;
+
+   status = OciCalls.OCIDefineByPos (Parent,
+   out handle,
+   ErrorHandle,
+   position + 1,
+   value,
+   definedSize * 2,
+   ociType,
+   ref indicator,
+   ref rlenp,
+   IntPtr.Zero,
+   0);
+
+   if (status != 0) {
+   OciErrorInfo info = ErrorHandle.HandleError ();
+   throw new OracleException (info.ErrorCode, 
info.ErrorMessage);
+   }
+}
+
protected override void Dispose (bool disposing) 
{
if (!disposed) {
@@ -259,6 +288,12 @@
break;
case OciDataType.Date:
return UnpackDate ();
+case OciDataType.Raw:
+byte[] raw_buffer = new byte [Size];
+
+Marshal.Copy (Value, raw_buffer, 0, Size);
+
+return raw_buffer;
}
 
return DBNull.Value;


RE: Re: [Mono-list] I give up / Mac OS X PPC support

2004-04-10 Thread Gregory Junker
I would add that Free software is not free as in free beer. It is
free as in freedom to do what you want with it, and with freedom
comes responsibility.

At first glance, since I have only seen this snippet of his original
post, if urgent Mac OSX support is that important to Mr. Mentzer, then
he could actually lend his support in the form of either evaluating the
source of the problems, fixing the problems himself and submitting
patches, or both.

My $0.02 (which is more than any of us pay to use this software).
Greg

On Fri, 2004-04-09 at 13:32 -0400, Lee Malatesta wrote:
 Steve Mentzer wrote:
   No offense to the mono team, but you should either drop support
   for PPC entirely or actually concentrate on getting it as stable
   as x86/linux.
 
 I think that this is exactly what the good folks on the mono team are 
 doing and I, for one, applaud their efforts. The mono project on the 
 PPC platform has come a long way and it should only continue to get 
 better. Perhaps the work isn't coming along as fast as I would like, 
 but this is mostly true of all software projects I've been interested 
 in whether open or proprietary. Good coding takes time.
 
 Regards,
 
 Lee
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] Mono on Mandrake 9.2 AMD64

2004-04-10 Thread Philippe makowski
Is there a way to install mono on Mandrake 9.2 AMD64 ?

Thanks

-- 
Philippe Makowski
PGP : http://makowski.net/pgpkey.html

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


RE: Re: [Mono-list] I give up / Mac OS X PPC support

2004-04-10 Thread Eto
One thing to note:

Not everyone has time to contribute to an open source project to fix their
problems.  We have enough things to do as it is to start working on the
stuff that should 'just work' so we can get to the real job at hand.  (:

Also, not everyone has the skill to look through a huge project like mono to
find  fix a problem that they have no idea how it is happening..  or
where.. or why..   and do you really want someone that doesn't know what
they're doing fixing it?  I guess this lays on the foundation of OSS though.

My $0.02.. hehe (:

Cheers,
Curtis.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gregory Junker
Sent: April 9, 2004 10:45 AM
To: [EMAIL PROTECTED]
Subject: RE: Re: [Mono-list] I give up / Mac OS X PPC support

I would add that Free software is not free as in free beer. It is
free as in freedom to do what you want with it, and with freedom
comes responsibility.

At first glance, since I have only seen this snippet of his original
post, if urgent Mac OSX support is that important to Mr. Mentzer, then
he could actually lend his support in the form of either evaluating the
source of the problems, fixing the problems himself and submitting
patches, or both.

My $0.02 (which is more than any of us pay to use this software).
Greg

On Fri, 2004-04-09 at 13:32 -0400, Lee Malatesta wrote:
 Steve Mentzer wrote:
   No offense to the mono team, but you should either drop support
   for PPC entirely or actually concentrate on getting it as stable
   as x86/linux.
 
 I think that this is exactly what the good folks on the mono team are 
 doing and I, for one, applaud their efforts. The mono project on the 
 PPC platform has come a long way and it should only continue to get 
 better. Perhaps the work isn't coming along as fast as I would like, 
 but this is mostly true of all software projects I've been interested 
 in whether open or proprietary. Good coding takes time.
 
 Regards,
 
 Lee
 
 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] foreach issues

2004-04-10 Thread Pedro Santos

Hi, I was wondering what would be faster when using foreach: an
ArrayList ou an Array. At first, would be expected that foreach with an
ArrayList would be slower than with an array, and it is a lot slower.
But, doesn't foreach see the Array and the ArrayList has a IEnumerable?
Whouldnt it be the same in the foreach prespective?

It appears not to be, If I do the same, but pass an IEnumerable to the
foreach it is alot faster, in this case the foreach with the ArrayList
is faster.

The test is in attachement. This were the times:

bash-2.05b$ mono test.exe
foreach list: : 00:00:00.0159550
foreach array:: 00:00:00.420
IEnumerable list  : 00:00:00.830
IEnumerable array : 00:00:00.0001040

Can someonte elaborate on this? I am curious.

-- 
Pedro Santos www.psantos.net
Si minor plus est ergo nihil sunt omnia...
using System;
using System.Collections;

public class Test {

	private static ArrayList povoate( int quantity )
	{
		ArrayList array = new ArrayList();
		for( int i = 0; i  quantity; ++i ) {
			array.Add( i +  );
		}
		return array;
	}

	private static void doSomething( IEnumerable e )
	{
		string tmp;
		foreach( string s in e ) {
			tmp = s;
		}
	}

	public static void Main( string[] args )
	{
		ArrayList list = povoate(1000);

		// fazer um clone
		string[] array = (string[]) ((ArrayList)list.Clone()).ToArray(typeof(string));

		// jitar
		doSomething( new string[] {} );
		string tmp;

		DateTime t1 = DateTime.Now;

		foreach( string s in list ) {
			tmp = s;
		}

		DateTime t2 = DateTime.Now;

		foreach( string s in array ) {
			tmp = s;
		}

		DateTime t3 = DateTime.Now;

		doSomething( list );
		
		DateTime t4 = DateTime.Now;

		doSomething( array );
		
		DateTime t5 = DateTime.Now;

		Console.WriteLine(foreach list: : {0}, t2 - t1);
		Console.WriteLine(foreach array:: {0}, t3 - t2 );
		Console.WriteLine(IEnumerable list  : {0}, t4 - t3);
		Console.WriteLine(IEnumerable array : {0}, t5 - t4);
		
	}
};


signature.asc
Description: This is a digitally signed message part


Re: [Mono-list] foreach issues

2004-04-10 Thread Ben Maurer
On Sat, 2004-04-10 at 04:18, Pedro Santos wrote:
 Hi, I was wondering what would be faster when using foreach: an
 ArrayList ou an Array.
On an array will be faster -- much faster.

 But, doesn't foreach see the Array and the ArrayList has a IEnumerable?
 Whouldnt it be the same in the foreach prespective?
On an array, MCS generates code that behaves exactly as:

for (int tmp = 0; tmp  array.Length; tmp ++) {
object o = array [tmp];
foreach body
}

On an IEnumerable, MCS generates code exactly like:

IEnumerator enumerator =
((System.IEnumerable)(collection)).GetEnumerator();
try {
   while (enumerator.MoveNext()) {
  ElementType element = (ElementType)enumerator.Current;
  statement;
   }
}
finally {
   IDisposable disposable = enumerator as System.IDisposable;
   if (disposable != null) disposable.Dispose();
}

Now, note that any Array is IEnumerable. If you cast it to that
interface, we must generate the `slow' code.


I have been thinking about writing an article about foreach performance,
so checkout monologue every once in a while.

-- Ben

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] Mono Hispano

2004-04-10 Thread Pablo Baena
[EMAIL PROTECTED] it's an attempt to create an argentinian developers 
knowledge sharing.

So far it's a little silent, but if we sum up people, we can try to take over 
world someday.

On Saturday 03 April 2004 21:56, Angel Java Lopez wrote:
 Hi people!

 Any info about the site www.monohispano.org?

 Actually the site is down

 Any other good resource about mono in Spanish? Mailing lists?

 TIA

 Angel Java Lopez
 http://www.ajlopez.com


 ___
 Mono-list maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/mono-list
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


Re: [Mono-list] foreach issues

2004-04-10 Thread Marcus
The collection sizes and run times are so small that I question whether this 
is a valid comparison. As the size of the collection increases, some of 
mechanisms become much, much slower. For example, with 40,000 instead of 1000 
elements, I get the times

foreach list: : 00:00:00.1349930
foreach array:: 00:00:00.0061260
IEnumerable list  : 00:00:00.1076430
IEnumerable array : 00:00:00.1416560



On Saturday 10 April 2004 3:18 am, Pedro Santos wrote:
 Hi, I was wondering what would be faster when using foreach: an
 ArrayList ou an Array. At first, would be expected that foreach with an
 ArrayList would be slower than with an array, and it is a lot slower.
 But, doesn't foreach see the Array and the ArrayList has a IEnumerable?
 Whouldnt it be the same in the foreach prespective?

 It appears not to be, If I do the same, but pass an IEnumerable to the
 foreach it is alot faster, in this case the foreach with the ArrayList
 is faster.

 The test is in attachement. This were the times:

 bash-2.05b$ mono test.exe
 foreach list: : 00:00:00.0159550
 foreach array:: 00:00:00.420
 IEnumerable list  : 00:00:00.830
 IEnumerable array : 00:00:00.0001040

 Can someonte elaborate on this? I am curious.
___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list


[Mono-list] New docs tools, offline html output

2004-04-10 Thread Daniel Morgan
Hey Joshua,

This is wonderful news!

I can not wait for the static HTML documentation for Mono.

Miguel,
Once he has those docs, can we put it up on the web site for download and
include it in release packages?

Thanks,
Daniel


[Mono-docs-list] New docs tools, offline html output
Joshua Tauberer [EMAIL PROTECTED]
Sat, 10 Apr 2004 18:19:03 -0400

Previous message: [Mono-docs-list] Proposed change to monodoc to support
printing
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]




Hey, all.

In trying to get my PerlSharp binding to look nice and professional, I
started working on an off-line HTML generator for Monodoc XML files.  It
basically runs docs through a modified version of the main XSL
stylesheet that Monodoc uses.  The output is a lot like Javadoc output.

I'd like to commit this, plus my stub.cs program (no longer creating
duplicates of operators), into a new /monodoc/tools directory.
Objections anyone?

After I get this in CVS, I'll post HTML documentation for the Mono
assemblies somewhere, since someone had asked for that a while back.

___
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list