« first day (2839 days earlier)      last day (2118 days later) » 

12:18 AM
Yeah well at least you get accurate measurements, I mean usually you dont ship the timing code
 
@Borgleader so it basically means that the timestamp is taken sometime between the instruction getting into the pipeline and sometime before the target register is accessed and written out to memory?
 
12:41 AM
@Borgleader this messes with algorhtms like the ATLAS Blas (auto tuning cache structures)
Other examples of auto tuning include en.m.wikipedia.org/wiki/Halide_(programming_language)
 
auto-tune is for people who can't sing ;)
 
1:21 AM
cc @StackedCrooked
 
 
3 hours later…
4:01 AM
 
 
3 hours later…
6:34 AM
What is worse? Do only one thing and get stuck on this one thing or do three simultaneously and fare badly in all three?
 
6:53 AM
I'm always doing the latter, and so far I'm very satisfied
doing one thing is kind of tiresome, doesn't matter if you succeed or not
 
Only if you sort of good at least one of them ...
 
nobody is good at something without any practice, so you have to fail, but do it fast
 
Maybe I am too impatient :/
 
7:36 AM
New GitHub dashboard: "we shuffled elements around in the main page again, but at least it takes most of your screen now"
 
8:04 AM
58
Q: Bash scripting: test for empty directory

Anthony KongI want to test if a directory doesn't contain any files. If so, I will skip some processing. I tried the following: if [ ./* == "./*" ]; then echo "No new file" exit 1 fi That gives the following error: line 1: [: too many arguments Is there a solution/alternative?

bash scripting is literally cancer
 
8:35 AM
Hey, I agree with you :D
 
 
1 hour later…
9:56 AM
This is weird, I pressed 'shut down' on macbook 6 times. Nothing happened, it's still powered on ...
Had to hard reset
 
remove battery & power plug
 
nwp
Removing the battery in a macbook? I would have expected you simply have to buy a new macbook when the battery dies or live without it.
 
sorry, I never used any MacThingy and forgot I can't always assume things
 
10:45 AM
We need more people like you, the Apple meme needs to die.
 
11:13 AM
@milleniumbug Were did you see that? Can't reproduce with Chrome or Firefox.
 
-10
Q: Searching for a C++ Blockchain Dev

Lulzim SelimiSearching for a C++ Blockchain Dev who is willing to join our Team, experience with Dashcoin Code is advantageous. We have a Teamchat in Discord and our website is Dinerocoin.org We want someone who shares the same vision as we do and none of the only money and whats your budget in mind! there ...

/cc @Mysticial @milleniumbug
 
@Mgetz cool
 
@StackedCrooked I'm watching both!
 
11:42 AM
@Mgetz Fat rocket is fat, I love it!
 
Thanks, shared it with my colleagues
 
@TelKitty Thicc rocket may not fly very much anymore, it's too expensive
 
12:02 PM
What if rockets are shaped like UFO and launched like frisbees?
 
@TelKitty try it?
 
no $ otherwise I would
 
12:34 PM
@TelKitty people inside will throw up uncontrollably, or if you try to negate the effect by spinning room with people inside the UFO in the opposite direction, you probably wont fly anywhere
 
@login_not_failed have you ever been to a rotating restaurant?
if it's large enough, you wouldn't feel much if anything at all
besides there could be some kind of suspension system, like wheels to a car
 
nope, never
 
12:52 PM
You have never seen a car before? You pure, innocent villager!
 
how rotating restaurant and a car combine there?
 
wheels rotate but car doesn't
 
so you were eating inside the wheel?
 
a gigantic wheel if you prefer to think it that way, yes
 
I prefer not to think about wheels of any kind, that's just my thing: wheels scare me death
 
1:05 PM
but donuts are almost like wheels ... just smaller and edible
 
I burn donuts when I see them
descendents of hell
 
Show thoughts: how does the print screen command get data from the GPU?
 
@login_not_failed some evil are necessarily destroyed when eaten not burnt
@Mikhail pixel by pixel then compressed when stored I assume.
 
Does the print screen command somehow intercept the framebuffer. Also how exactly does the frame buffer map to hardware in a modern GPU.
 
1:29 PM
I read articles about it a long time, it's pretty deep and fascinating rabbit hole
 
I once had a bunch of interview questions about :-/
 
deep and fascinating rabbit holes were dug by hardworking rabbits
local rabbits taking shelter under housing in local hospital, no hole in the park where they feed, no hole at all
 
...were dug by bored hobos
 
 
2 hours later…
3:18 PM
@Mikhail Yep, saw that. Didn't expect it to die this soon though.
 
@Mysticial I didn't expect it to live this long 1) performance people were pissed 2) sales deals were at a loss, and acquired on dubious almost political grounds 3) unlike typical sales deals, they weren't sold for guaranteed performance on a series of standard HPC applications
I think their only success story was for some fintech monte carlo integration
 
Is 0 == NULL?
 
yes
 
```cpp
#include <iostream>

int main(void) {
int a = 0;
std::cout << a == NULL << std::endl;
return 0;
}

```
Are we returning null in this main function?
 
3:32 PM

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
 
Untill C++11, it was "an integral constant expression rvalue of integer type that evaluates to zero", and since C++11, it is "an integer literal with value zero, or a prvalue of type std::nullptr_t"
 
That question is really boring, and has no practical, or even theoretical consequence
 
In C it's either 0 or 0 cast to void*.
 
