HNHacker News
TopNewBestAskShowJobs

James_K

1,246 karma · joined June 4, 2022

submissionscomments
James_K··on Trying Out C++26 Executors
C++ has two ways of naming things: `std::incomprehensible_long_name` and `|`.
James_K··on Language is primarily a tool for communication rather than thought (2024) [pdf]
I think it depends what you mean by language. There is a kind of symbolic logic that happens in the brain, and as a programmer I might liken it to a programming language, but the biological term is defined differently. Language, as far as it is unique to humans, is the serialisation of those internal logical structures in the same way text file is the serialisation of the logical objects within a programming language. What throws most people here is that the internal structures can develop in response to language and mirror it in some ways. As a concrete example, there is certainly a part of my brain that has developed to process algebraic equations. I can clearly see this as distinct from the part that would serialise them and allow me to write out the equation stored internally. In that way, the language of mathematics has precipitated the creation of an internal pattern of thought which one could easily confuse for its serialisation. It seems reasonable to assume that natural language could have similar interactions with the logical parts of the mind. Constructs such as “if/then” and “before/after” may be acquired through language, but exist separate from it.

Language is, therefore, instrumental to human thought as distinct from animal thought because it allows us to more easily acquire and develop new patterns of thinking.

James_K··on The current state of the theory that GPL propagates to AI models
Would such a license fall under the definition of free software? Difficult to say. Counter-proposition: a license which permits training if the model is fully open.
James_K··on After my dad died, we found the love letters
The essay mentions the father being gay, reasonable to assume he said it. Unless you think he was bisexual, but I'm willing to bet you don't actually think that and this is just you being silly and you do actually think he's gay.
James_K··on After my dad died, we found the love letters
How do you know the father never said he was gay? He may well have said that to the man he enjoyed dating as opposed to the wife whom he clearly didn't like very much.
James_K··on After my dad died, we found the love letters
It does not sound as such if you read the content of the post. It's hardly a misconception to suggest that gay men do not generally fall in love with women.
James_K··on After my dad died, we found the love letters
Gross.
James_K··on WebAssembly from the Ground Up
Personally, I learned Web Assembly by reading through the spec. Can't recommend it more. It's extremely well written.
James_K··on Measuring political bias in Claude
Whatever higher-minded cause a company might claim, the real reason is profit. A model which appears to advocate a view will not be tolerable to half the population, even if said view is objectively correct. Best to create an even-handed model which is broadly agreeable than one which critiques the user honestly.
James_K··on Google is killing the open web, part 2
A static site is one that you can serve through static hosting, where you have no control over the web server or its configuration. There is not some extra thing which is a static site with dynamic content. “Static” means “doesn't change.” The document served doesn't change subject to the person receiving it. You are talking about a solution that is dynamic. That does change based on who is making the request.

>you could definitely use a static site generator to create multiple versions of the site data and then configure your web server to select which data is emitted

And this web-server configuration would not exist within the static site. The static site generator could not output it, therefore it is not a part of the static site. It is not contained within the files output by the static site generator. It is additional dynamic content added by the web server.

It breaks the fundamental aspect of a static site, that it can be deployed simply to any service without change to the content. Just upload a zip file, and you are done.

James_K··on Google is killing the open web, part 2
A static site cannot inspect headers. There is no HTML, or even JavaScript function you can put in a file to inspect the headers before the file is sent to the client.

A static site is a collection of static files. It doesn't need a server, you could just open it locally (in browsers that don't block file:// URI schemes). If you need some special configuration of the server, it is no longer a static site. The server is dynamically selecting which content is served.

James_K··on Google is killing the open web, part 2
So in other words, no more static sites?
James_K··on The Miracle of Wörgl
For those interested, this is a generally and expression of Modern Monetary Theory (MMT).

The essential conclusion is that most places with hyperinflation (Weimar Germany, Zimbabwe, etc.) where really suffering supply shocks (reparations, farming collapse) and so you actually can just print money, as long as you're using it to get people working and those working people produce greater value through their work than they are paid in printed money.

James_K··on Oracle is underwater on its $300B OpenAI deal
Whoda thought that agreeing to build $300 billion of infrastructure for a company with $20 billion revenue and zero profit was a bad idea?
James_K··on Google is killing the open web, part 2
You cannot generate a valid RRS/Atom document which also renders as HTML.
James_K··on Google is killing the open web, part 2
No because then it would not be an Atom feed. Atom is a syndication format, the successor to RSS. I must provide users with a link to a valid Atom XML document, and I want them to see a web page when this link is clicked.

This is why so many people find this objectionable. If you want to have a basic blog, you need some HTML docments and and RSS/Atom feed. The technologies required to do this are HTML for the documents and XSLT to format the feed. Google is now removing one of those technologies, which makes it essentially impossible to serve a truly static website.

