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)
Ah, OK. Well, it's never too late to say no to the BigCo and join a startup :)
* http://notonlyluck.com/2013/07/23/reasons-to-join-a-startup-...
* http://notonlyluck.com/2013/07/24/more-thoughts-on-reasons-t...
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.
Re:Show HN: Vector - A High-Level Programming Language for G...
by zhemao on Saturday December 21, 2013 @11:55AM
(#6947103)
Not sure what's going on with the scrolling. It's just a plain static webpage with some CSS. No fancy JS or anything.
Re:Show HN: Vector - A High-Level Programming Language for G...
by zhemao on Saturday December 21, 2013 @12:02PM
(#6947128)
Just tried it again using Chrome on OSX. Works fine for me. Do you have any weird browser extensions that could be screwing it up?
The thing that struck me most about vector was the radically different for loops (compared to C). I'm assuming you're purposefully crippling them to make parallelisation easier? Or is there another reason?
EDIT: One other thing - the website fails to scroll nicely on a mac (in chrome). I had to manually use the scroll bars instead of being able to 2 finger swipe...