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 3y ago · link · parent

> [..] and non new supplies were found

What do you mean by “non new supplies” being found (or is that a typo)?

comment 3y ago · link · parent

Maybe it is being confused with the series of posts on the quite ok image format? We had a number of posts on that one.

(I don’t mind. The comments are always interesting.)

comment 3y ago · link · parent

Zulip does. But you can't ignore them, you need to embrace them and use them all the way.

comment 3y ago · link · parent

You’d have to convert it to usable energy. Efficiency might not be the greatest.

comment 3y ago · link · parent

While hearing about record sea level heat numbers on the radio this morning, it occurred to me that a project to actively cool the ocean with zero-emission energy (ideally nuclear) might be a worthy undertaking.

comment 3y ago · link · parent

Thanks for the kind words.

Those options you named will mainly change the specific performance characteristics but not have any impact on architectural matters. I.E. they’ll give you a bit more or less oomph out of a node but typically not make or break your app design.

If you look at the GitHub benchmark I linked, you’ll see how the specific parameters I was referring to give order of magnitude changes in performance whereas eg something like using mmap over distinct syscalls will likely only give you single- or low double-digit gains depending on your configuration (more with speculative execution workarounds enabled on older hardware, less without or on newer).

(Synchronous isn’t an pragma option that you can just enable or disable since it has actual ACID ramifications - i.e. either your usage will let you do it or it won’t.)

comment 3y ago · link · parent

Yeah, that doesn’t help when your name contains letters (or at least certain letters) not in the English language. Siri absolutely can’t pronounce ح < https://en.m.wiktionary.org/wiki/ح>

comment 3y ago · link · parent

Siri is probably the dumbest assistant today but its (her?) UX has improved considerably much faster than the others.

Siri stopped needless chatter several major iOS updates ago - albeit mostly by hardcoding what to show as a sort of mini in-Siri widget instead of repeating what you just told it and asking for confirmation.

Now, if I ask Siri to set an alarm for 7am instead of “Ok <butchered pronunciation of my name>, I have set your seven o’clock alarm for tomorrow morning” I just see a blink (and haptic feedback?) then a widget showing me an alarm bubble with the date and time and a on/off toggle (set to on) that I can clock to undo.

Of course, Siri has the benefit of being a mixed medium “intelligence,” it can use the screen and the audio/mic.

comment 3y ago · link · parent

I was going to comment about that as I’ve recently found their mid-tier+ offerings to be the most price competitive. Their barebones offering are not the cheapest but everything else is a better deal than Hetzner and DigitalOcean, let alone the bigger names.

comment 3y ago · link · parent

This has been posted and reposted continuously for a year and I still don’t understand the comparisons in the article. Either use SQLite across the board or use MySQL/Postgres across the board. Or do both. You can even model a self-managed rdbms install on the clouds that don’t have that turnkey offering. But mixing and matching makes no sense.

