Re:More, a CSS compiler
by jameskilton on Tuesday May 08, 2012 @08:07PM
(#3946451)
Have you checked out SASS and the new libsass library? If you want speed, you can't beat a 0-dependency c / c++ library.
As I said: in a Java environment, which rules out C/C++.
20 times the speed of JRuby based Less is not shabby though.
edit: Performance was never the top motivation though. Architectural concerns and resilience were. Although based on a decent JavaCC grammar generated parser DSS should be able to eat any CSS and spit it out again as-is. While I certainly wouldn't want to write such dismal CSS, I also don't want to work on some richtext editor CSS just because I want to integrate that with our system.
Re:More, a CSS compiler
by lucian1900 on Thursday May 17, 2012 @04:40AM
(#3986032)
You could try the node.js version of less, I've found it to be much faster.
We opensourced our attempt at CSS generation in a java environment.
The website is a little outdated http://dynamic-style-sheets.org/dss-website/index.jsp but might give a rough overview. The SVN is more up-to-date ( http://opensaga.org/svn/opensaga-dynamic-stylesheets/trunk/ )
In addition to rule nesting and mixings, variables, expressions, etc, DSS allows user-defined functions to be written. Some come with it, including a system do imagemagick or so like processing of images in the CSS.
It's a funny little thing that kind of just wanted to be written that way.