Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What are advantages of using Sepples?

Name: Anonymous 2016-10-08 7:49

1.templates are easily replaced by macros and _Generic (which selects arguments by compile-time type(without any float/int promotions!)
2.function overload is replaced by above as well.
3.Classes are essentially structs with function pointers.
GCC supports constructors(attribute constructor) and destructors(attribute cleanup) in plain C
http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc
http://echorand.me/site/notes/articles/c_cleanup/cleanup_attribute_c.html
4.constexpr can be rewritten as expression macros ({macro;return var;}) which will be optimized via constant propogation(but unlike constexpr can be runtime dependent).
5.GCC has new apply function for plain C
https://gcc.gnu.org/onlinedocs/gcc/Constructing-Calls.html#Constructing-Calls
6.Thread-safe atomics built-ins in Plain C
https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html#g_t_005f_005fatomic-Builtins

Name: Anonymous 2016-10-12 4:12

>>19
1. try -O0 and clang or msvc instead of gcc
2. limit the use of templates and virtual functions and libraries that use them. don't limit usage thereof when you don't care about super small binary size (99% of cases).
3. computer nigger
4. extern C
5. it's only as complex as you make it fam
6. none of the core language features require templates. you're talking about the STL. again, you can choose to not use the STL. you can opt to use nothing but stdlib.h and whatever C libs you would have used instead. strawman.
7. doubtful. [citation needed]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List