Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,383 karma · joined Jan 3, 2008 (18y ago) · 8,295 submissions

mqudsi on most sites.
Submissions

comment 2y ago · link · parent

I must say, I’m surprised to see so many HN users (who, despite being biased towards having more disposable income are also supposedly more discerning) simply immediately upgrading their Google One plans to the new offering before testing this and seeing how it fares.

Looks like a potential gold mine for Google regardless of how it performs!

comment 2y ago · link · parent

Some amount of RLHF censorship seems to correlate with benchmark improvements in studies, though.

comment 2y ago · link · parent

GPT-4 has a really good tokenizer that is able to retain and use more information about input tokens than one might naively think.

comment 2y ago · link · parent

The “cute” gotcha here is that Israel doesn’t have to foot the bill, the USA is happily paying.

comment 2y ago · link · parent

I mean, Israel has demonstrated much the same approach (confined to a much smaller territory) nonstop over the past four months (first missiles and now 155mm artillery and tank shells), so it’s definitely not just an Eastern Europe thing.

comment 2y ago · link · parent

Nice catch! That warning definitely wasn't emitted the last time I tried this.. I don't know about using something like your suggestion which has actual side effects, but probably something like #![cfg_attr(invalid, allow(unused_attributes))] instead would work (without side effects).

comment 2y ago · link · parent

Thanks!

> Would it have been possible back then to use cargo to pull in some dependencies?

Not at the time, at least not that I know of.

I wonder if it's possible to get a link to this solution added to that "prior art" section.

comment 2y ago · link · parent

I don't want to spam the link, but I actually just posted a top-level comment to a version of this I published back in 2020 that does caching and cache invalidation, using the hash of the script as the key for the compiled output path.

EDIT:

Actually, that was how the original version worked, but it had the limitation that once the script changed you could no longer determine the path to the previous executable output to delete, so you could end up accumulating a lot of defunct binaries. Now the hash is stored alongside the target.

comment 2y ago · link · parent

For the rustaceans in the crowd:

It's not a universal "for all compiled langs," but I published a two-liner [0] with zero (non-standard) dependencies or pre-requisites that can be copy-and-pasted to the top of any rust code to turn it into an executable script (cached! also correctly cache-invalidating!) back in 2020.

It even lets you optionally omit the `fn main() { ... }` surrounding your code as well, if you really want to feel like you're just shell scripting <insert appropriate emoji here>.

It's an example of "polyglot source code" that is valid under two languages at once (in this case, standard sh and rust), (ab)using the rust `#[allow(...)]` "macro" to do double-duty as a shell script comment opener.

[0] https://neosmart.net/blog/self-compiling-rust-code/

comment 2y ago · link · parent

If you're looking for pg_analytics (the product in TFA) in the charts and can't find it, it's because the chart calls it ParadeDB (after the company, instead of the product).

comment 2y ago · link · parent

> Based on Clickbench results, pg_analytics is still far from top-tier performance

You touch on this in your next sentence, but really, how many people need that kind of performance?

comment 2y ago · link · parent

Better but less technical writeup: https://www.bloomberg.com/features/2024-ai-unlock-ancient-wo...

comment 2y ago · link · parent

Never mind, you're right of course. I blanked for a moment there and completely forgot that you just need to use `std::stable_sort()` for non-deterministic comparison routines.

comment 2y ago · link · parent

Placing a certificate in the Trusted Root Certification Authorities node – despite completely "owning" a machine – is ironically not enough for a certificate to be used for driver code signing as even those need to be cross-signed by Microsoft to be accepted for kernel-mode drivers. I'm not sure this explanation holds any water.

(When it does suffice, the approach has always been generate a CA certificate on the device itself and install that, generate a cert signed by that CA to sign the code/driver with, then nuke the CA's private keys so they can't be used to sign anything else again. There would be zero need to ever use a real CA here.)

comment 2y ago · link · parent

But generating a table with all numbers was just a throwaway example of the LATERAL JOIN syntax/use, and (hopefully) not what you'd actually use it for in the real world.

It's not clear to me that (mathematically) a lateral join can be reduced to a recursive cte (and if the performance of a recursive cte would be acceptable for the cases where it does work as a substitute).

comment 2y ago · link · parent

Your comment was downvoted, possibly because the URL submitted at that HN discussion is down.

Here's an archived copy of that PDF, which is the same case: https://web.archive.org/web/20140912083558/http://www.docent...

comment 2y ago · link · parent

I feel like if you are claiming "beautiful" output then it's obligatory to have at the very least screenshots of said output PDFs (or better yet, a sample for the same link in the CLI screenshot, especially so people can see how the text flows, what quality images are captured at, how text can be selected, etc).

comment 2y ago · link · parent

<removed incorrect comparison with std::sort()>

comment 2y ago · link · parent

It would be nice to have either fully integrated support for returning the UUIDv7 encoded in crockford's base32 or else ship a crockford's base32 encode/decode functionality in the same release so that this can be compatible with Ulid (given that it's one the primary open source existing works UUIDv7 was modeled after).

comment 2y ago · link · parent

For this example, nothing. It would be useful where neither of the two SELECT queries is a subset/superset of the other. (Not saying you didn't know that.)

comment 2y ago · link · parent

LATERAL first available in PostgreSQL 9.3 (2013), but still not available in SQLite.

comment 2y ago · link · parent

Writeup on the challenge with lots more info: https://www.bloomberg.com/features/2024-ai-unlock-ancient-wo...

comment 2y ago · link · parent

Results announced by Nat Friedman here today: https://x.com/natfriedman/status/1754519304471814555?s=46&t=...

comment 2y ago · link · parent

Because the frequency doesn’t require a license and its use won’t land you in jail?

comment 2y ago · link · parent

In five more years, not "for five years."

comment 2y ago · link · parent

To me, the obvious reason why solar would be a gamble is that I have no guarantee I’ll be living here in the same home five years - let alone twenty - from now and I can’t take it with me when/if I move.

comment 2y ago · link · parent

Clever approach!

comment 2y ago · link · parent

No worries! I'm mqudsi shift-2 neosmart punctuation net.

comment 2y ago · link · parent

Which timing mechanism did you use?
1
353637
277