Code Monkey home page Code Monkey logo

Comments (8)

Ghoughpteighbteau avatar Ghoughpteighbteau commented on August 26, 2024

Yes, compiled CSS options depend on ruby or node.js

If your server doesn't depend on either, and you want to use a compiled CSS language, that's painful. Your options are to compile in the development phase, or bite the bullet and include these dependencies.

More over, where's your sense of adventure, man!

from gcss.

yosssi avatar yosssi commented on August 26, 2024

Thanks for your comments! I wanted to compile an alternate CSS file like Less per HTTP request in Go HTTP server in development mode without any external libraries, and created this package.

from gcss.

einthusan avatar einthusan commented on August 26, 2024

I would of been happier if the syntax was similar to Less instead of Sass lol.

I kinda wish you enforced the { } braces just like how Go enforces them... Feels more consistent.

In any case, do you plan on making it production ready... ? Also, you (or someone in the community) will probably have to remove all my other dependencies on nodejs to actually make it worthwhile... for instance uglify-js, html-minifier, and clean-css... then I really don't need to install nodejs :)

Sorry I was a bit rude to begin with.. At least your contributing where I'm just complaining!!

from gcss.

einthusan avatar einthusan commented on August 26, 2024

@yosssi Oh that makes sense... may I know your use case for why you need to compile for each request?

from gcss.

yosssi avatar yosssi commented on August 26, 2024

@einthusan

I would of been happier if the syntax was similar to Less instead of Sass lol.

I kinda wish you enforced the { } braces just like how Go enforces them... Feels more consistent.

Oh, you like the style of Less... I omitted curly braces and semicolons from the GCSS syntax for making the syntax simple. I think it's a matter of taste.

In any case, do you plan on making it production ready... ?

Yes, I do. I'm going to release version 1.0 (production version) of this package near the end of the year if any issues would not occur until then.

Also, you (or someone in the community) will probably have to remove all my other dependencies on nodejs to actually make it worthwhile... for instance uglify-js, html-minifier, and clean-css... then I really don't need to install nodejs :)

That's a good idea. We have to do a lot of things to remove all dependencies!

Sorry I was a bit rude to begin with.. At least your contributing where I'm just complaining!!

No prob. It was my fault because I didn't say why I started to create this package at all.

may I know your use case for why you need to compile for each request?

When I develop a Go web app, I want to compile GCSS files for each request because I can save the time to execute a compile command and restart an HTTP server process. I know I can do it by using the Grunt's watch task but I don't rely on using Node.js when I develop a Go application.

from gcss.

einthusan avatar einthusan commented on August 26, 2024

@yosssi Thanks for the awesome reply. 👍 I just want to warn you that doing compilation on each http request will significantly hurt your req/sec performance... try boom or wrk to test your req/sec scenario for pre-compile vs on-demand compile ... pretty sure you will see huge differences in how many requests you can serve. In fact, if you see that there isn't much of a performance issue, maybe you can post those results in your readme file or here. Thanks!

from gcss.

yosssi avatar yosssi commented on August 26, 2024

@einthusan Thanks for your advice. Yeah, I'll compile a GCSS file for each request only in development mode. I'll use a pre-compiled CSS file in production.

from gcss.

einthusan avatar einthusan commented on August 26, 2024

Oh lol... I didn't know you were doing that.. Well then.. thanks for the chat.. I will mark this as closed! :)

from gcss.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.