Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gavinray
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
511.
▲
by
gavinray
1y ago
It could be that it got upvoted so rapidly it triggered vote-spam detection. I don't think mods hand-downrank posts to certain pages.
512.
▲
by
gavinray
1y ago
Being able to access the entirety of the JVM ecosystem of libraries from JS without glue code is kind of insane.
513.
▲
by
gavinray
1y ago
Gradle wrapper scripts when combined with the new-ish Gradle Toolchains feature already fetch both Gradle and the required JDK version, though? https://docs.gradle.org/current/userguide/toolchains.html#se... &
514.
▲
by
gavinray
1y ago
Good point, have written about this in the past https://gavinray97.github.io/blog/panama-not-so-foreign-memo...
515.
▲
by
gavinray
1y ago
Please don't do this. Have the OS handle memory paging and buffering for you and then use Java's parallel algorithms to do concurrent processing. Create a "MappedByteBuffer" and mmap the file into memory. If the file is
516.
▲
by
gavinray
1y ago
Also at a company where I write backend Kotlin and we don't have any mobile apps or any other JVM products at all. We wanted the JVM for the JDBC ecosystem due to being a data tool, and Kotlin seemed like the "least bad" flav
517.
▲
by
gavinray
1y ago
Honestly, lack of the ability to write free-floating functions in Java. Recent Java features like records, pattern matching, sum types via sealed interfaces have certainly made it a much more ergonomic and modern language. But having to wra
518.
▲
by
gavinray
1y ago
I use VS Code for everything BUT Kotlin. I begrudgingly use IDEA because it was the only option if you wanted a decent IDE experience. The fwcd VS Code LSP for Kotlin that existed somewhat works, but it's very barebones and hasn't
519.
▲
by
gavinray
1y ago
Just a heads-up, the link in the "Litestream is fully open source" callout is malformed and leads to: https://http//litestream.io/
520.
▲
by
gavinray
1y ago
This doesn't help in your case, but this is what GraphQL was invented for. TS libraries for GQL queries can dynamically infer the response shape from the shape of the selected fields. Such that the query query { user {
521.
▲
AI SQL Generation: Overcoming Dialect-Specific Syntax
(gavinray97.github.io)
3 points
by
gavinray
1y ago
|
1 comments
522.
▲
by
gavinray
1y ago
In response to the recent Google Cloud post "Getting AI to write good SQL" [0] and some comments I've seen here lately [1], I wanted to share an approach that I've found useful for portable, dialect-agnostic SQL generati
523.
▲
by
gavinray
1y ago
By programming in the language for a living and being familiar with the semantics of the language's keywords -- likely the same way anyone else understands their preferred language? People write Haskell for a living, after all.
524.
▲
by
gavinray
1y ago
I lift because since I was a child, I always wanted to look like an Anime character.
525.
▲
by
gavinray
1y ago
https://en.cppreference.com/w/cpp/experimental/scope_exit scope_exit{[&]{ ... } };
526.
▲
by
gavinray
1y ago
It's somewhat of a secret, but AWS's JDBC driver for DocumentDB supports Mongo as well Let's you interact with Mongo as if it were a regular SQL JDBC database https://github.com/aws/amazon-documentdb-jdbc
527.
▲
by
gavinray
1y ago
Modern .NET has the deepest integration with SIMD and vector intrinsics of what most people would consider "high-level languages". https://learn.microsoft.com/en-us/dotnet/standard/simd Tanner Goodi
528.
▲
by
gavinray
1y ago
You can just write an IIFE expression, and use regular imperative logic like if/else and switch statements. If you find the syntax ugly, you can create a function like "run(expr)" to wrap it, similar to Kotlin's method o
529.
▲
by
gavinray
1y ago
It's just a volume thing. If you order a household's worth of food constantly, some items are bound to be damaged. Usually, it's energy drinks that get partially crushed during transit. Not a big deal, and I'd still rath
530.
▲
by
gavinray
1y ago
Curious anecdote: I've weight trained most of my life. For a significant portion of it, I used straps for movements like deadlift and lat pulldowns where the muscles doing the movement were stronger than my ability to hold on to the we
531.
▲
by
gavinray
1y ago
Almost half of my food comes from Amazon and I constantly return damaged items...
532.
▲
by
gavinray
1y ago
Do you think there's a possibility of Direct IO being adopted at some point in the future now that AIO is available?
533.
▲
by
gavinray
1y ago
Have you considered that some people produce music solely for aesthetic purposes? The main genre of music I listen to is electronic. Many electronic songs are written to evoke a specific feeling, without meaningful lyrics. When I produce el
534.
▲
by
gavinray
1y ago
That's because .apk's are essentially ZIP archives -- they contain assets required for the executable as well as a manifest declaring permissions. That's a bit of a handwavy explanation, there's more to it than that, but
535.
▲
by
gavinray
1y ago
Just bought a pair of the Mentra Mach1 glasses, let's see how they pan out.
536.
▲
by
gavinray
1y ago
I am so unbelievably excited for consumer-grade, useful AR. There was a lot of hype around VR, but for the last 10 years I've been following progress on AR glasses. The thing about AR is that it has the ability to enhance everything in
537.
▲
by
gavinray
1y ago
> "Just let me download and run an application" This is how Android works?... You can download an ".apk" file and just install + run it, like an ".exe" or ".msi"
538.
▲
by
gavinray
1y ago
Hmm, I see what you're saying -- yeah, this seems to be semantically identical to Kotlin's `lateinit` then
539.
▲
by
gavinray
1y ago
But this is also achievable with static init methods on records and value classes, right? record Rational(int num, int denom) { Rational { int gcd = gcd(num, denom); num /= gcd; denom /= gcd
540.
▲
by
gavinray
1y ago
This post makes mention of a new JEP I hadn't heard of before: "Stable Values" https://openjdk.org/jeps/502 https://cr.openjdk.org/~pminborg/stable-values2/api/java.bas...
More ›