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 1y ago · link · parent

Interesting. How do you avoid users misusing such a tool? How do users know you won't misuse the tool against users? On a technical note, do you rotate IP's on each request, even for sub-resources of the same page?

comment 1y ago · link · parent

I suppose my point is that the readers who will wonder about this are a) very likely to know about complexity classes already, or b)capable of learning about it themselves. Perhaps a simple link to something like https://complexityzoo.net/Petting_Zoo would have been a nice middle-ground.

Edit: Aaronson even mentions the n^100 problem in the section about P!

comment 1y ago · link · parent

Be generous - it saves a lot of time. Once you say "polynomial" readers will think, "like, ANY polynomial, even like n^100?!" and you'll have to explain, yes, but that's STILL better than exponential, etc. They avoided all of that

comment 1y ago · link · parent

It would seem that Pixar's Wall-E took more than a little inspiration from The Machine Stops. The ending of the original is better, since it acknowledges the universality of decay. The ship in Wall-E, the Axiom (the rough analog to The Machine) is in excellent shape even after 700 years, and long since any living human knew anything about how it works. A rosy picture indeed! But The Machine is wordless, humming, utterly inhuman, and it decays in the end. Interesting that the mechanisms that compose Axiom are all sentient and expressive and individual - a hallmark of Pixar's "anthropomorphize all the things!" approach to story-telling. But the central theme about human dependency on technology is exactly the same.

I wonder if humanity could/should have its cake and eat it to. Imagine a world where different communities intentionally live at different technology levels. At the lowest level, you don't have electricity, just man- and animal-power. At the mid-level, you have steam engines and electricity, but no computers. At the high-level you have everything. Ideally one could choose which level to live at, perhaps at the coming-of-age. The nice thing about such a civilization is that it's resiliant to damage - for example, a Carrington event (e.g. massive solar flare) might destroy the high-level civ, damage the medium-level civ, but leave the low-level civ untouched. There might even be instructions/commitment/duty for civs to rebuild each other after disaster. (I believe we badly overestimate our ability to "drop down" a tech level in an emergency; such lifestyles must be maintained by practice.)

comment 1y ago · link · parent

>this Chrome graph with 140k nodes would also be too much

I've heard the rule of thumb from Tufte is that a visualization cannot have more than 1000 elements and still be useful. However, I'm not sure he said that and I cannot find supporting evidence...but it seems right to me.

Consider that mapping programs maintain the same level of information density at every level of zoom. I'm not sure, but this might be called "semantic zoom". I remember Microsoft doing a demo of Photosynth (now defunct) years ago which demonstrated impressive results.

One approach would be to play around with grouping nodes in useful ways, perhaps even dynamically according to user input, such that the resulting bundles represent ~100 raw nodes on average yielding ~1000 bundle nodes in the top-level visualization.

comment 1y ago · link · parent

Really cool, but has anyone built software to do this locally on a PC? For example:

   sudo tcpdump -i "eth0" -w - -U | aplay -f S16_LE -r 44100

comment 1y ago · link · parent

If the trend continues a program will look like "JavaFactory("<prompt>").compile().run();".

comment 1y ago · link · parent

This has the flavor of a post written by a programmer who got a particularly interesting interview question. They continued working on it when they got home. Hey, it's happened to the best of us (I was once asked to write "tic tac toe" and at the time I was really getting into functional programming and simple data structures, and for some reason I didn't stop working on the problem for a few days because I wanted to generalize tic-tac-toe in scale, depth, e.g. deeply nested tic-tac-toe, and dimension, where the board has more than 2 dimensions) but I'm not sure I would have written a paper "What every programmer should know about implementing nested tic-tac-toe on large arrays in high dimensions" because the answer is, almost certainly, nothing.

comment 1y ago · link · parent

Mise is pretty new, and it's userbase is tiny (afaik), so the overlap with it and anything is tiny. But I've enjoyed it as a replacement for ruby/node/java/python version managers, and I think it's a solid, thoughtful piece of kit. I think it targets curious, multilingual hackers who I imagine would be the kind of people to try out R to "kick the tires" just for fun (I imagine Elixer, Erlang, and Zig are in there for the same reason...surprised not to see Julia). It's also the case that mise is already doing all the heavy lifting of documentation, website, installation, etc so might as well not reinvent the wheel (such projects always have far more scope than you think, in my experience!) It could free you to making the package manager that much better (a very hard problem in itself).

I'm not affiliated, btw, just a happy user. Shout out to DHH for introducing it (to me) as part of Omakub.

comment 1y ago · link · parent

You might want to consider writing a plugin for R with Mise en Place https://mise.jdx.dev/core-tools.html This would extend your reach and might take some of the heavy lifting out of the project. (At least for the runtime portion. I don't think it will help with package management.)

comment 1y ago · link · parent

>Sabine has the most nihilistic view of the field

"The field" in her case is "particle physics". And she's been making a very good case against the non-science being done in that field. Unfortunately, like physicists tend to do, for some reason, she's branched out into criticizing "not her field" as well, sometimes even non-science topics, to far worse effect. She's become an excellent example of audience capture, a loss to us all (and a loss to credibility she earned within particle physics).

comment 1y ago · link · parent

This is very good news. Especially in light of recent attention given to the possibility of CPU shortages. Lots of programming tasks can be done comfortably on a smartphone. For example, no build front end programming. The description "desktop view" is unfortunate since it calls to mind a browser mode where the site is displayed as it would be on a desktop. And this is something completely different. I do hope this mode does not require an external display because it would be quite useful even with the phone's native display. Especially given their hypixel density and the availability of reading glasses.

comment 1y ago · link · parent

OOM off by one OOM is 10^10, so its a factor of 10 billion.

comment 1y ago · link · parent

I imagine that a really useful piece of information is where the QR code was spotted. So that means treating the photo of the QR code and its exif data as part of the puzzle. No doubt some URLs are more common in some parts of the world than others in a kind of ode to geoguessing games.

comment 1y ago · link · parent

Listening to Cryptonomican 20 years after reading it. It is a curious embodiment of this "cult" but from a deeper, more epistemic place. The way Steaphenson treats the world, the way he describes it, is frenetic, packed with trivia and connections and ADHD deep-dives into related topics...but there is no heart to it. It's an empty, mechanistic view of the world, reducing almost every person a neat little network of abstractions, and then moving on. It is a strange book in that it seems to be a promotion of a narrative viewpoint rather than about the plot or characters. It is certainly the viewpoint of the "modern" tech entrepenuer, circa 1999. Somehow both extremely open minded AND judgemental; utterly unsentimental about anything, including the self; mere acceptence and wariness about indelible human needs. And so on.

Word on the street is that Cryptonomicon was required reading at Thiel's early Palantir. I read it now and it definitely hits differently. To accept that you must dwell in something in order to understand it, and therefore in order to wield power over it with any wisdom, is the antithesis of "The Cult of Doing Business". The hubris is baked in deep at an epistemic level, which is demonstrated to lead to epic moral hazards at an epidemic level.

comment 1y ago · link · parent

There is a sense in which wilful ignorance IS malicious. Whether the fruits of that ignorance are therefore malicious is another question. I'm not a lawyer, but I know that they make a clear distinction between intent and ignorance. That is how, in fact, ignorance (or its appearance), becomes a strength. You cannot lie if you don't know. Even better is when you display ignorance but then somehow also have millions of people convinced they can read between the lines that you are not ignorant. "The best way to lie is to tell the truth and not be believed," as Twain once said.

comment 1y ago · link · parent

I've paid attention, and I don't think his goal is to "destroy the USA". His goal is self-enrichment, and side-effects don't matter. He is a master at promising the world, and then deflecting blame when he doesn't deliver, and yet the people love him anyway. It is very easy to destroy something under those circumstances without having the goal of destruction. See Hanlon's Razor.

comment 1y ago · link · parent

There have been several bottlenecks, the worst one was pre-homosapien (~1000 individuals for 100k years): https://en.wikipedia.org/wiki/Population_bottleneck.

It is remarkable to imagine that every person alive now, or that's ever been alive, is descended from this same tiny group of beings. And all of this drama occurs in a remote spec of dust orbiting and average star of an average galaxy of 100B stars, among 100B visible galaxies. Even if we had Star Trek level tech, we'd still be approximately as insignificant.

comment 1y ago · link · parent

What if the valid input for quantity must be greater than 0? A reasonable constraint, I think. The OP's example is contrived to line up with Rust's built-in types, and ignores the general problem.

comment 1y ago · link · parent

I don't get it. Isn't this a runtime problem and not a compile-time problem? buy() or sell() is going to be called with dynamic parameters at runtime, in general. That is, calls with concrete values are NOT going to be hard-coded into your program. I would write the function to assert() invariants within the function, and avoid chasing compile-time safety entirely. If parameter order was a concern, then I'd modify the function to take a struct, or similar.

comment 1y ago · link · parent

Interesting. "Animation" seems to cover a lot of ground, like "programming". They seem to fit into "artistic" animation, designed to be looked at, and interactive animation, and in this list mainly for UI component interaction and feedback. But in addition, animation is used for data visualization (e.g. D3 or charts.js) and game programming. Did I miss a category? Are these the right names?

comment 1y ago · link · parent

I'm not so sure about the author's thesis. One quote alone explains it, "it increasingly appears that humanity is a biological bootloader for digital superintelligence." If indeed Musk believes this, then his actions now matter not at all, except insofar as it either helps or harms the birth of "digital superintelligence". This is a similar "ends justify the means" argument to the "effective altruists" and the general idea to "not miss the forest for the trees", the forest being long-term viability of humanity, the trees being individual well-being.

During peacetime, making such an argument justifies the selfish and destructive action they wanted to take anyway. The framing of the assertion is impossible to make an objective assessment of the success of an action, since such an assessment may take a hundred, or a thousand, years. So really there is no way for anyone to judge whether an act is good or bad in this framework, leaving it only as a matter of judgement of the actor. In this sense, Musk's invocation of Banks is simple megalomania with more steps.

comment 1y ago · link · parent

There is one way to pay rent which requires no RAM or CPU cycles: write a check, and mail it. In my experience, most payees accept the date a check is mailed as the date of payment. (There may be exceptions to this, and I'm not sure what, if any, protections the law provides, so it may not be a valid fallback.)

In general society needs to maintain these low-tech fallbacks to high-tech "improvements". For example, we should keep taxis (that can be flagged down with your hand, and paid for in cash) and not rely solely on Uber, Lyft, etc. We should keep the ability to order from a human at restaurants. We must resist putting the smartphone into the unreplacable critical path of human life. To do so values technology above the value of human life.

comment 1y ago · link · parent

But shipping is in service of curiosity, though! There is nothing more fascinating than watching your work come into contact with real users. They will find error modes and use-cases you never imagined. If you code for fun and no-one ever sees it, then you'll never have this experience.

comment 1y ago · link · parent

>web dev/gradle/java knowledge to build something like this

Web dev (and not just in java) is dominated by "component integration" concerns, containing lots of structure but little content. Computation is delegated to libraries, and the problems more about complexity of integration (at build time) scaled distributed systems (at runtime). In contrast, writing a simulation is computationally intensive, so most of the code is content. It's homogenous where web dev is heterogenous. The problems are entirely constrained by single process performance within a time budget determined by fps.

All that means is that you can focus on one runtime. I suggest the browser, since it solves the distribution problem. Ganja[1] is perhaps the ultimate "content, not structure" simulation project. It's very strange, and lies unmaintained because it's impenetrable. Yet it works. A bit more structured is D3 who's authors have written cutting edge visulation/layout algorithms for you, for example in support of force directed graphs[2]. A more friendly way to get started would be with some variant of Processing[3], which started as a Java thing and then got ported around, including to Python and JavaScript. A word of warning: something like cloth simulation is to a game engine what a single cell is to a mouse. Game engines are huge, in other words, and again you won't be writing simulations, lots of (internal) integrations.

1 - https://github.com/enkimute/ganja.js/blob/master/ganja.js

2 - https://github.com/d3/d3-force/tree/main/src

3 - https://processing.org/

comment 1y ago · link · parent

Strictly speaking, a philosophy can't turn away from values. A person can, but philosophy itself is, to a first order approximation, an immutable bundle of values.

Of course this naive view quickly falls apart when interpretation comes into play, as it always must. In the extreme, one may assert that "philosophy" is encoded in the behavior of it's adherents, and these behaviors may have little or nothing to do with the "canonical" representation of the philosophy as immutable text. Or more precisely the behavior and words can be profoundly decoupled. Many examples of this decoupling occurs to your thought (and mine). So when you say that a philosophy can "turn away" from values, in this sense that is true.

I prefer to think of philosophies as a kind of Platonic ideal, which are then subject to all the foibles of the humans who associate themselves to them. There are some subtle problems with this view, which I'd rather not confront.

1
101112
22