I’m a huge fan of SQLite and have open sourced some .NET stuff around it (eg https://github.com/neosmart/AspSqliteCache ) but learned a very expensive mistake in using it for an ASP.NET Core Project with the default pattern (i.e. with EF Core).

SQLite locks (tables or the entire db depending on configuration) upon write. If you use shared cache mode and WAL you can get very far with one write thread and many competing reads - depending on shared cache mode, WAL, and other options. I benchmarked the different configurations with one or more writing threads here to show how it scales: https://github.com/mqudsi/sqlite-readers-writers

But this approach is hard to model with EF Core. If you use the default request-scoped DI injected connection, you risk any writes upgrading the read lock to a write lock for the duration of the request. The better approach is to use the default request-scoped connection for RO operations and then request a scoped/transient DI connection for any write ops, but copying internal EF entity tracking state from one EF instance to another is tedious and fraught with issues. You’re at least able to work around this if you try to always keep in mind write transaction lifetimes, though.

The problem comes as soon as you need a “background service” in the sense of “an operation running independently of requests and parallel to them.” If that service needs a write lock for any amount of time, you’re suddenly going to be seeing write timeouts (since default behavior is to poll repeatedly until a write lock is obtained) and that is pretty much impossible to fix.

As one of the biggest advantages of using a resident executor like .NET or Java vs a per-request stateless option like PHP is that you can do stuff independent of requests, SQLite is tricky to use correctly in prod in this model.

The good news is that if you use the SQLite EF provider and run into this, it’s usually not too hard to switch to a real DB provider as a lot of the work is abstracted. (Especially Postgres because even manually crafted SQLite queries will likely run as-is or with little alteration, given that they are - largely - modeled after the Postgres ones.)

If you do want to build a (web or otherwise) service around an SQLite database, the best model I’ve found is to use a language with first-class channel (with queuing) support (rust, go, and of late, C# too) and have a dedicated write thread. Servicing threads should have direct RO db access but model any writes or updates as requests posted to the channel (or priority channel). Bonus points if your type system prevents you from accidentally or purposely upgrading an RO service thread/fiber’s db connection to an RW one.

comment 3y ago · link · parent

I have my browser set up to automatically redirect. Here's what I saw instead:

https://scribe.rip/@keith-mcnulty/only-one-pair-of-distinct-...

comment 3y ago · link · parent

Afaict the current algorithm is something like this:

if is_netflix_show() { return 0.95 + rand(0.00, 0.05) } else { hide_rating() }

comment 3y ago · link · parent

Funny. One America but no Eurasia ;)

comment 3y ago · link · parent

Did you read the article, though? The argument thing was on the Minecraft room; the leaks were reportedly more of a long-term thing with intel shared out of a sense of “community” and “edification” on a smaller group.

comment 3y ago · link · parent

The kicker is the final paragraph:

> To date, no federal law enforcement officials have contacted the young group member.

If this is real, it’s insane that WaPo beat the DoJ to get to these people.

Also, how stupid are these kids to publicly talk to reporters about their involvement and receiving state secrets (the kid requested his voice not be masked!!). People have been imprisoned for receiving classified information and this is one heck of a clown show the DoJ will want to appear completely on top of.

For real, guys: don’t talk to police or reporters or anyone when you’re involved in a mess (even one much smaller than this). Get a lawyer and learn how to say “no comment!”

comment 3y ago · link · parent

The gpedit option to disable the real time component continues to work. The toggle for disabling all of it doesn’t.

comment 3y ago · link · parent

Memory randomization shouldn’t require a TPM.

comment 3y ago · link · parent

Link is currently down; here's an archived copy: https://archive.is/PJlEX (missing pictures, unfortunately).

comment 3y ago · link · parent

Couldn’t have timed your question better: It’s Ramadan, so a huge chunk of the world is currently fasting from 5am to 8pm (or thereabouts, depending on latitude).

comment 3y ago · link · parent

Archived: https://archive.is/625Am

1881.

Congress leaked Social Security numbers of 1700 White House visitors(nytimes.com ↗)

3 points · by ComputerGuru · 3y ago · 1 comment

comment 3y ago · link · parent

VC doesn’t have to be tech.

1883.

Why East Antarctica is a 'sleeping giant' of sea level rise(bbc.com ↗)

2 points · by ComputerGuru · 3y ago · 1 comment

comment 3y ago · link · parent

You’re benchmarking clang 12, not clang 16.

comment 3y ago · link · parent

> a good conjecture is that n is the length of arr

As an old osdev currently enjoying using rust instead, I would say I wish.

N might be the length of arr. it might also correspond to the number of elements of (implicit) type t that would fit in the unsigned char array arr. It might be the length of the array minus space for a trailing char (either minus one or minus sizeof(char) bytes). Or it could be the size plus one, because why not.

1886.

‘A true toxicant’: Oil co dumps tons of polluted wastewater into Lake Michigan(woodtv.com ↗)

2 points · by ComputerGuru · 3y ago · discuss

comment 3y ago · link · parent

I was about to comment and say the same thing, but as a graded learning exercise there is certainly value in that approach.

1888.

“I don’t know why [Thomas Massie] isn’t more famous”(nytimes.com ↗)

1 points · by ComputerGuru · 3y ago · 1 comment

comment 3y ago · link · parent

I miss USART.
1
626364
277