[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.9426298 [View]
File: 34 KB, 200x209, cat.png [View same] [iqdb] [saucenao] [google]
9426298

Why the fuck can't POD types have trivial constructors? Something like this:

struct Color
{
u8 R, G, B, A;
Color (u8 r, u8 g, u8 b) { R = r, G = g, B = b, A = 0xFF; }
};

Virtual functions I understand, but this? WHY?

>> No.6324009 [View]
File: 34 KB, 200x209, cat.png [View same] [iqdb] [saucenao] [google]
6324009

>>6323982
umm, i don't know sepples so i don't understand your snippet
anyway, my point was that if ruby, which is a slow language can compute 2**(2**20) in seconds and give us the complete result why mate's calculator based on super-duper fortran takes 5 minutes and gives an approximate result. also the number on the op pic isn't the result of 2**(2**20) but probably of a similar or less demanding task, since the number which is a result of 2**(2**20) has 315653 digits while op's has just 180907 zeros

>> No.5284044 [View]
File: 34 KB, 200x209, catplusplus.png [View same] [iqdb] [saucenao] [google]
5284044

>>5283997
Yeah, C++ is just C with classes! It's not like there's severe specification bloat or anything.

Navigation
View posts[+24][+48][+96]