r/node • • Jul 09 '22

Deno in 2022

Post image
809 Upvotes

177 comments sorted by

29

u/asking_for_a_friend0 Jul 09 '22

ok I admit I am out of loop I know abt Deno well but what's that

8

u/[deleted] Jul 09 '22

bun is a (faster) drop-in replacement for node and related tooling (typescript, jsx, npm, etc.)

9

u/[deleted] Jul 09 '22

Why would it be preferred?

37

u/StoneCypher Jul 09 '22

It won't be. Just like esbuild, rome, et cetera.

It's people who make minor tools trying desperately to make those minor tools the norm so that they can have five years on the public talk circuit

21

u/mgutz Jul 09 '22

Lots of people use esbuild. You're literally wasting development time if you aren't using it or something similar like swc (rust). Try using something like ts-node vs tsup, the difference is night and day.

-22

u/StoneCypher Jul 09 '22

Lots of people use esbuild.

It's a relatively rare tool

 

You're literally wasting development time if you aren't using it or something similar like swc

Not really, no.

 

Try using something like ts-node vs tsup, the difference is night and day.

Thanks, I'm perfectly fine with my existing tools. I don't need to be instructed by a stranger who knows nothing about how I work, when I didn't ask.

18

u/wowredditisgreat Jul 09 '22

It's not that rare - storybook comes to mind that actively supports it, and they are using by just about all companies.

Esbuild was basically a necessity at my job. We have 100s of engineers making PRs and rebuilding our apps. This saved a huge amount of time in CI and made our deployments significantly faster.

Esbuild/swc are practically drop-in replacements nowadays for older toolchains

-19

u/StoneCypher Jul 09 '22

storybook comes to mind that actively supports it, and they are using by just about all companies.

I can't imagine why you believe this. It's not the case.

I don't understand why junior engineers in this sub frequently say "I used this tool at work, and that means basically all companies use it."

Most companies' software was started before that tool existed, and most companies haven't switched to it.

Most companies don't write software in one programming language. No tool in any language is used by "most companies."

Do you really think that tool is used at C# shops, or Haskell shops, or Ruby shops, or Python shops?

Please stop pretending that you know what most companies do. Thanks.

15

u/wowredditisgreat Jul 09 '22

In my 7 years of professional software engineering, and 4 companies, every company I've worked at uses it. Sure, I should have said "a lot of companies" but this isn't the point.

I work in the startup scene though... So yes, perhaps massive companies with older tech aren't using it but they also move significantly slower.

-15

u/StoneCypher Jul 09 '22

In my 7 years of professional software engineering, and 4 companies, every company I've worked at uses it

"I've had four jobs, and they used it. That means almost all companies use it."

Wow, seven whole years.

 

Sure, I should have said "a lot of companies"

You'd still be wrong. It's a relatively rare tool.

 

I work in the startup scene though... So yes, perhaps massive companies with older tech aren't using it but they also move significantly slower.

Hi, I've been in the startup scene. At seven years and four jobs you're quite new. Let me help you understand what this looks like with more experience.

When you've been around decades, you realize that most startups are founded by children who've only had one or possibly zero jobs, and grab whatever is popular on social media to build.

When you've been around for decades, you also understand that startups are extremely rare by comparison with regular businesses. There are probably more regular software companies in Philadelphia than there are funded startups on Earth, unless you're that kind of person who still calls Atlassian a startup.

Regular software companies aren't full of 22 year olds who are looking to moon lambo their mail order dog food store stock, and think that grinding leetcode is how to become an engineer.

Those companies and their sensible engineers use boring tools, because they don't want to have to remake the product in 9 months when their hipster shit collapses.

Signed, everyone who remembers when people like you thought only giant old companies weren't using meteor stack, or mongo, or coffeescript, or apollo, or xslt, or merlin, or whatever the dumb nonsense of the week is

Most software companies don't have web interfaces. That alone should tell you how rare storybook is: even if every single software company that had a web frontend used it, best guess that's still less than 5% of software companies

Please, try to understand that if you've had four entire startup jobs, you don't actually have information on how all software companies work

The amount of self delusion involved in "my four niche startup jobs define what software is" is just astonishing

→ More replies (0)

3

u/ron_bad_ass_swanson Jul 10 '22

Man I wouldn’t want to work with you. You seems like the developer who would go against using new tools because they are all « shiny new tools »

1

u/StoneCypher Jul 10 '22

Man I wouldn’t want to work with you.

You will never have the opportunity.

12

u/iChloro Jul 09 '22

A lot of people use Vite for new apps which uses esbuild under the hood.

8

u/MichealPearce Jul 09 '22

This is what I was gonna say. So pretty much any vue or svelte app is gonna use esbuild. Vite also supports react, prereact, solidJS, vanilla, and much more I am sure. Esbuild also has like 6+ million weekly downloads alone and has a steady, upward growth. So I really don’t understand why they’re saying it’s a rare tool, and dying on this hill. They’re probably using it daily without even knowing it. In the context of node, It’s like saying wonderwall is a rare song for beginner guitarists to learn lol

Atleast they’re a mega mind, god tier, programmer so they can write such elegant and beautiful code that’s perfectly documented all by their self. Hell, I’m sure they don’t even have to google anything. They just memorized it at all the age of 12 and has been at a Fortune 500 ever since.

