Better HN
topnewbestaskshowjobs
Log inSign up

simpaticoder

2,816 karma · joined Apr 3, 2023 (3y ago) · 658 submissions

Distributed programming Java and Node expert. Email me at hello@simpatico.io.
Submissions

comment 11mo ago · link · parent

If you tend not to believe something, give greater weight to evidence that it's true. If you tend to believe it, give less weight and actively seek for other explanations. This is how we defeat the confirmation bias in ourselves and have better arguments.

For example, believe climate change is quite real but have a poor intuition for its scale and timeline, which is why I am extra skeptical about the claim that these specific habitat changes are caused by climate change, and wonder what other factors may come into play. (I have the same reaction to climate events - if sloppy thinkers claim heat waves are evidence for climate change, then equally sloppy thinkers on the other side can claim cold snaps are evidence against. Both are wrong, and waste our time.)

Authors should speculate about alternative causal chains even if they eventually discard them. This builds trust. Unfortunately this good behavior is associated with climate change denialism, and so those who admit its reality simply don't offer an alternative even when the complexity of the situation is extremely high. The result, ironically, is just more badvocacy on both sides, more noise in the infospace, which ultimately means the "do nothing" side wins.

comment 12mo ago · link · parent

Yes, it's the PRs, and there is a misunderstanding I think because the OP and the GP's use-cases are quite different. Self-hosting your own repository on a remote server (and perhaps sharing it with 1 or 2 collaborators) is simple but quite different than running a public open source project that solicits contributions.

comment 12mo ago · link · parent

The uniqueness of our state is quite interesting, arguably profound. Sol exists in the so-called "Local Bubble" which is about 1/100 of the average density of the galaxy, probably caused by multiple supernova. It's possible, if not likely, that this has helped reduce impact events such that life has only reset ~6 times rather than hundreds, and probably contributed to the relative abundance of heavy elements in our solar system.

Earth's biosphere is profoundly 'lucky' on several very disparate time-scales. And then there's the size of the moon...

comment 1y ago · link · parent

Yes, and the antithesis of rhetoric is reason.

The quality I value in myself (and others when I find it) is a bias to doubt evidence of things I already believe, and to accept proof of things I do not believe. The bias isn't strong (that way lies madness!), but it makes your mental model of the world stronger. It's also a much better filter than "intelligent", "polite" or "articulate", which are all orthogonal to the kind of rational, open skepticism I advocate. The big downside is that such qualities are subtle and hard to judge. Tribal affiliation is, for all its faults, easy to measure.

Another point of optimism: being a persecuted (or neglected) minority can have some positive effects, if you can find your people.

comment 1y ago · link · parent

The big question for me is how to give a child an experience that builds an accurate mental model of what a computer is and what software is. This was easier back in the day (like, Apple IIe times) when you ran one program at a time and if you didn't interact with it, it sat there, inert. (Yes I realize there is always some steady-state physical process going on, e.g. the pulsing of the clock-crystal, refreshing DRAM, etc. But I'm talking about software.) There is something beautiful and....solid about running a single process running in immediate mode on a simple CPU.

Contrast this with a modern experience. There are hundreds of inscrutable processes running, constantly talking to the network, to disk, doing who-knows-what. What does "software" mean on a modern machine? Software runs the gamut from a command line one-shot tool, to an invisible daemon, to a desktop app with a window, or multiple windows, to something hosted in a browser, to something hosted by something hosted in a browser. How can you build a clear mental model amidst so much noise, clutter and (both UI and runtime) heterogeneity?

In the same why "phylogeny recapitulates ontogeny" I'd argue the correct computer for a kid is a single process box with either hard-coded programs or a floppy-like experience (e.g. SD card "floppies). Given all of this, the perfect kids computer system is an HDMI TV dongle that runs an Apple IIe emulator, Logo, and a handful of retro games, and an SD card slot for other programs (prepped by the parent). No wifi or internet, bluetooth for connecting a keyboard, and no mouse.

comment 1y ago · link · parent

>I personally don't think there is one optimum that we can reach.

I agree with this, and the containing paragraph. Everything is trade-offs. It may very well be that Facebook is under-regulated (and it probably is the case). I suppose I'm thinking of ways to use the situation to fix the much bigger and arguably worse problem with the justice system in general. Non-rich people (I don't say "poor" because I include middle-class as well) are totally boxed out of the justice system in the USA. A pox of scammers is just one of the side-effects of the ossification and decay of the system. I'd like to solve a big chunk of problems all at once, including this one.

