Better HN
topnewbestaskshowjobs
Log inSign up

biot

8,656 karma · joined Nov 9, 2010 (16y ago) · 2,802 submissions

Submissions

comment 1w ago · link · parent

This one’s really simple. The current system is a bad one because if the email password changes or internet connectivity gets interrupted or the system sending the email dies (eg: power supply failure), the system fails because on any lack of signal it’s assumed that everything’s good. That’s a terrible design. Here’s a better one:

- External system polls the monitor and records levels.

- Local system reaches out to external system and fetches status.

- Someone has the responsibility to do rounds and record the status indicated by the local system.

External system down or indicates unacceptable levels, monitor unreachable, etc.? Local system shows a failure. Investigate. Local system down? Investigate.

You can even add redundancy by having a manager double check that the responsible employee is checking off the status plus the manager can do a daily sweep as a fallback. Throw something like PagerDuty into the mix and have multi-channel notifications on any failure that escalate over time.

comment 9mo ago · link · parent

This is the LLM equivalent of a riddle, eg: “A farmer has 17 sheep. All but 9 die. How many are left?”

comment 9mo ago · link · parent

Depending on how you define 3D printing: braille.

comment 1y ago · link · parent

The article says:

> The full menagerie of shapes is too diverse to get a handle on, so mathematicians tend to focus on convex polyhedra

The phrase "tend to focus on" suggests it's not an exclusive thing. However, you're right -- it appears that the Rupert property only applies to convex polyhedra, so the article title and text is at the very least incomplete given that a sphere is a shape.

comment 1y ago · link · parent

Presumably a simple sphere would trivially qualify as being unable to pass through itself.

comment 1y ago · link · parent

> Serverless Advocate: Yes, but instead of paying for infrastructure overhead and hiring 5–10 highly specialized k8s engineers, you pay AWS to manage it for you.

This argument lost me. If you’re running your own k8s install on top of servers, you’re doing it wrong. You don’t need highly specialized k8s engineers. Use your cloud provider’s k8s infrastructure, configure it once, put together a deploy script, and you never have to touch yaml files for typical deploys. You don’t need Lambda and the like to get the same benefits. And as a bonus, you avoid the premium costs of Lambda if you’re doing serious traffic (like a billion incoming API requests/day).

Every developer should be able to deploy at any time by running a single command to deploy the latest CI build. Here’s how: https://engineering.streak.com/p/implementing-bluegreen-depl...

comment 1y ago · link · parent

If you buffer starting with the ( character, then you'd still send the [text] part of the link, and worst case is that with no matching ) character to close the link, you end up buffering the remainder of the response. Even still, the last step is "flush any buffered text to the client", so the remainder of the response will be transmitted eventually in a single chunk.

There are some easy wins that could improve this further: line endings within links are generally not valid markdown, so if the code ever sees \n then just flush buffered text to the client and reset the state to TEXT.

comment 1y ago · link · parent

There are a few things in our implementation that make a more general solution unnecessary. We only need the output to support a limited set of markdown which is typically text, bullet points, and links. So we don't need code blocks (yet).

However, the second thing (not mentioned in the post) is that we are not rendering the markdown to HTML on the server, so []() markdown is sent to the client as []() markdown, not converted into <a href=...>. So even if a []() type link exists in a code block, that text will still be sent to the client as []() text, only sent in a single chunk and perhaps with the link URL replaced. The client has its own library to render the markdown to HTML in React.

Also, the answers are typically short so even if OpenAI outputs some malformed markdown links, worst case is that we end up buffering more than we need to and the user experiences a pause after which the entire response is visible at once (the last step is to flush any buffered text to the client).

9.

Preventing Flash of Incomplete Markdown when streaming AI responses(engineering.streak.com ↗)

34 points · by biot · 1y ago · 11 comments

comment 1y ago · link · parent

This has long been my favorite entry! Still on my todo list to go through and fully understand it.

comment 1y ago · link · parent

Maybe as an eventually consistent life form using extremely slow message passing. Though gravity becomes a major factor that would limit the size unless it’s incredibly sparse.

One of my favorite episodes of Love, Death, & Robots is “Swarm”. Worth a watch.

comment 1y ago · link · parent

While the search offered is handy, I watch logs on multi-pod workloads via:

    kubectl logs -f -l app=api --max-log-requests=50
This follows along all pods with the given label (app: api) for up to 50 pods or however many you want. Quite useful when I'm looking for specific output such as ERROR logs to just pipe it to grep like this:

    kubectl logs -f -l app=api --max-log-requests=50 | grep ERROR
and get realtime filtering of all log output without having to tail individual pods by name.

comment 1y ago · link · parent

You can run ad blockers in mobile Safari. This one works great: https://apps.apple.com/us/app/firefox-focus-privacy-browser/... -- it's both a browser itself as well as acting as a content blocker for Safari and does a fantastic job at blocking ads.

comment 1y ago · link · parent

The revenue milestones appears to show annual revenue goals rather than monthly. For example, if you have only 1 plan at $1/month, the $1000/month target shows you need 84 subscribers.

comment 1y ago · link · parent

Fun fact: it's a different device, but the principle is the same as the device used in the documentary Tim's Vermeer. It results in the images overlapping between your left and right eye and you simply paint until the difference goes away.

comment 2y ago · link · parent

> However, if it's inside a plastic case that blocks light, it doesn't.

You want an ordinary diode to allow current to flow easily when it senses light? Simple: shine a powerful laser at the plastic-encased diode and it will melt the plastic and liquify the metal, fusing it together and allowing current to flow again. See? You just needed to try harder.

comment 2y ago · link · parent

> Seems like all these other factors should matter too!

The way I read it was that there are some minerals that are no longer there to begin with because they're simply not in the soil. For nutrients (like vitamin C) created as part of the growing process, speed is the only factor that matters.

So yes, it does matter but unless you have a way of knowing which farm(s) the produce came from and what their soil mineral content is, that's not something you can factor into your purchasing decision.

comment 2y ago · link · parent

> I think an IDE, a keyboard, and a projector are better than printing code blocks at a specific revision which is identified by a computer-readable id, and which must be given a new ID and a new printed page every time you want to try executing a new version.

You're making several incorrect assumptions here:

1. That you can't interactively try out the code as you're editing it.

2. That the system as implemented is the final vision of how the system ought to work forever.

From https://youtu.be/5Q9r-AEzRMA?t=150 "Anyone can change any program at any time and see the changes immediately", which demonstrates live editing the code and seeing the projected flow lines change color. So you can keep editing and iterating on the program, trying out your changes without ever having to print anything. Once you are satisfied with your improvements, you then "commit" the code, which results in the system printing out a new page with its new identifier.

And if any part of your expectations isn't how things work, it's likely because this is a research project and nobody has written the code to make it behave the way you'd like. Since Realtalk is built on itself, one would only need to make the appropriate changes to improve the system.

comment 2y ago · link · parent

From the article:

> "This is a big object. An object of this size is going to have the equivalent impact energy in the hundreds of megaton approaching a gigaton," Brown said. "That'd be a regional impact. It's the sort of thing that if it hit the east coast of the U.S., you would have catastrophic effects over most of the eastern seaboard. But it's not big enough to affect the whole world."

comment 2y ago · link · parent

The interviewee touches on this:

> And so I would say, in response to what’s often asked, which is: If depression isn’t simply an abnormality in serotonin, why would you prescribe an SSRI? And I think the answer is that through serotonin and norepinephrine, we can promote the brain’s capacity for resilience against the adverse effects of stress and depression on the brain.

comment 2y ago · link · parent

I suspect a lot of people overestimate how special their code is. Also, if your code exists in a private repo on GitHub, then you're already trusting the same third party when using GitHub Copilot.

comment 2y ago · link · parent

If some company’s alcoholic beverage doesn’t get approved, you wouldn’t say “finally some faith in the firearms system” just because the Bureau of Alcohol, Tobacco, Firearms, and Explosives handles both.

comment 2y ago · link · parent

From the paper’s introduction:

> Machine learning (ML) models for materials science have the potential to vastly expedite the computational discovery process. State-of-the-art ML models can predict the results of physics-based quantum mechanical calculations but are several orders of magnitude faster, making them ideal for predicting general material properties [5–7]. In addition to direct property prediction, combining universal ML potentials such as M3GNet [8], CHGNet [9], and GNoME [10] has made it possible to perform geometric optimization, and hence evaluate thermodynamic stability, for arbitrary combinations of elements and structures. The significant speed advantage of ML-based techniques over direct simulation has made it possible to explore materials across a vast chemical space that greatly exceeds the number of known materials.

Models mentioned:

M3GNet: M3GNet is a new materials graph neural network architecture that incorporates 3-body interactions. A key difference with prior materials graph implementations such as MEGNet is the addition of the coordinates for atoms and the 3×3 lattice matrix in crystals, which are necessary for obtaining tensorial quantities such as forces and stresses via auto-differentiation.

Source: https://materialsvirtuallab.github.io/m3gnet/

CHGNet: A pretrained universal neural network potential for charge-informed atomistic modeling (see publication). Crystal Hamiltonian Graph neural Network is pretrained on the GGA/GGA+U static and relaxation trajectories from Materials Project, a comprehensive dataset consisting of more than 1.5 Million structures from 146k compounds spanning the whole periodic table.

Source: https://github.com/CederGroupHub/chgnet

GNoME: GNoME Is A State-Of-The-Art Graph Neural Network (GNN) Model. The Input Data For GNNs Take The Form Of A Graph That Can Be Likened To Connections Between Atoms, Which Makes GNNs Particularly Suited To Discovering New Crystalline Materials.

Source: https://gmnomeai.cloud/

comment 2y ago · link · parent

> I didn't like any of the sardukar fighting scenes, or how the ships exploded

I thought the ship explosion effect was brilliant and realistic in terms of how it would actually work if energy shields were a thing in real life. Just like how the slow blade penetrates a personal shield, the slow missile penetrates the ship’s shield. The movie shows this effect and the consequences. Once the missile gets past the shield, it explodes and the explosion is initially contained by the shield. However, the explosion spreads internally and it takes a second to take out the shield generator, at which point the explosion is no longer contained.

Just as an energy shield contains external explosions to the outside, it would also have the same effect on the inside for the brief moment the shield generator still operates.

comment 3y ago · link · parent

suggestion: when you click to loop a sound, the URL should update with the current state of everything you have selected. Then you could send the URL to other people and they could listen to your garbage.
12345
94