Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more! Learn more →
Top 23 TypeScript Compiler Projects
-
Project mention: Introducing react.dev: the new React docs site! | reddit.com/r/reactjs | 2023-03-16
-
Project mention: Babel is used by millions, so why are we running out of money? (2021) | news.ycombinator.com | 2023-02-18
I do appreciate your transparency, though I disagree with the sentiment that I’m arguing from a position of bad faith.
It’s a self-evident fact that the Babel team has not shown a moment of interest in lowering their role in the JavaScript ecosystem to anything short of kingmakers. Have a gander at their GitHub README and what do we see?[1]
- “Babel is a compiler for writing next generation JavaScript.” Indefinitely.
- Over a dozen sponsor logos. An embarrassment of riches.
- A literal audio recording of a song in praise of the project.
The Babel team has a well documented history of their priorities[2], emphasizing the need for a modular approach that has no exit strategy[3]. At best, we have a case of accidental entrenchment and long term dependence on the Babel brewing as early as 2017![4]
Compare this infinite circus to the humble but popular Normalize.css, which has the express purpose to stop existing.[5]
If the Babel team wants to raise some money, they can start by putting a plan together that would codify an exit strategy. It’s certainly more noble than their current plan of barnacling on to every NPM package…
- [1] https://github.com/babel/babel
- [2] https://github.com/babel/notes
- [3] https://github.com/babel/notes/blob/master/2016/2016-07/july...
- [4] https://github.com/babel/notes/blob/master/2017/2017-04/apri...
-
Appwrite
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
-
Project mention: Any recommendations for learning compiler efficient programming? | reddit.com/r/AskComputerScience | 2023-03-17
Godbolt is your friend.
-
mitosis
Write components once, run everywhere. Compiles to Vue, React, Solid, Angular, Svelte, and more.
I discovered https://github.com/BuilderIO/mitosis, and it has changed my front-end development workflow with the ability to create one development and export and test metrics on multiple front-ends delivering the best MVP possible.
-
Project mention: The TypeScript compiler is now implemented internally with modules | news.ycombinator.com | 2022-11-02
Hi, Sucrase author here.
To be clear, the benchmark in the README does not allow JIT warm-up. The Sucrase numbers would be better if it did. From testing just now (add `warmUp: true` to `benchmarkJest`), Sucrase is a little over 3x faster than swc if you allow warm-up, but it seemed unfair to disregard warm-up for the comparison in the README.
It's certainly fair to debate whether 360k lines of code is a realistic codebase size for the benchmark; the higher-scale the test case, the better Sucrase looks.
> worse it disables esbuild and swc's multi-threading
At some point I'm hoping to update the README benchmark to run all tools in parallel, which should be more convincing despite the added variability: https://github.com/alangpierce/sucrase/issues/730 . In an ideal environment, the results are pretty much the same as a per-core benchmark, but I do expect that Node's parallelism overhead and the JIT warm-up cost across many cores would make Sucrase less competitive than the current numbers.
-
I've had some success with https://github.com/TypeScriptToLua/TypeScriptToLua
Luau may be an alternative as well, haven't tried it.
I love Lua, but at larger scales it's unmanageable.
-
Since the eth_compile API was deprecated, the available alternatives (Solc-JS and the extended Browser-Solc) work best in a server setup or is tightly coupled to the HTML DOM, they are not so flexible to work with in modern Javascript library environment such as ReactJS, well at least, not so straight-forward. This will make your application throw tantrums as you develop with them which, from my experience, is a terrible developer experience.
-
InfluxDB
Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
-
-
Project mention: is it possible to make roblox scripts in a programming language other than lua | reddit.com/r/ROBLOXExploiting | 2022-11-08
You can use typescript https://roblox-ts.com/
-
verilog2factorio
This project will compile verilog (a hardware description language) into factorio blueprints.
-
-
-
Project mention: Wing: a cloud-oriented programming language - request for feedback | reddit.com/r/ProgrammingLanguages | 2023-01-18
The project is in early Alpha, we'd love to get as much feedback on the language, its roadmap, and the various RFCs we have.
-
There are tools to help make migrating code from CommonJS to ES Modules easy. One of the most popular tools is cjstoesm, a command line tool that automatically transforms CommonJS code in Node to its ESM equivalent. Almost all CommonJS code is transformed. However, there are some things that are not transformed. The most notable is the __dirname. __dirname is not part of Node.js, but it is one thing that Node does not suppport in "ESM mode". Luckily, there are replacements. A simple way to polyfill __dirname is to do this:
-
-
Project mention: Melody - A readable language that compiles to regular expressions, now with Babel and NodeJS support! | reddit.com/r/programming | 2022-04-04
How do you think this compares to REXS? I personally think REXS is a bit more readable. They're both good though. The thing that would really interest me would be a reverse compiler and neither project has that. I'd like a language to explain complicated regexes to me.
-
-
-
ts-c-compiler
⚙️ Tiny C compiler with builtin NASM syntax assembler and emulator written entirely in TypeScript
Recently I'm working on toy C compiler and Assembler in TypeScript[1] and I can confirm that the amount of work that have to be done to compile and print simple Hello World is astronomically huge.
-
Project mention: How would someone claim cashscript p2sh funds with their authorized address? | reddit.com/r/btc | 2023-02-22
This is a stripped down example from p2pkh.cash showing a simple authorized address example:
-
-
bagel
A reactive and strongly-typed, but also pragmatic, new programming language. Compiles to JavaScript, designed to be comfy for people used to the JavaScript/TypeScript language and ecosystem.
-
-
Sonar
Write Clean JavaScript Code. Always.. Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.
TypeScript Compiler related posts
- Any recommendations for learning compiler efficient programming?
- Announcing TypeScript 5.0
- Rust and C++ cold war
- Hello! Linked is a portion of a project I would like feedback on. Some concerns are: 1 – There are link errors when split into implementation files. 2 – Is the comma overloading a bad idea here? 3 – Are the 'cast()' and 'copy()' methods properly implemented?
- Some questions about Svelte
- prática programação online
- let mut outside loop vs let inside
-
A note from our sponsor - Appwrite
appwrite.io | 20 Mar 2023
Index
What are some of the best open-source Compiler projects in TypeScript? This list will help you:
Project | Stars | |
---|---|---|
1 | Svelte | 66,386 |
2 | Babel (Formerly 6to5) | 42,049 |
3 | compiler-explorer | 12,779 |
4 | mitosis | 8,357 |
5 | sucrase | 5,066 |
6 | TypeScriptToLua | 1,632 |
7 | solc-js | 1,246 |
8 | estrella | 1,077 |
9 | roblox-ts | 644 |
10 | verilog2factorio | 633 |
11 | Snel | 310 |
12 | tiny-sass-compiler | 283 |
13 | wing | 282 |
14 | cjstoesm | 281 |
15 | js-ziju | 137 |
16 | REXS | 132 |
17 | ts-transform-import-path-rewrite | 125 |
18 | uniroll | 110 |
19 | ts-c-compiler | 103 |
20 | cashscript | 96 |
21 | mints | 93 |
22 | bagel | 78 |
23 | psi | 48 |