Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cube2222
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
661.
▲
by
cube2222
4y ago
Isn't gVisor a secure docker runtime? Sure, it doesn't reuse the kernel, but it's not a VM either.
662.
▲
by
cube2222
4y ago
EventBridge + AWS Lambda It's cheap as in free, thanks to the generous free tier.
663.
▲
Ent: An Entity Framework for Go
(entgo.io)
3 points
by
cube2222
4y ago
|
0 comments
664.
▲
by
cube2222
4y ago
Could you expand on how this compares to IAM's built-in Access Analyzer[0]? [0]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access-anal...
665.
▲
SQLite internals: How the most-used database works
(compileralchemy.com)
244 points
by
cube2222
4y ago
|
43 comments
666.
▲
by
cube2222
4y ago
I haven't really stress-tested it yet. My automation lambdas that use this tend to be low traffic.
667.
▲
by
cube2222
4y ago
Unless I'm missing something, you then have to write wrappers that translate between the big and the small interfaces, or explicitly mark all interfaces as implemented at the original type definition point. The first one is a lot of bo
668.
▲
by
cube2222
4y ago
Glad I could help! In general, I recommend using golangci-lint[0], which aggregates a ton of useful linters like this one. [0]: https://github.com/golangci/golangci-lint
669.
▲
by
cube2222
4y ago
Go culture, like any other, is diverse. I prefer to use an editor/IDE and don't think it's pleasant to work with any language (including Go) without them.
670.
▲
by
cube2222
4y ago
> That's a design problem, not an interface problem. Split you giant 30-methods interface into smaller ones if need be, that the whole point of interfaces: not be a 1-1 mapping to methods, but a semantic (sub)group of them. It reall
671.
▲
by
cube2222
4y ago
You call it an "enormous weakening of contract safety", I call it an issue I've never once had happen in practice. Sometimes you can't spell out that your type implements a certain interface, because it's not a type
672.
▲
by
cube2222
4y ago
That is a fair point and it's why I use errcheck[0]. [0]: https://github.com/kisielk/errcheck
673.
▲
by
cube2222
4y ago
> And God forbid I needed to extend this interface and missed to add the new method to one of the 32 types implementing it, so that it blows on my face in prod at 3AM. The language has static type-checking. If to you it's a regular
674.
▲
by
cube2222
4y ago
Implicit interfaces are one of the defining features of the language that make it so great, I love them. Calling them borderline insane without any supporting arguments does make me question whether you ever gave idiomatic Go a chance. What
675.
▲
by
cube2222
4y ago
Yes, since 2017: https://aws.amazon.com/about-aws/whats-new/2017/03/amazon-el...
676.
▲
by
cube2222
4y ago
I get where you're coming from, but I think that folks often underestimate the maintenance burden of additional components in their system. Sure, if your use case requires it, use Redis for sessions or RabbitMQ for queues. But you can
677.
▲
by
cube2222
4y ago
AWS Aurora has been working well for me in general.
678.
▲
by
cube2222
4y ago
> Don't have your core business logic operate over database rows This is the part where I don't agree, as SQL is very expressive, and needlessly loading data to your app is also not performant (making the transition to somethin
679.
▲
by
cube2222
4y ago
That will make you lose a lot of productivity boosts SQL can give you. Obviously, if you anticipate to have very high traffic and applicable usage patterns, do use that advice, but if your apps anticipated usage pattern is in fact not &quo
680.
▲
by
cube2222
4y ago
You can, though then you get errors when invoking the Lambda too much at the same time. Just letting it block on SQLite db opening should be good enough.
681.
▲
by
cube2222
4y ago
It's also a really nice combo for simple automation lambdas that need some state and you want an ergonomic DB without paying for full RDS. Go + Lambda + EFS + SQLite work great for that.
682.
▲
by
cube2222
4y ago
I recommend Logseq very much as well, though it's worth noting that it differs from Obsidian in that it's outlining-centered. For me that was actually the reason I switched to it - I usually take notes in the form of deeply nested
683.
▲
by
cube2222
4y ago
> Right, and who do you think will pay for this new tax? Consumers, of course, but not indirectly, with such a diluted notion of responsibility as it is now (by paying for externalities through general taxes). It will be priced into the
684.
▲
by
cube2222
4y ago
As a European, I'm so happy about this. A system where emitters can ignore the actual cost of their externalities and push them down onto society at large to handle (through taxes) is broken. This should also result in more funding aro
685.
▲
by
cube2222
4y ago
It's supported since 1.12[0], no? [0]: https://pytorch.org/blog/introducing-accelerated-pytorch-tra...
686.
▲
by
cube2222
4y ago
It's funny, cause already after the first sentence it felt like ChatGPT, probably because I've played with it a lot these past few days, and expectedly I found a disclaimer at the end. That said, the answer isn't really usefu
687.
▲
by
cube2222
4y ago
ChatGPT is absolutely crazy. I really recommend you to prompt for rhymes/songs, it's ridiculously good at it. Stuff like: Could you write a poem from the perspective of <character> from <game/movie>, Byron sty
688.
▲
by
cube2222
4y ago
Spacelift | Remote | Europe | Full-time | Senior Frontend Engineer We're a VC-funded startup building an automation platform for Infrastructure-as-Code, adding a Policy-as-Code layer above it, in order to make IaC usable in bigger comp
689.
▲
by
cube2222
4y ago
RimWorld is excellent! The only problem I have with this kind of game though is that time flies by really quickly for me with it. I think it's been 10 minutes while it's actually been an hour; next time I look at the clock it'
690.
▲
by
cube2222
4y ago
The EU gas storage is actually around 2 months. Full capacity is ~1000TWh[0], while winter monthly consumption is around 450 TWh[1]. In other words, way more than a week, and yes, the storage does make a meaningful difference. [0]: https:&
More ›