News for hackers. Stuff that matters.
Re:Show HN: Vector - A High-Level Programming Language for G... by zhemao on Saturday December 21, 2013 @11:38AM (#6947034)
Yes, the special for loop syntax is to make it consistent with the "pfor" syntax. The "pfor" syntax is that way so that it can be parallelized.

Also, I can't believe I forgot to mention this in the post, but both for and pfor can sweep multiple iterators, so

    for (i in 0:10, j in 0:5) {
   }
Is equivalent to

    for (i = 0; i < 10; i++) {
        for (j = 0; j < 5; j++) {
       }
    }
Re:Show HN: Vector - A High-Level Programming Language for G... by melonakos on Saturday December 21, 2013 @11:40AM (#6947043)
Hey, @zhemao, wasn't kidding about wanting to talk about bringing you on board here. Seriously takes a lot of talent to do what you've done :)
Re:Show HN: Vector - A High-Level Programming Language for G... by melonakos on Saturday December 21, 2013 @12:01PM (#6947127)
Re:Show HN: Vector - A High-Level Programming Language for G... by goldenkey on Saturday December 21, 2013 @03:38PM (#6947950)
Startup culture is a cancer. Quite trying to sway him from true greatness. All hail Emperor Bozos.
Re:Show HN: Vector - A High-Level Programming Language for G... by zhemao on Saturday December 21, 2013 @11:59AM (#6947115)
Hey thanks. I've actually already accepted a full-time offer from Amazon, so I'm not looking around anymore. My teammates have all accepted full-time offers from other companies as well.
Re:Show HN: Vector - A High-Level Programming Language for G... by kika on Saturday December 21, 2013 @09:31PM (#6949083)
When I was about your age I've joined IBM for 6 years. The work was great and I liked everything I did there (well, at least for the first 3 years). In the hindsight though I realize that I basically wasted these years.
Re:Show HN: Vector - A High-Level Programming Language for G... by 14113 on Tuesday December 24, 2013 @08:44AM (#6959311)
Ah, interesting. Of course, you can do the same thing in one for loop in C like so:

    for(i=0,j=0;i<10;j=(j+1)%5, j==0?i++:){
    }
Not that you ever would of course, but it does demonstrate the power of for loops in C.