Live data from Hacker News

Piscina – The Node.js Worker Pool

github.com

21–30 of 51 posts

Re: Piscina – The Node.js Worker Pool

#22

Is it just me, or do I see a trend in naming projects using romance language words (Italian/Spanish/France)? Does it sound more exotic? Are these words less crowded?

I'm curious on why you call these languages "romance" languages. "Piscina" is a Portuguese word for "pool", by the way.

[deleted]

Re: Piscina – The Node.js Worker Pool

#23

Is it just me, or do I see a trend in naming projects using romance language words (Italian/Spanish/France)? Does it sound more exotic? Are these words less crowded?

I'm curious on why you call these languages "romance" languages. "Piscina" is a Portuguese word for "pool", by the way.

Romance languages are those derived from vulgar latin. They are called romance because Rome (Roma)

Portuguese is also a romance language, as Spanish or Italian. Piscina also means pool in Spanish by the way :)

https://simple.wikipedia.org/wiki/Romance_languages

Re: Piscina – The Node.js Worker Pool

#24

Is it just me, or do I see a trend in naming projects using romance language words (Italian/Spanish/France)? Does it sound more exotic? Are these words less crowded?

I'm curious on why you call these languages "romance" languages. "Piscina" is a Portuguese word for "pool", by the way.

Maybe it is just an English thing, but Romance languages are anything evolved from latin (predumably spread by the Roman empire, hence "romance"). Portuguese is included in the list, fwiw.

https://en.m.wikipedia.org/wiki/Romance_languages

Re: Piscina – The Node.js Worker Pool

#25
post #18

Earlier quoted context omitted.

I'm curious on why you call these languages "romance" languages. "Piscina" is a Portuguese word for "pool", by the way.

To quote Wikipedia, "Romance languages (less commonly Latin languages, or Neo-Latin languages) are the modern languages that evolved from Vulgar Latin between the third and eighth centuries." "Piscina" is also "pool" in Romanian, which is, you guessed, a Romance language.

Got it.

In Portuguese they're only known for "Latin languages", which explains my question. ;-)

Re: Piscina – The Node.js Worker Pool

#26

Is it just me, or do I see a trend in naming projects using romance language words (Italian/Spanish/France)? Does it sound more exotic? Are these words less crowded?

I'm curious on why you call these languages "romance" languages. "Piscina" is a Portuguese word for "pool", by the way.

Also in Italy, we say "piscina" in the same way.

Re: Piscina – The Node.js Worker Pool

#27
post #2

Does anybody use this or anything similar? If so, what problems are you solving?

I use workers in deno to evaluate user facing code which may take a lot of time to finish and need sandboxing. Another place it's used in where I want to keep context and reuse it for subsequent code execution for each user.

In deno, you can restrict what the code inside worker can do by passing a map of allowed permissions. I have built a simple privilege system on top of this to allow users different access level.

This is cheaper and faster than spinning up container.

Re: Piscina – The Node.js Worker Pool

#28
post #2

Does anybody use this or anything similar? If so, what problems are you solving?

I maintain a command-line utility which assembles an eBook from scraped .xhtml files. It uses a similar package, workerpool, to process multiple chapters in parallel.

https://github.com/domenic/worm-scraper/blob/master/lib/conv...

https://www.npmjs.com/package/workerpool

Re: Piscina – The Node.js Worker Pool

#29
post #16
post #14

What would be nice is a way of preventing the same job running multiple times concurrently. Like if I start a job and a job with the same parameters was already started milliseconds ago then it automatically awaits the already running job rather than starting another.

You could build a reasonably lightweight supervisor pattern that uses a parameter-derived hash for comparison to handle this kind of situation in your application too. Might be easier and more flexible than asking the library to do it?

That's exactly what I do in python with celery. I order all dicts/lists and hash this final object. If hash is not found in the db, I set hash as the task id. With `track started` setting I never run the same task twice.

Re: Piscina – The Node.js Worker Pool

#30

Is it just me, or do I see a trend in naming projects using romance language words (Italian/Spanish/France)? Does it sound more exotic? Are these words less crowded?

I'm curious on why you call these languages "romance" languages. "Piscina" is a Portuguese word for "pool", by the way.

https://en.wikipedia.org/wiki/Romance_languages
Post reply on HN