Better HN
topnewbestaskshowjobs
Log inSign up

paymycodes

3 karma · joined Jun 15, 2023 (3y ago) · 15 submissions

.

“This is the Solstice, the still point of the sun, its cusp and midnight, the years threshold and unlocking, where the past let’s go and becomes the future, the place of caught breath.”

  Margaret Atwood

.
Submissions

comment 3y ago · link · parent

For whatever reason, disasters are normally covered like this. Death tolls gradually get revised up, survivors gradually get out of hope.

I'd like to believe it's just a natural dynamic of how humans learn information about something sudden and bad, but maybe it's to some extent, deliberate to squeeze as much out of the story as possible.

comment 3y ago · link · parent

So this is interesting. I knew cloudflare had bought S2 ages ago (for a lot!), and that S2 developed the SKIA rendering RBI hack:

- use a modified Google Chrome to capture SKIA draw commands (actually you can just use the DevTools protocol these days, I think the LayerTree Domain exposes usable functionality with regard to this)

- Send the SKIA commands over the wire.

- Recomposite and redraw that on the client.

- Profit (clearly) and save lots of bandwidth.

My product (BrowserBox Pro^0) uses a different method: we just capture screenshots, and send them over the wire.

A couple of years back an ex-Googler from the UK approached me about using the Skia method, told me he had some code I could use, and suggested I use it. I wonder if he knew doing so would have been a patent violation? Surely he wouldn't have suggested it if that were the case, haha! Anyway, I didn't go with it at the time because:

- Complexity of maintaining the Chrome fork, and (if you look at the patent, as I briefly glanced at) it appears running Skia rendering at scale like this is quite complex, necessitating lots of caching, suggesting that parts of that pipeline are expensive, validating my initial concerns about it.

- Complexity of doing the composit on the client. Honestly not that complex, but at the time I was a 1-man shop and the rendering code using screenshots, and the adapting code using network measurements, and adapting the screenshot frequency and resolution was already sophisticated enough and good enough for our customers' uses. We stream it over the faster of WebSocket or WebRTC

- Something about the guy seemed off, honestly, and I was a bit reluctant to work toward some avenue suggested by him because of that.

- I also believed that in the long term, trying to squeeze the most out of the bandwidth (at the cost of code complexity) would be a mistake, because bandwidth capacity is trending up.

- There is an alternative that is probably better than Skia: use ffmpeg to create a video stream out of the screenshot frames and stream that over WebRTC. I haven't added that yet because I value the low resource usage on the server, and adding ffmpeg will change that and add some complexity. But we're willing to do so for any clients that really need it.

- There are some edge cases where Skia chokes with regard to bandwidth: complex gradients, or elaborate text effects. These end up producing Skia commands that are larger than the bitmaps they result in.

- It's plausible that at some point in the future the Skia canvas requirements and the DOM Canvas might diverge, making it not possible to use a simple "clientless" web client for rendering anymore.

These things combined to suggest to me significant tech debt risk in adopting that method, possibly some nefarious risk from a dodgy person, and just the existence of better simpler alternatives made this definitely a no go.

Anyway, I'm posting this here to add to some history and also because it's interesting to me that there is this patent. It's cool there is a patent and Cloudflare is presumably doing good with it. I think the patent is also another reason to not go with Skia, because you definitely don't want Cloudflare acting as a patent troll to come after your nascent startup.

I wonder how this affects folks like Hyperbeam who are also using some sort of "tiled" method to stream the viewport to the client? Or Mighty App--? tho they are probably different as last I looked Mighty App were deep in the weeds with ffmpeg (Sahil was posting his nightstand reading of massive ffmpeg academic tracts, lol!).

If Cloudflare did come after a YC company for patent violation would it be taken care of quietly and a deal made in the background, or would it go the court? Would YC companies get preferential treatment? Anyway, interesting!

0: https://github.com/dosyago/BrowserBoxPro

3.

Web browser remoting using network vector rendering: Cloudflare patent(patents.google.com ↗)

1 points · by keepamovin · 3y ago · 3 comments

comment 3y ago · link · parent

You were right man! Tragic. I'm hoping you're a navy insider and can feed us interesting tidbits about UFOs. Any stories? Do you know how the Navy detected the anomaly? Was a ship nearby or was it their monitoring grid? It's good they informed everyone--I had a feeling they definitely knew what happened or would be the ones who would find it.

comment 3y ago · link · parent

Isn't there a way to use the charge conductivity of water to send a signal--like "electrolysis radio"? Alternately it seems a constellation of cheap radio beacons / high powered IR reflectors, that can float to the surface at a constant rate in event of emergency. So you basically end up with a 2D surface trail of reflectors laid over time since the incident. That should be somewhat helpful to pin down a search area, I would imagine, without relying on a single one, or having a long spool line. But I don't know for sure, just spitballing. Those poor people :(

comment 3y ago · link · parent

Are there patterns to your low energyness? I don't know your situation but some patterns I notice for me:

- low energy after consuming high-GI / high-sugar stuff: like soda

- low energy after too much caffeine

- low energy when feel overwhelmed / stressed / over-worked

Stuff I do to get back on track is basically:

- sitting in yoga position and doing breathing exercises and meditating

- lying down and doing part-by-part body relaxation (similar technique is progressive muscle relaxation)

Stuff that makes me feel energized:

- breathing exercise, something like Ujjayi Pranayama with box breathing. So breathe in for N, hold full for N, breath out for M (M >= N), hold empty for M. Repeat. Use as much of the Ujjayi technique as you like.

- squeeze your lower jaw gum using your thumb and forefinger below the canine tooth. This is some sort of meridian point that I find wake me up.

- do some burpees or other HIT for 20 seconds.

Good luck!

comment 3y ago · link · parent

These are all good answers by the way thank you. Isn't there like an "emergency transponder beacon" or something (like aircraft have?) that ships and submersibles must have? Why can't this be used?

8.

Jurassic Systems(jurassicsystems.com ↗)

2 points · by paymycodes · 3y ago · discuss

9.

Ask HN: Why is there no GPS in the ocean?

2 points · by keepamovin · 3y ago · 13 comments

10.

Canada also admits to UAP crash recovery and attempted exploitation [video](youtube.com ↗)

1 points · by keepamovin · 3y ago · discuss

comment 3y ago · link · parent

I like how some of the keys on your keyboard don't work, ha ha! :)

comment 3y ago · link · parent

Hey, ha ha! I retired my graderjs account so I'll reply you with this one: yeah, definitely it's got to be testable! But you got to be open to it, you know?

13.

One HTML Page Challenge(github.com ↗)

2 points · by paymycodes · 3y ago · discuss