Better HN
topnewbestaskshowjobs
Log inSign up

mj1586

140 karma · joined Mar 1, 2016 (10y ago) · 18 submissions

Lead engineer on Modus at Hypermode

https://twitter.com/mattjohnsonpint

Submissions

comment 2y ago · link · parent

Thanks! WebAssembly gives Modus some superpowers, including polyglot language support, near-native performance, and sandboxed isolation. On each of these points:

- Language support: At the moment we're supporting Go and AssemblyScript. We plan to add more languages in the future. Python is definitely on our wish list. I'm also looking into ways to support advancements in the WASM/WASI space to be more language-neutral in the future (but for now, it's just these languages).

- Performance: We leverage Wazero for its AOT compilation capabilities to take a WASM binary and convert it to a native x86 or arm64 in-memory instruction set. We do this when _loading_ the module, so it's cached and prepared ahead of time - before the function executes. We also do a lot of leg work on building an invocation plan (similar to how a database builds an execution plan) that instructs the Modus runtime in how to marshal data in and out of the WASM memory space on each request, in a manner that is compatible with the guest language's default import and and export calling conventions. Thus when the function runs, the hot path is very fast.

- Sandboxing: Each function call executes in its own dedicated memory space, with its own instance of the compiled wasm module. You could completely crash one instance without ever affecting the another. You can't accidentally leak memory, or access memory of the host process or another function execution, because each function run is starting fresh. On top of that, the only system resources are those explicitly exposed to the function instance. So there's zero risk of (for example) accessing a system credential or spawning some other process.

Hope you'll give it a try! :)

2.

Show HN: Modus, serverless framework for intelligent APIs powered by WebAssembly(github.com ↗)

22 points · by mj1586 · 2y ago · 3 comments

comment 2y ago · link · parent

Which bank?

comment 2y ago · link · parent

Was the content of the PDF correct? Or did it also have some strange dates in it?

comment 2y ago · link · parent

I think this is it here, yes? https://twitter.com/abhyudaypratap_/status/17632771389442543...

comment 2y ago · link · parent

This also happened on Leap Day 2020 with Onity locks used in Crown Plaza Hotels. See https://i.imgur.com/GI5A3jW.png. I wonder if it's the same issue never fixed? Can you share with us the hotel chain and/or the lock manufacturer? Thanks.

comment 2y ago · link · parent

Fascinating. I presume you were born on Feb 29 of 2004 or earlier. What did the system do when you tried to purchase? I'm curious how the error manifested. Thanks.

8.

List of 2024 Leap Day Bugs(codeofmatt.com ↗)

3 points · by mj1586 · 2y ago · discuss

comment 6y ago · link · parent

Yes, and you're welcome.

comment 6y ago · link · parent

Moment made up its tokens as it went along. Some match other languages, several do not.

The only real "standard" in this area is LDML tokens, which are part of CLDR. Luxon follows those.

comment 6y ago · link · parent

We (the Moment maintainers) have been saying it anecdotally for quite some time. In our respective podcasts, talks, Stack Overflow comments, etc. The Chrome thing simply encouraged us to make it an official position.

comment 6y ago · link · parent

Hi. You seem to be asking for Temporal. It's coming, we hope! https://tc39.es/proposal-temporal/docs/index.html

comment 6y ago · link · parent

I added to here: https://stackoverflow.com/a/60468711/634824

Thanks.

comment 6y ago · link · parent

I love the image, BTW! :)

comment 6y ago · link · parent

Likely. See https://en.wikipedia.org/wiki/Leap_year_bug

And

https://codeofmatt.com/list-of-2020-leap-day-bugs/

16.

2020 Leap Day Bugs(codeofmatt.com ↗)

312 points · by mj1586 · 6y ago · 146 comments

comment 10y ago · link · parent

Details of the cancellation and the fallout effects can be found here: http://codeofmatt.com/2016/07/01/time-zone-chaos-inevitable-...

comment 10y ago · link · parent

http://codeofmatt.com/2016/02/29/list-of-2016-leap-day-bugs/