RubyGems' Module Count Soon To Surpass CPAN's 206
mfarver writes "According to the data gathered by modulecounts.com, the total number of modules checked into RubyGems (18,894, and growing at about 27/day) will probably exceed CPAN (18,928, and growing about 8/day) this week."
Huh (Score:2)
Quality has never been a concern of Rubyists. (Score:3, Interesting)
In general, quality and correctness have never been major concerns of the Ruby, and especially Rails, communities. Their goal is to produce large amounts of software quickly, even if it's shitty, doesn't do what it's supposed to, and even if it outright fucks up. It doesn't surprise me at all that they'd produce a blatantly incorrect graph like that.
The Ruby and Rails communities consider things like monkey patching and duck typing to be acceptable in large-scale applications. Anyone with any experience dev
Re:Quality has never been a concern of Rubyists. (Score:5, Insightful)
Re: (Score:2)
In theory you're right, but I have a significant amount experience with Ruby gems and and I have to agree with the OP's assertion that there's a ton of crappy quality software modules out there for Ruby. Granted it's not just b/c Ruby permits monkey patching and other "quirky" programming techniques. I personally love to have those techniques available to me (debugging things is *so* much easier sometimes with a monkey patch).
Even some of the "core" libraries that ship with Ruby are total BS. Take REXML jus
Re: (Score:2)
The fact that Ruby and Rails make bad programming practices possible doesn't prove anything.
What percentage of Ruby usage is Ruby on Rails? I honestly don't know...just curious.
Re: (Score:2)
Yes, I wonder how many gems even have a test suite. CPAN modules are pretty good in that regard.
Re: (Score:3)
That's tricky.
There is a large and vocal Ruby community of behavior-driven design. Tools like RSpec in particular show just how well this works in Ruby, compared to other languages, and all the major projects (including Rails) use and encourage tests -- basically, if you want a change in Rails, you're going to need to write a test which describes the change, which fails on the current trunk and passes with your patch.
But there's also a large and nearly silent community of people who just throw up a gem (bec
Re: (Score:2)
In general, quality and correctness have never been major concerns of the Ruby, and especially Rails, communities.
Is that why Rails won't even look at your patch unless you have a unit test proving it does what you say it does?
The Ruby and Rails communities consider things like monkey patching and duck typing to be acceptable in large-scale applications.
Duck typing yes, monkey patching no. It's awesome that monkey patching exists, but the Merb guys introduced the idea that if you couldn't write a Merb plugin you wanted to with the plugin API (that is, if you had to monkey-patch), it was a bug in Merb. Merb has since been merged into Rails, so the same should be true of Rails.
It's a horrible idea to change code at runtime, especially when that code is part of widely-used standard classes like String or even Object...
Define "at runtime." These modifications are made at the beginning of y
Re: (Score:2)
Anyone with any experience developing significant software systems knows that [duck typing is] among the stupidest things you can do, and [it does] adversely affect the quality of the software system.
Meh. I've seen programmers much more experienced than me and (I'm going to guess) you argue it both ways. this one's [msdn.com] an interesting discussion, but there are plenty more out there.
I'd rather have CPAN's thousands of modules, most of which are extremely high quality and reliable, versus a larger number of shitty
Speed of light (Score:2)
Back in the days of print media, graduate students used to remark that the ever expanding bound volumes of the Journal of chemical physics were enlarging so fast that in a few years they would be spreading across library shelves faster than the speed of light. But this did not violate einstein's principle because they contained no information.
If you compare older perl libs with more modern python and ruby libs you fins a lot of object oriented bloat and dependencies in the latter. It's the modern way of p
Real use (Score:5, Interesting)
Obviously there's some real projects out there using Ruby, is it mainly internal stuff? There's some big contenders for things like PHP (wikipedia probably being the biggest). Does Ruby factor in to any public-facing websites of note? Or is it mainly used in the corporate space in the area where you often find tomcat?
Prototyping and Small Projects (Score:5, Interesting)
Obviously there's some real projects out there using Ruby, is it mainly internal stuff? There's some big contenders for things like PHP (wikipedia probably being the biggest). Does Ruby factor in to any public-facing websites of note? Or is it mainly used in the corporate space in the area where you often find tomcat?
What we use it for at my company is quick prototyping. Especially with Rails. But it's important to note that Ruby is the language and Rails is the framework. These modules could just be a niche field like academia finding it easy to write and share these modules through this site. I'd say that's unlikely given the number and you're most certainly seeing businesses promote some of this. I will say that we actively use hundreds of gems and I'm not sure what the average module:gem ratio would be in these projects -- as far as I can tell, I think it's 1:1 on a lot of the major ones we depend on.
Here's a list of some websites you might know using Ruby [storecrowd.com]. The most notable is Twitter who I think is starting to componentize its pieces and move the high load intensive pieces to Scala [theregister.co.uk]. That's not to say they're completely off of Ruby but I think it's a sign that Rails needs a little more maturity before it is going to be seen on a website the size of Facebook. You'll see small to medium efforts excel at Ruby on Rails but the very very giant beasts are still too big for it at the moment. That means that you have a high number of websites using it but the representation is skewed against it since your big sites that everyone use aren't going to trust its maturity yet.
great language. It's simple, elegant, clean and it is versatile. Rails muddies that up a bit but Rails is great for prototyping web applications. In my opinion, the increase in the number of modules shows how versatile the language is and how wildly people want to extend it. It really does have a lot of metaprogramming facets that I've been impressed with and I think that we're going to see a rise of languages like Ruby and Clojure that allow you to do interesting things like write a domain specific language (DST). But will they ever usurp the big old giant languages that command a presence? I guess only time will tell. For web programming, I prefer Ruby to Java when prototyping or writing anything for less than thousands of users. That's where it stands right now but Ruby usage has grown by leaps and bounds and I don't think this module tracking story is a fluke. I think we'll see a steady rise in Ruby modules as people explore its potential. The quality, the performance, the diversity, the revenue can all be questioned but the number of modules is most likely there.
Re: (Score:3, Insightful)
Huge sites like Twitter or Facebook have special needs that are unlikely to be there for 9 out of 10 other sites. Sure, it's an honor to have "your" language picked at some point for such a large scale / high availability service, but they will eventually switch to something else as the technology evolves, or the needs of the site change, and so on.
Bottom line: if Twitter or Facebook used Ruby at some point in time for certain things doesn't mean it will be good for you and your site. It means it has certai
Re: (Score:2)
On the other hand twitter has a Java backend (Scala to be more specific), because Ruby just didn't handle well the high load.
Re: (Score:2)
Scala isn't the same as Java. Yes, it runs on the JVM, but so does JRuby. The advantage of Scala is that it still offers concise, expressive code with many Ruby-like dynamic features, but without the overhead of actual dynamic typing. And it can outperform Java in parallel processing.
Re: (Score:2)
I don't have first hand knowledge but I'd be willing to bet that Twitter is using Jruby to help manage the transition. It's pretty rock solid in my experience and gives you the main benefits of Ruby without the crappy-ass interpreter that Matz and co can't make run right (it has painfully slow start up and doesn't parse all that well inline as compared to other similar languages such as python).
offtopic..
I love the language but hate the implementation.. Zed Shaw sang a song about this at his last Ruby confe
Re: (Score:2)
but they will eventually switch to something else as the technology evolves, or the needs of the site change, and so on.
Unless the language is open source, and then you can change the language and frameworks to meet your needs instead of rewriting in a new language for 1 feature. Or being forced to throw up your hands when you find what seems to be a language or framework bug, versus being able to dig into the source, confirm it, and submit a patch.
Not saying changing languages is never the right solution, but with open source there are more options. That is actually how Facebook is still using PHP.
http://blog.facebook.com [facebook.com]
Re: (Score:3, Informative)
Re: (Score:2)
Ruby people make some cool tools that you can use even if your code isn't written in Ruby. Check out Chef [opscode.com] and Vagrant [vagrantup.com]. Both are configured with Ruby, which is amenable to making DSLs.
Re: (Score:2)
Obviously there's some real projects out there using Ruby, is it mainly internal stuff? There's some big contenders for things like PHP (wikipedia probably being the biggest). Does Ruby factor in to any public-facing websites of note? Or is it mainly used in the corporate space in the area where you often find tomcat?
yes
Re: (Score:2)
Doesn't twitter use Ruby to some significant extent? I think they used to run the whole thing on Ruby but as they got big, they had to back that off as it was wasting too many cpu cycles parsing. I've read that their bottom end runs a lot of C now but the interface still has Ruby bits I think? Anyone has current knowledge?
How many of those are maintained (Score:5, Interesting)
Big numbers, but you have to be very careful what you pick. Do you want to go with community-based support? Pick the most-used module. Want to maintain it yourself? Pick the one with the best code quality. Do you need specific performance? Test them all. Et cetera.
Besides, it's pretty obvious that Perl usage is slowly declining. The idiosyncrasies of Perl 5 get very annoying. And Perl 6 has been 10 years in development and is still not very popular in production and everybody is switching to more modern languages like Python and Ruby. At my job (a scientific institute), we're ditching Perl 5 for Python.
Re: (Score:3, Insightful)
The idiosyncrasies of Perl 5 get very annoying.
Like what? I can't really think of anything annoying enough to bear mentioning, except perhaps that typos are hard to find with warnings off (and sometimes with warnings on as well).
everybody is switching to more modern languages like Python and Ruby. At my job (a scientific institute), we're ditching Perl 5 for Python.
Ruby is certainly modern, but Python? It's a poor choice IMO when it comes to fixing Perl's biggest problem, threading support/concurrency due to its GIL, some Ruby implementations fare better. We'll stick to Perl for now, our parallelizable problems are generally tackled using Gearman and apart from a lack of decent programme
Re: (Score:2, Informative)
Like what?
Off the top of my head: How about no visibly defined function parameters; object oriented features are stuck on with duct tape; you have to have a deep understanding of the language to understand what's really going on when someone assigns between variables that have different sidgils; huge numbers of built-in magic 2-character variable names that you can't remember without a cheat sheet.
Re: (Score:2)
Off the top of my head: How about no visibly defined function parameters
I might be totally misreading you here, but are you saying that you can't put a function prototype into a function definition?
Re: (Score:2)
How about no visibly defined function parameters
Well, you can, but it's optional (like a lot of perl). I actually like one aspect of an argument list that is more obviously nothing more than an open ended stack, it gets developers to think more open ended about arguments they can receive. In C, it's a relative pain, you must know the number of arguments you need. If you treat it as simple arguments being passed in, it's extremely static. If you are going to accept arbitrary number of parameters, you need the caller to tell you how deep the stack is r
Re: (Score:2)
You have been stuck somewhere before Perl 4. Try Perl 5.12.2 with Moose for OO-programming.
Optional OO add-ons == FAIL. If different projects use different incompatible class systems from random 3rd party libraries they downloaded off the web, they may as well not even be written in the same language. They won't interoperate.
Re: (Score:2)
Perl's biggest problem in new developer 'recruitment' is a world that is obsessed with concepts of 'new is better'. This is at least the case in academia and discussion places like slashdot. In industry, I find many hands-off architects that never touch code and have next to no ongoing commitment to any particular project push hard for starting or converting to Python or Ruby (the latter is only ever mentioned with 'on Rails' at the end by these guys, even if having nothing to do with the web for some par
Re: (Score:2)
When it comes down to it, currently used interpreted languages are alive for a reason and generally you can choose any one you like and get to the goal without too much difficulty. Python, Perl, Ruby, even Powershell (as of 2k8r2 and 7) represent pretty capable languages to write in. Personal preference and available experience outweigh the technical differences in my opinion.
The reason you say this is because you have little to no experience with Ruby or Python. I can't comment on Powershell since I don't know it enough. Though I can say without doubt that Python and Ruby is a superior choice to Perl for new systems.
Re: (Score:2)
I say that because people make too big a deal of the differences between interpreted languages. I have done python extensively. Admittedly, I've only spot checked ruby code. Preferences are a matter of subjective taste and not so much slam-dunk, absolutely better. I will admit I have a hard time imagining anyone preferring perl's XS strategy for writing perl bindings to C/C++ API to python's, but I'm hard pressed to think of another area where perl cannot be used to the same effect as python without und
Re:How many of those are maintained (Score:5, Interesting)
Besides, it's pretty obvious that Perl usage is slowly declining.
I can't comment on the trend (declining or ascending?), but it sure looks like perl is still pretty popular, on this comment from last month [slashdot.org].
It says:
Dice has a lot more programming listings than Monster.
Java - 14824 .Net OR C# - 10496
C++ - 5789
Perl - 4664
PHP - 2499
Python - 2196
Objective C - 1267
Ruby - 1169
Cobol - 638
(bolding emphasis mine)
Re:How many of those are maintained (Score:5, Informative)
I think Perl is a fantastic language--in fact it's my favorite language of all time. Heck, I just released a new tool at my work last week using Perl and CGI to help organize about 4 years worth of file changes from an active CVS archive into relevant categories.
Perl's not a language for the faint-hearted, however. It is not a language you sit down and instantly you have a webpage going--which is what most people want to do these days when it comes to casual programming. For that, PHP and Ruby seem to be a lot more accessible.
I've been using Perl for over ten years now, and I find that I'm still learning something new about how to use the language in fascinating ways--pretty much every day. Nothing compares to Perl's community. You can talk with experts daily if you like, on sites like http://www.perlmonks.org/ [perlmonks.org] and the documentation is all accessible at http://perldoc.perl.org/ [perl.org] or with every install of perl by just typing perldoc... I love how easy it is to move data about. It really was the first language to fully incorporate hashing as a basic operator and though variable sigils confuse a lot of people used to simpler programming languages, such notation allows for some amazingly flexible operations without the need to create lengthy method calls for every basic operation on your data structures. In Perl every symbol has specific/distinct meaning and interoperates with all others, and those combinations make for some very powerful programs with few lines of code--like how you can load full hashes by acessing them with the array operator as hash slices... and who can compare to Perl's enhanced regular expressions, especially the latest from v. 5.12...
Anyhow there are languages for the pedantic, there are languages for your project managers and your CS grads, and for your code-generators--or for outsourcing to India, and then there's languages that really get your inner geek going... and Perl definitely reigns supreme for my inner geek. :)
In fact, Some people call it magic.
After 10 years? (Score:2, Insightful)
"I've been using Perl for over ten years now, and I find that I'm still learning something new about how to use the language in fascinating ways--pretty much every day."
If thats the case then either you never learnt it properly in the first place or the language is so hopelessly over complicated that it really needs to just go away and die peacefully. Its a programming language, not a dissertation by Wittgenstein - it should be logical, clear and simple.
Re:After 10 years? (Score:4, Interesting)
Ok, so we can cancel all Math classes after 10 years right? Because anything logical should take less time to completely learn and understand. Lets face it: Math professors are lazy bastards that don't deserve their research grants. /sarcasm
Re: (Score:2)
Christ , who modded that crap +4? If you can't tell the difference between the entire realm of mathematics and a scripting language whose syntax can be summed up in 1 small book then perhaps you should stick to an abacus.
Re: (Score:2)
If thats the case then either you never learnt it properly in the first place or the language is so hopelessly over complicated that it really needs to just go away and die peacefully.
It seemed pretty clear to me that Perl 6 was going to be a case of the latter, which is why I personally jumped ship to Ruby.
Re: (Score:2)
If you still learning THE SAME FUCKING THING after 10 years then yes , it DOES suck. Or you do.
Re: (Score:2)
Wow, I should post in my sleep more often!
I copied someone else's post, linked to it with a bad link, and got a Score 5, Interesting.
Sorry folks, here's the real link [slashdot.org]
It says
Dice has a lot more programming listings than Monster.
Java - 14824 .Net OR C# - 10496
C++ - 5789
Perl - 4664
PHP - 2499
Python - 2196
Objective C - 1267
Ruby - 1169
Cobol - 638
This is the number of jobs available using various languages. Since this article compares Ruby and Perl's respective contributed libraries, I think it's interesting that there are 4 times as many Perl jobs as Ruby jobs.
Implying that Ruby is as popular as Perl based on the library stats might be as valid as saying that Ruby is not even twice a
Re: (Score:2)
Yes but which one of those jobs would a programmer want? Perl is highly in demand - that's great. But if I'm an above average programmer do I want to work in the bowels of a bank, figuring out 10 year old perl parsing of bank transactions or work on a shiny new Ruby web app, where they have super smart co-workers, a ping pong table, free soft drinks and happy hour twice a month? Quantity of job listings shouldn't be the only measure to drive language to learn and which jobs to apply for..
I'm not suggesting
Re: (Score:2)
There is a tremendous push for Python in the scientific community (except for the people still using Fortran)
Re: (Score:2)
How many of those modules? (Score:5, Funny)
How many of those modules are solely focused on converting a string to uppercase?
Re: (Score:2)
And how many of them are duplicating functionality of others, but with a slightly different interface? And how many are doing something that is so domain-specific that they are unlikely to be of use to anyone other than the author? And how many are so buggy that they are no use to anyone including the author?
The number of modules is an irrelevant statistic without some measure of utility. I could write a program that would generate Perl or Ruby modules (UNIX systems typically actually ship with one fo
Irrelevant statistic... (Score:5, Insightful)
It doesn't matter how many modules there are. It matters how many solid, well-documented modules there are that will continue to get updates and support.
I have no opinion over how much goodness there is in CPAN versus RubyGems; maybe RubyGems is really pulling ahead. But out of nearly nineteen thousand modules, how many really matter? (and how many are just another XML library that's just slightly different and incompatible with the bajillion other XML libraries already out there?)
Re:Irrelevant statistic... (Score:5, Insightful)
Re:Irrelevant statistic... (Score:5, Interesting)
Even as an amateur, this is something I worry about. I realized pretty quickly how dangerous monkey patching is, but others seem to think it's the answer to everything. Need a special string manipulation function? Name it something generic and slap it on String. UGH.
I even saw where Rails had added a function to String that rewrote the request string. Then others started using it, because it was so useful. And then Rails changed the function. All those people using it for unintended functionality were now broken because the change they made wasn't something you'd expect a function named that to do.
That function was 'camelize' and is aliased to 'camelcase'. Here's the issue: It also converts '/' to '::'. This is completely unexpected from the name.
Now, I get that upgraded to a different version of a library will have some unexpected effects, but you shouldn't have to worry about something so basic as this.
Re: (Score:2)
Re:Irrelevant statistic... (Score:5, Interesting)
It is normal that people writes their own modules: the default libraries are too crappy.
Re: (Score:2)
I am a Perl programmer. I like very much the syntax of ruby.
Not really surprising. Ruby was designed to merge Perl syntax with Smalltalk semantics.
Re: (Score:2)
Am I being overly pedantic to say that I think it's Perl semantics that Ruby copied not Perl syntax? Perl syntax as OP says includes "cabalistic symbols" and other gnarly hard to read 5 minutes after you wrote it stuff..
Smalltalk syntax on the other hand is clean and easy to read. Ruby has replicated some of smalltalk's semantics as well (ie. everything is an object) and they designed the syntax so that moving from Perl is not a big cognitive leap, but I don't really see Perl and Ruby having similar syntax
Re: (Score:3)
While I agree that changing the functionality of a library function underneath users in a non-backward-compatible way is bad, this has nothing to do with monkey-patching. What you describe would be the same in any language supporting library function, even if it was named "char* camelize(const char* input);" and written in C.
Re: (Score:2)
The String class was monkey patched with that function, and called what anyone could call it: 'camelize' and 'camelcase'. If Rails wasn't such a large project, it's likely many other projects would have monkey patched in exactly the same way. As it is, some probably do anyhow.
And it still would have been fine, if it did exactly what you think it would, instead of adding the bit about converting slashes.
Re: (Score:2)
I have no experience with ruby, but I guess you could monkey patch the (ancestor of everything) Object class, to give warnings when somebody tries to change methods. But I agree, that monkey patching in general isn't a good idea. I guess that's why Java and .net doesn't support it out of the box. (Of course you can have it with JVM and .net based scripting languages.)
Never mind the quality, feel the width (Score:5, Insightful)
Re: (Score:2)
Yes! I was just going to say the same thing. Please mod this man up, I don't have points!
On the other hand, perl is a "mature" language it's likely that many modules already exist and are in widespread use, thus pace of new development is slowing down. Ruby is on the up ramp of its life cycle, and consequently a lot of stuff has to be developed for it. Revisit in five years and I'd guess both repositories will have about the same number of modules.
Quick! (Score:2)
Re: (Score:3)
I would, but I use perl instead of ruby.
DLL hell (Score:5, Insightful)
I sure hope RubyGems isn't the utter DLL hell that CPAN is. The only time I tried shipping a product based on CPAN stuff, I wound up shipping the entire bundle as one, because there's just no way to download it from CPAN and depend on having the exact versions of the modules you developed with available - and when they're not, you're stuck in a messy cycle of upgrade dependencies and API incompatibilities that are almost impossible to resolve.
Re: (Score:2, Offtopic)
Give this man some mod points. CPAN hell. And CPAN bloat - how many different modules for building modules does one need? 3? 4? 5?
And fragility - I made the mistake of upgrading a package once, only having to re-wind it because of the knock-on effect through the rest of the module hierarchy.
Re: (Score:2)
Good choice (Score:3)
The only time I tried shipping a product based on CPAN stuff, I wound up shipping the entire bundle as one, because there's just no way to download it from CPAN and depend on having the exact versions of the modules you developed with available
Good choice, that's what you're supposed to do if you're shipping a product. Perl includes tools to help you do this. Fortunately, your app was probably stored on $1 worth of storage.
You could also specify a no-breakage OS (e.g. RHEL, debian stable) and write your
Re: (Score:2)
Good choice, that's what you're supposed to do if you're shipping a product. Perl includes tools to help you do this.
Say your perl program needs https/SSL and needs to run on all the popular linux distros. How many packages do you have to build just to support the relatively small numbers of "Desktop Linux" users?
Correct me if I'm wrong but it seems for you'd have to build different packages for Ubuntu, Suse, Redhat, Debian, etc? Would 32/64 bit and glibc versions also make a diff?
Fortunately, your app was probably stored on $1 worth of storage.
In most cases the storage doesn't matter much. It's the amount of work involved for the $$$.
Re: (Score:2)
Correct me if I'm wrong but it seems for you'd have to build different packages for Ubuntu, Suse, Redhat, Debian, etc? Would 32/64 bit and glibc versions also make a diff?
I think it would depend on the major version of OpenSSL, but they should all have OpenSSL. Same as any other app, a 32-bit version should be able to run on 64-bit OS with compatibility libs, but not without. Native needs native.
Perl modules are often available in "pure perl" and "XS" versions. The pure perl versions don't have these pro
Re: (Score:2)
One could give up on LWP and connect by using "openssl s_client -connect dest:port" but that means reimplementing a fair chunk of what LWP does and adding lots of other stuff.
Re: (Score:2)
Just because openssl is present does not mean that perl LWP will have TLS/SSL/https support. For that you need Crypt::SSLeay.
Right, but the question was about when you were bundling your modules rather than using the system modules.
pl-2-rb.pl converted 17,894 of those (Score:3, Funny)
pl-2-rb.pl converted 17,894 of those.
According to modulecounts... but then again... (Score:5, Informative)
search.cpan.org [cpan.org] states that there are 88,679 modules in 21,580 module distributions. It further says there have been 63,291 uploads by 8659 uploaders (authors).
Perl also has over 600 modules in the core distribution (as of 5.12.2 anyway).
On CPAN, a "module" is a module, and that's what it sounds like. A module is a program library that can be used by an application programmer. A module distribution is several related modules in a package. Some packages contain dozens of modules. Some may also contain example applications or helper applications along with the modules. PyPi also has packages which can be collections of modules. I don't mess with Python enough to tell you if that's common.
So, RubyGems has over 18,00 "gems", but what does that mean?
On RubyGems, it seems a "gem" can be anything. There are libraries there, sure. There are also applications. One, for example, is "vmail", which is a hack to let you read your GMail account in vim (using lynx for HTML mail viewing). Another is "rake", which is a software build program. You do have big frameworks pushed out as gems like "rack". There are smaller library modules that look useful, too. Then there's some stuff with no docs, no home page, and no apparent use. I found one "gem" that claims to redefined '==' to be more useful than in the standard library, but was all of 4 lines with no documentation.
RubyGems seems to have no real organization other than new, recently updated, popular, and alphabetical. There is a search.
CPAN and PyPi both have hierarchies of topics through which one can drill down. They have search, too. PyPi has probably the best combination of search and drill-down features of the three.
CPAN has some things it's pretty clear RubyGems doesn't. It has an automated build and test system for modules. It has a ticketing system for the modules right there in the public repository. It has a rating system for the packages. It has 228 mirrors worldwide for downloading the packages, too.
Great, now let's work together. (Score:5, Interesting)
Folks with a few spare cycles/resources who are growing tired of these 'module' measuring contests might want to throw a bone to Parrot VM [parrot.org]. Write a module in ruby, use it from perl6, python, lua, tcl, whatever, or pick any combination above.
I won't wave the red flag explicitly, but suffice it to say I look forward to good ruby performance on parrot.
Re: (Score:3)
I have less hope for that than you. Using libraries (modules/frameworks/whatever) written for another language isn't usually as nice as using something that's native. There's different conventions, and there's usually features in each language that makes for an improved experience - for that language.
For instance, in Ruby, I'd expect an API to actively use blocks (continuations) for resource tracking, and a DSL based on symbols and blocks would be common. Doing this in Python or Perl would be weird.
In Py
Re: (Score:2)
The guts of a thousand whales (Perl 6) are too heavy a baggage for Parrot to be anything other than a fringe project. Face it, Larry killed Perl.
More useful metric: (Score:2)
How many tests do each have, and how many of those do they fail?
Re: (Score:2)
It also spews files all over /usr which confuses your packaging system
man checkinstall
Re: (Score:2)
I don't want to start a perl versus python war.. ok, I will.
I think it's funny how a discussion on Ruby drifts into a Perl vs Python war, and at this point this is the post with most answers.
Not to dismiss Ruby, but perhaps surpassing CPAN in absolute numbers does not mean everything.
I have used Perl in the past, now I use mostly Python for all quick programming and a lot of other applications, as a matter of fact I use Python almost exclusively, except for those parts where nothing but C will do. And I must say that the "batteries included" philosophy of Python is
Re: (Score:2)
" Duck-typing as a very bad idea."
Both Ruby and Python does duck typing, and I guess Perl too. So I don't see your point. Scripting languages do duck typing.
Re: (Score:2)
Re: (Score:2)
How can you _not_ duck type? Python doesn't have static typing at all...
Maybe you mean something else?
Re: (Score:2)
Are you sure you're not confusing it with monkey-pathcing?
As Python doesn't enforce types in function calls, there really is no way to get around duck typing.
Re: (Score:2)
It'll be resolved the same way during runtime. There's no static typing in Python, even classes/instances can get new methods during runtime (that's called monkey patching; and I guess they can lose them too). See metaclass protocol.
Re: (Score:2)
Re: (Score:3)
It's fairly straightforward where modules get installed. I personally find it great. When the distribution handles their pre-packaged modules sanely, it makes it very easy to tell which modules were installed by the distro and which from cpan. With python, at least on Debian, distro modules and pypi modules all get dumped in the same place. That gets a bit messy to me.
I also prefer CPAN with a more centralized repository for the code. Pypi seems to install crap from all over the place, it could pull f
Re: (Score:3)
Re: (Score:2)
True, it would get out of hand with a large number of servers. Doesn't matter whether you're using pypi or CPAN there, though, they both suffer from the same problem when it comes to manually managing the configuration.
I'd love to have a more automated system like you've got going. Just don't have the expertise at the moment or the time get get the expertise. Management keeps letting people go and as much as I and upper management here don't like to admit it (although for different reasons), I just can't
Re: (Score:2)
Turns out that $environment is a hard-coded puppet "fact", and now I need to use it. One massive perl -p -i -e coming up!
btw. The puppet tutorial will leave you none the wiser. You have to just spend time with it and use it for practi
Re: (Score:2)
Better still is the tickets you get actually work. They've already tried the change on their dev box, so when they want an apache change to qa/stage/live, they send you stuff which actually works, rather than "could you try this Rewrite please?" and sending the ticket backwards and forwards
Re: (Score:2)
Well, technically I'm a dev anyway. I just pretend to be a sys admin, dba, and support guy because they've fired everyone else.
It would drive me nuts going back to a system where I have to ask someone else to test stuff that may or may not work all the time rather than just doing it myself.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
And thus my later comment about how puppet is full of booby traps :-) I've been using puppet for 2 years and stood up to give a talk about it (well, architecture design in general) and I didn't know that! Either way, I've got a script to convert gems into RPMs, so I don't need it.
Re: (Score:2)
Can you please show an example of indentation that's not "guido's way" and would not be accepted by Python?
Re: (Score:2)
Can you please show an example of indentation that's not "guido's way" and would not be accepted by Python?
I can't speak for the anonymous grandparent, but the last time I played around with Python, it wouldn't accept anything that wasn't indented in a very specific way. Something like one tab per level of curly braces, and the curly braces also had to be used in a very specific way. I can't remember if it was Visual Studio-style (both opening and closing braces on their own lines) or not. It was more or le
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Good point on the braces thing.. But I could never get past the concept of white space is significant in Python. For the very trivial reason that I use unindented code for debugging inside functions and it makes it very easy to scan quickly down a page to remove that debugging code when it's no longer in use. Totally trivial but also totally integral to how I like to work and python forces me to abandon it.. At least I couldn't figure out how to work around.
You sound like you know python and I wonder if you
Re: (Score:3)
Re: (Score:2)
Re: (Score:2)
I am assuming you are talking about C Python language implementation.
Re: (Score:2)
The perl that gets ported is just stinky old Perl 5.x, porting doesn't add new features.
The libraries of all the scripting languages have crap, cruft, and redundancies.
You can write great code or crap code in any of the scripting languages, and choose great libraries or horrible ones.
Interesting new useful constructs are more likely to be found in Python and Ruby than in Perl 5.
Re: (Score:2)
Perl 5 has lost almost all of its share of powering the web, http://trends.builtwith.com/framework/Perl [builtwith.com]
Scalable code can be written in any language, that's a question of architecture not a function of language choice. Any scalable algorithm can be realized in any language.
Loading as much as possible into a single line is a recipe for hard to maintain and buggy code.