skysight-inc/HackerNews huggingface dataset:
Ask HN: How to make soft-realtime schedulers in C?
Hi, I'm a self taught C (and to a lesser degree C++) coder working in music/audio/sequencing apps, and want to get further under the hood. It's hard to find tutorials or books on how good soft real time schedulers are written, so hoping someone might have links to good articles, books, or open source projects to look at. I'm interested in the systems programming, algorithms, and data structures side of this, not in just using some project's existing infrastructure.

For context, soft-real time in the context of music means no one dies if we miss a deadline, so runs on general purpose OS, but temporal accuracy and low latency are the highest priorities. This is typically done with the audio card providing an interrupt callback that one starts from. Thanks!
The Best of Both Worlds
That powerpoint is fascinating, looks like work had resumed but then the pandemic hit
The wikipedia article about him cites a few things. Who actually invented what and when is probably a bigger research project. Anyway: it doesn't matter much, I think. More important should be the answer to the question: is he right?
I don't have an answer to that, though.
I visit the “new” regularly. A lot of interesting content appears here that do not make it to the front page. This is why I like the concept of second chance pool[1] that gives interesting posts another chance for making it to the front page. In fact some of own posts were able to make it to the front page long after it slipped off the “new” page, as a result of the second chance pool.

[1] https://news.ycombinator.com/pool
> Since changing their bodies to the maximum current medical extent can be done safely and effectively, and this often yields good results

Basically true for middle-aged adults, but this becomes less and less true as age of intervention decreases.

At the lowest extreme in age, there are lots of kids and teenagers who are simply puzzled by the whole notion of gender roles, or the prospective changes of puberty, and will happily tell you that they kinda-sorta don't feel like they belong in their gender, especially if so influenced by unscrupulous trans-activists. One might think it obvious that pursuing transition in these cases is ethically unconscionable given that the vast majority of those kids will be totally fine as cis adults, but this is a surprisingly controversial POV in the 2020s.

BTW, it's entirely possible to "not find comfort or pleasure" in an arbitrary part of one's body that has nothing to do with primary/secondary sex characteristics, such as one's nose. This is known as body dysmorphic disorder and/or body integrity identity disorder. It tends to be a lot less politicized than gender-identity linked disorders/dysphorias, and the standards of treatment are correspondingly more inclined to watchful waiting.
Sounds like they're allowing people to treat the systems as "infrastructure" and "applications" with only the infra having exposed APIs? That's super common in software of all sorts. There are a lot of people who can make good use of a decent API and appreciate it, but are not experienced (or smart, or have time, etc) enough to design a good API themselves. Most software is mortar, not bricks.
Command Execution via kubectl and kubeconfig [video]
We’ve discovered that backporting security fixes to a large matrix of (outdated) versions isn’t generally sustainable outside of a few specific cases.

So… YES. Regular updates to all of its software is how you stay on top of security updates.
I got problems with "SAVE" its opening "about:blank" <Microsoft Edge Version 91.0.864.54 (Official build) (64-bit> by the way I like it.
> we're building a company so we can create wealth and support our families

Whose families? Most private companies state very clearly that mission is to "maximize shareholder's value". That's the whole point of being privately owned. Hiring and paying employers is a necessary evil.

That's why they need legal regulation, public supervision, even whistleblower employees.
As someone who records nearly daily, I'm going to critique:

> What’s required for an impeccable streaming setup?

> 1) Good lighting that can be precisely calibrated, both in brightness and in colour temperature

For most uses, fixed brightness is fine as long as you can adjust the light's distance. Lighting doesn't need to be color-temperature adjustable because that's what the white balance on your camera is for -- just make sure all your lights are the same color temperature. Mostly, just get a single large ring light, about $90. [1]

> 2) A good camera with a big sensor and a wide aperture lens

If you've got good lighting, then no -- honestly an $80 Logitech C920 [2] will be perfectly adequate for sharp 1080p, and over videoconferencing it's going into deeply compressed 720p anyways so it's more than enough. A wide aperture lens is only if you want a blurry background, which is almost never desirable in professional interviews or videoconferencing. (Gates has a blurry background, this is very unusual.)

