Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mountain_lion
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
mountain_lion
3y ago
That's not how Bills of Attainder work. They are primarily about punishments without findings of guilt. Particularly, denial of civil rights without trial. Whatever the merits of this case, removing a tax break is not a criminal findin
2.
▲
by
mountain_lion
3y ago
CLIF is nice but not under public development and not really getting feature improvements. It's direct connection to LLVM is both a very big strength--it gets industrial-grade C++ parsing from a standards-compliant C++ parser--and it&#
3.
▲
by
mountain_lion
9y ago
#pragmas are not portable, and have various problems with compatibility. Structured comments could work, but because the C++ compiler doesn't parse them, you essentially have a file-with-a-file, and 80% of the problems you encounter wi
4.
▲
by
mountain_lion
9y ago
CLIF is used inside Google for some very non-trivial projects.
5.
▲
by
mountain_lion
9y ago
I was in the room when this person said it (and it was in the context of CLIF's Google-wide adoption), so I think it's reasonable that my interpretation that this was a positive statement is reasonable. At least if you weren'
6.
▲
by
mountain_lion
9y ago
CLIF does recognize explicit template instatiations, and can instantiate a limited set itself. There is no pain like keeping the two files in sync because clif only allows a very small amount of C++ in its sources--basically just type names
7.
▲
by
mountain_lion
9y ago
There are (roughly) two ways of using Clang as a library. The first is a via a C-based API into a libclang.so. This is an API designed to be extremely stable, is fairly powerful, and works relatively well. That API doesn't expose absol
8.
▲
by
mountain_lion
9y ago
Perhaps the best thing about CLIF is that it never, ever, parses any C++ by hand [0]. It always uses a state-of-the-art, fully-industrial-strength, well-supported compiler: Clang. And it can be updated in lockstep with Clang near trivially.
9.
▲
by
mountain_lion
9y ago
CLIF is designed to support arbitrary front-end languages--and other languages are in the exploratory phases. But there is no full support for other languages at this time.
10.
▲
by
mountain_lion
9y ago
It makes sense to write system APIs in C, but there are many more things than system APIs, and many of them find it useful to use C++ constructs. (edit) Clang's internals are also several orders of magnitude easier to work with than GC