HackerTrans
TopNewTrendsCommentsPastAskShowJobs

zhxiaoliang

no profile record

Submissions

"Stick" – A primitive/fun interactive demo of a tiny rig to animate layout

cosmiciron.github.io
55 points·by zhxiaoliang·hace 2 meses·15 comments

Show HN: Layoutmaster cures DOM reflow with six simple API

layoutmaster.dev
3 points·by zhxiaoliang·hace 2 meses·3 comments

comments

zhxiaoliang
·hace 10 días·discuss
The site has an elegant design and exudes a calming, inviting atmosphere.

I came across a line in the Social Contract that caught my attention: “The platforms that dominate today have drifted from their original promise. Feeds are flooded with content from accounts no one follows.”

I respectfully disagree with that. IMO the problem lies in the opposite direction. The content we see on these sites is driven by algorithms that reward popular posts and influencers. This creates a system of “stars” and “fans,” which does not foster genuine connections.

The original internet promised to give equal voices to all and allow users to see things they might otherwise miss. When I encounter a new social network like yours, especially one as elegant as this, I secretly hope it will restore that original promise.
zhxiaoliang
·hace 22 días·discuss
I enjoyed the design.
zhxiaoliang
·hace 27 días·discuss
Yes, I agree that nerds still exist… I myself am one, LOL. But there are so much noise out there that our voices can no longer be heard. :(
zhxiaoliang
·hace 27 días·discuss
The nerds era is gone. Welcome to the era of super-villains and self-entitled smartasses.
zhxiaoliang
·el mes pasado·discuss
[dead]
zhxiaoliang
·el mes pasado·discuss
[dead]
zhxiaoliang
·el mes pasado·discuss
Haha, for some reason when phrased like that I get a bad feeling about the outcome of the interview.
zhxiaoliang
·el mes pasado·discuss
I’m not sure if that strategy still works in today’s job market. It might still be, but I’m not the one to answer since I haven’t been on a job interview in quite some time.
zhxiaoliang
·el mes pasado·discuss
Yes, but it feels like yesterday...
zhxiaoliang
·el mes pasado·discuss
The author’s memory is remarkable. I hardly remember my own name that far back, LOL. Back then, I knew I would always struggle with those types of interviews, so I always carried a floppy disk with me to them. The disk contained a few programs I had written, and I would simply tell the interviewers, “Don’t give me a quiz. I’m terrible at it, so if you do, I’m out.” However, if they were willing to look at my capabilities, I would share a few of my programs. That approach actually worked most of the time and got me the jobs. The good old days!
zhxiaoliang
·hace 2 meses·discuss
[dead]
zhxiaoliang
·hace 2 meses·discuss
Yes, it’s a late addition to that library. The dancing text demo uses the “weighted exclusion” feature of the VMPrint engine, which essentially creates an object composed of horizontal bars. However, the engine also offers another mode that constructs exclusion objects by combining primitive shapes like circles and polygons. This “stick” demo demonstrates that. In doing so, I added a small set of APIs to allow programmatic control over these primitive parts, which essentially turns this into a rudimentary rigging system. I’m uncertain about its practicality in real-world applications, but it was interesting to observe.

I’m glad that you’re trying the Layoutmaster library in your projects. You can also feed it video with a predominantly white background (or any other solid color). Additionally, the video can contain multiple objects, and the algorithm treats them uniformly.
zhxiaoliang
·hace 2 meses·discuss
Thank you! This can make it quite easy to create demos like those “dragon swimming through text” animations that became popular recently. I had no idea what other real-world applications we could use it for, but it was fun to be able to do it, LOL.
zhxiaoliang
·hace 2 meses·discuss
That’s a cool story! Thx for sharing. Back then programming was rough, but the sense of accomplishment from completing even simple tasks was real and rewarding.
zhxiaoliang
·hace 2 meses·discuss
Thanks for the help and clarification.
zhxiaoliang
·hace 2 meses·discuss
It's strange that happened. I had no issue loading it on my iPhone 16e in Safari or Chrome... Could it be somehow your browser prevent Javascript from loading?
zhxiaoliang
·hace 2 meses·discuss
I did not make the demo specifically for mobile browsers, but it does work rather well on my iPhone 16e with Safari and Chrome. I also tried it on my Pixel 10 and did not encounter any issues. The library itself is tiny ~250K so it should load right away.
zhxiaoliang
·hace 2 meses·discuss
LOL sorry my bad. Should have been more specific. It’s a demo of my layout library. The stick figure is made with a few primitives to form a so-called exclusion assembly which causes texts to flow around them. But what’s unique about it is that these primitive parts can be controlled independently via programmatic control. This turns them into a little rig essentially. I thought it was funny and could be even useful so I shared it.
zhxiaoliang
·hace 2 meses·discuss
The Web is dead anyway. It never became the movement we dreamed it would: the democratization of information, communication, and expression.
zhxiaoliang
·hace 2 meses·discuss
You can use primitive exclusion assemblies to create a rig and programmatically control it to animate a layout in Layoutmaster.