News for hackers. Stuff that matters.
Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by p01 on Monday October 19, 2020 @08:19AM (#24825643)
Hi there.

I do not use any minifier. I minify the code by hand, and typically prototype ideas and performance tests in normal non-minified code. Once the main idea and approach are settled, I minify the code by hand and keep an eye on the heatmap of the DEFLATE stream to match the 1024 bytes limit.

MONOSPACE took ~4months on an off to create, tallying ~60h of work. You know 2020 + trying to balance work & family, and remain sane these days.

As I said on my site, the Audio and Visuals feed each other to make the background noise based on each dot, and the camera shake based on the Audio. That way I keep the Audio & Visuals are perfectly in synch, for free ;)

For the X & Y camera shake, I use the values 0 and 64 from the Audio buffer. The 64 is because this is the maximum number of characters rendered by the Text writer which happens in the loop updating the Audio buffer. Using something lower than the 64th value would make the last characters of the Text shake in a different way than the rest.

-- P01, author of MONOSPACE,

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by triyambakam on Monday October 19, 2020 @02:22PM (#24829231)
Hi P01, thank for your great work. Can you explain what this means?

> keep an eye on the heatmap of the DEFLATE stream

How is the heatmap generated?

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by p01 on Tuesday October 20, 2020 @05:30AM (#24835400)
I use gzThermal by Caveman - https://encode.su/threads/1889-gzthermal-pseudo-thermal-view...

He is very talented and was nice enough to implement a couple of features to help with this kind of productions when I was working on BLCK4777 - https://www.p01.org/BLCK4777

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by saagarjha on Monday October 19, 2020 @12:15PM (#24827762)
> tallying ~60h of work

This is far less than I expected, which usually means I am hopelessly out of my league in the topic. Great job :)

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by p01 on Tuesday October 20, 2020 @05:36AM (#24835427)
That is 60h for this project alone.

I made 100s of creative projects and failed experiences before getting there. Don't get scared by that number. All it means, is that it is possible to do in 60h. Some would take 600, others 20.

I threw that number away to put it in context with the 4 months since the first prototype. I could only work from time to time. Some times not touching the code at all for weeks.

Re:Monospace: A JavaScript demo in 1021 bytes, winner of the... by ricksharp on Monday October 19, 2020 @09:20AM (#24826091)
Awesome work!

That makes sense. I imagine with some experience you have a decent idea about what you can make fit.