Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bborud
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
22 ms
·
301.
▲
by
bborud
2y ago
> Well, what about converting strings to business data structures safely? > What about complex JSON parsing, serialization, CSRF, preventing > injections, session cookies, authN/authZ, easy database CRUD operations? So you are
302.
▲
by
bborud
2y ago
The frontend is always going to be a pain since you have to deal with JS in some form, and a culture of ever increasing complexity until people give up and rewrite everything and throw away years of work. When you have Go, I don't see
303.
▲
by
bborud
2y ago
> “we don’t need a package manager, we write everything ourselves” vibes Then I'm afraid you misunderstood. Frameworks is not the only way to build things efficiently. It is actually possible to build things using libraries and cons
304.
▲
by
bborud
2y ago
After 8-9 years of Go and having about 20 smaller and bigger backends under my belt: no, nothing that looks like a framework has emerged. Not in my code or in that of any of my colleagues. What has emerged is consistency in how we structur
305.
▲
by
bborud
2y ago
If your problem can be solved with CRUD alone, sure. However, that is usually only a starting point. And if you optimize for the smallest and simplest part of a problem just because it comes first, you may not be looking ahead. It isn
306.
▲
by
bborud
2y ago
5th gen is a nonsense marketing term. It is far less about the plane itself and more about how it integrates into a force. This is why russian figthers are pretty useless: they are not integrated with the rest of the force and they lack co
307.
▲
by
bborud
2y ago
By "military subsidies" you mean US government money subsidizing US defense industry I assume? Because that is where most of the money ends up when the US "supports" other countries. The US unloads weapons from its stoc
308.
▲
by
bborud
2y ago
> There are still doubts as to whether the new Trumpian reality is permanent We have to assume that the US cannot be trusted as a military ally for at least the next 4 years. In fact, we have to be open to the possibility that they will
309.
▲
by
bborud
2y ago
This is top of mind for all European countries that bought the F-35. They are painfully aware of this. So is the US defense industry which will notice softening sales kicking in a few years down the line as European countries are less incl
310.
▲
by
bborud
2y ago
Can you go into a bit more detail about what became challenging and what Astro helped you solve?
311.
▲
by
bborud
2y ago
Go has a simpler approach that encourages you to express yourself more directly, does away with heavy frameworks that take longer to learn than the language itself, and it encourages you to structure solutions in mechanical sympathy with th
312.
▲
by
bborud
2y ago
Have you tried writing Go assembler instead of x86? https://go.dev/doc/asm (I'm not suggesting, merely asking since I haven't written any assembler for Intel for 30+ years and I have never written Go assemble
313.
▲
by
bborud
2y ago
There's a joke that goes something like "how long is a piece of string". In order to figure out how much it costs to own a given car you have to create a model you can plug a bunch of numbers into. For our cars, fuel and ele
314.
▲
by
bborud
2y ago
Ah yes, if there was only some use for this electricity-malarkey.
315.
▲
by
bborud
2y ago
Yes, here we are; I spend almost no time there now since every time I drop by all I see is political noise and culture wars. Most people I used to follow now either take part in the shit show or have lost interest in posting.
316.
▲
by
bborud
2y ago
it is easy to assume most programmers today know roughly how long things take since this has existed in various forms since Jeff/Peter first published it: https://colin-scott.github.io/personal_website/research
317.
▲
by
bborud
2y ago
It would be mice for it to work in concurrent contexts as even using mutexes adds responsibility (for not messing up).
318.
▲
by
bborud
2y ago
Using an epoch of jan 1 1601 is ... interesting since it means you would have to deal with the switch from julian to gregorian calendar in september 1752. This included dropping 11 days. Calendars and historic records is a pain.
319.
▲
by
bborud
2y ago
I've been using RWMutex'es around SQLite calls as a precaution since I couldn't quite figure out if it was safe for concurrent use. This is perhaps overkill? Since I do a lot of cross-compiling I have been using https:/
320.
▲
by
bborud
2y ago
Someone might take that as advice.
321.
▲
by
bborud
2y ago
In a sandbox you start out with access to nothing except the apis that you explicitly expose into the sandbox. In Podman you start out with a huge attack surface which you then have to clamp down. One of those surfaces is the kernel. Anothe
322.
▲
by
bborud
2y ago
I wouldn't want to run code from a third party in a container.
323.
▲
by
bborud
2y ago
I wasn't aware of WIT. I'll have a look. Thanks for the link!
324.
▲
by
bborud
2y ago
Well, now you have defined what you mean (realtime'ish execution low/no latency variance). The next step would be to formulate a test and see if it is actually a problem and then make technology choices. Just assuming isn't
325.
▲
by
bborud
2y ago
The short answer is: I don't know and those are valid concerns. The first issue you bring up is really one about resource limiting. You would want a mechanism to set resource limits (CPU, memory, execution time etc) and then be able t
326.
▲
by
bborud
2y ago
Look at my other reply for a use-case. In general I think being able to run user-supplied code in a sandbox is the most interesting use-case for WASM and backends/Go. Compiling entire applications to WASM and running them in a WASM run
327.
▲
by
bborud
2y ago
To be clear: I'm not using WASM in any backends right now, but I would like to. The two main use-cases for me would be data transformation and message routing or decision logic that is maintained by the user. That is, the user develop
328.
▲
by
bborud
2y ago
> I guess my question is, why is Go compelling as a source language for WASM? For me it is for three reasons: 1) I mostly write things in Go, 2) My main use-cases for WASM are backend applications, 3) being able to run sandboxed code (in
329.
▲
by
bborud
2y ago
There is one thing that makes WASM very awkward: projecting APIs into a sandbox. If this was done in a way that works in mechanical sympathy with a wide range of languages I think WASM would be more successful. Making an API available insi
330.
▲
by
bborud
2y ago
It is a suprisingly hard thing to implement well. I have no idea how many times I have implemented slice-like things in C (back in the 1990-2000s when I mostly wrote C) and it was one of those things I never managed to be happy with.
More ›