You are not logged in.

#1 2009-10-26 21:15:48

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

'Batteries included': yay or nay?

Opinion question: should language distributions contain a large standard library?

Offline

#2 2009-10-26 22:36:43

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: 'Batteries included': yay or nay?

IMO it depends on the intended usage for the language.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2009-10-26 22:37:32

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Re: 'Batteries included': yay or nay?

Yes. If I had to use any of the programming languages I know (that means Java and some C-based languages) without using its standard library, I would probably stop using it. Imagine having to code everything using ints and chars!
Now you could argue that you could of course use code provided by thirds, but that would (in my opinion) result in a big mess. If everyone adhered to their own standard and created their own libraries, what would become of a language's paradigms and things like backwards compability?

Last edited by MrAllan (2009-10-26 22:38:16)

Offline

#4 2009-10-26 22:42:26

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: 'Batteries included': yay or nay?

I like the "batteries included" concept behind Haskell where there's a centralized repository for third party libraries and official packages alike. It makes it very easy to get things that you may need while still having strong peer-to-peer review. This is something that OCaml is trying to do now. Previously with OCaml you could find three or four different versions of a package written by the same people in as many places. That's no good.

Offline

#5 2009-10-26 23:35:38

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: 'Batteries included': yay or nay?

Mhm. To be honest, I sort of expected a lot of 'no, that's bloat!' answers.

Offline

#6 2009-10-27 01:26:41

alexandrite
Member
Registered: 2009-03-27
Posts: 326

Re: 'Batteries included': yay or nay?

No, that's bloat! tongue

But really, there's nothing wrong with including a large standard library.  Only the parts a programmer needs are linked, so it's not like every application is filled with unused library routines or anything.

Offline

#7 2009-10-27 01:47:13

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: 'Batteries included': yay or nay?

Having a large standard library is helpful for a lot of reason as long as it doesn't get to be too absurd. And not including things that are painfully obvious is equally absurd. For instance, I remember learning Java and there was no console class in the standard library. That's ridiculous.

Offline

#8 2009-10-27 03:19:31

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: 'Batteries included': yay or nay?

Okay, I will take all your opinions under advisement for my next project. wink

Offline

#9 2009-10-27 04:33:49

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: 'Batteries included': yay or nay?

I think a strong standard library is important, but the keyword here is strong, not "large". One of the reasons I liked newLISP over other Lisps/Schemes was that the standard library included many practical functions, that would otherwise need to be implemented for nearly every script/application. I also like the idea of Hackage, which as Skottish points out, creates a central point of distribution and information.

A similar interesting idea to point out.. I don't know how many of you are familiar with Litestep on the Windows platform, but most Litestep installations these days include a NetLoad module, which is able to automatically fetch required modules from a central repository as they need to be loaded.

I guess what I'm trying to say is that a language should have a reasonable standard library, without being too large (no one wants to download 100mb of JDK) to keep the level of entry as low as possible, but it should be easy enough to bundle or "require" modules in a straightforward way when they're needed.

Offline

#10 2009-10-27 09:37:22

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: 'Batteries included': yay or nay?

No, thats bloat! wink

IMO, I want a lean mean core for any language so it can find it's way into embedded devices and other limited resource areas. I also want a large body of optional and easily installable modules (e.g. CPAN) for the times I'm not limited by the hardware.

Offline

#11 2009-10-27 11:12:39

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: 'Batteries included': yay or nay?

just depends how big that is.

mono does that. As a consequence it's not exactly popular because of the hdd space used. However it's only about 15-20mb more than python.

Offline

#12 2009-10-27 23:02:25

Anikom15
Banned
From: United States
Registered: 2009-04-30
Posts: 836
Website

Re: 'Batteries included': yay or nay?

A standard library should have things are going to be used by a variety of programmers. For example:
Library for guis for should not be included since not everyone needs these, libraries for handling data storage should be, as it is used by a large variety of programmers.


Personally, I'd rather be back in Hobbiton.

Offline

#13 2009-10-28 05:56:02

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: 'Batteries included': yay or nay?

A good question to ask is where the "standard" library leaves off and other libraries start to take up the slack.  Perl seems to work well in this respect, with many features standard and the rest available via CPAN.  Java seems to suffer from a standard library that is rather large and cumbersome to extend.  C has an incredibly small standard library, to the extent that one needs third-party libraries for e.g. networking, IPC, multithreading, regexes, etc.

It's a delicate balancing act, and, naturally, each approach has its strength.

Offline

#14 2009-10-28 07:30:41

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: 'Batteries included': yay or nay?

I like Lua's philosophy , small compact yet can do a lot, however it is easy to extend via luarocks.


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

Board footer

Powered by FluxBB