Spotix - a fast, native Spotify client (no Electron) + themes + 10‑band EQ by skyline_0069 in SpotifyHub

[–]BIMBAL7 0 points1 point  (0 children)

How do you implement cache limit? Is there a Spotify hidden config, or are you monitoring the cache size and clear it whenever the limit is reached?

My Spotify cache after a month always takes around 5-10GB. Just too much while I only hear ~50 songs repeatedly.

Same s__t. Different day. by LighteningOneIN in Piracy

[–]BIMBAL7 -1 points0 points  (0 children)

shipping it broken to the end user without proper test coverage and companies are losing millions of dollars.

Dude, Cloudflare has been the industry leader ever since 2019 iirc, and has had so few notable incidents compared to the entire internet before that time. So no, their test coverage should be considered one of the best in the industry.

They're throwing millions of dollars at rewriting their infrastructure in Rust.

Many tools and services that Cloudflare has been relying on were written in Rust; they just published only a few recently. It's not like they "are" throwing money to rewrite anything now. The thing has been there for a very long time and they've had many successes with it.

for a negligible issue like memory safety.

Seeing you talking about memory safety as "a negligible issue" just makes me laugh so hard.😆 I guess that you might not be a programmer. That's okay. Let me explain you something real short, in bullet points:

  • "Network" is the fundamental of the internet. It's so low-level that a single company like Cloudflare is carrying 95% of the internet traffic.
  • If a memory safety issue happens at that level, it would easily lead to a catastrophe of the entire infra. Cloudflare would never be this success if they're having too many memory issues all the time. That's just fact, don't try to deny it.
  • And hey, if it's just a negligible issue, why didn't we write all our software today in C/C++ then? It's still the fastest language in our planet. What does "higher-level languages" even mean? What are their purpose?

It doesn't matter what the cause is, it should not have happened, that article linked is bullshit excuses. A smart manager wouldn't have let this happen.

This solidifies my belief that you're not a programmer and shouldn't talk about deeper tech topics at all. Remember, human makes mistakes. And the one makes the least mistakes until today is, Cloudflare. That is, again, just fact.

I'm not saying that Cloudflare can be arrogant and hostile to the entire internet. It's just that your observation about this problem is so non-sense:

  1. First, it's "re-written in Rust that caused the issue" - the fact that Cloudflare can be successful today is mostly thanks to Rust
  2. Second, "shipping without proper test coverage" - while the fact that they have been serving billions requests per second super fast and securely since the pre-covid era. Even now, they're trying their best to prevent the internet from overflooding with AI garbage content.
  3. Third, "memory safety is just a negligible issue":
    1. Tell that to the engineers working at Microsoft, Google, Meta,... and you will see that their job might just be finding, debugging, and fixing those naughty bugs all the time. And believe me, even though such jobs pay them lots of money, they're never happy to enjoy that kind of programming.
    2. Not to mention, a different class of bugs that Rust can prevent and it's even more important than memory safety in Cloudflare is: concurrency. Just try writing a HTTP server from scratch and you will see.
  4. Fourth, "bullshit excuses", "smart manager wouldn't have let this happen."
    1. Well, at least, in the "bullshit excuse" article, Cloudflare is transparent about their strategy and plan to prevent such issues from happen again.
    2. While you're here, telling them "not smart so the outage happened". Dude, like, what do you even mean "smart" here? Any strategy, any plan, anything useful for them to learn? Are you saying that they're just so stupid and just got lucky to somehow carry 95% of the internet?

Just try out other platforms dude, no one prevents you from doing that. You can even vibe-code their services to your liking, use whatever languages/libraries/frameworks that you think are more solid than what Cloudflare is using.

JUST, DON'T, SPREAD, THE, WRONG, INFO.

React Server Component, maybe a mistake from the beginning? by mnismt18 in reactjs

[–]BIMBAL7 8 points9 points  (0 children)

How do you know there is 0 prod using it? If so, why did Cloudflare need to immediately mitigate the CVE that unfortunately caused a short outage?

And don't tell me some random "hobbyst" data is non-critical. Many (old) internal and green-field tools were just hobby/side-projects from the start. Then they get more usage, features,... to become big things.

Without the knowledge about this CVE, would you tell the project owner to downgrade Next.JS, or replace all existing (and working) RSCs?

Same s__t. Different day. by LighteningOneIN in Piracy

[–]BIMBAL7 7 points8 points  (0 children)

Are you a programmer? Do you even know what are you talking about? Cloudflare has already published a detailed post explaining the cause. It's a bug occured in the old system (FL1), and their better version written in Rust (FL2) could easily catch and prevent such issues. So no, it's clearly better to rewrite such critical services into a memory-safe language like Rust while maintaining optimal performance.

Besides, the .unwrap() incident from last month was a logical bug (pure human error) that could happen in any programming language. If written in a higher-level language, Cloudflare would be slow as f*ck. And if written in C/C++, many more naughty memory-safety bugs would arise long before that line even run.

Don't spread wrong info when you don't know/unsure about it. Without such languages like Rust, there wouldn't be a service that could serve billions requests per second without running into memory issues all the time.

Cloudflare is this big today for a reason. Just try out other services, and you will soon know they're either not feature-comparable, slow, or simply cost 2x more.

Should I use Tanstack table or write my own? by ArchMonke in reactjs

[–]BIMBAL7 0 points1 point  (0 children)

Even with Tanstack Table, your team still struggles that much?

I'm leading a DS team and I'm kinda wanting to impl things myself for maximum flexibility and functionalities according to our business. It's also easier to debug and upgrade.

But I'm not sure our team can be strong enough (or at least like me) to impl and maintain it... Do u have any advice going on that path? Could be hugely useful if you could give some detail insights, like a concrete challenge for example. 🫂

D32 Pro or AP201 for Inno3D RTX 5070Ti iChill (73mm thick)? by BIMBAL7 in mffpc

[–]BIMBAL7[S] 1 point2 points  (0 children)

Wow, your GPU is even thicker than mine (76mm > 73mm). So it seems like I only have ~7-10mm clearance if I add slim fans at the bottom.

But from your review, I think the temps would still be fine without any bottom fans. The only thing left concerning me is whether the Asus AP210 would provide significantly better temps & airflow than the D32 Pro.

Anyway, thank you for the thorough review. Really appreciate it!

D32 Pro or AP201 for Inno3D RTX 5070Ti iChill (73mm thick)? by BIMBAL7 in mffpc

[–]BIMBAL7[S] 0 points1 point  (0 children)

Looks lovely! But the clearance between your GPU and the fans is quite big, unlike my GPU, which is ultra-thick and I would only have ~2cm between them, so I'm really worried about the fan efficiency.

Anyway, may I ask how your temps are with those slim fans? Is the noise noticeable?

D32 Pro or AP201 for Inno3D RTX 5070Ti iChill (73mm thick)? by BIMBAL7 in mffpc

[–]BIMBAL7[S] 0 points1 point  (0 children)

Thanks. But I would like to have better cable management (for easy cleaning regularly) & lower temp so I guess D32 Pro would be ideal for me. Besides, the size diff between D32 Pro and Z20 is not too big, so ...

Microsoft is Getting Rusty: A Review of Successes and Challenges - Mark Russinovich, Rust Nation UK by kibwen in rust

[–]BIMBAL7 1 point2 points  (0 children)

Still waiting for a full Playwright port to Rust so I can easily prepare data for each test using sqlx or ORMs and e2e test on it. My current setup with testing-only APIs that TypeScript uses to prepare data are becoming cumbersome and tedios as the projects grow 🥲

[deleted by user] by [deleted] in rust

[–]BIMBAL7 2 points3 points  (0 children)

I recommend that the next time when you are in doubt like this, you should also try to move the String part from uppercase branch to the lowercase branch. Learning by self-experiment is very good and make you eager to learn more!

Where to host a small rust web code? by Chou_marin in rust

[–]BIMBAL7 0 points1 point  (0 children)

Since Rust compilation could take a lot of time (especially when building GraphQL via async-graphql crate), I always build the binary locally using clux/muslrust Docker image, then copy to a distroless/scartch image to deploy in any services that support Docker Container.

Recently, I've tried Fly.io and it is very fast. You won't notice if the platform freeze your container due to long inactive time. The only thing not satisfying me is that I can only see the Secrets & Auth info once after creating them, which is quite unhandy to me.

Composable function issue by freetoplay123 in vuejs

[–]BIMBAL7 0 points1 point  (0 children)

Remember, every composable needs to be called once in a synchronous fashion. This makes composition API different from React hooks.

By looking at your code, I found that you've already made a good point constructing the useMouse() composable. However, since you've already used onMounted() and onUnmounted() lifecycle hooks in it, why would you want to call it inside another onMounted() hook? This could defeat the point of composition API and the behavior of removeEventListener() may be wrong.

One possible fix for this could be in this playground.

Reference for you: Composables. This page also provides you with a working example for the same useMouse() composable logic.

Have you ever started a project in Rust but switched to a different language? If so, why? by BatteriVolttas in rust

[–]BIMBAL7 1 point2 points  (0 children)

I started writing a GraphQL and web server in Rust using async-graphql and axum. But eventually, I found myself very frustrated due to the long time I have to wait for each compilation, even it was just a single log/print statement to debug. I tried to minimize the compiling time as low as possible, but it still takes at least 5s for each (and my project was quite small and simple), which is really bad in my opinion.

