HNHacker News
TopNewBestAskShowJobs

ajusa

220 karma · joined September 29, 2017

submissionscomments
ajusa··on Show HN: lit – a 549 byte responsive CSS microframework
I got it to 496 bytes, through a lot of optimization for the deflate algorithm. I also lumped together a few more rules.

SUB 500 BYTES WOOO

(I would have edited my previous comment, but HN closes comment editing after a while

ajusa··on Show HN: lit – a 549 byte responsive CSS microframework
That is an interesting question. It should result in pretty significant improvement, however lit would lose practicality. Optimizing for normal DEFLATE/gzip makes lit more practical, since brotli doesn't have widespread use.

Sometime in the future, when brotli has replaced DEFLATE, lit could be further optimized. In general though, the differences would likely be minimal.

ajusa··on Show HN: lit – a 549 byte responsive CSS microframework
It's actually 506 bytes right now, I was able to shave off a bit by removing default styles for inputs and making it a class. I also did a few more things, outlined in my commit history.
ajusa··on Show HN: lit – a 549 byte responsive CSS microframework
Okay, I already know that most people about to comment on this post will complain about "yet another css framework", "not again", and "isn't this just Skeleton?".

This was originally based off of Skeleton, with the intent being how small I could get the source. I looked online for CSS code golf, but I was unable to find any article, or even examples. The only thing I was able to find was CSS shorthand.

This is my code golf experiment. My goal is sub 500 bytes, anything lower probably will not be possible (then again, I said that about sub 700 bytes). My rules are pretty much full feature parity with Skeleton, and looking similar to the way lit looks right now.

The main way I was able to make lit this small was by optimizing for the gzip algorithm. I learned a ton by doing that, including some counter intuitive things when compressing files.

I would love for people to join me and help out, because I am running out of ideas to make the source smaller.

ajusa··on Show HN: ajl, a simple compile to C++ language
Syntax is inspired by Python, Nim, and probably other languages I have used. Still a little WIP, but enough is there. Let me know if you run into any bugs!
ajusa··on Show HN: Sanictype, a Windows Utility that Autocompletes Words
I wrote this over the course of this week. I needed a faster way to write college application essays, so this was clearly the most productive use of my time :P

All joking aside, this is the first project I have ever submitted to a community forum. This is still very much a work in progress, but it is usable enough where I feel comfortable putting it out there. Right now, I am using it in google docs to write essays and stuff, but it will work for any text inputs in windows.

The main issue it has right now is consistency. Windows api is hard, especially since this is my first time doing anything as low level as this. Keeping track of the word that the cursor is right next to is a pain, and if there is a better way than the one I have implemented here, please tell me. I would love any feedback that helps me become a better programmer.

← PreviousPage 2 of 2