Latest Tech News

Stay updated with the latest in technology, AI, cybersecurity, and more

Filtered by: comptime Clear Filter

Comptime.ts: compile-time expressions for TypeScript

⚡️ comptime.ts A dead-simple TypeScript compiler that does one thing really well: enables compile-time evaluation of expressions marked with comptime . This is useful for optimising your code by moving computations from runtime to compile time. This project was inspired by Bun macros and Zig comptime (hence the name). Warning: You are responsible for ensuring that the expressions you mark with comptime are safe to evaluate at compile time. comptime.ts does not perform any isolation. However,