TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Nice-looking Python bindings to V8

166 pointsby tbodtalmost 8 years ago

8 comments

andersriuttaalmost 8 years ago
This allows for calling synchronous JS functions from Python but not async JS functions, right? PyExecJS [0] also doesn&#x27;t work with async JS, but Js2Py [1] might.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;doloopwhile&#x2F;PyExecJS&#x2F;issues&#x2F;20" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;doloopwhile&#x2F;PyExecJS&#x2F;issues&#x2F;20</a> [1] <a href="https:&#x2F;&#x2F;github.com&#x2F;PiotrDabkowski&#x2F;Js2Py&#x2F;blob&#x2F;05e77f0d4ffe91ef418a93860e666962cfd193b8&#x2F;tests&#x2F;includes&#x2F;timer.js" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PiotrDabkowski&#x2F;Js2Py&#x2F;blob&#x2F;05e77f0d4ffe91e...</a>
评论 #14592396 未加载
d33almost 8 years ago
Nice! I hadn&#x27;t tested it yet, but I remember trying to run V8 in Python and it was a real mess - I think that even building it was problematic. I might use this project one day. Did you compare your bindings to alternatives?
评论 #14592390 未加载
评论 #14590202 未加载
评论 #14592391 未加载
gkyaalmost 8 years ago
Can anybody tell what&#x27;s going on with the v8py&#x2F;kappa.{cpp,h} files?
评论 #14590666 未加载
评论 #14591128 未加载
startupdiscussalmost 8 years ago
I might be missing something, but can you show an example of calling the API from javascript?<p>You seem to be writing it in python and then calling it from within python in the example.
评论 #14590176 未加载
binoraalmost 8 years ago
Silly question. Can I use this to interact with a machine learning model written in python from javascript on react native ? It&#x27;d be great if someone could point out the feasibility&#x2F;limitations
评论 #14596158 未加载
elmigrantoalmost 8 years ago
Wouldn&#x27;t it be more performant and less awkward to compile python to JS? Or is it for importing JS code into your python program? Well, why don&#x27;t compile JS to Python then?
评论 #14592636 未加载
droidist2almost 8 years ago
Interesting. Could this be used to use SciPy stuff from JavaScript?
jdc0589almost 8 years ago
there are a LOT of Sublime Text plugins that depend on this.<p>EDIT: nevermind. i&#x27;m dyslexic
评论 #14590257 未加载