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

Interesting that https://github.com/uNetworking/uWebSockets.js (which is C++ with node bindings) outperforms the raw C++ uWebSockets implementation.

It's also interesting that https://github.com/websockets/ws does not appear in this study, given that in the node ecosystem it is ~3x more likely to be used (not a perfect measurement but ws has 28k github stars vs uWebSockets 8k stars)

comment 2y ago · link · parent

Really cool! I particularly liked your Python and SQLite demos. I find it interesting that you started with a through-the-web (TTW) editing loop, calling it a quine. While valid, the key weakness is persistance: TidlyWiki does basically the same thing, but saving your work is a headache because basically you need another headless server process to persist anything.

Personally, when wanting to do something similar[0], started with persistance, and of course this means files. Plain text files I can edit with my programmer's editor store and distribute using the file-system. This avoids the problem of having to recapitulate a programmers editor in the browser, which is non-trivial. In turn you have the problem of writing a fast server, but that is a rather fun problem to solve [1]. You side-stepped the problem by using basic content-editable sections, but it is a huge problem, second only to persistence.

One thing I see you face which I also faced is the fact you cannot export things from inside embedded scripts! This would be a nice feature to avoid mangling the global window object. (It would also, in my use case, make code generation easier.)

0 - Literate Markdown: https://simpatico.io/lit.md

1 - Reflector, what I call the small node server that transforms, zips and caches your markdown, with a filewatcher invalidator: https://simpatico.io/reflector

comment 2y ago · link · parent

Aw man. Teri Garr will always be "mom" thanks to her role in "Mr. Mom". Only later did I see Young Frankenstein and her "let's go for a roll in the hay!" mode.

And of course she is mentioned prominently in the epic Key & Peele sketch "Prepared for Terries": https://www.youtube.com/watch?v=eiWIOKKuyGE&t=53

comment 2y ago · link · parent

This captures the essence of what "modern AI" is great at! Relieving the tedium of a highly constrained task.

Great demo. This will really help animators and artists.

comment 2y ago · link · parent

A bit of a "dog bites man" story to note that a CEO of a hot company is hyping the future beyond reason. The real story of LLMs is revealed when you posit a magical technology that can print any car part for free.

How would the car industry change if someone made a 3D printer that could make any part, including custom parts, with just electricity and air? It is a sea change to manufacturers and distributors, but there would still be a need for mechanics and engineers to specify the correct parts, in the correct order, and use the parts to good purpose.

It is easy to imagine that the inventor of such a technology would probably start talking about printing entire cars - and if you don't think about it, it makes sense. But if you think about it, there are problems. Making the component of a solution is quite different than composing a solution. LLMs exist in the same conditions. Being able to generate code/text/images is of no use to someone who doesn't know what to do with it. I also think this limitation is a practical, tacit solution to the alignment problem.

comment 2y ago · link · parent

Private libraries are the privilege of those who do not move frequently, or at all. A large library is surprisingly heavy and bulky to move, and each time you move you will be tempted to leave something behind. If the odds of leaving it behind are even 5% then over time the odds approach 100%. That said, the physical copy of a book has its own story, the dog-eared pages and cracked spines, the occasional stain. I personally somehow find myself remembering which side of a book something was on, and roughly how far through. Very handy since it reduces the search space immediately by 2, at least. And of course, you get all the benefits of messy, imprecise search - the joy of finding something new. Plus you can easily lend them or give them away, and they can't be remotely deleted.

The OP writes as if ebooks and paper books (and audio books!) live in perfect zero-sum disharmony. It seems like most inventions have this effect on discourse. This is more a comment on the https://en.wikipedia.org/wiki/Gartner_hype_cycle than anything. In this case, I think large paper libraries will tend to dwindle, but not disappear. Much like how accurate music recording and playback caused live music to dwindle, but not disappear, etc.

comment 2y ago · link · parent

Not sure if this meets your specifications, since it's code first, but Processing (in it's JavaScript incarnation, p5.js[1]) might be worth looking at.

In terms of games that include content creation tools within them, I've been impressed with Fortnite and Rocket League. Using the in-game editor may be a good gateway to building mods offline.

1 - Examples https://p5js.org/examples/ and on online code editor https://editor.p5js.org/.

comment 2y ago · link · parent

As a physics (and SF) enthusiast, I've come to realize that we've discovered most of the physics that exists, and all of what we can use. This is disappointing for those who yearn for FTL or teleportation, but it's good news when you consider that it creates an impregnable defense against interstellar invasion. Within the limits of modern physics, there remains a great deal to understand and apply, especially in QM because to quote Feynman "there's plenty of room at the bottom". Biology and nanotechnology can still revolutionize human existence.

The key problem humans must grapple with an solve, if we are to make it long-term, is how to harness greater and greater power without destroying ourselves. Nuclear destruction has been a very real option for 80 years. Biological weapons could do the job, too. And of course, climate change looms. For many years I agreed with the thinkers that wish for a "backup plan" for humanity; however, I don't think Mars will do it simply because its environment is even harsher than a post-nuclear holocaust Earth. The important reality that THIS is our home, and we must protect her even if it's hard. Yearning for advanced physics to solve all our problems has the unfortunate side-effect of undermining motivation to solve the problems we have now with the tech we have now. It underlies an unfortunate "disposable planet" attitude that we'd be better off without.

comment 2y ago · link · parent

I am naive about LLM technology, in particular the relationship between base models, fine-tuning, and RAG. This particular branch of effort seems aimed at something that is of great interest to me (and I'm sure many others) which is to specialize a more general base model to know a particular domain in great detail and so improve it's responses within that domain. In the past, this might have been called an "expert system". For example, you might want to train an LLM on your project codebase and documentation such that subsequent code suggestions prioritize the use of internal libraries or code conventions over those represented by the public sources encoded in the base model.

I found the Google Colab notebook of MemoRag[1] to be of great use in understanding roughly the scope and workflow of this work. The interesting step is when you submit your domain as text to encode a new thing that requires a GPU, a process they call "forming memory"[2]. Perhaps there is some sort of back-and-forth between the base model and your data that results in new weights added to the base model. As I said, I am naive about LLM technology so I'm not sure about the details or the nomenclature. However, if this is even partially correct I'd like to understand how the "formed memory" and the base model cohabitate during inference, because this would create memory pressure on the GPU. If the memory required for the base model is M, and the formed memory is N, it's reasonable to assume you'd need M+N memory to use both.

1 - https://colab.research.google.com/drive/1fPMXKyi4AwWSBkC7Xr5...

2 - https://colab.research.google.com/drive/1fPMXKyi4AwWSBkC7Xr5...

comment 2y ago · link · parent

>as you're fine with the mind control

It does seem a bit silly to argue about the particulars of a fantasy utopia. Banks posits the conceit that super AI Minds will be benevolent, and of course this need not be the case (plenty of counter-examples in SF, one of my favorites being Greg Benford's Galactic Center series). But note that within the Culture, mind reading (let alone mind control) without permission will get a Mind immediately ostracized from society, one of the few things that gets this treatment. For example the Grey Area uses such a power to suss out genocidal guilt, is treated with extreme disdain by other Minds. See https://theculture.fandom.com/wiki/Grey_Area

As for "personal agency over the broad course of the future", note that the vast majority of humans don't have that, and will never have that, with or without Minds. If one can have benevolent AI gods at the cost of the very few egos affected, on utilitarian grounds that is an acceptable trade-off.

On a personal note, I think the relationship between people and AIs will be far more complex than just all good (Culture) or all bad (Skynet). In fact, I expect the reality to be a combination with absurd atrocities that would make Terry Pratchett giggle in his grave.

comment 2y ago · link · parent

Agreed about being able to skip the island sequence in _Consider Phlebas_. I recently reread the book after many years, and in my memory that section looms large, and I expected it to be 100 pages. But it's ~20. It was much easier the second time around, and I think it serves to underscore how committed the Culture is to personal agency, to the extent that if citizens wish to give themselves over to an absurdly evil charismatic leader, no-one will stop them. There was also something interesting about the mind on the shuttle on standby, its almost toddler-like character, told "not to look" at the goings on on the island by the orbital. And its innocent, trusting self is eventually murdered by Horza during the escape, adding some black dark pigment to Horza's already complex character hue.

comment 2y ago · link · parent

c is no longer measured, it is defined, and unless some contradiction to special relativity is discovered, c cannot change. If the speed of causality changes, then our measure of distance would change. For example, if c halves in some sense, then this means light travels half as far during N ticks of a clock, and the meter will halve (and all internet latencies will approx double!). If we keep the old meter, then we might say c has changed; it's truly a matter of definition (and practicality) at that point.

comment 2y ago · link · parent

I think you need to review the site guidelines about tone and purpose. Moreover, I'd suggest you review the history of quantum mechanics, because Einstein did not invent field theory, just as Newton did not invent or understand the Lagrange or Hamiltonian formulations, nor statistical mechanics, even though his theory provided the foundation of them all. I'm not a historian of physics, or a psychologist, so I will bow out of the conversation. May your clear passion for science continue without making you hostile.

comment 2y ago · link · parent

That hardly constitutes a precise definition

It is precise enough for our purpose: ether is a hypothetical medium for light waves to propagate. Moreover it would need to have no interaction with ordinary matter, or else it would cause planets' orbits to decay.

only we must give up ascribing a definite state of motion to it - Einstein

This is a "No True Scotsman" fallacy wherein one redefines the assertion to deal with specific objections. I hesitate to criticize Einstein, of course, but in this case it's not clear that "ether" minus motion means anything. One can be generous and say he had an intuition about fields, however fields aren't ether, either.

comment 2y ago · link · parent

This article is suspect as it mentions a "stationary electron". Such an electron would have precisely known momentum, and so exist throughout all of spacetime. This is a common starting point for solving the (e.g. Dirac) equations, but it's not physical.

comment 2y ago · link · parent

The aether (or just ether) was assumed to be the substance in which light waves waved, just as air is the substance that sound waves. If this substance existed it was likely that the Earth was moving through it at some velocity, and the Michelson-Morley experiment famously showed that this is not so. There were also observations of Jupiter's moons. These null results led to Lorentz' quantification of what would become Einstein's definition of special relativity in 1905.

Our confidence in SR is so strong now that c is defined and length unit defined as the distance light travels during a set time.

comment 2y ago · link · parent

Then communicate clearly the trade-off the project leader is making.

comment 2y ago · link · parent

This person's stress was caused by a single line of code in PostHog. This is the reversion: https://github.com/PostHog/posthog-js/pull/1371/commits/7598...

Highlights two lessons. 1. If you ship it, you own it. Therefore the less you ship, the better. Keep dependencies to a minimum. 2. Keep non-critical things out of the critical path. A failing AC compressor should not prevent your engine from running. Very difficult to achieve in the browser, but worth attempting.

comment 2y ago · link · parent

Nice reference to aphids (which are used like cows by ant colonies). So kids make games which require currency from other kids?! Why would they do that? Do they get a cut?

comment 2y ago · link · parent

It sounds like the platform really matters for Roblox, if it's that much of a creative tool. BTW the first time I'd heard of "ActiveWorlds" (or Uru) was just now from your comment. And it also sounds like my kids don't have the problem Roblox solves! (And I don't really want them standing around in a chat room looking for things to do; absent a compelling reason to look at a screen, I encourage them to do real-world things.)

comment 2y ago · link · parent

Very interesting suggestions, all worth trying. Having a very capable coworker can help here, because they can show you what can be done in a short amount of time. Specifically I've noticed that some devs get "winded" by a change and want to take a break before moving on; others simply continue. This ability can be improved with practice, both within and across contexts. Doing things quickly is valuable for many intrinsic reasons that are often overlooked because we descry the poor extrinsic reasons. As with car repair, the odds that you forget how to reassemble the car scales with the time the repair takes. Similarly, if you can execute a feature in a day (especially a complex one that requires changes to many parts of a repo, and/or more than one repo) this is much less risky than taking many days or weeks. (To get there requires that you have firm command of your toolset in the same way a mechanic understands his tools, or a musician understands her instrument. It also requires that externalities be systematically smooth - I'm thinking particularly of a reliable, locally repeatable, fast CI/CD process.)

(The calculus here is a little different when you are doing something truly novel, as long periods of downtime are required for your brain to understand how the solution and the boundary conditions affect each other. But for creating variations of a known solution to known boundary conditions, speed is essential.)

comment 2y ago · link · parent

My kids have recently become interested in Roblox. I installed it on the PS5 but honestly I don't get the appeal. The games we tried are of very low quality. It doesn't have the complexity or interest of Minecraft. It doesn't have the polish of Astro's Playroom (or Ratchet and Clank: Rift Apart, which they are too young to play). It reminds me a little of Fortnite's non-battle-royal games, but much worse. Can you give some advice on how to approach it as a parent? I suspect there are some good games in there that we missed.

comment 2y ago · link · parent

How does the threat model change when exposing grafana to the public? Apart from vulnerabilities in grafana itself? Perhaps hackers will be extra motivated to cause blips in those graphs? Exposing grafana publically is unusual, but I don't see an obvious error-mode.

comment 2y ago · link · parent

Great hack. Note that it's approx the same size as baseline highlight.js at ~45kB. However it has the great benefit of functioning in contexts where javascript is disabled, at the cost of runtime configurability and narrower language support.

comment 2y ago · link · parent

Anyone doing business with Disney should cancel their D+ subscription and pay an attorney to properly notify Disney Corp. that the terms of The Agreement no longer apply. Indeed, this step should be taken by sub-contractors, anyone visiting the parks, anyone who could conceivably have contact with the parks, the movie studios, the corporate HQ, any suppliers or subcontractors, or anyone working for any of the above. This move is abhorrent, and if the judge buys it, it is dystopian.

comment 2y ago · link · parent

The meter is now (as of 2019) defined as the distance light travels in vacuum during N cycles of an atomic clock[1]. Note that to take into account GR effects you'd need to specify where on Earth you do the measurement, since gravity affects the clock rate. The velocity of light is defined, not measured, now. This is actually quite profound, because our system of units is now based on the validity of special relativity.

1 - https://en.wikipedia.org/wiki/Metre

comment 2y ago · link · parent

Thank you. This stood out to me:

"They expressed that they specifically wanted to work with us as a woman-owned, queer- and POC-driven engineering firm to develop an electronic badge with a gaming element for this year’s conference."

I would have expected the core criteria to be ability to execute on time. Choosing an engineering firm based on the race, gender, or sexual orientation of the owner is foolish, and DEF CON is ultimately to blame for introducing superfluous criteria and missing the core criteria.

comment 2y ago · link · parent

The key difference between then and now is the structure of media. We do not have Walter Cronkite. We do not have the Fairness Doctrine. We do have Citizens United. This leads to professional zealous advocates dominating the information space. To blame individuals for a lack of critical thinking skills in this environment is like decriminalizing violent crime and then blaming bloodied individuals for a lack of firearm and hand combat training.
1
151617
22