Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 6y ago · link · parent

C is considered strictly typed but that’s only when compared to the likes of JS, Python, and co. What you’re taking about is incredibly important and using it in other truly strongly typed languages has opened my eyes to just how much compile time safety a language can really provide, practically free of cost.

comment 6y ago · link · parent

Even C#, actually!

comment 6y ago · link · parent

What of it?

> Those functions are completely non-standard and should be avoided in portable programs.

comment 6y ago · link · parent

Not constexpr, this is solved by constant generics (the famous RFC 2000) with the array bound as a constant “generic” parameter/value.

I’ve been pushing for this feature for many years and have been playing with it since it first landed in nightly. It works quite well.

comment 6y ago · link · parent

A decent YouTube video that goes into the history and shows a restoration of such a machine: https://www.youtube.com/watch?v=x0_WL735Ueg

The presenter does a good job of describing how it works and showing the parts inside.

comment 6y ago · link · parent

(neo)vim user here; is this like the myriad of ctrl-p vim plugins like fzf, cpsm, etc? In the vim world the core functionality is often shelled out to a task-specific process via a plugin, and the vim code is only used to communicate with it. Is that not the case with emacs?

comment 6y ago · link · parent

LC3 is the new audio standard for Bluetooth 5.2 and up, but when I read the Bluetooth SIG claims it provides better quality at comparable bitrates to a long list of codecs that ended with "and Opus," I had to laugh and close the tab.

For those that don't know, Opus is pretty much the current gold standard for freely available audio formats that are at least partially designed to operate at the very lowest end of the bitrate spectrum while delivering comprehensible audio; unless LC3 is also using SILK but just under a different name, I'd be extremely shocked to find it actually beats Opus.

comment 6y ago · link · parent

If you want to skip the intermediate file and do it all in one go, you can pipe directly to stdout with ffmpeg if you give it sufficient information to make up for the loss of file name hints. I’ve never used sbcenc, but .au defaults to signed 16-bit big endian which you can specify and pipe (so as to skip the intermediate file) as follows:

    ffmpeg -i input.foo -f s16be - | sbcenc ...
EDIT:

gstreamer supports encoding to SBC directly, from whatever input format you have (its sbcenc plugin takes signed 16-bit LE PCM, but it can losslessly convert between audio/video formats on-the-fly):

    gst-launch-1.0 filesrc location=input.foo ! decodebin ! sbcenc ! filesink location=out.sbc

comment 6y ago · link · parent

The biggest problem with all the discussions is that 90% of the people don’t know what they are talking about. A lot of people (and I don’t mean you specifically) treat alsa and PulseAudio as interchangeable but they’re at different levels of the stack. Most PulseAudio installs run on top of Alsa and it’s almost always possible to skip the PA layer and output to Alsa directly so long as the applications were built against libasound as well (and you configure PA not to automatically open your Alsa device).

comment 6y ago · link · parent

In less ethical times there have been experiments with children left to raise themselves in contained environments to discover - among other things - how people learn to speak, but unfortunately the experiments always ended in disaster because the moderators were unable to devise a method whereby they could guarantee the survival of the subjects but without influencing their behavior.

comment 6y ago · link · parent

I cannot upvote this enough. As a single founder of a few different initiatives, this more than anything else has been the bane of my existence, exactly as it’s described with low-priority, low-effort but still required tasks that start off innocuously enough on my todo list but end up, thanks to not so much procrastination as resource starvation in a highly prioritized and always full queue, so delayed and as a direct result a thousand times the psychological burden than they ever deserve to be.

I wish I could just write my own tasks scheduler and flash my brain with the upgrade. I know, on paper, exactly what I should be doing and when I should do it; I know that I need a time slot for low priority tasks to empty the queue and prevent resource starvation; I know that intellectually rewarding tasks shouldn’t get a VIP pass that lets them short-circuit the line; I know that I need to give boring management tasks at least some weight on my daily to-do list as compared to the doing-it-myself tasks; but I just can’t.

comment 6y ago · link · parent

That reminds me of reading the original Tarzan from 1912, in which Burroughs writes of how a boy raised in the jungle with only animals for company came to be able to read (and only later speak) English, all on his own.

Quoting for memory, after Tarzan finds some books and newspapers as a result of someone’s previous tragedy in the jungle: “Tarzan, being of superior intellect by virtue of being born to English parents, was able to figure out the meaning of the symbols he found in the books and realized they were forming words and sentences,” from which he not only learned to read English but also devoured the books (textbooks?) and their content.

comment 6y ago · link · parent

Fully open source (MIT license) too!

comment 6y ago · link · parent

I have both, and I think the break even point is probably paying for around 7 or 8U.

comment 6y ago · link · parent

If you get in touch with the right department, you would typically have to sign a multi year contract with the net value due upfront in case of termination to get them to run the fiber to you. Or else cover the cost of the run as an installation fee.

comment 6y ago · link · parent

> It's unfortunate that exposure to UV is so harmful,

This is an extremely popular simplification. The scientific jury is still out on this one, as it seems that paradoxically people with constant exposure to sunlight are less likely to get skin cancer as compared to those that get sporadic exposure.

comment 6y ago · link · parent

I don’t want to be the contrarian that persists in the face of scientific evidences, but I will point out that none of the RCTs listed combined Vitamin D with supplementation of Vitamin K, which several studies suggest plays a synergistic role when it comes to the health benefits. This OSU link covers a number of such studies: https://lpi.oregonstate.edu/mic/vitamins/vitamin-K

comment 6y ago · link · parent

You would actually have to compare (dark skinned people in equatorial regions, light skinned people in places with less sunlight) to (light skinned people in equatorial regions) and optionally against (dark skinned people in places with less sunlight), with group A being the control, group B being expected to fare better, and group C expected to date worse.

comment 6y ago · link · parent

> I gotta say though... the world would have far less race problems had that odd little quirk of photosynthesis of a key nutrient not existed.

Humans being humans, I’m sure nose shape, eye color (just ask Bran Sanderson), hair color/texture, or something else would readily suffice in the absence of a perceptible difference in skin tone.

comment 6y ago · link · parent

> If anyone wants to have an unfettered pipe then call up a Tier 1/2/3 ISP and ask for a commercial connection via a single-mode fibre, and be ready to pay quite a bit for it.

You might be surprised to find it surprisingly affordable. Cheaper than colocation, even.

comment 6y ago · link · parent

It’s not anecdotal, Zoom applies significant audio filtering and “enhancement” as well as selectively attenuating “non-primary” speakers.

comment 6y ago · link · parent

The argument as I’ve heard it is that time is relative to what you’ve experienced: when you’re ten years old, waiting out a year is a tenth of your existence, and will feel immeasurably longer than the passing of a year would when you’ve been through a hundred.

comment 6y ago · link · parent

Really, it’s the price and mass market availability more than anything else that makes the Raspberry Pi a Raspberry Pi, moreso than the exact featureset (especially considering the difference in capabilities between the original and v4). No word on that, it seems?

comment 6y ago · link · parent

I have an archive of an inbox considerably older, if I have the time I’ll run a script against it and see.

comment 6y ago · link · parent

It may be suspended in water indefinitely, but the rated lifespan is four years. Hmmm..

comment 6y ago · link · parent

Inspired by the recently gone viral “digital pregnancy test just reads a pregnancy test strip,” I wonder if you can get around the calibration issue via some sort of electromechanical pH strip autoloader and analyzer.

3477.

The Day Malcolm X Was Killed(newyorker.com ↗)

2 points · by ComputerGuru · 6y ago · discuss

comment 6y ago · link · parent

Linking improvements would have far-reaching benefits. I have similar observations to your comment regarding both C++ and rust.
1
115116117
277