« first day (4021 days earlier)      last day (913 days later) » 

2:31 AM
@nwp Gravity depends on mass, how do you measure the mass of an extraterrestrial object billions and billions of miles away?
 
3:11 AM
@TelKitty There are number of ways. One is a particular class of variable stars, which have a well-known relationship between the frequency of variation and the mass. So you can measure the frequency of variation, and from that compute the mass.
 
 
1 hour later…
4:16 AM
@JerryCoffin Is reinterpret cast from a pointer type still allowed to do wacky stuff for each type: stackoverflow.com/a/52021867/314290 ?
char * and int * have different representations on Cray T90, so: :-/
 
 
1 hour later…
5:29 AM
@JerryCoffin And the probability of that not being highly theoretical?
 
@Mikhail A pointer converted to an integer of sufficient size (if any such exists on the implementation) and back to the same pointer type will have its original value; mappings between pointers and integers are otherwise implementation-defined.
@TelKitty I'm not sure what you're asking. They certainly use it on a regular basis.
 
@JerryCoffin Where?
And how is frequency of variation accurately measured?
 
@TelKitty Mostly inside the milky way--outside the milky way, you mostly can't see individual stars. You can see a few giants in a few of the nearest galaxies like M31, and supernovas much farther way, but observation of individual stars is mostly inside our galaxy.
@TelKitty Basically, you point a telescope at it night after night and create a plot of its brightness each time. hyperphysics.phy-astr.gsu.edu/hbase/Astro/cepheid.html
 
 
2 hours later…
7:21 AM
@JerryCoffin but to a different pointer type? I mean argument is that if you view something as a char * or an int* they will be different addresses. At least on the Cray T90 :-/
 
Monrning
 
fuck its my bed time
the french are up
I learned about wine32on64
which somehow runs 32bit windows programs on MacOS Intel despite Apple supposedly preventing you from running x86 code
also the dude that wrote it died recently of Kidney cancer
11
A: How did Wine64 manage to handle macOS?

Ken ThomasesThe primary obstacle is a conflict over the GS segment base address (GS.base) maintained by the CPU under the control of the OS. On 64-bit Windows, GS.base is used to hold the address of the Thread Environment Block (TEB) structure for each thread. Windows apps expect to access the TEB using %gs...

 
@Mikhail honhonhon
 
 
4 hours later…
 
1 hour later…
I guess it is getting a bit ridiculus running traces across the mainboard to carry the DDR5 bandwidth across, that signal is clocked at between 4.8GHz - 8.4GHz
on the other hand concentrating even more stuff to cool into the SoC package is not helping cooling
 
it won't but the per cycle efficiency will be insane with that much memory bandwidth. People don't realize that DDR is still only 64bits wide, so 128bits per clock cycle
that's... just not really that much
whereas the HBM2 is 1024bits wide, and they have it allegedly running dual channel
so if they widen the pipe on sapphire rapids to handle that width, increase the decoder depth to match. They could potentially have an absolute beast on their hands
 
the M1 Max thing has like quad channel LPDDR5 I think it was, so 256-bit wide bus
oh, nvm looks like 512-bit wide
 
12:46 PM
512 per clock yeah
256 per edge, 512 per clock
the bus is only 256 bits
 
I wonder if they're going to get around to packing that into Mac minis before next year
 
doubtful
 
probably not, they're going to rake in the dough for like 1.5 years or so before they bother I assume
 
the mini uses dual channel
I'm always amused by people that blame the M1s perf on ARM64 without realizing it has nothing to do with that
ISAs IMO are largely irrelevant these days except for code densitity
there is some difference in interrupt handling but it's not that big
 
some people still trott out CISC vs. RISC when talking about ARM and Intel for some reason. It's like a self-perpetuating meme at this point
"they have a memcpy intrinsic, but it's still RISC I swear"
 
12:54 PM
meh... ISAs are FISC at this point
it's really about compact or fast anymore
once you realize that shadow registers are a thing in CISC land it's just w/e. x86 has more registers than you're aware of and uses them more than you know.
 
 
2 hours later…
nwp
2:46 PM
Today I'm finally writing glorious code again.
if (device && (... || dynamic_cast<Devices>(device.get())))
    (...,
     [&devices]
     {
         if (std::get<I>(devices))
         {
             return;
         }
         std::get<I>(devices) = std::static_pointer_cast<Devices>(getDevice(deviceName));
     }());
 
oh no, dynamic_cast? it's the devil I tells ya
 
nwp
I is an std::index_sequence and Devices a variadic template parameter pack.
I'm actually surprised you can mix different variadic template packs in a ... expression.
@PeterT Not long ago I didn't know that std::static_pointer_cast and std::dynamic_pointer_cast existed. It should have stayed that way.
 
That reminds me of the only time I wrote C++ for a living
I haven't used dynamic_cast since
 
nwp
I'd argue this code base uses it incorrectly and all those casts are unnecessary.
 
I used it in the core-loop a physics engine abstraction layer as a student.
I guess that was the time to make those mistakes, and learn from them
 
nwp
2:53 PM
The rest here would probably argue that it works which means there is no reason to change it.
And the best part is I get to use MSVC for this. What could possibly go wrong? 🤡
 
nwp
3:52 PM
Is this cursed, normal C++ or both? I can't tell anymore.
 
@Mikhail "mappings between pointers and integers are otherwise implementation-defined."
 
 
5 hours later…
9:07 PM
 

« first day (4021 days earlier)      last day (913 days later) »