Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gavinray
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
721.
▲
by
gavinray
3y ago
Nothing as reliable as a Honda Civic or Toyota Prius.
722.
▲
by
gavinray
3y ago
> We are 100% open source I mean, so is Hasura. https://github.com/hasura/graphql-engine (Disclaimer: Work at Hasura)
723.
▲
GCC's Analyzer gains ability to print text-art visualizations of out-of-bounds
(gcc.gnu.org)
24 points
by
gavinray
3y ago
|
1 comments
724.
▲
by
gavinray
3y ago
I tested the following and it seems to work: CREATE OR REPLACE FUNCTION run_with_adjusted_settings(query_text text) RETURNS SETOF record LANGUAGE plpgsql AS $$ DECLARE result_record record; BEGIN -
725.
▲
by
gavinray
3y ago
This looks great -- thank you for sharing!
726.
▲
by
gavinray
3y ago
You don't even need to do this much, you can just invoke the function and let the return type be inferred. const inferred = (() => "Hello")() // Inferred as "string" If you really don't wan
727.
▲
by
gavinray
3y ago
Thank you!
728.
▲
by
gavinray
3y ago
Can any physicist explain the term "quantum metric"? Googling it appears to give no relevant results. Might it be a typo? > "The researchers said that the unique voltage arises from the electronic properties of the man
729.
▲
by
gavinray
3y ago
Circle is the "C++ Successor" language I am most excited about, after writing a fair amount of D, and trying the Carbon interpreter. The issue with D is that while it's a great language, and it has C++ interop, it doesn'
730.
▲
by
gavinray
3y ago
You use pragmas to disable/enable features on a file-by-file basis. Since existing code contains no Circle pragmas, it's compiled by the Circle compiler as "standard" C++. I urge you to try it -- there's binaries an
731.
▲
by
gavinray
3y ago
The Java code is impressively written, using newer features like MemorySegment. Looked at the author and realized it's Alfonso from the Graal team -- makes sense. I wonder whether the "matmul" code could be further optimized
732.
▲
by
gavinray
3y ago
C++ Modules should hopefully significantly improve this situation
733.
▲
by
gavinray
3y ago
Reddit thread with additional discussion: https://www.reddit.com/r/java/comments/15ere1m/toward_conden...
734.
▲
by
gavinray
3y ago
FWIW, I prefer the taste of Coke Zero and Pepsi Max to regular Coke/Pepsi. My wife had never tried Coke Zero before we met and she also prefers it now. Not sure what they use in these alternatives but Diet Coke/Pepsi taste pretty
735.
▲
by
gavinray
3y ago
As an FYI for folks, "Cling" is being integrated upstream into LLVM under the name "clang-repl": https://clang.llvm.org/docs/ClangRepl.html
736.
▲
by
gavinray
3y ago
One of the most surprising things I learned about "clang" was how relatively poor the "libClang" capabilities are. I wanted to write a codegen tool that would auto-generate bindings for C++ code, and it turns out that &q
737.
▲
by
gavinray
3y ago
Do it yourself in ~20 lines of code with LlamaIndex. You give it a directory containing documents and ask it to build an index and vector data embeddings over the documents Then you can use this index with models like ChatGPT Tutorial here
738.
▲
by
gavinray
3y ago
RIP Chris, he was a true gem in the community. Often answered questions I had on the Graal slack. https://news.ycombinator.com/item?id=33893120
739.
▲
by
gavinray
3y ago
Do you know if this is possible using "std::experimental::simd" out of curiosity? https://en.cppreference.com/w/cpp/experimental/simd
740.
▲
by
gavinray
3y ago
Fantastic post, I appreciated that the ASM was displayed in tabs as both "standard" and "visual-arrows"-annotated. Kept me reading into the follow-up article. Also, I love the UI of this blog.
741.
▲
by
gavinray
3y ago
> one of the reasons I was told it was great was because it solves/avoids the n+1 problem So, the thing about GraphQL is that it's a _specification_, in the same way that REST or gRPC are specifications. There's no
742.
▲
by
gavinray
3y ago
I own the book and would agree -- only reason I didn't suggest this is that the areas on query-planning and optimization are a bit thin. IMO it's great if you want a holistic view of building a query engine start-to-finish with ju
743.
▲
by
gavinray
3y ago
Justin also has a post on WCOJ that's really solid: https://justinjaffray.com/a-gentle-ish-introduction-to-worst...
744.
▲
by
gavinray
3y ago
Justin Jaffray is a gem
745.
▲
by
gavinray
3y ago
There's an entire 700-page book about this you can access for free here: "Building Query Compilers" https://pi3.informatik.uni-mannheim.de/~moer/querycompiler.p... EDIT: You also might get use out of TUM
746.
▲
by
gavinray
3y ago
Some threads with previous discussion: - https://news.ycombinator.com/item?id=22098399 - https://news.ycombinator.com/item?id=25300225
747.
▲
by
gavinray
3y ago
Well, I eat my shorts. Isn't LMBD closer to an embedded key-value store than an RDBMS, though? Also there's a section in the paper that mentions it's single-writer.
748.
▲
by
gavinray
3y ago
The argument is that: - Queries can trigger blocking page faults when accessing (transparently) evicted pages, causing unexpected I/O stalls - mmap() complicates transactionality and error-handling - Page table contention, single-threa
749.
▲
by
gavinray
3y ago
"mmap" in the general case is incredibly useful. There's so much you get "for free" and the UX/DX of reads/writes to it, especially if you're primarily operating on structs instead of raw byte/st
750.
▲
by
gavinray
3y ago
Out of curiosity, how many databases have you written? This is co-authored by Pavlo, Viktor Leiss, with feedback from Neumann. I'm sorry, but if someone on the internet claims to know better than those 3, you're going to need some
More ›