← Back to context

Comment by Insanity

23 days ago

Maybe the good thing to come out of the RAM crisis is that engineers will care about memory usage again lol.

The bad thing here is that modding discord will become significantly harder and might have been their original intention here.

  • Hey, I work at Discord, specifically on this effort. Our entire focus here has been about improving performance and making the client really feel great.

    • It's difficult to believe Discord's intent is to make the client great when the recent updates have been to shove Best Buy ads into it. Even to the point of surfacing ads as friend dm notifications! In fairness, I'm jaded since I lost my account due to a sudden ultimatum to share my phone number -- extortion for my PII. So it is impossible for me to believe Discord operates in good faith.

      7 replies →

  • They’re showing how easy it is to vibe code a port of the app. A motivated developer outside Discord could do the same and release OpenDiscord or whatever if they cared enough to want to mod the app that way.

    • Discord says using modified or alternative clients is against their terms of service, and they have banned people for it in the past (if they do something detectable, like enabling A/B testing feature flags that their account ID doesn't match :/)

      They're not exactly friendly to that sort of thing, I wouldn't be surprised if they add some traps to catch people making their own client.

      So I'd +1 the sibling comment's suggestion to consider alternatives to Discord, if you're setting up your own community

      2 replies →

    • Since discord announced that they would be scanning ID a lot of alternatives have sprung up, chatto and Armada are both looking promising as alternatives, plus the chatto vibed marketing materials on their Dev chat gave me a laugh the other week!

      3 replies →

    • This is the way, LLMs are an enabler and force multiplier to help you build whatever interface you want on whatever protocol you have to reverse engineer.

      Provide it the official client and point it at public api endpoints (or an LLM operated mitm proxy), set it to work to reimplement.

    • There are literally dozens of open-source Discord clients already, both vibe-coded and not; and have been for many years. Nobody needed to prove this was possible, least of all Discord.

  • I mean, why would you want to mod the desktop client of discord instead of the web client?

The good thing is AI enabling web developers to write native apps.

  • Most electron projects exist because engineering organizations couldn't afford to hire platform specialists for every platform they want to run on.

    • Also most native UI frameworks don't provide the primitives for modern UI. It's mostly just standard UI elements, sometimes with the possibility to theme them.

      But most frameworks don't come even close to CSS and all the possibilities to create custom controls. It often requires to build everything from scratch in code, which is really hard for more complex layouts.

      4 replies →

    • There were cross-platform C/C++ libraries in the late 80's to early 90's like Visix Galaxy. However, it was not free - far from it.

      We developed on Windows NT and deployed onto HP/UX and Solaris.

      1 reply →

  • Is the average web developer benefitting from vibing languages they are not at all fluent with?

    A bit like a translator who doesnt speak the language but has Google translate and a few beers in them right?

    For example, is there still a massive .clone() problem in LLM generated Rust?

    • I re-wrote one of my apps in Swift. I don't know Swift. It's been fun. When it gets stuck I look at the code; I have it teach me via analogy to the e.g. mobx/react concepts I do know. In some cases I've improved the LLMs code after learning how something works. In others I work it more like an informed PM - ok the sidebar opening is slow but... its about 10x faster in my electron version. How is the sidebar "mounted" or rendered? I dump tricks I know from web dev and ask how analogues; sometimes that breaks its anti-patterns. Other times I throw constraints I don't know much about - "This is a native version, can we aim to make it 3x faster to start-up? How".

      Personally I was surprised how quickly I surpassed my original code, feature wise. Will it stand the test of time? Too early to tell - need to see if I'm still using the native version of the app in a year. But its been more fun and informative - and fast - than I'd expected.

      2 replies →

  • I mean, they were always able to. They just were too lazy to do it and didn't care about doing a good job enough to overcome that laziness.

    • You know what they meant. This is the same argument that artists used when AI image generation came out, it's not very helpful. Being able to do something and actually doing it are different and we all benefit when web app makers rewrite their apps into native languages.

      4 replies →

    • Your use of "lazy" here really comes off as "ableist".

      "I can do it, and you didn't do it, therefore you must be lazy, because I certainly am not lazy"

      What's lazy is not diving into the reasons that people may or may not do things.

      1 reply →

  • Create a problem (RAM shortage), sell a solution (AI tools to migrate). Awesome

I always cared with ZRAM under GNU/Linux (I own an n270 netbook with 1GB of RAM and a NUC with 8GB but a Pentium Silver CPU, nothing fancy). Thus, Waterfox with their new Rust based ad blocking engine was a beast, even more with WebGPU enabled and NoScript, just enabling JS for the essential, if any. On top of that, the tab suspending extension. As I program in Rust I need every bit of RAM, even if I disable most debugging options at ~/.config/cargo.toml and I set the build jobs to 1 with "-j1 ".

On the netbook, well.. CWM, UXterm, Dillo, CLI/TUI mail, usenet, IRC and so on clients, groff, nsxiv, mpv, MuPDF... it runs snappier than the NUC for what it does. Programming? Golang for networking stuff -security, not like Rust, but far better than C-, simple C99 for small software, or S9/JimTCL. Otter Browser for emergencies (JS pages from public institutions/govts in my country).

Also even without the RAM crisis, the main limitations (time) to optimizing software are gone. If you want to do something impactful, but don't have any good ideas: Take an existing website or application and build an optimized version of it. If you aren't sure where to start, build an isolated workflow out of an existing app or site you like, have the LLM benchmark it, then ask it to make it use 10x less ram / run 10x faster. Ask about what tools it can use to measure, what benchmarks it can come up with to repeatedly test it, how it can automate workflows in a measurable way. Then turn those into tools or specs you can share along with your work.

With PCs, it was never about having a lot of RAM, it was about not having less RAM than others. So it's fine if everyone gets less RAM.

  • Sounds kind of socialist :-)

    "No one gets TWO sticks of RAM until everyone has at least ONE stick of RAM!"

    • Luckily one person with monster RAM doesn't ruin it for everyone else, but there's RAMflation if everyone gets it

They’ll never give up bloated javascript frontends and call you poor for wanting anything else while sipping on their overpriced lattes.