Readit News logoReadit News
slotrans commented on Ask HN: Go deep into AI/LLMs or just use them as tools?    · Posted by u/pella_may
slotrans · 3 months ago
Neither. LLMs are destructive.
slotrans commented on Cursor IDE support hallucinates lockout policy, causes user cancellations   old.reddit.com/r/cursor/c... · Posted by u/scaredpelican
mntruell · 4 months ago
(Cursor cofounder)

Apologies - something very clearly went wrong here. We’ve already begun investigating, and some very early results:

* Any AI responses used for email support are now clearly labeled as such. We use AI-assisted responses as the first filter for email support.

* We’ve made sure this user is completely refunded - least we can do for the trouble.

For context, this user’s complaint was the result of a race condition that appears on very slow internet connections. The race leads to a bunch of unneeded sessions being created which crowds out the real sessions. We’ve rolled out a fix.

Appreciate all the feedback. Will help improve the experience for future users.

slotrans · 4 months ago
> We use AI-assisted responses as the first filter for email support.

Literally no one wants this. The entire purpose of contacting support is to get help from a human.

slotrans commented on Clean Code vs. A Philosophy Of Software Design   github.com/johnousterhout... · Posted by u/recursivedoubts
sudobash1 · 6 months ago
There is an important case for comments that neither of them touched on. Sometimes you are dealing with bugs or counterintuitive processes beyond your control.

For example, I am writing some driver software for a USB device right now. It is so easy to get the device into a bad state, even when staying within the documented protocol. Every time I implement a workaround, or figure out exactly how the device expects a message to appear, I put in a comment to document it. Otherwise, when (inevitably) the code needs to have features added, or refactoring, I will completely forget why I wrote it that way.

The prime number example is a self-contained, deterministic algorithm. While I did find it far easier to parse with comments, I could still spend the time to understand it without them. In my USB device driver, no amount of review without comments would tell another person why I wrote the sequence of commands a certain way, or what timings are important.

The only way around that would be with stupid method names like `requestSerialNumberButDontCallThisAfterSettingDisplayData` or `sendDisplayDataButDontCallTwiceWithin100Ms`.

slotrans · 6 months ago
> I will completely forget why I wrote it that way.

This is the main reason for comments. The code can never tell you "why".

Code is inherently about "what" and "how". The "why" must be expressed in prose.

slotrans commented on If not React, then what?   infrequently.org/2024/11/... · Posted by u/pier25
ls_stats · 9 months ago
>Try loading up a library heavy site (i.e. React plus a half dozen associated helpers for state, UI and whatever, which is pretty common) on an old or cheap Android device.

that was the case in 2015 when entry level android devices were quite slow, nowdays a cheap $200 android phone has at least 4-6GB of RAM and an eight core processor.

if that isn't enough for your react powered site, you are doing something very wrong.

slotrans · 9 months ago
Multiple times daily I encounter sites that are brutally slow not just on my beefy Android phone, but on my 3GHz+ 8-core 64GB desktop machine.

You need to take performance seriously or it will just be bad. Most of the industry has chosen to be bad.

slotrans commented on If not React, then what?   infrequently.org/2024/11/... · Posted by u/pier25
johnfn · 9 months ago
Reading over the authors primary reasons to not use React, they strike me as fundamentally misguided - mostly solving problems that most people don’t have.

One reason it says that React is a poor choice is performance issues. But front end performance issues are almost never the most pressing issue to deal with. React performance concerns in the real world are typically measured in, at worst, hundreds of milliseconds. Yes, there are a few specialized domains where this will matter. No, you probably don’t work in one. Greater leverage can almost always be derived from improving the backend.

The second reason the author says is that it’s based on a legacy eventing system which supports IE. The author goes on for quite a while to say how bad this is, but I question the assumption it’s predicated on: the legacy eventing system never bothers me, and it doesn’t create issues visible to my users. As far as it seems to me, this argument is akin to saying that React hasn’t bothered refactoring an old part of the code base. Yes, that’s not great, but it hardly strikes me as a reason to drop a framework entirely.

Finally, the author doesn’t actually give a prescription as to what to use instead of React. This is, personally, where the argument really falls apart. React does make a set of tradeoffs, I don’t deny that, but most alternatives I’ve seen make a worse set of tradeoffs that shift more work onto the engineer. Of course, since the author doesn’t actually highlight any alternative, we can’t have a discussion about what you’re trading away, but I suspect that the author makes no proposal because he knows that any alternative would immediately be shot down as obviously worse than React.

slotrans · 9 months ago
> React performance concerns in the real world are typically measured in, at worst, hundreds of milliseconds.

