Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gavinray
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
44 ms
·
751.
▲
by
gavinray
3y ago
> ...but this file was dozens of gigabytes. Turns out if you do this the naive way on a consumer disk, it will take weeks and it will wear out the disk incredibly quickly This is what C's "fallocate(2)" with "
752.
▲
by
gavinray
3y ago
If you maintain k6, can I log a complaint? I feel like I used to be able to run the CLI with just an URL and it would issue GET requests to it -- without needing a .js script to run Am I crazy, did this never exist? Please bring back/a
753.
▲
by
gavinray
3y ago
To offer a counter opinion: while I can live without ChatGPT and cancelled my OpenAI plus membership, I cannot live without Copilot and would be willing to pay a lot to keep it. There are a lot of tricks to optimizing output from Copilot (&
754.
▲
by
gavinray
3y ago
I'm not sure if I fully understand what exactly "Ayb" is. Maybe a diagram/visual image would help to clarify the flow and architecture? From the example it seems like it is a CLI that will create SQLite databases, and th
755.
▲
by
gavinray
3y ago
What I always thought was interesting was that when you take psychedelics, despite whether it's mushrooms, LSD, or 2C-B (and what have you), you can feel this little ball of energy in your stomach (particularly noticeable when starting
756.
▲
by
gavinray
3y ago
I'll challenge that, to me this is a no-brainer with mountains of evidence. You can look at research about using antibiotics or fecal-matter transplants and outcomes on both physiological and psychological health. Too many to list for
757.
▲
by
gavinray
3y ago
It ought to be "$XDG_CONFIG_HOME/<program-name>" I have trouble seeing the rationale for other locations when the XDG standard exists
758.
▲
by
gavinray
3y ago
5% can be tens of millions of dollars a year when you're FAANG scale They have engineers dedicated to 0.5-2.0% improvements in the kernel
759.
▲
by
gavinray
3y ago
Recently on mobile it's stopped giving me the option to even view the page anonymously, at least for adult content. It gives me: "This is mature content and may not be appropriate for certain viewers. To continue, use the app
760.
▲
by
gavinray
3y ago
At the very least, it could return an intersection type that is equivalent to the known keys in the object so you get autocomplete, but allow other arbitrary properties of unknown type: type FrozenObject<T> = { readonly [K in ke
761.
▲
by
gavinray
3y ago
Calling "Object.freeze()" and then asking for the keys/values/entries of a frozen object should be able to return a properly-typed value. But it doesn't do this =(
762.
▲
by
gavinray
3y ago
The second someone makes a successor language that seamlessly/directly interops with C++ _AND_ has the level of build/IDE tooling that C++/Rust have, I'm on board. The closest thing right now is Sean Baxter's "
763.
▲
by
gavinray
3y ago
See also: Thomas Neumann's current proposal for memory safe C++ using dependency tracking: - https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p27... Google's proposal for memo
764.
▲
by
gavinray
3y ago
Thank you!
765.
▲
by
gavinray
3y ago
When I was 18, at my first dev job, I was put in charge of trying to migrate and modernize an old PHP app for a client. I had been there maybe 6 months. For some reason I can't recall I was meant to delete the staging RDS database. Wel
766.
▲
by
gavinray
3y ago
That's really cool. Any chance you'd be able to link the relevant parts of the code? I had a look through the "/pg" directory but there was a lot there and it wasn't immediately clear which parts did what
767.
▲
by
gavinray
3y ago
You could have used Kotlin if you wanted to stay on the JVM and use coroutines. Your desired pseudo-code in Java would look like this in Kotlin: coroutineScope { // Drive backward launch { while (
768.
▲
by
gavinray
3y ago
I find the support of plain SQL over the Postgres wire protocol (intended for BI usecases) really interesting. The article mentions a "SQL-to-SQL" compiler -- how exactly does this work? Are you intercepting plain SQL queries over
769.
▲
by
gavinray
3y ago
But C# has the ability to compile to WASM and run in the browser, using the Mono WASM runtime that's part of the .NET core repo now. This is what underpins Blazor. https://github.com/dotnet/runtime/tree/m
770.
▲
by
gavinray
3y ago
This is Netflix, not some amateur-hour implementation copied from a blogpost. The de-facto GraphQL Java library comes with dataloaders built-in anyways: https://www.graphql-java.com/documentation/batching/
771.
▲
by
gavinray
3y ago
The "go-to" GraphQL server implementation varies based on language. Here are the popular ones to my knowledge: - Node.js: GraphQL Yoga + Fastify, Apollo Server - Java/Kotlin: Netflix DGS (built on top of Spring Boot) - Scala:
772.
▲
by
gavinray
3y ago
That presentation was pretty cool, thanks for posting.
773.
▲
by
gavinray
3y ago
Yeah, Kotlin does have the colored-function problem, in the same way that Node/JS has. Loom and Virtual Threads are one area I'm not as familiar with. What I do know is that you can configure virtual threads as the coroutine dispa
774.
▲
by
gavinray
3y ago
> and function signatures like the below might be "clunky" from your point of view, but IMHO are more clear since they document explicit types. (and you can navigate to their javadoc) Blah doSomething(BiFunction<String
775.
▲
by
gavinray
3y ago
I adore TypeScript -- JS/TS has been my primary language for most of my career. Kotlin has a few things that TS doesn't have but overall, I'd rate it very similarly. I probably enjoy writing TS a bit more than Kotlin. EDIT: T
776.
▲
by
gavinray
3y ago
I can give perspective as someone who enjoys modern Java, writes Kotlin at their dayjob (and loves it), and also likes Scala 3. Here are the things that if Java had, I probably wouldn't see a reason for other languages: 1. Lack of firs
777.
▲
by
gavinray
3y ago
That's fair, and I'm inclined to agree. Just wanted to point out there wasn't _really_ nothing new, even if it might have been somewhat pedantic.
778.
▲
by
gavinray
3y ago
JDK 20 introduced the Scoped Values JEP as a preview, and also had significant changes to the Panama Foreign Function & Memory (FFM) preview API: - Scoped Values: https://openjdk.org/jeps/429 - Panama FFM 2nd: htt
779.
▲
by
gavinray
3y ago
FWIW, there's an open PR and discussion around the code for this: https://github.com/openjdk/jdk/pull/9779
780.
▲
by
gavinray
3y ago
Nope not at all, here you go: https://openjdk.org/jeps/401 It's part of Valhalla, as a pre-requirement for heap-flattening. Ctrl+F for "Null-restricted type". The strawman proposal syntax is "Foo!&q
More ›