Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.06 seconds.

  1. Re: Quick java question (imitating python functionality)

    It's largely aesthetic reasons; types for functional interfaces are not explicitly functional, the types are less readable, and the call sites do not look the same (func.call(arg1, arg2) vs...
  2. Re: Quick java question (imitating python functionality)

    You can also use the Callable interface for unary methods, which gives you the benefit of being able to pass it to standard library methods.



    This is almost correct. Closed over primitives are...
  3. Replies
    17
    Views
    1,592

    Re: Writing my own programming language

    So... it's C with some C++-isms on your own VM?
  4. Replies
    3
    Views
    545

    Re: Emacs init file syntax

    Well, if you really want to do much with your init file, you will need to learn a bit of emacs lisp. It's kind of unavoidable.

    Now, as far as the meaning of that line, it's uncertain without...
  5. Re: How do I develop mobile apps using Objective C

    GNUStep can't even run OS X apps properly. I don't imagine an iOS port (if it exists) is anywhere near usable.

    The simple fact is, if you want to develop for OS X or iOS, you need to own a Mac....
  6. Replies
    7
    Views
    943

    Re: What happened to Linsux?

    There was a security breach on the VPS hosting for forums. Some Adobe Reader exploit. ViperChief shut down the site until things could be sorted, and it was decided to wipe the site and restore from...
  7. Replies
    16
    Views
    2,295

    Re: Segmentation fault

    x86 calling conventions are for parameters to be passed on the stack (although in some cases they may be passed in registers). printf takes a variable amount of arguments, and it assumes that the...
  8. Re: Advanced programming exercise: All permutations

    That isn't generating all permutations of the list, but the Cartesian product of the list on itself except for pairs (x, y) where x == y.
  9. Re: sorting a word file based on word length

    There are almost certainly better ways of doing this, but:


    $ cat ~/foo.txt
    abcdef
    abcdefghijklmnopqrstuvwx
    abcde
    abcdefghijklmn
    abcdefghijklmnopqrs
    abcdefghijklm
  10. Re: Can i take input of strings in an array

    There are a lot of good java tutorials and documentation on the web to answer these sorts of questions. For instance, googling "java array sort" got me this, which explains that you can sort an array...
  11. Re: Can i take input of strings in an array

    He is saying that the Collections class tries to do a lot of different things that aren't necessarily related to each other. "Catch-all" is not a technical term, it is just an English term to...
  12. Replies
    3
    Views
    645

    Re: Emacs not coloring java code

    Does syntax highlighting still work for other languages? What about in the shell itself, or other programs run from the same terminal? Might you have disabled ANSI colors on your terminal emulator?...
  13. Re: python script request - reading from *.csv, writing to files

    Feel free to steal it shamelessly. Or link to this thread. Whatever works for you.

    It should work on anything 2.6+. I believe the with statement was added then.
  14. Re: python script request - reading from *.csv, writing to files

    Lucky for you I was sufficiently bored.


    $ cat blah.csv
    bar.bin,0F,313233
    $ cat bar.bin
    abcdefghijklmnopqrstuvwxyz
    $ python foo.py blah.csv
    $ cat bar.bin
    abcdefghijklmno123stuvwxyz
  15. Re: python script request - reading from *.csv, writing to files

    Generally we don't take program requests here, but help people who are trying to write their own. So, today you're going to learn some python.

    Reading in CSVs:...
  16. Replies
    21
    Views
    1,228

    Re: Java programming question. Boolean

    The while loop condition only requires and expression that returns a boolean. There are many ways to have that happen, and not all of them involve an equals/not equals sign. This is a simple case,...
  17. Replies
    50
    Views
    2,560

    Re: Modular programming

    Right, I know that anonymous functions are not synonymous with closures. But Haskell creates a closure (at least theoretically), even if there is nothing to bind. In my mind a closure that captures...
  18. Replies
    50
    Views
    2,560

    Re: Modular programming

    This is a red herring. No one claimed that computers understand programs in a strong-AI sense. Semantics in a Turing machine (and thus programming language) are governed by the state transitions and...
  19. Replies
    50
    Views
    2,560

    Re: Modular programming

    Calling anonymous functions an unimportant implementation detail of a purely functional programming language is missing the point. It is a very important concept from a language design perspective.
    ...
  20. Replies
    50
    Views
    2,560

    Re: Modular programming

    Pervasive currying is not an unimportant implementation detail. It is a fundamental piece of design philosophy for the language. You may not use lambdas explicitly (eg, \x -> x + x), but that is only...
  21. Replies
    50
    Views
    2,560

    Re: Modular programming

    Haskell is constantly using closures. Every time you make a function call you are using closures. Using Haskell and not understanding that you're using closures everywhere is really missing the point...
  22. Replies
    22
    Views
    2,842

    Re: Programming for solving math problems

    4chan is that way ------>
  23. Replies
    22
    Views
    2,842

    Re: Programming for solving math problems

    Does your problem reduce to finding a hamiltonian path? If so, be careful. Hamiltonian-path is an NP-complete problem, so any solution you come up with is bound to be really (infeasibly) slow for...
  24. Replies
    16
    Views
    1,027

    Re: How can I recognize an expression ?

    For simple expressions, and with guidance from Wikipedia, I think it's certainly doable by someone with a bit of programming experience. Of course, a more complete calculator with complex expressions...
  25. Replies
    16
    Views
    1,027

    Re: How can I recognize an expression ?

    You might find this helpful. A common way of evaluating infix expressions (like a calculator would use) is to convert it to what's called Reverse Polish Notation (aka postfix) with Dijkstra's...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4