A large sensor/aperture is required for low-light conditions, but you should be using good lighting, so that shouldn't be an issue.

> 3) A good microphone

It doesn't need to be that good, just better than your built-in laptop mic, or built-in Bluetooth earphones mic. A $40 Blue Snowball iCE [3] will be more than enough. A $35 lapel mic [4] will be pretty decent too. But just like lighting is far more important than your camera, distance to the mic is far more important than the mic itself. Generally, it should be roughly 9" away, which means keeping it just out of frame, supported by some kind of stand.

> 4) The right rigging to hold everything together

Yup, basically just a stand for your mic and maybe for your webcam. Also possibly a stand for your laptop to support it at eye level.

> 5) Ambient fill lighting

Any normal room has this, though you may need to change which direction you're facing to optimize.

> 6) The technical expertise to understand how colour temperature, shutter speed, aperture, and ISO conspire together to form a beautiful picture.

You absolutely need to manually set the white balance and lock it. Webcams don't really have ISO (they have gain), but you absolutely do need to set the gain to zero (because you have good lighting) and lock the shutter speed for the desired exposure. Not a whole ton of technical expertise here though -- it's pretty simple.

[1] https://www.amazon.com/Neewer-Ring-Light-Kit-Self-Portrait/d...

[2] https://www.amazon.com/Logitech-Widescreen-Calling-Recording...

[3] https://www.amazon.com/Blue-Snowball-Condenser-Microphone-Ca...

[4] https://www.amazon.com/Professional-Microphone-Omnidirection...
I suspect it is the added motion blur :(
Those things are happening anyway. They might reduce the magnitude of the effect, but prices will still go up as wages go up. Also as automation increases productivity, leading to a wealthier economy, workers move into service sectors which are labour intensive.

You can't just say, well, just reduce the amount fo labour to keep costs down. That labour still needs to be employed doing something.
I know Apple’s support of various WebGL features has generally lagged behind Chrome. Though even when there is feature parity shaders seem to run slower in Safari than in Chrome (e.g. a shadertoy shader that north works in Safari and chrome will run at half the speed or less of the chrome one). It makes me think that Apple is doing some GPU throttling for web use cases, maybe for battery or fan speed/heat reasons.
But building connections over more permanent parts of yourself will last more than something that is likely to change every couple of years. Yes, losing the thing you connected over is going to make it so only the best friendships last, but that's just it, you can lose work just like you can everything else. Do people who -don't- go to a bar regularly to drink necessarily have limited social lives? No. Well, same with work.

Work actually makes it -harder- to really connect with people. The norm is to keep personal stuff personal; you don't bring up the difficulties you're having with your SO, and they don't give you advice or commiserate.
One reason to hold to old cars is that they aren't infested with software. Such cars are going to be a thing of the past, I think. John Deere tractors serve as a cautionary tale here.
Show HN: POP3 Listener – A Pluggable POP3 Service
Reward Is Not Enough
Quake demos can be "recammed", though. See https://www.youtube.com/watch?v=jzcevsd5SGE.
And the Truth Machine !
In Ethereum, the currency’s role is of secondary importance. Instead, it’s intended to primarily be in the service of the “world computer”. You’d acquire Ether for its value as an asset rather than a currency.*

But even so, would you say it’s stupid to advise a Turk to buy dollars? These past few years, many of them have been exchanging lira for dollars as protection against inflation.

*In practice, the network is struggling to find a true application, and Ether’s utility as a currency is low.
Apple allows anyone to sign apps for personal use with an Apple ID, to let people experiment with app development before signing up for a dev account. If you have a paid developer account, the ad-hoc signature lasts a year, otherwise it expires after seven days.

AltStore runs a server process that re-signs the app before it expires and uses iTunes / Finder to sync the new copy to the device. With a non-developer account, this needs to happen at least once a week to prevent apps from expiring.
That is an interesting point. But the halting problem is one of those things that is only problem on a literally unbounded memory. If you have a known number of bits of state available, just run the machine for 2^bits steps. Either the machine will have halted by then or it will run forever. Now 2^bits may be astronomically huge, but there's still a big gap between that and undecidable!
"A key few" - out of how many coworkers? That was my point; you may walk away with a person or two per job on average, but you interacted with, likely had lunch with, made small talk with, far more.
Yes, that is one of the options. They can also represent themselves, or hire a lawyer. What else could they also do? Run away to another country maybe?
Talk to a lawyer. But, here's some things to know -

1) Willful infringement is worse than infringing.

