frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Ask HN: TS Compiler

3•apple_george•1h ago
Hey everyone, I am an experienced JavaScript and TypeScript developer.

What I love about JavaScript more than any other language is that it is so easy for me to express myself. It’s easier for me to express myself in JavaScript or TypeScript than any other language for some reason.

I think we all, however, are really aware of some of the shortcomings of JavaScript and of how amazing Go is.

The feature about go that I think we all really love is goroutines.

I have thought really hard about making a version of TypeScript that includes the ability to do something like a goroutine.

I have seriously debated how to make this work, including modifying V8 building my own custom compiler, etc.

After much thought, I have come across what I believe is the best way to handle this. I think ultimately the best way to do this would be to start with the go compiler and to modify it’s parser so that it can actually parse TypeScript.

The way I envision this working is first what we do is we create a perfect TypeScript to go transpiler.

Once we have the transpiler working perfectly then we take the next step which would be to actually modify the parser in Go to internally parse it and convert it to the structured representation that the go compiler uses.

I believe that this is going to be the most efficient and most importantly, the easiest route to making a true type script compiler.

I would like to get some help on building this because unfortunately I no longer have a computer or any money right now.

If anyone would like to loan a laptop and a Codex or some type of a subscription like that, I would love to get started.

I saw on here that somebody made a type script compiler that uses OXC and LLVM which I think is really cool. However, I think that in order for type script to be something that people really like using it’s gonna have to have something like go routines in the end.

Also, while we are at it, I think we should go ahead and add something like the ability to handle slice syntax correctly so that we can do artificial intelligence in type script.

Honestly, now that AI codes everything I’m not really sure that the programming language matters that much but I still think it would be a fun project to work on.

I think the major downside to this is that essentially everybody now is writing everything in rust and compiling it down to Web assembly and stuff like that so I’m not sure if this is actually a worthwhile project to do at all now that AI codes everything but I would love to know everyone’s thoughts.

Comments

MiroslavPokorny•8m ago
Not sure i agree. Static languages allow significantly more complex systems simply because types are a form of documentation and they allow one to refactor.

Theres a reason why todays big complex systems are mostly not javascript or other scripting languages and thats because of the above reasons i give above.

Ask HN: What are you working on? (August 2026)

216•david927•12h ago•756 comments

Ask HN: TS Compiler

3•apple_george•1h ago•1 comments

Ask HN: How do you set comp at an early stage startup?

2•jeffreyfate•5h ago•1 comments

Ask HN: What Project are you the most proud of?

3•emn4tor•5h ago•3 comments

Ask HN: Is this normal HN ranking?

2•unclebucknasty•1h ago•1 comments

Ask HN: Recommended Merchant of Record and Affliate Setup

3•tisdadd•9h ago•2 comments

Ask HN: Are functional programmers more upset about how good AI is at coding?

8•amichail•10h ago•14 comments

Ask HN: Should a coding client import another client's rules by default?

2•ryanmerket•9h ago•0 comments

Ask HN: My dev blog has 11k followers. I stopped writing it. What would you do?

6•zlatkov•16h ago•6 comments

Ask HN: How do you go from writing code to deploying with agents?

14•sakuraiben•1d ago•9 comments

The State of Google

14•3dedb728-3f77•1d ago•8 comments

The Systemic Collapse of the AI Industry: Ideology, Hardware, and CapEx Crisis

5•impartial2602•14h ago•0 comments

Ask HN: What is your database size

7•kureikain•1d ago•3 comments

Ask HN: Is Ask HN Shrinking?

18•keiferski•1d ago•15 comments

Ask HN: Why is Open POWER Foundation a wasteland?

8•climate_denier_•1d ago•2 comments

Ask HN: Should AI's tell you they're AI?

8•logicallee•18h ago•4 comments

Ask HN: Anyone that has built a marketplace, what has been your experience?

6•mfisc_019•1d ago•3 comments

Agentcn – Installable AI Agents

4•anayat•23h ago•0 comments

Mossad accicentally injected data to a French lawyer phone instead of extracting

21•0x54MUR41•1d ago•4 comments

Ask HN: Is there a mobile operating system with (wasi) container support?

3•wseqyrku•13h ago•3 comments

DeepSeek announced to raise its API price tremendously

31•alexwwang•4d ago•24 comments

Ask HN: In your experience, what are sound conventions for e-ink UI development?

6•BoxOfRain•2d ago•1 comments

Ask HN: What can I do with a single R9700?

4•scott01•1d ago•8 comments

Laguna S 2.1:118B-a9B better than Qwen3.5:122B-a10B? So far, yes

4•spottedmarley•3d ago•2 comments

Ask HN: Did GitHub remove the stargazers list?

29•reconnecting•4d ago•5 comments

Read HN twice a day for the last decade. Here's my list of S-Tier HN links

113•vivzkestrel•4d ago•21 comments

You've reached the end!