I wish I could be like them, they’re so cool and smart. I’ll never be flexible enough to stick my head that far up my ass tho, I guess I’ll just have to continue being a decent and friendly person

0

u/[deleted] Jul 09 '22

[deleted]

-5

u/StoneCypher Jul 09 '22

Yes, you can. Thanks, I've already pointed that out in other comments.

Next, try comparing it to other things that do the same job.

After that, ask yourself "how much of this is CI/CD?"

2

u/zxc_raze Jul 09 '22

"how much of this is CI/CD?"

you can ask the same question about every build tool

1

u/StoneCypher Jul 09 '22

Yes. And then, you turn around and look at things that aren't build tools.

That was actually my point.

-1

u/[deleted] Jul 09 '22 edited Jul 09 '22

performance?

(which costs money if your PaaS bills you per ms)

edit: to the downvoters, this is their official pitch, if you ask me if this enough, my personal opinion might differ. I posted this meme with the focus on the attention bun got within days, deno haven't gotten in years

can it comepete with node? different story

54

u/[deleted] Jul 09 '22 edited Jul 09 '22

if you care about performance while having to use NPM/Javascript, you're probably part of a big company already. People/companies with small traffic have performance in the least of their concerns.

If you're a big company, replacing NodeJS with either Deno or a new shiny technology nobody knows called "Bun" would raise eyebrows and you would be fired or laughed at even for suggesting that.

It's already hard enough to update packages without having people questioning your practices or having to do research on if and what those updates break. And you guys think big companies will care about a new technology nobody knows yet just because "it has better performance"?

Programming is multi-dimensional. It's not only about performance, not everyone cares as much about performance, and the people who do care about performance are usually big clients and also care about stable tools because they have big stakeholders to care about. Besides, if you care about performance that much, why use NodeJS/JS in the first place. Use Golang, C++, Rust, C, languages that have existed for years, backed by humongous companies and have stable ecosystem and community.

11

u/tuxedo25 Jul 09 '22

if you care about performance while having to use NPM/Javascript, you're probably part of a big company already.

your entire premise is built on a ridiculous assertion.

9

u/besthelloworld Jul 09 '22

I agree with OP on this one. If you want to sit out on innovation because "the big companies shouldn't use it because it's unproven" that's fine. But the fact is that the big companies don't do shit until communities made stuff work and be stable for free. If you're interested in the technology, then Bun is stable enough to start playing with and that's an important milestone.

Also, "why even bother getting more performance of our JavaScript" is a terrible argument. It's a language people know and are comfortable with, and so it's always worth getting more out of it. It's also not just raw performance. The DX ends up being better too.

9

u/[deleted] Jul 09 '22

If you want to sit out on innovation

That's really just FUD.

There's a risk to using new and immature tech. If you don't see that you're pretty blind.

Also, runtime perf is rarely an issue. You get into DB perf issues much sooner. If you do get into perf issues it means you have traffic, which means you have money so you can just scale your infra. And if that becomes an economic issue, you can rewrite the hot paths with anything that gives you a real perf boost like Go, C++, Rust, etc.

3

u/besthelloworld Jul 09 '22

It's not FUD. FUD is bullshit crypto speak for "someone who makes a point that disagrees with what I want to believe." I could just as easily say that everyone who says that "runtime perf is rarely an issue" is "spreading FUD."

Of course there's a risk. No one is denying that. No one is saying that enterprise companies should be using it today. What I, and other advocates, are suggesting is that it's a tool that deserves your attention.

Even if you don't use it, it's important that framework and tooling devs see it. If they see it and work to make sure their tools are compatible with it, then eventually it could be a stable standard that's faster that the current standard with zero work on behalf of devs like you and I.

But what you and I could do at the very least is just play with it. If you've got a side project, just try it out. And if (when) you find bugs, report them.

1

u/StoneCypher Jul 09 '22

It's not FUD. FUD is bullshit crypto speak

Uh, no. FUD is military terminology from the 1950s, and was largely introduced to programming by Linux people talking about efforts against the GPL in the 1990s. It was also used heavily in the public battle between Microsoft and IBM over OS/2 in the 1990s.

You don't seem to know much about programming, and you seem to be very enamored with teaching incorrect history.

1

u/MousseMother Jul 09 '22 edited Jul 09 '22

Max my son, general656 guy is absolutely fucking right. I know you are little excited about your little new toy, but nothing is going to change much, the earth will remain same, and JavaScript developers will never stop creating news framework and libraries, (they are doing embedded in JavaScript nowadays, kill me someone) just because they don't want to learn another language, and we can't do anything to stop them.

And another point is it's not just there to replace node its taking over all of these

Longer-term, bun intends to replace Node.js, Webpack, Babel, yarn, and PostCSS

-14

u/[deleted] Jul 09 '22 edited Jul 09 '22

you write a wall of text and miss the point. should a big corp replace node? nope and nobody said this, it's a totally different discussion wether a big corp should jump on any new hype train or not (spoiler: ofc not), idk who you want to convince. the rest you wrote isn't any better.

it's good that new competitors enter the space. it benefits innovation and pace. deno didn't deliver in anything, it was just another (imho in some parts worse) node while bun offers way more than deno (which was the initial message) and re node, perf is just one thing.

but cmon, write us another wall of text haha

18

u/ell0bo Jul 09 '22

