Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Submission + - PythonMonkey breaks down JS Python interop barriers

multipartmixed writes: Developers at Distributive have released very-high-level bindings for running JavaScript (or WASM) code from Python. Originally built to allow the team to use a complex JavaScript library from Python, the FOSS release includes a Node-like `pmjs` Python executable running JS programs or a REPL. A complete CommonJS module system includes support for CommonJS modules written in Python, and the product roadmap promises Python Module ESM interoperability and the ability to run JS events on the Python event loop. Rather than merely exposing the JS engine (Mozilla's SpiderMonkey) to Python, PythonMonkey shares immutable memory backing stores between JS and Python types and automatically emits proxies/wrappers for more complex types like Python Dictionaries, JS Objects, functions, etc. — making it possible to effectively program in both languages simulatesouly. An article by Will Pringle shows how.

Comment Re:Finally! (Score 1) 362

Massive amounts of boilerplate code?

I guess we've been using different SVR4 variants. I just use a case statement to test the first argument...

My beef with upstart et al is that they disable, instead of deprecating, old init. That means now I have to maintain at least three sets of scripts instead of two (sysv, bsd) for software distribution.

And what the hell was wrong with inittab? Let's see, it's succinct, works, and is fully debugged.

Comment Re:Greetings from the Frozen North. (Score 1) 187

Not to point too fine a point on it, but our "friendly" neighbour to the south thinks it owns part of the arctic and can operate there without impunity.

We need to be able to patrol it. Helicopters and Snowcats are not cost-effective patrol vehicles. We also need under-ice sensing and patrol capabilities.

Comment Re:Enquiring Minds Want To Know (Score 1) 580

Heh. Maybe we should add some Klingon Opera to our repertoire!

Their reaction must produce, O2-, they must have to do something with it, it's not like you can put it into a bottle and forget about it, we are talking large-scale here.

Oh shit, my brain is clearly not working up to speed this morning.

O2- + O2- => O2

I guess we can release oxygen gas into the atmosphere without significant concern. :facepalm:

Comment Re:health care being tied to jobs hurts the USA fo (Score 1) 312

Most civilized countries have health care provided by the government, not [directly] the employer.

Employer-funded health care is lose-lose. It is a public health disaster. It turns employees with family members having "pre-existing conditions" into slaves. They might not be picking cotton or calling the boss man "massa", but they are slaves nonetheless, and slavery is WRONG. The only people who win are the plantation owners. Er, I mean, the top 1% of Romney's 47%.

Slashdot Top Deals

You know, the difference between this company and the Titanic is that the Titanic had paying customers.

Working...