Better HN
topnewbestaskshowjobs
Log inSign up

perrygeo

3,198 karma · joined Apr 28, 2014 (12y ago) · 1,091 submissions

Submissions

comment 6d ago · link · parent

I was talking with someone about buffer overflows due to HTTP requests this morning. I think I said something like "but we don't need to worry about that, just put nginx in front of it." Sigh. Off to update some VMs. Again.

comment 6d ago · link · parent

I haven't read the paper yet but this feel important

> A modern coding agent can hold an entire repository in its context window. Most of its reading is wasted -- and the interesting question is not how much context an agent can use, but what it actually needs ... The answer is starkly minimal. The signal lives in the code being edited itself.

comment 6d ago · link · parent

> turned in z/x/y filenames and a cloudflare worker

So you settled on the same solution I did. Run a web service to translate ZXY tiles to HTTP range requests.

The OP was talking about HTTP range requests directly from the client.

comment 6d ago · link · parent

Cloudflare and most CDNs "support" range requests in that they will download the entire 130GB file for you. Does Bunny do something smarter? Does it deal with overlap? What about cache control? eviction?

comment 6d ago · link · parent

> pmtiles on s3 behind cloudfront

https://docs.protomaps.com/deploy/aws perhaps? That's a nice setup but worth noting you're running a web service (Lambda) to translate and cache ZXY HTTP requests to s3 range requests. Much like the Martin web server I settled on.

The OP was talking about making HTTP range requests directly from the client, which is a much different beast.

comment 6d ago · link · parent

This year I listened to someone use an LLM call to sort a list of dictionaries by key.

The LLM did indeed sort the list - after several seconds.

My editor can sort the list in single-digit milliseconds.

Do you really aspire to be the 0.001x developer? Weird flex, bro. It's just embarrassing.

There are operations best done locally. Learn your tools. Outsourcing these task simply because you're unaware is not something to be proud of.

comment 6d ago · link · parent

Exactly! A vulnerability was identified. Company patched the vulnerability, but messed up in the process.

The vulnerability was identified by AI but it existed before. Not clear if the company used AI to write the patch. The causal role of AI is zero. They responded with bad code that caused a broken system. Their testing should have caught the regression. If it didn't, they need better tests.

This is a testing/QA failure, orthogonal to AI issues. I don't deny that the pace of AI-revealed vulnerabilities increases the pressure to rush out patches. But the response to vulnerabilities is entirely in the hands of the operators and test writers. Take some responsibility FFS.

comment 1w ago · link · parent

You can use the pmtiles:// protocol in Maplibre GL, requires protomaps.js and a few lines of setup [1]

My experience with it is ... ok. It works. But going directly to cloud storage (s3 in my case) is unpredictable latency and neither the browser nor most servers really cache HTTP range requests granularly, so every tile is another high-latency round trip. Not worth it - I ended up putting Martin tile server in front of it.

I assume someone could write a protomaps adapter in WASM with some smart caching? Until then, Standard GET requests are just easier to cache and perform much better in practice. The downside being you have to run a server or statically generate files.

[1]- https://docs.protomaps.com/pmtiles/maplibre

comment 1w ago · link · parent

So many HN folks defending Huang's actions as "just an affair" - what an epic reading comprehension fail. Yes there is an affair, and that's what grabbed the initial headlines. But just read a paragraph or two and you'll find the espionage story.

For reference, the US has sentenced violators of export laws to decades of prison or even execution in extreme cases (when the Rosenburgs leaked nuclear secrets in 1953, they were sentenced to death). It's just shy of treason, legally. This is maybe one of the largest and most consequential intelligence breaches in history. Anyone who thinks this about an extramarital affair really isn't paying attention. Buckle up, its gonna get bumpy.

comment 2w ago · link · parent

Love it. The backlog was dead long before LLMs.

The core concept of a backlog is that some half-assed idea will sit in storage for years... then somehow sprout into a viable software project. Without any research, effort, investment, or design intent.

This is empirically false, especially in the age of LLMs. Intent is everything.

comment 2w ago · link · parent

The entire gleam language tour fits comfortably in a modern LLM context window. You're one web search away from "training" it yourself.

comment 2w ago · link · parent

Got it. Yeah, everything we'd consider "new ideas" demands, at the very minimum, a strident curiosity about how things currently work. Those people tend to read. A lot.

comment 2w ago · link · parent

> People who are pushing forward with no ideas.

s/no/new ideas?

The people pushing forward with no ideas are likely not reading much either.

comment 3w ago · link · parent

Great advice for negative things. Pay them no attention, after you've processed them (don't ignore them though!).

For positive things, for future hope and dreams, one has to be careful. We know that visualizing a positive outcome can be counter-productive...

Those who daydream about the perfect fitness routine don't go to the gym.

Those who daydream about building anything are less likely to take the step necessary to actually build it.

It's as though strong visualization of a positive outcome becomes a satiating reward in itself. Without any changes to reality, we become attached to the mere idea of possible future. Just as those dwelling on the past are dissociating from reality, those hoping for the future are willfully disengaging engaging with primary reality.

All that is to say, it IS all about attention. So pay attention to the present.

comment 1mo ago · link · parent

That's unnecessarily dismissive. I find the statement quite enlightening and I wish other engineers would realize the wisdom here.

LLMs are pattern matching machines. Your code is the base template that will determine all patterns moving forward. No amount of context engineering or prompting can save your code from itself.

Pragmatically, it suggests we need a much greater investment in code quality, and much less hand-wringing over AI tooling.

comment 1mo ago · link · parent

