News for hackers. Stuff that matters.
Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder by klibertp on Friday November 14, 2014 @06:57PM (#8610267)
This is absolutely beautiful. I didn't know you could get an address of a label in C or to do a goto to an address from variable instead of a literal label. Is this new in C, or was it always there?
Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder by dietrichepp on Friday November 14, 2014 @07:01PM (#8610282)
Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder by techdragon on Friday November 14, 2014 @08:45PM (#8610545)
Is there an equivalent for Clang/LLVM?
Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder by cjcole on Friday November 14, 2014 @11:37PM (#8610836)
Yes.

http://blog.llvm.org/2010/01/address-of-label-and-indirect-b...

A venerable interpreter implementation trick.

Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder by codehero on Friday November 14, 2014 @09:10PM (#8610619)
Unfortunately it won't port to IAR, which is a shame. I don't understand why pointers to labels never made it to the C spec; it's one of the (equivaling) features that actually makes assembler look elegant.