Twostroke

Languages and libraries

javascript interpreter

SHOW HN2012

75points
27comments
#318of 1,677 in 2012
Top 19%of 2012 by points

How HN took it

CuriousMostly questions and neutral comments

3 positive, 6 neutral or asking, 1 mixed, 1 critical, out of 11 comments about the project. Thread score +0.07.

Idea: 3 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

  • Fun and interesting project

    From 3 comments
    • Twostroke is also capable enough to run the CoffeeScript compiler: http://github.com/charliesome/coffee-script-pure
      haileys on HN
    • Something like Twostroke could be useful if for some reason or other you can't embed V8 (eg. no platform support, no access to compilers, etc.) Twostroke is dog slow compared to…
      charliesome on HN
    • Fun is always a good reason... I need to dust off my (horribly incomplete) Ruby compiler project.
      vidarh on HN
  • Can run the CoffeeScript compiler

    From 1 comment
    • Twostroke is also capable enough to run the CoffeeScript compiler: http://github.com/charliesome/coffee-script-pure
      haileys on HN

Objections

  • Very slow compared to real JavaScript engines

    From 1 comment
    • Something like Twostroke could be useful if for some reason or other you can't embed V8 (eg. no platform support, no access to compilers, etc.) Twostroke is dog slow compared to…
      charliesome on HN
  • No clear use case

    From 1 comment
    • I see no use case for this. You must be masters of both languages after this project.
      jemeshsu on HN
  • Project appears stagnant

    From 1 comment
    • The front page for the project hasn't been updated in over 3 years, and a quick search for github activity shows stagnation too. What direction is this project heading and how…
      sreque on HN

Requests

  • Add a Twostroke adapter to ExecJS

    From 1 comment
    • Very cool! If you added a Twostroke adapter to ExecJS (https://github.com/sstephenson/execjs), the ruby-coffee-script gem would work without modification.
      sstephenson on HN

Questions

  • Why build this instead of embedding V8?

    From 1 comment
    • Looks fun, but it'd be interesting to hear more about your rationale for this vs. embedding V8 etc.
      vidarh on HN
  • Why hand-write the parser instead of using a parsing library?

    From 1 comment
    • I'm quite flabbergasted seeing this: https://github.com/charliesome/twostroke/blob/master/lib/twostroke/parser.rb That is, a parser which is essentially coded by hand, with all…
      Xion on HN

Alternatives named

  • V8 embedding

    From 1 comment
    • Looks fun, but it'd be interesting to hear more about your rationale for this vs. embedding V8 etc.
      vidarh on HN
  • HotRuby

    From 1 comment
    • You should check out HotRuby, which is a Ruby interpreter, written in Javascript: http://hotruby.yukoba.jp/ Should be pretty interesting to see Twostroke running on HotRuby…
      endymi0n on HN
  • treetop, kpeg, citrus parsing libraries

    From 1 comment
    • Sure there are, kpeg, citrus, treetop... Probably more I don't know about.
      andrewvc 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/3460224)