Axum Incubation Project ForumDiscuss and ask questions about the incubation project codenamed 'Axum' -- including usage, performance, feature requests, bugs, general concepts, and more.© 2009 Microsoft Corporation. All rights reserved.Thu, 19 Nov 2009 06:09:50 Z784354a2-de7c-4be0-8cd5-0bc8b0df16b2http://social.msdn.microsoft.com/Forums/en-US/axum/thread/fe9c5c39-7b51-45e3-ad25-c8f6217e3ebfhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/fe9c5c39-7b51-45e3-ad25-c8f6217e3ebfButtinkhttp://social.msdn.microsoft.com/Profile/en-US/?user=ButtinkCommunicating with C#? Agents dont persist?Im just full of questions ... (thanks for replying to them btw XP)<br/> <br/> Lets say I have a domain ...<br/> <br/> domain GraphicsDomain<br/> {<br/>      MatrixOpChannel mm;<br/>      public GraphicsDomain()<br/>      {<br/>           Host&lt;MatrixMultiplication&gt;( &quot;mm&quot; );<br/>           Host&lt;MeshHandler&gt;( &quot;mh&quot; );<br/>           Host&lt;RayTracer( &quot;rt&quot; );<br/> <br/>           var cmp = new InprocCommunicationProvider();<br/>           mm = cmp.Connect&lt;MatrixOpChannel&gt;( &quot;mm&quot; );<br/> <br/>           var mh = cmp.Connect&lt;MeshChannel&gt;( &quot;mh&quot; );<br/>           var rt = cmp.Connect&lt;RayTracerChannel&gt;( &quot;rt&quot; );<br/> <br/>           mh::NewWorld ==&gt; rt::Enviroment;<br/>      }<br/> }<br/> <br/> CONSTRUCTORS<br/> <br/> public MeshHandler()<br/> {<br/>      NumberOfMeshes ==&gt; GetNumberOfMeshes;<br/>      GetMesh ==&gt; GiveMesh;<br/>      SetMesh ==&gt; AssignMesh;<br/>      AddMesh ==&gt; AppendMesh;<br/>      AddLight ==&gt; AppendLight;<br/>      Clear ==&gt; ClearMeshes;<br/>                 <br/>      TransformWorld ==&gt; TransformEnviroment ==&gt; NewWorld;<br/> }<br/> <br/> public RayTracer()<br/> {<br/>      Resolution ==&gt; SetResolution;<br/>                 <br/>      Enviroment ==&gt; RayProducer;<br/> }<br/> <br/> And in my C# program I do this<br/> <br/>             ICommunicationProvider cp = new InprocCommunicationProvider();<br/> <br/>             engine = new GraphicsDomain();<br/> <br/>             meshChannel = new GraphicsDomain.MeshChannel(cp, &quot;mh&quot;);<br/>             rayChannel = new GraphicsDomain.RayTracerChannel(cp, &quot;rt&quot;);<br/> <br/>             rayChannel.Resolution.Post(new GraphicsDomain.Pair&lt;int, int&gt; { first = this.display.Allocation.Width, second = this.display.Allocation.Height });<br/>             meshChannel.TransformWorld.Post(new Signal());<br/>             //GraphicsDomain.World w = meshChannel.NewWorld.Receive();<br/>             //rayChannel.Enviroment.Post(w);<br/>             GraphicsDomain.Color[] c = rayChannel.Result.Receive();<br/> <br/> This will work but only once and my question is what did I do wrong? Do I need to have the agent constructors do a receive loop so they don't die? As I said, I can get this to work by uncommenting out the commented section. However, in my domain constructor i set it up to forward to that port. I guess there is something I inherently don't understand about Hosting agents and agent lifetimes.Mon, 16 Nov 2009 06:55:34 Z2009-11-19T06:09:50Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/49c501cd-97ca-4462-9a5e-ba5499375837http://social.msdn.microsoft.com/Forums/en-US/axum/thread/49c501cd-97ca-4462-9a5e-ba5499375837alexllhttp://social.msdn.microsoft.com/Profile/en-US/?user=alexllConstructor of external type 'XXXX' can cause side effectsHi!<br/> <br/> I use a C# DLL in my Axum Project and when I compile the two I get the compiler Message<br/> &quot;Constructor of external type 'SimHelper.SimHelp' can cause side effects&quot;   (SimHelper is obviously my DLL Project)<br/> <br/> This here is the Axum Part<br/> <br/>         public MainAgent()<br/>         {<br/>                         <br/>             <br/>             SimHelp test = new SimHelp();               <br/> <br/>             Console.ReadLine();<br/>             PrimaryChannel::Done &lt;-- Signal.Value;<br/>         }<br/> <br/> <br/> Why does that happen? How can I fix this?<br/> <br/> EDIT: I tried to compile the WebFetcher Example and have the Same problem.... ?!<br/> Axum 0.2 VS2008<br/> <br/> <br/> Thanks!<br/> alexlFri, 07 Aug 2009 15:09:32 Z2009-11-17T21:57:11Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/f9fabe24-0e70-49ca-8415-65cf09202909http://social.msdn.microsoft.com/Forums/en-US/axum/thread/f9fabe24-0e70-49ca-8415-65cf09202909Josh Phillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Josh%20%20PhillipsTargeted feedback we're looking for...<p>Want to start playing around with Axum but not sure where to start?  Here's a sample of some targeted feedback we're looking for:<br/><br/>- <strong>Learning curve</strong>:  How complex do you find it to do simple things in Axum?  Do you think the value it provides is worth the investment in learning and understanding the language?<br/><br/>- <strong>Form</strong>: Do you think that Axum is better off as a language or would you be just as happy with a library-based solution?  <br/><br/>- <strong>Interop</strong>: How hard was it to consume objects that were created in other .NET languages?  Was it easy to place isolation guarantees on these objects?  If not, how would you change the process?<br/><br/>- <strong>Async pattern</strong>:  What do you think of asynchronous methods?  Do they make the APM pattern easier?<br/><br/>- <strong>Legacy</strong>:  What issues are there with porting legacy applications?  Any blockers or things we could do to make it easier?<br/><br/>- <strong>Platform fit</strong>: How does Axum fit in with the rest of .NET?  For graphical applications, did you face any challenges with the UI?  <br/><br/>- <strong>Scalability</strong>:  Were you able to easily write applications that scale from cores to the cluster to the cloud?  Is the unified model all it's cracked up to be?<br/><br/>- <strong>Tools</strong>:  What kind of tools (compile-time, run-time, post-run) would make you a more productive Axum programmer?  <br/><br/>- <strong>Love/Hate</strong>:  What's the one thing about Axum that frustrates you to no end?  What's the thing you love most about it?<br/><br/>Remember whether it's a complaint about the way something works or kudos for a feature you love, your feedback will help make or break Axum and ultimately lead to a tool that makes you more productive!<br/><br/>Thanks!</p>Mon, 04 May 2009 22:21:28 Z2009-11-14T14:56:34Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/5f87c606-7bb1-4a54-9f08-329a2baaf919http://social.msdn.microsoft.com/Forums/en-US/axum/thread/5f87c606-7bb1-4a54-9f08-329a2baaf919Buttinkhttp://social.msdn.microsoft.com/Profile/en-US/?user=ButtinkFunctions return <schema type>`read????Ok I tried to make a network of functions. One returns a schema and another gets that same schema, but compiler says there diffrent types (technicly are) because one is &quot;`read&quot;. SOoooo How do I say this type is `read too? Usually I only have to get in inside of a function so i just use &quot;var&quot;.<br/> <br/> EXAMPLE<br/> <br/> function void DoMoreStuff( &lt;schema type&gt; a )<br/> {<br/>      ....<br/> }<br/> <br/> function &lt;schema type&gt; DoStuff( int a )<br/> {<br/>      ....<br/> }<br/> <br/> private void Start()<br/> {<br/>      var o = new OrderedInteractionPoint&lt;int&gt;();<br/>      o ==&gt; DoStuff ==&gt; DoMoreStuff; // ERROR!!! YOU ANGERED THE COMPILER GODS!!!!<br/> }Sat, 07 Nov 2009 19:04:14 Z2009-11-16T07:01:42Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/9de8ffad-6141-4262-a8a5-22ffb7327fe5http://social.msdn.microsoft.com/Forums/en-US/axum/thread/9de8ffad-6141-4262-a8a5-22ffb7327fe5Banjobenihttp://social.msdn.microsoft.com/Profile/en-US/?user=BanjobeniAxum for VS2008: Installation failsHi,<br/><br/>I tried to install Axum for VS2008 more than one time. The installer is causing a &quot;VS2008 has encountered an error&quot; to appear, which in turn causes the installation to fail and a rollback.<br/><br/>I successfully installed Axum for VS2010 after the one for VS2008 did not work, but I'd like to use Axum more in VS2008 than in VS2010.<br/><br/>How can I get the installer to work?Sun, 08 Nov 2009 17:37:25 Z2009-11-16T21:38:40Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/82d857e4-b7b6-4e9f-bb33-c3dd2e3ef6f2http://social.msdn.microsoft.com/Forums/en-US/axum/thread/82d857e4-b7b6-4e9f-bb33-c3dd2e3ef6f2Banjobenihttp://social.msdn.microsoft.com/Profile/en-US/?user=BanjobeniAxum for Inter Process Communication<p>Hi<br/><br/>Having tried Axum in version 1.0, i find that the concepts are great. However, I don't think I will ever need to use it in a single process, as there are so many other good approaches how to make concurrency safer and simpler, which are possibly easier to prgram with.<br/><br/>I would be very interested to learn how I can use Axum in a distributed setting, between processes. I feel like in most approaches to IPC, there is a lack of protocol specification. E.g. remoting is great to share objects, but the receiver can call the methods on it in any order. Sockets and all it's abstractions are great but there is need to explicitly serialize stuff.<br/><br/>As I read first about Axum, I thought this would be something like the IPC in Singularity. There are so many great IPC concepts in Singularity that would be very useful to have on a regular .NET basis. Axum brings some of them to a single process.<br/><br/>Are there any steps planned to extend Axum into the Direction of IPC?<br/>Is there a possibility to use Axum in its current form in combination with e.g. remoting?<br/><br/>Regards, Banjobeni</p>Tue, 03 Nov 2009 09:57:15 Z2009-11-09T18:16:26Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/f9727176-f0c9-4f4e-98dd-45f665e0d27ehttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/f9727176-f0c9-4f4e-98dd-45f665e0d27eButtinkhttp://social.msdn.microsoft.com/Profile/en-US/?user=ButtinkNetwork Two Arguments to a Two Argument Function??? ... and assorted questionsWhat I would like to do is be able to send two different arguments to a function that have different types something like this ...<br/> <pre lang="x-c#">function Vector Multiply( Matrix a, Vector b) { // do mutliplication } MatrixInputPort, VectorInputPort ==&gt; Multiply ==&gt; Result;</pre> How what I have tried is to use Combine + change my function to accept Object like so ...<br/> <pre lang="x-c#">function Vector Multiply( Object[] o ) { Matrix a = o[0] as Matrix; Vector b = o[1] as Vector; // do mutliplication } ({MatrixInputPort, VectorInputPort} &amp;&gt;- Multiply) ==&gt; Result;</pre> However, It always says that I have to send an IEnumerable or an Array for the left hand argument &quot;{MatrixInputPort...}&quot; of &quot;&amp;&gt;-&quot;? Isn't that why im using the &quot;{&quot; &quot;}&quot;. I have also tried to put new Object[] in front of it and that hasn't worked. Combine is nice but i would love some sort of mechanism to make it act more like functional programming. But, even past this when I have a function that does work like ... <br/> <pre lang="x-c#">function Matrix Multiply( Matrix[] m ) { // do mutliplication } ({MatrixInputPort1, MatrixInputPort2} &amp;&gt;- Multiply) ==&gt; Result;</pre> Works for the Combine but complains about mismatch of operands for ==&gt;. It would be nice to know what the types of each are so I could Figure out what the compiler is trying to do.<br/> <br/> <br/> <br/> <br/> <br/> One other thing, lets say i have a network like this ...<br/> <pre lang="x-c#">source ==&gt; work ==&gt; work2 ==&gt; work3</pre> work3 does not return a actual value its just a &quot;void, T&quot;. What i would love is if there was an easy way to say to the network HEY i finished sending you data + the network to say &quot;I finished.&quot; Now the only way I have thought to do this is to know how many you are sending before hand and send that on some port. Then make work3 ==&gt; counter function that sends a signal to a Done port. Now as far as building this into the language i was thinking something like this ...<br/> <pre lang="x-c#">source ==&gt; work ==&gt; work2 ==&gt; work3 : Done</pre> Where Done is a built in output port that counts every time something is passed until Done is sent a signal. Then when the number counted is the number processed you reply with a signal. I have no idea if this would work, but I would love it.<br/> <br/> Anyway, Wall of text over XP<br/> <br/> <br/>Thu, 29 Oct 2009 03:43:22 Z2009-11-07T20:10:51Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/5c90dc1a-2b0c-4175-9728-d3ffb4233148http://social.msdn.microsoft.com/Forums/en-US/axum/thread/5c90dc1a-2b0c-4175-9728-d3ffb4233148__Anthony__http://social.msdn.microsoft.com/Profile/en-US/?user=__Anthony__Axum and SilverlightCan you use Axum with a Silverlight 3 project?Tue, 06 Oct 2009 22:14:20 Z2009-10-25T13:40:34Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/1e4263c5-3c5c-4b96-95e2-a7b6ec1c938chttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/1e4263c5-3c5c-4b96-95e2-a7b6ec1c938cBill Gates IIhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bill%20Gates%20IIAxum vs. Multi Threading<p class=MsoNormal style="margin:0in 0in 10pt"><span style="font-family:Calibri;font-size:small">What is the difference between multi threading and Axum?</span></p><hr class="sig">Bill Gates look out!Wed, 23 Sep 2009 20:15:27 Z2009-09-29T04:04:40Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/11009337-5de3-489c-be50-272a29daedddhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/11009337-5de3-489c-be50-272a29daedddVicky2006http://social.msdn.microsoft.com/Profile/en-US/?user=Vicky2006Whenever i change the mode from Debug to Release or vice versa the Axum application will run from the previous mode .<p>Hi,<br/> I trying some example in Axum.Whenever i change <br/>the mode from Debug to Release or vice versa the Axum application will run from the previous mode only.And if i go to particular folder and run it will run properly.Problem occurs only when try to run from Visual Studio IDE.This will not happen with other language applications. Anybody knows why this is happening do i need to change any settings?.</p> <p>Thank you.</p>Mon, 21 Sep 2009 12:16:06 Z2009-09-28T16:00:58Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/c890b224-2bfe-4ac8-a747-469b519e9144http://social.msdn.microsoft.com/Forums/en-US/axum/thread/c890b224-2bfe-4ac8-a747-469b519e9144Vicky2006http://social.msdn.microsoft.com/Profile/en-US/?user=Vicky2006dll issue in AxumI have used an Axum-assembly (dll) in another Axum project - it works fine. However, when I make modifications to the Axum-dll and reload it in the .Axum project, the updates are not reflected in IntelliSense. The strange thing is that I am able to see the modifications in the object-browser, and yet the compiler generates errors when I try to build the project. Does anyone know how to resolve this issue with Axum? <br/><br/>Thanks.Mon, 21 Sep 2009 06:49:22 Z2009-09-28T16:01:23Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/475920d0-78cc-467a-aeb7-cd443612ff71http://social.msdn.microsoft.com/Forums/en-US/axum/thread/475920d0-78cc-467a-aeb7-cd443612ff71Buttinkhttp://social.msdn.microsoft.com/Profile/en-US/?user=ButtinkIs there a way to call Non-Isolated methods?There are some classes that I need to call like System.Array.GetLength(int). I dont see why its not isolated but it isnt. So unless i do a messy hack, Im out of luck. Also things inside of Regex class that arnt &gt;.&gt; boooo<br/> <br/> Is there some global lock????Wed, 16 Sep 2009 04:26:37 Z2009-09-18T04:25:09Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/63fe4d8b-3d03-42aa-8553-399479d01894http://social.msdn.microsoft.com/Forums/en-US/axum/thread/63fe4d8b-3d03-42aa-8553-399479d01894Vicky2006http://social.msdn.microsoft.com/Profile/en-US/?user=Vicky2006How to write Distributed Application in AxumHi,<br/>I am new to AXUM, can any one please let <br/>me know how to write Distributed application in AXUM. I have <br/>tried the example in Programmers Guide but i dont know <br/>how to write client applicationMon, 14 Sep 2009 10:25:49 Z2009-09-17T15:52:20Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/abf6de42-9569-464d-92aa-ab063ca39c07http://social.msdn.microsoft.com/Forums/en-US/axum/thread/abf6de42-9569-464d-92aa-ab063ca39c07Vicky2006http://social.msdn.microsoft.com/Profile/en-US/?user=Vicky2006Error:Cannot explicitly access domain members except via 'parent'Hi,<br/> I am Getting an Error:Cannot explicitly access domain members except via 'parent'<br/>while accessing the agent abc from different namespace.<br/>Mon, 14 Sep 2009 11:29:12 Z2009-09-17T15:52:44Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/68bc720f-c0de-4874-9c57-821c1dfe8c10http://social.msdn.microsoft.com/Forums/en-US/axum/thread/68bc720f-c0de-4874-9c57-821c1dfe8c10vcomrhenckehttp://social.msdn.microsoft.com/Profile/en-US/?user=vcomrhenckeAxum 0.2.0 sample WebFetcher fails to compile.Hey folks, <div><br/></div> <div>I've found a non-compiling example (at least on my box)... I tried this with VS2010 IDE and the 4.0 runtime.</div> <div><br/></div> <div>The AgentFetcher and WebFetcher projects in the WebFetcher sample currently don't compile out-of-the-box, giving the following:</div> <div> <pre> Could not locate the .NET Framework SDK. The task is looking for the path to the .NET Framework SDK at the location specified in the SDKInstallRootv2.0 value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework. You may be able to solve the problem by doing one of the following: 1.) Install the .NET Framework SDK. 2.) Manually set the above registry key to the correct location. Asynchronous agent constructors are on Loading Axum command-line compiler from 'C:\Program Files (x86)\Microsoft Axum' C:\Program Files (x86)\Microsoft Axum\axc.exe /r:&quot;C:\Program Files (x86)\Microsoft Axum\Microsoft.Axum.Runtime.dll&quot; /r:&quot;C:\Program Files (x86)\Microsoft Axum\Microsoft.Axum.Runtime.Support.dll&quot; /r:&quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll&quot; /r:&quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll&quot; /r:&quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll&quot; /r:&quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll&quot; /r:&quot;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.0\System.Runtime.Serialization.dll&quot; /r:&quot;C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll&quot; /r:&quot;C:\Program Files (x86)\Microsoft Axum\TseContracts.dll&quot; /r:&quot;C:\Program Files (x86)\Microsoft Axum\tsecorelib.dll&quot; &quot;AgentFetcher.ax&quot; /async /o:&quot;obj\Debug\AgentFetcher.exe&quot; error loading C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll error loading C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll C:\Users\rhencke\Desktop\Axum\WebFetcher\AgentFetcher.ax(146,27): error MA2426: External method 'System.Net.WebRequest.Create' cannot be called due to potential side effects C:\Users\rhencke\Desktop\Axum\WebFetcher\AgentFetcher.ax(147,28): error MA2426: External method 'System.Net.WebRequest.GetResponse' cannot be called due to potential side effects C:\Users\rhencke\Desktop\Axum\WebFetcher\AgentFetcher.ax(150,26): error MA2426: External method 'System.Net.WebResponse.GetResponseStream' cannot be called due to potential side effects Axum compilation failed Build time: 00:00:04.1366174 Done building project &quot;AgentFetcher.axproj&quot; -- FAILED.</pre> The other samples have worked fine so far.</div> <div><br/></div> <div>My workaround was to create and reference a C# assembly from both projects that looked basically like:</div> <div><br/></div> <div> <pre lang="x-c#">using System.Diagnostics.Effects; [assembly: ContractAssembly] namespace Contracts.System.Net { [Strict] public abstract class WebRequest { } [Strict] public abstract class WebResponse { } } </pre> </div> <div>...but I have to admit I really don't know what I'm doing yet with [Strict], other than mimicking what I see in tsecontracts.</div> <div><br/></div> <div>Is this the best workaround for now, or is haphazardly marking things as [Strict] going to come back to haunt me?</div> <div><br/></div> <div>Thanks :)</div>Tue, 30 Jun 2009 03:49:26 Z2009-08-09T01:36:40Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/c3f64f2e-9c7f-4292-95b6-8edd64c6709bhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/c3f64f2e-9c7f-4292-95b6-8edd64c6709bJim Michelshttp://social.msdn.microsoft.com/Profile/en-US/?user=Jim%20MichelsUnbounded FIFO queue with replacement.A great many of the projects that I tend to work on in my industry involve producers (unbounded) queuing items to consumers with 2 additional constraints.<br/> <br/> 1) Newer items that are essentially updates of old items need to replace unconsumed old items in the queue. <br/> 2) The replacement needs to occur such that the new item assumes the replaced item's position in the queue.<br/> <br/> To be clear, this does normally require a &quot;key&quot; to match the new item with the older instance of the item in the queue.<br/> <br/> Can this behavior be modeled with Axum's channels?Fri, 24 Jul 2009 02:10:37 Z2009-07-28T22:28:08Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/07a86704-0a53-43f8-b586-7381f95a9e56http://social.msdn.microsoft.com/Forums/en-US/axum/thread/07a86704-0a53-43f8-b586-7381f95a9e56Josh Phillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Josh%20%20PhillipsAsynchronous programming in .NET survey<p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri"><strong>Update: The survey is now closed.  Thanks to all that participated!</strong><br/><br/>We’ve heard our customers’ frustrations with asynchronous programming and their call for improved support.  We are hoping to better understand why and how you and your customers use asynchronous programming in .NET and how the support we provide for it can be improved in the future.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">We invite you to complete a short survey on the Asynchronous Programming Model (APM) as well as on a theoretical language construct called “Asynchronous Methods.”  Completing this survey shouldn’t take more than 5-10 minutes of your time, and doing so will help us to better understand where the APM is lacking, how we can make asynchronous programming better and, ultimately, how we can increase your productivity and the scalability and reliability of your code. We encourage you to forward this message on to others who may also have had experience with asynchronous programming.</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><a href="http://deploy.ztelligence.com/start/index.jsp?PIN=15TMLTB8M3X9C"><span style="font-family:Calibri;color:#0000ff;font-size:small">http://deploy.ztelligence.com/start/index.jsp?PIN=15TMLTB8M3X9C</span></a><span style="font-size:small"><span style="font-family:Calibri"> </span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-size:small"><span style="font-family:Calibri">Thank you!</span></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="font-family:Calibri"><strong><span style="color:#365f91"><span style="font-size:small">Josh Phillips</span></span></strong><strong><span style="color:#365f91;font-size:10pt"> </span></strong><span style="color:#365f91;font-size:10pt">|<strong> </strong>Program Manager II | Parallel Computing Platform </span></span></p>Mon, 20 Jul 2009 23:25:11 Z2009-07-20T23:25:29Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/42e573cb-ae6f-4642-a36a-803d428d845bhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/42e573cb-ae6f-4642-a36a-803d428d845bDonBaechtelhttp://social.msdn.microsoft.com/Profile/en-US/?user=DonBaechtelPractical Sample of Axum Application: The Factory<p>I think that a practical real life like non-trivial sample application will go a long way towards demonstrating the practical use and strengths of Axum as well as testing Axum's feature set to see if it is complete enough for every day applications. Such a sample application should demonstrate the interplay between physical entities, data and operations. Some minimal amount of exception handling should be included as well.<br/><br/>Is it possible to use Axum to model something practical like a Factory that makes products? Can Axum model the parallelisms, interactions and limitations that exist in the Factory application in a generic and configurable way?</p> <ul> <li>The goal is for the Factory to be as efficient and exhibit as much parallel operations as possible. </li> <li>Products are made to Order. </li> <li>Orders are recieved from Customers. </li> <li>Orders may contain 1 or more products of possibly differents product types. </li> <li>An Order of product(s) is packaged together and shipped as one Shipment. </li> <li>Products are made to a Bill of Materials (BOM) that specify Parts and 1 or more manufacturing Steps. </li> <li>Part Product production requires Orders, Parts, People and Machines. </li> <li>Products are made of 1 or more subassemblies. Subassemblies can be made in batches of 1 or more. </li> <li>Production Batches may span 1 or more Orders. </li> <li>Certain tasks can only be done by a specific type of Person possesing the proper skills. </li> <li>There may be 1 or more People with a certain skill. A Person may have 1 or more skills. </li> <li>Machines can only do certain types of operations. Some Machines can be used to do more than 1 type of operation. </li> <li>Machines and People can only do one operation(task) at a time. </li> <li>A task can not be performed until all of the Parts, Machine and Person are available to do so. </li> <li>Machines are best utilized in producing batches of the same type of operation on the same type of Part. (Changeover Setup work may be required between batches of different types of parts.) </li> <li>Parts come from Inventory Storage. The number of Parts in Inventory are finite and may run out. </li> <li>Parts for Inventory should be ordered when below a preset reorder limit. </li> <li>Parts Inventory contain Bins with 1 type of part or subassembly. </li> <li>Parts can be removed from or deposited into bins in parallel.</li> <li>Subasemblies may be Inventoried or may be just stored on the Factory Floor as Work In Progress. </li> <li>Product Production may be prioritized and high priority jobs should proceed before low priority jobs but Batch work should not usually be interrupted once it has been started. </li> <li>If an Order is taking a long time to be filled, then the priority of the order may be raised to exbidite it.</li> <li>Some Operations may take more than 1 day to complete. </li> <li>Machines may breakdown at any time and not be available until fixed. </li> <li>Certain People may not be available to work short periods during the day or for 1 or more days. </li> <li>The Factory should always provide realtime status on Shipments, Parts Inventory, Orders, People and Machines. </li> <li>People and Machine time working and idle should be recorded for management purposes. </li> <li>The amount of time that a Person can work per day has a preset limit. </li> <li>A machine may be used for more than 1 shift per day. </li> </ul> <p>The sample application can assume that the Server application, Machines and People are networked together and the Server application is responsible for deciding what should be done next and to gather/report the status and results of the work being performed.<br/><br/>What would such an application look like in Axum?<br/>Can you provide a sample implementation or at least a summary of how this can be built using Axum?</p>Thu, 18 Jun 2009 19:27:11 Z2009-07-14T23:21:06Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/db6819e4-94d0-421a-9005-245146f6a014http://social.msdn.microsoft.com/Forums/en-US/axum/thread/db6819e4-94d0-421a-9005-245146f6a014Andrei Sedoihttp://social.msdn.microsoft.com/Profile/en-US/?user=Andrei%20SedoiEnsuring that the order of messages in pipeline is preserved<p>As per Programmer's Guide the following code ensures that the order of messages in pipeline is preserved:</p> <pre lang="x-c#">var numbers = new OrderedInteractionPoint&lt;int&gt;();<br/> // Create pipeline: numbers ==&gt; Fibonacci ==&gt; ProcessResult;<br/> // Send messages to numbers: for( int i=0; i&lt;numCount; i++ ) numbers &lt;-- 42-i;</pre> My question is how does it happen? The variable <em>number</em> is of type OrderedInteractionPoint&lt;int&gt;. It means that the messages are queued up in the order they arrive to the node <em>number </em>and leave it in the same order. But how can this &quot;ordered&quot; node affect the order of the messages in the whole pipeline (&quot;<em>ProcessResult</em> will receive the results in the same order that the corresponding inputs have entered the <em>numbers</em> interaction point&quot;)? It works and it is really great but I am interested in how it was implemented and what is its impact on performance.<br/><br/><br/>Thanks,<br/>AndreiWed, 08 Jul 2009 10:33:25 Z2009-07-14T21:57:13Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/f7134061-b871-44a5-86c9-9bb8bec12da5http://social.msdn.microsoft.com/Forums/en-US/axum/thread/f7134061-b871-44a5-86c9-9bb8bec12da5bmeardonhttp://social.msdn.microsoft.com/Profile/en-US/?user=bmeardonWhat Thread Pool Does Axum Use?I'm a little unclear from the documentation and the blog/forum posts as to what thread pool Axum actually uses.  I believe it uses the CLR Thread Pool (I/O Thread Pool specifically), but I wanted to make sure.  I think CCR actually has its own thread pool implementation and wanted to make sure that it wasn't brought over into Axum along with some of the coordination data structures.  I also want to make sure its not the Windows Thread Pool or Axum's own implementation.  If it's the CLR I/O Thread Pool (as I think), does it queue each Agent's procedure (constructor) to it using ThreadPool.UnsafeQueueNativeOverlapped?  Are there any plans to start using the new TPL Tasks, which can take advantage of work stealing thread local queues, which could reduce thread core migration and contention?<br/><br/>Thanks,<br/>BrandonTue, 14 Jul 2009 18:52:36 Z2009-07-14T21:38:24Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/cd8c3ca6-0125-461b-8634-b33ee51cb24dhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/cd8c3ca6-0125-461b-8634-b33ee51cb24dAndrei Sedoihttp://social.msdn.microsoft.com/Profile/en-US/?user=Andrei%20SedoiInadequate error "INTERNAL COMPILER ERROR: cannot load resource" when compiling the code...<p> </p> <pre lang="x-c#">namespace ConsoleApplication { channel C { } agent Agent : channel C { public Agent() { } } agent Agent : channel C { public Agent() { } } }</pre>Mon, 13 Jul 2009 00:11:05 Z2009-07-14T13:14:34Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/24c85eaf-9d5b-4506-84e7-8b81dd386f4fhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/24c85eaf-9d5b-4506-84e7-8b81dd386f4fAndrei Sedoihttp://social.msdn.microsoft.com/Profile/en-US/?user=Andrei%20SedoiThere is no access to an immutable domain state.Why can't I get access to an immutable domain state in the following case?<br/><br/><br/> <pre lang="x-c#">namespace ConsoleApplication { domain Domain { private readonly int number = 5; channel Channel { } private agent Agent : channel Channel { public Agent() { int i = number; } } } }</pre> <br/>Mon, 13 Jul 2009 00:47:34 Z2009-07-14T12:45:13Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/327423e9-ae7e-4c6c-88a9-27cc8f57f5f1http://social.msdn.microsoft.com/Forums/en-US/axum/thread/327423e9-ae7e-4c6c-88a9-27cc8f57f5f1Adam Houldsworthhttp://social.msdn.microsoft.com/Profile/en-US/?user=Adam%20HouldsworthAxum Compiled Assemblies and CLR VersionHi,<br/><br/>Do Axum projects compile into 100% managed assemblies (akin to C#)?  Also, what version of the CLR do they require (at all)?  Would it be possible to use one on the Compact Framework CLR?<br/><br/>I am curious of the possibilities of getting Axum code onto an Xbox 360 :)<br/><br/>Thanks,<br/><br/>Adam Fri, 10 Jul 2009 20:15:41 Z2009-07-11T06:55:15Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/67dc6fc9-656e-46f9-addc-0ae4832a575ehttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/67dc6fc9-656e-46f9-addc-0ae4832a575emdevolhttp://social.msdn.microsoft.com/Profile/en-US/?user=mdevolBug: Axum (ver 0.2) complier locks up.I have found a statement that cause the Axum (ver 0.2) compiler to lock-up and forces me to kill Visual Studio.  In my case, the statement in question is:<br/><br/>   CellValue = i;<br/><br/>where CellValue is a schema and i is an int.  Correcting this statment so that i is assigned to another int results in a successful compile.<br/><br/>As mentioned above this causes the Axum compiler to lock-up (100% CPU) and I have to kill Visual Studio to regain control.  There is also a side effect of killing Visual Studio when this happens.  When I restart Visual Studio and reload my Axum project I get the following pop-up error:<br/><br/>   Package Load Failure<br/><br/>   Package 'Axum.LanuageService.AxumLanguagePackage, Microsoft.Axum.LanguageService, Version-1.0.0.0, Culture=neutral, PublicKeyToken=null'<br/>   has failed to load properly ( GUID = {...} ). Please contact package vendor for assistance.  ...<br/><br/>Once I get this error I have to uninstall Axum and re-install it to correct the error.<br/><br/>If you need the full source code to recreate this problem, please provide an email address that I can send the source code to.Thu, 09 Jul 2009 18:19:24 Z2009-07-09T20:25:20Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/76c22bf1-d066-4626-b957-7ae61b9dec99http://social.msdn.microsoft.com/Forums/en-US/axum/thread/76c22bf1-d066-4626-b957-7ae61b9dec99marten_rangehttp://social.msdn.microsoft.com/Profile/en-US/?user=marten_rangeSchema questions<p>I'm trying to build a map engine in Axum. Not got very far but I've some experience in the question and I think Axum can be an interesting platform for because:<br/></p> <ol> <li>Map engines often rely on IO and potentially slow data sources</li> <li>A flexible map engines configuration looks like a network with informations flowing both ways, the request flows from the view to the datasources, the datasources produces geo data which flows to the view (and is transformed on the way)</li> </ol> <p>I imagined I could use Axum to gain a high level of concurrency and also a simple way to specify the map configuration network layouts.<br/><br/>So.<br/><br/>I'm struggling a bit with the scemas. <br/><br/>First I declare a ReferenceSystem schema and a Point schema:<br/></p> <pre> public schema ReferenceSystem { required int ReferenceId; public static function ReferenceSystem Create(int referenceId) { return new ReferenceSystem { ReferenceId = referenceId, }; } } public schema Point { required double X; required double Y; public static function Point Create(double x, double y) { return new Point { X = x, Y = y, }; } }<br/></pre> I like to provide functions to create instances of schemas as this can get repetitive.<br/><br/>The issue I'm struggling with is apparant when you look at the next code block<br/><br/><br/> <pre> public schema GeoPoint { required ReferenceSystem ReferenceSystem; required Point Point; public static function GeoPoint Create(ReferenceSystem referenceSystem, Point point) { return new GeoPoint { ReferenceSystem = coerce&lt;ReferenceSystem&gt; referenceSystem, Point = coerce&lt;Point&gt; point, }; } }<br/><br/></pre> If I don't write coerce&lt;&gt; the compiler complains that it can't cost a Point to a Point (for instance). If I understood it correctly the schemas are immutable so IMO this operation should be ok anyway. I don't know the implementation of coerce but I suspect this enforces a copy which is unfortunate but not so problematic here.<br/><br/>Worse is this:<br/><br/><br/> <pre> public schema GeoPoints { required ReferenceSystem ReferenceSystem; required Point[] Points; public static function GeoPoints Create(ReferenceSystem referenceSystem, Point[] points) { var localPoints = new Point[points.Length]; for(var iter = 0; iter &lt; points.Length; ++iter) { localPoints[iter] = points[iter]; } return new GeoPoints { ReferenceSystem = coerce&lt;ReferenceSystem&gt; referenceSystem, Points = localPoints, }; } }<br/> </pre> Here I'm forced to copy the array manually as coerce&lt;&gt; doesn't work for arrays. Arrays are shallow immutable and Point is immutable so I think this operation should just have succeeded.<br/><br/>Also, I'm looking for an immutable list which supports fast append (ie Cons) because I will append attributes to the geo objects when they flow through the network. This has to be fast so I don't wnat to do unnecessary copying.<br/><br/>I tried building one and annotate it with attributes to indicate to Axum type system that it's indeed immutable but I failed in the end because it was basically just a lot of guesswork since I don't know the exact semantics of the attributes.<br/><br/> <pre>using System.Collections; using System.Collections.Generic; using System.Diagnostics.Effects; using System.Linq; using Microsoft.Axum.Attributes; namespace GeoEngine.Common { [Strict] public class ImmutableList&lt;T&gt; : IEnumerable&lt;T&gt; { [Immutable] static readonly ImmutableList&lt;T&gt; s_empty = new ImmutableList&lt;T&gt;(); [Immutable] readonly T m_head; [Immutable] readonly ImmutableList&lt;T&gt; m_tail; [Immutable] [Strict] [Readable] ImmutableList() { m_head = default(T); m_tail = null; } [Immutable] [Strict] [Readable] public ImmutableList(T head, ImmutableList&lt;T&gt; tail) { m_head = head; m_tail = tail ?? s_empty; } public T Head { [return: Readable] [Immutable] [Strict] [Readable] [Function] get { return m_head; } } public ImmutableList&lt;T&gt; Tail { [return: Immutable] [return: Readable] [Immutable] [Strict] [Readable] [Function] get { return m_tail ?? s_empty; } } public bool IsEmpty { [return: Immutable] [return: Readable] [Immutable] [Strict] [Readable] [Function] get { return m_tail == null; } } public static ImmutableList&lt;T&gt; Empty { [return: Immutable] [return: Readable] [Immutable] [Strict] [Readable] [Function] get { return s_empty; } } [return: Immutable] [return: Readable] [Immutable] [Strict] [Readable] [Function] public ImmutableList&lt;T&gt; Cons( [Readable] T value) { return new ImmutableList&lt;T&gt;( value, this); } [return: Immutable] [return: Readable] [Immutable] [Strict] [Readable] [Function] public ImmutableList&lt;T&gt; MultiCons&lt;TX&gt;( [Readable] IEnumerable&lt;TX&gt; values) where TX : T { if (values != null) { return values.Aggregate( this, (list, arg2) =&gt; list.Cons(arg2)); } else { return this; } } [Immutable] [Strict] [Readable] [Function] public IEnumerator&lt;T&gt; GetEnumerator() { var current = this; while(!current.IsEmpty) { yield return current.Head; current = current.Tail; } } [Immutable] [Strict] [Readable] [Function] IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } }<br/><br/><br/><br/></pre> As you can see it's just alot of annotating with attributes I don't understand. If you can provide me with some feedback on how to proceed I would appreciate that.<hr class="sig">marten_rangeSat, 27 Jun 2009 08:23:20 Z2009-07-13T17:54:21Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/d5d1edfa-ee70-487f-b6be-81fe7f4cd4adhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/d5d1edfa-ee70-487f-b6be-81fe7f4cd4adAndrei Sedoihttp://social.msdn.microsoft.com/Profile/en-US/?user=Andrei%20SedoiAxum installation doesn't progress.I can't install Axum on my Windows Vista SP2 operating system running on Virtual PC 2007. Installation reaches a dialog window with the following message &quot;Please wait while the installer finishes determining your disk space requirements.&quot; and doesn't progress. How can i bypass this?<br/><br/><br/>AndreiTue, 07 Jul 2009 17:37:23 Z2009-07-07T19:37:19Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/dc8a68e7-e017-46f9-a8fd-62e25b628848http://social.msdn.microsoft.com/Forums/en-US/axum/thread/dc8a68e7-e017-46f9-a8fd-62e25b628848technocrat_aspirehttp://social.msdn.microsoft.com/Profile/en-US/?user=technocrat_aspireMeasuring Parallelism with AxumHow do I know Axum is actually parallelising an application. I have taken the fibonacci example given in the Programmer's guide and tried adding a thread id to the actual function that executes the fibonacci sequence but it seems to execute on the same thread. I could add a timer to the axum program and write a sequential program to actually measure the results but wanted to check if there are any other ways. I am executing the app on a VPC Image running on an AMD X2 Turin host.Sat, 04 Jul 2009 19:28:12 Z2009-07-08T17:42:03Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/2bb9a283-c5a2-4af7-b8db-ab0f31706ddbhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/2bb9a283-c5a2-4af7-b8db-ab0f31706ddbtechnocrat_aspirehttp://social.msdn.microsoft.com/Profile/en-US/?user=technocrat_aspireAxum as a WCF Service HostHello, <div><br/></div> <div>I am trying to write a WCF Service with Axum. But when I build it doesnt not recognise the WcfServiceHost keywords. </div> <div><br/></div> <div> <div><span style="white-space:pre"> </span>var hst = new WcfServiceHost(new NetTcpBinding(SecurityMode.None, false)); </div> <div><span style="white-space:pre"> </span>hst.Host&lt;ServiceDomain.ServiceAgent&gt;(&quot;net.tcp://localhost/AxumWCFService&quot;); </div> <div><br/></div> <div>I am using the above lines. May be I am missing something obvious but for some reason the intellisense doesnt seem to be working as well. I tried using the object browser but it came up blank. Any help would be appreciated.</div> </div>Sat, 04 Jul 2009 15:25:50 Z2009-07-08T17:42:36Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/d21bbd6a-b68b-43f2-8e39-0a664135b335http://social.msdn.microsoft.com/Forums/en-US/axum/thread/d21bbd6a-b68b-43f2-8e39-0a664135b335montaquehttp://social.msdn.microsoft.com/Profile/en-US/?user=montaquethe intellisense of the vs 2008 take 1-2 seconds to appearis it a by-design problem?Tue, 30 Jun 2009 22:05:39 Z2009-07-02T13:54:54Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/b2af60ae-4a13-4080-a929-4acedbe9ab85http://social.msdn.microsoft.com/Forums/en-US/axum/thread/b2af60ae-4a13-4080-a929-4acedbe9ab85vcomrhenckehttp://social.msdn.microsoft.com/Profile/en-US/?user=vcomrhenckeAxum SamplesThese are pretty minor things, so don't worry about them too much...<br/><br/>a) If you download the VS2010 install for Axum 0.2.0, the included samples from the samples.zip all have the solution file format from VS2008 and require going through the upgrade wizard before running them.<br/>b) Would it be possible to get a link to the samples.zip in the Start Menu folder?<br/><br/>Thanks, and keep up the good work!Sat, 27 Jun 2009 03:12:56 Z2009-06-30T03:49:48Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/eb9951e7-a0c5-430c-9d4b-c677f76656efhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/eb9951e7-a0c5-430c-9d4b-c677f76656efvcomrhenckehttp://social.msdn.microsoft.com/Profile/en-US/?user=vcomrhenckeAgentCreationMode reference in documentationIn the Axum Language Spec on page 14, there is a piece of code that reads: <div><br/></div> <div> <pre>public domain X { public X(string address) { IHost hst = new InprocHost(); Host&lt;Proc&gt;(“a”, AgentCreationMode.UseExisting, hst); Timer(TimeSpan.FromHours(2)) --&gt; (x =&gt; { hst.Evict(“a”);} ); } private reader agent Proc : channel CtLessSimple { public Proc() { // Do something meaningful. } } } </pre> There doesn't seem to be an AgentCreationMode that I could find, but there is an AgentHostingMode.  Should I use AgentHostingMode here?</div>Sat, 27 Jun 2009 18:29:16 Z2009-06-29T16:52:37Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/91dcd20b-0341-4fe9-842f-2aed52662c9ehttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/91dcd20b-0341-4fe9-842f-2aed52662c9eluis_sshttp://social.msdn.microsoft.com/Profile/en-US/?user=luis_ssInstallation errorI have Windows Vista Ultimate SP1 and I have Visual Studio 2008.<br/><br/>I installed Axum and I had an installation error but Axum was in the list of projects, I was able to run the program showed in the tutorial video. Then I installed Microsoft .NET SDK v6.1 and things started to complicate, after installation of the SDK Visual Studio did not recognized *.axproj as a project file, then I executed<br/><br/>devenv.exe /ResetSkipPkgs<br/><br/>as suggested in the help and *.axproj was recognized but every time I want to open the code file Program.ax VS2008 breaks and gives an error 'Microsoft found an error and needs to close'<br/><br/>I want to repair/modify/remove Axum and I got a message: 'Microsoft Axum requires Visual Studio 2008' to make any of these operations, it is strange, is not it?<br/><br/>Any suggestions to solve these problems?<br/><br/>Thank you for your attention.<br/><br/>Luis.<br/><a href="mailto:luixsansan@hotmail.com">luixsansan@hotmail.com</a>Mon, 15 Jun 2009 20:37:35 Z2009-06-27T10:45:36Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/a09b3ba6-7fff-4ec1-8cf2-f5240b5b63a6http://social.msdn.microsoft.com/Forums/en-US/axum/thread/a09b3ba6-7fff-4ec1-8cf2-f5240b5b63a6vcomrhenckehttp://social.msdn.microsoft.com/Profile/en-US/?user=vcomrhenckeShorthand for PrimaryChannel::What do you think about having :: as a shorthand way of saying PrimaryChannel:: for agents? <div><br/></div> <div><br/></div>Fri, 26 Jun 2009 21:58:13 Z2009-06-27T02:36:43Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/66b06a0a-9b07-4a9f-96e9-804b2a723a35http://social.msdn.microsoft.com/Forums/en-US/axum/thread/66b06a0a-9b07-4a9f-96e9-804b2a723a35Farriohttp://social.msdn.microsoft.com/Profile/en-US/?user=FarrioWhy I can't create or open an axum projectI installed axum today on my computer. The installer seems a little bit different as it closed up automatically after copied the files. But anyway, I cannot create or open an axum project. It gave me a message said &quot;Invalid URI: The format of the URI could not be determined.&quot; If I start the IDE with safemode parameter and open the project, it said &quot;not support by this version&quot;.<br/> <br/> I'm using Vista x86, VS2008 Team System and Visual SVN.Tue, 12 May 2009 11:10:39 Z2009-06-27T00:32:59Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/c1a3586e-46ef-447d-9776-9f1de8d58b55http://social.msdn.microsoft.com/Forums/en-US/axum/thread/c1a3586e-46ef-447d-9776-9f1de8d58b55Josh Phillipshttp://social.msdn.microsoft.com/Profile/en-US/?user=Josh%20%20PhillipsAxum 0.2.0 is here!<p><em>Reposted from the <a href="http://blogs.msdn.com/maestroteam/archive/2009/06/24/axum-0-2-0-released.aspx">Axum Team Blog</a>.</em><br/><br/>Are you excited?</p> <p>We thought so.  We’ve been listening to some of your pain points with Axum 0.1.0 and went straight to the kitchen to cook up 0.2.0 - now available for your code-slingin’ pleasure.  We’ve fixed quite a few bugs and made some overall improvements. For example we’ve,</p> <ul> <li>Added an installer for <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=922B4655-93D0-4476-BDA4-94CF5F8D4814&amp;displaylang=en">Visual Studio 2010 Beta1</a> </li> <li>Enabled parallel execution of functional nodes in dataflow networks </li> <li>Made it possible to change fonts and colors of Axum language elements via Tools | Options | Fonts and Colors </li> <li>Moved samples to a zip file to make using them easier </li> <li>Introduced AxumLite.zip – an Axum command line compiler that doesn't require Visual Studio </li> <li>Fixed the compiler error where the channel name was the same as the enclosing namespace name </li> <li>Made handling of immutable primitive types more rigorous; fixed some side-effect related bugs </li> <li>Added 'using System.Concurrency.Messaging' to the VS-generated template to make classes like OrderedInteractionPoint visible by default </li> <li>Added the async method Microsoft.Axum.IO.Console.ReadLine </li> <li>Added a spiffy Auction sample (A big shout out to <a href="http://weblogs.asp.net/Podwysocki/">Matthew Podwysocki</a> for his help!) </li> </ul> <p>Remember, Axum’s success and ability to improve your developer toolkit is very much dependent on your feedback.  Please try it, abuse it, and be very vocal about what you think on the <a href="http://social.msdn.microsoft.com/Forums/en/axum/threads">forum</a>.  We love to hear both good and bad things!</p> <p><a href="http://download.microsoft.com/download/B/D/5/BD51FFB2-C777-43B0-AC24-BDE3C88E231F/Axum_VS_2008.msi">Axum 0.2.0 for Visual Studio 2008</a><br/><a href="http://download.microsoft.com/download/B/D/5/BD51FFB2-C777-43B0-AC24-BDE3C88E231F/Axum_VS_2010.msi">Axum 0.2.0 for Visual Studio 2010</a><br/><a href="http://download.microsoft.com/download/B/D/5/BD51FFB2-C777-43B0-AC24-BDE3C88E231F/AxumLite.zip">Axum Lite</a></p> <p>Josh Phillips and the Axum Team</p>Wed, 24 Jun 2009 18:42:49 Z2009-06-24T22:06:35Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/787555bb-ef66-4e4c-b2d2-c066d6942a19http://social.msdn.microsoft.com/Forums/en-US/axum/thread/787555bb-ef66-4e4c-b2d2-c066d6942a19Charles Lamberthttp://social.msdn.microsoft.com/Profile/en-US/?user=Charles%20Lambertwill Axum get visual studio 2010 support?The question says it all. I can't afford to purchase a copy of visual studio 2008 right now or else i would so that i can try this stuff out. I would like to see how well it works with some grid computing stuff, but alas, i cannot install it.Sat, 06 Jun 2009 19:04:49 Z2009-06-24T16:57:47Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/91020565-7edf-4b82-b722-bce858395ba4http://social.msdn.microsoft.com/Forums/en-US/axum/thread/91020565-7edf-4b82-b722-bce858395ba4DonBaechtelhttp://social.msdn.microsoft.com/Profile/en-US/?user=DonBaechtelLogical Relationship between Axum and Entity FrameworkOne of the current fads in architecting data stores is to fashion related data into Entities and to use something like the Entity Framework to work with the data.<br/><br/>What is the logical relationship between Axum's Agents and Domains and Data Entities in an Entity Framework?<br/><br/>How would you get Axum to use the Entity Framework for its data access?Thu, 18 Jun 2009 18:29:38 Z2009-06-20T13:36:27Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/06f6e6ce-e3ba-4241-a1bd-96fcabdd65d2http://social.msdn.microsoft.com/Forums/en-US/axum/thread/06f6e6ce-e3ba-4241-a1bd-96fcabdd65d2alexllhttp://social.msdn.microsoft.com/Profile/en-US/?user=alexllCreating Domains programmatically<p>Hi,</p> <p>I’m trying to design a simulation systems similar to the Real Estate example. In my case I try to ‘copy’ a supermarket chain. The idea is that I have a Supermarket Domain which contains the definition of Product Agent, Customer Agent, etc.</p> <p>The result should be that I have 1 Main application (domain), multiple domains each representing one store, and each store has multiple products (agent) and multiple customers (agent).</p> <p>So the “main” program (not part of the Supermarket Domain) would create X domains of type “Supermarket Domain” and after the domains are created the constructor of the domain would generate the agents via (host&lt;&gt;).</p> <p>My question, does that work? And how can I programmatically create new domains and name them?<br/>Is there a similar command to Agent.CreateInNewDomain()  like Domain.CreateNew(string name)??</p> <p><br/>I hope this is a reasonable explanation of what I try to do.</p> <p>Thanks for your help!<br/>alexll</p>Thu, 04 Jun 2009 04:06:32 Z2009-06-16T16:08:23Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/c30797f0-b1ea-42ee-9315-901dff66bbd4http://social.msdn.microsoft.com/Forums/en-US/axum/thread/c30797f0-b1ea-42ee-9315-901dff66bbd4Charles Lamberthttp://social.msdn.microsoft.com/Profile/en-US/?user=Charles%20Lambertschema transformations and possible coerce extensions<p>I have just read about the coerce operator and its use with converting objects to schema instances. I have some thoughts that would expand on that concept. If this is already being discussed please direct me to that location. Otherwise here is what I have come up with.<br/><br/>I would like to propose that some extentions to the usage of coerce with converting from a schema back to an object. The three following examples may not cover all cases but should provide enough information to fully express the concept:<br/><br/><strong>scenario 1</strong>: map a schema back to an object<br/><br/><em>var foo = coerce&lt;MyObjectType&gt; some_schema_variable;<br/></em><br/><br/><strong>scenario 2</strong>: map a schema onto an object but use values from an existing object where the schema does not have properties.<br/><br/><em>var bar = coerce&lt;SomeType&gt;(map_non_schema_values_from_this_object) some_schema_variable;</em><br/><br/>where bar had 3 properties { Name, Address, PhoneNumber } and some_schema_variable of type Schema_A that had properties { Name, Address } and map_non_schema_values_from_this_object contained the remaining PhoneNumber property<br/><br/><br/><strong>scenario 3:</strong> map a schema onto an object, but provide a translation function. This actually includes scenario 2, but could do without for the functionality of just mapping the schema<br/><br/><em>var baz = coerce&lt;SomeType&gt;(map_non_schema_values_from_this_object, myTranslationFunction) some_schema_variable;</em><br/><br/>If some_schema_variable were of type Schema_A then myTranslationFunction would be of type Func&lt;Schema_A, SomeType, SomeType&gt;<br/><br/>a more basic transformation would be<br/><br/><em>var baz = coerce&lt;SomeType&gt;(myTranslationFunction) some_schema_variable;</em><br/><br/>where myTranslationFunction would be of type Func&lt;Schema_A, SomeType&gt;<br/><br/><br/>hope this helps<br/><br/>Charles</p>Fri, 05 Jun 2009 20:42:33 Z2009-06-11T23:53:03Zhttp://social.msdn.microsoft.com/Forums/en-US/axum/thread/0553adb3-a6f2-4f64-b1bc-354c5bb87095http://social.msdn.microsoft.com/Forums/en-US/axum/thread/0553adb3-a6f2-4f64-b1bc-354c5bb87095Lars Wilhelmsenhttp://social.msdn.microsoft.com/Profile/en-US/?user=Lars%20WilhelmsenVisual Studio Language Service limitationsHi,<br/><br/> I'm one of the guys that use to use a dark/black background color in Visual Studio when I code. When I installed Axum<br/> and fired up VS and created a Axum Console Application, I was presented with a combination of black and white background colors.<br/><br/> I thought that you probably had exposed the different Axum keywords in the Fonts and Colors section in Visual Studio's Options dialog,<br/> but to no avail.<br/><br/> Please expose these settings so that it is possible to use a syntax highlighting theme of the user's choice. <br/><br/>  --larsw<br/><br/> <hr class=sig> Lars Wilhelmsen | Senior Consultant | <a href="http://www.miles.no/">Miles</a>, Norway | <a href="https://mvp.support.microsoft.com/profile/Lars">Connected Systems MVP</a> | <a href="http://larswilhelmsen.com/">http://larswilhelmsen.com/</a>Fri, 08 May 2009 18:29:07 Z2009-06-05T00:05:25Z