Search:

Type: Posts; User: Hodor

Page 1 of 20 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Slow forum?

    by Hodor
    Replies
    11
    Views
    480

    I've found the last few days fine. For the...

    I've found the last few days fine. For the previous couple of weeks the forum was reporting at least 8000 simultaneous users and up to 10000. Now it's back to a reasonable 300-500
  2. Replies
    3
    Views
    88

    I should also add that if you can't already do...

    I should also add that if you can't already do it, teach yourself to convert hexadecimal to binary in your head (and vice versa); this is easy because each hex digit (0-F) is only 4 binary digits and...
  3. Replies
    3
    Views
    88

    You can start here: Bit Twiddling Hacks...

    You can start here: Bit Twiddling Hacks

    Note that not everything there is portable or even necessarily faster than what a modern C compiler on a modern CPU would produce, but, hey, gotta start...
  4. Why does the first comment of your program say ...

    Why does the first comment of your program say



    //Draw a single line of fiver uppercase Xs using two kinds of count-controlled loops


    and then proceed to use '+', '-', '|' and ' '...
  5. I'm pretty sure I agree with Salem Edit: gcc...

    I'm pretty sure I agree with Salem

    Edit: gcc even warns you about it :/



    #include <stdio.h>

    int main(void)
    {
  6. Replies
    7
    Views
    178

    Oh those globals. Yeah, they seemed reasonably...

    Oh those globals. Yeah, they seemed reasonably reasonable (i.e. justifiable) when I saw them
  7. Replies
    7
    Views
    178

    Well, it fixes (somewhat) the segfault for me....

    Well, it fixes (somewhat) the segfault for me. I'm 99.9% sure the problem is in that function in any case. Other parts of the code probably need to be modified to accommodate. Maybe get ride of the...
  8. Thread: Quick speed test

    by Hodor
    Replies
    8
    Views
    366

    Also, I meant to mention the other day that the...

    Also, I meant to mention the other day that the "speed" reported by your program, for each of the functions, depends on the order they are tested. If you test method0 first and then method1, the...
  9. Replies
    7
    Views
    178

    I suspect that the function size_t utfcpy(...

    I suspect that the function size_t utfcpy( char8_t *D, size_t DLEN, char8_t const *S, size_t SLEN ) is not nul terminating the string. After modifying that function to ensure the copy is nul...
  10. Thread: Quick speed test

    by Hodor
    Replies
    8
    Views
    366

    Which bug?

    Which bug?
  11. Replies
    7
    Views
    188

    It's a formula to calculate a variation of a Rata...

    It's a formula to calculate a variation of a Rata Die number but I wouldn't trust it because I'm not sure it's accounting for leap days (1461 is the number of days in 4 years one of which might (is...
  12. Replies
    12
    Views
    180

    It's so slow it's stupid. The reason it's slow is...

    It's so slow it's stupid. The reason it's slow is because of DDoS (apparently) and the webmaster mustn't have shell access to add firewall rules to drop the offending traffic. Either that or the...
  13. Replies
    12
    Views
    180

    Errr... d[2] has two elements: d[0] and d[1]...

    Errr... d[2] has two elements: d[0] and d[1] (d[2] would be outside of the array)

    Edit: just saw jimblumberg has already answered. The speed of the forum is messing with my mind I could have sworn...
  14. Replies
    7
    Views
    188

    You're probably entering the date as mm dd yyyy,...

    You're probably entering the date as mm dd yyyy, but the scanf format ("%i/%i/%i") wants it as mm/dd/yyyy. You can check the return value of scanf() to see how many numbers it actually scanned.
  15. Thread: Quick speed test

    by Hodor
    Replies
    8
    Views
    366

    Umm, the whole point is kind of moot anyway...

    Umm, the whole point is kind of moot anyway because



    while ( unit_tests[i] ) { // line 260


    Because that loop is never executed (because by this point unit_tests[i] is already NULL), so the...
  16. Thread: Quick speed test

    by Hodor
    Replies
    8
    Views
    366

    Note that 'stop' is not initialised at this...

    Note that 'stop' is not initialised at this point:



    while ( unit_tests[i] ) {
    ret = test_method( unit_tests[i], 0 );
    if ( ret != EXIT_SUCCESS ) {
    FAIL(...
  17. Thread: Quick speed test

    by Hodor
    Replies
    8
    Views
    366

    If you fix the printf warnings the output is more...

    If you fix the printf warnings the output is more like:



    7 = 7
    999 = 999
    0b101 = 5
    0x5f5e0ff = 99999999
    9stop = 9
    Method 0 = 18446744073705503012, Method 1 = 18446713453979999608
  18. Replies
    14
    Views
    325

    Are you just copy/pasting from random sources? ...

    Are you just copy/pasting from random sources?

    Edit: as an aside, you may want to check your naming of the sorting algorithm you're using (well, algorithms, because you seem to be implementing...
  19. Replies
    46
    Views
    1,295

    Sequel is the inventively titled "The Book of...

    Sequel is the inventively titled "The Book of Unwritten Tales 2". I regard the prequel (The Critter Chronicles [TCC]) as a sequel as well and just didn't find the humour in that one, especially, as...
  20. Replies
    46
    Views
    1,295

    I like your avatar, by the way. I loved The Book...

    I like your avatar, by the way. I loved The Book of Unwritten Tales (very funny), but found the sequels less funny

    Edit: My avatar, on the other hand, is boring. It's not even moving and just an...
  21. Replies
    46
    Views
    1,295

    next.c (lines 175 and 210) seem to be a typo ...

    next.c (lines 175 and 210) seem to be a typo



    if ( !file || !c ) {
    if ( c && size) (void*)memset( c, 0, size ); /* line 175 */


    memset() already returns a void* so the cast is......
  22. Replies
    46
    Views
    1,295

    Ok, to try and work out why it might be...

    Ok, to try and work out why it might be segfaulting I reviewed the code. I still can't get it to segfault and there are some parts of the code that I don't yet understand. Since I reviewed it I may...
  23. Replies
    46
    Views
    1,295

    Under what circumstances does it segfault? Why is...

    Under what circumstances does it segfault? Why is the char.run deleting the build files, that's annoying (made my own makefile instead)

    Also, char.c line 328 (the = now[j] line)



    if...
  24. Replies
    23
    Views
    359

    Well, it's not a new problem. E.g. it is...

    Well, it's not a new problem. E.g. it is discussed by: Kreveld & Berg (1989) (https://pure.tue.nl/ws/files/4288742/369233.pdf); Bereg, Mutsanas & Wolff (2009) and in books dealing with computational...
  25. Replies
    5
    Views
    123

    Are you able to show the implementation of...

    Are you able to show the implementation of substr() where you achieved it using "a while loop and a nested if statement"?
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4