Hacker News new | past | comments | ask | show | jobs | submit login

> Esbuild is a JS bundler written in Go that bundles dependencies 10-100x faster than JavaScript based alternatives like Webpack and Parcel.

A JS library calling a golang js-build tool to get the job done. Too funny.




Many golang webapps use JS as their front-end language. Use the right tool to get the job done etc.


Being on the web it would be difficult not to no?


You can server-render pages.


This might shock you, but webpack runs on node/V8 which is written in C/C++.


Nope.


Why is that funny? How is it conceptually different from any of the variety of scripting languages that call out to C bindings or binaries?


It’s funny because in order to compile/minify JS it passes said JS to golang which spits out JS to be run under JS. I’m not allowed to be amused by the circularity? Get a grip.


Why so defensive? I didn't say anything about what you're allowed to do, I simply asked you a question about why you thought it was funny.


Python is a C core that takes Python code and spits out bytecode to interpret and run said Python. What esbuild is doing is not much different than any other interpreted language.

(p.s. JS is not compiled)


It's not much different but yet it needs a solution built in another language to "build" it. I understand the process is not much different from other scripted languages but I find it funny that JS cannot reasonably do this itself.

(p.s. I'm aware)


Well, it's wrong to say that it "can't reasonably do this itself" since JS building itself is actually the status quo and has been for years, this particular solution is just a new take with an aim for improved performance.


And they didn't choose JS to do it is the cherry on top.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: