Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
samhh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
samhh
6y ago
No statement in this arena taken to an extreme stands to reason, including "without the lure of money and its power, we wouldn't do anything". I contribute to open source, as many others here do. Lots and lots of people contr
62.
▲
by
samhh
6y ago
I wonder about the environmental impact of CPU cores churning away uselessly on so many machines so many times. Probably enough to power a home for a few years?
63.
▲
by
samhh
6y ago
That would certainly work, I've got a rewrite of a WebExtension in progress that does the same thing. Depending upon what the likes of `Aff` compile down to, you may not even need a JS wrapper. If the compiled type signature is compati
64.
▲
by
samhh
6y ago
The next step here may be recognising that just as you'd map a list, you can also map lots of other data structures, namely anything that's a functor (see: `fmap`). Have something nullable? Stick it inside `Maybe` and map it. Have
65.
▲
by
samhh
6y ago
Not played anything very intensive yet, but Rocket League and Deep Rock Galactic, each via Proton, are performing way better than they were before, in line with what you'd expect moving from a 1070 to a 6800.
66.
▲
by
samhh
6y ago
When I think of networks of friends and family I don't think that's the case. You'll need something approaching 50%+1.
67.
▲
by
samhh
6y ago
6800 is already working fine on release mesa for me. Mightn't have been the case if stock wasn't buggered and I'd have gotten my hands on it a couple of months ago at launch, mind.
68.
▲
by
samhh
6y ago
I never had crashes but, having switched from a 1070 (proprietary) to a 6800 (open) this week, the experience is far better. Things that were previously nigh-on impossible to get right, like fixing screen tearing, or freesync without bizarr
69.
▲
by
samhh
6y ago
The vast majority of users don't care about the underlying encryption. That's a problem, in a sense, but the core problem here is the network effect. That it's the natural behaviour of people doesn't make it not a proble
70.
▲
by
samhh
6y ago
I can't imagine that having good reliability.
71.
▲
by
samhh
6y ago
You don't really need to be bought into fp-ts to use io-ts. Just create a helper function that morphs the native decode output, `Either<E, A>`, to something like `E | A` or `A | null`.
72.
▲
by
samhh
6y ago
I think it makes sense to separate the notion of bangs, what a lot of people use DDG for, from that of a search engine. I think projects like my own (very primitive!) bangin are a step in the right direction here: https://github.
73.
▲
by
samhh
6y ago
You'll potentially need to use merge if you're collaborating with others on feature branches.
74.
▲
by
samhh
6y ago
I think the most common usage of that - switching branches - could be replaced with `git switch` now. That leaves `git checkout` in the set of more advanced operations for more niche use cases. Same goes I think for `git restore` over `git
75.
▲
by
samhh
6y ago
Everyone saying which app they prefer, and I'm wondering why you don't just use one of the many lightweight, FOSS CLI diffing tools that already exists.
76.
▲
by
samhh
6y ago
It is, for example accessing an array or record doesn't unionise the returned value type with undefined, though this particular gaping hole of unsafety is being addressed in 4.1 with a new flag. Beyond that there's functions that
77.
▲
by
samhh
6y ago
It's a bit high level in that the benefits aren't obvious until you buy into other functional concepts, but basically it's that Options can be layered i.e. Option<Option<string>> is possible. If you just use ordin
78.
▲
by
samhh
6y ago
Author here. Yeah, I've found myself never really needing that functionality. I use bookmarks principally as time savers and secondarily as ephemeral reminders; I think the habit people have of stacking up bookmarks they'll never
79.
▲
A simpler approach to bookmarks
(samhh.com)
9 points
by
samhh
6y ago
|
3 comments
80.
▲
by
samhh
6y ago
That's one of my motivations for writing bangin. There are some sites I want to use bangs with which are either too niche or otherwise fall foul of DuckDuckGo's rules. https://github.com/samhh/bangin
81.
▲
by
samhh
6y ago
Hello, author here. The idea came to me yesterday as I wanted to use a bang for ProtonDB. I didn't fancy waiting around for it to be added to DDG following submission, and that led me to ponder the other harms of this really useful fea
82.
▲
bangin – a primitive, portable shell script which enables DuckDuckGo-like bangs
(github.com)
4 points
by
samhh
6y ago
|
1 comments
83.
▲
by
samhh
6y ago
I've found 20:4 successful only as a means of preventing me from eating too much; prior to IF I'd habitually graze throughout the day. It's basically a diet where you don't have to think that much about what you eat (you
84.
▲
by
samhh
6y ago
If I'm understanding you correctly, then fp-ts has the `constant` function to enable what you're describing in #1: fold(constant('my static fallback'), f)(x) What sucks about this, as much as it's my prefer
85.
▲
Less Is More
(samhh.com)
3 points
by
samhh
6y ago
|
0 comments
86.
▲
by
samhh
6y ago
That's not an unreasonable concern but it does mean you're writing code targeting the lowest common denominator. That's not a decision free from negative consequences.
87.
▲
by
samhh
6y ago
Elm's got questionable support; I wouldn't feel comfortable recommending that at work, it'd be irresponsible. PureScript I really like but it's a massive jump from JS/TS to PS/HS. All of these languages are har
88.
▲
by
samhh
6y ago
TypeScript is really about type safety within the confines of your application. You can address the unsafety at the edges with something like io-ts.
89.
▲
by
samhh
6y ago
I doubt much of this is parallelised. Would love to be wrong though!
90.
▲
by
samhh
6y ago
I think number one can be handled with type classes. Usually if you want to pass in radically different structures there's some common underlying structure.
More ›