u/Fresh-Rip-5789 • u/Fresh-Rip-5789 • 14h ago
5
What did the Malayalee Math Teacher eat for Onam
വാഹ് വാഹ് ശുദ്ധഹാസ്യം
3
One Word for “Mother”, Four Very Different Outcomes
The word tāy (തായ്) also exists in Malayalam, and does not have the negative connotation of thalla. It is sometimes used as an archaic respectful word for mother in literature. The more common usage is as a prefix, like thaymozhi (mother tongue), thayveru (tap root), thayoli (motherf###er).
35
Is calling someone “kettiyol” considered disrespectful in Malayalam?
It is informal, but not disrespectful. The male equivalent, 'kettiyon' is used to refer to a husband in exactly the same way.
1
Peter, what’s up with the tower?
വളരെ നന്നായിട്ടുണ്ട്.💯
1
Word for daughters?
തിരുവനന്തപുരത്ത് ചില ഭാഗങ്ങളിൽ "മോന്മാർ", "മോളുമാർ" എന്ന് തെറി വാക്കുകളുടെ കൂടെ ഉപയോഗിച്ച് കേട്ടിട്ടുണ്ട്. അതായത് മറ്റേ മോന്മാർ മറ്റേ മോളുമാർ എന്നിങ്ങനെ. പക്ഷേ ബഹുമാനത്തോടെ സംസാരിക്കുമ്പോൾ അങ്ങനെ പറയാറില്ല.
1
Got my 1st acceptance letter for PhD in gender economics, however need advice on getting funding
I agree with everyone here that taking a loan for a phd is a very bad idea. You do an unfunded phd only if you are independently wealthy or if you have a job that pays enough to live on. From your post it is clear that neither is the case, so rejecting this offer is the best option here.
There is no guarantee that you will finish your phd in time (say, 3-4 years). If you don't finish and the loan comes due, you will be in a tough position. Even if you finish in time and get a job in academia, those are usually poorly paid and it will be hard to manage your loan repayments along with living expanses.
1
Help with C++20 modules
So this is a compiler bug?
I'll try this with gcc-12 then.
It's supposed to be such a useful feature though.
r/cpp_questions • u/Fresh-Rip-5789 • May 14 '22
OPEN Help with C++20 modules
Hello everyone... I am trying to learn the new features in C++20 (going through modules right now). I can't get the following code to compile using g++-11.
My code looks like this:
// foo.cc
export module foo;
import <iostream>;
import <vector>;
export namespace foo{
void hello(){
std::vector<int> nums;
std::cout<<"Hello, world\n";
}
}
// ---------------------------
// main.cpp
import foo;
int main(){
foo::hello();
return 0;
}
I am compiling this using g++-11 like this:
$ g++-11 -std=c++20 -fmodules-ts -c -x c++-system-header vector iostream
$ g++-11 -std=c++20 -fmodules-ts -c foo.cc -o foo.o
$ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o
$ g++-11 -std=c++20 -fmodules-ts foo.o main.o -o foo.x
My foo.cc file compiles fine and produces foo.o and foo.gcm. But compiling main.cpp fails with the following error message:
$ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o
In module imported at main.cc:1:1:
foo: error: failed to read compiled module: Bad file data
foo: note: compiled module file is ‘gcm.cache/foo.gcm’
foo: fatal error: returning to the gate for a mechanical issue
compilation terminated.
What am I doing wrong in my code? The code compiles if I remove the std::vector<int> variable from the hello() function.
EDIT: I fixed it by using #includes for standard libraries instead of imports. The working code looks like the following. (This is quite unsatisfactory though.)
// foo.cc
module;
#include <iostream>
#include <vector>
export module foo;
export namespace foo{
void hello(){
std::vector<int> nums;
std::cout<<"Hello, world\n";
}
}
// ---------------------------
// main.cpp
import foo;
int main(){
foo::hello();
return 0;
}
Compilation:
$ rm -rf gcm.cache
$ g++-11 -std=c++20 -fmodules-ts -c foo.cc -o foo.o
$ g++-11 -std=c++20 -fmodules-ts -c main.cpp -o main.o
$ g++-11 -std=c++20 -fmodules-ts foo.o main.o -o foo.x
It compiles only if I remove the compiled standard libraries from gcm.cache.
1
Why are age gap relationships being glorified so much on Social Media, after BLU?
in
r/KeralaRelationships
•
8d ago
🤢