Better HN
topnewbestaskshowjobs
Log inSign up

yortus

10 karma · joined Sep 3, 2011 (15y ago) · 6 submissions

Submissions

comment 4y ago · link · parent

Why not just write it more simply as

    Str = "a" "aa"*
Most languages allow writing tortured and hard to understand logic where simpler alternatives can also be written. I'm not sure why that should make people consider not using them.

comment 9y ago · link · parent

Interestingly, a type system was proposed for JavaScript around 2007 as part of ES4, which was later abandoned [1]. The proposed details in [2] are strikingly similar to what we've ended up with in Flow and TypeScript.

[1] https://en.wikipedia.org/wiki/ECMAScript#4th_Edition_.28aban... [2] https://www.ecma-international.org/activities/Languages/Lang...

comment 10y ago · link · parent

> it's a performance/complexity nightmare

Babel itself demonstrates the truth of this. If you look at the source code for any of Babel's syntax plugins, they are literally only a few lines long, because all they do is activate a feature that is actually part of the parser core.

comment 12y ago · link · parent

Using asyncawait (https://github.com/yortus/asyncawait):

    var bakeCookies = async (function(cookie_mix) {
      print("Baking cookies...");
      var oven = new Oven(cookie_mix);
      var cookies = await (oven.bake(15));  // bake for fifteen minutes
      cookies.decorate();
      return cookies;
    });

It's plain JavaScript, concurrent, and works with plain node.js, unlike StratifiedJS.

5.

Show HN: Tame callback hell in Node.js applications(github.com ↗)

1 points · by yortus · 12y ago · discuss

6.

Async/await for Node.js – my first OSS contribution. Feedback welcome!

1 points · by yortus · 12y ago · discuss