News for hackers. Stuff that matters.
Re:A C implementation of a Sass compiler by pestaa on Monday April 23, 2012 @06:08PM (#3881220)
This is quite fantastic. I think I'm going to make the switch very soon! I hope this'll save a few hundred milliseconds every time I hit `:w`. That happens a lot when I can stand the look of my ugly designs.

On the other hand, I don't see the long-term benefit clearly that would justify writing this in C++. Most of these open source mini-movements hit maintenance and motivation barriers after some time, not performance ones. Although this could mean Sass overcame the prototype phase quite successfully.

Also, at first sight it seems to me that the author of this library is the same as of Sass' itself. (Please correct me.) In this case, congratulations! Must be a real pleasure to see such a big improvement to what once was a pet project. :)

Re:A C implementation of a Sass compiler by akhleung on Monday April 23, 2012 @06:59PM (#3881439)
Actually, I'm the primary developer of the library (I work with hcatlin). Large Sass projects can take a long time to compile (more than several seconds), so the performance increase should not be dismissed. Also, providing a C/C++ library makes it easier to embed Sass in other languages and platforms.
Re:A C implementation of a Sass compiler by alanh on Monday April 23, 2012 @09:39PM (#3881999)
Are there plans to e.g. make the Sass gem we all use take advantage of this native code? That is, will I one day do a `bundle update` and be rewarded with speedy asset compilation?
Re:A C implementation of a Sass compiler by akhleung on Tuesday April 24, 2012 @01:05PM (#3884990)
There's a proof-of-concept Ruby gem, which will mature as libsass matures.

https://github.com/hcatlin/sassc-ruby

Re:A C implementation of a Sass compiler by nex3 on Monday April 23, 2012 @08:03PM (#3881690)
I'm the primary author of Sass. Hampton came up with the original idea, but he hasn't worked directly on the language in years.
Re:A C implementation of a Sass compiler by zampano on Monday April 23, 2012 @07:42PM (#3881622)
I just saw hcatlin's presentation on the future of Sass at RailsConf and he mentioned that large codebases (>50k lines) could take over 30s (think he said sometimes up to 2 minutes). One of his key points was that, since Sass is partially aimed at non-technical designers, it needed to be both faster and more accessible.
Re:A C implementation of a Sass compiler by ayosec on Monday April 23, 2012 @08:32PM (#3881805)
> I hope this'll save a few hundred milliseconds every time I hit `:w`.

“few hundred milliseconds”? In a project where I'm working, our SCSS files take almost 10 seconds to recompile after every little change.

Maybe this new compiler will make the development less painful.

Re:A C implementation of a Sass compiler by nex3 on Tuesday April 24, 2012 @02:36PM (#3885619)
We're also working on improving the compilation speed of the canonical implementation. 3.2 will have some improvements that should help considerably.