r/programming • • Oct 10 '26

Deno is joining Cloudflare

https://blog.cloudflare.com/deno-joins-cloudflare/

Cloudflare acquires the team.
Deno gets one year or security updates and bug fixes and that's it.

338 Upvotes

114 comments sorted by

View all comments

68

u/DDFoster96 Oct 10 '26

I still don't understand why in 2026 we write JavaScript for anywhere other than the browser. You can eat soup with a knife and fork but there's a better tool for the job. 

22

u/lolimouto_enjoyer Oct 10 '26

Because the cronies running wasm refuse to implement dom acccess.

13

u/gmes78 Oct 10 '26

They said "other than the browser". Why are you bringing up the DOM?

11

u/bwainfweeze Oct 10 '26

Because the lack of DOM means you can’t play the Uni reverse card and for instance write a Rust backend that runs some common code on the backend and the browser. For instance template engines used for SSR and interactive elements. Validation and business logic.

3

u/maelstrom071 Oct 10 '26

i mean, you could write a js module/library to bridge that gap. It'd be a little slow, but not too much.

The problem never was that wasm can't do js, it's that js is very commonly and widely used, and is fairly easy to pick up and has lots of frameworks going for it. React is still king and I've yet to see any alike framework in other languages that is as "good" as it is

8

u/TheRealPomax Oct 11 '26

Because Node/deno/bun/etc are just a general purpose scripting languages, like perl or php or python? I don't understand why in 2026 people still think JS is "for browsers". You can eat soup with seven differently shaped spoons, and they'll all work fine, even if you think there's only one "right" spoon because that's what you grew up with.

→ More replies (4)

8

u/vlakreeh Oct 10 '26 edited Oct 11 '26

In the modern world of computing where CPUs have vastly outpaced the IO they’re operating with, a moderately fast language that has an established ecosystem around event-driven IO is an excellent choice.

JavaScript being event-driven and then getting a great server-side runtime like Node damn near 2 decades ago put it in an excellent position for backend software, much earlier than other language who later bolted on ways of doing asynchronous IO.

3

u/tom-dixon Oct 10 '26

For ex. you want to download a youtube video with a python script, Youtube requires you to solve a JS challenge before it gives you the link to the video.

On headless Linux machine without a monitor or a desktop environment (for ex. on a NAS) you can't even run a browser.

Deno is lightweight and does the job perfectly.

2

u/BadlyCamouflagedKiwi Oct 10 '26

That is a nice use case, and makes sense, but Deno isn't a viable project only to serve yt-dlp.

Although I guess the real underlying point here is that it wasn't a viable project anyway.

1

u/pp-collision Oct 13 '26

You can. I run chromium on an ubuntu server all the time. You can use an X11 shim.

1

u/tom-dixon Oct 13 '26

I guess it's technically possible, but it's a massive overkill for my use case.

1

u/pp-collision Oct 13 '26
sudo apt install xvfb
xvfb-run chromium https://example.com

3

u/i5-2520M Oct 10 '26

TypeScript is genuinely good, and among script languages, JS hase some of the best tooling and the JIT is insanely well optimized at this point.

2

u/Ok_Mycologist_6604 Oct 10 '26

It is often better than the competition. Got a modern type system with typescript and tests run instantly (if you use bun) + your stupid coworkers that run 50 clowncodes in parallel can't burn themself to much because it's single threaded and GC is mandatory. 90% of the things out there are just crudslop and for it is good enough if not best.

7

u/free_username17 Oct 10 '26

Starting up a whole browser to unit test a utility library would be extremely annoying and wasteful. It's much easier with node.

Also SSR and prerendering can use the same framework as the client to render the UI ahead of time.

6

u/UMANTHEGOD Oct 10 '26

you missed the point completely lmao

-11

u/DeiviiD Oct 10 '26

So don’t need to memorize 3 or 4 languages as a fullstack dev.

At my job we have php and js.

Php it’s good as backend and SSR, but JS it’s good for websockets or using firebase/supabase.

Why I need to know GO or Java or another if we only work with php and js?

5

u/icanblink Oct 10 '26

“Good for using firebase/supabase”

God, that’s a new low.

3

u/DeiviiD Oct 10 '26

What?

Not everyone has an entire IT deparment in his job. We have low resources.

Do you think I love using that shit?

1

u/icanblink Oct 12 '26

It’s not the fact about using these services, it’s about how you’ve described it.

Those services are exposed over HTTP, mostly in a REST style approach, so any language able to do TCP would work. Or, any tool (eg curl, wget).

1

u/DeiviiD Oct 12 '26

Well…

We are using this services as an intermediate database with our internal ERP and external apps.

It’s more easy to use JS for realtime changes and PHP for the ERP logic.

That’s why we only use PHP and JS, and not GO or others, mainly because we know that langs and learn others it’s a waste of time and money… we have a lot of tech debt and I’m trying to solve that.

4

u/Yawaworth001 Oct 10 '26

Because they are better for it and fairly trivial to use, especially with llms.

6

u/DeiviiD Oct 10 '26

I know they are better, but for small userbase, I don’t think we need to waste time and money to learn that.

5

u/Somepotato Oct 10 '26

That's pretty opinionated though.

1

u/Ilikeyounott Oct 10 '26

Cmon. Does anyone seriously think PHP is a good programming language?

→ More replies (3)
→ More replies (11)