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.

Bare: Run JavaScript Everywhere

41 pointsby delducaabout 2 months ago

10 comments

maxlohabout 2 months ago
It seems that Bare is also built on top of V8 and libuv, much like Node.js.<p><pre><code> Bare is built on top of https:&#x2F;&#x2F;github.com&#x2F;holepunchto&#x2F;libjs, which provides low-level bindings to V8 in an engine independent manner, and https:&#x2F;&#x2F;github.com&#x2F;libuv&#x2F;libuv, which provides an asynchronous I&#x2F;O event loop. (from their README) </code></pre> Moreover, you actually need Node.js and npm to install and run it. You need another JavaScript runtime as a prerequisite to install this JavaScript runtime…<p><pre><code> npm i -g bare (also from their README) </code></pre> I don&#x27;t get it – is it worth it to choose Bare over a more established and welly-maintained solution?
评论 #43559231 未加载
h1fraabout 2 months ago
The marketing website is so confusing, and the name doesn&#x27;t help. There is nothing that node can&#x27;t do in the few presented bullet points, so really I&#x27;m confused. Maybe it&#x27;s the size of the runtime?
评论 #43559021 未加载
评论 #43559338 未加载
tomw1808about 2 months ago
I somehow do not get it, quite possibly a knowledgegap on my side - is that another runtime such as bun? What&#x27;s the difference?<p>Isn&#x27;t the problem always just ios for cross platform - is bare running on iOS? Can you shed some light on this?
评论 #43558955 未加载
评论 #43559435 未加载
gavinrayabout 2 months ago
Some background context that might be useful for other readers wondering what they&#x27;re looking at:<p>1. One of the core contributors on this is an individual who has essentially been the driving force for P2P applications in JS-land (the &quot;hyper&quot; stack, like hyperswarm and hyperdrive). See: <a href="https:&#x2F;&#x2F;github.com&#x2F;mafintosh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mafintosh</a><p>See previous discussion on the &quot;dat&quot; protocol, built on top of the aforementioned (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22909998">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=22909998</a>).<p>2. To that end, the target userbase is something like an &quot;It-Just-Works P2P Developer&quot;. You want a cross-platform solution that allows you to host networked applications on your device, in JS.<p>I&#x27;m not very knowledgeable about this domain. I built a small &quot;dat&quot; application years ago.
freeone3000about 2 months ago
What does this offer as an alternative to node? I’m looking at the supported platforms page and the list is essentially the same as the node ones… does it have a wasm target? An embedded target? What’s new here?
评论 #43558958 未加载
评论 #43558884 未加载
评论 #43558729 未加载
hakaneskiciabout 2 months ago
I found their GitHub repo more useful for technical details:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;holepunchto&#x2F;pear&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;holepunchto&#x2F;pear&#x2F;</a>
评论 #43558842 未加载
sirjazabout 2 months ago
This looks like a great way to get away from electron. Build js apps for the desktop without the overhead of electron
supersuryaanshabout 2 months ago
I have been developing with bare for a while now, normally our app takes 45 MB to run with Node but the same app runs 10 MB lower in Bare.<p>For 10 instances of our app, it is easily 10x10 = 100 MB of saving with Bare.
jamil7about 2 months ago
Oh nice, I once built a very simple version of something like this to be able to run a whole lot of existing JS code on mobile.
kasperisagerabout 2 months ago
This is the thing I&#x27;m working on, happy to answer questions! It&#x27;s always an honor getting roasted on Hacker News.