Live data from Hacker News

Show HN: Pip Imports in Deno

github.com

21–30 of 46 posts

Re: Show HN: Pip Imports in Deno

#22

The organization name "denosaurs" very roughly works for a combination of deno and python too: snakes fall into the clade of Lepidosaurs. Dinos are Archosaurs. I wonder if there's another programming language featuring a reptile. What's this "Lizard" language Duckduckgo's telling me about?

I always get a kick out of well named projects - good eye!

Re: Show HN: Pip Imports in Deno

#24

This is awesome and the right level of cursed! Reminds me of PythonMonkey, which provides really high level bindings to SpiderMonkey in Python. It ships as both a pip package and a standalone js runtime, the latter of which is very similar to this project! https://github.com/Distributive-Network/PythonMonkey#pythonm...

Connecting these two would be even more cursed

Re: Show HN: Pip Imports in Deno

#26

The organization name "denosaurs" very roughly works for a combination of deno and python too: snakes fall into the clade of Lepidosaurs. Dinos are Archosaurs. I wonder if there's another programming language featuring a reptile. What's this "Lizard" language Duckduckgo's telling me about?

Maybe not to the same degree, but Zig!

Its users are even called Ziguanas.

Re: Show HN: Pip Imports in Deno

#27

Is there an equivalent for Node? I'm glad I haven't needed it since, but I couldn't find anything nearly so seamless when I last looked.

why can't you just exec a python shell command to do the same thing? i'm actually slightly puzzled that "FFI" is its own thing when every language has a way to exec shell commands

Re: Show HN: Pip Imports in Deno

#30
post #27

Is there an equivalent for Node? I'm glad I haven't needed it since, but I couldn't find anything nearly so seamless when I last looked.

why can't you just exec a python shell command to do the same thing? i'm actually slightly puzzled that "FFI" is its own thing when every language has a way to exec shell commands

You can if you are just executing a static python script never changes.

But if you want to call some python functions with your TS input then you would need to serialize the TS input, pass it as an arg to the script, there deserialize it and then call the python function with the input. And if you wanted to call multiple python functions then your first arg to the python script would need to be the name of the function, only then the serialized data. Plus you would need to implement a switch case on the python side to execute the right function.

Post reply on HN