Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dagss
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
151.
▲
by
dagss
2y ago
With this interpretation at least I hope you agree the 14 US flags were intentional? It can of course be read as "trolling the ones who think he is a nazi". Problem is that kind of double-signalling and layers of irony is so wides
152.
▲
by
dagss
2y ago
What about the 14 US flags posts on X? https://www.google.com/amp/s/www.timesnownews.com/world/us/u... There is a long string of veiled and plausably deniable nazi references from Musk now. No the i
153.
▲
by
dagss
2y ago
I own a Model Y and love it. No way my next car will be a Tesla though. I mean I would be embarrassed in front of everyone I know if I got one independent even of my own feelings. Here in Norway there is a ridiculous number of Teslas. I thi
154.
▲
by
dagss
2y ago
Same here, I just had to stop reading.
155.
▲
by
dagss
2y ago
Are you aware of the trick of "var _ foo.RequiredInterface = myType{}" to make the compiler enforce that a struct implements a given interface? Is what you seek a nicer syntax for this or does what you speak of bring something mor
156.
▲
by
dagss
2y ago
With "high quality" do you refer to taste or safety? In Norway, tap water countryside can be quite tasty but in cities there has often been chlorine added and it just taste worse. And bottled water is bottled mountain water with g
157.
▲
by
dagss
2y ago
Not disagreeing about the point of lake ice, but about apetizing -- as a Norwegian, I would much rather drink directly from a Norwegian lake in the mountains than tap water from any city, Norwegian or European. Much tastier. Drilling throug
158.
▲
by
dagss
2y ago
I have the complete opposite view, it is stupid to not have them. Whenever I edit JSON and SQL there is a lot of fiddling with commas when rearranging lines or adding new lines to the end of the list. In other languages I use (Go and TypeSc
159.
▲
by
dagss
2y ago
I feel that stepping as far back as you do here will kill any meaningful discussion. "There is no single metric" translates pretty much into "there is no objective meaning of life that can be proven". In most discussions
160.
▲
by
dagss
2y ago
This quote is made up I think (e.g https://www.bartleby.com/lit-hub/respectfully-quoted/socrate... ) Even if it wasn't made up it, it would not be all that relevant IMO because it would not have to mean that
161.
▲
by
dagss
2y ago
Wouldn't declaring the "replace" directive in go.mod once take effect for all the dependencies?
162.
▲
by
dagss
2y ago
Depends ofc on the complexity of the area, but... reading someones code to me feels a bit like being given a 2D picture of a machine, then having to piece together a 3D model in my head from a single 2D photo from one projection of the mach
163.
▲
by
dagss
2y ago
MSSQL can take tables as arguments if they are temporary tables declared to be of a certain type. But that restriction limits their use a lot.
164.
▲
by
dagss
2y ago
I agree that SQL has problems as a language. I disagree that we should be happy about moving data out of the storage layer into the backend in cases where it does not make sense performance wise. The problem is doing some processing in SQL
165.
▲
by
dagss
2y ago
This is of course the more common approach, I was aware that our approach is not usual which is why I posted. You don't list the disadvantages so cannot respond to that. But I really like the code resulting from flipping it around. It
166.
▲
by
dagss
2y ago
To be fair, capitalism doesn't really work either, you get a very unstable systems with cycles (which people try to stabilize in ad hoc ways), you optimize for the wrong things long term (right now producing much more goods than we nee
167.
▲
by
dagss
2y ago
You explain why I don't need them for a very different usecase than what I refer to. My point is I want a new primitive -- a pub/sub sequence number -- to avoid having Kafka around at all. What Kafka does is "only" to
168.
▲
by
dagss
2y ago
Well, assume the non-overdraftable bank account example instead then, what do you do then?
169.
▲
by
dagss
2y ago
All systems I have worked on like this has some concept of a version number for each entity / aggregate. So you get that the account_balance was 100$ on version 10 of the account, and write an event that deducts 10$ on version 11. If a
170.
▲
by
dagss
2y ago
That is OK, guess I would write a job to listen to the logical WAL and use it to do an update that writes an event sequence number.
171.
▲
by
dagss
2y ago
Great link, thanks! What do you do postgres for consuming old events and smoothly transitioning to consuming new events? Anything like an event ID allocated at commit time that is usable? As I talk about in sibling comment..
172.
▲
by
dagss
2y ago
Yes, listen/notify is something very different. We would often write new projections that consumes events from years back and until today. You want sequence numbers that indicate the event's position in a partitioned log. Somethin
173.
▲
by
dagss
2y ago
We did this style on top of plain MSSQL. Each event would have a SQL table which is the primary storage. Then we have workers that listens to new data in tables and updates projections we needed. (Sometimes DB triggers but mostly async work
174.
▲
by
dagss
2y ago
I agree that for a) inserts and b) single entity access -- in both these cases the backend can do a lot of the preparation. And your example is both a) and b). We are then in O(1) optimization territory. If you are only processing a single
175.
▲
by
dagss
2y ago
Purely rationally it may be. But lots of fun being had in our Slack by people putting emojis in the right order, to make pictograms etc All forms of communication is "abused", such abuse is part of being human, that is how languag
176.
▲
by
dagss
2y ago
I think there are two different concerns here though: The article recommends something that may lead to using the wrong query plans. In the "right" conditions, you will do full table scans of all your data for every query. This
177.
▲
by
dagss
2y ago
At least for MSSQL: Never do this (before learning about query caches). Or at least, if you do, add (option recompile) to the query. For each combination of parameters to search for you may want to use a different index. But... the query
178.
▲
by
dagss
2y ago
I am not sure why you think I think Instagram etc. are innocent. For all I care all social media could be shut down. My point was that the free speech discourse around this is naive. The "speech" in question is providing ammuniti
179.
▲
by
dagss
2y ago
I feel this is way too optimistic about the typical adult. Adults are most definitely affected by propaganda. Problem is reality is so complex and usually all sides of a topic are right at the same time, in some way. For any viewpoint A, th
180.
▲
by
dagss
2y ago
No one can possibly know. They just have all the power to do it very efficiently, without anyone noticing.
More ›