2) Patent trolls are trying to earn money - some money is better than no money.

3) In most legal scenarios, you want to get out of the conflict as cheaply as possible - vindication is very expensive.
Without knowing who is suing, what patent, and how they are claiming your are infringing it is difficult to say anything other than get a lawyer.
Apparently, you roll the original loan into a new loan until you die?
Man, sometimes being an evil-mode user feels like being the red-headed stepchild...

That's okay though, I quite like that I can use Emacs like a souped-up vim, especially when Emacs sometimes does vim-like better than even vim could in so many workflows.
And it's made all the more important by the lack of software allowing economists to graphically demonstrate economic concepts on the fly. The best digital substitute is probably a graphic design program (like skitch or gimp), and most economists would not be competent graphic designers, at least not without practice.
I think much of reddit is junk, and very much agree with the QAnon take. I largely agreed with the point you are making until GME went back up in February. It happened all at once, so it was not retail traders but a centralized entity. That didn't make sense to me, and still doesn't make sense to me. I don't understand who profits from this behavior.

Burry at one point linked to a blog article on NOPE[0], the Net Options Pricing Effect. The NOPE is an extremely basic metric that attempts to figure out how much of the market is based on the underlying stock, and how much is based on derivatives. I expect Burry figured this out a decade ago and has a much better metric for himself. I think this is why he found this trade early.

As we learned in the housing market of 2006 and the XIV in 2017, when the derivatives gets to be much larger than the underlying, the tail starts wagging the dog. I think the only naked shorting going on is legal, as MM are free to do so if it provides liquidity according to the basic black scholes model.

We can see that the OI on $0.50 puts and $800 calls is extremely excessive. When you have the OI of the January 2022 is at $.50 puts at 132,345 contracts, it seems to reason that the tail is wagging the dog.

If Hedgefunds had puts and that made MM create naked shares, and those shares were then bought by Cohen who then joined the board and locked in those shares, that's in essence a Buyback. If those shares no longer exist and retail buying is leading to an even bigger squeeze, who is buying those puts? Why would Hedgefunds buy the puts again? They should have given up when they lost %50.

[0]: https://medium.com/swlh/options-degenerate-marketplaces-part...
The mystery of Siberia's exploding craters
> The reason for high fees are the risk in sending the money across borders. Due to fraud there are risks. Bitcoin does nothing to fix this and seems to even enable more scams.

Bitcoin eliminates counter party risk and international transfer risk. Lightning eliminates cost, latency and transaction volume limits. In every way that matters, Bitcoin via Lightning eliminates high fees and addresses all your concerns.

As for the idea that Bitcoin enables more scams, please provide citations. I am not aware of any scams introduced by Bitcoin or Lightning.
I don't have an iPhone, hence a minor speculation on what it supports, if you forgive that.

If you're looking into archival, you'll probably want the PRORAW then, sounds like that is the lossless format.

Converting from JPEG/HEIV to lossless is a bit of a pointless thing to do, you already incur generational loss from that.
By settling, they would be enabling the cycle of abuse. This is as good as "you could always pay the bitcoin ransom." OP needs to contact the EFF and knock this down in court - it's the only way to push back against insane software patents.
‘The Hunchback of Notre Dame’ at 25: ‘The Most R-Rated G You Will Ever See’
Open access link: https://rdcu.be/cmt4E
Yes and that is really bad... hopefully someone, one day, will solve this problem. I don't auto-update Android apps that what I need, because as a rule of thumb, app quality declines over time...
except that the reason why the whole Basic Income thing started was due to automation's possible effect on the job market. As I understood it, it's more about a future where there simply aren't enough jobs on the low end to work, or the economics would make them like Mechanical Turk; impossible to actually live on.

There won't be jobs for a lot of people to work to add to it.
This is only a fundamental problem if UBI is so high there is no incentive to work whatsoever. Every UBI proposal I've seen puts the income level at, or some small fraction above, the poverty line. The majority of adults (currently) earning more than that are unlikely to want to lower their standards of living. Some will, sure, but not most. And likewise many of those in poverty would be willing to work to raise their standing of living beyond UBI, especially if they have more of an economic cushion to find a better position.

So I don't think we need worry about everyone stopping working. What we need to consider is the marginal effect of the small population that does. If the unemployment rates doubles, what impact would that have on the economy? There is a lot to figure out with a problem like that, but it is a different caliber of problem from total economic meltdown.
> That's just wrong. A Basic Income is nothing like a retirement pension.

>The 'B' stands for 'Basic'. Most of us already work to get better things. That won't change.

To me UBI is like a pension because you're getting a monthly payment for not doing anything. Your point doesn't really refute that.
> Also you should add "[ask HN]" to the beginning of your post.

I thought that was automatically appended? Just seemingly not in this case possibly because it doesn't end with a question mark.
We investigated whether digital contact tracing worked in the US
Ask HN: Learning JavaScript in 2021
I have deep knowledge of Python, and lots of experience with Swift... I'd like to learn JavaScript but don't know where to start!

Should I learn TypeScript? What the hell is ECMAScript, WebPack and Gulp and React? How do I even setup a development environment? Do I need Node? What even is Node?

I'm motivated to learn (just enough) JavaScript because I'd like to build more "complete"/"end-to-end" products and services. What do I mean? Well... I can build iOS apps. And I can build Flask/Fast- APIs that serve ML models. But I can't, right now, build things that use accounts or store data.

I'm working my way through the AWS Amplify docs (to solve for the back end stuff). And I'm starting to familiarize myself with GraphQL. But it seems as though I'm going to need to pick up some JS along the way.

So, how should I get started?

I'm not sure "JavaScript: The Definitive Guide (7th Ed)" would be an appropriate place to start as I know what a Class" is, and I don't want to read 40 pages on Types.

Thanks!
Show HN: Find the cheapest machines that can run your K8s workloads
TDengine – An open-sourced big data platform for IoT time series data
If you want to finish your thesis, the best advice I can give you is to select a topic that your advisor is already working on.
If your advisor has already an area of interest, she probably, already has the dataset that you are going to work on. If not you would create that dataset for a future student, in either case your thesis will be part of a much larger picture. Also the importance of the frindship between you and your advisor cannot be overstated.

So in reality, choosing the right advisor is 10 times more important than choosing the right topic.

