Slashdot Mirror


User: Bruce+Perens

Bruce+Perens's activity in the archive.

Stories
0
Comments
7,506
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 7,506

  1. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 2, Informative

    It might be that Matz doesn't have the right hardware? Unfortunately running Electric Fence on the Ruby interpreter won't work for any significant program, too many allocations at one live page and one dead page per allocation, it fills up swap, thrashes the cache because all allocations are aligned, and thus it's too slow. But valgrind would probably work. If it still exists in the 1.9.2 snapshot it's worth doing that.

  2. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 1

    Right. I am actually a bit concerned that I have stuck embedded Linux developers in a platform significantly less functional than they might otherwise have. And I might get time to fix that.

    The problem with "read line" is when the file descriptor for "read line" is not 0, and it's being held open by your shell script. Then you have to redirect a lot.

    A few weeks ago I had to write a script that installed an application, and then set up the application's database. Ruby has a set of shell-like functions so that you can write "cp_r" and do the same thing as "cp -r", etc. But that same script was able to use ActiveRecord on the database to get the full object relational paradigm in a few lines. That's really more than I want to do with the shell.

  3. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 3, Interesting

    none of these languages come close to the simple expressivity of cmd1 | cmd2 | cmd3 > file1.

    This is sort of like saying that no language has anything that lets you align text like FILLER PICTURE in old Fortran. Sure, but you don't need to do it. I don't ever have to pipe to sed, because I can do File("foo.txt").read.gsub(/^Foo.*Bar$/, 'Hello!') and get the same result.

  4. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 2, Informative
    This is actually the fault of the underlying operating system, not Python. The zombies are hanging around so that you can get their exit status. The problem is that this uses more than the few bytes necessary, and crowds up the process tables.

    I haven't looked at how Rails 1.9 garbage-collects a thread, but it doesn't look as if you have to join it to make it go away. 1.8 did not use OS threads, but just switched tasks when I/O blocked.

  5. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 2, Interesting

    One of the early shells - either Steve Bourne's or Ken Thompson's, was written in a set of macros that converted C into an Algol-like language. I was at the NYIT Computer Graphics lab running version 6 Unix on PDP-11, and the funny C was a headache to us systems programmers. Eventually that got cleaned up, later versions of the source probably don't include the macros.

    Working with servers??? I am really far from convinced Bourne shell has any advantage in expressiveness or functionality for that task. For example, even opening a file descriptor and then iterating upon it is awkward in Bourne shell - you end up stowing it as some FD number over 2, and then writing odd redirection like "3>&" on every line that connects with it.

  6. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 4, Interesting

    There are times when bash/ash/dash... are all that is available or can be made available

    Because you're running Busybox. Which means it's my fault :-)

    The evolutionary successor of busybox, which I've been thinking about for a while, will not use the shell language. We can raise the bar significantly.

  7. Re:Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 3, Interesting

    I like Larry and the rest of the crew, but I think we can confidently say that Ruby is an evolution from Perl. It used to be that CPAN was a big advantage, but ruby gems have come along pretty well since then. And there's a lot to be said for the Rails framework, even more in 3.0 .

  8. Re:Use JavaScript not Python. on SEC Proposes Wall Street Transparency Via Python · · Score: 1

    ECMAScript or JavaScript would be a much better language

    That would be a first! Imagine, JavaScript being better than something!

    If you want a constrained language, try Lua. But you'd probably have to add a math package or two.

  9. Stop using the Shell on Adding Some Spice To *nix Shell Scripts · · Score: 4, Interesting

    The shell is a poor clone of 1950's algol. Today, scripting in Ruby or Python yields scripts that can handle errors with advanced facilities like exceptions, and is more maintainable, and can connect to a number of different GUIs or the web.

  10. Re:Hmmm on Open Community vs. Open Code · · Score: 2, Insightful
    Yes. No matter how technically superior Solaris might be in a particular area - and I'm told there are a few - it's not superior enough to surmount the fact that Linux has hundreds of companies who host direct developers and a whole lot of un-hosted individuals. The #1 developer organization for any particular kernel release is often "no affiliation". If we just ignore Solars, Linux will catch up with those few areas. Especially since we can look at their code, as long as we don't directly copy it.

    Solaris was a non-starter, unfortunately, on the day that Sun opened it. A lot of us said so then.

  11. Re:I have a better idea on American Lung Association Pushes For Ban On Electronic Cigarettes · · Score: 1

    Would you buy weed, if it was cut with 600 other things? No. You wouldn't even buy it, if it was cut with one non-weed ingredient.

    While I am glad that you don't see in yourself the symptoms of a tainted weed encounter, there is a well-documented history of adulterant addition and I doubt that most people would be able to tell.

    Back when there were lead radiators in cars, lots of them were used to condense moonshine.

  12. Can't have your cake and eat it on American Lung Association Pushes For Ban On Electronic Cigarettes · · Score: 1

    As someone who has been rather well screwed over by the current medical insurance regime - my family and have been denied insurance because we have had some tests, not that they indicated anything - I'm very interested in health care reform. But if we are ever to get real health care reform working, I'd rather not pay for the medical issues of people who voluntarily maintain their addictions. It strikes me that if you have good socialized medicine and business-operated addictions, the purveyors of addictives are pretty big drains on the system. They'd have to be taxed pretty heavily to balance it out.

  13. Re:Some folks will be REALLY offended on Fine Print Says Game Store Owns Your Soul · · Score: 1

    Uh-huh. If one were to believe various religious writings, you might well conclude that gods have ethics like a 4-year-old's table manners. But the religionist answer is that man is not capable of understanding the moral superiority of a deity. I find that statement pretty offensive.

  14. Some folks will be REALLY offended on Fine Print Says Game Store Owns Your Soul · · Score: 1

    OK, it's a joke. But selling one's soul is a cardinal sin in some significant religions. Want to bet that more than one priest hears this about in the confessional? And some folks will not be amused.

  15. Huh on The Neo-Geo Song · · Score: 1

    I must admit to never having heard of Neo-Geo. My apologies for having a life.

  16. Re:GPL2 terms and patents on Google to Open Source the VP8 Codec · · Score: 1

    There's a certain breed of attorney who is fond of legal theories that have no pratical application. This is something similar. Mozilla has no path to come out with a proprietary version of their browser while keeping their developer community or their grants, even if they were able to assure to themselves that they have all appropriate rights to do so.

  17. GPL2 terms and patents on Google to Open Source the VP8 Codec · · Score: 4, Informative

    The GPL is not the only reason that Firefox would decline to place an encumbered technology in their browser. However, you are incorrect in stating that GPL2 would allow this. Under the terms of GPL2 section 7, the only allowable patent license would be one that licenses all GPL software used by anyone, because the patent license you take may not restrict any of the GPL terms - like modification, and of course you can modify any GPL program into another GPL program.

    7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License.

  18. Re:Be sure to vote with your wallet on Nvidia Drops Support For Its Open Source Driver · · Score: 1

    I really like the guys who opened up their brand new high-end Samsung flat-panel TVs, they're called SammyGO.

    The difference between your computer and your hammer is that you don't get the information that influences your vote through your hammer. That could be important.

  19. Re:Be sure to vote with your wallet on Nvidia Drops Support For Its Open Source Driver · · Score: 1

    They still work on Linux. As long as you can get them in a motherboard slot.

  20. Re:Be sure to vote with your wallet on Nvidia Drops Support For Its Open Source Driver · · Score: 2, Insightful

    Just as I don't open up my TV to 'fix' things

    Saying that on Slashdot is sort of like walking into the wrong party. :-) I do open my TV to fix it, and I would suppose a lot of folks here do.

    Yes, if you figure you can always do what the boxes you buy wish to do for their real owners, you'll be fine, you'll just pay more and you'll be a slave of your tools.

  21. Re:And yet they're still the only cards... on Nvidia Drops Support For Its Open Source Driver · · Score: 1

    My Aspire One suspends and resumes perfectly. There's an Intel GPU in there. I project from it all of the time. NTSC TV out? My hardware doesn't do it. But all of my NTSC monitors are gone, except for one on an inspection microscope.

  22. Re:So buy intel video cards on Nvidia Drops Support For Its Open Source Driver · · Score: 1

    Not interested in Quack. But flightgear works pretty well on the Intel card on my motherboard, with the Open Source driver. Marries two screens side-by-side on the same memory plane, too.

  23. Re:Be sure to vote with your wallet on Nvidia Drops Support For Its Open Source Driver · · Score: 5, Informative

    Let's not forget that nVidia sued, then purchased at a discount, then killed 3Dfx, the first company to create a fully Open Source stack for 3D hardware. You can still find their "Glide" stack, there's a Debian package for it, but the hardware isn't produced any longer.

    Intel and ATI find this a worthwhile market, especially because the technical workstation market is insisting on Linux and supportable (meaning Open Source) full-performance drivers for all hardware. Gamers are a useful market but not the only market that 3D vendors play to these days.

    If you asked me what was the reason for this, I'd guess it was collusion.

  24. Be sure to vote with your wallet on Nvidia Drops Support For Its Open Source Driver · · Score: 4, Insightful

    I've made it a habit to avoid nVidia chips in the laptops (especially - because you can't change cards in a laptop) and other computers that I purchase. This only confirms that decision. I'm not a gamer, but obviously lots of software uses 3D hardware these days.

  25. Re:You must have an different definition of freedo on Nexuiz Founder Licenses It For Non-GPL Use · · Score: 4, Insightful

    You are confusing freedom and sovereignty, as no doubt are others in this discussion. Your sovereignty is reduced if any action is not available to you. Sovereignty is a one-to-many relationship, freedom is maximized to the extent that all persons are free and that persons are not allowed to act as sovereigns over the rest. Thus, law providing fairness, for example the sharing implemented in the GPL, both increases freedom and limits a sovereign.