comment 1y ago · link · parent

>I'm really struggling to see how they're "natural allies"

Ah, sorry. Perhaps I should have spelled it out. Meta desperately wants to avoid being regulated. One way they can avoid it is to help make the out-of-band justice system (much) more efficient such that they avoid messy moderation policies and don't need to be regulated anymore. Victims would be happier too, especially if they get remunerated for their pain, time, and trouble. The message to scammers everywhere (not just on Meta) becomes clear: go ahead and try it, you will get caught and put out of business, and likely sent to jail. Eventually the scammers will realize it's not worth it.

The unintended side-effect, sadly, is that legitimate business will be attacked as scams by profit-seeking or malicious individual malefactors.

In any event, I think reforming the US justice system is way overdue; it is far too expensive and time-consuming for most matters, and that means we live in a place with de facto lack of courts. And I don't like that.

comment 1y ago · link · parent

People's first instinct is to attack the thing they don't like directly. The second instinct should be to consider the system in which those things arise, and what the incentives are for everyone involved. If you have a roomful of loud children, you could apply draconian rules on silence; or, if you notice there is no sound-deadening and so the children are unwittingly participating in a positive feedback loop to be heard above the din, you can add material. My goal is not a libertarian one, its a minimalism one. Streamlining the court system has many other benefits besides this one; the excessive cost and time required to use the court is used systematically by malefactors at every level of society. From patent trolls to absurd rates of criminal prosecutions that are never heard by a jury, it's an enormous problem in our society.

Regulation always seems simple, but there are inevitable unintended consequences. Sadly, those who see regulation as the only or best tool to shape behavior are quick to suggest yet more regulation to fix those unintended consequences, either unaware of the positive feedback loop or certain there exists some set of regulation that will finally, perfectly fix the system. I find this way of thinking naive; it is almost always better to make adjustments to the system to shape behavior that way. And in this case, the obvious way to do that is to fix the courts, and make justice affordable again.

comment 1y ago · link · parent

*>They could massively reduce the volume of scams advertised on their networks

I'm not entirely sure that's true. It's equivalent to asking a platform to moderate all "harmful content" off the site. "Scam" is fundamentally subjective, just as "harm" is.

The real solution is to reform the justice system such that a citizen feeling they've been defrauded has a quick and easy process to get satisfaction for themselves and other similarly harmed people. We need a streamlined, totally online court that excels at gathering and interpreting data, and a decision in days not years. The ad networks are themselves the natural allies of such a reform, but such a change can and should start small as a pilot program at the state level. If successful, it removes the considerable legal-cost moat protecting scammers, and so it no longer makes sense to even attempt such a business, and the world becomes a slightly better place.

comment 1y ago · link · parent

pnpm has lots of other good attributes: it is much faster, and also keeps a central store of your dependencies, reducing disk usage and download time, similar to what java/mvn does.

comment 1y ago · link · parent

Gates is making a speculative case that climate change can be (should be) fought with the needs of the global poor at top-of-mind. He acknowledges the apparent zero-sum nature of it: impoverished people face much greater and more immediate threats than climate change, and fossil fuel tech (for example) really does address those urgent threats effectively. He solves this conundrum by speculating that we can have our cake (help the global poor) and eat it too (slow climate change) by inventing new tools and methods.

I hope he's right. I'm glad he's doing this advocacy. By doing so he's fighting two popular opinions, first that climate change is a hoax, and second, that climate change must be addressed even if it means sacrificing the well-being of the global poor. That said, I have grave concerns that Gates is simply wrong, that we cannot invent our way out of both climate change and the suffering of the global poor. His many remarkable mentions of AI do not, in my opinion, lend strength to his argument, nor does his mention of "almost commercialized" fusion. The former being a gimmick, the latter being forever 30 years away. If our hopes rest on tech like that, then we must prepare to be devastated and pick one side of the zero-sum.

comment 1y ago · link · parent

It's a lot, but not egregiously so especially when you consider it's spread over 3 hours. That's 3 beers an hour for 3 hours...if you're big (like over 200lb) you're going to be drunk but certainly upright. If you're smaller, well, results may vary.

comment 1y ago · link · parent

Given the title "Space Elevator" I was expecting some more information on a hypothetical space elevator cable. Assuming humans can manufacture defect-free nanotubes at any length and can combine them into thicker cables, you could specify at every height a) the cumulative mass of the cable, b) the thickness of the cable at that point, and c) the stress experienced by the cable at that point. You could further break c down into the gravitational vs centripetal forces on the cable at that point.