Being a dick isn't exactly going to encourage people to check out your shiny new toy

1

u/MousseMother Jul 09 '22

Well said.

4

u/[deleted] Jul 09 '22

So your main concern seems to be that I wrote "a big wall of text"? While being rude and mocking me? Good luck then representing your tool and offering good arguments to the community then for why people should use your new shiny tool.

3

u/StoneCypher Jul 09 '22

performance?

(which costs money if your PaaS bills you per ms)

😂

0

u/FountainsOfFluids Jul 09 '22

performance?

(which costs money if your PaaS bills you per ms)

Omg, that's backwards, lol!

If a tool takes 1 minute to complete a task, and another tool takes 30 seconds to complete the same task, the second tool is cheaper on a per second basis.

0

u/[deleted] Jul 09 '22

[deleted]

-1

u/FountainsOfFluids Jul 09 '22

Ok, I don't know what's going on in your mind, but literally NOBODY is saying to go out and switch all your production servers to bun today.

This is a neat, experimental project that might prove useful at some point down the road, and that some of us might have fun toying with.

I don't understand why people have such a hard time contextualizing things.

0

u/[deleted] Jul 09 '22

[deleted]

2

u/FountainsOfFluids Jul 09 '22

Obviously you don't know what's going on in my mind, because I never suggested anything of the sort at all - you're putting words in my mouth, asshat.

You absolutely did, right here: "If the tool is new and has problems (as Deno and Bun do), it's going to cost significantly more in developer time to workaround those problems than you might have saved in execution time."

The only reason that you would have costs in development time is if you tried to put it into production.

Hold on, let me double check the username... Yup, that was you.

Good, enjoy wasting your time. I'll be shipping useful things instead.

I'm honestly sad for you that you don't enjoy the developments in technology in your field.

I don't understand how people have such low reading comprehension on reddit.

Mine's better than yours.

0

u/[deleted] Jul 10 '22

[deleted]

→ More replies (0)

31

u/JasperNykanen Jul 09 '22

drop-in replacement for node

Source? Since Bun doesn't implement all Node native APIs, it is definitely not a drop in replacement.

6

u/postmodest Jul 10 '22

“It’s faster because it’s a smaller codebase.”

“Does it have full api coverage?”

“Well, er, no…”

7

u/MousseMother Jul 09 '22

It aims to in the longer term, it is said in its readme.

Longer-term, bun intends to replace Node.js, Webpack, Babel, yarn, and PostCSS

31

u/JasperNykanen Jul 09 '22

At it's current state it shouldn't be advertised as a drop-in replacement since that's just misinformation, wouldn't you agree?

I doubt anyone would want to spend multiple hours debugging why the hell their program doesn't run on Bun, but does on Node.js. It was supposed to be a drop-in replacement??!

0

u/FrancisStokes Jul 10 '22

Some people will, and those will be the people who level up the runtime and get it to that goal. Its fine if you don't want to use it.

-5

u/FountainsOfFluids Jul 09 '22

It's close to drop-in, but yes not exactly the same.

11

u/eldnikk Jul 09 '22

So not a "drop-in replacement" then

1

u/siddharth904 Jul 10 '22

It's still in beta

-7

u/FountainsOfFluids Jul 09 '22

YES YOU ARE CORRECT AND SUPER SMART.

1

u/AlexAegis Jul 09 '22

except is only faster at startup, which is good on the edge but calling it just simply faster is not true.

0

u/[deleted] Jul 09 '22

except is only faster at startup,

maybe you go and find it out, am also interested

2

u/Antrikshy Jul 09 '22

Is it a replacement for Node (JS runtime) or also a drop in replacement for those other things? Because I don’t get it.

3

u/siddharth904 Jul 10 '22

a Typescript runtime, includes a bundler, a transpiler, a package manager. And according to rhe benchmarks, is 3x faster than node.

12

u/Djilou99 Jul 09 '22

Heard that it does not work well with node api depending package,anyone faced this issue ?

2

u/location_bot Jul 10 '22

Yuuup, lots of issues trying to use it in an existing codebase. It's cool but not at all ready yet

1

u/[deleted] Jul 11 '22

yep, i just run into issues on the literally first package i wanted to try adm-zip, bun assumes things are const where they are not and it does not know about any advanced buffer API. Also you probably need to polyfill your codebase to make things truly usable since JSC does not support as much as V8

-10

u/[deleted] Jul 09 '22

wdym?

31

u/[deleted] Jul 09 '22

Godamn can you not work for one minute together and create standards. No everyone has to fucking make something new

24

u/blipojones Jul 09 '22

Everyone wants to be the next code influencer don't you know?

3

u/Akaibukai Jul 09 '22

Relatable xkcd: https://xkcd.com/927/

This is sad indeed but the truth... We have to bear with that I guess..

9

u/FountainsOfFluids Jul 09 '22

If you don't like fast-paced change, that is totally understandable. Lock down your package versions and focus on creating the programs you want instead of trying to keep up with the latest tools.

Standards are fine and good, but are in a epoch of explosive growth and creativity.

If somebody has an idea that measurably improves some aspect of software development, I WANT IT.

-27

u/[deleted] Jul 09 '22 edited Jul 09 '22

you comment doesn't make any sense, in contrast to deno, bun is compatible to node's api, it's a drop-in replacement

15

u/[deleted] Jul 09 '22 edited Jul 09 '22

It's the general behaviour of the Software Area I'm criticising. What is it you use now is it vue or is it svelte ah wait it's fresh, do you use node , deno, bun or whatever now... Webpack , esbuild , parcel vite. If you are as long in the industry as I am at some point you realise that you basically get sold every few years the same shit in a new gold plater and everything is revolutionising and we need to change the whole process. And we are stuck in an iteration cycle where we solve problems with new problems. Did not refer specifically to bun I read through it after my comment. And Drop In Replacements like Kotlin does it are mostly the better approach.

1

u/avin_kavish Jul 09 '22

How does Kotlin do it?

1

u/frankandsteinatlaw Jul 09 '22

No one is saying you have to ship all the latest developments to production. I enjoy keeping up with the latest developments because often it’s not “the same shit” but in fact there are novel approaches and benefits in newer tech. At the same time I’m still working on tech that is basically 5+ years old at work because it’s stable and works well.

Try to see the bright side of an industry that has (opt-in) frequent innovation and change. It’s not for nothing and I much prefer it to stagnation.

2

u/thermiteunderpants Jul 09 '22

Why do you think web dev has such frequent innovation compared to other industries?

1

u/[deleted] Jul 10 '22

These are not fucking innovations , node was one as the selling point was pretty gigantic from a business perspective, React/Angular was , Rust is arguably , Web Assembly was , this are just tiny iterations solving minor problems. Yes Node as every technology has a lot of problems but handling more requests , faster startup time, and some bundler gimmicks which are pretty neat are not innovations. This is solving problems which are anyway not the biggest bottlenecks when it comes to node. And for this you ask companies to risk switching from an already proven stack backed by billion dollar companies. Never will happen. There will be personal projects yes but for an adaption this is not innovative enough. If I need performance I anyway have different choices, even for startup time there are better ones.

1

u/frankandsteinatlaw Jul 11 '22

I don’t agree with your stance but I think neither of us will change each other’s mind. I think the main difference is I get excited when I see new tech, even if it’s a new way of doing something we can already do.

I’ve got about a decade in the industry so maybe that will eventually faded but it hasn’t yet!

1

u/[deleted] Jul 11 '22

Which is fundamentally a good thing. I also get excited for new things but not for everything. I was really excited when I first heard about Go as I was with React Native and now Flutter just as an example. Maybe you are right and can't see the innovation grade hear even if it's there not the first time I am wrong. :-)

2

u/MrSchmellow Jul 10 '22

Curl pipe bash installation through the minified unreadable script. Is this the true web scale?

1

u/[deleted] Jul 10 '22

it's not minified lol, download that file and open it in any editor to check. what you've experienced is that the browser somehow ignored just the CRs

45

u/besthelloworld Jul 09 '22

ITT: People are grumpy because someone wrote some code that does has potential, because that's definitely never happened before and it's definitely never replaced the standard

Seriously, I cant imagine choosing to hate on someone for building such a powerful tool just because "the slower one already exists, so we're fine." People will bitch about anything. People will bitch about how Node sucks and NPM sucks and React sucks and Webpack sucks. But when Deno/Bun or Yarn/PNPM or Solid/Preact or Vite/Snowpack come around, they just bitch about how they already learned tools and there's no point in making more.

12

u/StoneCypher Jul 09 '22

ITT: People are grumpy because someone wrote some code that does has potential

Nobody is angry at code that has potential. You've never seen anyone yelling at Mike Bostock.

What they're actually angry at is the flood of low quality marketing memes.

13

u/besthelloworld Jul 09 '22

Ryan Carniato would disagree with you. When he first started promoting Solid, people just kept telling him that another JS framework is a stupid idea. But he kept working on it because he saw the performance and DX advantages over all the alternatives.

And I see no evidence that this is a marketing meme. I can't even identify Bun's corporate sponsors (though I'm sure they exist). Jarred Sumner's Twitter does note something about the Thiel Fellowship which deserves a 🤮 from everyone. But there's no evidence that this is bad faith "marketing" and OP's account passes a pretty general sniff test.

But for the most part, and this has been talked about by Ryan Carniato as well, but you have to promote your tool. People will get grumpy when you promote your tool because "nobody uses it" but nobody will use it if you don't promote it. And if people don't use it, creators will also will have a harder time discovering bugs.

-7

u/StoneCypher Jul 09 '22

Ryan Carniato would disagree with you.

Literally nobody in this thread has said the thing you're saying people are saying "ITT."

When that's pointed out to you, you change the topic to what a specific individual said, not in this thread, about an unrelated topic.

 

And I see no evidence that this is a marketing meme.

That's nice.

 

you have to promote your tool.

No, you don't. Many much larger tools have never been promoted in any way.

 

Jarred Sumner's Twitter

This also isn't relevant to what you said was happening "in this thread."

 

And if people don't use it, creators will also will have a harder time discovering bugs.

This is not a compelling reason to have the node subreddit flooded with low quality non-technical cartoons which you are not able to understand as marketing, but also explain are there to cause larger user populations, making me wonder what you think marketing is.

7

u/FountainsOfFluids Jul 09 '22

No, you don't. Many much larger tools have never been promoted in any way.

You seriously have no idea what you're talking about.

0

u/XxClubPenguinGamerxX Jul 09 '22

Im just mad cuz Bun is Zig and Deno is Rust and I prefer my software to be bLaZiNgLy fast so Ill stick with Deno.

1

u/besthelloworld Jul 09 '22 edited Jul 09 '22

Yeah I think there's nothing wrong with either one. I think Fresh on Deno is really cool and has a lot of potential (but it needs far better documentation). But the bonus of Bun that it is considering NPM packages to be high priority is also great. I know Deno has a compat for Node, but I hear of struggles with it.

2

u/[deleted] Jul 09 '22

I think Fresh on Deno is really cool and has a lot of potential

why? (seriously)

2

u/besthelloworld Jul 09 '22

I like React overall, and I really like JSX. So I think using Preact is a cool choice because it's nearly React, while being notably smaller & simpler. I have wanted to see partial hydration work in NextJS for a while now and I think Fresh's islands model is a really safe bet for the future. I also really like the choice to ship it with Twind out of the box (Twind already happened to be my favorite Tailwind compiler). And I think Deno Deploy is really good.

That being said, React has already been heading in this direction for a while with client and server components. Remix is basically at the state Fresh is plus the support of the whole ecosystem, so maybe there won't be a point in the long run. But I think it's a lot of really good ideas in one place and so hence "potential." Just like Bun, I wouldn't call it "enterprise ready." But I do think warrants attention and I could easily see making a project with it (whereas Bun is probably short of that atm).

1

u/[deleted] Jul 09 '22

no i meant, what does fresh have what other frameworks in node land don't have

1

u/besthelloworld Jul 09 '22

It fast. Good DX. But realistically: nothing that you can't make happen with Node. I think the performance would blow me away if the Node ecosystem hadn't so recently been taking huge performance strides with Vite, ESBuild, and SWC becoming so common.

2

u/[deleted] Jul 09 '22

nothing that you can't make happen with Node.

but then again and to quote your initial post, and no offense, why is Fresh or reinventing the wheel really cool?

1

u/besthelloworld Jul 13 '22

Hey, so Ryan Carniato is the developer of SolidJS and he also streams dev talks every now and then. With SolidJS being arguably the fastest web-framework, he's a little performance obsessive. But if you wanted to see an argument for Fresh in comparison to it's peers, I think it would be this segment from Ryan's latest stream

1

u/[deleted] Jul 13 '22 edited Jul 13 '22

not sure how you came from fresh to solid. whatever, I am following soid for a while but not yet convinced, while it creates small bundle sizes, it lacks a proper ecosystem. e.g. I need an animation lib. the only i found is motion one at whopping 86lb gzipped lol. or state management and so on.

with sveltekit i miss jsx but bundlesize are as small and svelte is fully featured incl animation lib with spring animatinos, state management and so on.

so not totally sold on solid

→ More replies (0)

1

u/besthelloworld Jul 09 '22

Idk the things I mentioned excite me 🤷‍♂️ I think the DX Deno is interesting. But I don't think they'll excite everyone. It's still the same language (sort of, obviously TS required with Deno), so it was never going to be that different. I would just check out deno.land and fresh.deno.dev to see the creators arguments as to the advantages of their tools.

0

u/[deleted] Jul 09 '22

[deleted]

1

u/besthelloworld Jul 09 '22

I'm not super surprised, unfortunately. Ryan Carniato said in a stream that it's going to take some work to get the Solid compiler/SSR runtime working in Bun but that after a day of work from a community member they just got some of the basics working. It's definitely sensitive for now. I'm just going to make sure to keep an eye on it.

91

u/kurtextrem Jul 09 '22

solution: buy Bun, replace Deno & call it "Deno's got a bun"

9

u/Kyrthis Jul 09 '22

What did her Admin doooo-oo?

2

u/-Single-Mongoose- May 28 '24

I'm 2 years late, but the Aerosmith reference made me chuckle. :D

1

u/Kyrthis May 28 '24

Glad I made your day a little brighter via time travel :)

2

u/monsto Jul 09 '22

It's Guesties last eye oh yooohooo

246

u/stayclassytally Jul 09 '22

I’m already tired of hearing about Bun. Some of y’all have the attention span of the dog from Up when it comes to shiny new tools

123

u/kobayashi24 Jul 09 '22

These posts about it feel like very forced guerilla marketing anyway.

44

u/ilovecheeses Jul 09 '22

Indeed, someone is definitely trying to forcefully make bun a thing.

46

u/TankorSmash Jul 09 '22

It's been confirmed there's an army of bun-powered reddit bots, making posts on the hour in random JS subreddits.

No way that people are this excited for faster compile times, better performance, or simpler configs, it's just big JS trying to convince us to move for the sake of Github stars.

33

u/ilovecheeses Jul 09 '22

You shouldn't underestimate how deep the roots of big JS is. They have influential power in almost all big tech companies, and you could in some sense say that they control the world. Assassination of JFK? Global warming? Earth is round theory? It's all big JS, bro, watch your back.

1

u/YodaCodar Jul 10 '22

world. Assassination of JFK? Global warming? Earth is round theory? It's all big JS, bro, watch your back.

lol when miamians code but still bring the broscience

0

u/[deleted] Jul 09 '22

[deleted]

6

u/aecrux Jul 09 '22

delete this.... or they'll delete you

6

u/TankorSmash Jul 09 '22 edited Jul 09 '22

It is done, can't be too safe

1

u/m0r14rty Jul 10 '22

Gretchen Wilson?

23

u/exxy- Jul 09 '22

Yeah once Deno got funding they flooded the internet with marketed posts designed to look like Deno is a product people are using. Like this meme, ppl are focused on something no one has heard of, "bun", and accept Deno as an established product that bun can compete with, which is in fact not true.

15

u/shitty_mcfucklestick Jul 09 '22

One day I felt the same way about Node itself . Years later I woke up and realized it had taken over the world.

1

u/brett_riverboat Aug 01 '22

Eh, Node is still very bastardized at my work. The latest version I can run on my machine is 14, and that's only through Docker. Native install is 12.

8

u/KingTuxWH Jul 09 '22

Lol i mean it's extremely unstable.

I promise I'm not a butthurt rust dev who hates zig.

P.s I am. I don't like zig

9

u/MrTalon63 Jul 09 '22

Haha zig goes brrrrr

1

u/AceBacker Jul 09 '22

How is zig different from go anyway?

0

u/[deleted] Jul 09 '22

[deleted]

5

u/tehoreoz Jul 10 '22

if this is your conclusion you likely don't understand either language very well

21

u/FountainsOfFluids Jul 09 '22

I’m already tired of hearing about Bun. Some of y’all have the attention span of the dog from Up when it comes to shiny new tools

Wait, what?

You are the one tired of hearing about it, like three days after it started getting traction, but others have the short attention spans.

Ok.

3

u/stayclassytally Jul 09 '22

Yes, I’m capable of having two separate thoughts

-6

u/FountainsOfFluids Jul 09 '22

I don't know what that has to do with this conversation, but ok. Congrats I guess.

My point is that YOU are the one with the problem here, not people who are excited about the potential of Bun.

3

u/bch8 Jul 09 '22

...okay?

0

u/[deleted] Jul 09 '22

[deleted]

1

u/FountainsOfFluids Jul 09 '22

Damn, wrecked.

3

u/r0ck0 Jul 10 '22

the dog from Up

Is that what Updog is? I've been trying to figure it out.

1

u/die-maus Jul 10 '22

Yep, most definitely is 🙄

3

u/scroogemcbutts Jul 09 '22

Could the same be said about dino?

32

u/stayclassytally Jul 09 '22

I’ve seen Deno mentioned less in 2 years than Bun in the past 36 hrs

0

u/[deleted] Jul 09 '22

[deleted]

1

u/siddharth904 Jul 10 '22

There are reasons for that

0

u/StoneCypher Jul 09 '22

I mean it's not like Deno did differently

0

u/m_domino Jul 09 '22

Some of y’all have the attention span of the dog from Up when it comes to shiny new tools

And … ?

-28

u/achauv1 Jul 09 '22

The change is now old man, get onboard or get lost

26

u/stayclassytally Jul 09 '22

I used to be with “it” and hip. Then they change what “it” was. Now what I’m with isn’t ‘it’ anymore and what’s ‘it’ seems weird and scary. It’ll happen to you!

3

u/[deleted] Jul 09 '22

No way old man, we will keep using bun forever...forever...forever

-17

u/achauv1 Jul 09 '22

Bun is very much 0.1 so of course it looks weird. No need to be overwhelmed by innovation

19

u/stayclassytally Jul 09 '22

It was a Simpsons quote. I’m very much whelmed

1

u/jonopens Jul 09 '22

Your ageism is showing.

-6

u/bigorangemachine Jul 09 '22

NPM is changing tho. The organization not the app... but eventually it will.

20

u/kizerkizer Jul 09 '22

Hopefully we will see some constructive competition.

4

u/MrTalon63 Jul 09 '22

Right? More options are pretty much always better and with all of them being open source one can benefit from another.

44

u/avin_kavish Jul 09 '22

I'm actually looking forward to bun, because it looks like it doesn't break existing nodejs packages.

9

u/r0ck0 Jul 10 '22 edited Jul 10 '22

Yeah from my perspective...

I see Deno's advantages as pretty trivial when you take into account that it limits what NPM packages you can use.

The package ecosystem is one of the main things keeping me using JS/TS on the backend to begin with, rather than switching to another language entirely.

Importing by URLs just seems like a disadvantage to me. I've either got these URLs with version numbers scattered throughout my whole codebase, instead of one file... or I need to make some central import + re-export file to manage them anyway...

The solution is to import and re-export your external libraries in a central deps.ts file (which serves the same purpose as Node's package.json file).

So what's the point then? How is manually writing a file preferable over having a standardized one with a bunch of commands we can use to correctly edit it? (and still having the option to manually edit if we want to anyway)

If editing the file manually was preferable, most people would do that, but pretty much everyone uses npm/yarn commands to do it, because it's easier.

The security features seemed awesome at first glance... because I'd incorrectly assumed it might give some granular control over which of your node_modules packages have network/filesystem permissions, but it doesn't seem do to that anyway.

It's just for the entire process, so you're better off just using regular filesystem + firewall permissions as the OS user level. I trust the Linux kernel more on that stuff. And it's much easier to quickly test by just logging in and using the shell.

No hate on the people making Deno, it's awesome that they do, and all open source efforts are appreciated. And even for the people not using it, I think its ideas can at least inspire other innovations too... good chance that it was somewhat some of the inspiration behind Bun too?

I just personally never saw how Deno has much advantage over mainstream Node overall, when taking the more limited package ecosystem into account.

2

u/avin_kavish Jul 10 '22

yes! I think I'm going to write about this.

2

u/deliciousnaga Jul 10 '22

Import maps fix that issue, right? I remember using them. But maybe that was a feature of fresh, not deno.

1

u/drxc Sep 18 '22

Import maps are a feature of deno

2

u/SillAndDill Jul 26 '22 edited Jul 26 '22

I have not used deno but I think the advantages touted are

  • This might practically matter for most of us but many want to allow decentralized hosting and move away from npm as the central

  • instead of having to specify an entire project as a dependency and later pick what you need from it, you can specify that specific file or folder you need directly in the url (I assume)

  • if you work on lots of projects, them node_modules folders take up tons of space - and there's one per project despite using the same libs. With deno you have a single global cache that all projects share

37

u/StoneCypher Jul 09 '22

I know, right?

Every time I hit a Deno problem the Deno people just tell me to rewrite everything

I've been trying to get a library that works in netscape navigator 4 to stop crashing Deno for almost a month now

It seems like Deno people just gave up on compatability, and it seems like they don't care if legal code doesn't run

12

u/henrik_thetechie Jul 09 '22

netscape navigator lmaooo what library is it, if I can ask?

23

u/StoneCypher Jul 09 '22

My library is a state machine library called jssm

The library they're having trouble with is the most common parser generator in javascript, peg.js, which has about 80% of the market

Peg, like almost all parser generators, generates deeply nested if structures.

The problem is that Deno crashes on Windows only if you have too many nested ifs, which the language explicitly defends as acceptable

Deno stack crashes, which is very likely expolitable as a security issue

The Deno people seem to feel that the problem is the 100% valid code, however

This means that Deno can't use almost any generated Javascript parsers on Windows

8

u/NetOperatorWibby Jul 09 '22

Wow, that’s a wild stance.

10

u/StoneCypher Jul 09 '22

I agree. It's also not the only time they've taken this stance with me.

This is the basis on which I feel that Deno, which is supposed to be hyper-portable and hyper-secure, is actually low portability and very likely significantly insecure

Please note that Deno is v8, and every other version of v8 I can find runs this code just fine (indeed, Chrome actually uses peg.) The problem is almost certainly something specific to the Deno codebase.

7

u/NetOperatorWibby Jul 09 '22

If I wasn’t already building in Deno, I’d be turned off from the platform/framework. Reminds me of the time the creator of Hapi shit on a question I had, many years ago.

3

u/StoneCypher Jul 09 '22

I mean, it's one bad choice among thousands of good ones; one person making one mistake among hundreds not

I hold out hope that they'll change their mind

0

u/undefined_void Jul 10 '22 edited Sep 16 '25

joke close light ancient deserve stupendous shelter nail handle saw

This post was mass deleted and anonymized with Redact

2

u/StoneCypher Jul 10 '22

That's not a relevant split, and that happened after I wrote that comment. That issue is one I raised.

The core point is that if a user installs deno and attempts to run valid javascript, deno crashes.

"But it's in a dependency!" is not how software is handled. This is a valid thing that the deno people are happy that I raised, and does need to be fixed.

Not interested in argumentative apologism

2

u/es_beto Jul 09 '22

What about using WSL?

4

u/StoneCypher Jul 09 '22

The bug is in deno. It's not relevant what shell you run; it emerges in cmd, terminal, powershell, wsl, and git bash.

More importantly, I can't release a library and tell downstream consumers "you have to install another operating system but it still works."

I have to accept that Deno's choices make it unable to run this perfectly valid code, and hope that they choose to fix it.

1

u/es_beto Jul 11 '22

Oh, I misread, you're a library author, not a library consumer. OK I get it now, yeah if there's a bug, it should be fixed.

-3

u/ianfabs Jul 10 '22

While that is wild, why not try using Linux?

6

u/StoneCypher Jul 10 '22

"Why don't you switch operating systems, to cope with a bug in one language implementation, and then maybe ask everyone else to do that too when you throwing your entire system away over one bug doesn't solve everyone else's problem too?"

Because it's easier to ditch Deno. Duh?

I don't understand why a question like this seems reasonable to you.

0

u/[deleted] Jul 10 '22

[deleted]

-2

u/StoneCypher Jul 10 '22

Why would Deno have an issue with nested ifs that Node doesn't?

No idea. That's their team's diagnosis of their issue. That's also what comes up in the debugger.

 

As far as I'm aware

Yeah, you aren't, cut it out.

 

stack handling should be equivalent outside of the configuration of V8.

Not only is that "outside of" totally invalidating, but I can think of a half dozen counterexamples off the top of my head and I've never even looked at this.

0

u/[deleted] Jul 10 '22

[deleted]

-5

u/StoneCypher Jul 10 '22

I made sure to say "as far as I'm aware" before each of these

I don't know why you think this helps.

You came, made up a false claim, there's no reason to believe it's true, you presented it as a challenge to what's going on with no context, the claim you made is intuitively incorrect, and boy oh boy, you even wrote "as far as I know" on it.

 

I'll admit that since the issue you've described doesn't fit what I know about the internals

Please stop putting me in this position. You're just repeating the behavior that triggered the response you're trying to complain about.

If an anti-vaxxer keeps writing "what I know about medicine" constantly, you're obliged to keep saying "which is nothing," and then they'll act like they're being attacked, when they're actually just having their constant puffing deflated.

See how nobody else feels the need to mention their expertise every comment?

0

u/[deleted] Jul 10 '22

[deleted]

1

u/StoneCypher Jul 10 '22

Oh look, you admit what you're doing is petty, make connections between github and reddit against reddit's terms of service, then call someone else a bully

 

The issue was with SWC, which is used for compilation / bundling

You're drawing a specious split. I didn't install swc. This issue occurs when deno is instructed to load this javascript.

The issue is in one of deno's dependencies, and it is not the user's job to diagnose that.

 

felt the need to bully people online for asking you about it.

Oh look, the guy breaking reddit's terms of service to publicly shame someone else feels that that someone else is a bully

What a great way to handle your mistake that you never admitted

I shouldn't have allowed you to continue. You're escalating fast. Removed.

2

u/SillAndDill Jul 09 '22 edited Jul 09 '22

> bun implements most of node-API

> You've never seen a javascript test runner this fast (or incomplete)

These quotes will mean Node devs will not jump on Bun immediately - at the moment it's not a "drop in replacement for node" as claimed (but yes - I get that's a goal more than the current state) and they'll keep waiting for 2 years - just like with Deno - and maybe jump on the next one unless Bun gets huge adoption rates.

