Search:

Type: Posts; User: Alasdair; Keyword(s):

Page 1 of 6 1 2 3 4

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    2,437

    Re: Java to Haskell

    Don't start by trying to write the main function. Often it's much easier to start by working bottom-up rather than top-down. A good place to begin would be by writing a removeDuplicates function.

    ...
  2. Re: Got 10 months time for learning new languages - Recommendations?

    Agreed, It would defiantly be a softer start. However I don't think learning Haskell is as hard as some people make it out to be. I was able to teach myself Haskell during the first year of my...
  3. Re: Got 10 months time for learning new languages - Recommendations?

    I'd recommend learning a functional language. Specifically Haskell. I've noticed a few others in this thread have recommended Lisp over Haskell, but I'd be inclined to disagree. Having written a...
  4. Re: Is there a Linux application that can compare two binary files?

    Have you tried using vbindiff? It's in the Ubuntu repositories and works very well.

    Edit: Looks like it's already been mentioned, I should really read the whole thread more throughly before...
  5. Re: what language looks the 1337357 (leetest) to code in?

    Surely the l33t programming language is the l33test? :P
  6. Replies
    70
    Views
    3,124

    Poll: Re: What programming languages do you use ?

    I am currently use Java at university for my programming courses and Haskell for anything non-university related (although I've been told I will get to use Haskell in my second year). I used to use...
  7. Re: Is it reasonable to write games in C these days?

    The best language for writing games in is the one that you know, and enjoy using. No lone developer will ever be able to rival large game development studios in terms of the games they can produce....
  8. Replies
    2
    Views
    1,770

    Re: cabal (Haskell package manager) missing?

    Cabal (the library) comes with GHC, but if you are looking for the command line cabal-install utility you'll probably need to get it from hackage and build it manually.
    ...
  9. Replies
    5
    Views
    448

    Re: Haskell types making me mad

    fromInteger won't work because you are using the Int type rather than the Integer type. Integer supports arbitrary precision, while Int does not. The function you want to use is the slightly more...
  10. Replies
    2
    Views
    840

    Re: a very wierd stack overflow!! (Haskell)

    It's an operator precedence issue, you need brackets around the n-1 arguments to the sumAmice function calls, like so:

    sumAmice :: Int -> Int
    sumAmice n
    | n == 1 = 0
    | hasAmice n = n +...
  11. Replies
    12
    Views
    691

    Re: Type flamewars: education

    I have linked to that article several times in the past, but I think it mostly just got ignored... :)
  12. Replies
    88
    Views
    3,586

    Re: Strong Typing vs. Strong Testing

    This is your flawed assumption, it would be true if static language = Java, but that's not the case. I find Haskell to be a much more expressive and concise language than Python. The idea that static...
  13. Replies
    88
    Views
    3,586

    Re: Strong Typing vs. Strong Testing

    Yes, we appear to be debating static typing vs strong testing (why not have both?). I know the title says strong typing, but that's a a pretty useless and ill-defined term that can mean anything from...
  14. Replies
    88
    Views
    3,586

    Re: Strong Typing vs. Strong Testing

    Haskell's type system is considerably more powerful than Java's. Many things that would be runtime errors in Java can be picked up at compile time in Haskell. Furthermore pure Haskell code can be...
  15. Poll: Re: What will happen if Ubuntu replaces all Python code with C/C++ code?

    This says a lot more about the quality of the C++ language than the quality of the average python programmer imho.

    Personally I have have found that mature and well tested programs written in...
  16. Poll: Re: Tiling WM Users: What do you do with your computer?

    I mostly use my computer for coding/internet stuff as well writing reports and assignments for university (using LaTeX/emacs). I also use the terminal quite a lot, so for me tiling is really useful....
  17. Replies
    46
    Views
    1,936

    Re: What is "billion"?

    I'm from the UK and this whole billion = 10^12 thing is completely new to me, I never realized people here thought it was anything other than 10^9
  18. Replies
    10
    Views
    658

    Re: Credit Crunch - Is it good for linux?

    Most people will just use the operating system that comes pre-installed on their PC's. Even if people spend less on computers they will probably still be getting windows on them, not linux.


    I...
  19. Replies
    102
    Views
    4,440

    Poll: Re: Arch Linux User Retention Rate

    I used Arch for a while, but it was too unstable. I got kernel panics at least once a day. I think it was caused by the hwdetect script choosing really buggy drivers.

    If it was more stable I would...
  20. Replies
    2
    Views
    236

    Re: Stack Overflow, the web site

    It should really be called .NET overflow.
  21. Replies
    20
    Views
    814

    Re: Haskell syntax help?

    Here is a decent tutorial that covers writing a simple interpreter for a lisp like language. It doesn't assume a very high knowledge of Haskell - I found it easy enough to follow, plus the author...
  22. Replies
    21
    Views
    972

    Re: Recommendations on next language

    With a few months C++ experience both Python or Ruby would seem like good choices for a second language. While you say you want a non OO language there is more to OO than C++! Python or Ruby would...
  23. Replies
    153
    Views
    21,244

    Re: Why aren't we programming in Objective C ?

    My avatar is the Haskell logo, hence the lambda - but I'm pretty sure the others are using it as a gay pride symbol. ;)
  24. Replies
    143
    Views
    18,509

    Re: [Beginner] Programming Challenge: 5

    Thanks - GHC didn't complain so I thought it was ok, I'll remember to make sure main has type IO () in future. The requirement to return the number of guesses was added after I wrote it so that's why...
  25. Replies
    7
    Views
    10,407

    Re: [Python] String to Math Equation

    Assuming you have a function that can evaluate a mathematical expression without brackets, all you need to do when you encounter them is to recursively call your expression parser function on the...
Results 1 to 25 of 128
Page 1 of 6 1 2 3 4