Go Playground WASM

Dev tools

online code playground

SHOW HN2021

140points
41comments
#364of 2,533 in 2021
Top 15%of 2021 by points

How HN took it

CuriousMostly questions and neutral comments

3 positive, 7 neutral or asking, 0 mixed, 3 critical, out of 13 comments about the project. Thread score +0.01.

Execution: 1 for, 1 againstIdea: 0 for, 1 againstPerformance: 1 for, 0 againstDesign: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Fast execution

    From 2 comments
    • How come this is so fast? I feel like the processing faster than I would get on an native compiled and run program. Are there any benchmarks?
      orsenthil on HN
    • Speculation here, but I think WASM lends itself very well to JIT compilation, and V8 has one of the best compiler teams in the world.
      sudhirj on HN
  • Works after Safari fix

    From 1 comment
    • Perfect! The updated version works. Nice project. Thanks for sharing.
      guessmyname on HN

Objections

  • Safari i64/BigInt error at launch

    From 2 comments
    • ``` [Error] TypeError: i64 not allowed as return type or argument to an imported function [f] ut (framework-a4fd281a1981cd6d009d.js:1:16748) [f] mt…
      guessmyname on HN
    • Couldn't find a list but I tested it on brave, chrome, firefox, safari and it was safari that was having troubles
      zackoverflow on HN
  • Output box too small to view results

    From 1 comment
    • Having a bigger / resizeable output box would help too - running the Fibonacci example, all I can see is "0" unless I manage to find the tiny box with its invisible boundary to…
      zimpenfish on HN

Requests

  • Add line numbers to source view

    From 1 comment
    • Nice, maybe add some line numbers to the source view. Makes dealing with compile errors a bit easier.
      jillesvangurp on HN
  • Resizable output box

    From 1 comment
    • Having a bigger / resizeable output box would help too - running the Fibonacci example, all I can see is "0" unless I manage to find the tiny box with its invisible boundary to…
      zimpenfish on HN

Questions

  • Which GC does goscript use

    From 2 comments
    • What GC is used in goscript? The upstream one, a Rust GC<> one, maybe the mini one from TinyGo, or something else custom?
      mappu on HN
    • I poked around earlier and found this file: https://github.com/oxfeeefeee/goscript/blob/master/vm/src/gc.rs Perhaps someone can shed more light on how exactly it works
      zackoverflow on HN
  • Why is it so fast

    From 1 comment
    • How come this is so fast? I feel like the processing faster than I would get on an native compiled and run program. Are there any benchmarks?
      orsenthil on HN

Alternatives named

  • Go playground in qvault.io

    From 1 comment
    • awesome! I made one just like it about a year ago: https://app.qvault.io/playground/go it actually powers some of the courses in go that I've written as well
      lanecwagner on HN
  • yaegi REPL

    From 1 comment
    • There's an REPL called yaegi, but it's pretty primitive (no autocompletion etc.. when I tried). There seems to be another interpreter that seems to be able to provide some…
      chakkepolja on HN
  • gomacro interpreter

    From 1 comment
    • I made this extension for VS Code that also saves the outputs to markdown, so you can save it straight to blog posts:…
      gobookdev on HN
  • TinyGo

    From 2 comments
    • I wonder how tinygo works for wasm. I’m not sure how much of the bloat is runtime (which I assume is smallish) vs how much of the standard library is just included by default.
      todd3834 on HN
    • Tinygo produces very small binaries (kb rather than mb), through using the LLVM tool chain (which does tree shaking), and only (presently) supporting a subset of the standard…
      justinclift on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/28636540)