Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reformatted and improved Readme.md #2310

Merged
merged 1 commit into from
Feb 16, 2017
Merged

Reformatted and improved Readme.md #2310

merged 1 commit into from
Feb 16, 2017

Conversation

mgreter
Copy link
Contributor

@mgreter mgreter commented Jan 31, 2017

Our main readme was getting pretty dusty and was missing a few new documentation links.

Decided to reformatted the whole thing, fixed quite a few typos and also added a few paragraphs here and there. Feel free to nitpick my english and to add more corrections. I also added two new badges from http://isitmaintained.com/. IMO it looks and reads a lot better already.

If you want to build or interface with LibSass, we recommend to check out the
documentation pages about [building LibSass](docs/build.md) and
the [C-API documentation](docs/api-doc.md).
Current LibSass 3.4 should be compatible with Sass 3.4. Please refer to the [sass compatibility
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"3.4 branch" with a link?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 3.4 branch isn't an official thing. It was an implementation detail because I wasn't ready to drop some large changes into Node Sass. Node Sass now has the latest 3.5 betas on master.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additionally I believe http://sass-compatibility.github.io/ is no longer actively maintained. I did the last round of updates a long time ago.

We should just say that we aim to be compatible the latest Ruby Sass stable release. All known incompatibilities are in our issue tracker.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide an alternative paragraph?

-------

Since LibSass is a pure library, tests are run through the [SassSpec](https://github.com/sass/sass-spec) project using the [SassC](http://github.com/sass/sassc) driver.
Since LibSass is a pure library, tests are run through the [Sass-Spec](https://github.com/sass/sass-spec)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think "sass-spec" is always lowercase

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sass Spec is fine. The "Sass" capitalization is part of the Sass branding.


### DEBUG builds
To build LibSass you need GCC 4.6+ or Clang/LLVM. If your OS is older, you may need to upgrade
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a minimum Clang/LLVM version too to call out?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With clang it's hard to know. If you're on OSX (which is where clang is prevalent) it'll just work.

Readme.md Outdated
LibSass is a C++ port of the original Ruby Sass CSS compiler with a [C API](docs/api-doc.md).
We coded LibSass with portability and efficiency in mind. You can expect LibSass to be magnitudes
faster than Ruby Sass. We would even go as far and claim that it is the fastest CSS compiler
around, which should be the case given it's written in C++.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can expect LibSass to be magnitudes faster than Ruby Sass. We would even go as far and claim that it is the fastest CSS compiler around, which should be the case given it's written in C++.

This bragging is unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide an alternative paragraph?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried the rewrite it a little and be more "humble". I really would like to keep the emphasize on the speed, because that is IMO one of the core and key assets of libsass.

Readme.md Outdated

Developing
----------

As you may have noticed, the LibSass repo itself has
no executables and no tests. Oh noes! How can you develop???
As noted above, the LibSass repository does not contain any binaries or other way to execute
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm struggling to follow this paragraph. IMHO the original was good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean exactly? IMO it adds a bit more information than the old wording. And I don't think the old wording was any less confusing? IMO the whole paragraph does not make much sense, but I've left it in since it already was there.

Readme.md Outdated
LibSass
=======
LibSass - Sass compiler written in C++
======================================

by Aaron Leung ([@akhleung]), Hampton Catlin ([@hcatlin]), Marcel Greter ([@mgreter]) and Michael Mifsud ([@xzyfer])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's worth distinguishing current maintainers. People still contact Hampton directly who then proxies messages on to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you provide an alternative paragraph?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I separated it into two lines with "current mainters" and "original creators"

@xzyfer
Copy link
Contributor

xzyfer commented Feb 2, 2017

Nice work on the update. I found the language a little hard to follow in some places. I've left comments.

Readme.md Outdated
- https://github.com/sass/perl-libsass (Perl)
- https://github.com/wellington/go-libsass (Go)
- https://github.com/sass/sassc-ruby (Ruby)
- https://github.com/medialize/sass.js (JS)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/sass/libsass-net is now under the Sass org also.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I included the url

@mgreter
Copy link
Contributor Author

mgreter commented Feb 4, 2017

I've updated some parts a bit. Please provide alternative wording or paragraphs for the open things. Otherwise it's difficult to improve it without specific feedback. Thanks!

@xzyfer
Copy link
Contributor

xzyfer commented Feb 6, 2017

I'll provide some copy this week.

@mgreter
Copy link
Contributor Author

mgreter commented Feb 15, 2017

@xzyfer still not heard back from you on this one!

@xzyfer
Copy link
Contributor

xzyfer commented Feb 15, 2017

Sorry I've been preoccupied with tracking that Alpine issues since it's blocked 3.5.0.beta.3. Feel free to ship this if you want and I'll PR fix later. My priority atm is figuring out what's causing the memory issues with Alpine.

@mgreter
Copy link
Contributor Author

mgreter commented Feb 16, 2017

OK. Btw. I suspect a compiler (buggy toolchain) issue on alpine linux. I debugged it down to the heisenbug on the assembler level, but couldn't see why accessing a function jmp fails after the same jmp/function was called successfully before many times at the same memory location. I verified that the memory location is not overwritten. So for me this is a "wont fix" until we see similar issues on other platforms!

@mgreter mgreter merged commit bce8c39 into sass:master Feb 16, 2017
@mgreter
Copy link
Contributor Author

mgreter commented Feb 16, 2017

FWIW. The only difference between node-sass and sassc is that node-sass seems to flag some memory pages as non-executable (as seen when running with strace), which could be a reason why the jmp could fail. But I wasn't able to really make a connection (the raw memory addressess don't seem to overlap).

@mgreter
Copy link
Contributor Author

mgreter commented Feb 16, 2017

And in the end musl libc is a very young libc implementation (initial release is less than 5 years old, so chances are that it is simply a bug in said musl libc implementation) ...

@xzyfer
Copy link
Contributor

xzyfer commented Feb 16, 2017

I suspect you're correct. However if there is something we can do to mitigate the issue I'd like to try. Alpine is becoming a very important tool within the containerisation realm.

@mgreter mgreter self-assigned this Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants