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

I was thinking in exponents. Maybe I made a mistake. Let's see.

1B is 10^9. 1M is 10^6. So we need a factor that takes away 3 decimal points. A percent is already taking away 2 decimal points. We need one more. So .1% of 1B is 1M because 9-3=6. I was correct.

I think I see your error: you read .1% as 1%. I applaud you checking the math, even if this time you were wrong.

comment 3y ago · link · parent

That's true, but only if you actually have a rocket. You probably don't: you have a VW bug, or maybe a BMW. Almost no one has a rocket.

You're right, I think. What I get reading this thread, and other sources, is that VCs will trash perfectly good VWs and BMWs trying to turn them into rockets. The reason being that only rockets have value to them. VW and BMW business are failures. E.g. a .1% chance at $1B is actually worth far more to a VC than a 100% chance at $1M even though the EV is the same.

comment 3y ago · link · parent

Simpatico (https://simpatico.io, MIT on github) is a collection of related ideas and projects.

First, it's a minimalist, user-respecting, single-process, no-build web server written in ~500 lines of node. The server supports caching and file watching, markdown, letsencrypt TLS, and websockets. It does Etag client caching and disallows any 3rd party resource access with headers. https://simpatico.io/reflector

Second, it defines "literate markdown" or "litmd", based on Knuth's literate programming, that executes markdown code blocks in the browser. HTML, CSS, JS and Markdown are supported. This feature started as a hack to get around IntelliJ's inability to do syntax-highlighting on html in the body of a markdown file! Litmd also has good testing support, changing the background and favicon if any exceptions are thrown. Markdown is now my test harness. https://simpatico.io/lit

Third, there is a wonderful encrypted chat client that uses crypto.subtle to generate private/public keys in the browser, per tab, and use them to send messages. Currently these are entirely ephemeral, which aids testing. Eventually they will be stored in local storage. Each client has a GUID URL identifier, which I've exposed as both a link and a QR code for easily connecting with others on a mobile device. I think of it as an "anteroom" for social contact, useful in bars, parties or conferences where giving out more sensitive information like telephone or email may not be desirable. https://simpatico.io/chat

Chat is intended to generalize enable what I call "monomorphic javascript" wherein the browser becomes a server, chat becomes structured, and people code programs locally and share them easily with each other. (The original tagline was "Making software together") This remains the vision. In some ways I'm like a novelist inventing his own typewriter, and so far I only have the typewriter and some essays I wrote with it. But the novel is still there, still driving everything. https://simpatico.io/notes/simpatico

I've liked the tooling so much (tiny, no build, very few and very small dependencies, low start-up time) that I've used it to explore some novel data-structures and algorithms (https://simpatico.io/stree3, https://simpatico.io/combine2), and also to host "kata", or exercises in 3rd party technology like Angular (https://simpatico.io/kata/angular/my-project/bundle), or browser tech like svg (https://simpatico.io/svg) or crypto (https://simpatico.io/crypto).

I'm glad I decided to start running on a public host early. It's been an education. I don't think "full stack" devs who are used to handing off CI/CD and operations to other teams realize how insulated we are from the internet. There are constant probes, scripts trying to get into the system, trying to break it, on all open ports. It's fascinating. It's also been an education in bash scripting, systemd, and ssh (especially reading auth.log). The key here is keeping the stakes low - at best attackers will get a $5/mo VPS. It's amazing how much such a system can do - greatly inspired by Justine Tunney's redbean server, and others. (https://simpatico.io/notes/inspiration)

It's been validating to see how, almost by accident, this project is part of the "indie web" and also "local first". To see other people like DHH (https://twitter.com/dhh/status/1655076668787097607) and projects like Svelte (https://devclass.com/2023/05/11/typescript-is-not-worth-it-f...) start using plain javascript also feels right.

Currently, everything is in one repo so it's not easy to fork and use for yourself. You'd need to do a lot of deleting. One of my todos is to publish to NPM and make the process of spinning up your own reflector easier. However, this is not my primary use case! The primary use case is to get people coding in the browser!

comment 3y ago · link · parent

Subscription cost for entertainment is so high, and the quality of entertainment is so low, I can't help but think that most people keep these subscriptions purely out of habit and a BIG shift in consumption patterns is bound to occur. The shift will be to offline, generative software, or offline physical media. Online consumption will be limited to periodic cheap/free options like PBS Newshour, PBS Kids, newsletters, podcasts, and similar. Ideally we'd even see a re-uptake of media like a daily local or regional paper.

Personally, I think this shift could really improve society, the state of people's minds, and encourage more offline time without some draconian top-down time-limit. And all thanks to increasing the price and decreasing the quality of streaming content until you break the relationship. Cool!

comment 3y ago · link · parent

>please do submit some feedback on kagifeedback.org

To do so requires a kagi user account, which I don't have and don't want. It also requires knowing your issue organizational schema to find privacy policy related "bugs" and "features". If you are serious about taking feedback, consider taking the content of this thread to BE that feedback, and do the work of adding it into your bug tracker yourself, with links back to this thread.

And also, I am not a lawyer, and neither are you, so I'd consider hiring one to revise the policy with an eye toward increasing your liability for the right reasons.

comment 3y ago · link · parent

Having read your privacy agreement, I don't see where the threat is existential if you are in breach. I think that the knowledge of engineers of the judicial system, both criminal and civil, is very naive. You can sue anyone over anything at any time - you don't need valid grounds. It also doesn't mean that if you win it matters.

Your privacy policy has lots of feel-good language that actually doesn't mean anything - along the lines of the classic "We value your privacy" statement that firms often make. When you analyze it, you find it means nothing. There are no actionable clauses. For example, if you are in breach of "Anonymous logs are aggregated with GCP's logging tools, retained for 30 days." what are the enumerated damages? A counter-party would have to prove show BOTH that you are in breach AND then real damages , which is difficult in this case, and entirely misses the point. E.g. if you sell 1M user data records for $.001 each, and a user has on average 10 records on them, the real damages are $.01, but your firm made $100k on the transaction. I don't see a limit to class action (or forced arbitration) so that's good; but good luck building out that class - especially since you'll resist sharing user data with the class action plaintiff, using the same privacy policy as a shield!

(This is the other trick of privacy agreements, apart from not actually saying anything: the stuff that is measurable is unenforceable).

It's time that the public stop seeing moonbeams and rainbows in these matters. Do you think that a lender will be satisfied with a debtor statement "I value paying back my debts, and will never be late!"? If not, then why are we mollified by similar statements by software firms made to us? What is measurable has no teeth; what has teeth is not measurable.

It's a very dirty trick.

comment 3y ago · link · parent

Looking forward to the inevitable "Kagi sells user data" investigative report. The simple truth is that unless they make themselves explicitly liable to users if they are ever caught doing this, that the irresistable urge to monetize user data will tempt even the most well-meaning firm into sin. The ONLY solution is to make 'sinning' an existential threat to the firm. IANAL but I believe this can be done if ownership agrees to voluntarily enter into something like a fiduciary arrangement with their users. This means writing a EULA that does not minimize the firm's risk, but instead increases it in specific, meaningful ways. Increasing client risk is something attorneys are absolutely allergic to, and will argue up and down about why the client shouldn't do it. I would say that, if the customers know and care about such a step, it could be a valuable PR and marketing move that demonstrates REAL integrity.

As it is, we only believe that "users paying for services" will protect against data exfiltration because of very naive reasoning, or, perhaps more accurately, praying.

comment 3y ago · link · parent

The problem with documentation is that it's an untracked dependency with a slow, manual test procedure. An almost universal example of this is developer onboarding materials that are always (always!) out-of-date. In fact, most teams expect new devs to update the docs as part of their first tasks! (I think this is, in part, to measure a) their ability to deal with bad advice, and b) their willingness to make things easier for those that come after.)

It would be great to invalidate documentation when the underlying code changes. There would be two levels of invalidation differentiated by probability: "these docs are definitely wrong now" and "these docs may be wrong and need to be checked." This is easier with APIs than with UIs but I've not seen it done with either. Some motion in this direction are, for example, IntelliJ's comprehensive refactoring support that can and will search documentation.

I'm not really sure what a good solution looks like, but there's definitely a chunky problem to be solved here.

comment 3y ago · link · parent

Lois McMaster Bujold is one of those authors that never got as popular as they deserved. She does have a niche following, though. The Vorkosigan saga is very solid space opera with, unusually for SF, innovative and sensitive character work.

comment 3y ago · link · parent

People are naturally strangely shaped. When they join a large organization, they must fit into a Voronoi diagram[1]. Shape is a metaphor for both degrees-of-freedom and for knowledge. This is also, funnily enough, a good way to describe cell packing in plants, incl. trees.

One striking example of a role requiring deep behavioral and epistemic changes is that of a judge. A judge must learn to edit their memory and learn to not know things. I find this striking because you'd think that, objectively, knowing more is better. But the rules of court have decided this is not true. If you want that job, you will do this. (It's not all bad: any lawyer will tell you of the risk-minimizing bliss of not knowing things.)

The behavioral adjustments - mostly behavioral losses - are usually not so strange. Usually they are a peon to tribal socialization. In a tribe there are rules that aren't 'fair' because they do not reference the details of the specific conflict, who's right or wrong. The rules are simpler than that, making reference only to relationships and "who started it". You don't dis the leader, you don't pick fights, and absolutely never pick a fight with leader-favored members, etc.

The OP hints at the proper viewpoint, but then diverges. They are strange structures with lots of rustling leaves. But he does not perceive the value and origin of these structures on their own terms. One must take the view of a zoologist observing the behavior of a parasite, or a slime-mold. It is a mistake to anthropomorphize them, just as it is a mistake to anthropomorphize human social structures.

1 - https://github.com/d3/d3-voronoi

comment 3y ago · link · parent

Of course there will always be objections to any change. Everything is a trade-off. But if you wanted a truly secure device, you have to start with idea that every customer gets the same thing - a truly blank slate. It's only recently, and with incredible device density, that this assumption has changed. The fact that manufacturers CAN put extra CPUs and CAN put unique hidden, immutable data in your computer does mean it MUST be so. This is simply the path we've been going down for about the last 20 years or so. It doesn't mean we have to keep going down that path.

I'd also add that computers have multiple CPUs, and an FPGA and an M1, for example, could coexist, with the FPGA serving as the BIOS and firmware repository. I think there are real and frankly chilling reasons why manufacturers will not take this approach, and it's not because of economics. A truly free device is a threat to the establishment.

comment 3y ago · link · parent

You've obfuscated a good point. Open-source is a necessary, but not sufficient condition for openness. Actual human beings must also understand the source well enough to audit it and modify it. If heartbleed occurred in closed source, it would still be an active problem. The vendor would be reluctant to even admit the flaw, because it makes them look bad. And the whole world realized that one guy was maintaining OpenSSL, and he was on the edge of poverty. It was a wake-up call. Thousands of devs looked at the code, and understood it well enough to patch and fork.

It's also true that, because of historical accidents, we have several more examples of https://xkcd.com/2347/. However, that's not an argument against open source. It's an argument that we all should take ownership of what we ship, all the way down, without exception. An open CPU definition is a necessary, but not sufficient, requirement for this level of ownership.

comment 3y ago · link · parent

Really good idea for an app. My only wish is that the data was local only. It seems to me that the temptation to monetize this very valuable data will be irresistible. Although it's been normalized over time, there is something very strange about trusting a perfect stranger with arguably some of the most sensitive data of your life. And yet this has become standard, so I think you're on firm ground. But I ask- should this really be firm ground? I think it's up to us technologists to make solutions that do the right thing even when our users don't know what that right thing is.

comment 3y ago · link · parent

That was also my experience as last as last year. However, something has changed. I suspect a combination of factors have depressed the market - my top two guesses are massive layoffs of highly skilled FAANG candidates, and uncertainty about the value of tech skills in general in the age of cheap AIs. The market seems to be recovering as the laid off workers either reabsorb or move on to other things, and the limitations of AI become clear.

comment 3y ago · link · parent

>The issue is really complicated.

As a counter-example, consider the Precursor[1] who's CPU is "... an SoC on an FPGA, which means you can compile your CPU from design source and verify for yourself that Precursor contains no hidden instructions or other backdoors."

Device manufacturers could ship firmware as FPGA images, such that end-users can start with a "blank slate" and then install arbitrary firmware upon delivery. They choose not to.

1 - https://www.crowdsupply.com/sutajio-kosagi/precursor

comment 3y ago · link · parent

I think you need to review the history of science. Alchemy did indeed yield many things of practical value, all of which were systematized and rolled into chemistry. And besides, the fact that an alchemy of one kind might be more valuable than an alchemy of another doesn't invalidate my point. It just means that once our field changes phase, it will be even MORE valuable.

comment 3y ago · link · parent

The problem with this question is that, if it's not engineering, what is it? A better question is motivated by studying the history of chemistry and its progenitor, alchemy. That is: is software development alchemy or chemistry?

Software development is alchemy. Just like alchemy, software dev is not standardized, everyone has their own idiosyncratic naming systems, classifications and rules-of-thumb. Like alchemists, software engineers are often jealous of their proprietary knowledge. Just like alchemists, they are admired, feared and loathed for having secret knowledge. And just like alchemists, you have to be exceedingly brilliant to work in such a chaotic field and get anything done.

So, what changed alchemy into chemistry, and what will be the analog to that in software? Arguably the change started with notion of conservation of mass and energy, and the development of the periodic table (thanks to Lavoisier and Mendeleev, respectively). As for what that analog is for software, first we need a characterization of the field. With alchemy and chemistry both, it's essentially mixing stuff together, heating and cooling it, and seeing what happens. But what is it for software?

First, software engineering is not computer science. Computer science is a tiny subset of software engineering. In daily practice, almost all of computer science is encapsulated in a few, tiny standard libraries - the places where bubble-sorts and hash maps live. (This mistake is consistent, and leads to "leet code" style interview questions which are irrelevant to actual work).

I'd characterize software engineering as the set of solutions to a boundary value problem[0] described as "a set of interacting screens with behaviors pleasing to humans". The current solutions to this problem have been idiosyncratically defined by resource constraints that relaxed exponentially over time[1], and characterized by elements discovered at random, by necessity: e.g. kernels, processes, files, procedures, terminals, etc. In this analysis "language" functions as a kind of "coordinate system" as in physics[2][3], within which each of these elements are described, and within which elements are combined to make new elements, which eventually yield a solution to the boundary problem (which is termed "application"). There is some coorespondence with chemistry, in that we have "elements" which combine into higher-level structures, but we lack an analogy to "conservation of mass and energy". And our elements are still highly partitioned according to coordinate system (although there have been several[4] heroic[5] attempts to unify them within a single framework.)

I don't particularly know what the standardization of software alchemy into software engineering will look like, but I'm certain that this analysis, or something similar to it, is the first steps in the right direction. Personally, I look forward to the day we can shed the considerable weight of our alchemical origins!

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

1 - https://en.wikipedia.org/wiki/Moore's_law

2 - https://en.wikipedia.org/wiki/Coordinate_system

3 - https://www.rosettacode.org/wiki/Rosetta_Code - the same problem is solved in many languages. For applications: https://todomvc.com/

4 - https://en.wikipedia.org/wiki/Lambda_calculus

5 - https://en.wikipedia.org/wiki/Turing_machine

comment 3y ago · link · parent

CL has gotten much much worse over the last few years. So has FB Marketplace. Perhaps a hidden value of the payola approach is to avoid these outcomes. Or perhaps every marketplace declines like this. It may be that private secondary market online market is simply not a sustainable business. That would be unfortunate, but interesting.

comment 3y ago · link · parent

I recently sold some items on ebay. ebay will not release the funds for 3 weeks. They give no reason for this. However I think the real reason is that if you do this over a large enough user base you can use the "time-value" of money to make extra money. It's nefarious, and I too will never use ebay again.

comment 3y ago · link · parent

>There will be no site that does not offer advertising, because advertising allows the site to determine which sellers can afford to pay more while still being profitable.

It's still possible that people exist who charge "what it's worth" rather than "what they can get". Those people can still make a fine living off of a two sided market place through flat transaction fees. Craigslist is an example that comes immediately to mind. Smart market participants are already punishing providers that maximize profit with payola, which is leading to success of new smaller niche markets - reverb.com comes to mind, or bricklink.com or alibris.com. That is not to say the market of markets is "solving" this problem - we probably want more consumer protection law - but it does show that your startement about ads is, strictly speaking, false.

comment 3y ago · link · parent

I also had a pair of aces and did not "win". Definitely a bug (probably aces are low in his code).

comment 3y ago · link · parent

It is fascinating to me that some people work hard to remove telemetry, and others work hard to add it.

comment 3y ago · link · parent

  Location: Jacksonville, FL
  Remote: Yes
  Willing to relocate: No
  Technologies: Java, JavaScript, docker, git, k8s, kafka, AWS, GCP, React, Spring Boot, HTML, CSS, 
  Résumé/CV: Will send a pdf in response to email.
  Email: hello@simpatico.io
1
1819202122