268 karma · joined May 22, 2020
This is waay more common and just impossible to catch. The only students caught here are those that put no effort in at all
E.g. (mine) https://github.com/tom-pollak/dotfiles/tree/master/nvim
namely, why did they take so long for something that just seems like a wrapper around function calling?
I've tried to like it but honestly it's been painful. MacOS Sonoma seems to have a hover bug, which has been unresolved through the last 3 bug fix updates. Performance is "fine" but seems to lag with many tabs open which was never an issue in chrome (this is on an M2 pro!) PDF reader also seems significantly slower as well. At this point I'm considering going back to chrome.
Check it out, it's effective with very little config
bool fetchFromCache(int userId, UserProfile& profile);
bool fetchFromServer(int userId, UserProfile& profile);
UserProfile profile;
if (!fetchFromCache(userId, profile) && !fetchFromServer(userId, profile)) {
std::cout << "Failed to fetch user profile.\n";
return;
}
or just to prove a point, although even more unreadable than the monads: bool extractAge(const UserProfile& profile, int& age);
UserProfile profile;
int age;
if (
(!fetchFromCache(userId, profile) && !fetchFromServer(userId, profile))
|| !extractAge(profile, age)
) {
std::cout << "Failed to determine user's age.\n";
return;
}
int ageNext = age + 1;
This probably isn't a great example usecase for this, but its helpful when creating composable transform pipelinesCan also do cool stuff like search for a file to open in $EDITOR and searching git log
In reference that LLMs "don't understand anything and are stochastic parrots over their training dataset" refer to in context learning, llms can be taught new concepts not present in their training data.
Cos(x, y) = x . y / ||x|| * ||y||
If x and y are normalized:
Cos(x, y) = x . y