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.

Bun v0.7.0

206 pointsby sshrootalmost 2 years ago

17 comments

dsissitkaalmost 2 years ago
Perhaps a bit awkwardly named but nice:<p>&gt; bun --smol is a new CLI flag which configures the JavaScriptCore heap size to be smaller and grow slower, at a cost to runtime performance. This is useful for running Bun in memory-constrained environments.<p>From the example they gave (<a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;IDHTaAh.png" rel="nofollow noreferrer">https:&#x2F;&#x2F;i.imgur.com&#x2F;IDHTaAh.png</a>):<p><pre><code> Bun 343 MB Bun with --smol 54 MB Node.js 138 MB</code></pre>
评论 #36825648 未加载
评论 #36825235 未加载
评论 #36824534 未加载
评论 #36823949 未加载
bnchrchalmost 2 years ago
Honestly, I havent been a nodejs dev for a long time.<p>However from the outside in, if an alternative runtime was to steal the show so to speak, then Bun looks like it might be able to do it.<p>- Full interoperability with the existing ecosystem<p>- Typescript and JSX as first class<p>- Blazing fast compile times<p>- Can serve a very large number of concurrent requests<p>- And a standard library that does as much as the go stdlib<p>Someone please tell me why this is a bad project, because so far I want to jump in.
评论 #36825074 未加载
评论 #36824362 未加载
评论 #36825822 未加载
评论 #36824342 未加载
Jarredalmost 2 years ago
I work on Bun. Happy to answer any questions
评论 #36826046 未加载
评论 #36825079 未加载
评论 #36826912 未加载
评论 #36824809 未加载
评论 #36825363 未加载
评论 #36831720 未加载
评论 #36825582 未加载
评论 #36827354 未加载
yanis_talmost 2 years ago
I wonder if Bun will end up being something that will eventually drive the innovation within Node.js, and maybe even merge with it (remember io.js?)
评论 #36826262 未加载
评论 #36823857 未加载
评论 #36823855 未加载
评论 #36825573 未加载
评论 #36824079 未加载
评论 #36824304 未加载
评论 #36825228 未加载
todd3834almost 2 years ago
Does anyone else think the logo looks more like an onion than a bun?
评论 #36823943 未加载
评论 #36824813 未加载
评论 #36824973 未加载
LAC-Techalmost 2 years ago
Doesn&#x27;t work on my system unfortunately (WSL 2)<p><pre><code> LAPTOP-162NUQO7:~$ curl -fsSL https:&#x2F;&#x2F;bun.sh&#x2F;install | bash ######################################################################## 100.0% bun was installed successfully to ~&#x2F;.bun&#x2F;bin&#x2F;bun Manually add the directory to ~&#x2F;.bashrc (or similar): export BUN_INSTALL=&quot;$HOME&#x2F;.bun&quot; export PATH=&quot;$BUN_INSTALL&#x2F;bin:$PATH&quot; To get started, run: bun --help LAPTOP-162NUQO7:~$ ~&#x2F;.bun&#x2F;bin&#x2F;bun Error relocating &#x2F;home&#x2F;lewis&#x2F;.bun&#x2F;bin&#x2F;bun: unsupported relocation type 37 Error relocating &#x2F;home&#x2F;lewis&#x2F;.bun&#x2F;bin&#x2F;bun: unsupported relocation type 37 Error relocating &#x2F;home&#x2F;lewis&#x2F;.bun&#x2F;bin&#x2F;bun: unsupported relocation type 37</code></pre>
评论 #36824709 未加载
jasfialmost 2 years ago
Does anyone know why Bun (without --smol) sometimes uses much more memory than Node? Is this due to not being v1 yet?<p>I&#x27;m also wondering if some old benchmarks could now be irrelevant.
评论 #36824792 未加载
评论 #36825722 未加载
评论 #36824460 未加载
评论 #36824628 未加载
评论 #36825560 未加载
评论 #36824662 未加载
jwockyalmost 2 years ago
Not having much luck running non-strict Node.JS classic scripts in Bun using CommonJS&#x2F;require. Errors about strict mode despite not using &quot;use strict&quot;;. Is there a flag to allow such scripts to run?
评论 #36841910 未加载
评论 #36827665 未加载
jsomedonalmost 2 years ago
AFAIK there are competing javascript runtimes including Bun, Deno, Rome, Node and other runtimes that I don&#x27;t know about. So which one to use?
评论 #36827611 未加载
评论 #36827332 未加载
评论 #36827589 未加载
revskillalmost 2 years ago
I don&#x27;t see much deployment webapp story on the Edge&#x2F;Lambda environment with Bun yet.
评论 #36823902 未加载
dave1010ukalmost 2 years ago
Has anyone managed to get bun running with ChatGPT Code Interpreter?<p>I can get all the help text displaying but there&#x27;s no output or error when running a JS file with the latest release (or even one from last year).<p>The latest Deno release works out the box with Code Interpreter. There might not be much benefit to running Bun over Deno but if like to try.
评论 #36824742 未加载
machiawelicznyalmost 2 years ago
I don’t like binary lockfile. How do I know if something is properly resolved?
评论 #36825845 未加载
maxpertalmost 2 years ago
I am excited for something other than v8 getting some attention. But at the same time I know over time it&#x27;s gonna get bloated like Node.js
评论 #36824738 未加载
38almost 2 years ago
still no Windows
djoldmanalmost 2 years ago
Going to <a href="https:&#x2F;&#x2F;github.com&#x2F;oven-sh&#x2F;bun">https:&#x2F;&#x2F;github.com&#x2F;oven-sh&#x2F;bun</a><p>It seems bun is:<p>Zig 52.0%<p>C++ 19.2%<p>JavaScript 14.6%<p>TypeScript 12.1%<p>...<p>which is an interesting mix. I assume the JS is intended to be TS eventually or actually is right now. But why all the C++?
评论 #36825438 未加载
ShadowBanThis01almost 2 years ago
You forgot to say what it is.
评论 #36824409 未加载
评论 #36824984 未加载
aranwalmost 2 years ago
Is it only me that finds it strange that engineers working in a particular language will get another language to solve issues with said language? e.g. Javascript using C, C++, Zig, Rust, etc. Ruby and Python is also similar situation there are tools, libraries and such built in other languages
评论 #36824418 未加载
评论 #36824433 未加载
评论 #36824845 未加载
评论 #36825265 未加载
评论 #36833764 未加载
评论 #36824446 未加载