You can try using templates, but it will be far from maintainable or readable, and it wont work for anything non-trivial like this.
Name:
Anonymous2013-07-30 10:15
The only ones that would defend C++ here is Cudder, FrozenVoid, the GC is shit guy (whom wouldn't use it anyway) and the occasional imagereddit, and FrozenVoid will probably take your challenge and fail with an ungodly spaghetti of #defines named in a Huffman coded manner starting from single characters.
Nope >>1 . I don't even have an idea what is a "destructuring match macro" is or what it does. All i see a walls of parens,(in them something compares lists? or functions? no idea since i have no knowledge of Lisp/Scheme). If you could explain the function of your code with some examples, i could try.
Name:
Anonymous2013-07-30 11:14
>>6
It matches C/C++ zero terminated arrays of symbols.
Say matches a single-linked list against a set of patterns, extracting specified parts and invoking associated handler on match. Think regular expressions, but with linked lists and compiled to machine code.
Name:
Anonymous2013-07-30 11:59
>>7
a C #define can't do this, but a regular function can.
It would sequentially process a list, then
check if list node matches regex or some conditions, then
calls a handler(could be function pointer from array of functions) with parameters.
Is this right?
>>12
You're just jealous that you don't have a JavaScript-machine, which outperforms your x86 CPU by several orders of magnitude with native JavaScript instructions. You might think about how to write more efficient code, but your machine microcode is bloated and slow, rendering such effort fruitless.
Name:
Anonymous2013-07-30 12:45
>>13
Oh, but I have a Javascript machine right here! *grabs dick*
Name:
Anonymous2013-07-30 13:04
FrozenNegroid
Name:
Anonymous2013-07-30 13:07
FrozenNegroloid
Name:
Anonymous2013-07-30 14:22
In the future all computers will be JavaScript-machines and x86 will be emulated. Mark my words.
Name:
Anonymous2013-07-30 14:25
>>17
You finally learned to capitalize, Javashit kike. Your troll posts are still as bad as always, and you've said that like a million times already, though.
Name:
Anonymous2013-07-30 15:09
AI research is only possible in JavaScript. Mentifex knows it.
>>9
No, he did write C code, he used an abomination of a header file containing every library he ever used, which, I believe, was called void.h.
Name:
Anonymous2013-08-05 2:42
>>11
Is this a troll or its somehow related to OpenCL RiverTrail outperforming x86 asm?
Name:
Anonymous2013-08-05 2:48
>>22
x86 is obsolete shit kept on life support. Once Intel integrates JS in the hardware using the full power and knowledge of all their engineers, it WILL out perform any type of assembly.