
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@esolangs/type-unlambda
Advanced tools
type-unlambda - Unlambda interpreter implemented in TypeScript's type system
Installation:
npm install --save-dev typescript
npm install --save-dev @esolangs/type-unlambda
Example usage:
import Unlambda from '@esolangs/type-unlambda';
type Code = '``@c`d``s`|k`@c';
type Input = 'Hello!';
type Output = Unlambda<Code, Input>; // Output == '!olleH'
Screenshots:

You're likely to get the following error when trying to run a program with type-unlambda:
Type instantiation is excessively deep and possibly infinite.ts(2589).
To write loops in TypeScript's type system, we have to use recursions, like we do in other purely functional programming languages. Meanwhile, we use CPS to implement continuations, which also introduces heavy recursion. However, TypeScript's type system is not meant for general purpose programming, and recursion has its limits.
In src/compiler/checker.ts, there is a hard-coded limit for type instantiation:
if (instantiationDepth === 50 || instantiationCount >= 5000000) {
// ...
return errorType;
}
You may expect that there is an option somewhere that this limit can be configured, like -ftemplate-depth=n in gcc/clang. Unfortunately, there isn't, and it's likely to stay that way.
To workaround this limitation, we modify the code of tsserver or tsc in node_modules until the error no longer applies. Changing instantiationDepth to 1000 is sufficient to run the example above.
FAQs
Unlambda interpreter implemented in TypeScript's type system
We found that @esolangs/type-unlambda demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.