Tweetovi
- Tweetovi, trenutna stranica.
- Tweetovi i odgovori
- Medijski sadržaj
Blokirali ste korisnika/cu @pskocik
Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @pskocik
-
Petr Skocik proslijedio/la je Tweet
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?
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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:https://gcc.godbolt.org/z/rkpvAc
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Anyone knows how to refer to variables with $ in their names in gdb?https://stackoverflow.com/questions/60025455/gdb-and-dollars-in-identifiers …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
This morning I'm admiring clang's __pure__-ity, but not gcc's. :( https://gcc.godbolt.org/z/N79MCx https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93540 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
Joel explained twitter, 13 years ago.https://www.joelonsoftware.com/2007/07/20/learning-from-dave-winer/ …
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
I find this dead-store eliminating optimization on globals by GCC to be really handy in the abstractions I'm playing with: https://gcc.godbolt.org/z/UL79D3 Hopefully, clang catches up soon https://bugs.llvm.org/show_bug.cgi?id=44676 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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: https://gcc.godbolt.org/z/vUSt_u . C++ assumes no aliasing. I like the C++ stance much better.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Looks like
#gcc could be finally joining#clang and#tinycc as a compiler that supports $ in identifiers properly: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91298 …. Thanks, Jakub Jelinek!Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
If only
#gcc and#clang drop a very minor parsing restriction on stmt-exprs in their#C parser (which#tinycc no longer has), we could have generic integral macros that evaluate to integer constants w/ constant params and don't double-evaluate otherwise https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93239 …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je TweetHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Petr Skocik proslijedio/la je Tweet
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
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.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
Should
#GLIBC bid farewell to libpthread? Aloha Oe! https://sourceware.org/ml/libc-alpha/2019-10/msg00080.html …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
Document your code for others as you would wish others document their code for you
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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. https://yarchive.net/comp/linux/semaphores.html …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Good standards solidify tried and true practices in the industry, bad ones invent. https://yarchive.net/comp/linux/light_weight_processes.html …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Petr Skocik proslijedio/la je Tweet
The floating point naming explosionhttps://gustedt.wordpress.com/2019/09/27/the-floating-point-naming-explosion/ …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
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 nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoniš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.