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
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
31
Jul 09 '22
Godamn can you not work for one minute together and create standards. No everyone has to fucking make something new
24
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
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
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
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
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
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
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
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
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
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
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
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
2
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
1
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
1
u/AceBacker Jul 09 '22
How is zig different from go anyway?
0
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
0
3
3
u/scroogemcbutts Jul 09 '22
Could the same be said about dino?
32
0
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
-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
1
-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_modulespackages 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
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
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
ifstructures.The problem is that Deno crashes on Windows only if you have too many nested
ifs, which the language explicitly defends as acceptableDeno 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 ofv8I 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
denoand attempts to run valid javascript,denocrashes."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.
1
-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
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
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
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 whendenois 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
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.
2
1
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
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
0
-1
Jul 09 '22
one of you guys should upload a complete bun tutorial for beginners. I cant learn it myself.
0
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
Jul 09 '22
[deleted]
-15
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
Jul 09 '22
[deleted]
-12
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
Jul 10 '22
[deleted]
0
u/ohcibi Jul 10 '22
Deno isn’t a framework
0
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
Jul 10 '22
[deleted]
1
u/ohcibi Jul 10 '22
Deno isn’t a framework
0
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
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)
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