comment 1y ago · link · parent

Even more important than first order effects are any positive feedback loops we can identify. For example, a stressed person escapes into a screen to quiet their own thoughts, and the screen's contents stresses them out. This feedback loop is common to all forms of addiction, but screens are unique in at least three ways. First, they are legal for all ages. Second, they are personally customized to increase usage. Third, unlike drugs which distort reality, screens effectively replace it for the user. It is to be expected that this would have strong cognitive and even epistemic effects on users, and that these effects are self-reinforcing.

Neoliberal capitalism is not equipped to either identify or solve these problems. Some attempts are being made ("Calm" apps, self help books, etc) but these are sand castles trying to stem the tide. Society as a whole must recognize that screens exist in a superposition of "encyclopedia", "cigarette", "panopticon", and take steps to regulate their use. A bummer for libertarians, but life-saving for society.

comment 1y ago · link · parent

A gentle reminder that physical books are still available, and quite inexpensive when purchased used from, e.g., library book stores or thrift stores. It has no DRM, has a Paper White™ interface, and even has a nice smell and feel. You can loan it, give it, or sell it to any human without hassle or legal risk to yourself or them. You can highlight, add notes ("marginalia"), fold the corner of a page for a bookmark. Over time your copy of a book will accumulate incidental stains and marks, developing an identity of it's own. What's even more remarkable is that you own your copy, and it cannot be remotely changed, deleted, or corrupted or your access revoked.

comment 1y ago · link · parent

Okay I read your post more carefully and it seems like you're attempting to build one central script for a given URL. Assuming on-shot script generation is unreliable and requires iterative improvement this makes sense. Of course I'm biased in favor of local-first, privacy preserving and non-distributed solutions if they exist, so I'd be curious to know if/how you measured the reliability of one-shot script generation for a basket of likely web apps.

comment 1y ago · link · parent

