TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

NodeSwift: Bridge Node.js and Swift

103 点作者 joshuawright1111 个月前

7 条评论

guzik11 个月前
Oh my, yes! We have some legacy microservices written in Swift/Vapor (while our main stack is NestJS) and instead of rewriting them to TypeScript, we can use this. Cool!
评论 #40732731 未加载
anonymouse00811 个月前
Wait, so you compile a swift executable that’s callable from js? How would one distribute this client side in browser?<p>I’m not smart enough to understand this. I love swift, vapor and node individually, I don’t get it together
评论 #40731551 未加载
评论 #40733582 未加载
评论 #40731623 未加载
评论 #40731712 未加载
koinedad11 个月前
This is cool, don’t know how I’d use it yet but having access to the huge library of node modules sounds like a win.
floydnoel11 个月前
this is freakin great
elpakal11 个月前
I get paid to write Swift code at the day job, at night I write a lot of node backend code for a side project. I have to say that it&#x27;s pretty refreshing to jump in and not have the (increasingly) opinionated Swift compiler barking at me for everything I do. Unfortunately Swift has also made me extremely paranoid in JS, where I find that everything I write is checked for null, but I don&#x27;t think I&#x27;d trade the freedom in nodeJS for Swift&#x27;s type safety. This is super cool though, well done.
评论 #40742092 未加载
评论 #40732051 未加载
quotemstr11 个月前
We&#x27;ve got to get out of the business of these pairwise language interop solutions.
评论 #40735802 未加载
评论 #40734197 未加载
goestoo11 个月前
So, the main use case of this is for writing Electron apps, the biggest benefit of Electron is having cross-platform apps, using swift code in your Electron app that&#x27;s only work on macOS gonna defeat of propose of an Electron app.
评论 #40732213 未加载
评论 #40732061 未加载
评论 #40732097 未加载