Better HN
topnewbestaskshowjobs
Log inSign up

kraihx

18 karma · joined Jun 21, 2022 (4y ago) · 11 submissions

Submissions

comment 2y ago · link · parent

For JavaScript and Perl there is already Minion, which relies on listen/notify + FOR UPDATE SKIP LOCKED.

https://github.com/mojolicious/minion.js

https://github.com/mojolicious/minion

comment 3y ago · link · parent

TAP is awesome when you've got big projects with tests in multiple languages. Got tests written in bash, perl and node? No problem, just combine the results with a single test runner.

comment 3y ago · link · parent

Matrix is the way to go for FOSS.

comment 3y ago · link · parent

They are completely separate programming languages. Go for the original to get the real Perl experience with all the good and bad.

comment 3y ago · link · parent

Not to be confused with the now more than a decade old web framework for Perl, and most popular module on CPAN: https://metacpan.org/pod/Mojo

Or it's port to TypeScript: https://mojojs.org

comment 4y ago · link · parent

Express middleware support is on the planned feature list for 2.0 and beyond. Could also be implemented as a 3rd party plugin using the existing hook API though. https://github.com/mojolicious/mojo.js/issues/66

comment 4y ago · link · parent

Wow, that's a reference i've not seen in a long time. :) I think that Austin Powers joke has not existed anymore in the parent framework for like 8 years!

comment 4y ago · link · parent

Hi, Mojolicious founder here. The "Perl grade" is meant to be a cheeky callback to Perl's famous backwards compatibility (you can run pretty much any Perl code written in the past 30 years with the latest Perl unchanged...yada yada). Perhaps it is a bit too subtle.

Back when i started with Node, one of the first problems i constantly ran into was some NPM module deep down in my node_modules folder breaking its API in a minor version bump and causing hours of cleanup work. So pretty early on avoiding this issue became a priority for the mojo.js port, and i see it as one of the main niches for us to corner. You want to write a fast JS/TS web service that still works in 10 years? Use mojo.js!

Maybe you've got a suggestion for how to better communicate this idea?

comment 4y ago · link · parent

That's a good point, we should probably dial down the nostalgia a bit and give it a more distinctive identity.

comment 4y ago · link · parent

Being able to use features like async/await consistently has definitely opened many doors for the port and made a lot of APIs more elegant. It's also quite fun trying to make more parts of the framework compatible with WHATWG APIs.

comment 4y ago · link · parent

Just in case you missed it, Mojolicious is also available for TypeScript now, and the developer experience is pretty close to the Perl original. ;) https://mojojs.org