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.

NodeSwift: Bridge Node.js and Swift

103 pointsby joshuawright1111 months ago

7 comments

guzik11 months ago
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 months ago
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 months ago
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 months ago
this is freakin great
elpakal11 months ago
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 months ago
We&#x27;ve got to get out of the business of these pairwise language interop solutions.
评论 #40735802 未加载
评论 #40734197 未加载
goestoo11 months ago
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 未加载