Live data from Hacker News

Nice things with SVG

fuma-nama.vercel.app

61–70 of 112 posts

Re: Nice things with SVG

#64
post #53
post #35

Complex animated SVG is fun to roll until you get into the weeds of SMIL and Safari bricks your phone for missing a leading 0 on a float or some random nonsense.

"bricks"?

It's slang; picture a literal brick (akin to a rock or stone). Your device is "bricked" if something has rendered it useless.

Re: Nice things with SVG

#65
post #53

Earlier quoted context omitted.

"bricks"?

It's slang; picture a literal brick (akin to a rock or stone). Your device is "bricked" if something has rendered it useless.

I think GP is suggesting that the idea the GGP encountered an SVG that bricked their iPhone (without being a specifically crafted exploit payload) is an extraordinary claim that would require extraordinary evidence.

Re: Nice things with SVG

#66
post #14

SVG feels like a very underexplored and underused territory. You can do so many things with it. It really depends on your imagination. But you’ll possibly need to “hardcore” a lot of stuff, so yeah, depends on the use case as well.

It's a fun format that's easy to generate, but after trying to do complicated things with it.. you kind of understand why. It's underused b/c

- Complex graphics render different in different browsers. So you can't rely on it shows up the same (never had the same issue with a PDF for example)

- There are quite a few renderers but they typically don't implement large parts of SVG b/c it's too complex.. So you can never really be sure what parts are "safe" to use.

- Large complex graphics display extremely slowly (again, compared to a PDF)

- There is basically one editor.. Inkscape. And it's got it's own quirks and doesn't match Chrome/Firefox's behavior. Ex: You can add arrows to lines in Inkscape and they don't display in Firefox

It's also just got too many weird corner case limitations. For instance you can embed a SVG in another SVG (say to make a composite diagram). But you can't embed a SVG in to an SVG in to an SVG. On the web if you inline or link an SVG you also end up with different behaviors

Re: Nice things with SVG

#68
post #14

SVG feels like a very underexplored and underused territory. You can do so many things with it. It really depends on your imagination. But you’ll possibly need to “hardcore” a lot of stuff, so yeah, depends on the use case as well.

One thing i'd like to see is an entire site built with SVG and JS without any HTML at all. It's possible but i haven't seen anyone do it yet.

so how can you know it's actually possible?

Re: Nice things with SVG

#69
> Unkey's landing page is a nice example.

That landing page is a nauseatingly laggy experience on a very powerful M1 Pro laptop. And slow to load, all for some fancy lines? I'd take a product that focuses on substance over style as dev. Don't get me wrong, style is important and I like pretty things, but here it seems the tradeoff is not well done.

Re: Nice things with SVG

#70
post #65

Earlier quoted context omitted.

It's slang; picture a literal brick (akin to a rock or stone). Your device is "bricked" if something has rendered it useless.

I think GP is suggesting that the idea the GGP encountered an SVG that bricked their iPhone (without being a specifically crafted exploit payload) is an extraordinary claim that would require extraordinary evidence.

Also easy to interpret generously as hyperbole.

Especially if you know how easy it can be to accidentally do something that works fine in other browsers but makes Safari kill the tab.

Doesn't actually brick the device but a fairly hard failure in the browser.

Post reply on HN