Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jgavris
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
jgavris
7mo ago
Almost spit out my coffee
2.
▲
by
jgavris
8mo ago
They’re trashing our rights!
3.
▲
by
jgavris
8mo ago
I was just in the middle of writing something similar above, thanks!
4.
▲
by
jgavris
8mo ago
The general approach is to do multiple migrations (add first and make new-code work with both, deploy, remove old-code, then delete old-schema) and this is not specific to Django's ORM in any way, the same goes for any database schema
5.
▲
by
jgavris
8mo ago
Of course, ActiveRecord back in 2005.
6.
▲
by
jgavris
8mo ago
The Django ORM / migrations are still basically unmatched in happiness factor.
7.
▲
by
jgavris
8mo ago
This is essentially how some fixed wireless providers (like Starry) deliver the last mile (twisted pair).
8.
▲
by
jgavris
9mo ago
I still feel like Swift 5 (5.2?) was the sweet spot. Right now there are just way too many keywords, making C++ look easy again. Similarly, I find Combine / GCD code far easier to write and read and understand, and the semantics are be
9.
▲
by
jgavris
3y ago
Git ‘remotes’ can have rules (hooks that run on push, and decline). GitHub has ‘branch protection’ which prevents various changes. But GitHub is not Git. A common misconception lately due to its popularity. Git itself is nothing more than a
10.
▲
by
jgavris
3y ago
Cyberarmy was pretty fun too
11.
▲
by
jgavris
3y ago
Definitely a fun demo!
12.
▲
by
jgavris
3y ago
It’s practically a requirement…let’s say there was no iOS class when I was in school, but there was an App Store.
13.
▲
by
jgavris
3y ago
Indeed, it’s not out of reach and compute density is higher than the Mac Pro with Minis (even the core i9). M1 / M2 is vastly higher.
14.
▲
by
jgavris
3y ago
I wrote a hacky version of SKIP LOCKED using advisory locks and a recursive CTE before it was released for a job queue. It worked splendidly, along with the transactional semantics of a proper database. I’m surprised more systems don’t real
15.
▲
by
jgavris
3y ago
Like a store and forward wifi mesh network? I worked on this in 2008.
16.
▲
by
jgavris
3y ago
Lest we forget DotA was a Warcraft 3 mod to begin with…
17.
▲
by
jgavris
4y ago
Oh how I miss the computer labs with Kidpix, Oregon trail, Mavis Beacon, and maybe later Marathon LAN parties (when the instructor left the room for an hour)...
18.
▲
by
jgavris
4y ago
Even in a private monorepo, Google has tools like Copybara that make it somewhat easy to 'open source' small pieces of it and sync them in and out of a 'public' repo. The benefits of a monorepo and just having to 'g
19.
▲
by
jgavris
4y ago
I am fine with applying either OO / FP approaches. This example is a sealed class , it is just my opinion that the OO version reads better. And the added benefit of having the function namespaced / bound to the class for IDE supp
20.
▲
by
jgavris
4y ago
Thanks. I'm just wondering why the example didn't show this extension method. It seems more idiomatic to just call it on the receiver instead of passing a parameter.
21.
▲
by
jgavris
4y ago
I'm genuinely curious, and I don't know much about Dart and haven't used it. The comparisons to Kotlin are interesting, especially sealed classes and pattern matching. For this example from the post, is it not possible use an
22.
▲
by
jgavris
4y ago
Migrating from Java to Kotlin looks nice and easy on the surface (optionals!), but the lack of checked exceptions will absolutely bite you sooner or later if you are consuming Java code. Better carefully read the docs and source of all your
23.
▲
by
jgavris
4y ago
How big is your Go codebase versus your Rust codebase? Why not rewrite bits in Rust? This is very cool, but seems like a lot of effort and ongoing maintenance.
24.
▲
by
jgavris
4y ago
Eventually you'll be able to use std::expected in C++23! https://en.cppreference.com/w/cpp/header/expected Don't throw exceptions, require the caller to handle errors and propagate them up the stack
25.
▲
by
jgavris
5y ago
🆒
26.
▲
by
jgavris
5y ago
Of course, making the right abstractions and library / module / crate boundaries is still very much important to incremental build performance. For 'very large' Rust projects, setting up remote build execution can be har
27.
▲
by
jgavris
5y ago
I'm surprised nobody has mentioned trying out using Google's Bazel build system with the Rust rules. Bazel provides relatively straightforward 'remote caching' of build artifacts via Google Cloud Storage or S3. https:&#
28.
▲
by
jgavris
6y ago
We run OpenCL on top of Vulkan in a production application on Android, thanks to a project from Google / Codeplay and other contributors https://github.com/google/clspv . SPIR-V can't represent all of OpenCL,
29.
▲
by
jgavris
6y ago
I use macOS, but some folks have contributed a linux package / installer. And yeah, I added the v2 of the hook recently which is even faster!
30.
▲
by
jgavris
6y ago
Great post! I wrote a (fast?) fsmonitor hook in Rust...benchmarked against the reference Perl implementation it's quite a bit faster. On a repo of 130k files, my monitor is able to `git status` in 18 millseconds. https://git
More ›