Slashdot Mirror


Microsoft Releases New Concurrent Programming Language

zokier writes "Microsoft has released a new programming language called Axum, previously known as Maestro and based on the actor model. It's meant to ease development of concurrent applications and thus making better use of multi-core processors. Axum does not have capabilities to define classes, but as it runs on the .NET platform, Axum can use classes made with C#. Microsoft has not committed to shipping Axum since it is still in an incubation phase of development so feedback from developers is certainly welcome."

60 of 297 comments (clear)

  1. WTF is a "Concurrent Programming Language"? by Alethes · · Score: 5, Informative
    1. Re:WTF is a "Concurrent Programming Language"? by Z00L00K · · Score: 2, Insightful

      Next question asked is WHY has Microsoft have to invent one when there are others available already?

      Probably the answer is "Because they can" and they see a business in locking in people into their environment.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    2. Re:WTF is a "Concurrent Programming Language"? by Alethes · · Score: 4, Insightful

      Because the PHBs like a single vendor. Nothing confuses them more than saying, "We're getting the OS from Microsoft, the database from Oracle, the language from Sun and the hardware from Dell." The less companies in this list, the better, regardless of the merits of technology.

    3. Re:WTF is a "Concurrent Programming Language"? by theArtificial · · Score: 4, Insightful

      Synergy. "With our development suite you have tools that specialise in X Y Z allowing you to do A B C. Give us your money."

      I thought the general consensus on this site especially with regards to open source software was that choice is a good thing? I'm sure if they used an existing language Microsoft would employ an embrace and extend strategy that would have developers/purists up in arms.

      --
      Man blir trött av att gå och göra ingenting.
    4. Re:WTF is a "Concurrent Programming Language"? by molarmass192 · · Score: 3, Insightful

      Oh, you mean like C, C++, and BASIC? The reality is the most popular languages for MS platforms were not MS inventions.

      --

      Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws-Plato
    5. Re:WTF is a "Concurrent Programming Language"? by chthon · · Score: 3, Insightful

      The Actors Model is around 40 years old. Scheme was based upon it. Lisp have already shown in the eighties to be good at concurrent programming. Just NIH syndrome.

    6. Re:WTF is a "Concurrent Programming Language"? by Tanktalus · · Score: 4, Funny

      "What do you mean? We bought you Visual Studio with Visual C/C++ and Visual BASIC!"

      Don't confuse them with facts. They'll just retaliate by making your life worse.

    7. Re:WTF is a "Concurrent Programming Language"? by Burkin · · Score: 2, Insightful

      Next question asked is WHY has Microsoft have to invent one when there are others available already?

      Because you would whine and bitch about them "stealing" the language if they were to co-opt another concurrent programming language to run in their .NET environment.

    8. Re:WTF is a "Concurrent Programming Language"? by davester666 · · Score: 2, Informative

      "It's meant to ease development of concurrent applications and thus making better use of multi-core processors."

      should really be

      "It's meant to get developers to continue to use Microsoft-only technology, so IT departments will have to keep buying Microsoft client and server OS licenses."

      --
      Sleep your way to a whiter smile...date a dentist!
    9. Re:WTF is a "Concurrent Programming Language"? by moderatorrater · · Score: 2, Insightful

      Probably the answer is "Because they can" and they see a business in locking in people into their environment.

      Because they want to add to the .NET suite with a forward-thinking language. Like it or not, .NET is big for Microsoft, and giving people who use it more tools will only help their position. How you feel about that, of course, depends on how you feel about .NET and Microsoft.

    10. Re:WTF is a "Concurrent Programming Language"? by x2A · · Score: 3, Funny

      Why develop TFT when there's already cathode ray tubes out there that will display picture?

      Why invent new cars when there are clearly other cars out there that will get you from A to B?

      Why invent motor powered vehicals when we have legs and bicycles?

      Why invent geared bicycles when there are already pennyfarthings?

      Why plant seeds when there's already food in my cupboard?

      Why were you born when there're clearly other people out there that exist?

      Stupid questions? Maybe, but you started it.

      --
      The revolution will not be televised... but it will have a page on Wikipedia
    11. Re:WTF is a "Concurrent Programming Language"? by SQLGuru · · Score: 2, Funny

      So the PHB can spend his time working on his golf game. (Oh, Oracle can help there, too, I'll bet.)

      Where do you think most of the Oracle support contracts are negotiated?

    12. Re:WTF is a "Concurrent Programming Language"? by cowdung · · Score: 2, Interesting

      Because the business of computer languages has nothing to do with technical merit or academic proof. Languages today are nothing more than brands that are sold (and resold) to programmers.

      The language to get most mindshare wins.

    13. Re:WTF is a "Concurrent Programming Language"? by afabbro · · Score: 3, Interesting

      Because the PHBs like a single vendor. Nothing confuses them more than saying, "We're getting the OS from Microsoft, the database from Oracle, the language from Sun and the hardware from Dell." The less companies in this list, the better, regardless of the merits of technology.

      This is not true of every Fortune 500 shop I've ever worked in. Most PHBs never met a platform they didn't like. Hell, at my current gig, we have mainframe, AS/400, Solaris, HP-UX, AIX, Linux (2 distros!), Windows, Oracle, DB/2, Sybase, MySQL, JBoss, Websphere, Cisco, Foundry, etc.

      Lots of big shops are heterogenous to the point of pathology.

      --
      Advice: on VPS providers
    14. Re:WTF is a "Concurrent Programming Language"? by Ralish · · Score: 3, Insightful

      Next question asked is WHY has Microsoft have to invent one when there are others available already?

      I'd suggest several major reasons:
      1. Integration with the .NET Environment.
      2. Integration with the Visual Studio IDE.
      3. Maximise control of the style of the language, featureset and its future direction.

      If you check the wikipedia page the parent linked to, there are already stacks of concurrent programming languages available, it's not like there's some universal standard concurrency language out there Microsoft is trying to displace. That, and the above points, particularly with respect to .NET, does give it a unique feature that distinguishes it from other concurrent languages (even if you loathe .NET, it still separates it from the rest).

      Probably the answer is "Because they can" and they see a business in locking in people into their environment.

      Yes and no. You can take the whole lock-in argument (not entirely unreasonably), but you can also take the argument that for those who don't actually have a need to develop something for multiple platforms, a language fundamentally focused on a Windows-centric design with related tools is probably a huge positive. Why code in a language with a crap toolset/IDE (assuming there is one) and various other potential problems when MS offers one that plugs into .NET, VS, and is guaranteed to work great on Windows out of the box? That, and if you're already familiar with the above, the migration path I suspect is quite easy.

      Of course, this being .NET based, Mono may or may not support some of this stuff. No idea.

    15. Re:WTF is a "Concurrent Programming Language"? by KingMotley · · Score: 3, Interesting

      it's a programming language which splits up multiple threads of execution into different processes instead of threads.

      That would be an incorrect definition of concurrent programming language. The actual implementation of executing multiple things isn't defined. There are many flaws in your "history lesson". OS/2 blew chunks when compared to NT at the time, and the SDK for OS/2 was a major pain to get anything working.

      COM wasn't made after CORBA, it predated it, and it was developed by IBM. Much of CORBA was even based on COM, COM is mentioned all over the place in the original CORBA documentation. COM was licensed to Microsoft, which is why there was a sudden shift away from ActiveX controls and the like to the new .NET platform 8 years ago (license was expiring). I was never a huge fan of MFC, as it's design (document centric) didn't fit many of my needs. And as for the "nonstandard C" compilers, that's quite a joke as noone had a standard C compiler if it was worth anything. ANSI C was retarded and didn't support much of anything beyond hello world back then. Even your beloved OS/2's C compiler was mostly proprietary in nature. K&R C was even more popular and powerful and I would argue was a much better C standard than ANSI C at least at the time.

      As for windows not supporting threads, I'm not sure where you got that from as most of my work back then all involved multi-threaded applications, and supported everything from NT 3.1 and up.

    16. Re:WTF is a "Concurrent Programming Language"? by Grishnakh · · Score: 2, Insightful

      Visual BASIC is so unlike the BASICs I learned in the 80s on the Commodore, Apple, and other small computers that it might as well be a different language.

      Also, MS isn't pushing developers to use C or C++ any more, they're pushing them to use C# and .NET, which are MS inventions.

    17. Re:WTF is a "Concurrent Programming Language"? by shutdown+-p+now · · Score: 2, Interesting

      Next question asked is WHY has Microsoft have to invent one when there are others available already?

      As with most other Microsoft languages - because, while this is a research project currently, it may well become productized in 5 years, and at that point they'll want something that looks familiar, at least syntactically, to C# programmers, so as to not scare them away. It's not a new thing, either - Spec# is a similar research language based on C#, but for Design by Contract (and bits of DbC based on it will be in .NET 4.0, though as library features, and not in the language proper). C-omega was another project in the same vein that provided basis for LINQ.

      On a side note, the major (and finally fully realized in the upcoming 4.0) benefit of using .NET in the first place is that you get first-class interop between very different languages. In 4.0, you can define an interface in C#, and implement it in IronPython. IronPython code can furthermore call some pure functional F# code, create some (Python, dynamic) object encapsulating the result, and return it to C# again, which will be able call some methods on that object using late binding / duck typing. It's one step above the traditional approach using FFI for C-style APIs that's common in Unix land for mixing C++/Java/ML/Python code, since your API boundaries use higher-level primitives (objects, typesafe collections, tuples etc - rather than structs and pointers).

      However, this necessitates the "embrace and extend" for all languages involved, to provide that seamless interop. For example, you can still use plain Python code with IronPython, but if you want to use the language interop capabilities, you'll have to use some IronPython-specific stuff. On the other hand, F# is designed from ground up to have that interop built into the language, which is why it differs on many points from Objective CAML (from which it is derived).

    18. Re:WTF is a "Concurrent Programming Language"? by BasharTeg · · Score: 2, Insightful

      Next question asked is WHY has Microsoft have to invent one when there are others available already?

      Yes, clearly the concurrent programming language problem is all wrapped up and doesn't need any further innovations or development.

      It's ridiculous how hostile people are to what happen to be really cool Microsoft research projects. I know it doesn't mesh well with the idea that Microsoft steals everything and invents nothing but if you're more interested in Computer Science rather than pushing an anti-Microsoft agenda, you'd see that some of their ideas are really cool and tend to spawn related ideas that help advance the industry as a whole.

      Microsoft has put *significant* efforts into developing *multiple* concurrent programming languages and libraries because it is an area that definitely needs new development and new innovations to meet the challenge of development in the manycore era.

      Funny I didn't see all this negativity when Apple started talking about "Grand Central". As if that system is going to be useful on any platform other than OSX.

    19. Re:WTF is a "Concurrent Programming Language"? by Anpheus · · Score: 2, Insightful

      If you subscribe to certain philosophies, all ideas always existed, we simply discovered them.

      Regardless of your adherence to such a philosophy, you have to admit that it doesn't really matter who created the idea, but who first successfully implemented it.

      It's not like the people at Microsoft are somehow less capable because 100% of their ideas are 100% original, rather, they still had to have the intelligence to code it, document it, test it, etc.

  2. Focuses on Interfaces to Ease the Pain by eldavojohn · · Score: 4, Informative
    Much like web services, the importance seems to be in the interfaces. After scanning the developer's guide, the most important aspect of this language seems to be that it's a C# plus Axum libraries that allow you to describe "channels" with input/output keywords. Your Primary Channel is your main program or main 'thread.' If you define an input like:

    input int foo;

    in your channel class then you can communicate with agent instances that implement that channel quite easily like:

    bar_agent::foo <-- 134;

    If the data can't be sent over a channel you use (and this word should sound familiar to you web guys) a schema.

    From there on out it gets a lot more complicated with state and domain communications/sharing. It looks better thought out than most of Microsoft's libraries I've been forced to use but--as always--new languages need many releases before they are production worthy. A noble effort to simplify concurrency. With some really slick operator coding and overloading, you could probably get a similar thing going in Java or C++.

    One last thing I'd like to bitch about is that this download is an MSI. Really? You really need to do that? For the love of christ, I'm a developer. Could you please just give me a standalone zipped up SDK directory that I could add to my path if I want to? I'm not even going to install this because it's going to get all up in my registry n' shit.

    --
    My work here is dung.
    1. Re:Focuses on Interfaces to Ease the Pain by ShadowRangerRIT · · Score: 4, Interesting

      One last thing I'd like to bitch about is that this download is an MSI. Really? You really need to do that? For the love of christ, I'm a developer. Could you please just give me a standalone zipped up SDK directory that I could add to my path if I want to? I'm not even going to install this because it's going to get all up in my registry n' shit.

      While I realize that bitching about MS products is a common hobby, you could just extract the files directly and avoid any installation.

      msiexec ships with Vista (and possibly earlier versions of Windows, I haven't checked). There are a number of third party programs that could do it as well, just look around.

      --
      $_ = "wftedskaebjgdpjgidbsmnjgcdwatb"; tr/a-z/oh, turtleneck Phrase Jar!/; print
    2. Re:Focuses on Interfaces to Ease the Pain by ipoverscsi · · Score: 5, Informative

      Off topic, but here goes.

      The package must be shipped as a Windows Installer simply because it's got .NET objects in it. These objects must be installed in the Global Assembly Cache (GAC), which means they must be versioned and reference counted. It is possible (though unlikely) that the installer doesn't even create any registry entries.

      Now, .NET was supposed to give us "xcopy installs", so it's possible that MS could ship a ZIP SDK pacakge; but then you'd be responsible for lugging around all of your dependencies from install to install of your own software. Plus, then MS would have to manage two different installation packages, and we all know how easy it is to keep different versions of the same thing in sync.

    3. Re:Focuses on Interfaces to Ease the Pain by ClosedSource · · Score: 5, Insightful

      I don't know about "devlopers", but real developers use whatever OS they need to get the job done.

    4. Re:Focuses on Interfaces to Ease the Pain by Jurily · · Score: 4, Funny

      For the love of christ, I'm a developer.

      MS applies that term to Visual Basic users too, you know.

    5. Re:Focuses on Interfaces to Ease the Pain by elnyka · · Score: 2, Insightful
      And you know this because your vast professional experience tells you so? Or are you still in school, or programming in some obscure niche?

      Last time I checked real developers get paid to solve real-world problems for real-world customers, not to use some company's computing facilities as dogmatic playing grounds.

      Be it for writing a web page for a company or doing some complicated shit, you use the tools that get the job done, and to program against the platform that is being used by the customer whose paying your fucking paycheck.

      I use a Windows XP workstation to do my coding, design and use tools like Rose, Clearcase and a requirement tracking tool, with JBuilder on one monitor, and VI (and cygwin) in another monitor.

      Then I used it to compile the stuff that is going to be deployed in a heterogeneous, distributed environment that runs mostly in Linux.

      At the end of the day, what we care for is the technical challenge and the HUMAN development environment, and most important of all, the knowledge that you are producing something as requested by our employers.

      That is, we are earning the bread instead of being uselessly dogmatic.

      Thank God that I grew up the naive college student, anti-M$ stage long time ago. I suggest you do, too.

      Real professionals use what they need to do to get the job done at a customer's behest.

      Little punks in geek niches use whatever platform they like best to feel good at themselves while pointing the finger at others (while not producing anything.)

    6. Re:Focuses on Interfaces to Ease the Pain by owlstead · · Score: 3, Informative

      With some really slick operator coding and overloading, you could probably get a similar thing going in Java or C++.

      Except, of course, that Java does not do operator coding/overloading, or you'd have to tinker with the language itself (which is frowned upon by the Java community).

    7. Re:Focuses on Interfaces to Ease the Pain by BitZtream · · Score: 4, Informative

      As a developer you should be fully aware of the fact that you can extract the files from the MSI if you really want to. I'll help though. For most MSI files a simple:

      msiexec /a filename.msi /qb TARGETDIR=C:\tmpdir

      Will do what you want.

      There is also the Less MSIerables app from the WiX project: http://sourceforge.net/projects/wix/ that will let you extract the files directly. Plenty of tools to accomplish what you want if you'd take the 2 seconds to Google for it.

      You should also be aware of the fact that the MSI probably goes ahead and integrates the SDK with Visual Studio so the libraries, binaries and help are in path and available without a bunch of extra crap to do on your part, which for me personally, I'd rather have it do than wasting my time trying to figure out what needs to be done even if they did bother to document everything.

      I realize that most of the slashdot crowd thinks having to do everything from the command line based on a man page is a good thing, but for the rest of us it stopped being cool when we got out of school and had to get a job where they expected us to actually get shit done and not sit around all day with our thumbs up our asses playing with Linux.

      --
      Persistent Volume manager for Kubernetes - https://github.com/dwimsey/openshift-pvmanager
    8. Re:Focuses on Interfaces to Ease the Pain by iluvcapra · · Score: 3, Interesting

      Much like web services, the importance seems to be in the interfaces. After scanning the developer's guide, the most important aspect of this language seems to be that it's a C# plus Axum libraries that allow you to describe "channels" with input/output keywords.

      After scanning the guide as well, it reads a lot like Erlang as "improved" by a Java/C# lover. You get a lot of syntax to make strict specification, which is a win, but the result is that the language isn't very light on its feet or Lispy in the way Erlang is.

      For example: Axum seems to have a pretty strict type system, which gives you the ability to catch compile-time errors more cleanly, but on the other hand, there doesn't seem to be a simple way of creating a Tuple or Array literal without using a function. And at that, while it uses concurrency like Haskel or Erlang, it doesn't appear to be at all pure-functional, or maybe it is but the design is already burping with an "isolated" keyword that warns the compiler to forbid modification of static vars within the function body.

      --
      Don't blame me, I voted for Baltar.
    9. Re:Focuses on Interfaces to Ease the Pain by MyLongNickName · · Score: 3, Funny

      Am I the only one who translates "fixed that for you" into "I'm a dumb, annoying fuck"?

      --
      See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
    10. Re:Focuses on Interfaces to Ease the Pain by shutdown+-p+now · · Score: 2, Informative

      After scanning the guide as well, it reads a lot like Erlang as "improved" by a Java/C# lover.

      It's probably just your perspective :) I'd say it's more like C# improved by an Erlang lover, and it's probably closer to the truth.

      For example: Axum seems to have a pretty strict type system, which gives you the ability to catch compile-time errors more cleanly, but on the other hand, there doesn't seem to be a simple way of creating a Tuple or Array literal without using a function.

      Actually, they have one example of an array literal in the paper - apparently, it's just curly braces:

      For example, the following expression combines output from two interaction points ip1 and ip2 and passes the result on to an interaction point twoNumbers:

      receive( { ip1, ip2 } &>- twoNumbers );

      The expression above uses curly braces for array creation. In Axum, implicit array creation is a convenient syntactic construct that is used often when building network expressions ...

      I don't know about tuple literals though. If they use the stock tuples from .NET 4.0 (as they probably should later on), which is System.Tuple generic class "overloaded" for varying number of type parameters, then tuples can be created with Tuple.Create(n1, n2, ...) call - which, of course, is still just a library function, but I wouldn't call it overly verbose. In practice, tuple literals are only really required when you want to have pattern matching in the language, which they don't seem to have.

  3. Wanted: experienced Axum programmer by Anonymous Coward · · Score: 2, Funny

    I already imagine job offer
    - Minimum 5 years experience with Axum

  4. My feedback by Anonymous Coward · · Score: 4, Funny

    The windows version works great, but Axum on Linux isn't ready for prime time, yet. However, Axum is powerful enough that you should probably change your platform to permit its use, so if you have a new app being developed, I'd force your engineers to use Axum and develop it on windows.

    And I know what I'm talking about because I'm an IT manager at a Fortune 500 company.

    1. Re:My feedback by Divebus · · Score: 2, Informative

      Exactly. More proprietary digital glop from Microsoft.

      --

      Most of the stuff on /. won't survive first contact with facts.
    2. Re:My feedback by ultrabot · · Score: 5, Funny

      Axum on Linux isn't ready for prime time, yet. However, Axum is powerful enough that you should probably change your platform to permit its use, so if you have a new app being developed, I'd force your engineers to use Axum and develop it on windows.

      I agree. I'm uninstalling Linux as we speak.

      I expect 15% of the software to be written in Axum within 4 year, with the rest being split between Ruby on Rails, Silverlight and Adobe Flash Player (tm).

      --
      Save your wrists today - switch to Dvorak
  5. This will be fun... by Tenek · · Score: 4, Interesting

    I see Microsoft is doing its best to help developers all over the world create race conditions. I wonder how many programmers there are who never really 'got' concurrency. Hopefully I'm not one of them. (And no, there is no programming language that can prevent you from screwing it up.)

  6. Re:So, where did they steal this idea from? by mmkkbb · · Score: 3, Insightful

    Well, it does use the same concurrency model as Erlang, but Erlang has no concept of classes. Perhaps Scala, which I know little about except that it runs on the JVM and is supposedly better at concurrency.

    --
    -mkb
  7. Re:Uses actor model by cptnapalm · · Score: 2, Funny

    I heard that the Hilton model will infect you with viruses...

  8. Re:So, where did they steal this idea from? by thrillseeker · · Score: 4, Interesting

    The "channel" technique makes me think of Occam.

  9. Initial Failures by kintin · · Score: 3, Interesting

    Goddamn, PDFs for language specification and programmer's guide?  Thanks guys, I'll probably never need to search this stuff, or link to a specific section.  Also, what the hell do you call this bracket style:

    public Program()
    {
    // Receive command line arguments from port CommandLine
    String [] args = recieve(PrimaryChannel::CommandLine);
    // Send a message to port ExitCode;
    PrimaryChannel::ExitCode <-- 0; }

    I can't help but think that their idea of "Channels" is really a message queue, which listeners pull messages from.  This is easily implemented in around 30-40 lines of Python, Queues, Tasks and Listeners.  And since Python supports these crazy things called CLASSES, it's really quite easy to implement new features or override base functionality.

    In other words, this is an incredible waste of time.  Put all these kids to work on IronPython and close this crap down.

    1. Re:Initial Failures by Anonymous Coward · · Score: 2, Funny

      I suppose it was one of your ancestors that ridiculed the horseless carriage for not having a horse.

  10. Re:R&D by odourpreventer · · Score: 3, Insightful

    > I haven't seen may apps that properly use OO

    True, but it's very nice for program libraries - boost, wxWidgets, Qt, etc (yes I'm a C++ programmer) - where people who know what they're doing have already done the difficult stuff for the rest of us.

  11. Naming vs architecture by xouumalperxe · · Score: 3, Funny

    previously known as Maestro and based on the actor model

    Somebody has their performance arts mixed up

  12. Re:So, where did they steal this idea from? by ausekilis · · Score: 2, Interesting

    To me it looks more like they took XNA and adapted it to something a bit more agnostic to underlying architecture. Almost like a Blackboard/XNA lovechild. They took the compartmentalized (class-driven) structure of XNA, gave a shared communication API in the same vein as Blackboard (think centralized communication system as opposed to shared discussion system... like the comm system in Quake 3 source), wrapped it up in a C# API, and called it a language.

    Call me crazy... but in order for it to be truly a "language", it needs to have a compiler/interpretor, and not simply a few new keywords in an existing language (it's C# with some new datatypes).

  13. Queue a new internet Want ad by Like2Byte · · Score: 5, Insightful

    Wanted:
    Senior Software Engineer
    Windows Platforms
    MFC C++ - 10 Years
    C# - 5 years
    Axum - 5 years

    You *know* it's going to happen.

  14. The good points of a concurrent language by Tetsujin · · Score: 4, Insightful

    I see Microsoft is doing its best to help developers all over the world create race conditions. I wonder how many programmers there are who never really 'got' concurrency. Hopefully I'm not one of them. (And no, there is no programming language that can prevent you from screwing it up.)

    Concurrent programming is becoming increasingly important for any kind of high-performance project. This doesn't necessarily mean one needs a "concurrent programming language" to do it - but whatever the chosen mechanism, the goal is the same - write a program that uses all cores effectively. One way or another, professional programmers are going to need to 'get' concurrency in the coming years.

    The benefit of a language that provides parallelization as a basic assumption is that the language itself can provide infrastructure (for message-passing, task-scheduling, and so on) useful to the task. Such a language encourages programmers to think about problems in terms of how they can be parallelized, but leaves the compiler or the runtime engine free to make decisions about how the parallelization is to occur.

    Another benefit of such a language is that a language that takes certain ideas as base assumptions can help guide the programmer's approach to a solution. This can involve a significant learning curve for the programmer (see, for instance, Prolog or various functional languages...) but it can help programmers to achieve a new way of solving their problems: in this case, one that is rather well suited to the current needs of high-performance CPUs.

    The challenge with synchronization in Axum, presumably, is that it's possible to write code that will run in the engine that won't conform to the rules for an "actor" - that it will perform some non-thread-safe access to a file, or that it will otherwise do something that won't be safe when run in parallel. From that perspective it's no different from (almost) any other language - as you say, it's still possible to screw up. What it does provide, however, are guidelines and framework to help keep you from screwing up.

    --
    Bow-ties are cool.
    1. Re:The good points of a concurrent language by Tetsujin · · Score: 2, Informative

      Your understanding is...flawed to put it nicely.

      Feel free to provide more detail. Bear in mind there are people here who may not know all the details about .NET - and may not love it, either - but who would still be interested in learning more about it.

      --
      Bow-ties are cool.
    2. Re:The good points of a concurrent language by shutdown+-p+now · · Score: 2, Interesting

      My understanding is that most functions in the .NET libraries are not reentrant.

      Most functions in the .NET libraries are perfectly reentrant in the classic definition, if you consider the implicit receiver argument ('this') a proper argument. Most non-static functions in .NET classes are not thread-safe in a sense that two threads cannot call the same function on the same object concurrently (or, more often, any two functions on the same object concurrently) - this is generally the same as what you can see in Java or C++. I don't see this as a problem, since it's unlikely that you'll want to, say, concurrently draw several thousand buttons on a window and handle their input events, or concurrently write to the same file from several threads using a single handle. Even in a concurrent application, most often you'll use .NET objects in isolation of a single thread, to perform whatever task it needs to perform.

      Can you identify specific scenarios where limitations of .NET class libraries with respect to concurrency block or hinder some specific concurrency scenario?

      When it comes to your own .NET classes, they are, of course, as concurrent as you make them to be. If you code them in F#, you'll be dealing with immutable data structures by default (F# lists and maps are immutable, as is traditional in functional languages, even though they implement all the standard System.Collections.Generic interfaces such as IList and IDictionary for interop), and your own structures and classes will also be immutable by default - F# requires any mutable variables and fields to be explicitly declared using the "mutable" modifier.

      Looking into the future, .NET 4.0, which will include a bunch of stuff specifically for parallel & concurrent computations, also comes with several new collection classes that are specifically designed for concurrent use, such as ConcurrentQueue and ConcurrentStack.

  15. Was C# Not Enough? by CodeBuster · · Score: 3, Insightful

    The thread control facilities available in the C# language are already quite extensive and include pretty much every known way to control concurrency presently used in software: mutexes, semaphores, locks, etc...they are all there. For example, the following paper (PDF link), written by Andrew Birrell of Microsoft Research, covers all the basics and explains the various options in C#. If they wanted more robust threading frameworks then why not simply add the relevant classes to the .NET Framework class library (i.e. in System.Threading)?

    1. Re:Was C# Not Enough? by Bill,+Shooter+of+Bul · · Score: 3, Informative

      Its not a threading language, its a distributed concurrency language like erlang. So its designed to send messages locally or across a cluster, in a fast, safe,and easy manner. Yes, you could do everything in c# that it does, but not easily. Look over the documentation and you'll find some things that would be odd to you as a c# developer. Some sections that won't let you modify a variable's contents, to keep certain sections free of side affects.

      Basically its a different way of doing things that should help create easy,bug free, high performance, concurrent software.

      --
      Well.. maybe. Or Maybe not. But Definitely not sort of.
    2. Re:Was C# Not Enough? by zuperduperman · · Score: 2, Insightful

      It's not about threading - all the features you describe relate to dealing with concurrency in a small scale. New concurrent languages are targeted at algorithms that use concurrency as a fundamental building block - a language construct, if you like - which let you use completely different algorithms to what you would use otherwise.

      Totally contrived example: imagine you want to count the number of upper case characters in a large string. You could zip through it in a loop in a single thread. But that would only use a single CPU on a single node. Instead, break it into a thousand parts and create concurrent jobs to compute the number of upper case characters in each one, then sum them all together at the end. Doing that would take some serious thought to do correctly using threads, and it would be very inefficient. These new concurrent languages are built with primitives that allow you to do this kind of thing quickly and safely and in a scalable way to boot.

  16. Not "Insightful", "Clueless" by SuperKendall · · Score: 4, Informative

    Because you would whine and bitch about them "stealing" the language if they were to co-opt another concurrent programming language to run in their .NET environment.

    Come on, who ever complained about Microsoft "stealing" any of the existing languages supportted by .Net? That was not true for Eiffel or managed C++ or IronPython, or... you get the point.

    Now it is true that C# was taken lock, stock and barrel from Java when the Microsoft embrace and extend strategy was slapped down there (read the memos), but no-one ever complained about other languages being added in just as no-one accuses Java of "stealing" all the languages that VM supports now. So using an existing concurrent language would make a lot of sense and annoy no-one.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
    1. Re:Not "Insightful", "Clueless" by Burkin · · Score: 4, Interesting

      Come on, who ever complained about Microsoft "stealing" any of the existing languages supportted by .Net? That was not true for Eiffel or managed C++ or IronPython, or... you get the point.

      Actually there have been many criticisms of IronPython and Managed C++ in the usual "embrace, extend" whining on this site and on other tech sites.

      So using an existing concurrent language would make a lot of sense and annoy no-one.

      Bullshit. People would whine no matter what because it's Microsoft.

  17. Re:So, where did they steal this idea from? by OrangeTide · · Score: 2, Insightful

    "but Erlang has no concept of classes."

    One of Erlang's strengths.

    --
    “Common sense is not so common.” — Voltaire
  18. Concurrency isn't just for parallelism. by Estanislao+Mart�nez · · Score: 3, Insightful

    You're making the mistake that concurrency is the same thing as parallelism. It is not. Concurrency is when a program is written in such a way that the order of execution of tasks is highly underspecified; parallelism is the use of multiple execution units to execute concurrent code.

    Concurrency isn't just for performance; concurrency is just as much for writing software that can do many things at once. For example, one needs concurrency to have client applications that respond to the user with very low latency while doing some other work in the background. In this case, in fact, the software isn't trying to perform its heavy computations in the absolute minimum time; it's OK to slow down the heavy computation somewhat in order to reduce user interface latency. Have you ever used one of those applications where the whole UI hangs (e.g., won't even draw) while the application does some action, like connecting to a server? That's a failure to provide concurrency.

    Contrary to common wisom, the introduction of multicore processors didn't increase our need for good tools for concurrent programming, because we've needed such tools since way before for user interaction. The tools that conventional languages provide for threading and synchronization are too hard to use, leading programmers to introduce far less concurrency into the software than they otherwise could. Also, conventional threads are much too heavyweight for an application to create thousands of them.

  19. Re:So, where did they steal this idea from? by mmkkbb · · Score: 2, Insightful

    Well, I wouldn't say that classes are bad in and of themselves, but trying to bolt classes onto Erlang certainly wouldn't make sense.

    --
    -mkb
  20. Re:So, where did they steal this idea from? by dido · · Score: 3, Informative

    From the looks of things, C.A.R. Hoare's Communicating Sequential Processes (yes, the same guy who invented Quicksort). Well, Professor Hoare presently works at Microsoft Research, so I guess he may have more than passing involvement in the project. It's the basis for many other concurrent programming languages such as Occam, Erlang, and Limbo to name a few.

    --
    Qu'on me donne six lignes écrites de la main du plus honnête homme, j'y trouverai de quoi le faire pendre.
  21. Re:So, where did they steal this idea from? by kohaku · · Score: 4, Interesting

    I think most concurrent languages have been derived at least in part from CSP, so they'll probably all 'feel' like occam; it's just occam got there first. Incidentally, if you already knew about occam, you might want to check out David May's (the guy behind Occam) new startup XMOS.
    I'm not affiliated, but I do own their dev kit :-)

  22. Re:Uses actor model by maxwell+demon · · Score: 2, Funny

    I've heard that they include Arnold Schwarzenegger, who is needed to terminate the program.

    --
    The Tao of math: The numbers you can count are not the real numbers.
  23. Re:R&D by shutdown+-p+now · · Score: 2, Informative

    Frankly, #pragmas are ugly, and what if you want to parallelize operations on STL containers? How about a library solution using C++0x lambdas instead:

    #include <ppl.h>
    using namespace Concurrency;
     
    std::list<int> xs = ...;
    parallel_for_each(
      xs.begin(), xs.end(),
      [&](int x) { /* do whatever you want the item here */ });

    But, of course, it would require you to embrace "MS-Java++", and therefore automatically evil, right?