News for hackers. Stuff that matters.
Re:Bun's New Crash Reporter by M4v3R on Friday April 26, 2024 @02:15PM (#40172451)
Started using it as soon as they hit 1.0 and never looked back, we’re implementing it in every project now.
Re:Bun's New Crash Reporter by fellowniusmonk on Friday April 26, 2024 @02:24PM (#40172543)
Bun + uwebsocket cut my server costs and requirements significantly for my websocket app. It's a real delight to work with.
Re:Bun's New Crash Reporter by Alupis on Friday April 26, 2024 @02:36PM (#40172674)
How did it cut your server costs - increased performance and therefore reduced load?

Bun looks quite promising, but I've heard mixed feedback on it being a "drop in" replacement of node. Any experience with that aspect?

Re:Bun's New Crash Reporter by fellowniusmonk on Friday April 26, 2024 @03:30PM (#40173114)
Perf gain mostly from uwebsocket is what it looks like.
Re:Bun's New Crash Reporter by alimnes on Saturday April 27, 2024 @01:08AM (#40177421)
Do you use uwebsocket with Bun explicitly? I thought Bun has websocket support built in by internally using uwebsockets?
Re:Bun's New Crash Reporter by billywhizz on Saturday April 27, 2024 @08:43AM (#40179514)
Yes, Bun uses uWebSocket internally. I think OP was saying the perf gain comes from the combination of Bun + uWebSocket. For http, most of that is coming from uWS, which is pretty much best performing HTTP framework out there ime.

https://github.com/oven-sh/bun/blob/main/src/http.zig#L34