Top Tweets for #feora
@Feoramund @quelsolaar @gdechichi Following for this. I started a similar project where I was implementing generics in C99, then I was going to move to namespaces. Curious to see what you come up with!
@Feoramund Char can be signed or unsigned, it is promoted to int, and then in the conversion to unsigned int it wraps and becomes larger than 255.
@Feoramund Actually, it might have come from a platform where char was defined to be unsigned since the spec doesn't require it to be signed, so it might not even be a proper bug, but a portability issue.
@Feoramund Thanks for sharing. I did face UB because of this last month...
@Feoramund Thanks, I hate it.
@zxprojects @Feoramund Over time you get used to having to send the output to different places throughout the course of code development, as such, rather than having to go back and change all printf() calls to fprintf(x,) it's often easier in muscle-memory to push it out as the latter the first time.
@gonenb @Feoramund In C++ you have structured bindings to make it look a little nicer:
struct Res { long one; long two; };
struct Res compute(int a, int b) {
struct Res rval;
https://t.co/rEt45gHfyR = a;
rval.two = b;
return rval;
}
int main() {
auto [first, second] = compute(1, 2);
}
@kummathrawi @Feoramund A function that returns a struct by value? Yes, see for example, div (and ldiv, lldiv).
@Feoramund To be fair, I'm not a fan of this. I'd rather see the struct defined separately.
@Feoramund What's so hard adding this to the language
double a, short b = func();
Its 2025, I don't get it
@Feoramund One of the things like loved about Pick/BASIC was that we could do this:
CALL SOMEFUNCT(A,B,C,D,...,Z)
And all passed parameters are also return values. RETURN does not take an argument.
@Feoramund I love how Go took all the things that should have naturally come to C and added them.
@Feoramund If I’m not mistaken though, Odin doesn’t treat multiple returns as a struct
@Feoramund Interesting, it's still very redundant though unless there is a decent way to return & unpack/destructure it like structured bindings.
@Feoramund Is the struct defined in the function signature?
@Feoramund BTW a solution based only on a pause (or similar) spinlock will also freeze your system if it's a uniprocessor one.
@Feoramund Well, sure, if you're on a platform not supported by pthreads or similar, you're going to need to reimplement pretty much everything, from thread spawning/joining to putting them to sleep on a mutex and waking them up.
@Feoramund that's one of the reasons I chose C. I can't imagine trying to parse C++ syntax.
and yeah looks pretty similar, I think he came up with his own binary format there, later I'll take a look at his code and see what he did
@Feoramund If there are synchronization primitives in C89, why should do it in assembly?
Last Seen Hashtags on Sotwe
Most Popular Users

Elon Musk 
@elonmusk
240M followers

Barack Obama 
@barackobama
118.6M followers

Cristiano Ronaldo 
@cristiano
114.4M followers

Donald J. Trump 
@realdonaldtrump
111.7M followers

Narendra Modi 
@narendramodi
106.9M followers

Rihanna 
@rihanna
98.6M followers

NASA 
@nasa
92.1M followers

Justin Bieber 
@justinbieber
91.7M followers

KATY PERRY 
@katyperry
89.9M followers

Taylor Swift 
@taylorswift13
83.9M followers

Lady Gaga 
@ladygaga
75.4M followers

Virat Kohli 
@imvkohli
73.3M followers

Kim Kardashian 
@kimkardashian
70.8M followers

YouTube 
@youtube
68.6M followers

Neymar Jr 
@neymarjr
66.3M followers

Bill Gates 
@billgates
65.2M followers

Selena Gomez 
@selenagomez
63M followers

The Ellen Show
@theellenshow
62.1M followers

CNN 
@cnn
61.7M followers

X 
@x
60.6M followers


















