Slashdot Mirror


User: bob.appleyard

bob.appleyard's activity in the archive.

Stories
0
Comments
309
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 309

  1. Had this before on gNewSense Distro Frees Ubuntu · · Score: 1

    Seriously, if GnuSense didn't get any takers last month, pimping it again won't make much difference.

  2. Re:It's Crüe, not Crue on Motley Crue Single Does Better On Rock Band · · Score: 3, Insightful

    English is a language that uses the Latin alphabet.

  3. Re:Lambda the Ultimate on What Makes a Programming Language Successful? · · Score: 1

    Ah, thanks. It would help if that was actually listed as an allowed tag, but hey.

  4. Re:Off the top of my head? on What Makes a Programming Language Successful? · · Score: 1

    Yeah, sounds great. Almost as great as the Office Assistant. You've got to be careful not to let the marketing droids have a say in it, though, otherwise you'll get Clippy...

  5. Re:Lambda the Ultimate on What Makes a Programming Language Successful? · · Score: 1

    Oh yeah, and your second example doesn't meet the requirement.

  6. Re:WHAT! on FCC Pitches Free, Bowdlerized Wireless Internet Access · · Score: 1

    Is Quake obscene or not?

  7. Re:Lambda the Ultimate on What Makes a Programming Language Successful? · · Score: 1

    You're right in that simple examples don't do it justice. And yeah, Java inner classes have closure, which is nice, although it feels clumsy to use them. That's at least one thing going for Java, I suppose.

    What I really want to know is how you got that indentation.

  8. Lambda the Ultimate on What Makes a Programming Language Successful? · · Score: 1

    I assume LAMBDA is some dynamic definition of the named parameter

    No, lambda defines an anonymous function with closure. It's simply amazing, and the listing above does it no justice at all, mostly due to the broken way that Python handles lambdas. I'd tell you to check out lambda calculus, but it comes across as hard maths (because, to a degree, it is), but really, it's fantastically simple.

    Say you wanted to iterate over a list of numbers, squaring the result, and then adding up the total. This could be done with

    (reduce +
    --------(map (lambda (item)
    ---------------(* item item))
    -------------list))

    Ignore the dashes, I don't know how to indent inside one of those bastards. What this does is take list and maps the lambda to each item (which squares them), returning a list containing all the squares to reduce, which then applies the + operator to all of the items in that list, satisfying our requirement. Three very simple lines in Lisp, a shitload of lines in C.

    Do demonstrate closure, let's take map, and make a function that takes a list and adds a number to every item, and then returns the resulting list.

    (define add1
    --(lambda (list increment)
    ----(map (lambda (item)
    -----------(+ item increment))))

    See how we just created a function on the fly, that refers to variables defined locally, but outside the lambda? We can return a lambda from a function that refers to local bindings inside that function as well, if we want. Hell, we can do what we like, lambdas are just objects like anything else. This is closure.

    Those two properties, together, are incredibly powerful. It's fantastically easy to make abstractions that are simply impossible in a language without them, unless you're prepared to put up with lots of boilerplate and obfuscation.

    Honestly, before I met this fellow, I was wedded to OOP. Now I'm not so sure. I can do OOP with lambdas, but the other way round? Messy, very messy.

  9. Re:Off the top of my head? on What Makes a Programming Language Successful? · · Score: 3, Funny

    You can't do lambda calculus in Python. I tried, it gave me idiotic syntax errors. Something about the lambda keyword being a crippled piece of shit.

  10. Re:If this flops... on Dave Gibbons On the Forthcoming Watchmen Movie · · Score: 1

    Quis custodiet ipsos custodes?

  11. Re:A crack-high moment. on Bill Gates: Windows 95 Was 'A High Point' · · Score: 1

    The plough.

    That's what started it all.

  12. Re:physical access == game over on Gaining System-Level Access To Vista · · Score: 1

    Oh, Sticky Keys. The phrase fills me with dread.

    Many Windows features have traumatised me, but none have affected me quite so much as Sticky Keys. Even now, years after I last used XP for any serious amount of time, I'm still mortally afraid of the shift key. I sort of tiptoe daintily around it; my rational self is saying "you're on Linux, it's fine," but underneath, there's the fear, the pure animal fear echoing through me, "beware the Sticky Keys!!!"

  13. Re:I have to disagree there. on Expert Dissects Estonian Cyber-War · · Score: 1

    Yes, I know who the Luddites were originally. Who are the Luddites now, though?

  14. Re:Yes, yes, and... on Expert Dissects Estonian Cyber-War · · Score: 4, Insightful

    In the US, it was all about "mercury based preservatives" causing untold woe and suffering.

    In the UK, it was all "oh it'll give you autism."

    Both claims were basically specious, and they were both cut from the same cloth -- luddism. There is, and has been since pretty much their inception, a staunch group of idiots that want to do away with vaccines, God only knows why.

    I'm beyond cynical when it comes to the behaviour of pharmaceutical companies ("social anxiety," anyone?), but you're basically invoking a conspiracy theory in an attempt to discredit epidemiology. If you're going to attack a fundamentally sound discipline, you're going to have to do better than misunderstandings of chemistry and "oh, that nasty Big Pharma wants to kill you" rhetoric.

  15. Re:Britain 1, USA 0 on UK Teen Cited For Calling Scientology a "Cult" · · Score: 1

    Yes, because the bar has been set so low, on paper these acts could be used to effect total speech gridlock. Find the words of your boss telling you to work insulting? Bang the fucker up. Disturbed by that billboard you see on your way to work every day? Take 'em down. And so on and so forth, etc etc.

    Nobody seems to have really grokked the implications of these laws yet (well, apart from arms companies and what have you), so they haven't really been tested. Who knows how the courts will handle something like that. Would be interesting.

  16. Re:Real medical issue on New Urinal-Based Video Game Makes a Splash · · Score: 4, Insightful

    You look down after taking a leak and notice "oh my, I just pissed all over my right pant leg".

    I think the main problem here is not looking where you're pissing!

  17. Re:Britain 1, USA 0 on UK Teen Cited For Calling Scientology a "Cult" · · Score: 2, Interesting

    It's odd that they're still using the Public Order Act 1986, when the Protection From Harassment Act 1997 or Serious Organised Crime and Policing Act 2005 pretty much give the authorities carte blanche to silence protest. One would have thought the police would have realised the amount of power they actually have now.

    The Protection from Harassment Act allows the Crown to prosecute anyone causing a person "alarm or distress" if this involves "conduct on at least two occasions." Conduct, it tells us, "includes speech"(5). Under this law, in other words, it is not necessary to demonstrate "threatening, abusive or insulting words or behaviour" to secure a prosecution. ... the first three people prosecuted were all peaceful protesters. It is now used routinely against non-violent animal rights protesters and people demonstrating peacefully outside military bases and at arms fairs.

    ...

    The Serious Organised Crime and Police Act would have been even more useful. Buried in the middle of this enormous piece of legislation, and missed by every MP who debated the bill, is a section on "harassment intended to deter lawful activities". Under this act, the definition of a "course of conduct" is broadened to include causing alarm or distress to "two or more persons"(6). In other words, Green would only have had to approach two revellers once to have fallen under suspicion of breaching the act. It appears to have been deliberately designed to criminalise protest. "Harassment" now involves seeking "to persuade any person ... not to do something that he is entitled or required to do, or to do something that he is not under any obligation to do."(7) Again, there is no defence for peaceful protest.

    Some nutty environmentalist.

  18. Re:French on French Judge Orders Refund For Pre-Installed XP · · Score: 1

    100 years war?

  19. Re:Who really benefits? on Dag Wieers Scoffs at Coordinated Linux Release Proposal · · Score: 1

    * Whooooosh *

  20. Re:password problem reminds me of Google on Games With A Purpose Help With Tasks That Tax Computers · · Score: 1

    I think the lesson we can draw from this is that it's fantastically easy to make bad user interfaces. The truly horrific thing in this case is that there is no support email that I can find, you have to do support requests on their forum, which is broken, too.

    It's a shame, really, because I was rather enjoying it.

  21. Re:Loose translation: on $100 Laptop Platform Moves On · · Score: 1

    What, Suger, the 11th Century monk who wrote about Louis VI and VII? How is that relevant?

    Don't worry, I was already leaving...

  22. The plot thickens on Games With A Purpose Help With Tasks That Tax Computers · · Score: 1

    OK, so the password works for the site, but if I try to post my problem (above), I get another "access denied" page.

    The "beta" tag, in this case, really is there for a reason.

  23. FoldIt on Games With A Purpose Help With Tasks That Tax Computers · · Score: 1

    OK, so I gave FoldIt a go (it's at fold.it). It's based on the idea of using lots of people to do protein folding rather than automating it or giving the task to phDs. The main gameplay elements are two buttons, "shake" and "wiggle." You basically just move the strands around randomly, then push those two buttons until you hit an acceptable score. Maybe there's more depth to it, but that's about all I could surmise.

    Still pretty fun though, and it runs in Wine.

    My one piece of advice: make sure the password for the site account doesn't have any funny characters in it. It will say "yeah, sure, that's a fine password" when you register, but if you ever try to use it it will tell you it's wrong, and the password recovery process is utterly broken. You are given a single-use login token, which claims that it's directing you to a page where you can set up a new password, but all you'll ever be taken to is an "access denied" page. So standard web interface stuff, I suppose. *sigh*

  24. Re:Sounds like Open Source to me on Microsoft 'Shared Source' Attempts to Hijack FOSS · · Score: 4, Informative
  25. Re:Everything to do with Linux on Microsoft Decides To Take On Linux On Low-Cost PCs · · Score: 1

    You said it. Without Linux, the ULPC market wouldn't exist in the first place. The freedom provided by Linux is what allowed that particular innovation to happen.

    I'm not so sure myself. Could it be that that chips are getting really cheap, as per Moore's Law? So cheap that a piece of software on it significantly affects the price? That there was another option did give these hardware chaps another option, so you're right in that respect.

    Was their reason for considering such an option driven by other factors, though? Potentially hardware? I'm unable to say myself.