Hacker Newsnew | past | comments | ask | show | jobs | submit | hu3's commentslogin

Found the Electron apps vibe coder.

Be careful. During consulting I ran into similar magnitude of writes for a mostly CRUD workload.

They had huge problems with VACUUM at high tps. Basically the database never had space to breath and cleanup.


This is why I never use these IANA-reserved domains like .test, .example, .invalid, .localhost.

I always make up some impossible domains like domain.tmptest

Otherwise you're one DNS "misconfiguration" away from sending dev logs and auth tokens to some random server.

> Since at least February 2020, Microsoft's Autodiscover service has incorrectly routed the IANA-reserved example.com to Sumitomo Electric Industries' mail servers at sei.co.jp, potentially sending test credentials there.


It so happens that in this very specific case your obviously bad choice didn't make anything worse, that doesn't make it a good choice.

"Aha, the defective trucks only cause injuries to people who have their hands on the wheel at highway speeds, but I've never bothered holding the wheel at high speed, I just YOLO so I wouldn't be affected"

If people had used IANA's reserved TLDs they too would be unaffected because although Windows will stupidly try to talk to for example autodiscover.example that can't exist by policy and so the attempt will always fail.


As others have pointed out, using 'tmptest' works until someone buys tmptest -- unlikely, but people will buy anything these days.

I always use the ISO-3166 "user-assigned" 2-letter codes (AA, QM-QZ, XA-XZ, ZZ), with the theory being that ISO-3166 Maintenance Agency getting international consensus to move those codes back to regular country codes will take longer than the heat death of the universe, so using them for internal domains is probably safe.


It's all fun and games until Donuts buys .tmptest for some reason.

The correct one to use is .internal

It is reserved by ICANN since 2024-07-29.

https://en.wikipedia.org/wiki/.internal https://www.ietf.org/archive/id/draft-davies-internal-tld-00...


You can also safely use .home .corp and .mail as those have been explicitly rejected by ICANN on the basis that they would cause widespread naming conflicts. I have my devices configured to redirect queries against .home to a local nameserver, leaving .local open for avahi.

.example is probably far safer than example.com.

https://www.akamai.com/blog/security/autodiscovering-the-gre...

According to it, it seems that if someone registers autodiscover.com then example.com lacking autodiscover.example.com will make Outlook try checking if autodiscover.com has an entry.

It's just a braindead system.


Would that really make a difference in this case? It's a configuration error / bug in Microsoft's discovery server, they could have a fallback that goes "any unknown address, return this .jp address".

And then you fire off 100k emails, they all bounce, and your mail service shuts you off...

brb, just filing paperwork to apply for the .tmptest gTLD /s

$100K

$227k just to apply, and another few hundred thousand in legal, compliance, and contracting to reach delegation.

Source: I'm on the board of dotMeow and wrote the financial plan


I suspect you'd download a car.

Yep. I used to have a ton of problems with Docker in Windows.

It has been a year without problems since I enabled WSL2 engine for Docker.

Honestly they should make the WSL2 Docker engine mandatory because otherwise things barely work.


Docker on Windows issues, back before WSL had matured enough, gave a pretty compelling argument for doing windows development on OSX inside a VM.

at work, i opted for remote development workspace because of this problem. Windows & Docker ain't meant to be together :(

First thing I would do is to get any job. And I mean any job.

Painting walls. Fastfood. Construction helper. Anything.

Only then start thinking about meaningful jobs.

Career is a steep ladder for us mortals that don't have rich families to lift us to the 100th floor with their financial and network elevators.


Thanks

At the very least it gets more upvotes.

Well it is keyword for RSS feeds.

From what I understand they basically couldn't scale writes in PostgreSQL to their needs and had to offload what they could to Azure's NoSQL database.

I wonder, is there another popular OLTP database solution that does this better?

> For write traffic, we’ve migrated shardable, write-heavy workloads to sharded systems such as Azure CosmosDB.

