CandyJS

Languages and libraries

language bridge

SHOW HN2015

72points
15comments
#376of 2,565 in 2015
Top 15%of 2015 by points

How HN took it

CuriousMostly questions and neutral comments

1 positive, 5 neutral or asking, 0 mixed, 2 critical, out of 8 comments about the project. Thread score -0.01.

Performance: 0 for, 1 againstExecution: 0 for, 1 againstIdea: 1 for, 0 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

  • Nice, simple project compared to earlier bridges

    From 2 comments
    • Nice project! One little remark: I see you're being slightly lazy and using JSON to save some value conversion work. One problem is that this is not very good from a performance…
      ivan4th on HN
    • I built a package to bridge spidermonkey/Go last year[0]. I ended up doing most of the communication via JSON (after several less stable versions using reflect) which was fine…
      chrisfarms on HN

Objections

  • JSON-based value conversion is slow and breaks on NaN values

    From 2 comments
    • Nice project! One little remark: I see you're being slightly lazy and using JSON to save some value conversion work. One problem is that this is not very good from a performance…
      ivan4th on HN
    • Unfortunately NaN behavior seems to be hard-wired in encoding/json code. The proper way to fix it is perhaps taking encoding/json sources and converting marshalling/unmarshalling…
      ivan4th on HN
  • Roughly 4.5 times slower than pure Go due to reflection cost

    From 1 comment
    • the main goal of CandyJS is allow to other developers build extendable programs without the requirement of compile. A good example could be a chan bot in Go with plugins written…
      mcuadros on HN

Requests

  • Explain why Go methods are exposed with camelCase names

    From 1 comment
    • cool! why and how are the Go methods called with camelcase names? ``` var engine = gin.default(); engine.get("/back", CandyJS.proxy(function(ctx) { var future = time.date(2015,…
      manucorporat on HN

Questions

  • Why Duktape instead of a V8 binding like v8worker

    From 1 comment
    • Great work! But is there any reason that you didn't build on top of the really nice V8 binding https://github.com/ry/v8worker instead of Duktape?
      tav on HN
  • Do pooled contexts share state

    From 1 comment
    • Hi Chris, thanks for your support. Your packages looks like very interesting, I couldn't find it before. About the pool of workers, they share the stack? Or how you keep the same…
      mcuadros on HN

Alternatives named

  • go-duktape / spidermonkey bridge by chrisfarms

    From 1 comment
    • I built a package to bridge spidermonkey/Go last year[0]. I ended up doing most of the communication via JSON (after several less stable versions using reflect) which was fine…
      chrisfarms on HN
  • v8worker

    From 1 comment
    • Great work! But is there any reason that you didn't build on top of the really nice V8 binding https://github.com/ry/v8worker instead of Duktape?
      tav on HN
  • lazlo chat bot plugin system

    From 1 comment
    • the main goal of CandyJS is allow to other developers build extendable programs without the requirement of compile. A good example could be a chan bot in Go with plugins written…
      mcuadros 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/9724658)