Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yeargun
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
yeargun
28d ago
https://yeargun.github.io/lilscript/ Sorry
2.
▲
by
yeargun
28d ago
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 mi
3.
▲
Show HN: LilScript makes JavaScript libraries smaller
14 points
by
yeargun
28d ago
|
2 comments
4.
▲
by
yeargun
3mo ago
yeah I saw it, thats a crazy trick
5.
▲
by
yeargun
3mo ago
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,
6.
▲
by
yeargun
3mo ago
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 nat
7.
▲
by
yeargun
3mo ago
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
8.
▲
by
yeargun
3mo ago
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
9.
▲
by
yeargun
3mo ago
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.. Yo
10.
▲
by
yeargun
3mo ago
yeszaaddy people are crazy for sure https://youtu.be/O_nE4O5JRBQ
11.
▲
by
yeargun
3mo ago
yes but not every image/visual is efficiently representable with svgs. sometimes we need rasters
12.
▲
by
yeargun
3mo ago
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&#x
13.
▲
by
yeargun
3mo ago
Same HTML specification does not support .hmml Until they support .hmml imma close my image tags. But thanks for highlighting (its a joke)
14.
▲
by
yeargun
3mo ago
sorry for this, im updating in the meantime you can take a look at this https://www.reddit.com/r/Design/s/hv0hyBow9I
15.
▲
by
yeargun
3mo ago
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).
16.
▲
by
yeargun
3mo ago
If you plan to serve your image with a self contained, single pack. Then with html + rasterized images (.jpeg/.png, ..) you would have to pay extra size overhead caused by base64. With hmml, you dont
17.
▲
by
yeargun
3mo ago
Yeah I agree in fact this is both a packing strategy or a POV of thinking. Next browser versions could support it. <img src="html-underdog.hmml" /> or when tomorrow's genai models mix declarative images with raster
18.
▲
by
yeargun
3mo ago
thats a great observation. In fact, I also tried how efficient wall painting is :D https://x.com/yeargun24/status/1825516494861508943?s=20 And, yes. HTML & CSS rendering without js is doable with like max 400m
19.
▲
by
yeargun
3mo ago
yes exactly. you can go devtools at https://hmml.eddocu.com it downloads single binary that contains media assets (svg, image, video, ..) and html/css blueprint, even js (security concerns!)
20.
▲
by
yeargun
3mo ago
Nope PDF is an irreversible format in terms of editability. (btw I build the world's most performant pdf/pptx editor at https://eddocu.com , I would enjoy if you have any feedback) Regardless, I cant find the relation
21.
▲
by
yeargun
3mo ago
Completely agree with that. But look whats the situation with MHTML. """ Open Bug 40873 Opened 26 years ago Updated 27 days ago """ So if you need some such feature in your web app, and if you are okay with 2kb
22.
▲
by
yeargun
3mo ago
In fact it has lots of use cases, 1- For design tools, they can combine multipe images, texts, svgs and serve them with single pack/abstraction 2- When you need editable/composable images. 3- Future genai models for generating vis
23.
▲
HTML is a native image format, hear me out
(hmml.eddocu.com)
40 points
by
yeargun
3mo ago
|
56 comments
24.
▲
by
yeargun
3mo ago
## What's an image We consider rasters as image (.jpeg, .webp, ..) We also invented svgs, its a vector. SVG is a declarative language, has its own format and has own renderer HTML, CSS is no different. `<div style="backgroun
25.
▲
Show HN: Giving HTML, Canvas Superpowers
(github.com)
2 points
by
yeargun
6mo ago
|
0 comments
26.
▲
by
yeargun
6mo ago
GJ one your library One random recommendation I could give based on my experimentations on both firefox and chromium you can attach symbol based custom properties to each such dom node 'class' and apart from using .matches(), symb
27.
▲
by
yeargun
11mo ago
thanks, I can not make it public since it accesses AI endpoints and stuff. you can use the credentials though. username:ppl password:12345
28.
▲
Show HN: LDF - PDF's successor. Editable, and is just better
(learny.academy)
1 points
by
yeargun
11mo ago
|
2 comments