Nix still has its share of fiddly problems and esoteric solutions. The difference is, once you (or your LLM) figures it out, you can write down in declarative code and it's solved forever. If it doesn't work, try something else or revert. Fearless system configuration.

comment 1mo ago · link · parent

critical point! I'd like to at least see the nature of the rejection spelled out in the policy.

Am I offending you personally by having used AI at all? Or is my contribution just running afoul of your technical judgement?

In order to get to "Is AI coding useful?" you need to personally work through "Is AI even acceptable?" - socially, environmentally, legally, biologically, militarily, technically, philosophically - I can absolutely respect those who say "hell no" to any of it!

- You can say "hell no" to contribution with any AI, due ethical concerns. Say it with your voice, not soft ban language. State your ethical objections.

- Much different to saying "hell no" to any AI contributions because of quality concerns; you know what's best for quality, security, bugs, etc.

- Much different still to saying "it depends" based on the nature of the contribution.

- Much different still to saying "yolo claude can commit to main".

They are all valid viewpoints. But deserve significantly different AI policies. Don't make me guess.

comment 1mo ago · link · parent

I used AI once. Therefore my contributions are forever invalid, I guess? Up to whose discretion? It would be nice to have clarity on the issue but no one seems interested in having a nuanced technical conversation. Therefore I will never contribute to your projects.

comment 1mo ago · link · parent

Great question. I can only assume it's the flip side: a linear accumulation of quality regressions. With no one accountable for delivering improved quality, it just doesn't happen. And while problems accumulate linearly and silently, they manifest themselves in more volatile, emergent ways like bugs and outages and outright broken software.

comment 1mo ago · link · parent

Yeah exactly. I'm just annoyed that AI coders hijacked my word for it. Whatever - "vibe" coding will forever be synonymous with AI coding. I don't get to decide.

I'll call my phenomenon "management driven development" or MDD - a project that runs on hierarchical control, where management decisions are made on the hour and no one takes accountability.

comment 1mo ago · link · parent

I used "vibe coding" pre-AI to describe companies that build software without any long term strategy or vision - aka "Agile Theater" - just pick tickets off the board and move forward in whatever random direction your manager feels like today. Your manager's vibes are the only thing that matters.

Sadly, AI vibe coding is far worse. Following your manager's vibes, there was at least some semblance of accountability. Now when an AI vibe codes something, I'm not even sure whose ideas we're vibing on, or if they belong to anyone.

comment 1mo ago · link · parent

To some people, success looks like the linear accumulation of small wins. Each cycle, you sprint for the goal, rinse, repeat. As long as you deliver each one on schedule, everything is fine. There is no need to create a vision or roadmap, no need to work towards or even define quality, just react swiftly to the loudest signal every day.

This is a perfect storm for enshittification. No one is accountable for the quality of what was delivered, only that it was delivered. As long as the latest fire is out, all is well. Right?

comment 1mo ago · link · parent

> Baby companies do just ban it outright

This might be the key point. There's legal ambiguity surrounding these licenses. Large companies with legal resources can draw their own line in the sand to protect themselves.

But small companies don't have the resources or the bandwidth to address the ambiguity. So a blanket ban (Zero AGPL and GPL for Internal or SAAS, Linux generally gets a pass) is rational.

Likewise, I see small dev shops without the resources to address anti-AI policy ambiguity are going to defer contributions until further notice.

comment 1mo ago · link · parent

Lol. You say no further definition is required - then proceed to outline your interpretation which is quite distinct from others. Clearly further definition is required.

If you're serious about an anti-AI policy, you owe the world a definition. It's not hard. You are making a strong statement - an outright ban. Make an equally strong case for what is and is not in scope. You must get in the weeds, since it is you yourself that is banning the weeds.

To quote Gustave Flaubert: “The art of writing is the art of discovering what you believe.” Failing to write the definition is a strong signal that no one thought through the problem.

comment 1mo ago · link · parent

My point is, if projects are actually serious about banning AI, write that down in enforceable language. As of today, your personal interpretation of what the policy might mean likely conflicts with other's interpretations. There's no clarity on what exactly has been banned.

Put simply, if you're so convinced that AI contributions will ruin your project, you owe the world a full and complete definition of what "AI contribution" means.

comment 1mo ago · link · parent

For an outright ban on "LLM, AI or agent assisted code contributions", they do very little to define what that means. This is a terribly written policy - I sincerely urge the QGIS maintainers to put enforceable guardrails on the definition.

This reminds me of the legal ambiguity behind the GPL and its definition of "derivative work". A careful analysis of the GPL shows that using GPL software doesn't trigger any other clauses. But distribution does. What is the legal definition of distribution? Who knows!?! That's why most software companies have a partial (edit) ban on GPL software. Even companies that are willing to comply with the GPL, they cannot feasibly come into compliance with such a vague definition. So it's safer not to engage.

Same will happen with anti-AI policies. Even contributors who are fully willing to do things "by hand" will start avoiding these projects. No way to know if you'll accidentally run afoul of someone's AI radar. There's nothing to protect enforcement from becoming a witch hunt.

comment 1mo ago · link · parent

Programming is special. When you create art, music or prose, it's an artifact that is overwhelmingly consumed directly. I enjoy the art by looking at it, listening to it, reading it. I am mostly unaffected by art I've never seen (save for maybe that which seeps into popular culture around me).

Code as an artifact is different in that it can be given agency, ie turned into software. The output of that software can be valuable despite the code being unintelligible to the vast majority of people. Very few people have read e.g. the source code for the TLS encyrption algorithms, yet billions of people's lives depend on it.

12345
37