Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sklogic
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
149 ms
·
1441.
▲
by
sklogic
12y ago
Yes, it is useful. For example, if you want to bootstrap a language implementation from the smallest possible subset, with a very trivial interpreter, then using Y-combinator as a way to implement recursion is reasonable (after all, perform
1442.
▲
by
sklogic
12y ago
P.S. PFront implementation is available here: https://github.com/combinatorylogic/mbase
1443.
▲
by
sklogic
12y ago
Github is using some weird heuristics for detecting languages, and, apparently, multiple 'fun' tokens bends it towards Clojure in this case. I'm not sure if this way of language detection will ever work with PFront, as it is
1444.
▲
by
sklogic
12y ago
You can also mix PEG (Packrat) with Pratt in an interesting way. Nemerle does this, as well as https://github.com/combinatorylogic/mbase And you can do a lot of nice stuff with PEGs, like generating error recovery and
1445.
▲
Clike: An extensible C-like language compiler in under 3000 lines of code
(github.com)
32 points
by
sklogic
12y ago
|
3 comments
1446.
▲
by
sklogic
12y ago
Are you doing some fancy region analysis (e.g., like in Harlan) instead of GC?
1447.
▲
MBase compiler development framework is released
(github.com)
4 points
by
sklogic
12y ago
|
0 comments