Many years ago I worked at a wonderful company that made the terrible decision to rebuild the frontend in React. We had a performance dashboard permanently displayed on a TV in the office, prominently showing the p99 time-to-interactive of our home page. It sat at TWENTY SECONDS for at least 2 years. No progress was ever made, to the best of my knowledge.

This was an e-commerce site, more or less. As per the author's reasoning, it absolutely should not have been an SPA.

slotrans commented on Pex: A tool for generating .pex (Python EXecutable) files, lock files and venvs   github.com/pex-tool/pex... · Posted by u/eamag
gavmor · 9 months ago
I can see how .pex or shiv's zippaps live at the Pareto threshold where converting a Python app to an 80% (or less...) executable takes only 20% (or less!) of the effort that would be spent re-writing the app in eg C, C++, Rust, or Golang. Still, it breaks my heart to see all this work being done to keep developers employed as "Python developers", instead of leveling them up to a broader programming skillset. It seems as if the industry is investing rather heavily in a local maximum.

But, of course, the market is has information that I don't.

slotrans · 9 months ago
It is often the case that the nifty Python thing you want to pass around uses one or more nifty Python libraries that have no C/C++/Rust/Golang equivalent (or no obvious equivalent), and so rewriting it becomes a herculean task.
slotrans commented on Why does everyone run ancient Postgres versions?   neon.tech/blog/why-does-e... · Posted by u/davidgomes
slotrans · 10 months ago
"Not as robust as MySQL"? Surely you're joking.
slotrans · 10 months ago
It is funny reading the replies here.

I am a database specialist and have worn the DBA had for many years. I have run MySQL and Postgres in production, both self-hosted and using managed services. Postgres wins on every single dimension that matters, every time. Yes MySQL is easier to setup for non-experts. That counts for nothing.

If you are sticking up for MySQL in this thread... I just don't even know, man.

slotrans commented on Why does everyone run ancient Postgres versions?   neon.tech/blog/why-does-e... · Posted by u/davidgomes
paulryanrogers · 10 months ago
Upgrades are hard. There was no replication in the before times. The original block-level replication didn't work among different major versions. Slony was a painful workaround based on triggers that amplified writes.

Newer PostgreSQL versions are better. Yet still not quite as robust or easy as MySQL.

At a certain scale even MySQL upgrades can be painful. At least when you cannot spare more than a few minutes of downtime.

slotrans · 10 months ago
"Not as robust as MySQL"? Surely you're joking.
slotrans commented on Show HN: Sava OS – A desktop interface for your web browser   savaos.com/... · Posted by u/owenfar
slotrans · 10 months ago
I am plausibly a person this is for.

Right now I rely on TabsOutliner when using Chrome (which I only use for work). It lets me keep 400+ tabs open and stay sane. I like it so much that I've paid for it 3 times, and would have paid a 4th time but it seems you can't anymore, and I fear it's abandoned.

In any case, this is how I work. I use browser tabs as a kind of short- to medium-term memory. I open a bunch of things, and keep them open for as long as I might plausibly need them. To me this is just normal. I don't know how anyone lives with only 10 or 20 tabs open, or a 50 tabs in a single window. How could you remember anything? But without TabsOutliner or something like it, this becomes a sprawling mess, because the browser gives you no native means to search it, or "zoom out".

Unfortunately TabsOutliner isn't available for Firefox, which I use when I have a choice. So seeing SavaOS promote Chrome... I lose a little interest right away. If it doesn't work in Firefox it's not worth getting excited about, because Chrome as a piece of software treats me like an enemy and I don't like that. So: support Firefox!

That said, if SavaOS gives me the capability to organize my tabs, maybe treat them like files I can put in directories etc etc, that sounds awesome and I want to try it. At the very least maybe it's better than TabsOutliner.

But seriously: Firefox!

slotrans commented on Show HN: Vortex – a high-performance columnar file format   github.com/spiraldb/vorte... · Posted by u/gatesn
aduffy · 10 months ago
You're unlikely to find this with any analytic file format (including Vortex). The main reason is that OLAP systems generally assume an immutable distributed object/block layer (S3, HDFS, ABFS, etc.).

It's then generally up to a higher-level component called a table format to handle the idea of edits. See for example how Apache Iceberg handles deletes https://iceberg.apache.org/spec/#row-level-deletes

slotrans · 10 months ago
This is true, and in principle a good thing, but in the time since Parquet and ORC were created GDPR and CCPA are things that have come to exist. Any format we build in that space, today, needs to support in-place record-level deletion.

u/slotrans

KarmaCake day1014September 9, 2020
About
Data guy since '05. Unapologetic SQL fanboy.
View Original