News for hackers. Stuff that matters.
Re:Bun 1.1 by Jarred on Monday April 01, 2024 @12:15PM (#39895783)
I work on Bun and happy to answer any questions.

Note that Bun v1.1 is still compiling at the time of writing (probably for another 20 minutes)

Re:Bun 1.1 by toastal on Monday April 01, 2024 @12:21PM (#39895849)
Now that Discord will start showing ads, is there any chance Bun will support a communication platform that is open & ad-free like IRC, XMPP, or Matrix?
Re:Bun 1.1 by dcgudeman on Monday April 01, 2024 @01:34PM (#39896705)
What kind of question is this? He is working on a JavaScript/TypeScript runtime not building a communication product. Why would you run to him to solve your pet grievance with Discord?
Re:Bun 1.1 by tbeseda on Monday April 01, 2024 @01:41PM (#39896802)
I imagine the complaint is around Bun's use of Discord as community coordination tooling -- linked in the site's header. The post isn't implying Bun should be involved in the creation of an alternative.

(I'm not here to throw shade at using Discord for OSS "communities" - I do as well - And am concerned about the path forward. Just want to clarify the question's intent.)

Re:Bun 1.1 by toastal on Monday April 01, 2024 @02:32PM (#39897459)
If open source, free software is a good enough ethos for your code base, it should be good enough for your community communications. Supporting only a proprietary locks out a swath of users & Discord in particular is an information blackhole—and now with ads!
Re:Bun 1.1 by fastball on Monday April 01, 2024 @09:41PM (#39901491)
Which users are unable to use Discord? Note that unable is different from unwilling, and "locked out" is not an accurate description of the latter.
Re:Bun 1.1 by vladxyz on Monday April 01, 2024 @10:03PM (#39901615)
Me! Discord does not consider me a real person if I don't have a phone number it approves of.
Re:Bun 1.1 by toastal on Tuesday April 02, 2024 @12:37AM (#39902430)
Users that need special clients (accessibility, hardware, etc.). Users blocked by US sanctions. Users that have been moderated off the platform for something not in your community (account bans even happen accidentally). Users with privacy/anonymity concerns about the data collection (& now ads)—especially the chat rooms that require a SIM card. Users that take their FOSS or otherwise ethical software views or anti-corporate views to heart & want something built on those principle—from wanting to use free software to make free software, to wanting to outright avoid what some now call enshitification where a free (gratis) account clashes with the idea of freedoms, etc.
Re:Bun 1.1 by mdeeks on Monday April 01, 2024 @01:41PM (#39896795)
I'm assuming it is because Bun uses Discord? There are Discord links on their site and on Github, though the links don't seem to work.
Re:Bun 1.1 by scubbo on Monday April 01, 2024 @11:52PM (#39902218)
I think they used the word "support" to mean "use", rather than "build". That is - they weren't asking Bun developers to _build_ an alternative to Discord, but rather to stop _using_ Discord.
Re:Bun 1.1 by Jarred on Monday April 01, 2024 @10:34PM (#39901830)
Ship an open-source Discord alternative that more people want to use than Discord and we’ll happily switch.
Re:Bun 1.1 by eddd-ddde on Monday April 01, 2024 @12:19PM (#39895822)
Are there plans for adding concurrent or parallel execution to the test runner? I recently tried looking at the code base to maybe implement it myself, and it looks like it wouldn't be easy without some reworks.
Re:Bun 1.1 by Jarred on Monday April 01, 2024 @10:32PM (#39901820)
We need to do some form of this but I’m not exactly sure what yet. I suspect same process but multiple globals might work well. A lot of tests spend time sleeping or waiting for things. They might benefit from that kind of paralellism (like async/await, except between things it runs a whole other global object)

Threads could also work but the problem is you have to re parse & evaluate all the code. That’s a lot of duplicate work. It’s probably still worth it for large enough apps

Re:Bun 1.1 by eddd-ddde on Tuesday April 02, 2024 @01:55AM (#39902788)
Isn't there some way of cloning a loaded vm after loading a module? I would imagine that should be possible some how, that way you could parse once then execute in multiple threads.
Re:Bun 1.1 by gr4vityWall on Monday April 01, 2024 @12:23PM (#39895875)
Is there a privacy policy available for the telemetry collected by default by Bun?
Re:Bun 1.1 by throwitaway1123 on Monday April 01, 2024 @12:57PM (#39896258)
The opt-out telemetry is worrisome. Along with the fact that there doesn't appear to be a way to disable it for single-file executables if you plan to distribute a Bun cli app to users: https://github.com/oven-sh/bun/issues/8927
Re:Bun 1.1 by whstl on Monday April 01, 2024 @10:38PM (#39901861)
According to this, it seems they don't actually send the telemetry:

https://news.ycombinator.com/item?id=39901755

Hope my interpretation is correct.

Re:Bun 1.1 by throwitaway1123 on Monday April 01, 2024 @10:55PM (#39901937)
Yeah I saw a Github discussion where he mentioned that the code for uploading telemetry data was disabled, but he also said he plans to re-enable that at some point: https://github.com/oven-sh/bun/discussions/2605#discussionco...

I would prefer to have the telemetry become opt-in before data collection is turned on.

Re:Bun 1.1 by whstl on Tuesday April 02, 2024 @10:06AM (#39905918)
Completely agree.
Re:Bun 1.1 by fofolo on Monday April 01, 2024 @12:23PM (#39895862)
GG for Windows support and all the addition in 1.1 :) Thxx
Re:Bun 1.1 by theThree on Monday April 01, 2024 @12:17PM (#39895809)
When will `worker` API be ready for production?
Re:Bun 1.1 by txdv on Monday April 01, 2024 @01:42PM (#39896820)
love it, even `bun upgrade` is fast:

On my rpi 4 that I capped to 600mhz for performance testing:

Bun v1.1.0 is out! You're on 1.0.36 [3.93s] Upgraded.

Re:Bun 1.1 by cheema33 on Monday April 01, 2024 @04:45PM (#39899091)
> I work on Bun and happy to answer any questions.

I think I saw somewhere that 1.0 did not support NextJS. Does 1.1?

Re:Bun 1.1 by cheema33 on Monday April 01, 2024 @05:00PM (#39899268)
I think I answered my own question. According to https://bun.sh/guides/ecosystem/nextjs Bun does not yet support NextJS.
Re:Bun 1.1 by yolm on Monday April 01, 2024 @10:28PM (#39901793)
Not a question, but wanted to say: Great job!
Re:Bun 1.1 by rcarmo on Tuesday April 02, 2024 @03:59AM (#39903341)
When are we getting UDP/dgram support?
Re:Bun 1.1 by WuxiFingerHold on Tuesday April 02, 2024 @04:48AM (#39903589)
Yours and the team's performance is so impressive. I'm not brave enough to use Bun in production yet, but count me in in a year or so ... great stuff.