Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
antihero
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
241.
▲
by
antihero
3y ago
But how could this possibly be correct if the route is correct within the context of the client side code which uses history API to route, which the server knows nothing about? Else you’re going back to the days of hash routes which nobody
242.
▲
by
antihero
3y ago
This is an opinionated approach that is out of scope really I think. Though if it works for you, awesome!
243.
▲
by
antihero
3y ago
Yeah, I ended up writing a whole thing for it as part of my static website CDK construct. Here's the request edge lambda: https://github.com/radiosilence/cdk-static-web/blob/master/s... Here's
244.
▲
by
antihero
3y ago
Well that's excellent!
245.
▲
by
antihero
3y ago
I mean, I think it's an interesting approach to and kind of nice to be going back to more PaaS primitives. I haven't used it in production, it does seem extremely quick and kind of simple and nice. Either way, I figure the more pr
246.
▲
by
antihero
3y ago
I just figured any savings where savings can be made is a good thing, especially if there are zero downsides, plus it means very low CPU usage as it's literally just pulling from RAM without any CPU usage. It also precaches gzipped and
247.
▲
by
antihero
3y ago
When was this added? I recall several years ago having to do this with edge lambdas. IE the it would happily resolve / to /index.html would be fine, but if you wanted to do /my-dir and have it resolve to /my-dir/ind
248.
▲
by
antihero
3y ago
It is set up to use both. Currently working on automating releasing the unikernel OPS package ( https://repo.ops.city/v2/packages/radiosilence/show ) but I had to submit a patch to the OPS project that needs to
249.
▲
by
antihero
3y ago
I could certainly add this as a configuration option! Generally an SPA could do this by simply not having that route and handle accordingly but if it's something people would be interesting it is a quick change. Perhaps make a ticket&#
250.
▲
by
antihero
3y ago
This is that. Unless you mean having a directory listing, in which case, it is not.
251.
▲
by
antihero
3y ago
Yeah, ASDF is fantastic, I'm glad stuff like pyenv and rvm existed and paved the way for it but ASDF is the way to go nowadays.
252.
▲
by
antihero
3y ago
Why is this being posted in 2024?
253.
▲
Show HN: Nano-web – a low latency one binary webserver designed for serving SPAs
(github.com)
157 points
by
antihero
3y ago
|
115 comments
254.
▲
by
antihero
3y ago
Edit: I've made a single character fix for the bug causing the issue (regex matching)
255.
▲
by
antihero
3y ago
I am a bit confused, there are three sites: * https://nanos.org/ The core technology? * https://nanovms.com/ A company providing services and offerings around said technology? * https://ops.city&
256.
▲
by
antihero
3y ago
I did it!! https://repo.ops.city/v2/packages/radiosilence/nano-web/show Well chuffed. I couldn't get ops pkg push to work at all, and instead had to manually upload a tar.gz as no matter what I did,
257.
▲
by
antihero
3y ago
Yeah I guess a lot of the orchestration can be effectively handled by terraform, I get what you mean regarding cloud primitives. This is my next step to seeing how this can work in a production environment. Instead of an ingress you can use
258.
▲
by
antihero
3y ago
Ah, cool! I'll look at bundling my tiny webserver as its own package :) https://github.com/radiosilence/nano-web
259.
▲
by
antihero
3y ago
Yeah I've popped my image onto AWS and got it running in an instance, I figure the next port of call is the terraform part of the docs to see how you'd put something out in production. It would be cool to write some sort of book l
260.
▲
by
antihero
3y ago
Chat is fairly transient by nature, anything that is not should be put into reusable documentation anyway.
261.
▲
by
antihero
3y ago
More like being able to extend existing "recipes" for a unikernel, like you can with Dockerfiles. So you can have a Dockerfile that creates a general solution (e.g. nginx) and extend it to provide your exact implementation (nginx
262.
▲
by
antihero
3y ago
Well docker based stuff seems to have a lot more of an ecosystem on the orchestration side of things. If I want to have a bunch of instances scaled up and wired together network wise and defined in a nice yaml file, kubernetes makes this ea
263.
▲
by
antihero
3y ago
This is an absolutely fantastic story and would make a brilliant film.
264.
▲
by
antihero
3y ago
This looks interesting! One thing I like about docker is being able to inherit from other images, so for instance in their webserver example, I could inherit from a simple webserver Dockerfile and then my local code would be only the static
265.
▲
by
antihero
3y ago
> all folks that value privacy would not participate How much privacy do you need to talk about a programming language? Official Discords are great!
266.
▲
by
antihero
3y ago
I read Snow Crash as a young teenager and it inspired me in some way.
267.
▲
by
antihero
3y ago
Podcasts are just a type of media like music or TV. It's akin to saying "wherever you get your music".
268.
▲
by
antihero
3y ago
I guess you’d have to have a rigorous chain of evidence really.
269.
▲
by
antihero
3y ago
Honestly the idea they wouldn’t give me the freedom to choose my tools would be a dealbreaker.
270.
▲
by
antihero
3y ago
What if you hid it well? How are they going to find it?
More ›