Arch Linux에서 /bin/sh가 bash로의 심볼릭 링크이기 때문에 실제로 동일한 것을 측정하고 있음을 지적함.
Debian과 같은 시스템에서는 /bin/sh가 dash로, bash보다 시작과 일반적인 성능에서 몇 배 더 빠름.
I work on Bun - happy to answer any questions/feedback
Bun 개발자로서, 질문이나 피드백에 답변할 준비가 되어 있음.
This is neat, but a) it strikes me that what's powerful about shell scripting is that it lets you easily wrangle multiple independent utilities that don't need to be contained within the shell stdlib (maybe I'm missing something but I didn't see any emphasis on that), and b) that embedding a language as a string inside another language is very rarely a good UX.
쉘 스크립팅의 강력한 점은 독립적인 유틸리티들을 쉽게 다룰 수 있다는 것인데, 이 새로운 쉘에서는 그러한 강조점을 찾기 어려움.
한 언어를 다른 언어 내부의 문자열로 내장하는 것은 좋은 사용자 경험이 아님을 지적함.
그러나 이 쉘의 이식성은 실제로 큰 문제를 해결함.
For something which works across all JS runtimes (Deno, Node) and achieves basically the same, check out the popular JS library Execa[1]. Works like a charm!
모든 JS 런타임(Deno, Node)에서 작동하고 기본적으로 동일한 기능을 제공하는 Execa[1] JS 라이브러리를 추천함.
Another alternative is the ZX shell[2] JS library. Tho haven't tested it.
ZX shell[2] JS 라이브러리도 대안이 될 수 있음. 하지만 테스트는 해보지 않음.
I love Bun. I no longer use Node for development. Hardly any gotchas anymore. It's just faster all over. Especially bun test. Highly recommended. Thank you @Jarred!
Bun을 매우 좋아하며, 더 이상 개발에 Node를 사용하지 않음. 거의 문제가 없고, 전반적으로 더 빠름. 특히 bun test가 매우 빠름. 강력히 추천함.
I didn't know, but apparently you can execute a function in JS without parentheses using upticks (`), e.g:
JS에서 함수를 괄호 없이 역따옴표(`)를 사용하여 실행할 수 있음을 알게 됨. Bun도 쉘 명령어를 실행하기 위해 달러 기호($) 함수를 사용하는데, 이는 JS의 이상한 문법 마법 중 하나임.
Great, it's approaching the ergonomics of what Perl has offered for decades. And Perl still does it better.
이 쉘은 수십 년 동안 Perl이 제공해온 인간공학에 접근하고 있음. 그리고 Perl이 여전히 더 잘함을 평가함.
Hacker News 의견
Love that bun just implements anything that could be useful.
This looks exactly like zx by Google. And that's probably a good thing.
/bin/sh가 bash로의 심볼릭 링크이기 때문에 실제로 동일한 것을 측정하고 있음을 지적함./bin/sh가 dash로, bash보다 시작과 일반적인 성능에서 몇 배 더 빠름.I work on Bun - happy to answer any questions/feedback
This is neat, but a) it strikes me that what's powerful about shell scripting is that it lets you easily wrangle multiple independent utilities that don't need to be contained within the shell stdlib (maybe I'm missing something but I didn't see any emphasis on that), and b) that embedding a language as a string inside another language is very rarely a good UX.
For something which works across all JS runtimes (Deno, Node) and achieves basically the same, check out the popular JS library Execa[1]. Works like a charm!
Another alternative is the ZX shell[2] JS library. Tho haven't tested it.
I love Bun. I no longer use Node for development. Hardly any gotchas anymore. It's just faster all over. Especially
bun test. Highly recommended. Thank you @Jarred!bun test가 매우 빠름. 강력히 추천함.I didn't know, but apparently you can execute a function in JS without parentheses using upticks (`), e.g:
Great, it's approaching the ergonomics of what Perl has offered for decades. And Perl still does it better.