5

u/fyzbo Jul 09 '22

I could see this posted in javascript, but this has nothing to do with node.

3

u/maximusprime2328 Jul 09 '22

Idk. I cried when I read about Deno's JavaScript containers. It was beautiful. I stared at it for hours.

https://deno.com/deploy

2

u/jono_tiberius Jul 09 '22

I've thankfully been under a rock. Wtf is bun?

1

u/[deleted] Sep 26 '22

Looking at top posts from last year this is clearly a manipulated shill post.

1

u/Ducksquaddd Jul 09 '22

I'm genuinely looking forward to bun, why is everyone disappointed that a runtime came out which is faster than node and almost fully compatible with node.

0

u/[deleted] Jul 15 '22

[deleted]

1

u/Ducksquaddd Jul 16 '22

its faster than node in alot of ways other than like array sorting and what not, things javascript core is bad at. And its in beta, they still havent provided all the api for the v8 engine yet

0

u/[deleted] Jul 09 '22

wait we are moving on past deno to something called bun? shit lemme go look now, FOMO!

0

u/therealpygon Jul 10 '22 edited Jun 20 '23

too blind to see

-1

u/[deleted] Jul 09 '22

one of you guys should upload a complete bun tutorial for beginners. I cant learn it myself.

0

u/[deleted] Jul 10 '22

Someone already forked Bun as we speak, and they will readjust it, add/remove a few things and release it under a new name “Nub” … see what I did there?

-3

u/Frosty_Lake_1112 Jul 09 '22

Considering bun doesn't break shit like Deno. It's a yes from me. Hope the community adopts.

0

u/[deleted] Jul 09 '22

[deleted]

-15

u/[deleted] Jul 09 '22

The list of features still being worked on is massive.

can you give us some examples?

They import that files, stored in the repository, instead of the one from NPM

why don't you ask in their github issues, takes ooe sec and we all would learn something

0

u/[deleted] Jul 09 '22

[deleted]

-12

u/[deleted] Jul 09 '22

because my feeling is that you went to the repo and just tried to find something to gripe about. if you had a positive attitude you could also think that they had a reason to have react in their repo. if you had a positive attitude you could also think, ofc there's still a lot to do, it's still early and many things are related to popular libs and so ib.

why don't you ask them?

but yeah, you are not a positive person

0

u/[deleted] Jul 10 '22

[deleted]

0

u/ohcibi Jul 10 '22

Deno isn’t a framework

0

u/[deleted] Jul 10 '22

[deleted]

0

u/ohcibi Jul 10 '22

Which you didn’t. Your precondition is false already, hence your point doesn’t make any sense.

0

u/[deleted] Jul 10 '22

[deleted]

1

u/ohcibi Jul 10 '22

Deno isn’t a framework

0

u/[deleted] Jul 10 '22

[deleted]

1

u/ohcibi Jul 10 '22

No the point is invalid because the goal of a framework is a different one than the goal of a platform is a different one than the goal of a language (languages and platforms are not the same). You are just shit talking about a thing you have no clue about it’s purpose and of which you don’t even know what it is. Like for example you could explain that heat is unnecessary because your beagle is a female but it would be the same nonsense as you have posted before. Of course you are allowed to post any arbitrary point about any arbitrary thing but posting arbitrary nonsense is not making your points automatically valid.

If you think that I’m making fun of you, you’re right. I suggest to research the difference of languages, platforms and frameworks, there is no point in continuing this debate for you because you lost it before I even posted my first response. But of course you can do whatever you want so feel free to add further nonsense instead of researching.

0

u/[deleted] Jul 10 '22

[deleted]

1

u/ohcibi Jul 10 '22

Dude. I don’t care. You disqualified yourself for any meaningful conversation with your very first post. Again: I’m making fun of you and that’s about it (the only reason I responded is because Reddit makes it hard to ignore threads but I try my best)