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

Would a spec sheet really help? For the use cases you are talking about, I wouldn't want to touch anything that doesn't come with actual datasheets and application notes, unless you're just doing it for fun. (i.e. the lack of spec sheet isn't really the obstacle here)

comment 3y ago · link · parent

There's no reason for this discussion to devolve to personal attacks.

comment 3y ago · link · parent

Don’t know why you were downvoted but yes, AMD uses MOESI and Intel uses MESI.

comment 3y ago · link · parent

I was speaking from personal experience with past industrial projects commissioned with lcd/led displays - albeit admittedly not with the British government as a client. Thanks for those links, I will have to study them!

I figured the result was dictated by the specific dimensions and display density of hardware that matched the brightness/environment/size/etc requirements they set forth.

I know the care that goes into finding fonts for standardized government use (road signs, national parks, etc) but imagined this particular set of circumstances was confined to the displays commissioned in that particular round of updates and decided by the contractor and the liaison officials.

comment 3y ago · link · parent

I might be feeling particularly cynical but I don’t get the feeling these were based off any study.

Anyway, it works ok for most of the characters but it’s quite jarring for the Ki because it looks like the K descends into the i’s cell (though it doesn’t).

comment 3y ago · link · parent

Probably meant not familiar with Red Hat’s automated testing?

comment 3y ago · link · parent

I stopped using Google on mobile about a year ago as a result.

comment 3y ago · link · parent

I actually recommend myBB [0] over phpBB for anyone looking to set up a LAMP forum. It's cleaner, better written, and possibly better maintained and with a much less scary vulnerability history. I believe it started off as an attempt to create an OSS version of IPB (or was it vB?).

[0]: https://github.com/mybb/mybb or https://mybb.com/

comment 3y ago · link · parent

That last sentence can be pedantically true, if you look at in a very strict context. It doesn't say the variable can be returned in 1ns - but even if it did, it says the inter-thread coordination can take place in "as little as" 1ns. If a L1 cache immediately returning it's cached value for a memory address because it has the data in E or M state, that's technically a form of inter-thread coordination, just using already-coordinated state.

comment 3y ago · link · parent

> At leas on x86, acq/rel load/stores vs relaxed is basically free.

The corollary to this is that using them doesn't buy you any performance (under x86).

(Also it makes it difficult to test that your code itself synchronizes correctly if you're developing on x86, since bugs may only show up under ARM or RISC or whatever, and even there, only some of the time... and that's why project loom, tsan, and miri exist.)

comment 3y ago · link · parent

This is really going to be hardware- and OS-dependent. Most schedulers try to avoid changing CPU affinity for active processes, so you're likely looking at the delta for the worst-case scenario rather than the average case. But yes, affinity definitely helps!

comment 3y ago · link · parent

I didn't immediately find a first-party source but according to these COMP522 lecture notes from Rice, AMD still uses MOESI for Zen [0].

[0]: https://www.cs.rice.edu/~johnmc/comp522/lecture-notes/COMP52...

comment 3y ago · link · parent

Some SoCs will let you directly/explicitly use the cache as (ostensibly secondary) RAM, remapping your configuration from

    [cpu] -- [cache] -- ram
to

          [   cpu    ]
            |      |
        [cache]  [ram]    
    


Here's TI's documentation on doing just that CC13x2/CC26x2 family of MCUs: [0]. In this case, it's a seemingly paltry 8K of "RAM" but that's a lot for microcontroller developers! In this configuration and for this particular MCU, the CPU will actually run at a reduced speed (60% of its norm), probably because it needs to synchronize directly against the RAM. If you were to use it in CaR-only mode (which I don't think TI exposes), i.e. with the cache being used instead of rather than in addition to any RAM, you probably wouldn't need to run at those reduced speeds (and might even be able to run at higher clock speeds!).

[0]: https://software-dl.ti.com/simplelink/esd/simplelink_cc13x2_...

comment 3y ago · link · parent

> The smartphone form factor is just not very good for software development. Even if the tools existed on the iPhone, nobody would use them.

Tell that to those of us that wrote games on a TI-83.

comment 3y ago · link · parent

https://i.imgur.com/B0Y8h71.png

comment 3y ago · link · parent

Actually USB mice and keyboards would not be susceptible here - they use their own power filtering circuits as part of the USB circuitry.

comment 3y ago · link · parent

I’m in the second group (avoid reboots like the plague) but for the reason you attribute to the first: I never trust that my Windows machine - currently working - will reboot successfully and into the same working condition between OS update regressions, driver issues, etc.

comment 3y ago · link · parent

You haven’t properly kept a machine alive until the clock rolls over.

I logged into a firewalled Windows VM on EC2 that’s been running an internal micro service that was acting up and it caught my eye that task manager showed an uptime of 6 days making my mind immediately think it might be a bug caused by the recent reboot or perhaps the update that triggered it.

It turns out no reboot had taken place and in fact, the uptime counter had merely rolled over - and not for the first time! Bug was unrelated to the machine and it’s still (afaik) ticking merrily away.

(Our `uptime` tool for Windows [0] reported the actual time the machine was up correctly.)

[0]: https://neosmart.net/uptime/

comment 3y ago · link · parent

Fish autocompletes kill, fg, bg, killall, etc out-of-the-box already.

comment 3y ago · link · parent

The lowercase symbols are nice but ye god the uppercase Y and E are basically unchanged from Comic Sans MS and give me PTSD.

comment 3y ago · link · parent

Crazy how much bigger a lowercase l is than a lowercase m in order to fit into a single cell.

comment 3y ago · link · parent

> just a few seconds after the event that precipitated the crash is all that's necessary

Necessary for what? I was thinking more along the lines of giving us more raw data to be able to better deduce where planes might end up post-crash.

comment 3y ago · link · parent

Or a battery so it can keep recording for hours? I'm sure that telemetry is rare and valuable.

comment 3y ago · link · parent

That's funny - I think the opposite! Clean-room reverse engineering would give you the same indivisible line of code (background-color: #xyz;) so it can't be required... or can it?

comment 3y ago · link · parent

You're just punting on the question. To rephrase, does it matter ethically, legally, or at all?

(Yes, I understand that if you're basing a business off it then it matters legally differently than if you're just hacking away on a hobby project, but the law covers all things and ethics is not confined to hobbies.)

comment 3y ago · link · parent

Alex, I've been reading all your posts on Zig and Rust LSPs with great fervor and appreciate everything you've done for the community with rust-analyzer. Can I ask you about clangd, the llvm/C++ lsp? It seems to work tremendously well, far better than I naively ever thought it would even on massive codebases. I was using it from its first release and the quality ramped up rather quickly. Can I bug you to write up about it from your perspective and with your insights sometime and where we could benefit from their design choices and where we can't? And of course, the limitations of their approach?

It's ostensibly driven by the `compile_commands.json` produced by the compiler during a run (mapping each source file to the output .o and the command (w/ all options) that was used to generate it) but in reality that's just because C++ doesn't have its own build system so the tooling has no other way of knowing how a project is wired up. But aside from that, it's extremely fast and has fairly low latency for a language that's got a lot of the same warts that rust has (generics, monomorphization, macros, strong types, (limited) type inference, etc) especially when compared to all the other LSP offerings (although I think C++ compilation units are smaller than rust's, which has to help).

comment 3y ago · link · parent

Don't change the sequence of events around. He released it only after they completely misrepresented what transpired in that call.

comment 3y ago · link · parent

Even if that were true (it’s not) how does that hurt the linked site?
1
596061
277