7 ms·
Sol — a sunny little homemade virtual machine
- simplekoala 14y agoI didn't realize the author is a designer till I went to his about me page. Pretty awesome that he can write some serious code. Respect. <edits to correct grammar>
- rasmusfabbe 14y agoThanks.
- okal 14y agoAs a developer very keen on honing my design skills, your work has been an inspiration. Thanks.
- rasmusfabbe 14y agoThat really warms my heart. Thanks for letting me know I can be an inspiration.
- kittxkat 14y agoAlso his article on building your own little programming language is equally awesome. Probably going to be my next project, thanks for giving some pointers! /edit: link to blog post: http://rsms.me/2012/10/07/mylang-tutorial1.html http://rsms.me/2012/10/07/mylang-tutorial1.html
- arnarbi 14y agoWow - he is also the designer brains behind the Spotify brand, which has always been impressive to me.
- jorde 14y agoAnd now at Facebook. The best designers also code but creating your own programming languages and VMs... respect.
- edwinyzh 14y agoWow! He's aaaaaaaawesome!
- skrebbel 14y agoRasmus, since you're reading this thread, I'm curious. If I understand correctly, you did the Spotify brand and looks as it stands. My compliments! What, then, has convinced you to move to a large and very much designed-out webapp like Facebook? I mean, it's not like the Like button and the blue Facebook bar weren't there before you came - this suggests that you downgraded from setting up an entire brand to doing a page here and a button there. But I bet that's not the case, because in that case you wouldn't have gone, right? Note: this is not criticism, quite the contrary: I can't imagine what Facebook has competent designers to offer and I'd like to know. (I wondered the same when they acqui-hired the Amsterdam design consultancy Sofa)
- rasmusfabbe 14y agoActually, we have some of the most talented designers I've ever met. Now, I'm working on things other than those you are bluntly describing. Most design work has been with special projects as well as our "native" apps. However, for the time being I've dedicated myself to software engineering around something I find very exciting. I probably said too much already.
- chuppo 14y agoYes, you said too much already. There was a "spotify" or music service thing leaked from facebook js code a while back. So what you are saying facebookers will integrate even more closely with spotify. Listen to music in the browser with friends? Yey.
- 14y ago
- skrebbel 14y agoWtf? Sure, making a decent VM that can actually do something is no empty feat, but that just means that he's not only a designer but also a programmer. It's not like you're stamped "designer" on your forehead at birth and that's it, you know. I have a friend who can code and bake excellent pie. Amazing!!
- khet 14y agoMost designers can hardly FTP files to their server. Using the terminal is a terrifying idea. Writing code is a mountain of difficulty. I only know because I went through it myself.
- Raphael_Amiard 14y agoBeing good at two things is more impressive than being good at one thing. Making a full featured VM is something that even lot of professionnal programmers can't do. The implication that you are "stamped" something at your birth was totally absent of GP's post.
- makomk 14y agoYeah. Also, I reckon there are some actual production VMs less well designed than this one (for instance, the one Second Life uses for scripting).
- s_tec 14y agoThis warms my heart; It's wonderful to see people doing crazy stuff like this for fun.
- tarabukka 14y agoI wouldn't call the concept itself too far-fetched. As a learning or teaching exercise, though, building virtual machines, languages, JIT compilers and the like is very interesting. I'm assuming that "Sol" is a play on "Lua", because both virtual machines seem similar.
- rasmusfabbe 14y agoA play at Lua: Definitely so. As mentioned and referenced in the article, Lua has been a major source of inspiration. As "lua" means "moon" in Portugese, it was only suiting to name "Sol" "sol" for "sun" in Swedish (my native tongue). However, as @chubot informed me (in a comment here on HN), Lua was once called "sol", or at least "sol" was considered for the name.
- lucian1900 14y ago"Sol" is also "sun" in Portuguese, so even better :)
- drudru11 14y agoI've been following this guy for a while. He did that editor a while back too. The polish on his stuff is excellent. How does he have time for this stuff? I would like to work on foundational projects too, but there are too many practical things that need go get done. It is good to see that somebody has time for this.
- donteatbark 14y agoLove the creativity!
- vhf 14y agoThis is like Minix, but for VM ! :)
- rasmusfabbe 14y agoI compiled my own minix back in the days and ran it on an AST Bravo laptop (monochrome display and very sparse resources.) Fun times, ha ha.
- ojiikun 14y agoSerious (non-snarky) question: are projects like this no longer standard fare for undergraduate CS majors? This example is rather comprehensive and well-documented, but is almost spot on what all 50-75 of us had to do for a Junior-level class at Georgia Tech back in 2003 or so.
- robryan 14y agoFrom my personal experience no they aren't, although I would have loved to have gone somewhere where they were.
- jcurbo 14y agoReally depends on your school. I went to a little podunk college (graduated in '02) with a tiny CS department and we did not do anything nearly this complex. You went to a top 10 CS school and did stuff like this. I don't have any real data but I imagine the situation is probably the same these days.
- CaveTech 14y agoI'm a Canadian and we did something exactly like this as well for a junior level class.
- 14y ago
- brianjolney 14y agoSomewhat offtopic - I really liked the digitized whiteboard looking drawings. Is that off a tablet, or a photographed whiteboard?
- alonecuzzo 14y agoI was thinking the same thing, I think it's a whiteboard.
- Emore 14y agoI believe it's Paper for iPad: https://itunes.apple.com/us/app/paper-by-fiftythree/id506003812?mt=8 https://itunes.apple.com/us/app/paper-by-fiftythree/id506003...
- rasmusfabbe 14y agoI drew those on my iPad using the Paper app. Highly recommended together with a stylus pen.
- brianjolney 14y agoawesome. thanks.
- hk_kh 14y agoNot sure if it's OP, but you can get similar results using inkscape, plus a tablet, if you want.
- webmonkeyuk 14y agoIs it just me that read "Bum queue" instead of "Run queue" in the first diagram
- chubot 14y agoThis is cool, especially the coroutines. BTW the predecessor to Lua was called "Sol" -- moon and sun in Spanish/Portuguese. (It was described in one of the Lua papers, but Google for "lua language predecessor sol")
- rasmusfabbe 14y agoI didn't know that! Ha, ha.
- flashingpumpkin 14y agoI think it's also worth linking to David Beazley's Curious Course on Coroutines and Concurrency [1]. It's exploring the ideas of a task scheduler implemented in Python. This article reminded me of it. It's not a full VM, but about half way into the PDF he goes into quite some detail on how to build a task scheduler modelled after an OS and how it works in an actual OS. Give it a read. [1] http://www.dabeaz.com/coroutines/ http://www.dabeaz.com/coroutines/
- rasmusfabbe 14y agoI will definitely read this. Thanks.
- daurnimator 14y agoBad choice of name >.< SOL (meaning Sun in Portuguese) was a VM built a PUC-Rio. It was the predecessor to Lua (meaning Moon in Portuguese).
- andrewcooke 14y agoyeah - it's a neat project, but my first reaction, too, was to look for a link to lua.
- kiallmacinnes 14y agoVery interesting - handlebars.js's internals suddenly makes so much more sense!