Hacker Newsnew | past | comments | ask | show | jobs | submit | devgonewild's commentslogin

In Australia we recently had a telecom outage with Optus; there were untold amount of damage - card payments at shops/cafes were out. - rural towns completely cut off (a few in particular are only serviced by Optus) - emergency services unavailable; for example a snake wrangler was unable to receive his call-outs - hospitals infrastructure came to a halt

And I'm only going off of examples I have heard. These outages are very damaging.


cashiers always look at me dumbstruck when I tell them about the mechanical offline credit card machines we had when I was a cashier back in 2004


If we're thinking of the same thing, I have fond memories of those at mall department stores in the 80s and 90s.

I think Sears around '04-06 (?) was the last time I saw one of those used. I think I bought a dehumidifier or air purifier.

When they started rolling out credit and debit cards without the raised numbers I thought fondly of those and how they were definitely done for now.


Oh yeah I didn’t even think about the raised numbers thing! Cash is still king.


Whats the difference between this and JS Shadow Realms? At a glance it sounds similar


Sorry, actually went to the website itself and read up on QuickJS - the repo wasn't clear due to lack of read-me.


Based on your comment below I think you figured out the difference - but if you're looking to execute untrusted Javascript from Javascript in Node or the browser, you can pick between ShadowRealm (where available, or using a polyfill) or my library quickjs-emscripten.

Pros of quickjs-emscripten over ShadowRealm:

- You can use quickjs today in any browser with WASM. ShadowRealm isn't available yet, and polyfills have had security issues in the past. See https://www.figma.com/blog/an-update-on-plugin-security/

- In ShadowRealm eval, untrusted code can consume arbitrary CPU cycles. With QuickJS, you can control the CPU time used during an `eval` using an [interrupt handler] that's called periodically during the eval.

- In ShadowRealm eval, untrusted code can allocate arbitrary amounts of memory. With QuickJS, you can control both the [stack size] and the [heap size] available inside the runtime.

- quickjs-emscripten can do interesting things with custom module loaders and facades that allow synchronous code inside the runtime to call async code on the host.

Pros of ShadowRealm over QuickJS:

- ShadowRealm will (presumably?) execute code using your native runtime, probably v8, JavaScriptCore, or SpiderMonkey. Quickjs is orders of magnitude slower than JIT'd javascript performance of v8 etc. It's also slower than v8/JSC's interpreters, although not by a huge amount. See [benchmarks] from 2019.

- You can easily call and pass values to ShadowRealm imported functions. Talking to quickjs-emscripten guest code requires a lot of fiddly and manual object building.

- Overall the quickjs(-emscripten) API is verbose, and requires manual memory management of references to values inside the quickjs runtime.

[interrupt handler]: https://github.com/justjake/quickjs-emscripten/blob/main/doc...

[stack size]: https://github.com/justjake/quickjs-emscripten/blob/main/doc...

[heap size]: https://github.com/justjake/quickjs-emscripten/blob/main/doc...

[benchmarks]: https://bellard.org/quickjs/bench.html


The world would be a better place if Nixon never existed, how is it possible for one person to do so much damage


I've had great success with doing this weighted


Is there a way to get my Mac to actually look like that? I enjoy the old UI


perhaps https://hotdoglinux.com

or simply loading up Mini vMac, entering fullscreen, and basking for a while.


There are no silver bullets for things like these, you really need change - but you are in a position where you are in a very demanding period of your life and you don't really have the resources to ease the burden. I am very sorry that you are going through that.

In terms of refreshing myself, sometimes I find when I am in stressful situations that I just need a bit of grounding, I remind myself of my situation, my objectives, and my direction. But also pay attention to that if something needs to be cut, then work on cutting it. There is also no shame in finishing things later, if you need to defer for a bit - do so

Sometimes you may need to bite the bullet and accept that this is a temporarily hard situation, and it's OK to feel like crap. You know your working towards a goal, but whether you think it's worth it or not that's up to your judgment. It's tough being ambitious unfortunately


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: