Hacker Newsnew | past | comments | ask | show | jobs | submit | biot's commentslogin

> 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...


Also: As if you didn't need "5-10 highly specialized engineers" (neither needs this number but alas) to get all AWS serverless services to coexist and scale cost and compute efficiently with proper monitoring, logging, permissions, tracing, etc.


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.


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).


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


You might find this repo [1] by Melvin Zhang helpful.

[1] https://github.com/melvinzhang/binary-lambda-calculus


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.


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.


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.


I'm talking system-wide add blocker which also blocks in-app ads.


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.


Thanks for pointing this out! The calculation should be fixed now.


I was also very confused by this.


Welcome to the new internet. Where everything is rediscovered and reinvented by Bolt and Loveable.


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.


> 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.


Or if the hammer don't work, the sledgehammer is over there.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: