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

What about the font I designed on my air-gapped computer in a secure nuclear bunker that no one but me has seen? Obviously the author is wrong and this must not go uncorrected!

Or maybe you’re just being a little overly pedantic?

comment 3y ago · link · parent

Your approach would result in impossibly large binary font sizes unless a really good (smart) engine was present and utilized to separate the hinting logic from the underlying symbols. Then again, with most fonts these days putting in zero manual hinting work and just relying on the default font engine heuristics, it might not.

comment 3y ago · link · parent

The separate ML.NET project has never seen much traction or adoption. Perhaps this will succeed by making it possible to port existing ML frameworks or models instead.

comment 3y ago · link · parent

The new collection syntax is succinct and aesthetically pleasing but a step back in terms of functionality and information conveyance. The new syntax should have been introduced but reserved only for allocation-free (heap, that is) expressions where the result is a Span and kept the explicit new() requirement for any dynamic heap allocations.

As it is currently, the new collection syntax may result in dynamic heap allocations or it may not - it’s fully opaque.

comment 3y ago · link · parent

Unless even their paid api usage is subsidized (and it very well could be for all I know) they can’t be losing that much.

But it doesn’t matter, I’m they never would have gotten the valuations they did if it weren’t for the insane hype around the (free) ChatGPT offering. It more than paid for itself just in that regard.

comment 3y ago · link · parent

Aside from the caffeine boost the bigger issue is just that They burn through calories.

comment 3y ago · link · parent

The same principle is used in embedded systems as the base of a prng when obtaining randomness from a possibly biased or imperfect source of noise (eg adc low bits or uninit memory values).

I find it easier to understand if you say “instead of using the level/value as the source of randomness, use the transition from one level/state to the other as the bit of entropy.” (edge-based instead of level-based) I.E. instead of head is 0 and tails is 1, head to tail is 0 and tails to head is 1, and the other transitions are disregarded.

comment 3y ago · link · parent

I’m too busy being angry at Microsoft for abandoning SWF, WPF, and UWP without providing an amazing replacement to worry about how they treated webforms.

comment 3y ago · link · parent

I mean to each their own, but in my own experience, I value being able to easily and reliably copy-and-paste code snippets across projects (and I have a million of them, across several evolutions of my own personal coding styles and conventions) or files without worrying about whether the typedefs are in scope, polluting a namespace with possibly conflicting names or macros, etc.

I also have often found myself publishing “for my own use only” code as open source later and like to keep things understandable to maybe help teach someone something someday.

comment 3y ago · link · parent

I cut my teeth on DWORD, PHALF_PTR, and friends, so my issue is not so much “don’t know how to grok this” as it is “we finally have sane, universal type names and you’re throwing them away.”

Sure, the _t suffix may be an eyesore but I’ll take size_t over “size” any day.

comment 3y ago · link · parent

I might just be a grumpy old dev but a lot of this stuff gets an immediate no from me because it’s so unidiomatic. You have to unlearn the accepted way of doing things and you end up with a codebase that is just so foreign to anyone looking at even a small chunk of it, unless they are committed to really learning to do things your way.

Everyone knows what a uint32_t is when they see it. The cognitive overhead (until it becomes second nature, obviously) just feels like a heavy price to pay in order to save yourself a few characters.

(Some other stuff in the proposed coding style still gets a thumbs up from me, though.)

comment 3y ago · link · parent

Probably because of a lack of proper realtime audio due to how the audio input layer was ported, but that's hypothetically fixable by changing the architecture.

comment 3y ago · link · parent

Link seems to be more about the future of LWN security roundup emails than about actual RHEL security announcement emails (the article is really just the headline). Still an interesting discussion to observe and deduce from.

comment 3y ago · link · parent

The sheer amount of greenfield code being written today so dwarfs all the legacy code out there (especially that under consideration for upgrade) that Microsoft has just focused full steam ahead on the former. It’s hard to disagree with the business logic there.

(Medium-term migrations from ASP.NET MVC to ASP.NET Core, was more streamlined.)

comment 3y ago · link · parent

You don’t need a log dialog for this, just a blocking display of fatal errors that occurred before the canvas loaded.

comment 3y ago · link · parent

> The current 3rd party estimates of Kyber-512's security strength (which is a nebulous term...) puts it below the original requirements

More to the point, (at least to my understanding) it puts it on par with another contender that was rejected from the NIST competition for being too weak a security construct.

comment 3y ago · link · parent

No, it's a regular package and brought in a whole slew of dependencies. It doesn't appear in `snap list`. But great guess!

comment 3y ago · link · parent

It's not working for me; installed f3d 1.3.1 via the package manager on Ubuntu 23.04 and when I try to open any of the STL files I generated with Inventor or Fusion that I normally open with/import into Cura just fine to interact with or print but all I see is a blank canvas.

EDIT

Trying it from the command line and I see the problem: a message is posted to stderr complaining that the file does not exist, probably because this is an smb path and it (f3d) is doing some weird thing trying to open the path itself instead of going through the default filesystem apis.

Copying the file to the local fs and then opening it with f3d works, so as far as I'm concerned, this is at the very least a bug in that f3d doesn't forward fatal errors to the UI and only posts them to stderr, which is hidden/swallowed by default when opening f3d via the desktop environment or by double-clicking on the .stl file (as no terminal is shown), if not to also mention a bug opening files from smb or network shares or more generally through the gvfs extensions.

comment 3y ago · link · parent

It's not just cats; I think humans are capable of much of the same but we actively suppress it for $reasons.

Any time I have an alarm in the middle of the night for any random hh:mm, after just a few days of the same pattern I will naturally wake up exactly 1 or 2 minutes before the alarm as my internal clock knows what to expect. If I ignore it out of laziness and go back to sleep until the alarm rings (literally a minute later) I can break the habit but if I embrace it, it is really accurate and reliable (though thrown off if I went to bed absolutely exhausted, so there are limits as one would naturally expect).

comment 3y ago · link · parent

I’ve been trying to wrap my mind around whether (and how much) QUIC would be better than TCP for video streams that rely on order-sensitive delivery of frames, especially for frames that have to be split into multiple packets (and losing one packet or receiving it out of order would lose the entire frame and any dependent frames). We used to use UDP for mpegts packets but found TCP with a reset when buffers are backlogged after switching to h264 to be a much better option over lossy WAN uplinks, (scenario is even worse when you have b or p frames present).

The problem would be a lot easier if there were a feedback loop to the compressor where you can dynamically reduce quality/bandwidth as the connection quality deteriorates but currently using the stock raspivid (or v4l2) interface makes that a bit difficult unless you’re willing to explicitly stop and start the encoding all over again, which breaks the stream anyway.

comment 3y ago · link · parent

It’s not hard to verify before throwing shade at OP’s work. 1) article specifically mentions the actual frequencies used by wireless charging up top, 2) you can refer to Wikipedia to see the same [0]: the frequency for charging is the much lower From 87-205 KILOhertz (while the harmful frequencies being filtered out are in the hundreds of MEGAhertz).

So, no, this doesn’t slow down charging.

[0]: https://en.wikipedia.org/wiki/Inductive_charging

comment 3y ago · link · parent

You see these in circuits incorporating SMPS all the time: https://www.digikey.com/en/product-highlight/f/fair-rite-pro...

Smaller, cheaper, lighter, better. Just hard to retrofit if they weren’t designed as part of the board to begin with.

comment 3y ago · link · parent

And in that case they would be smaller and cheaper.

comment 3y ago · link · parent

Good question/nice catch! It does look like two wraps to me as well, but fortunately the datasheet does seem to show the same impedance for that resonant frequency at either N=2 or N=3 wraps so I think it shouldn’t matter. (And despite OP’s disqualifier, I would trust the datasheet to more or less represent what’s going to happen.)

comment 3y ago · link · parent

I’m very sensitive to coil whine (and have documented hyperacusis for high-pitched noises) but I’ve had no issues with the Belkin wireless fast charger; BUT if you’ve had this issue with all the different makes and models perhaps it is the coil in the phone and not the one in the charger that is faulty? There’s a coil in each.

comment 3y ago · link · parent

What size are the capacitors?

comment 3y ago · link · parent

Which programming environments that do not allow calling C API functions also let you build/ship arbitrary C executables, though? (Genuinely curious what scenarios this unlocks.)

comment 3y ago · link · parent

Speaking as someone that lived in a non-Western country: specifically because it is a recognizably western and non-Chinese brand.

comment 3y ago · link · parent

You might want to add a \ before the asterisk.

comment 3y ago · link · parent

Also context switching between kernel and user mode is now heavier than ever courtesy of speculative execution mitigations.
1
434445
277