(I've adivised over 10 thesis, and reviewed several more)
I think both spear hunting wild animals and farming with stone age tech are both real hard problems that will weed out the dimwitted from the gene pool.

That said, the prevailing theory of how we evolved intelligence is that it was for handling the social dynamics of a 100+ people tribe.
They deliver many at once. ( office buildings, etc ). But still, it's ridiculous.
I've also been trying to learn system programming for a while and what did the trick for me was finding a way to use the C interfaces that UNIX provides.

I've tried to learn C probably 4 times now and I just don't like it. But then I came across LuaJIT ffi which, very easily allows you to use whatever shared library and call whatever syscalls directly and that was a game changer!

After that I decided to test ziglang, which a big part of it's design decisions is interoperability with C, and I'm in love with it! It really feels like anything I would need C for I can do in zig.

If Rust if your jam find a way to call the linux syscalls directly from Rust, not just using a cargo library, but actually importing the appropriate headers and successfully doing an epoll or something.

It will feel like suddenly the man (3) pages all make sense and are extremlly useful!

Good luck!
What I don't like so much about Beevor's Stalingrad is the narrative he weaves. He gets into the minds of his subjects and "tells" the reader what they were thinking, which is effectively impossible.

This is a narrative flourish meant to grab the reader's attention, but it's also an inadmissible interference by the author, and one where he inserts his own bias. I find Beevor's style very hard to take, since I don't enjoy being told what to think.

Contrast this with someone more dispassionate, such as David Glantz. He will tell you about the Eastern Front with more dry facts and less "going inside the minds" of generals or ordinary soldiers (UNLESS there is a reference that supports this). The resulting account is both more factual, with less author's ideology seeping through, but also drier and harder to read. Boring at times, even.

So Beevor is "more fun" to read than Glantz, but also way less impartial and more concerned about telling the reader what to think, and I really dislike that.
You can't hold onto land without an army.
Good chance it’s TIFF, like JFIF.
I basically came here to suggest the same thing. The biggest part is a mental shift: realize that if you find a bug (or feature you'd like to have) in an open source project that you have the ability to fix it.

The rabbit hole of reading code you go down of reading code when you do that is, I believe, the best real introduction to systems programming. Once you've been doing that for a while, you internalize the idioms. I'd recommend large projects because you're less likely to just end up copying some person or couple of people's quirks, and learning to read large codebases is a major skill in itself. The process of submitting patches often turns into ad hoc mentoring, where you'll be told what you didn't get right this go around. After you've done that for a while, you realize the same things apply to other large systems projects, and you end up exposed to a number of different styles of systems stuff.
Please file an issue on Github [0]. The developers can't keep track of every comment on Hacker News in order to find problems that need to be fixed. This fork was just launched and does still have some maturing to do.

[0] https://github.com/organicmaps/organicmaps/issues
Would you be interested in starting an open source business review project?
Maybe contact EFF?

https://www.eff.org/pages/legal-assistance

Probably a long shot, but you might get somewhere.
Nope, just convention.
>Even if it is nothing new, let's be the resource

Talking with non-engineers (particularly friends of mine who work in non-profits), I see incomprehensible amounts of potential value in just increasing the uptake of "not-so-special" tech among people who consider themselves "non-technical". That's the point of technology, after all: not being fancy unto itself, but actually doing stuff that people need, whether that's wheels enabling long-distance transportation or lightboards enabling better long-distance education.

I'm reminded of this brief but profound interaction in the pilot episode of "Halt and Catch Fire": https://www.youtube.com/watch?v=YQLbi4VXYcA
We didn't have the ability to earn from ad-notifications at that time. These events and changes (https://brave.com/rewards-update/) predate the launch of Brave Ads, which we introduced in April of 2019 (https://brave.com/brave-ads-launch/). I wouldn't say "misleading," as this suggests deliberate deceit. Our UI/UX was nascent, and naïve. The feedback we received was timely, and incredibly helpful. I'm pleased we were able to turn around the updates quickly, which have since served to make for a substantially better experience
> Downsizing with an intent to not grow in the same direction again?

More like we're not really big enough yet to justify multiple services, since everything still runs on a single beefy machine and we don't have enough experience running the system yet to really know where to put the service boundaries.
Should Bezos be allowed back to Earth after his trip into space next month?
Lawyer up and prepare for an unsatisfying result. Unless you’ve got deep pockets and a lot of time, they’ve already won.
This comment does not contribute to the conversation and is unnecessarily mean.
So it's like WinRAR?
Marketing to geeks
A good way to find a lawyer is to talk to good lawyers you have worked with in the past.

I.e. none for me. Is it that common to have worked with lawyers then? I honestly wouldn't know how to find a good lawyer. I don't even think I know anyone in person who ever needed a lawyer (not sure - it's not something which comes up often in conversations).
I honestly don't get it either. If you are jealous invest your money instead of hoarding it.