What are rvalue and prvalue though? (I'm new to cpp)
 
Now you shouldn't be using NULL anyway. Stick to nullptr if you want a null pointer, or 0 if you want an integer of value zero.
 
3:36 PM
WinAPI
 
The WinAPI works pretty well with nullptr.
 
ITS NOT WINAPI UNLESS YOU ARE YELLING
 
#define NULLPTR nullptr
 
 
2 hours later…
6:02 PM
@Mikhail I wonder if Intel will bring back the KNL instructions.
If I had to pick one, I'd choose the prefetch ones if they are efficient. You can then prefetch 16 lines with a single instruction.
 
6:13 PM
@Mysticial So. Explicit prefetching is the norm for Gpu aritechtures. On the other hand their fast local memory (aka shared memory) isn't shared across the whole gpu. I wonder if there is some reason x86 can't do that. The prefetch instruction was only for that core, right?
 
@Mikhail I don't get it. Prefetching isn't about shared memory. It's about a core pulling in data that it wants later. (though you can have one core prefetch for another core, but the best you can do it bring it into the lowest level of shared cache)
 
@Mysticial Yes, its pulling data into some faster to access memory (aka a cache)
So, in CUDA you can get a pointer to the "cache" (or rather you can say you're manually managing the cache, you can't get a pointer to the automatic part of the cache...)
 
Oh, IOW, explicit cache?
 
Yeah, so part of the magic of the GPU architecture is that the cache is really fast and local to a small group of threads.
So in hardware they can get crazy GB/s access to the local cache.
 
CPUs don't have it probably because nobody but the most hardcore will be able to use it.
Since CPUs are all about making shitty code run not so shittily.
 
6:28 PM
There are other reasons including virtual memory, like if you got a pointer to the cache how would it interact with other virtual memory locations?
 
@StackedCrooked Hmmm, can't reproduce anymore either
weird
 
Ok. That's making me feel kinda nervous.
 
@Mysticial But anyways, 50% of the optimization techniques involve reading stuff (optimally) into the cache. Which KNL prefetching instructions were you talking about? Intel had those #pragma prefetch stuff in ICC for KNL?
 
Ah well.
It's only Coliru.
 
@Mikhail gather/scatter prefetch
 
6:37 PM
@Mysticial So, these are the commands that initiate a parallel prefetch right? Sounds like what we normally do on the GPU (CUDA).
 
Actually I don't quite get it. For example, doesn't builtin_prefetch() do this already?
 
@Mikhail correct, or they can be used to pull in 16 consecutive cachelines.
@Mikhail You'd need 16 of them.
 
@milleniumbug lol
 
Indeed, so its the typical wacky, implicit hack around that on the GPU is done by just god damn having each thread load data into the shared memory.
 
6:40 PM
The use-case that I want to try is in multi-stride algorithms. Even though there's no gather/scatter in the computation, it is working on 8 (or more contiguous strides). So rather than issuing 8 separate prefetches, I do a single gather-prefetch to pull in 8 lines at once.
 
On the other hand, shouldn't the hardware prefetcher auto-magically predict your pattern?
 
The interesting part would be what will happen if the cache associativity is less than the # of lanes in the gather/scatter prefetch.
i.e. less than 16
@Mikhail Not with that many strides. And not when the strides start and stop.
The problem is that if I have 8 streams equally spaced out and I access them cyclically, the hardware prefetcher might mistaken it as a strided access pattern and prefetch the 9th, 10th, etc...
 
Ah, I see.
But you aren't really saving anything except instruction throughput by bulking 16 operations into one, right?
 
@Mikhail And also register space.
Instead of having 8 GPRs holding pointers to the 8 strides I can have 1 vector register.
 
Anyways, I agree they should definitely do it. It doesn't really sound that hard :-)
 
6:48 PM
The "8 GPRs" thing can be reduced with tricks like this:
Aug 8 '16 at 22:11, by Mysticial
Each set of 8 pointers is folded into 4 registers as follows:
T0 = T0
T1 = T0 + 1*stride
T2 = T0 + 2*stride
T3 = T7 - 4*stride
T4 = T0 + 4*stride
T5 = T7 - 2*stride
T6 = T7 - 1*stride
T7 = T7

But since you can't `lea` with a subtraction, you need to split the stride variable into positive and negative versions.
But the compiler usually doesn't cooperate.
 
@Mysticial I feel you'd like GPU programing a lot more :-)
 
@milleniumbug lol pretty much
@Mysticial Is the Mill Arch dead yet? I keep checking their website, every few months. Doesnt seem to be much movement.
 
@Borgleader Probably. Anything that isn't backwards compatible will have a hard time getting traction.
Backwards compatibility means, 'run native x86".
 
don't worry transmeta will save the vliw
 
7:34 PM
@Mysticial They do actually, just not accessible from user mode
Both intel and AMD support the kernel managing the caches directly
IIRC windows actually uses this for a few super critical code segments in their driver routines
 
@Mgetz I don't really count CAT as it - since it's sort of a hack.
 
@Mysticial and yet that is actually the intended use.
 
 
4 hours later…
11:32 PM
@Mysticial I think it was supposed to be? IIRC they we working on like... an x86 -> mill transpiler of some sort
not sure what the details on that were
 
So, whats the advantage of Mill?
 
it has a belt?
honestly i dont remember the details, the youtube video was like > 1hr and i watched it like 4 yrs ago or so
 
Sounds like a stack or queue machine
From what I can tell its a stack (or rather queue) with few hacks to non-destructively read the stack (or queue).
While I understand the gains in simplicity, I don't understand the gains in performance
 
11:49 PM
i think there was a question of scalability in there, something to do with register renaming and i forget what else
it was explained in the video i watched iirc
 
yeah it's a fixed length queue and wide instruction issuing with static scheduling
and the instructions are grouped as basic blocks with branches outwards which should help branch prediction because each block has a few branch target instead of each instruction may having other branch targets
 

« first day (2839 days earlier)      last day (2118 days later) »