Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mrkeen
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
931.
▲
by
mrkeen
2y ago
Sure, use {-# LANGUAGE GHC2024 #-}
932.
▲
by
mrkeen
2y ago
Sounds like you want green threads, a concurrent runtime, and best-in-class synchronisation primitives.
933.
▲
by
mrkeen
2y ago
I don't think it will backfire for him politically. Despite previously being for a TikTok ban, and despite it being his court upholding the ban, I think what's going to stick in people's minds is "only Trump can save Tik
934.
▲
by
mrkeen
2y ago
When you express it has "Haskell has the IO monad" and "Haskell has the Maybe monad", it's no biggie because other languages have them. All Java Objects might or might not be there (so they all implement Maybe). A
935.
▲
by
mrkeen
2y ago
So we've shifted from: SQL now (for dev experience) && no-SQL later (for scaling) to: no-SQL initially (for *much better* dev experience) && no-SQL later (for scaling) I can get behind that. > When your
936.
▲
by
mrkeen
2y ago
> Palestinians in Gaza and the West Bank have received starvation tactics https://apnews.com/article/israel-palestinians-gaza-war-un-f...
937.
▲
by
mrkeen
2y ago
A good first step for border security would be to declare where those borders are.
938.
▲
by
mrkeen
2y ago
> You can get really far with a RDMS before event sourcing etc is needed You can manage up to 0 partners easily. Once you go above that threshold, you're into "2-Generals" territory. At that point you're either inco
939.
▲
by
mrkeen
2y ago
Agreed that it is naive to assume that static types will keep some kind of consistency on the bytes that come in on the wire, but it misses the point. With static types, you do one transformation from bytes to a proper data type at the bo
940.
▲
by
mrkeen
2y ago
This time it was thehill getting the title wrong, instead of HN autocorrect. thehill title: OpenAI’s Sam Altman urges Trump to ease power plant, data center construction thehill paragraph: OpenAI CEO Sam Altman suggested that Pre
941.
▲
by
mrkeen
2y ago
Very often I find myself wanting to store item(s) using a key. My items are not relations, and I don't see the point in transforming them to and from relational form. And if I did, each row would have like 5 columns set to NULL, in ad
942.
▲
by
mrkeen
2y ago
I had a similar double-take moment reading about Breitbart editor "Milo Yiannopoulos" a few years ago. Different racist cultures develop different ideas on what makes someone white. "Yiannopoulos" might be called a 
943.
▲
by
mrkeen
2y ago
> So nothing is ever equal to something that can be anything It's worse than that. It's something is neither equal nor not-equal to something else. Whether you can implement something differently as a workaround is immateria
944.
▲
by
mrkeen
2y ago
> That logic that allows nulls has been implemented using the same unified set of keywords and operator names is a pragmatic decision That's why it's name-squatting. Rather than introduce a 'kleene' datatype & op
945.
▲
by
mrkeen
2y ago
> No, it means you haven't gathered this data point and don't know. This is how it should be. > Somehow means he owns a car because you are using boolean logic? This is how it unfortunately is. There are 3 people, and there
946.
▲
by
mrkeen
2y ago
It's unfortunate to namesquat on 'boolean' if your elements have three possible values. Just call it 'ternary logic' and let individuals decide which system to use.
947.
▲
by
mrkeen
2y ago
Code which is unit testable is integration testable. Not the other way around. I test my units more thoroughly than integrations allow. Make the db return success, failure, timeout, cancellation, etc. One of my colleagues was trying to pr
948.
▲
by
mrkeen
2y ago
That's not sufficient. The actual things are IO devices, and will sometimes fail and sometimes succeed. No judgement, just a fact of life. I code my tests such that my logic encounters successes, timeouts, exceptions, thread-cancellat
949.
▲
by
mrkeen
2y ago
Thinking in terms of monoids can be quite helpful even if you're not in pure functions land. For instance, if you're putting together an on-disk full-text search index, immutability techniques become very relevant (since you can&#
950.
▲
by
mrkeen
2y ago
I did something similar. C++ game engine with embedded Lua. I brought it to a C++ job interview. The interviewer kept asking how certain things worked. After a while I realised I was only clicking into Lua source code to show what was g
951.
▲
by
mrkeen
2y ago
> Everyone has a different idea of what is an improvement in a codebase Yes, and consistency is the tie-breaker. So the status quo remains, and improvements aren't made.
952.
▲
by
mrkeen
2y ago
> As I understand, there is a balance between refactoring and adding new features. True, but has drifted from the TFA's assertion about consistency. As the thread has implied, it's already hard enough to find time to make small
953.
▲
by
mrkeen
2y ago
Is this not a solved problem? Why do you need to write so much persistence logic?
954.
▲
by
mrkeen
2y ago
Nope, you've got it. Code-consistency is a property just like any other property, e.g. correctness, efficiency, testability, modifiability, verifiability, platform-agnosticism. Does it beat any of the examples I happened to list? Not
955.
▲
by
mrkeen
2y ago
There was only one mistake that the article felt like giving a header to: "The cardinal mistake is inconsistency" The instinct to keep doing things the wrong way because they were done the wrong way previously is strong enough acr
956.
▲
by
mrkeen
2y ago
Have a look at: Simon Peyton Jones on Getting from A to B fast route finding on slow computers [PWL London] https://www.youtube.com/watch?v=L1XDdy-hOH8 It goes from 0 all the way up to A*, then beyond. I think the
957.
▲
by
mrkeen
2y ago
> Oral thermometers are fairly accurate
958.
▲
by
mrkeen
2y ago
I think you have it backwards. The companies trust and are adopting AI now. Though it might take some time for AI to be develop that can live up to those expectations.
959.
▲
by
mrkeen
2y ago
> Check out the famous NASA coding rules. Rule number one is no recursion. And rule number 3 is no heap allocation.
960.
▲
by
mrkeen
2y ago
> Flash has big disk energy, but is fast enough that copying it to RAM one word at a time like disk will probably bottleneck your performance by an order of magnitude. Much more of a slowdown than that. Mmap a big file on an SSD, access
More ›