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

Was an early adopter of Github Copilot but I quickly turned it off because of the noise. I really like AI for "gap filling" (for example, I used AI extensively to help me write my bash deployment scripts for simpatico.io) and porting tasks, both of which lend themselves to copy/paste into a browser.

comment 2y ago · link · parent

This suggests that an analyst at HP has omitted the "brand damage" column from their spreadsheet.

comment 2y ago · link · parent

Perhaps it would be useful to describe a program type that only does one pass through its source. No loops or function calls. It may be useful to describe a single block of reusable sections, which cannot refer to itself in whole or part, to reduce program redundancy. Or rely on compression algorithms to remove the need for even that. The one pass part would be something like a shader language.

comment 2y ago · link · parent

The decision then is between building "an automated Inkscape pipeline to turn text into plain paths" and creating a PNG.

comment 2y ago · link · parent

An intriguing answer, but I'm afraid I didn't know enough terms of art to really understand it. Here are some definitions for the interested:

ArF: argon fluoride. ArF lasers emit at 193nm

EUV (Extreme Ultraviolet Lithography): A type of lithography that uses light with a wavelength of 13nm

DUV (Deep Ultraviolet Lithography): Refers to lithography techniques that use deep ultraviolet light, such as 193nm ArF, for patterning.

NA (Numerical Aperture): A measure of the light-gathering ability of an optical system, like a lens, used in lithography to improve resolution.

Water Immersion: A technique where water is used between the lens and the wafer to enhance resolution in immersion lithography.

Multi-patterning: A method where multiple exposures are used to create smaller features. (Would like to know more)

Pitch: The distance between identical features in an array, crucial for determining the density of components on a chip.

Gate Length: The length of the gate in a transistor - affects its performance and power consumption.

Fin-FETs (Fin Field-Effect Transistors): Transistors with a fin-like structure that improve control over current flow, commonly used in advanced nodes.

Nano-sheets: a three-dimensional transistor structure that utilizes thin horizontal sheets of semiconductor material stacked vertically.

GAA means: "gate all around" - the gate surrounds the channel on all four sides with stacked horizontal nano-sheets.

comment 2y ago · link · parent

It was a typo, now corrected. I was suggesting, humorously, that 10nm light could be called both 'extreme uv' and 'underachieving xrays', since they overlap. The EM spectrum is continuous, so these distinctions and names are arbitrary, so why not have some fun?

comment 2y ago · link · parent

I was curious that they claim that lithography is done with ultraviolet, and I looked up the wavelengths involved. Sure enough, "typical" UV is still hundreds of nanometers long, like visible light. This would be too coarse for small features since you'd get diffraction at the edges of the stencil. I looked up UV in wikipedia and apparently they have defined "extreme UV" to be down to 10nm - which I would have called X-rays. Indeed, if 10nm is extreme UV, perhaps we can also call 10nm light "underachieving X-rays".

https://en.wikipedia.org/wiki/Ultraviolet

comment 2y ago · link · parent

  Location: US
  Remote: Yes
  Willing to relocate: No
  Technologies: JavaScript (node, angular, react, redux, rxjs), Java (spring, hibernate, DB (postgres, mysql, oracle, sql server), Cloud (GCP, AWS, Akamai).
  Résumé/CV: Available upon request, for privacy reasons
  Email: hi@simpatico.io

comment 2y ago · link · parent

Sounds like a good value prop. One thing that I'm hoping is to reduce dependency on a single private company, npm inc., in publishing and distributing modules. But you didn't list this as a value prop. (I notice other posters are upset at the 'fragmentation' of module distribution, but I see this as a strength, not a weakness.)

comment 2y ago · link · parent

People have strong preferences in this area, as to be expected. After all, good programming pedagogy itself is weakened because it is, by nature, partitioned by language (and often further, by framework).

I prefer to zoom out and realize that everyone wants all tutorials to be written in their favorite language, and realizing this makes me a little less attached to mine, and more accepting of others, even if they are not for me.

comment 2y ago · link · parent

Hi there! I think JavaScript is a great way to teach, since it's such an accessible language. It also allows you to ship your code to run easily for your users.

The OP's code needed a little help; there were some missing functions, misnamed calls, and he didn't use js BigInts (which are built-in to the browser, and you can use them as literals by appending 'n' to a number.)

See (and run) the fixed up code here: https://simpatico.io/crypto.md#rsafromscratch

EDIT: for my own crypto needs in the browser I use `subtle.crypto` with ECDH - https://en.wikipedia.org/wiki/Elliptic-curve_Diffie%E2%80%93...

comment 2y ago · link · parent

Seems like a wholesome venture to me. After all the very foundations of computing rely on the ability to differentiate between two states. It is only by convention we call them "1" and "0", and historical circumstance that we (mostly) use vast arrays of nanoscale transistors in SRAM and DRAM to represent almost all modern states. But any system that has (at least) two distinguishable states is a valid basis for computation. So projects like this are not just fun but remind us of the fundamental arbitrariness of our interpretations.

The next project I'd like to see from him (assuming he's not serious about quitting!) is the use of checkboxes to represent the layout of RAM in a simplified computer, and the state of a CPU registers and pc, such that the grid represents an input and a sequence of binary-encoded instructions. Might be simpler to define your own architecture, or pick a simple one like ARM. Using this, implement a simple, ideally recursive, algorithm like finding the gcd of two inputs. (Hopefully the state is actually stored in the checkboxes and not just treated as a rendering of some other more conventionally modeled internal state, such that if you slowed down execution and started clicking you'd get...interesting results.)

comment 2y ago · link · parent

In another comment, they pointed out https://youtu.be/htYh-Tq7ZBI?si=lOmsCL2DoqUCQgh1&t=1540 in which Freya did an excellent job reducing the number of axioms to 1: If you define multiplying a vector by itself to be equal to the length of the vector, squared, then everything else falls out of simple polynomial multiplication. It's quite lovely.

comment 2y ago · link · parent

What a wonderful talk, thanks. It reminded me of https://enkimute.github.io/ganja.js/ which is actually a library by enkimute, the OP! (It's quite a remarkable library too, by being a single file, no-build script that supports N dimensional algebras along with render support.)

comment 2y ago · link · parent

I used to believe that any organization who takes morality seriously must fund it's equal and opposite organization. It would serve as a foil, collecting unhappy customer stories and potentially turning them into lawsuits. The second organization's stated goal is to end the first organization. But after a moment's thought, the Shirky Principle clearly makes this unworkable - both orgs want to survive, so the second org will, in general, tend to shirk its duties (so to speak) and function merely as a private welfare scheme and a cloak of respectability for the first.

comment 2y ago · link · parent

The comparison is between drummers:drum-machines and carriage-makers:car-makers. The first number is non-zero in both cases, but the ratios are far different, and the first ratio >> the second.

I think that's useful.

comment 2y ago · link · parent

>It read a whole codebase and suggested a place to insert a new feature—with sample code.

I'm hopeful that this is going to be more like the invention of the drum machine (which did not eliminate drummers) and less like the invention of the car (which did eliminate carriages).

comment 2y ago · link · parent

Hey, thanks very much for the tip! I did some (random) searches and found, for example, this 7 pound device[1] that offers 300W output, 256Wh capacity, and 30ms failover at $180. Seems like a great little device that could serve a dual purpose as both a UPS and also a camping/project power supply if you can't have/don't want a gas generator. They claim a 10-year lifetime of the battery and 80% capacity after ~3000 cycles, which seems hard to believe, but maybe LiFePO4 is really some sort of miracle material.

https://www.ebay.com/itm/166440776366

comment 2y ago · link · parent

Can anyone recommend a good modern UPS? It seems like Lithium Ion would have the best power density, but perhaps lead-acid is actually better for this application? Good surge protection would also be great. It would be nice if there existed a UPS brand that is like Anker for USB cables and power adapters or Brother for printers.

comment 2y ago · link · parent

Indeed, webapps are not immune to distribution problems. Wayward and invasive browser extensions are a clear threat, as are 3rd-party dependencies (and their dependencies) loaded at runtime. Which is why companies like https://sentry.io exist. I think the difference is that webapps are "distributable by default" and it takes real work to break this. Versus having local desktop apps which require work to distribute. A potent example of the power of defaults.

comment 2y ago · link · parent

> in many companies it is hard to convince IT to distribute your software

Isn't that the definition of hard?

comment 2y ago · link · parent

> What does ownership mean here?

It means owning the code and the data. With webapps, the code and data are hosted and owned, the users do not own the code, cannot run it independently. This is a clear dileneation between owner and user, and the owners can use that clear line to create artificial scarcity of various kinds. (The most popular being the subscription SaaS model). It's also easier to defend your IP since end users never see your binaries.

> I like to make my software single html files whenever possible. People can just save them and run them locally. Havent met anyone who cares yet though.

I like that idea a lot, and I care. I think others care, but yes, it's a niche interest. Take a look at https://tiddlywiki.com/ for an example of a fairly successful project that uses the single html format running locally. However it suffers from limitations on File|Save which often requires a separate runtime of some kind to support.

Another project that approaches this ideal is https://redbean.dev/, @jart's tiny, performant, featureful single-file webserver. In this case the "single file" is a server executable + zip whose state must be updated on the command-line, but I think hits a sweet spot in terms of practicality, and a global minima when it comes to minimizing dependencies. (Redbean bundles SQLite and Lua so it's also possible to do through-the-web state updates as in a traditional webapp.)

My own project, Simpatico, aspires to be something along these lines.

comment 2y ago · link · parent

It turned out the distribution (and to some extent, ownership) problems eclipsed every other problem in software. This is why the web won, because it solves distribution and ownership immediately.

The trade-off was/is that building software as easily as late 90's desktop applications is extremely difficult to do on the web; in fact, we're still not there. Surprisingly, no-one has made a Delphi (or Access) clone that runs on the web. It seems like we're getting there, but incredibly slowly and only asymptotically approaching that experience.

On the bright-side, webapps have invented some novel and useful ways of writing applications that are in some ways superior to the old ways - the ideas behind React (in particular, rendering application state as a single function), or Redux (modeling application state as a monolithic, immutable object against which reducers run) may not have arisen if not for this shift. I'd also credit JavaScript with making functional programming mainstream, a great example of "worse is better".

Another part of the issue may be that younger programmers are simply not aware of the DX of building with tools like Delphi or Access. And in turn, older programmers have forgotten the headaches of dealing with closed-source tools and the distribution headaches that came with them. (And the ones who are aware are themselves unaware of the DX of building with Smalltalk.) You cannot miss what you never experienced or do not know about.

comment 2y ago · link · parent

>Of course it could be that cosmology is wrong.

That's true, and physicists are actively working on that possibility, too, under the umbrella term "modified gravity".

comment 2y ago · link · parent

What a clear, step-by-step write-up of getting this POC (proof-of-concept) code running. She has picked as her audience experienced programmers, and one gets the sense that the write-up is as much for herself as for us. Which is great. We get to live vicariously through her and solve a small-ish (but non-trivial) problem with Rust, WASM and an OSM api with a cool visual payoff at the end. It's easy to let yourself not be impressed by straight-forward writing to a clear audience, because it looks so simple. But it's absolutely not simple and I'm glad to have found this blog and author. Thanks again, HN!

comment 2y ago · link · parent

No. The same cookies are added to both the host and guest pages.

comment 2y ago · link · parent

>people have large imaginations

There's a guy on youtube[0] that's convinced that every rock he sees is a fossil. His videos are a strange combination of absurd, disturbing, and relaxing.

0- https://www.youtube.com/watch?v=zQnCueSlWLY&t=0s

comment 2y ago · link · parent

> I never found a way for a server to check if the originating request is for an iframe or a new tab.

There is no such technique. One way to distinguish is to pick a URL convention and modify the URL (before the hash) of the iframe URL. For example, add ?iframe=true to the URL, and then have the server check for that. Perhaps more usefully you could include information about the parent URL, e.g. url += '?parent=${document.referrer}'. Or something.

comment 2y ago · link · parent

> it is in general bad for companies to become extremely large.

The core idea of your post is "moral hazard"[0], which describes a state where you are divorced from the consequence of your decision. Your idea also uses the intuition that the risk of moral hazard grows quickly with the scale of human endeavor, and reaches ~1 at a certain size. Moral hazard encompasses both the harm you do to others directly, as with missing or malicious support, and the indirect harm you do, as with externalities like pollution or depressing a local economy.

I personally think your intuition is obviously correct.

Moral hazard disconnects the social corrective circuitry present in small human groups like families or villages, but it also enables the creation and accumulation of vast wealth. This problem is known in philosophical circles as "The Problem of Dirty Hands"[1].

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

1 - https://plato.stanford.edu/entries/dirty-hands/

1
1819202122