Settings

Theme

Show HN: Yavashark: I've Built a JavaScript Engine Every Day for 950 Days

yavashark.dev

39 points by sharktheone · 7 comments · 1 min read

Reader

Feel free to give me feedback or discuss what you have on your mind. I had lots of fun building this, so I hope you have too reading this!

2 threads
lioeters

Congrats on the public launch!

The repo description says "A JS/TS Engine". What are your plans on integrating/implementing TypeScript? Also I see the codebase is in Rust but there's some setup/tooling for Go. Are you planning to release it as a Go package?

Oh, the first question is answered in the post:

> Yavashark’s CLI can run React with TypeScript

Nice, curious to see how that works internally - is it type stripping? I wonder about source mapping, for example, line numbers in error messages.

  • sharktheoneOP

    Well, yes to both. The initial reason why I started the engine because I wanted something that could run typescript natively. For now it just does type-stripping and some transformations to run react code. For source mapping, some errors are converted, mainly syntax ones, but there are no real conversions for errors arbitrarly thrown in the engine.

    The tooling, mostely no. But if people want it I don't see any issue why I should not do that.

keane

Congratulations on this release!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection