TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Running Go CLI Programs in the Browser

10 pointsby Bella-Xiangover 5 years ago

1 comment

tjpnzover 5 years ago
I&#x27;m currently in the process of porting my 2048 Solver - a few things I&#x27;ve observed:<p>- Threading isn&#x27;t currently supported so don&#x27;t expect great performance from code leveraging go routines.<p>- CPU heavy code tanks rendering so definitely consider wrapping your WASM logic inside a web worker.<p>- You may need to pause execution to allow any JS event handlers you&#x27;ve defined to fire.