12 ms·
Perl/Linux, a Linux distribution where all programs are written in Perl
- aaronbrethorst 14y agoIn all seriousness, what year is this thing from? I honestly can't tell if this was someone's idea of a joke in 2000, or if this is someone's idea of a joke in 2012. Both seem equally plausible!
- mediocregopher 14y ago> Registered: 2001-03-12 > Last Update: 2009-07-17 So... a little of both it seems.
- aaronbrethorst 14y agoThanks for the info. Also, just out of curiosity, are you a U of MN student or alum?
- mediocregopher 14y agoNope, other side of the country in fact :) Is there another mediocregopher?
- aaronbrethorst 14y agoNot that I'm aware of, but our (is it still 'our' if you graduated ten years ago?) mascot is the gopher. Of course, the original artist didn't have a gopher picture to go on when he drew Goldy, so he used a chipmunk instead, assuming there wasn't any difference (http://www.mndaily.com/2003/07/21/goldie-really-gopher http://www.mndaily.com/2003/07/21/goldie-really-gopher)
- dokem 14y agoThe download says it was zipped in 2005.
- deleted 14y ago[deleted]
- voodoochilo 14y agoperl rules.
- zbowling 14y agoI remember reading about this hack in 2003 wondering if there was any other variations of Linux than just "GNU/Linux". I always hated the term "GNU/Linux" and was looking for an excuse to generalize the name to just "Linux" and win a silly argument with some Stallman following, freedom loving zealots (system admins) at work. These days Android (being almost 100% GNU free) is a decent argument against the GNU/Linux name for me (although busybox/uClibc stacks on most routers are pretty close as well).
- srl 14y agoAndroid is not GNU/Linux. Most desktop and server installations are. "GNU/Linux" is not another name for linux - it's the name of "GNU/Linux". For the record, I find the name a little silly myself (despite being, as you put it, a Stallman-following freedom-loving zealot). But the fact that linux can be used without GNU is not an argument against naming systems where it is used with GNU, GNU/Linux.
- chii 14y agoi think RMS just picked the wrong name - GNU is difficult to pronounce. Linux is easy - it rolls off the tongue. If RMS picked something a bit catchier, it'd have taken more mindshare.
- stephen_g 14y agoThat, and it was kind of a jerk move to try and put GNU first in the name.
- kleiba 14y agoI think you might be mistaken about the order of events. Originally, the operating system was supposed to just be called "GNU". They developed almost everything except that they bet on the wrong horse with The Hurd. Then Linux came along (Linus used the already available GNU tools to develop Linux) and filled the empty spot. I sort of can understand that Stallman is pissed that he not only realized the necessity, but actually sat down and spent a lot of time and energy developing a project which today is portrayed as being (mostly) Linus' achievement. I mean, interested techies know the deal with GNU and Linux (the kernel). But in the general public? By now the word "Linux" (meaning the full OS) has already gained some attention outside tech circles, but who has ever heard of "GNU"? At the same time when you listen to Stallman talk about this he likes saying things like "the GNU system was just missing the kernel", as if it was a minor contribution. I think calling the OS that is based on both GNU and Linux "GNU/Linux" is fair, but at the same time it really just sounds a bit silly.
- mochizuki 14y agoI wish they'd make a serious attempt to do this in python, it'd be do fun to hack up all my programs without having to know C, C++, and every other programming language under the sun. Then again maybe I'm just lazy
- jlgreco 14y agoWith rather few exceptions, you only need to learn C if hacking on your userland is your idea of fun. Check out Busybox for a particularly easy one to start hacking.
- gvalkov 14y agoWell, there is PyCoreutils [1] for the userspace and supervisord [2] for pid 1. This is certainly an interesting idea - too bad the world isn't in dire need for more distributions. [1] https://launchpad.net/pycoreutils https://launchpad.net/pycoreutils [2] http://supervisord.org/ http://supervisord.org/
- mariuz 14y agoIt's nice to study the code and i used some of it for chroot type applications , it's easy to let users play in a restricted environment with perl inside and a few linux utils
- pjmlp 14y agoThis reminds me of Aurorax, an attempt to have a Solaris distribution with the userland software written in Ada. Sadly the project seems to no longer be alive.
- mulander 14y agoYes, AuroraUX is generally dead but on the bright sight it initiated[1] the development of GNAT-AUX[2] which is fine up to this day and even compiles Ada for Android devices :) [1] http://www.dragonlace.net/questions/quest_003/ http://www.dragonlace.net/questions/quest_003/ [2] http://www.dragonlace.net/ http://www.dragonlace.net/
- pjmlp 14y agoThanks for the tip, cool information!
- shell0x 14y agoInteresting idea. I guess the guys who wrote it, learned a lot on this way :)
- deleted 14y ago[deleted]
- zokier 14y agoThis reminds me of the sad fact that most distributions are just repackaging the same old GNU tools, or if embedded then busybox. Where's the innovation/experimentation of base userland? Android (other mobile linuxes probably too) is a nice exception, even though I'm not particularly fond of it as a system, I approve that at least it's trying to be different.
- 1337p337 14y agoWell, there's BSD, Plan 9, Inferno. If you don't want the "same old GNU tools", there are plenty of places to go.
- zokier 14y agoI guess I should have specified Linux distributions, but then I thought that would be obvious from the context. Besides latest stable of Plan9 was 10 years ago and latest stable of Inferno was 5 years ago...
- cinap_lenrek 14y agoplan9 still gets regular updates and there are various forks now all in pretty active development: http://lsub.org/ls/nix.html http://lsub.org/ls/nix.html http://www.quanstro.net/plan9/9atom/ http://www.quanstro.net/plan9/9atom/ http://code.google.com/p/plan9front/ http://code.google.com/p/plan9front/
- jff 14y agoI wish there was a way to end this meme, so people didn't keep saying the same dumb thing every time: Changes to Plan 9 are continually integrated, with a new ISO being generated every day. Inferno lives as a Mercurial repository these days, and it too gets updated frequently. In Plan 9, for instance, they recently added a better bootloader and support for timed semaphore acquires (and after that patch, you can now build Go for Plan 9). We even get ports to new systems from time to time, like the beagleboard or the gumstix.
- 14y ago
- mhd 14y agoA user-editable userland is a pretty neat idea, and if your language of choice is Perl, why not? Plan 9 has the pretty neat 'src' command that immediately opens the source file (or main entry point) of a given command. Given something like file system overlays, individual users forking their own command versions would be a pretty neat idea, albeit it might turn out to be a bit chaotic. Although not much more than e.g. a highly-customized shell or emacs environment.
- justincormack 14y agoI have been working on [1] a Lua library that can implement all the functionality to do what is needed to bring up a Linux userspace. I should have a very minimal bootable environment very soon, as I have enough of the network tools, mount and so on implemented to put it together. There is not really intended to be a shell and command line tools though, it is just a library but you could have a REPL console. I am more interested in easily creating small system images to run single applications in, see [2] for rationale, building small testable whole system images that are quick to rebuild. Planning to use Musl libc [3] which is small and easy to debug so you can easily follow what is going on, plus the whole userspace will be BSD licensed. [1] https://github.com/justincormack/ljsyscall https://github.com/justincormack/ljsyscall [2] http://www.myriabit.com/ljsyscall/ http://www.myriabit.com/ljsyscall/ [3] http://www.etalabs.net/musl/ http://www.etalabs.net/musl/
- primitur 14y agoNeat ideas, I hope you continue to make good progress! I'm reminded of LuaOS, of course: http://luaos.net/ http://luaos.net/ As an 8-bit nerd I'd love to return to the days when there was, basically, just one language onboard the computer, and all vendors just used it. :) LuaOS is a cute way to achieve this, as is your efforts too, if I understand you properly. Of course such an idea is not so foreign in the embedded sphere, where there are plenty of appliances whose LCD interface are little more than a PUTS/GETS in some shell script, but there is some merit to the idea that the ethos of a single-system-language-onboard as an Open Source target may well be worth a serious effort. I'd love to have a new Tablet paradigm where the entire thing is LuaOS and such things as MOAI are easily onboard as well .. it could represent a brave new effort against the Walled Garden Wars we're seeing ..
- derleth 14y ago> As an 8-bit nerd I'd love to return to the days when there was, basically, just one language onboard the computer, and all vendors just used it. :) Oh, like a Lisp machine. ;) (Be careful what you wish for, though; the 'one language to rule them all' world was essentially why ADVENT was written in FORTRAN of all languages.) (Also: Was it ever just one language? Eight-bit systems always had BASIC and assembly language; for a lot of tasks, assembly language was pretty much it, unless you bought a Pascal compiler or something. Lisp machines had Lisp written in the normal way, Lisp written in an obscure way to improve performance, and microcode. Even old AS/400 systems had COBOL and RPG, which is rather a pick-your-poison dilemma but the choice was there.)
- mhd 14y agoA Rosetta Code-like site featuring Unix utilities for language comparison / code golfing would be a pretty neat idea. Use the V7 man pages as specs, so you don't go overboard.
- buntar 14y agoI could use a lightweigt and fast perl version of SED. There are incompatibilities between sed versions, especially between linux and mac. Therefor a small sed utility that you can ship with every release would be useful.
- zokier 14y agoperl -p -e?
- peterwwillis 14y agoadd -i to edit a file in place $ perl -p -i -e 's/\r\n/\n/' file1 file2 file3
- flyinRyan 14y agoHosted on sourceforge to complete the "remembering years gone by" full house.
- phete 14y agowhat? no javascript?
- sp332 14y agoThat's over here http://bellard.org/jslinux/tech.html http://bellard.org/jslinux/tech.html (runnable http://bellard.org/jslinux/ http://bellard.org/jslinux/)
- itmag 14y agoThis made me think of something: it's my subjective experience that there is a relative dearth of Perl articles/discussion posted on HN. Is this correct? And if so, why is that the case? Hackers don't use Perl anymore? :) Is anyone here using Perl in a significant way for their startup?
- berntb 14y agoPerl discussions historically tended to be trolled mercilessly on HN, seemingly from adherents of certain competing language environments, so I assume people don't like to post discussions of Perl here.
- danweber 14y agoAnything I would use Perl for, I use Ruby instead.
- draegtun 14y agore: Perl posts on HN - There's actually quite a lot of Perl articles posted here (and I maybe the main culprit of that!). However only a small subset percolate to front page. re: startups - Ones that quickly come to mind... Lokku, Blekko, Moonfruit, DuckDuckGo, CareerJet & Adzuna.
- chromatic 14y agoIs anyone here using Perl in a significant way for their startup? Onyx Neon ( http://onyxneon.com/ http://onyxneon.com/ ) isn't a startup, but the main part of our publishing pipeline is Perl. (Half of it is on CPAN, and the rest will soon be there.) Of my other business ventures, two are entirely Perl on the server side and the other uses Perl substantially.
- glanch 14y agoI knew zero Perl until this year. At work a few months ago I was given the job of maintaining a massive legacy app from the 90s written in Perl. It's been.. interesting. Lots of client/server code. At this point I can manipulate most of it to do what I want, but there are still huge parts of it that are just 'magic, do not touch' status to me.
- 14y ago
- danweber 14y agoNo one has asked yet, so I guess I have to: is the Perl binary written in Perl?
- gpvos 14y agoNo. The article says: > The only compiled code in this Perl/Linux system is: Linux Kernel (not currently built with this project), perl, and uClibc. The Perl 5 compilers that currently exist all produce code that still needs to be linked to the perl library, which itself is written in C, not Perl. (I don't know the current situation for Perl 6).
- colomon 14y agoRakudo Perl 6 runs on Parrot, which is written in C. Niecza Perl 6 runs on .NET/mono, and its libraries are a mix of Perl 6 and C# code.
- motiejus 14y agoI can't see /bin/sh, and I haven't heard of posix shell implementation in Perl. Am I missing something?
- luckydude 14y agoThis is a hoot! I semi-seriously proposed that we do this at Sun back in the SunOS 4.x days. Got shot down, of course, as it should have been back then, the CPUs were just not fast enough. Even today, C beats perl pretty handily. Even so, I think this is pretty cute. Anyone know why it was done? Just because? Or was there a reason.