Better HN
topnewbestaskshowjobs
Log inSign up

yeargun

18 karma · joined Sep 7, 2023 (3y ago) · 44 submissions

Building eddocu.com
Submissions

comment 4d ago · link · parent

crazy age we live in

comment 4d ago · link · parent

crazyy

comment 3mo ago · link · parent

https://yeargun.github.io/lilscript/

Sorry

comment 3mo ago · link · parent

Hey,

I don't like Browsers to go CISC way. Simpler -> finer ?

Why?

Any feature that we add up indeed cause some extra CPU cycle. I am not a believer that we need an extra regex like this.

Of course, the overhead caused by this is minimal, so is the benefit. Also very tiny percent of web apps will use this anyways.

It could make the shipped css/js to some extent.

Overal I don't like this tradeoff. I dont want web to have more fanout

5.

Show HN: LilScript makes JavaScript libraries smaller

14 points · by yeargun · 3mo ago · 2 comments

comment 5mo ago · link · parent

yeah I saw it, thats a crazy trick

comment 5mo ago · link · parent

Yeah yeah, tbh even though I branded it like that in the website, packing strategy & overall, its pretty much an apparent technology/library. I realy wanted some such technology 2 years ago, while genai text layouts were lame ash, and I questioned why noone does something like this (diffusion does not play well, or we havent figure it out yet, who knows? https://blog.google/innovation-and-ai/technology/developers-... )

And overall one of the exciting part for me is, to be able to have composable & editable images, hopefuly generated by future genAI models.

And finally, I just realy wanted to rant over what a 'digital image' is

comment 5mo ago · link · parent

GGs on the library

.hmml might be more hassle free then zip options for web apps. With zips, I think it will require more js bundle & processing to work.

meanwhile with .hmml, its already gzip/br compressed in cdns, and decoded natively by the browser

comment 5mo ago · link · parent

yeah but you know.. it needs to be either base64 or a link

thats why .hmml is a packing strategy to mitigate that, single pack

comment 5mo ago · link · parent

hey, yes.

1- html/css has more layout capabilities. 2- js 3- its a packing strategy. If you plan to serve images + svgs altogether, either you need to base64 encode or pack like hmml, binary

comment 5mo ago · link · parent

Slop :D

can you revisit please? What browser are you using ?

The library is not curing cancer And also it's the first time im hearing that its not working.

My goal was to discuss the meaning of what a 'digital image' is.. You can also take a look at this https://www.reddit.com/r/Design/s/7KLKg3wS0D

comment 5mo ago · link · parent

yeszaaddy

people are crazy for sure

https://youtu.be/O_nE4O5JRBQ

comment 5mo ago · link · parent

yes but not every image/visual is efficiently representable with svgs. sometimes we need rasters

comment 5mo ago · link · parent

A: I want to serve html with images all in single pack

You have 2 options.

- Embed images into html (base64, size overhead)

- embed html/css/js into media binaries

.hmml is the packing strategy for option two. 2kb js for encode/decode. And extra rantings around what a 'digital image' is

comment 5mo ago · link · parent

Same HTML specification does not support .hmml

Until they support .hmml imma close my image tags. But thanks for highlighting

(its a joke)

comment 5mo ago · link · parent

sorry for this, im updating

in the meantime you can take a look at this

https://www.reddit.com/r/Design/s/hv0hyBow9I

comment 5mo ago · link · parent

Same zip also helps serving .hmml from cdns smaller (gzip/brotli)

Even then base64 is worse in size though

Also I wouldn't prefer serving a zip and load and render it within my web app (extra overheads).

12