Search:

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

Page 1 of 10 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    1
    Views
    508

    Re: An issue about printf() function

    fgets also catches the newline character from the user hitting enter: http://stackoverflow.com/questions/2693776/removing-trailing-newline-character-from-fgets-input
  2. Replies
    1
    Views
    407

    Re: do while loop problem

    If the scan fails, I'm pretty sure scanf won't change the value of "choice". Try setting "choice" to 0 or something before the scan otherwise it'll retain the value from a previous scan.
  3. Replies
    4
    Views
    564

    Re: Learning new languages, Go and Rust

    I've been using Go for some of my hobby projects recently and I'm pleased. It's a little weird if you're used to object oriented languages as it wants to use interfaces to define a sort of duck type...
  4. Replies
    26
    Views
    1,483

    Re: Language design

    R and Octave aren't typically used for long-running applications constantly polling data. They're most often used to explore a given dataset to find patterns or create charts / visuals.

    R is...
  5. Replies
    26
    Views
    1,483

    Re: Language design

    If all you want to do is data analysis, statistics, and plotting, then R or Octave/Matlab are better equipped. Ruby has libraries to do all of those things, but it will be clunkier than R or Octave...
  6. Replies
    26
    Views
    1,483

    Re: Language design

    Yes, linguistically, if you've already tackled functional programming in Haskell, learning the magic of macros and the fusion of code and data would still be useful. The notion that an addition is...
  7. Replies
    26
    Views
    1,483

    Re: Language design

    CptPicard, you surely have a way with words in these issues. I agree that this is a central issue brought up in this forum, but expressed in a more rational way than has been usual for the past few...
  8. Replies
    26
    Views
    1,483

    Re: Language design

    I don't know about "best", I feel that's far-fetched. Higher level data abstractions lead to a distance from the direct communication with the machine (and theoretically less efficient performance)....
  9. Replies
    3
    Views
    2,339

    Re: OpenGL: OBJ Loader (with GIT repo)

    I'd use something like strtok to split it into tokens and work with it from there instead of using an overly specific ssanf.
  10. Replies
    17
    Views
    9,518

    [SOLVED] Re: Python large numbers

    I agree. It's "import math" not "import floatmath" (which is more like what it really is). Though, I still feel like integer overflow should result in bignum :) But, I also feel like floating point...
  11. Replies
    7
    Views
    528

    Re: Randomizing Your Application (with RNGs)

    You generate a random number, with a sufficient RNG, and apply that to your problem. If you need to randomly sort a list, you'd use some random shuffle algorithm (Fisher-Yates, for instance) which...
  12. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    Using Python as an example (of a language I use most frequently, that does convert overflowed integers to bignum) it doesn't ever just cast your ints to floats or anything crazy like that. And if a...
  13. Thread: learning PHP

    by Wybiral
    Replies
    9
    Views
    750

    Re: learning PHP

    No, not to learn PHP. To make dynamic (non-static) webpages, then yes. But not just to learn PHP.
  14. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    The point I've been trying to make here is that source code is intended for humans to read and write. It is intended for us to be able to efficiently eye-parse and mentally execute to understand...
  15. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    I will repeat this, because it seems like the point hasn't quite gotten across. For people writing kernels, communication protocols, drivers, compiler code generators, etc, the platform specific...
  16. Replies
    23
    Views
    1,676

    Re: Language that can compile other programs

    Indeed :)

    But I've implementing algorithms like this (evolving Lisp and Forth code to produce working functions) and one solution is to cap any function execution to a certain amount of time. If...
  17. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    Definitely. It's all about the problem at hand. If the problem at hand is low level, like when you're writing a device driver, a compiler's code generator for some processor, or are forced to squeeze...
  18. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    These are just examples, but the the ease at which you can quickly solve these problems using bignums should be taken as a valid point in this argument :

    def fibonacci(n):
    a, b = 0, 1
    for i...
  19. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    Yes, it should be taken for granted. When you code in a high-level language, you want that kind of thing to be exactly that, transparent. Just like you want the handling of integer implementation to...
  20. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    No, not universally acceptable, but given the situation of an overflow error, instead of crashing, they allow your code to continue running correctly. This is very useful for code running out in the...
  21. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    The wise programmer will need to know, in the event that a bottleneck is created by it. But the wise programmer should not be prematurely optimizing her code down to machine-specific implementations....
  22. Replies
    75
    Views
    3,234

    Re: What use are bignums ?

    In Python at-least (and probably other high-level languages that use them) they don't just give you a bignum. It converts to bignum when your register-sized integer would overflow. If you do for some...
  23. Replies
    7
    Views
    960

    Re: python speed up

    Without investigating the situation too much (meaning there may be more you can do here to speed it up some), but one suggestion is to avoid doing some of your computation in the inner loop. Right...
  24. Thread: Assembly help

    by Wybiral
    Replies
    5
    Views
    469

    Re: Assembly help

    Ha, I did get them mixed up. Mind you, I haven't touched an assembler in years :) The only time I ever touched GAS at all was while working with GCC output. But I did do my fair share of NASM/FASM...
  25. Thread: Assembly help

    by Wybiral
    Replies
    5
    Views
    469

    Re: Assembly help

    In GAS assembly? It's address arithmetic.
    If you've ever used NASM, think: [offset + eax * 2]

    Here: http://en.wikibooks.org/wiki/X86_Assembly/GAS_Syntax#Prefixes (read the "Address operand...
Results 1 to 25 of 250
Page 1 of 10 1 2 3 4