Couldn't you solve this by having the agent do a first pass through a page and generate a (java)script that interacts with the interesting parts of the page, and then prepend the script (if it's short enough) or a list of entry points (if it's not) to the prompt such that subsequent interactions invoke the script rather than interact directly with the page?

comment 1y ago · link · parent

>[Matrices] seem to represent a more fundamental primordial truth.

No, matrices (or more specifically matrix multiplication) are a useful result picked out of a huge search space defined as "all the ways to combine piles of numbers with arithmetic operators". The utility of the discovery is determined by humans looking for compact ways to represent ideas (abstraction). One of the most interesting anecdotes in the history of linear algebra was how Hamilton finally "discovered" a way to multiply them. "...he was out walking along the Royal Canal in Dublin with his wife when the solution in the form of the equation i2 = j2 = k2 = ijk = −1 occurred to him; Hamilton then carved this equation using his penknife into the side of the nearby Broom Bridge" [0]

The "primordial truth" is found in the selection criteria of the human minds performing the search.

0 - https://en.wikipedia.org/wiki/William_Rowan_Hamilton

comment 1y ago · link · parent

It is indeed weird, and much ink has been spilled on the subject. Luckily I'm not answerable for them. I have no good answers and my speculation on the matter tends to be rather...dark.

comment 1y ago · link · parent

The experiment has only been run once, and it was mostly a white, Christian project. Payne's personal values doesn't change the facts of the experiment. If we could go back in time and witness the invention of the Enlightenment, political Liberalism, and Industrialization for other (race, religion) pairs, I'd love to do it. Maybe we can, as a proxy, look across the world at how different (race, religion) pairs have adopted liberal values to see if there are any patterns.

comment 1y ago · link · parent

Good comment. There is a trade-off between principle and loyalty, and "rule of law" puts the dial hard over to "principle". The mechanism behind its success is that it puts a society solidly into the "cooperate" Nash equilibrium. (Loyalty, by contrast, puts a society solidly into the "defect" equilibrium). I suspect that Christianity, taken broadly, also pushes the dial hard over to "principle". First, it "undermines" temporal loyalty by stressing loyalty to God. Second it installs a panopticon within the believers mind that guards access to eternal bliss. Third it provides a non-commercial venue for civic life (the church on Sunday) where "stink eye" becomes a meaningful enforcement mechanism of norms. I fear that the late 20th century focus entirely on the (real and very serious) error-modes of these mechanisms to the exclusion of understanding of their value. This throws the baby out with the bathwater. The secular reaction is to pass an ever-increasing and ever more comprehensive set of laws in a vain attempt to replace the loss of norms. When that finally fails (as it inevitably must) you decay into the "defect" Nash equilibrium, put the dial back over to loyalty over principle, abandon the fundamental innovation of the Enlightenment, and your civilization falls.

comment 1y ago · link · parent

I feel invited by the light-hearted nature of this project (and the beauty of this particular Sunday) to make a light-hearted observation of my own. The idea of a programming language that reads like a spell book...but what about a programming language that reads like Principia Mathematica[0]? How would that work, and would it make sense?

Flipping through it just now I was struck with several observations. First, it has a very formal structure (Proposition N Theorem M Phenomena P etc). And also the sheer amount of work he did in (Euclidian) geometry prior to even discussing gravity or calculus. But most remarkably of all, how little a computer would have helped Newton in his work. Oh sure, a computer would have helped Kepler a great deal! And even Newton is not without his tables. Newton would have really enjoyed Mathematica, but even it would have been useless since it assumes what Newton sought to prove.

In any event, this all leads me to realize what a narrow place traditional computation has within the entire field of human communication. The optimist in me sees this as affirming the unique power of the human mind; the pessimist notes that there are always more ways to get a problem wrong than to get it right.

P.S. The Principia is as often a philosophical work as a scientific one. Consider this excerpt:

RULE I. We are i’o admit no more causes of natural things than such as are both true and sufficient to explain their appearances.

To this purpose the philosophers say that Nature does nothing in vain, and more is in vain when less will serve; for Nature is pleased with simplicity, and affects not the pomp of superfluous causes.

RULE II. Therefore to the same natural effects we must, as far as possible, assign the same causes.

As to respiration in a man and in a beast; the descent of stones in Europe and in America ; the light of our culinary fire and of the sun; the reflection of light in the earth, and in the planets.

RULE III. The qualities of bodies, which admit neither intension nor remission of degrees, and which are found to belong to all bodies within the reach of our experiments, are to be esteemed the universal qualities of all bodies whatsoever.

These Rules of Newton have become so far subsumed into the zeitgeist that we hardly ever repeat them. (It reminds me of the feeling I got reading Descartes math papers). Indeed, most modern physicists scoff at philosophy for just this reason, because to them it's been "solved" and remains only as a jobs program for verbally talented charlatans. This is deeply unfortunate for at least two reasons: first, it is dangerous to assume the basics will always be in place; civilizational drift is quite real. Second, you give up using those same tools to advance human knowledge further - if Newton was able to use philosophy to clarify his point and purpose, surely another scientist might as well.

0 - https://archive.org/details/IsaacNewtonPrincipiaEnglish1846/...

comment 1y ago · link · parent

I disagree. The primary threat model for unencrypted http connections is a MITM attack. A middle box (a proxy or router) modifies the response payload to inject malicious content or modify the content. For an ordinary blog or personal website an attacker can gain compute, violate privacy, acquire a (minor) DDOS source, on the blogs users by injecting a script.

Another type of attack would modify the content of the site to suit the attackers purpose - either to hurt the author and/or their message. Consider the damage an attacker can do if they injected CSAM onto a person's blog. The victim's life would be ruined long before the wheels of justice turned (if they turn at all). The one mitigating factor is that you'd need to have reliable control over a relatively stable middle-box to execute this attack, but that's quite feasible. Last but not least don't underestimate the way software grows. Sooner or later someone is going to implement HTTP basic authentication over plain HTTP and, needless to say, that's a bad idea.

Look, I don't like it either. I remember when you could telnet into a server and interact with it. That was good for pedagogy and building a mental model of the protocol. But we have to deal with how things are, not how we want them to be.

comment 1y ago · link · parent

Marky (FB) and Vicky (Vercel) are rich kids and are spending their tooth fairy money to buy every kid at your kindergarten a cool toy. Some kids don't like the toy, but that's okay there are other toys.

Some other kids (and esp their parents) think this is terrible, that Marky is being cheap and Vicky only wants control of the playground. They don't like Marky and Vicky and try to hurt them every chance they get.

comment 1y ago · link · parent

This article has nothing to do with Java, and the author explicitly states that.

comment 1y ago · link · parent

Many words and few to the point. tldr: This person likes build-tools (Google's Bazel) that can constrain dependencies to be used only by certain packages, and says this documents the project's architecture.

I've always thought of "architecture" as a high-level description of run-time behavior, not a set of compile-time dependency constraints.

comment 1y ago · link · parent

I do hope you're joking.
1
567
22