James_K··on Google is killing the open web, part 2
I use XSLT because I want my website to work for users with JavaScript disabled and I want to present my Atom feed link as an HTML document on a statically hosted site without breaking standards compliance. Hope this helps.
James_K··on Google is killing the open web, part 2
> Security? MUCH worse.

This is patently false. It is much better for security if you use one of the many memory-safe implementations of it. This is like saying “SSL is insecure because I use an implementation with bugs”. No, the technology is fine. It's your buggy implementation that's the problem.

James_K··on Google is killing the open web, part 2
What's long overdue is them updating to a modern version of XSLT.
James_K··on The man who keeps predicting the web's death
Yes. The front page of the internet used to consist of websites. Now you need to go to a special niche place to find the websites.
James_K··on Open-source Zig book
There's also the classic “it's not just X, it's Y”, adjective overuse, rule of 3, total nonsense (manage memory with surgical precision? what does that mean?), etc. One of these is excusable, but text entirely comprised of AI indicators is either deliberately written to mimic AI style, or the product of AI.
James_K··on The man who keeps predicting the web's death
And the fact this remains a Web site is truly remarkable. The reason it is popular with a niche group of technically minded-users is because Web sites are so hard to come by these days that you need a special place to collect them.
James_K··on The man who keeps predicting the web's death
The Web is dead. Most people access the internet through one of perhaps ten popular applications that do not contain Web content (semantic XML documents hyperlinked together).
James_K··on Open-source Zig book
> Most programming languages hide complexity from you—they abstract away memory management, mask control flow with implicit operations, and shield you from the machine beneath. This feels simple at first, but eventually you hit a wall. You need to understand why something is slow, where a crash happened, or how to squeeze every ounce of performance from your hardware. Suddenly, the abstractions that helped you get started are now in your way.

> Zig takes a different path. It reveals complexity—and then gives you the tools to master it.

> This book will take you from Hello, world! to building systems that cross-compile to any platform, manage memory with surgical precision, and generate code at compile time. You will learn not just how Zig works, but why it works the way it does. Every allocation will be explicit. Every control path will be visible. Every abstraction will be precise, not vague.

But sadly people like the prompter of this book will lie and pretend to have written things themselves that they did not. First three paragraphs by the way, and a bingo for every sign of AI.

James_K··on Operating Margins
History is filled with bubbles and crashes. At this very moment, there are trillions of dollars invested into companies with no clear profit model who are openly and obviously fraudulent in their accounting practises. Do you think this allocation is driven by a rational consideration of the risks of investing in a business with massive obligations and no possible way to service them? Or take bit coins. They are fictional products with clear negative value, and yet some financial professional push to integrate this funny money into the real economy.

Compare and contrast: resource allocation in finance-heavy Western nations with the same in the finance-light China. It's abundantly obvious to me that, through suppressing their financial sector, China has reached a superior economic outcome than they otherwise might have. We have elected to make traders the managers of our economy, and I think they have done a clear bad job and that we aught to reassess treating their decisions with such primacy.

James_K··on Lawmakers want to ban VPNs
>Of course, what if I use an SSH tunnel instead

Are you a child? Probably not, so you are just accessing legally available content by alternate means. It's strange how many people think they are out-smarting a system when said system is explicitly designed to allow them access.

These laws are primarily intended to stop children browsing the internet from being exposed to porn and gore when they're simply browsing the web. A child who has gained sufficient independence to purchase their own VPN subscription or operate an SSH server to look at pictures of boobies without their parents knowing has also likely reached the point in life where doing so is not harmful to them.

James_K··on Lawmakers want to ban VPNs
A trivial amount of legislation can fix that. Law reads: ISPs must implement implement parental blocks by default, exceptions may only be made on a per-device basis. Parental controls must also be enabled on public wifi. Easy as that. It doesn't matter how lazy you are, actively going and turning something off is more effort than not.
James_K··on Lawmakers want to ban VPNs
It seems it would be much more effective to regulate ISPs, requiring them to disallow users from accessing adult sites and VPNs without first verifying their age. This also wouldn't be a violation of privacy since you are already giving your ISP your physical address. The only place users would be expected to identify themselves is over public wifi.
James_K··on Async Mutexes
They have realised that, in single-threaded code, an implicit mutex is created between each call to await, and therefore state variables can usually be organised in such a way to avoid explicit mutexes. Of course, one strongly suspects that such code will involve a lot of boolean variables with names such as “exclude_other_accesses_to_data”.
James_K··on Operating Margins
This assessment is not based in historical reality. The last famine in the Soviet Union ended in 1947, more than 40 years before its dissolution, and with World War 2 being a major contributing factor.

The broader economic situation of the USSR is a very different question to whether or not they were able to progress beyond subsistence farming. One is a relatively nuanced topic, the other is a question that can be answered trivially by someone with the most basic historical knowledge, or even knowledge of modern Russia which clearly has not developed from subsistence farming to a developed economy in the time between 1991 and today.

← PreviousPage 3 of 28Next →