Petr Skocik

@pskocik

Interested in high performance software, systems, languages, and tools for the mind in general.

Vrijeme pridruživanja: kolovoz 2011.

Tweetovi

Blokirali ste korisnika/cu @pskocik

Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @pskocik

  1. proslijedio/la je Tweet
    4. velj

    If I want to complie Linux binaries against musl libc, preferably with clang, and don't want to hack together my own clang, what is my cleanest / simplest route? Use a distro like Alpine Linux? Something else?

    Poništi
  2. 3. velj

    1? ptr : (void*)1 in C is a neat way to gently convert a pointer to a void pointer while preserving CV qualifiers on the target:

    Poništi
  3. 2. velj

    Anyone knows how to refer to variables with $ in their names in gdb?

    Poništi
  4. 2. velj

    This morning I'm admiring clang's __pure__-ity, but not gcc's. :(

    Poništi
  5. proslijedio/la je Tweet
    28. sij
    Prikaži ovu nit
    Poništi
  6. 27. sij

    I find this dead-store eliminating optimization on globals by GCC to be really handy in the abstractions I'm playing with: Hopefully, clang catches up soon

    Poništi
  7. 27. sij

    C enums are compatible, and therefore may alias, w/ an unspecified integer type. Gcc takes this to mean int, clang assumes possible aliasing w/ any other integer type: . C++ assumes no aliasing. I like the C++ stance much better.

    Poništi
  8. 17. sij

    Looks like could be finally joining and as a compiler that supports $ in identifiers properly: . Thanks, Jakub Jelinek!

    Poništi
  9. 15. sij

    If only and drop a very minor parsing restriction on stmt-exprs in their parser (which no longer has), we could have generic integral macros that evaluate to integer constants w/ constant params and don't double-evaluate otherwise

    Poništi
  10. proslijedio/la je Tweet
    14. sij

    This code needs to be shared

    Poništi
  11. proslijedio/la je Tweet
    1. pro 2019.

    Lazyweb, what's a good tool for making diagrams of memory layouts? ASCII art is a decent last resort, but there's gotta be some decent high-level way to do pretty diagrams.

    Prikaži ovu nit
    Poništi
  12. proslijedio/la je Tweet
    11. stu 2019.

    can anyone give a compiler explorer link to an example showing a C or C++ compiler eliding a legitimate store (via char *, memset(), etc.) to one or more padding bytes of a struct? please don't send examples where the compiler can see that the struct is dead

    Prikaži ovu nit
    Poništi
  13. proslijedio/la je Tweet
    31. lis 2019.

    Quick: how big is the resulting out.dat? cat /dev/zero | dd if=/dev/stdin bs=12345678 count=1 of=out.dat

    Prikaži ovu nit
    Poništi
  14. proslijedio/la je Tweet
    30. lis 2019.

    Friendly challenge for Go programmers: Provide or link to a small (50-200 ish lines) idiomatic Go program demonstrating concurrency. (Elegant use of goroutines, channels, etc) I'll provide the equivalent Zig program using async/await and std.event.Loop for comparison.

    Poništi
  15. proslijedio/la je Tweet
    8. lis 2019.

    Should bid farewell to libpthread? Aloha Oe!

    Poništi
  16. proslijedio/la je Tweet
    2. lis 2019.
    Odgovor korisniku/ci

    Document your code for others as you would wish others document their code for you

    Poništi
  17. 1. lis 2019.

    P() and V() for semaphores is really easy to remember because it refers to post() and wait() except in reverse order. According to Torvalds, Dijkstra was on heavy drugs when he came up with it.

    Poništi
  18. 1. lis 2019.

    Good standards solidify tried and true practices in the industry, bad ones invent.

    Poništi
  19. proslijedio/la je Tweet
    27. ruj 2019.
    Poništi
  20. 18. ruj 2019.

    I'm somewhat disappointed they didn't standardized __typeof instead. It's been proposed and in wide use since time immemorial now and it would have solved the same problem along with a ton of others and without the shift-reduce conflict (see my last comment in the linked SO site)

    Prikaži ovu nit
    Poništi

Čini se da učitavanje traje već neko vrijeme.

Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.

    Možda bi vam se svidjelo i ovo:

    ·