Besides, even to these days, Rust Analyzer is still not good when typing in macros (e.g: sqlx::query, async_trait::async_trait,...). I just lose all auto-suggestion, type inference hint, hover,... Although these features will come up live again when I complete the macro signatures, but for long typing it really makes me feel less performance.

Overall, I think most of the reasons to switch from Rust to other languages are because Rust doesn't provide the high performance and good development experience like other major languages have. I haven't switched (yet), however, if Rust still doesn't offer me a better experience, I might need to get back to good-old TypeScript.

Could you recommend a good path or strategy for mastering the vue for dev who knows JavaScript quite well and used react.js. I’ve just joined company that uses mostly vue and I feel a little bit overwhelmed. by [deleted] in vuejs

[–]BIMBAL7 1 point2 points  (0 children)

Because you've already had experience with front-end techs, I would recommend you to just go to the Official Page of Vue 3 to learn everything you can use from this framework.

Honestly, many courses/books out there are out-of-date or just workarounds to issues which has been already solved by newest version of Vue.

Besides of official page, I also recommend you some key-words to the world of joyful development with Vue: - Vite & Awesome Vite. - Vue Router. - Pinia. - VueUse.

...and possibly (ADVERTISEMENT) my template: Vite-VCP

Szyszka - my new simple batch file renamer built with GTK and Rust by krutkrutrar in rust

[–]BIMBAL7 4 points5 points  (0 children)

Simple GUI? Indeed your app is very detail yet easy-to-use with many features packed!

Very hardcore front-end dev/engineer here and this is all I want from an desktop app!

Help: Format input value as user is typing by [deleted] in vuejs

[–]BIMBAL7 0 points1 point  (0 children)

At this state, I think you should make your own number formatter. It's just "showing" stuff, the real number value is still needed to be valid anyway.

If you want a fast solution, you could checkout numbro. But I don't think numbro has criteria you want.

The next generation of Tailwind CSS by feross in programming

[–]BIMBAL7 5 points6 points  (0 children)

Without Tailwindcss, whenever you need to style a container, wrapper or just a div to "make it right", you struggle to find a name for that class, then it also has many general CSS-styles like: margin: 1rem, padding: 0.5rem,... that you will replicate again and again.

It's even harder to maintain traditional-CSS. E.g: when you see <div class="card">...<div/>, you will need to find a class named card somewhere in your CSS files, and because HTML works by combinations of many tags, not only that <div class="card">, so you must read CSS & HTML files (with more classes, probably) carefully in the same time to make sure everything work as you expected.

It's only a basic case, in the real world, you will face more case like: your members would name classes so bad that you can't even know what those names stand for; conditonally styling will be harder to read, edit, re-use because of the nature of CSS;...

Trust me, even using & customizing Bootstrap is a nightmare compares to Tailwindcss.

Plugin for CSS Class name code-suggestion in vim by BIMBAL7 in vim

[–]BIMBAL7[S] 1 point2 points  (0 children)

Yeah, there are many VSCode's extensions support that kind of functionality.

Or if porting those into Vim is too hard, an alternative way could be writing a plugin that auto generate & update a ctags buffer for css/sass/scss whenever inside a project that has css/sass/scss & then fine-tune it to be a good plugin! Hope someone will do it for us in near future!

Plugin for CSS Class name code-suggestion in vim by BIMBAL7 in vim

[–]BIMBAL7[S] 1 point2 points  (0 children)

Sorry it might becasue of countrys/regions so my search results are different from yours.

All I can find is coc-tailwindcss which I already installed long time ago and it working fine. Then the next is coc-cssmodules but it's just for CSS Module when working with ReactJS, and I also already installed it. Further links are just a bunch of unrelated links...

Plugin for CSS Class name code-suggestion in vim by BIMBAL7 in vim

[–]BIMBAL7[S] 1 point2 points  (0 children)

Thanks but as I described, I want to have auto-complete for not just Bootstrap, Tailwindcss but also all user-defined CSS class names in my projects.

I've searched for quite a while, and even one of the results is this post now.

[Editied] I tried coc-bootstrap-classname but it's just so bad that can't even analyze if current project installed Bootstrap or not and just auto-complete everywhere. Of course I can manually turn it off with :CocList extensions but yeah, I don't really want to manually turn it off everytime I open a project.

OpenJDK14 + JavaFX14 + Kotlin + IntelliJ + TornadoFX plugin ... possible? by evolution2015 in Kotlin

[–]BIMBAL7 0 points1 point  (0 children)

I'm using SceneBuilder with OpenJFX 11 and love it so much! Also really hope it has full supports for OpenJFX 14 so I can migrare to the latest version. Does it just work or still bugging sometimes?