> Although PostgreSQL scales well for our read-heavy workloads, we still encounter challenges during periods of high write traffic. This is largely due to PostgreSQL’s multiversion concurrency control (MVCC) implementation, which makes it less efficient for write-heavy workloads. For example, when a query updates a tuple or even a single field, the entire row is copied to create a new version. Under heavy write loads, this results in significant write amplification. It also increases read amplification, since queries must scan through multiple tuple versions (dead tuples) to retrieve the latest one. MVCC introduces additional challenges such as table and index bloat, increased index maintenance overhead, and complex autovacuum tuning.


Tidb should handle it nice. I've wrote 200к inserts / sec for hour in peak. Underlying lsm works better for writes

That would mean it improved somewhat. We always got better write performance from mysql vs postgres, however that is a while ago; we then tried tidb to go further but it was basically rather slow. Again, a while ago.

When did you get your results, might be time to re-evaluate.


It was 1 year ago. Around 15 tikv serves, 32 cpu, 128 ram each, 4 tb nvme. In this case latency matters a lot. When i had load server in different region with ping of 3ms I got 70k inserts, when moved to the same region with sub ms ping it went to thousands

I was thinking about the same paragraph because write-amplification is exactly the problem solved by LSM trees _and_ they already have a solution for that in-house - one of the first acquisitions that OpenAI made is Rockset - a company that actually built the RocksDb at scale.

So, this is the part that actually made me left wondering why.


Deeper: "Replacing my OS process scheduler with an LLM"

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


> This is not an improvement on existing methods... a case of it being all they have to work with.

But the article says Tilapia skin is better in multiple aspects:

> "We got a great surprise when we saw that the amount of collagen proteins, types 1 and 3, which are very important for scarring, exist in large quantities in tilapia skin, even more than in human skin and other skins," Maciel said. "Another factor we discovered is that the amount of tension, of resistance in tilapia skin is much greater than in human skin. Also the amount of moisture."


It says it's different to human skin in multiple aspects.

Do I need more collagen or more moisture in my skin? I would expect evolution made some pretty good choices around default human skin for typical human activities, and if more moisture was obviously good, I would already have it.

Maybe tilapia skin is better for people who spend 24 hours a day swimming in lakes.


> It says it's different to human skin in multiple aspects.

No it says "even more than in human skin and other skins". Not different.

> Do I need more collagen or more moisture in my skin?

For this context? Yes? Clearly the article answers that already. I even included in my first reply but you'll have a third chance to read it:

> ...which are very important for scarring...

And your attempt to move the goal post fails miserably as well. Or do you think humans evolved to perfection by thinking this:

> I would expect evolution made some pretty good choices around default human skin for typical human activities, and if more moisture was obviously good, I would already have it.

I don't think you are debating in good faith. Good luck.


For Windows a quick win is to install VMware Workstation Pro (which is free) and install Ubuntu 24.04 LTS as a VM.

Broadcom bought VMware then released Workstation Pro for free and I don't think they kept the download link but you can get from TechPowerUp:

https://www.techpowerup.com/download/vmware-workstation-pro/

You can then let LLMs on YOLO mode inside it.


What is the advantage of using VMware Workstation Pro for this as opposed to using WSL2?

I think it has default access to your c drive via a mount, for one. You could add layers/sandboxes, but it’s not isolated.

Funny, but I wrote some environment initialization and setup scripts that you just unzip to a new dev desktop, and run the first powershell script, and it will work through (have to reboot after a couple installs), but it goes through, then once WSL is up, it'll rely on the /mnt/c/ paths to run bash scripts to initialize the wsl environment too... was pretty handy.

Yeah, I do most Linux stuff on Windows in containers using podman leveraging WSL2, but that's a good point.

I wouldn't put it past Opus 4.5 in yolo mode to vm escape if it felt like it haha

Stronger isolation and choice of OS

Windows has the WSL for native Linux vms, these days (and also the past ~decade)

I can rm -rf Windows files from WSL2. And so can LLMs.

Meanwhile a VM isolates by default.


You can turn all the interop and mounting of the windows FS with ease. I run claude in yolo mode using this exact setup. Just role out a new WSL env for each claude I want yoloing and away it goes. I suppose we could try to theorize how this is still dangerous buts its getting into extremely silly territory.

That's great to know! And important to clarify because by default WSL has access to all disks.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: