Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Very interesting! I'm also implementing a programming language for my undergrad dissertation (but specifically for agent based simulations).

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...



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++) {
       }
    }


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 :)



Startup culture is a cancer. Quite trying to sway him from true greatness. All hail Emperor Bozos.


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.


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.


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.


Not sure what's going on with the scrolling. It's just a plain static webpage with some CSS. No fancy JS or anything.


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?


Not that I know of - but there was an odd iframe on top of the page that stopped scrolling from working. When I got rid of it, it started working again. odd...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: