Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
unusualcool
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
The (C) Sharp Syntax Rewriter Tool
(github.com)
1 points
by
unusualcool
5y ago
|
0 comments
2.
▲
What's your opinion on adding generic functions (parametric polymorphism) in C?
2 points
by
unusualcool
6y ago
|
0 comments
3.
▲
Dumping a C program’s AST with Psyche-C (and Clang's AST correlation)
(ltcmelo.github.io)
3 points
by
unusualcool
6y ago
|
0 comments
4.
▲
A (backtracking-aware) parsing table for expressions of the C language
3 points
by
unusualcool
6y ago
|
0 comments
5.
▲
Stretching the Reach of Implicitly Typed Variables in C#
(medium.com)
1 points
by
unusualcool
6y ago
|
0 comments
6.
▲
Is it the case of redesigning C++'s move semantics?
(reddit.com)
1 points
by
unusualcool
7y ago
|
0 comments
7.
▲
The Most Trivial Markup Include Pre-Processor
(github.com)
1 points
by
unusualcool
7y ago
|
1 comments
8.
▲
by
unusualcool
7y ago
Sorry, it wasn't my intention to be tricky, that's why I added "enabled by psychec" to the subject line. I hope that, once landing at the project page, it should be obvious that such functionality is provided by a tool.
9.
▲
by
unusualcool
7y ago
This needs to be made clearer in the readme: C++ and Haskell are requirements for building the type inference engine; Python is necessary for invoking the frontend (or the binaries can be downloaded).
10.
▲
Generics in C without void* or macros – enabled by psychec
(github.com)
90 points
by
unusualcool
7y ago
|
70 comments
11.
▲
by
unusualcool
9y ago
Exactly. Some programs are inherently ambiguous. In such cases, we cannot do much. - Example 1: `void f(){x * y;}` It's impossible to know whether that is a multiplication or pointer declaration. - Example 2: `void f(){x y = 0;}` W
12.
▲
by
unusualcool
9y ago
Yes, a few IDEs perform some disambiguation during parse. But notice that the ability to deal with ambiguities and to come up with a proper AST is just step 0 of the pipeline. The challenging part is type inference - as far as I know there
13.
▲
by
unusualcool
9y ago
You're right, it's not always used. Please notice my other answer above, the project is still a prototype. Eventually, we'll filter what actually goes to the generated header and we'll allow the user to specify whether h
14.
▲
by
unusualcool
9y ago
Indeed, this can be an arguable choice. But notice the project is still in research, it's not an end-user product yet. Eventually, we'll offer options so the user can specifier whether he/she wants such a thing (or inference